]> git.proxmox.com Git - extjs.git/blame - extjs/build/examples/admin-dashboard/classic/app.js
add extjs 6.0.1 sources
[extjs.git] / extjs / build / examples / admin-dashboard / classic / app.js
CommitLineData
6527f429 1var Admin=Admin||{};if(!Admin.data){Admin.data={}}if(!Admin.data.dashboard){Admin.data.dashboard={}}if(!Admin.data.email){Admin.data.email={}}if(!Admin.data.faq){Admin.data.faq={}}if(!Admin.data.marketshare){Admin.data.marketshare={}}if(!Admin.data.qg){Admin.data.qg={}}if(!Admin.data.search){Admin.data.search={}}if(!Admin.model){Admin.model={}}if(!Admin.model.email){Admin.model.email={}}if(!Admin.model.faq){Admin.model.faq={}}if(!Admin.model.search){Admin.model.search={}}if(!Admin.override){Admin.override={}}if(!Admin.override.menu){Admin.override.menu={}}if(!Admin.proxy){Admin.proxy={}}if(!Admin.store){Admin.store={}}if(!Admin.store.email){Admin.store.email={}}if(!Admin.store.faq){Admin.store.faq={}}if(!Admin.store.search){Admin.store.search={}}if(!Admin.view){Admin.view={}}if(!Admin.view.authentication){Admin.view.authentication={}}if(!Admin.view.chart){Admin.view.chart={}}if(!Admin.view.charts){Admin.view.charts={}}if(!Admin.view.dashboard){Admin.view.dashboard={}}if(!Admin.view.email){Admin.view.email={}}if(!Admin.view.forms){Admin.view.forms={}}if(!Admin.view.main){Admin.view.main={}}if(!Admin.view.pages){Admin.view.pages={}}if(!Admin.view.profile){Admin.view.profile={}}if(!Admin.view.search){Admin.view.search={}}if(!Admin.view.widgets){Admin.view.widgets={}}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.chart){Ext.chart={}}if(!Ext.chart.axis){Ext.chart.axis={}}if(!Ext.chart.axis.layout){Ext.chart.axis.layout={}}if(!Ext.chart.axis.segmenter){Ext.chart.axis.segmenter={}}if(!Ext.chart.axis.sprite){Ext.chart.axis.sprite={}}if(!Ext.chart.grid){Ext.chart.grid={}}if(!Ext.chart.interactions){Ext.chart.interactions={}}if(!Ext.chart.label){Ext.chart.label={}}if(!Ext.chart.overrides){Ext.chart.overrides={}}if(!Ext.chart.series){Ext.chart.series={}}if(!Ext.chart.series.sprite){Ext.chart.series.sprite={}}if(!Ext.chart.theme){Ext.chart.theme={}}if(!Ext.container){Ext.container={}}if(!Ext.core){Ext.core={}}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.dom){Ext.dom={}}if(!Ext.dom.Element){Ext.dom.Element={}}if(!Ext.draw){Ext.draw={}}if(!Ext.draw.engine){Ext.draw.engine={}}if(!Ext.draw.engine.SvgContext){Ext.draw.engine.SvgContext={}}if(!Ext.draw.gradient){Ext.draw.gradient={}}if(!Ext.draw.modifier){Ext.draw.modifier={}}if(!Ext.draw.overrides){Ext.draw.overrides={}}if(!Ext.draw.overrides.sprite){Ext.draw.overrides.sprite={}}if(!Ext.draw.sprite){Ext.draw.sprite={}}if(!Ext.event){Ext.event={}}if(!Ext.event.gesture){Ext.event.gesture={}}if(!Ext.event.publisher){Ext.event.publisher={}}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.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.header){Ext.grid.header={}}if(!Ext.grid.locking){Ext.grid.locking={}}if(!Ext.grid.plugin){Ext.grid.plugin={}}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.boxOverflow){Ext.layout.container.boxOverflow={}}if(!Ext.list){Ext.list={}}if(!Ext.menu){Ext.menu={}}if(!Ext.mixin){Ext.mixin={}}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.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.state){Ext.state={}}if(!Ext.tab){Ext.tab={}}if(!Ext.theme){Ext.theme={}}if(!Ext.theme.neptune){Ext.theme.neptune={}}if(!Ext.theme.neptune.form){Ext.theme.neptune.form={}}if(!Ext.theme.neptune.form.field){Ext.theme.neptune.form.field={}}if(!Ext.theme.neptune.layout){Ext.theme.neptune.layout={}}if(!Ext.theme.neptune.layout.component){Ext.theme.neptune.layout.component={}}if(!Ext.theme.neptune.menu){Ext.theme.neptune.menu={}}if(!Ext.theme.neptune.panel){Ext.theme.neptune.panel={}}if(!Ext.theme.neptune.resizer){Ext.theme.neptune.resizer={}}if(!Ext.theme.neptune.toolbar){Ext.theme.neptune.toolbar={}}if(!Ext.theme.triton){Ext.theme.triton={}}if(!Ext.theme.triton.form){Ext.theme.triton.form={}}if(!Ext.theme.triton.form.field){Ext.theme.triton.form.field={}}if(!Ext.theme.triton.grid){Ext.theme.triton.grid={}}if(!Ext.theme.triton.grid.column){Ext.theme.triton.grid.column={}}if(!Ext.theme.triton.list){Ext.theme.triton.list={}}if(!Ext.theme.triton.menu){Ext.theme.triton.menu={}}if(!Ext.theme.triton.resizer){Ext.theme.triton.resizer={}}if(!Ext.theme.triton.selection){Ext.theme.triton.selection={}}if(!Ext.theme.triton.toolbar){Ext.theme.triton.toolbar={}}if(!Ext.tip){Ext.tip={}}if(!Ext.toolbar){Ext.toolbar={}}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.ajax){Ext.ux.ajax={}}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(H){var K,A=["constructor","toString","valueOf","toLocaleString"],G={},w={},I=0,z,C,u,E,L,F,y,J,D,v=function(){var a,b;C=Ext.Base;u=Ext.ClassManager;for(a=A.length;a-->0;){b=(1<<a);w[G[b]=A[a]]=b}for(a in w){I|=w[a]}I=~I;Function.prototype.$isFunction=1;D=!!(u&&u.addAlias);E=Ext.Class.getPreprocessor("config").fn;L=Ext.Class.getPreprocessor("cachedConfig")&&Ext.Class.getPreprocessor("cachedConfig").fn;F=Ext.Class.getPreprocessor("platformConfig")&&Ext.Class.getPreprocessor("platformConfig").fn;J=Ext.Class.getPreprocessor("privates")&&Ext.Class.getPreprocessor("privates").fn;y=Ext.ClassManager.postprocessors.deprecated&&Ext.ClassManager.postprocessors.deprecated.fn;K=C.$staticMembers;if(!K){K=[];for(z in C){if(C.hasOwnProperty(z)){K.push(z)}}}H.derive=B;return B.apply(this,arguments)},t=function(a,e,b){var h=b.enumerableMembers,d=a.prototype,f,c,g,i,j;if(!e){return}if(D){a.addMembers(e)}else{for(f in e){i=e[f];if(i&&i.$isFunction&&!i.$isClass&&i!==Ext.emptyFn&&i!==Ext.identityFn){j=d.hasOwnProperty(f)&&d[f];if(j){i.$previous=j}d[f]=c=i;c.$owner=a;c.$name=f}else{d[f]=i}}for(g=1;h;g<<=1){if(h&g){h&=~g;f=G[g];d[f]=c=e[f];c.$owner=a;c.$name=f}}}},x=function(a){var e=function b(){return a.apply(this,arguments)||null},c,d;e.prototype=Ext.Object.chain(a.prototype);for(c=K.length;c-->0;){d=K[c];e[d]=C[d]}return e},B=function(s,am,d,aj,an,p,q,g,ad,n,ag){var ah=function ai(){return this.constructor.apply(this,arguments)||null},e=ah,af={enumerableMembers:aj&I,onCreated:ag,onBeforeCreated:t,aliases:g},ab=d.alternateClassName||[],i=Ext.global,m,j,h,ac,k,a,b,aa,l,ak,f,o,ae,c,r=u.alternateToName||u.maps.alternateToName,al=u.nameToAlternates||u.maps.nameToAlternates;for(h=K.length;h-->0;){b=K[h];ah[b]=C[b]}if(d.$isFunction){d=d(ah)}af.data=d;ak=d.statics;delete d.statics;d.$className=s;if("$className" in d){ah.$className=d.$className}ah.extend(am);l=ah.prototype;ah.xtype=d.xtype=an[0];if(an){l.xtypes=an}l.xtypesChain=p;l.xtypesMap=q;d.alias=g;e.triggerExtended(ah,d,af);if(d.onClassExtended){ah.onExtended(d.onClassExtended,ah);delete d.onClassExtended}if(d.privates&&J){J.call(Ext.Class,ah,d)}if(ak){if(D){ah.addStatics(ak)}else{for(f in ak){if(ak.hasOwnProperty(f)){c=ak[f];if(c&&c.$isFunction&&!c.$isClass&&c!==Ext.emptyFn&&c!==Ext.identityFn){ah[f]=ae=c;ae.$owner=ah;ae.$name=f}ah[f]=c}}}}if(d.inheritableStatics){ah.addInheritableStatics(d.inheritableStatics);delete d.inheritableStatics}if(l.onClassExtended){e.onExtended(l.onClassExtended,e);delete l.onClassExtended}if(d.config){E.call(Ext.Class,ah,d)}if(d.cachedConfig&&L){L.call(Ext.Class,ah,d);delete d.cachedConfig}if(d.platformConfig&&F){F.call(Ext.Class,ah,d);delete d.platformConfig}if(d.deprecated&&y){y.call(Ext.ClassManager,s,ah,d)}af.onBeforeCreated(ah,af.data,af);for(h=0,k=ad&&ad.length;h<k;++h){ah.mixin.apply(ah,ad[h])}for(h=0,k=g.length;h<k;h++){m=g[h];u.setAlias?u.setAlias(ah,m):u.addAlias(ah,m)}if(d.singleton){e=new ah()}if(!(ab instanceof Array)){ab=[ab]}o=u.getName(e);for(h=0,ac=ab.length;h<ac;h++){j=ab[h];u.classes[j]=e;if(D){u.addAlternate(ah,j)}else{if(o){r[j]=o;ab=al[o]||(al[o]=[]);ab.push(j)}}}for(h=0,k=n.length;h<k;h+=2){a=n[h];if(!a){a=i}a[n[h+1]]=e}u.classes[s]=e;if(!D){if(o&&o!==s){r[s]=o;ab=al[o]||(al[o]=[]);ab.push(s)}}delete l.alternateClassName;if(af.onCreated){af.onCreated.call(e,e)}if(s){u.triggerCreated(s)}return e};H.derive=v}(Ext.cmd={}));var Ext=Ext||{};(function(){var y=this,t=Object.prototype,x=t.toString,i=["valueOf","toLocaleString","toString","constructor"],q=function(){},u=function(){},s=function(a){return a},o=function(){var a=o.caller.caller;return a.$owner.prototype[a.$name].apply(this,arguments)},z=Ext.manifest||{},r,w=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/,v=/^\\?\/Date\(([-+])?(\d+)(?:[+-]\d{4})?\)\\?\/$/;Ext.global=y;Ext.now=Date.now||(Date.now=function(){return +new Date()});Ext.ticks=(y.performance&&y.performance.now)?function(){return performance.now()}:Ext.now;Ext._startTime=Ext.ticks();q.$nullFn=s.$nullFn=q.$emptyFn=s.$identityFn=u.$nullFn=true;u.$privacy="framework";Ext.suspendLayouts=Ext.resumeLayouts=q;for(r in {toString:1}){i=null}Ext.enumerables=i;Ext.apply=function(c,d,a){if(a){Ext.apply(c,a)}if(c&&d&&typeof d==="object"){var b,e,f;for(b in d){c[b]=d[b]}if(i){for(e=i.length;e--;){f=i[e];if(d.hasOwnProperty(f)){c[f]=d[f]}}}}return c};function p(c,a,b){var e,d;for(e in b){if(b.hasOwnProperty(e)){d=b[e];if(typeof d==="function"){d.$name=e;d.$owner=a;d.$previous=c.hasOwnProperty(e)?c[e]:o}c[e]=d}}}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:u,emptyFn:q,identityFn:s,frameStartTime:Ext.now(),manifest:z,enableAria:true,enableAriaButtons:true,enableAriaPanels:true,startsWithHashRe:/^#/,validIdRe:/^[a-z_][a-z0-9\-_]*$/i,BLANK_IMAGE_URL:"data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",makeIdSelector:function(a){return"#"+a},id:function(c,a){if(c&&c.id){return c.id}var b=(a||Ext.idPrefix)+(++Ext.idSeed);if(c){c.id=b}return b},returnId:function(a){return a.getId()},returnTrue:function(){return true},emptyString:new String(),baseCSSPrefix:Ext.buildSettings.baseCSSPrefix,$eventNameMap:{},$vendorEventRe:/^(Moz.+|MS.+|webkit.+)/,canonicalEventName:function(a){return Ext.$eventNameMap[a]||(Ext.$eventNameMap[a]=(Ext.$vendorEventRe.test(a)?a:a.toLowerCase()))},applyIf:function(c,a){var b;if(c){for(b in a){if(c[b]===undefined){c[b]=a[b]}}}return c},destroy:function(){var a=arguments.length,b,c;for(b=0;b<a;b++){c=arguments[b];if(c){if(Ext.isArray(c)){this.destroy.apply(this,c)}else{if(Ext.isFunction(c.destroy)){c.destroy()}}}}return null},destroyMembers:function(c){for(var a,d,b=1,e=arguments,f=e.length;b<f;b++){a=c[d=e[b]];if(a!=null){c[d]=Ext.destroy(a)}}},override:function(c,b){if(c.$isClass){c.override(b)}else{if(typeof c==="function"){Ext.apply(c.prototype,b)}else{var a=c.self,d;if(a&&a.$isClass){d=b.privates;if(d){b=Ext.apply({},b);delete b.privates;p(c,a,d)}p(c,a,b)}else{Ext.apply(c,b)}}}return c},valueFrom:function(b,a,c){return Ext.isEmpty(b,c)?a:b},isEmpty:function(a,b){return(a==null)||(!b?a==="":false)||(Ext.isArray(a)&&a.length===0)},isArray:("isArray" in Array)?Array.isArray:function(a){return x.call(a)==="[object Array]"},isDate:function(a){return x.call(a)==="[object Date]"},isMSDate:function(a){if(!Ext.isString(a)){return false}return v.test(a)},isObject:(x.call(null)==="[object Object]")?function(a){return a!==null&&a!==undefined&&x.call(a)==="[object Object]"&&a.ownerDocument===undefined}:function(a){return x.call(a)==="[object Object]"},isSimpleObject:function(a){return a instanceof Object&&a.constructor===Object},isPrimitive:function(b){var a=typeof b;return a==="string"||a==="number"||a==="boolean"},isFunction:(typeof document!=="undefined"&&typeof document.getElementsByTagName("body")==="function")?function(a){return !!a&&x.call(a)==="[object Function]"}:function(a){return !!a&&typeof a==="function"},isNumber:function(a){return typeof a==="number"&&isFinite(a)},isNumeric:function(a){return !isNaN(parseFloat(a))&&isFinite(a)},isString:function(a){return typeof a==="string"},isBoolean:function(a){return typeof a==="boolean"},isElement:function(a){return a?a.nodeType===1:false},isTextNode:function(a){return a?a.nodeName==="#text":false},isDefined:function(a){return typeof a!=="undefined"},isIterable:function(a){if(!a||typeof a.length!=="number"||typeof a==="string"||Ext.isFunction(a)){return false}if(!a.propertyIsEnumerable){return !!a.item}if(a.hasOwnProperty("length")&&!a.propertyIsEnumerable("length")){return true}return w.test(x.call(a))},isDebugEnabled:q,clone:function(b){if(b===null||b===undefined){return b}if(b.nodeType&&b.cloneNode){return b.cloneNode(true)}var c=x.call(b),d,f,g,a,e;if(c==="[object Date]"){return new Date(b.getTime())}if(c==="[object Array]"){d=b.length;a=[];while(d--){a[d]=Ext.clone(b[d])}}else{if(c==="[object Object]"&&b.constructor===Object){a={};for(e in b){a[e]=Ext.clone(b[e])}if(i){for(f=i.length;f--;){g=i[f];if(b.hasOwnProperty(g)){a[g]=b[g]}}}}}return a||b},getUniqueGlobalNamespace:function(){var a=this.uniqueGlobalNamespace,b;if(a===undefined){b=0;do{a="ExtBox"+(++b)}while(y[a]!==undefined);y[a]=Ext;this.uniqueGlobalNamespace=a}return a},functionFactoryCache:{},cacheableFunctionFactory:function(){var b=this,e=Array.prototype.slice.call(arguments),f=b.functionFactoryCache,a,d,c;if(Ext.isSandboxed){c=e.length;if(c>0){c--;e[c]="var Ext=window."+Ext.name+";"+e[c]}}a=e.join("");d=f[a];if(!d){d=Function.prototype.constructor.apply(Function.prototype,e);f[a]=d}return d},functionFactory:function(){var a=Array.prototype.slice.call(arguments),b;if(Ext.isSandboxed){b=a.length;if(b>0){b--;a[b]="var Ext=window."+Ext.name+";"+a[b]}}return Function.prototype.constructor.apply(Function.prototype,a)},Logger:{verbose:q,log:q,info:q,warn:q,error:function(a){throw new Error(a)},deprecate:q},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:(function(){var a={};return function(e,f){if(!e){return[]}else{if(!f){return[e]}}var c=a[f]||(a[f]=new RegExp("\\\\"+f,"g")),g=[],b,d;b=e.split(f);while((d=b.shift())!==undefined){while(d.charAt(d.length-1)==="\\"&&b.length>0){d=d+f+b.shift()}d=d.replace(c,f);g.push(d)}return g}})()});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=true}());Ext.platformTags.modern=!(Ext.platformTags.classic=Ext.isClassic=true);(function(){function b(){var h=this,a=h.sourceClass,f=h.sourceMethod,g=h.msg;if(f){if(g){f+="(): ";f+=g}else{f+="()"}}if(a){f=f?(a+"."+f):a}return f||g||""}Ext.Error=function(d){if(Ext.isString(d)){d={msg:d}}var a=new Error();Ext.apply(a,d);a.message=a.message||a.msg;a.toString=b;return a};Ext.apply(Ext.Error,{ignore:false,raise:function(i){i=i||{};if(Ext.isString(i)){i={msg:i}}var j=this,g=j.raise.caller,h,a;if(g===Ext.raise){g=g.caller}if(g){if(!i.sourceMethod&&(a=g.$name)){i.sourceMethod=a}if(!i.sourceClass&&(a=g.$owner)&&(a=a.$className)){i.sourceClass=a}}if(j.handle(i)!==true){h=b.call(i);throw new Ext.Error(i)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(b){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=(function(){var H=Array.prototype,A=H.slice,y=(function(){var a=[],c,b=20;if(!a.splice){return false}while(b--){a.push("A")}a.splice(15,0,"F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F","F");c=a.length;a.splice(13,0,"XXX");if(c+1!==a.length){return false}return true}()),z="indexOf" in H,E=true;function B(a,d){var f=a.length,b=new Array(f),c;for(c=0;c<f;c++){b[c]=c}b.sort(function(h,g){return d(a[h],a[g])||(h-g)});for(c=0;c<f;c++){b[c]=a[b[c]]}for(c=0;c<f;c++){a[c]=b[c]}return a}try{if(typeof document!=="undefined"){A.call(document.getElementsByTagName("body"))}}catch(w){E=false}var C=function(a,b){return(b<0)?Math.max(0,a.length+b):Math.min(a.length,b)},e=function(d,g,m,a){var n=a?a.length:0,k=d.length,c=C(d,g);if(c===k){if(n){d.push.apply(d,a)}}else{var h=Math.min(m,k-c),b=c+h,l=b+n-h,f=k-b,j=k-h,i;if(l<b){for(i=0;i<f;++i){d[l+i]=d[b+i]}}else{if(l>b){for(i=f;i--;){d[l+i]=d[b+i]}}}if(n&&c===j){d.length=j;d.push.apply(d,a)}else{d.length=j+n;for(i=0;i<n;++i){d[c+i]=a[i]}}}return d},F=function(a,d,b,c){if(c&&c.length){if(d===0&&!b){a.unshift.apply(a,c)}else{if(d<a.length){a.splice.apply(a,[d,b].concat(c))}else{a.push.apply(a,c)}}}else{a.splice(d,b)}return a},I=function(a,c,b){return e(a,c,b)},x=function(a,c,b){a.splice(c,b);return a},D=function(a,f,c){var b=C(a,f),d=a.slice(f,C(a,b+c));if(arguments.length<4){e(a,b,c)}else{e(a,b,c,A.call(arguments,3))}return d},G=function(a){return a.splice.apply(a,A.call(arguments,1))},t=y?x:I,v=y?F:e,u=y?G:D,J={binarySearch:function(h,b,d,g,i){var c=h.length,f,a;if(d instanceof Function){i=d;d=0;g=c}else{if(g instanceof Function){i=g;g=c}else{if(d===undefined){d=0}if(g===undefined){g=c}i=i||J.lexicalCompare}}--g;while(d<=g){f=(d+g)>>1;a=i(b,h[f]);if(a>=0){d=f+1}else{if(a<0){g=f-1}}}return d},defaultCompare:function(b,a){return(b<a)?-1:((b>a)?1:0)},lexicalCompare:function(b,a){b=String(b);a=String(a);return(b<a)?-1:((b>a)?1:0)},each:function(a,c,d,g){a=J.from(a);var f,b=a.length;if(g!==true){for(f=0;f<b;f++){if(c.call(d||a[f],a[f],f,a)===false){return f}}}else{for(f=b-1;f>-1;f--){if(c.call(d||a[f],a[f],f,a)===false){return f}}}return true},forEach:("forEach" in H)?function(a,b,c){return a.forEach(b,c)}:function(a,c,d){for(var f=0,b=a.length;f<b;f++){c.call(d,a[f],f,a)}},indexOf:z?function(a,c,b){return H.indexOf.call(a,c,b)}:function(a,c,b){var f,d=a.length;for(f=(b<0)?Math.max(0,d+b):b||0;f<d;f++){if(a[f]===c){return f}}return -1},contains:z?function(a,b){return H.indexOf.call(a,b)!==-1}:function(a,b){var d,c;for(d=0,c=a.length;d<c;d++){if(a[d]===b){return true}}return false},toArray:function(c,a,f){if(!c||!c.length){return[]}if(typeof c==="string"){c=c.split("")}if(E){return A.call(c,a||0,f||c.length)}var b=[],d;a=a||0;f=f?((f<0)?c.length+f:f):c.length;for(d=a;d<f;d++){b.push(c[d])}return b},pluck:function(a,g){var f=[],d,b,c;for(d=0,b=a.length;d<b;d++){c=a[d];f.push(c[g])}return f},map:("map" in H)?function(a,b,c){return a.map(b,c)}:function(a,b,c){var d=[],g=a.length,f;for(f=0;f<g;f++){d[f]=b.call(c,a[f],f,a)}return d},every:("every" in H)?function(a,b,c){return a.every(b,c)}:function(a,c,d){var f=0,b=a.length;for(;f<b;++f){if(!c.call(d,a[f],f,a)){return false}}return true},some:("some" in H)?function(a,b,c){return a.some(b,c)}:function(a,c,d){var f=0,b=a.length;for(;f<b;++f){if(c.call(d,a[f],f,a)){return true}}return false},equals:function(a,b){var d=a.length,f=b.length,c;if(a===b){return true}if(d!==f){return false}for(c=0;c<d;++c){if(a[c]!==b[c]){return false}}return true},clean:function(a){var d=[],f=0,b=a.length,c;for(;f<b;f++){c=a[f];if(!Ext.isEmpty(c)){d.push(c)}}return d},unique:function(a){var b=[],f=0,c=a.length,d;for(;f<c;f++){d=a[f];if(J.indexOf(b,d)===-1){b.push(d)}}return b},filter:("filter" in H)?function(a,b,c){return a.filter(b,c)}:function(a,c,d){var f=[],g=0,b=a.length;for(;g<b;g++){if(c.call(d,a[g],g,a)){f.push(a[g])}}return f},findBy:function(a,b,c){var d=0,f=a.length;for(;d<f;d++){if(b.call(c||a,a[d],d)){return a[d]}}return null},from:function(a,b){if(a===undefined||a===null){return[]}if(Ext.isArray(a)){return(b)?A.call(a):a}var c=typeof a;if(a&&a.length!==undefined&&c!=="string"&&(c!=="function"||!a.apply)){return J.toArray(a)}return[a]},remove:function(a,b){var c=J.indexOf(a,b);if(c!==-1){t(a,c,1)}return a},removeAt:function(a,c,b){var d=a.length;if(c>=0&&c<d){b=b||1;b=Math.min(b,d-c);t(a,c,b)}return a},include:function(a,b){if(!J.contains(a,b)){a.push(b)}},clone:function(a){return A.call(a)},merge:function(){var d=A.call(arguments),a=[],c,b;for(c=0,b=d.length;c<b;c++){a=a.concat(d[c])}return J.unique(a)},intersect:function(){var f=[],m=A.call(arguments),o,a,g,b,l,k,n,c,p,j,d,h,i;if(!m.length){return f}o=m.length;for(d=l=0;d<o;d++){k=m[d];if(!b||k.length<b.length){b=k;l=d}}b=J.unique(b);t(m,l,1);n=b.length;o=m.length;for(d=0;d<n;d++){c=b[d];j=0;for(h=0;h<o;h++){a=m[h];g=a.length;for(i=0;i<g;i++){p=a[i];if(c===p){j++;break}}}if(j===o){f.push(c)}}return f},difference:function(f,g){var h=A.call(f),b=h.length,c,d,a;for(c=0,a=g.length;c<a;c++){for(d=0;d<b;d++){if(h[d]===g[c]){t(h,d,1);d--;b--}}}return h},reduce:Array.prototype.reduce?function(a,b,c){if(arguments.length===3){return Array.prototype.reduce.call(a,b,c)}return Array.prototype.reduce.call(a,b)}:function(a,b,g){a=Object(a);var d=0,c=a.length>>>0,f=g;if(arguments.length<3){while(true){if(d in a){f=a[d++];break}if(++d>=c){throw new TypeError("Reduce of empty array with no initial value")}}}for(;d<c;++d){if(d in a){f=b(f,a[d],d,a)}}return f},slice:([1,2].slice(1,undefined).length?function(a,b,c){return A.call(a,b,c)}:function(a,b,c){if(typeof b==="undefined"){return A.call(a)}if(typeof c==="undefined"){return A.call(a,b)}return A.call(a,b,c)}),sort:function(a,b){return B(a,b||J.lexicalCompare)},flatten:function(a){var b=[];function c(f){var h,g,d;for(h=0,g=f.length;h<g;h++){d=f[h];if(Ext.isArray(d)){c(d)}else{b.push(d)}}return b}return c(a)},min:function(a,b){var f=a[0],g,c,d;for(g=0,c=a.length;g<c;g++){d=a[g];if(b){if(b(f,d)===1){f=d}}else{if(d<f){f=d}}}return f},max:function(a,b){var g=a[0],f,c,d;for(f=0,c=a.length;f<c;f++){d=a[f];if(b){if(b(g,d)===-1){g=d}}else{if(d>g){g=d}}}return g},mean:function(a){return a.length>0?J.sum(a)/a.length:undefined},sum:function(a){var d=0,f,b,c;for(f=0,b=a.length;f<b;f++){c=a[f];d+=c}return d},toMap:function(a,f,c){var b={},d=a.length;if(!f){while(d--){b[a[d]]=d+1}}else{if(typeof f==="string"){while(d--){b[a[d][f]]=d+1}}else{while(d--){b[f.call(c,a[d])]=d+1}}}return b},toValueMap:function(h,k,a,i){var f={},l=h.length,m,j,c,g,b,d;if(!k){while(l--){d=h[l];f[d]=d}}else{if(!(g=(typeof k!=="string"))){i=a}j=i===1;m=i===2;while(l--){d=h[l];b=g?k.call(a,d):d[k];if(j){if(b in f){f[b].push(d)}else{f[b]=[d]}}else{if(m&&(b in f)){if((c=f[b]) instanceof Array){c.push(d)}else{f[b]=[c,d]}}else{f[b]=d}}}}return f},erase:t,insert:function(a,b,c){return v(a,b,0,c)},move:function(a,f,c){if(c===f){return}var d=a[f],b=c>f?1:-1,g;for(g=f;g!=c;g+=b){a[g]=a[g+b]}a[c]=d},replace:v,splice:u,push:function(a){var d=arguments.length,b=1,c;if(a===undefined){a=[]}else{if(!Ext.isArray(a)){a=[a]}}for(;b<d;b++){c=arguments[b];Array.prototype.push[Ext.isIterable(c)?"apply":"call"](a,c)}return a},numericSortFn:function(a,b){return a-b}};Ext.each=J.each;J.union=J.merge;Ext.min=J.min;Ext.max=J.max;Ext.sum=J.sum;Ext.mean=J.mean;Ext.flatten=J.flatten;Ext.clean=J.clean;Ext.unique=J.unique;Ext.pluck=J.pluck;Ext.toArray=function(){return J.toArray.apply(J,arguments)};return J}());Ext.String=(function(){var u=/^[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+|[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000]+$/g,q=/('|\\)/g,A=/([-.*+?\^${}()|\[\]\/\\])/g,o=/^\s+|\s+$/g,t=/\s+/,r=/(^[^a-z]*|[^\w])/gi,x,B,v,y,w=function(a,b){return x[b]},s=function(a,b){return(b in B)?B[b]:String.fromCharCode(parseInt(b.substr(2),10))},z=function(a,b){if(a===null||a===undefined||b===null||b===undefined){return false}return b.length<=a.length},p;return p={insert:function(b,a,c){if(!b){return a}if(!a){return b}var d=b.length;if(!c&&c!==0){c=d}if(c<0){c*=-1;if(c>=d){c=0}else{c=d-c}}if(c===0){b=a+b}else{if(c>=b.length){b+=a}else{b=b.substr(0,c)+a+b.substr(c)}}return b},startsWith:function(b,a,c){var d=z(b,a);if(d){if(c){b=b.toLowerCase();a=a.toLowerCase()}d=b.lastIndexOf(a,0)===0}return d},endsWith:function(a,c,b){var d=z(a,c);if(d){if(b){a=a.toLowerCase();c=c.toLowerCase()}d=a.indexOf(c,a.length-c.length)!==-1}return d},createVarName:function(a){return a.replace(r,"")},htmlEncode:function(a){return(!a)?a:String(a).replace(v,w)},htmlDecode:function(a){return(!a)?a:String(a).replace(y,s)},hasHtmlCharacters:function(a){return v.test(a)},addCharacterEntities:function(d){var e=[],a=[],c,b;for(c in d){b=d[c];B[c]=b;x[b]=c;e.push(b);a.push(c)}v=new RegExp("("+e.join("|")+")","g");y=new RegExp("("+a.join("|")+"|&#[0-9]{1,5};)","g")},resetCharacterEntities:function(){x={};B={};this.addCharacterEntities({"&amp;":"&","&gt;":">","&lt;":"<","&quot;":'"',"&#39;":"'"})},urlAppend:function(a,b){if(!Ext.isEmpty(b)){return a+(a.indexOf("?")===-1?"?":"&")+b}return a},trim:function(a){if(a){a=a.replace(u,"")}return a||""},capitalize:function(a){if(a){a=a.charAt(0).toUpperCase()+a.substr(1)}return a||""},uncapitalize:function(a){if(a){a=a.charAt(0).toLowerCase()+a.substr(1)}return a||""},ellipsis:function(c,d,b){if(c&&c.length>d){if(b){var a=c.substr(0,d-2),e=Math.max(a.lastIndexOf(" "),a.lastIndexOf("."),a.lastIndexOf("!"),a.lastIndexOf("?"));if(e!==-1&&e>=(d-15)){return a.substr(0,e)+"..."}}return c.substr(0,d-3)+"..."}return c},escapeRegex:function(a){return a.replace(A,"\\$1")},createRegex:function(a,b,d,e){var c=a;if(a!=null&&!a.exec){c=p.escapeRegex(String(a));if(b!==false){c="^"+c}if(d!==false){c+="$"}c=new RegExp(c,(e!==false)?"i":"")}return c},escape:function(a){return a.replace(q,"\\$1")},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,b,a){var d=String(c);a=a||" ";while(d.length<b){d=a+d}return d},repeat:function(a,b,d){if(b<1){b=0}for(var e=[],c=b;c--;){e.push(a)}return e.join(d||"")},splitWords:function(a){if(a&&typeof a=="string"){return a.replace(o,"").split(t)}return a||[]}}}());Ext.String.resetCharacterEntities();Ext.htmlEncode=Ext.String.htmlEncode;Ext.htmlDecode=Ext.String.htmlDecode;Ext.urlAppend=Ext.String.urlAppend;Ext.Date=(function(){var q,r=Date,l=/(\\.)/g,v=/([gGhHisucUOPZ]|MS)/,p=/([djzmnYycU]|MS)/,m=/\\/gi,t=/\{(\d+)\}/g,o=new RegExp("\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/"),s=Ext.String.leftPad,u=["var me = this, dt, y, m, d, h, i, s, ms, o, O, z, zz, u, v, W, year, jan4, week1monday, daysInMonth, dayMatched,","def = me.defaults,","from = Ext.Number.from,","results = String(input).match(me.parseRegexes[{0}]);","if(results){","{1}","if(u != null){","v = new Date(u * 1000);","}else{","dt = me.clearTime(new Date);","y = from(y, from(def.y, dt.getFullYear()));","m = from(m, from(def.m - 1, dt.getMonth()));","dayMatched = d !== undefined;","d = from(d, from(def.d, dt.getDate()));","if (!dayMatched) {","dt.setDate(1);","dt.setMonth(m);","dt.setFullYear(y);","daysInMonth = me.getDaysInMonth(dt);","if (d > 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 a=this;return s(a.getUTCFullYear(),4,"0")+"-"+s(a.getUTCMonth()+1,2,"0")+"-"+s(a.getUTCDate(),2,"0")+"T"+s(a.getUTCHours(),2,"0")+":"+s(a.getUTCMinutes(),2,"0")+":"+s(a.getUTCSeconds(),2,"0")+"."+s(a.getUTCMilliseconds(),3,"0")+"Z"}}function n(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(t,function(d,c){return b[c]})}return q={now:r.now,toString:function(a){if(!a){a=new r()}return a.getFullYear()+"-"+s(a.getMonth()+1,2,"0")+"-"+s(a.getDate(),2,"0")+"T"+s(a.getHours(),2,"0")+":"+s(a.getMinutes(),2,"0")+":"+s(a.getSeconds(),2,"0")},getElapsed:function(a,b){return Math.abs(a-(b||q.now()))},useStrict:false,formatCodeToRegex:function(a,b){var c=q.parseCodes[a];if(c){c=typeof c==="function"?c():c;q.parseCodes[a]=c}return c?Ext.applyIf({c:c.c?n(c.c,b||"{0}"):c.c},c):{g:0,c:null,s:Ext.String.escapeRegex(a)}},parseFunctions:{MS:function(a,b){var c=(a||"").match(o);return c?new r(((c[1]||"")+c[2])*1):null},time:function(a,b){var c=parseInt(a,10);if(c||c===0){return new r(c)}return null},timestamp:function(a,b){var c=parseInt(a,10);if(c||c===0){return new r(c*1000)}return null}},parseRegexes:[],formatFunctions:{MS:function(){return"\\/Date("+this.getTime()+")\\/"},time:function(){return this.getTime().toString()},timestamp:function(){return q.format(this,"U")}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{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",getShortMonthName:function(a){return q.monthNames[a].substring(0,3)},getShortDayName:function(a){return q.dayNames[a].substring(0,3)},getMonthNumber:function(a){return q.monthNumbers[a.substring(0,1).toUpperCase()+a.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return v.test(a.replace(l,""))},formatContainsDateInfo:function(a){return p.test(a.replace(l,""))},unescapeFormat:function(a){return a.replace(m,"")},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 b="Y-m-dTH:i:sP",d=[],e,a=b.length,c;for(e=0;e<a;++e){c=b.charAt(e);d.push(c==="T"?"'T'":q.getFormatCode(c))}return d.join(" + ")},C:function(){return"m.toISOString()"},U:"Math.round(m.getTime() / 1000)"},isValid:function(b,a,c,e,g,f,h){e=e||0;g=g||0;f=f||0;h=h||0;var d=q.add(new r(b<100?100:b,a-1,c,e,g,f,h),q.YEAR,b<100?b-100:0);return b===d.getFullYear()&&a===d.getMonth()+1&&c===d.getDate()&&e===d.getHours()&&g===d.getMinutes()&&f===d.getSeconds()&&h===d.getMilliseconds()},parse:function(a,c,b){var d=q.parseFunctions;if(d[c]==null){q.createParser(c)}return d[c].call(q,a,Ext.isDefined(b)?b:q.useStrict)},parseDate:function(a,c,b){return q.parse(a,c,b)},getFormatCode:function(a){var b=q.formatCodes[a];if(b){b=typeof b==="function"?b():b;q.formatCodes[a]=b}return b||("'"+Ext.String.escape(a)+"'")},createFormat:function(c){var d=[],b=false,e="",a;for(a=0;a<c.length;++a){e=c.charAt(a);if(!b&&e==="\\"){b=true}else{if(b){b=false;d.push("'"+Ext.String.escape(e)+"'")}else{if(e==="\n"){d.push("'\\n'")}else{d.push(q.getFormatCode(e))}}}}q.formatFunctions[c]=Ext.functionFactory("var m=this;return "+d.join("+"))},createParser:function(i){var f=q.parseRegexes.length,h=1,e=[],j=[],a=false,g="",c=0,b=i.length,k=[],d;for(;c<b;++c){g=i.charAt(c);if(!a&&g==="\\"){a=true}else{if(a){a=false;j.push(Ext.String.escape(g))}else{d=q.formatCodeToRegex(g,h);h+=d.g;j.push(d.s);if(d.g&&d.c){if(d.calcAtEnd){k.push(d.c)}else{e.push(d.c)}}}}}e=e.concat(k);q.parseRegexes[f]=new RegExp("^"+j.join("")+"$","i");q.parseFunctions[i]=Ext.functionFactory("input","strict",n(u,f,e.join("")))},parseCodes:{d:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|0[1-9])"},j:{g:1,c:"d = parseInt(results[{0}], 10);\n",s:"(3[0-1]|[1-2][0-9]|[1-9])"},D:function(){for(var b=[],a=0;a<7;b.push(q.getShortDayName(a)),++a){}return{g:0,c:null,s:"(?:"+b.join("|")+")"}},l:function(){return{g:0,c:null,s:"(?:"+q.dayNames.join("|")+")"}},N:{g:0,c:null,s:"[1-7]"},S:{g:0,c:null,s:"(?:st|nd|rd|th)"},w:{g:0,c:null,s:"[0-6]"},z:{g:1,c:"z = parseInt(results[{0}], 10);\n",s:"(\\d{1,3})"},W:{g:1,c:"W = parseInt(results[{0}], 10);\n",s:"(\\d{2})"},F:function(){return{g:1,c:"m = parseInt(me.getMonthNumber(results[{0}]), 10);\n",s:"("+q.monthNames.join("|")+")"}},M:function(){for(var b=[],a=0;a<12;b.push(q.getShortMonthName(a)),++a){}return Ext.applyIf({s:"("+b.join("|")+")"},q.formatCodeToRegex("F"))},m:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|0[1-9])"},n:{g:1,c:"m = parseInt(results[{0}], 10) - 1;\n",s:"(1[0-2]|[1-9])"},t:{g:0,c:null,s:"(?:\\d{2})"},L:{g:0,c:null,s:"(?:1|0)"},o:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},Y:{g:1,c:"y = parseInt(results[{0}], 10);\n",s:"(\\d{4})"},y:{g:1,c:"var ty = parseInt(results[{0}], 10);\ny = ty > 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 c=[],a=[q.formatCodeToRegex("Y",1),q.formatCodeToRegex("m",2),q.formatCodeToRegex("d",3),q.formatCodeToRegex("H",4),q.formatCodeToRegex("i",5),q.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){",q.formatCodeToRegex("P",8).c,"}else{",q.formatCodeToRegex("O",8).c,"}","}"].join("\n")}],b,d;for(b=0,d=a.length;b<d;++b){c.push(a[b].c)}return{g:1,c:c.join(""),s:[a[0].s,"(?:","-",a[1].s,"(?:","-",a[2].s,"(?:","(?:T| )?",a[3].s,":",a[4].s,"(?::",a[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")}},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}},dateFormat:function(b,a){return q.format(b,a)},isEqual:function(a,b){if(a&&b){return(a.getTime()===b.getTime())}return !(a||b)},format:function(a,c){var b=q.formatFunctions;if(!Ext.isDate(a)){return""}if(b[c]==null){q.createFormat(c)}return b[c].call(a)+""},getTimezone:function(a){return a.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,5})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(b,a){var c=b.getTimezoneOffset();return(c>0?"-":"+")+Ext.String.leftPad(Math.floor(Math.abs(c)/60),2,"0")+(a?":":"")+Ext.String.leftPad(Math.abs(c%60),2,"0")},getDayOfYear:function(d){var e=0,b=q.clone(d),a=d.getMonth(),c;for(c=0,b.setDate(1),b.setMonth(0);c<a;b.setMonth(++c)){e+=q.getDaysInMonth(b)}return e+d.getDate()-1},getWeekOfYear:(function(){var b=86400000,a=7*b;return function(e){var d=r.UTC(e.getFullYear(),e.getMonth(),e.getDate()+3)/b,f=Math.floor(d/7),c=new r(f*a).getUTCFullYear();return f-Math.floor(r.UTC(c,0,7)/a)+1}}()),isLeapYear:function(b){var a=b.getFullYear();return !!((a&3)===0&&(a%100||(a%400===0&&a)))},getFirstDayOfMonth:function(a){var b=(a.getDay()-(a.getDate()-1))%7;return(b<0)?(b+7):b},getLastDayOfMonth:function(a){return q.getLastDateOfMonth(a).getDay()},getFirstDateOfMonth:function(a){return new r(a.getFullYear(),a.getMonth(),1)},getLastDateOfMonth:function(a){return new r(a.getFullYear(),a.getMonth(),q.getDaysInMonth(a))},getDaysInMonth:(function(){var a=[31,28,31,30,31,30,31,31,30,31,30,31];return function(b){var c=b.getMonth();return c===1&&q.isLeapYear(b)?29:a[c]}}()),getSuffix:function(a){switch(a.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},clone:function(a){return new r(a.getTime())},isDST:function(a){return new r(a.getFullYear(),0,1).getTimezoneOffset()!==a.getTimezoneOffset()},clearTime:function(b,c){if(isNaN(b.getTime())){return b}if(c){return q.clearTime(q.clone(b))}var e=b.getDate(),a,d;b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0);if(b.getDate()!==e){for(a=1,d=q.add(b,q.HOUR,a);d.getDate()!==e;a++,d=q.add(b,q.HOUR,a)){}b.setDate(e);b.setHours(d.getHours())}return b},add:function(g,a,d){var c=q.clone(g),b,e,f=0;if(!a||d===0){return c}e=d-parseInt(d,10);d=parseInt(d,10);if(d){switch(a.toLowerCase()){case q.MILLI:c.setTime(c.getTime()+d);break;case q.SECOND:c.setTime(c.getTime()+d*1000);break;case q.MINUTE:c.setTime(c.getTime()+d*60*1000);break;case q.HOUR:c.setTime(c.getTime()+d*60*60*1000);break;case q.DAY:c.setDate(c.getDate()+d);break;case q.MONTH:b=g.getDate();if(b>28){b=Math.min(b,q.getLastDateOfMonth(q.add(q.getFirstDateOfMonth(g),q.MONTH,d)).getDate())}c.setDate(b);c.setMonth(g.getMonth()+d);break;case q.YEAR:b=g.getDate();if(b>28){b=Math.min(b,q.getLastDateOfMonth(q.add(q.getFirstDateOfMonth(g),q.YEAR,d)).getDate())}c.setDate(b);c.setFullYear(g.getFullYear()+d);break}}if(e){switch(a.toLowerCase()){case q.MILLI:f=1;break;case q.SECOND:f=1000;break;case q.MINUTE:f=1000*60;break;case q.HOUR:f=1000*60*60;break;case q.DAY:f=1000*60*60*24;break;case q.MONTH:b=q.getDaysInMonth(c);f=1000*60*60*24*b;break;case q.YEAR:b=(q.isLeapYear(c)?366:365);f=1000*60*60*24*b;break}if(f){c.setTime(c.getTime()+f*e)}}return c},subtract:function(a,b,c){return q.add(a,b,-c)},between:function(a,c,b){var d=a.getTime();return c.getTime()<=d&&d<=b.getTime()},compat:function(){var d,c=["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"],e=["dateFormat","format","getTimezone","getGMTOffset","getDayOfYear","getWeekOfYear","isLeapYear","getFirstDayOfMonth","getLastDayOfMonth","getDaysInMonth","getSuffix","clone","isDST","clearTime","add","between"],a=c.length,b=e.length,g,f,h;for(h=0;h<a;h++){g=c[h];r[g]=q[g]}for(d=0;d<b;d++){f=e[d];r.prototype[f]=function(){var i=Array.prototype.slice.call(arguments);i.unshift(this);return q[f].apply(q,i)}}},diff:function(a,b,d){var e,c=+b-a;switch(d){case q.MILLI:return c;case q.SECOND:return Math.floor(c/1000);case q.MINUTE:return Math.floor(c/60000);case q.HOUR:return Math.floor(c/3600000);case q.DAY:return Math.floor(c/86400000);case"w":return Math.floor(c/604800000);case q.MONTH:e=(b.getFullYear()*12+b.getMonth())-(a.getFullYear()*12+a.getMonth());if(q.add(a,d,e)>b){return e-1}return e;case q.YEAR:e=b.getFullYear()-a.getFullYear();if(q.add(a,d,e)>b){return e-1}else{return e}}},align:function(a,c,d){var b=new r(+a);switch(c.toLowerCase()){case q.MILLI:return b;case q.SECOND:b.setUTCSeconds(b.getUTCSeconds()-b.getUTCSeconds()%d);b.setUTCMilliseconds(0);return b;case q.MINUTE:b.setUTCMinutes(b.getUTCMinutes()-b.getUTCMinutes()%d);b.setUTCSeconds(0);b.setUTCMilliseconds(0);return b;case q.HOUR:b.setUTCHours(b.getUTCHours()-b.getUTCHours()%d);b.setUTCMinutes(0);b.setUTCSeconds(0);b.setUTCMilliseconds(0);return b;case q.DAY:if(d===7||d===14){b.setUTCDate(b.getUTCDate()-b.getUTCDay()+1)}b.setUTCHours(0);b.setUTCMinutes(0);b.setUTCSeconds(0);b.setUTCMilliseconds(0);return b;case q.MONTH:b.setUTCMonth(b.getUTCMonth()-(b.getUTCMonth()-1)%d,1);b.setUTCHours(0);b.setUTCMinutes(0);b.setUTCSeconds(0);b.setUTCMilliseconds(0);return b;case q.YEAR:b.setUTCFullYear(b.getUTCFullYear()-b.getUTCFullYear()%d,1,1);b.setUTCHours(0);b.setUTCMinutes(0);b.setUTCSeconds(0);b.setUTCMilliseconds(0);return a}}}}());Ext.Function=(function(){var y=0,o,v=[],n=[],s=0,r={},t=window,w=Ext.global,u=!!(w.setImmediate&&w.clearImmediate),p=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(a){var d=Ext.now(),c=Math.max(0,16-(d-y)),b=t.setTimeout(function(){a(d+c)},c);y=d+c;return b},x=function(){var d=v.length,a,c,b;o=null;for(c=0;c<d;c++){b=v[c];a=b[3];if(r[a]){b[0].apply(b[1]||w,b[2]||n);delete r[a]}}v=v.slice(d)},z=function(){Ext.elevateFunction(x)},q={flexSetter:function(a){return function(d,b){var e,c;if(d!==null){if(typeof d!=="string"){for(e in d){if(d.hasOwnProperty(e)){a.call(this,e,d[e])}}if(Ext.enumerables){for(c=Ext.enumerables.length;c--;){e=Ext.enumerables[c];if(d.hasOwnProperty(e)){a.call(this,e,d[e])}}}}else{a.call(this,d,b)}}return this}},bind:function(c,d,e,f){if(arguments.length===2){return function(){return c.apply(d,arguments)}}var a=c,b=Array.prototype.slice;return function(){var g=e||arguments;if(f===true){g=b.call(arguments,0);g=g.concat(e)}else{if(typeof f==="number"){g=b.call(arguments,0);Ext.Array.insert(g,f,e)}}return a.apply(d||w,g)}},bindCallback:function(a,b,c,d,e){return function(){var f=Ext.Array.slice(arguments);return Ext.callback(a,b,c?c.concat(f):f,d,e)}},pass:function(a,c,b){if(!Ext.isArray(c)){if(Ext.isIterable(c)){c=Ext.Array.clone(c)}else{c=c!==undefined?[c]:[]}}return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(b||this,d)}},alias:function(a,b){return function(){return a[b].apply(a,arguments)}},clone:function(a){return function(){return a.apply(this,arguments)}},createInterceptor:function(a,b,c,d){if(!Ext.isFunction(b)){return a}else{d=Ext.isDefined(d)?d:null;return function(){var e=this,f=arguments;return(b.apply(c||e||w,f)!==false)?a.apply(e||w,f):d}}},createDelayed:function(a,c,b,d,e){if(b||d){a=Ext.Function.bind(a,b,d,e)}return function(){var f=this,g=Array.prototype.slice.call(arguments);setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a,f,g)}else{a.apply(f,g)}},c)}},defer:function(a,c,b,d,e){a=Ext.Function.bind(a,b,d,e);if(c>0){return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else{a()}},c)}a();return 0},interval:function(a,c,b,d,e){a=Ext.Function.bind(a,b,d,e);return setInterval(function(){if(Ext.elevateFunction){Ext.elevateFunction(a)}else{a()}},c)},createSequence:function(b,a,c){if(!a){return b}else{return function(){var d=b.apply(this,arguments);a.apply(c||this,arguments);return d}}},createBuffered:function(a,d,b,c){var e;return function(){var f=c||Array.prototype.slice.call(arguments,0),g=b||this;if(e){clearTimeout(e)}e=setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(a,g,f)}else{a.apply(g,f)}},d)}},createAnimationFrame:function(b,c,d,a){var e;a=a||3;return function(){var f=d||Array.prototype.slice.call(arguments,0);c=c||this;if(a===3&&e){q.cancelAnimationFrame(e)}if((a&1)||!e){e=q.requestAnimationFrame(function(){e=null;b.apply(c,f)})}}},requestAnimationFrame:function(b,c,e){var a=++s,d=Array.prototype.slice.call(arguments,0);d[3]=a;r[a]=1;v.push(d);if(!o){o=p(Ext.elevateFunction?z:x)}return a},cancelAnimationFrame:function(a){delete r[a]},createThrottled:function(d,g,e){var c=0,h,f,a,b=function(){if(Ext.elevateFunction){Ext.elevateFunction(d,e,f)}else{d.apply(e,f)}c=Ext.now();a=null};return function(){if(!e){e=this}h=Ext.now()-c;f=arguments;if(h>=g){clearTimeout(a);b()}else{if(!a){a=Ext.defer(b,g-h)}}}},createBarrier:function(a,b,c){return function(){if(!--a){b.apply(c,arguments)}}},interceptBefore:function(d,e,b,c){var a=d[e]||Ext.emptyFn;return(d[e]=function(){var f=b.apply(c||this,arguments);a.apply(this,arguments);return f})},interceptAfter:function(d,e,b,c){var a=d[e]||Ext.emptyFn;return(d[e]=function(){a.apply(this,arguments);return b.apply(c||this,arguments)})},makeCallback:function(a,b){return function(){return b[a].apply(b,arguments)}},memoize:function(b,c,e){var d={},a=e&&Ext.isFunction(e);return function(f){var g=a?e.apply(c,arguments):f;if(!(g in d)){d[g]=b.apply(c,arguments)}return d[g]}}};Ext.asap=u?function(b,c,a){if(c!=null||a!=null){b=q.bind(b,c,a)}return setImmediate(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else{b()}})}:function(b,c,a){if(c!=null||a!=null){b=q.bind(b,c,a)}return setTimeout(function(){if(Ext.elevateFunction){Ext.elevateFunction(b)}else{b()}},0,true)},Ext.asapCancel=u?function(a){clearImmediate(a)}:function(a){clearTimeout(a)};Ext.defer=q.defer;Ext.interval=q.interval;Ext.pass=q.pass;Ext.bind=q.bind;Ext.deferCallback=q.requestAnimationFrame;return q})();Ext.Number=(new function(){var g=this,h=(0.9).toFixed()!=="1",e=Math,f={count:false,inclusive:false,wrap:true};Ext.apply(g,{Clip:{DEFAULT:f,COUNT:Ext.applyIf({count:true},f),INCLUSIVE:Ext.applyIf({inclusive:true},f),NOWRAP:Ext.applyIf({wrap:false},f)},clipIndices:function(b,a,n){n=n||f;var o=0,c=n.wrap,d,p,i;a=a||[];for(i=0;i<2;++i){d=p;p=a[i];if(p==null){p=o}else{if(i&&n.count){p+=d;p=(p>b)?b:p}else{if(c){p=(p<0)?(b+p):p}if(i&&n.inclusive){++p}p=(p<0)?0:((p>b)?b:p)}}o=b}a[0]=d;a[1]=(p<d)?d:p;return a},constrain:function(a,b,c){var d=parseFloat(a);if(b===null){b=a}if(c===null){c=a}return(d<b)?b:((d>c)?c:d)},snap:function(b,d,c,a){var j;if(b===undefined||b<c){return c||0}if(d){j=b%d;if(j!==0){b-=j;if(j*2>=d){b+=d}else{if(j*2<-d){b-=d}}}}return g.constrain(b,c,a)},snapInRange:function(b,j,c,a){var d;c=(c||0);if(b===undefined||b<c){return c}if(j&&(d=((b-c)%j))){b-=d;d*=2;if(d>=j){b+=j}}if(a!==undefined){if(b>(a=g.snapInRange(a,j,c))){b=a}}return b},sign:function(a){a=+a;if(a===0||isNaN(a)){return a}return(a>0)?1:-1},toFixed:h?function(a,c){c=c||0;var b=e.pow(10,c);return(e.round(a*b)/b).toFixed(c)}:function(a,b){return a.toFixed(b)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(a,b){return e.floor(e.random()*(b-a+1)+a)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return g.from.apply(this,arguments)}}());(function(){var k=function(){},g=/^\?/,l=/(\[):?([^\]]*)\]/g,h=/^([^\[]+)/,i=/\+/g,j=Ext.Object={chain:Object.create||function(a){k.prototype=a;var b=new k();k.prototype=null;return b},clear:function(b){for(var a in b){delete b[a]}return b},freeze:Object.freeze?function(a,c){if(a&&typeof a==="object"&&!Object.isFrozen(a)){Object.freeze(a);if(c){for(var b in a){j.freeze(a[b],c)}}}return a}:Ext.identityFn,toQueryObjects:function(d,o,e){var f=j.toQueryObjects,a=[],c,b;if(Ext.isArray(o)){for(c=0,b=o.length;c<b;c++){if(e){a=a.concat(f(d+"["+c+"]",o[c],true))}else{a.push({name:d,value:o[c]})}}}else{if(Ext.isObject(o)){for(c in o){if(o.hasOwnProperty(c)){if(e){a=a.concat(f(d+"["+c+"]",o[c],true))}else{a.push({name:d,value:o[c]})}}}}else{a.push({name:d,value:o})}}return a},toQueryString:function(f,s){var e=[],r=[],c,d,b,t,a;for(c in f){if(f.hasOwnProperty(c)){e=e.concat(j.toQueryObjects(c,f[c],s))}}for(d=0,b=e.length;d<b;d++){t=e[d];a=t.value;if(Ext.isEmpty(a)){a=""}else{if(Ext.isDate(a)){a=Ext.Date.toString(a)}}r.push(encodeURIComponent(t.name)+"="+encodeURIComponent(String(a)))}return r.join("&")},fromQueryString:function(K,f){var E=K.replace(g,"").split("&"),c={},e,G,a,D,A,I,C,B,L,H,d,F,b,J;for(A=0,I=E.length;A<I;A++){C=E[A];if(C.length>0){G=C.split("=");a=G[0];a=a.replace(i,"%20");a=decodeURIComponent(a);D=G[1];if(D!==undefined){D=D.replace(i,"%20");D=decodeURIComponent(D)}else{D=""}if(!f){if(c.hasOwnProperty(a)){if(!Ext.isArray(c[a])){c[a]=[c[a]]}c[a].push(D)}else{c[a]=D}}else{H=a.match(l);d=a.match(h);a=d[0];F=[];if(H===null){c[a]=D;continue}for(B=0,L=H.length;B<L;B++){b=H[B];b=(b.length===2)?"":b.substring(1,b.length-1);F.push(b)}F.unshift(a);e=c;for(B=0,L=F.length;B<L;B++){b=F[B];if(B===L-1){if(Ext.isArray(e)&&b===""){e.push(D)}else{e[b]=D}}else{if(e[b]===undefined||typeof e[b]==="string"){J=F[B+1];e[b]=(Ext.isNumeric(J)||J==="")?[]:{}}e=e[b]}}}}}return c},each:function(e,b,c){var f=Ext.enumerables,d,a;if(e){c=c||e;for(a in e){if(e.hasOwnProperty(a)){if(b.call(c,a,e[a],e)===false){return}}}if(f){for(d=f.length;d--;){if(e.hasOwnProperty(a=f[d])){if(b.call(c,a,e[a],e)===false){return}}}}}},eachValue:function(e,b,c){var f=Ext.enumerables,d,a;c=c||e;for(a in e){if(e.hasOwnProperty(a)){if(b.call(c,e[a])===false){return}}}if(f){for(d=f.length;d--;){if(e.hasOwnProperty(a=f[d])){if(b.call(c,e[a])===false){return}}}}},merge:function(c){var e=1,d=arguments.length,s=j.merge,q=Ext.clone,f,a,b,r;for(;e<d;e++){f=arguments[e];for(a in f){b=f[a];if(b&&b.constructor===Object){r=c[a];if(r&&r.constructor===Object){s(r,b)}else{c[a]=q(b)}}else{c[a]=b}}}return c},mergeIf:function(f){var b=1,a=arguments.length,d=Ext.clone,e,c,o;for(;b<a;b++){e=arguments[b];for(c in e){if(!(c in f)){o=e[c];if(o&&o.constructor===Object){f[c]=d(o)}else{f[c]=o}}}}return f},getAllKeys:function(c){var b=[],a;for(a in c){b.push(a)}return b},getKey:function(c,a){for(var b in c){if(c.hasOwnProperty(b)&&c[b]===a){return b}}return null},getValues:function(b){var c=[],a;for(a in b){if(b.hasOwnProperty(a)){c.push(b[a])}}return c},getKeys:(typeof Object.keys=="function")?function(a){if(!a){return[]}return Object.keys(a)}:function(c){var b=[],a;for(a in c){if(c.hasOwnProperty(a)){b.push(a)}}return b},getSize:function(c){var b=0,a;for(a in c){if(c.hasOwnProperty(a)){b++}}return b},isEmpty:function(b){for(var a in b){if(b.hasOwnProperty(a)){return false}}return true},equals:(function(){var a=function(b,c){var d;for(d in b){if(b.hasOwnProperty(d)){if(b[d]!==c[d]){return false}}}return true};return function(b,c){if(b===c){return true}if(b&&c){return a(b,c)&&a(c,b)}else{if(!b&&!c){return b===c}else{return false}}}})(),fork:function(a){var d,c,b;if(a&&a.constructor===Object){d=j.chain(a);for(c in a){b=a[c];if(b){if(b.constructor===Object){d[c]=j.fork(b)}else{if(b instanceof Array){d[c]=Ext.Array.clone(b)}}}}}else{d=a}return d},defineProperty:("defineProperty" in Object)?Object.defineProperty:function(b,c,a){if(!Object.prototype.__defineGetter__){return}if(a.get){b.__defineGetter__(c,a.get)}if(a.set){b.__defineSetter__(c,a.set)}},classify:function(d){var e=d,b=[],f={},n=function(){var r=0,q=b.length,m;for(;r<q;r++){m=b[r];this[m]=new f[m]()}},c,a;for(c in d){if(d.hasOwnProperty(c)){a=d[c];if(a&&a.constructor===Object){b.push(c);f[c]=j.classify(a)}}}n.prototype=e;return n}};Ext.merge=Ext.Object.merge;Ext.mergeIf=Ext.Object.mergeIf}());Ext.apply(Ext,{_namedScopes:{"this":{isThis:1},controller:{isController:1},self:{isSelf:1},"self.controller":{isSelf:1,isController:1}},escapeId:(function(){var j=/^[a-zA-Z_][a-zA-Z0-9_\-]*$/i,i=/([\W]{1})/g,f=/^(\d)/g,g=function(a,b){return"\\"+b},h=function(a,b){return"\\00"+b.charCodeAt(0).toString(16)+" "};return function(a){return j.test(a)?a:a.replace(i,g).replace(f,h)}}()),callback:function(k,m,o,p,i,l){if(!k){return}var n=(m in Ext._namedScopes);if(k.charAt){if((!m||n)&&i){m=i.resolveListenerScope(n?m:l)}k=m[k]}else{if(n){m=l||i}else{if(!m){m=i}}}var j;if(k&&Ext.isFunction(k)){m=m||Ext.global;if(p){Ext.defer(k,p,m,o)}else{if(Ext.elevateFunction){j=Ext.elevateFunction(k,m,o)}else{if(o){j=k.apply(m,o)}else{j=k.call(m)}}}}return j},coerce:function(h,i){var j=Ext.typeOf(h),f=Ext.typeOf(i),g=typeof h==="string";if(j!==f){switch(f){case"string":return String(h);case"number":return Number(h);case"boolean":return g&&(!h||h==="false")?false:Boolean(h);case"null":return g&&(!h||h==="null")?null:h;case"undefined":return g&&(!h||h==="undefined")?undefined:h;case"date":return g&&isNaN(h)?Ext.Date.parse(h,Ext.Date.defaultFormat):Date(Number(h))}}return h},copyTo:function(h,m,k,l){if(typeof k==="string"){k=k.split(Ext.propertyNameSplitRe)}for(var i,n=0,j=k?k.length:0;n<j;n++){i=k[n];if(l||m.hasOwnProperty(i)){h[i]=m[i]}}return h},copy:function(h,m,k,l){if(typeof k==="string"){k=k.split(Ext.propertyNameSplitRe)}for(var i,n=0,j=k?k.length:0;n<j;n++){i=k[n];if(m.hasOwnProperty(i)||(l&&i in m)){h[i]=m[i]}}return h},propertyNameSplitRe:/[,;\s]+/,copyToIf:function(h,k,j){if(typeof j==="string"){j=j.split(Ext.propertyNameSplitRe)}for(var g,l=0,i=j?j.length:0;l<i;l++){g=j[l];if(h[g]===undefined){h[g]=k[g]}}return h},copyIf:function(h,k,j){if(typeof j==="string"){j=j.split(Ext.propertyNameSplitRe)}for(var g,l=0,i=j?j.length:0;l<i;l++){g=j[l];if(!(g in h)&&(g in k)){h[g]=k[g]}}return h},extend:(function(){var d=Object.prototype.constructor,c=function(a){for(var b in a){if(!a.hasOwnProperty(b)){continue}this[b]=a[b]}};return function(l,a,i){if(Ext.isObject(a)){i=a;a=l;l=i.constructor!==d?i.constructor:function(){a.apply(this,arguments)}}var j=function(){},k,b=a.prototype;j.prototype=b;k=l.prototype=new j();k.constructor=l;l.superclass=b;if(b.constructor===d){b.constructor=a}l.override=function(e){Ext.override(l,e)};k.override=c;k.proto=k;l.override(i);l.extend=function(e){return Ext.extend(l,e)};return l}}()),iterate:function(e,f,d){if(Ext.isEmpty(e)){return}if(d===undefined){d=e}if(Ext.isIterable(e)){Ext.Array.each.call(Ext.Array,e,f,d)}else{Ext.Object.each.call(Ext.Object,e,f,d)}},_resourcePoolRe:/^[<]([^<>@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(f){var d=f,e;if(f&&f.charAt(0)==="<"){e=Ext._resourcePoolRe.exec(f);if(e){d=Ext.getResourcePath(e[3],e[1],e[2])}}return d},urlEncode:function(){var d=Ext.Array.from(arguments),c="";if(Ext.isString(d[1])){c=d[1]+"&";d[1]=false}return c+Ext.Object.toQueryString.apply(Ext.Object,d)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(h){var e=Ext._scrollbarSize;if(h||!e){var f=document.body,g=document.createElement("div");g.style.width=g.style.height="100px";g.style.overflow="scroll";g.style.position="absolute";f.appendChild(g);Ext._scrollbarSize=e={width:g.offsetWidth-g.clientWidth,height:g.offsetHeight-g.clientHeight};f.removeChild(g)}return e},typeOf:(function(){var f=/\S/,h=Object.prototype.toString,g={number:1,string:1,"boolean":1,"undefined":1},e={"[object Array]":"array","[object Date]":"date","[object Boolean]":"boolean","[object Number]":"number","[object RegExp]":"regexp"};return function(b){if(b===null){return"null"}var c=typeof b,d,a;if(g[c]){return c}d=e[a=h.call(b)];if(d){return d}if(c==="function"){return"function"}if(c==="object"){if(b.nodeType!==undefined){if(b.nodeType===3){return f.test(b.nodeValue)?"textnode":"whitespace"}else{return"element"}}return"object"}return a}}()),factory:function(g,j,h,i){var k=Ext.ClassManager,l;if(!g||g.isInstance){if(h&&h!==g){h.destroy()}return g}if(i){if(typeof g==="string"){return k.instantiateByAlias(i+"."+g)}else{if(Ext.isObject(g)&&"type" in g){return k.instantiateByAlias(i+"."+g.type,g)}}}if(g===true){return h||Ext.create(j)}if("xtype" in g){l=k.instantiateByAlias("widget."+g.xtype,g)}else{if("xclass" in g){l=Ext.create(g.xclass,g)}}if(l){if(h){h.destroy()}return l}if(h){return h.setConfig(g)}return Ext.create(j,g)},log:(function(){var b=function(){};b.info=b.warn=b.error=Ext.emptyFn;return b}())});(function(){var o=[""],k=/([^\d\.])/,i=/[^\d]/g,j=/[\-+]/g,l=/\s/g,p=/_/g,m={classic:1,modern:1},n;Ext.Version=n=function(a,e){var w=this,g=w.padModes,u,c,f,d,v,h,b;if(a.isVersion){a=a.version}w.version=b=String(a).toLowerCase().replace(p,".").replace(j,"");u=b.charAt(0);if(u in g){b=b.substring(1);f=g[u]}else{f=e?g[e]:0}w.pad=f;h=b.search(k);w.shortVersion=b;if(h!==-1){w.release=v=b.substr(h,a.length);w.shortVersion=b.substr(0,h);v=n.releaseValueMap[v]||v}w.releaseValue=v||f;w.shortVersion=w.shortVersion.replace(i,"");w.parts=d=b.split(".");for(c=d.length;c--;){d[c]=parseInt(d[c],10)}if(f===Infinity){d.push(f)}w.major=d[0]||f;w.minor=d[1]||f;w.patch=d[2]||f;w.build=d[3]||f;return w};n.prototype={isVersion:true,padModes:{"~":NaN,"^":Infinity},release:"",compareTo:function(z){var y=this,e=y.pad,a=y.parts,x=a.length,f=z.isVersion?z:new n(z),h=f.pad,b=f.parts,c=b.length,w=Math.max(x,c),d,g,A;for(d=0;d<w;d++){g=(d<x)?a[d]:e;A=(d<c)?b[d]:h;if(g<A){return -1}if(g>A){return 1}}g=y.releaseValue;A=f.releaseValue;if(g<A){return -1}if(g>A){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(a){return this.compareTo(a)>0},isGreaterThanOrEqual:function(a){return this.compareTo(a)>=0},isLessThan:function(a){return this.compareTo(a)<0},isLessThanOrEqual:function(a){return this.compareTo(a)<=0},equals:function(a){return this.compareTo(a)===0},match:function(a){a=String(a);return this.version.substr(0,a.length)===a},toArray:function(){var a=this;return[a.getMajor(),a.getMinor(),a.getPatch(),a.getBuild(),a.getRelease()]},getShortVersion:function(){return this.shortVersion},gt:function(a){return this.compareTo(a)>0},lt:function(a){return this.compareTo(a)<0},gtEq:function(a){return this.compareTo(a)>=0},ltEq:function(a){return this.compareTo(a)<=0}};Ext.apply(n,{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(a){return !a?0:(isNaN(a)?this.releaseValueMap[a]||a:parseInt(a,10))},compare:function(a,b){var c=a.isVersion?a:new n(a);return c.compareTo(b)},set:function(e,a,b){var c=n.aliases.to[a],d=b.isVersion?b:new n(b),f;e[a]=d;if(c){for(f=c.length;f-->0;){e[c[f]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,a;if(!b){a=c.ext||c.touch||c.core}else{a=c[n.aliases.from[b]||b]}return a||Ext.getVersion(b)},setCompatVersion:function(a,b){n.set(Ext.compatVersions,a,b)},setVersion:function(a,b){if(a in m){Ext.toolkit=a}Ext.lastRegisteredVersion=n.set(Ext.versions,a,b);return this},getVersion:function(a){var b=Ext.versions;if(!a){return b.ext||b.touch||b.core}return b[n.aliases.from[a]||a]},checkVersion:function(c,D){var H=Ext.isArray(c),g=n.aliases.from,C=H?c:o,h=C.length,f=Ext.versions,E=f.ext||f.touch,b,F,I,e,d,A,B,a,G;if(!H){o[0]=c}for(b=0;b<h;++b){if(!Ext.isString(B=C[b])){I=Ext.checkVersion(B.and||B.or,!B.or);if(B.not){I=!I}}else{if(B.indexOf(" ")>=0){B=B.replace(l,"")}F=B.indexOf("@");if(F<0){a=B;G=E}else{A=B.substring(0,F);if(!(G=f[g[A]||A])){if(D){return false}continue}a=B.substring(F+1)}F=a.indexOf("-");if(F<0){if(a.charAt(F=a.length-1)==="+"){e=a.substring(0,F);d=null}else{e=d=a}}else{if(F>0){e=a.substring(0,F);d=a.substring(F+1)}else{e=null;d=a.substring(F+1)}}I=true;if(e){e=new n(e,"~");I=e.ltEq(G)}if(I&&d){d=new n(d,"~");I=d.gtEq(G)}}if(I){if(!D){return true}}else{if(D){return false}}}return !!D},deprecate:function(d,b,a,c){if(n.compare(Ext.getVersion(d),b)<1){a.call(c)}}})}());(function(i){var h=(i&&i.packages)||{},j=i&&i.compatibility,f,g;for(f in h){g=h[f];Ext.setVersion(f,g.version)}if(j){if(Ext.isString(j)){Ext.setCompatVersion("core",j)}else{for(f in j){Ext.setCompatVersion(f,j[f])}}}if(!h.ext&&!h.touch){Ext.setVersion("ext","6.0.1.250");Ext.setVersion("core","6.0.1.250")}})(Ext.manifest);Ext.Config=function(d){var f=this,e=d.charAt(0).toUpperCase()+d.substr(1);f.name=d;f.names={internal:"_"+d,initializing:"is"+e+"Initializing",apply:"apply"+e,update:"update"+e,get:"get"+e,set:"set"+e,initGet:"initGet"+e,changeEvent:d.toLowerCase()+"change"};f.root=f};Ext.Config.map={};Ext.Config.get=function(d){var f=Ext.Config.map,e=f[d]||(f[d]=new Ext.Config(d));return e};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(b){return b.$configPrefixed?this.names.internal:this.name},mergeNew:function(i,g,j,k){var h,l;if(!g){h=i}else{if(!i){h=g}else{h=Ext.Object.chain(g);for(l in i){if(!k||!(l in h)){h[l]=i[l]}}}}return h},mergeSets:function(j,l,h){var g=l?Ext.Object.chain(l):{},k,i;if(j instanceof Array){for(k=j.length;k--;){i=j[k];if(!h||!(i in g)){g[i]=true}}}else{if(j){if(j.constructor===Object){for(k in j){i=j[k];if(!h||!(k in g)){g[k]=i}}}else{if(!h||!(j in g)){g[j]=true}}}}return g},makeGetter:function(){var d=this.name,c=this.names.internal;return function(){var a=this.$configPrefixed?c:d;return this[a]}},makeInitGetter:function(){var g=this.name,h=this.names,i=h.set,f=h.get,j=h.initializing;return function(){var a=this;a[j]=true;delete a[f];a[i](a.config[g]);delete a[j];return a[f].apply(a,arguments)}},makeSetter:function(){var i=this.name,l=this.names,n=l.internal,m=l.get,h=l.apply,j=l.update,k;k=function(a){var b=this,c=b.$configPrefixed?n:i,d=b[c];delete b[m];if(!b[h]||(a=b[h](a,d))!==undefined){if(a!==(d=b[c])){b[c]=a;if(b[j]){b[j](a,d)}}}return b};k.$isDefault=true;return k},makeEventedSetter:function(){var q=this.name,l=this.names,j=l.internal,r=l.get,k=l.apply,o=l.update,m=l.changeEvent,n=function(b,a,d,c){b[c]=a;if(b[o]){b[o](a,d)}},p;p=function(a){var b=this,c=b.$configPrefixed?j:q,d=b[c];delete b[r];if(!b[k]||(a=b[k](a,d))!==undefined){if(a!==(d=b[c])){if(b.isConfiguring){b[c]=a;if(b[o]){b[o](a,d)}}else{b.fireEventedAction(m,[b,a,d],n,b,[b,a,d,c])}}}return b};p.$isDefault=true;return p}};(function(){var d=Ext.Config,f=d.map,e=Ext.Object;Ext.Configurator=function(h){var b=this,c=h.prototype,a=h.superclass?h.superclass.self.$config:null;b.cls=h;b.superCfg=a;if(a){b.configs=e.chain(a.configs);b.cachedConfigs=e.chain(a.cachedConfigs);b.initMap=e.chain(a.initMap);b.values=e.chain(a.values);b.needsFork=a.needsFork}else{b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}c.config=c.defaultConfig=b.values;h.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:false,initList:null,add:function(y,N){var s=this,J=s.cls,G=s.configs,c=s.cachedConfigs,E=s.initMap,B=J.prototype,b=N&&N.$config.configs,M=s.values,H,F,z,L,K,I,a,C,D,A;for(a in y){A=y[a];H=A&&A.constructor===Object;F=H&&"$value" in A?A:null;if(F){z=!!F.cached;A=F.$value;H=A&&A.constructor===Object}L=F&&F.merge;K=G[a];if(K){if(N){L=K.merge;if(!L){continue}F=null}else{L=L||K.merge}I=M[a];if(L){A=L.call(K,A,I,J,N)}else{if(H){if(I&&I.constructor===Object){A=e.merge({},I,A)}}}}else{if(b){K=b[a];F=null}else{K=d.get(a)}G[a]=K;if(K.cached||z){c[a]=true}C=K.names;if(!B[D=C.get]){B[D]=K.getter||K.getGetter()}if(!B[D=C.set]){B[D]=(F&&F.evented)?(K.eventedSetter||K.getEventedSetter()):(K.setter||K.getSetter())}}if(F){if(K.owner!==J){G[a]=K=Ext.Object.chain(K);K.owner=J}Ext.apply(K,F);delete K.$value}if(!s.needsFork&&A&&(A.constructor===Object||A instanceof Array)){s.needsFork=true}if(A!==null){E[a]=true}else{if(B.$configPrefixed){B[G[a].names.internal]=null}else{B[G[a].name]=null}if(a in E){E[a]=false}}M[a]=A}},configure:function(c,O){var a=this,P=a.configs,N=a.initMap,L=a.initListMap,C=a.initList,K=a.cls.prototype,U=a.values,I=0,F=!C,T,S,R,H,D,E,Q,M,J,G,b,i,V;U=a.needsFork?e.fork(U):e.chain(U);c.isConfiguring=true;if(F){a.initList=C=[];a.initListMap=L={};c.isFirstInstance=true;for(J in N){H=N[J];S=P[J];b=S.cached;if(H){M=S.names;G=U[J];if(!K[M.set].$isDefault||K[M.apply]||K[M.update]||typeof G==="object"){if(b){(T||(T=[])).push(S)}else{C.push(S);L[J]=true}c[M.get]=S.initGetter||S.getInitGetter()}else{K[S.getInternalName(K)]=G}}else{if(b){K[S.getInternalName(K)]=undefined}}}}Q=T&&T.length;if(Q){for(D=0;D<Q;++D){E=T[D].getInternalName(K);c[E]=null}for(D=0;D<Q;++D){M=(S=T[D]).names;R=M.get;if(c.hasOwnProperty(R)){c[M.set](U[S.name]);delete c[R]}}for(D=0;D<Q;++D){E=T[D].getInternalName(K);K[E]=c[E];delete c[E]}}if(O&&O.platformConfig){O=a.resolvePlatformConfig(c,O)}if(F){if(c.afterCachedConfig&&!c.afterCachedConfig.$nullFn){c.afterCachedConfig(O)}}c.config=U;for(D=0,Q=C.length;D<Q;++D){S=C[D];c[S.names.get]=S.initGetter||S.getInitGetter()}if(c.transformInstanceConfig){O=c.transformInstanceConfig(O)}if(O){for(J in O){G=O[J];S=P[J];if(!S){c[J]=G}else{if(!S.lazy){++I}if(!L[J]){c[S.names.get]=S.initGetter||S.getInitGetter()}if(S.merge){G=S.merge(G,U[J],c)}else{if(G&&G.constructor===Object){i=U[J];if(i&&i.constructor===Object){G=e.merge(U[J],G)}else{G=Ext.clone(G)}}}}U[J]=G}}if(c.beforeInitConfig&&!c.beforeInitConfig.$nullFn){if(c.beforeInitConfig(O)===false){return}}if(O){for(J in O){if(!I){break}S=P[J];if(S&&!S.lazy){--I;M=S.names;R=M.get;if(c.hasOwnProperty(R)){c[M.set](U[J]);delete c[M.get]}}}}for(D=0,Q=C.length;D<Q;++D){S=C[D];M=S.names;R=M.get;if(!S.lazy&&c.hasOwnProperty(R)){c[M.set](U[S.name]);delete c[R]}}delete c.isConfiguring},getCurrentConfig:function(c){var h=c.defaultConfig,a={},b;for(b in h){a[b]=c[f[b].names.get]()}return a},merge:function(p,c,m){var a=this.configs,n,b,l,o;for(n in m){b=m[n];o=a[n];if(o){if(o.merge){b=o.merge(b,c[n],p)}else{if(b&&b.constructor===Object){l=c[n];if(l&&l.constructor===Object){b=Ext.Object.merge(l,b)}else{b=Ext.clone(b)}}}}c[n]=b}return c},reconfigure:function(a,u,D){var y=a.config,x=[],b=a.$configStrict&&!(D&&D.strict===false),t=this.configs,A=D&&D.defaults,v,c,z,w,B,i,C;for(B in u){if(A&&a.hasOwnProperty(B)){continue}y[B]=u[B];v=t[B];if(v){a[v.names.get]=v.initGetter||v.getInitGetter()}else{C=a.self.prototype[B];if(b){if((typeof C==="function")&&!C.$nullFn){continue}}}x.push(B)}for(z=0,w=x.length;z<w;z++){B=x[z];v=t[B];if(v){i=v.names;c=i.get;if(a.hasOwnProperty(c)){a[i.set](u[B]);delete a[c]}}else{v=f[B]||Ext.Config.get(B);i=v.names;if(a[i.set]){a[i.set](u[B])}else{a[B]=u[B]}}}},resolvePlatformConfig:function(n,a){var c=a&&a.platformConfig,m=a,l,i,b;if(c){i=Ext.getPlatformConfigKeys(c);b=i.length;if(b){m=Ext.merge({},m);for(l=0,b=i.length;l<b;++l){this.merge(n,m,c[i[l]])}}}return m}}}());Ext.Base=(function(v){var w=[],p,n=[],m=function(d,e){var b=this,f,a,c;if(d){a=Ext.Config.map[d];c=a.names.get;if(e&&b.hasOwnProperty(c)){f=b.config[d]}else{f=b[c]()}}else{f=b.getCurrentConfig()}return f},s=function(a){return function(){return this[a].apply(this,arguments)}},x=Ext.Version,q=/^\d/,o={},t={},r=function(){},u=r.prototype;Ext.apply(r,{$className:"Ext.Base",$isClass:true,create:function(){return Ext.create.apply(Ext,[this].concat(Array.prototype.slice.call(arguments,0)))},addDeprecations:function(h){var l=this,I=[],G=Ext.getCompatVersion(h.name),F,d,k,c,j,f,a,g,b,i,e,J,E,H;for(d in h){if(q.test(d)){H=new Ext.Version(d);H.deprecations=h[d];I.push(H)}}I.sort(x.compare);for(k=I.length;k--;){F=(H=I[k]).deprecations;j=l.prototype;E=F.statics;f=G&&G.lt(H);if(!f){break}while(F){b=F.methods;if(b){for(i in b){J=b[i];g=null;if(!J){}else{if(Ext.isString(J)){if(f){g=s(J)}}else{c="";if(J.message||J.fn){J=J.fn}a=j.hasOwnProperty(i)&&j[i];if(f&&J){J.$owner=l;J.$name=i;if(a){J.$previous=a}g=J}}}if(g){j[i]=g}}}F=E;E=null;j=l}}},extend:function(e){var c=this,a=e.prototype,g,f,d,h,b;g=c.prototype=Ext.Object.chain(a);g.self=c;c.superclass=g.superclass=a;if(!e.$isClass){for(f in u){if(f in g){g[f]=u[f]}}}b=a.$inheritableStatics;if(b){for(f=0,d=b.length;f<d;f++){h=b[f];if(!c.hasOwnProperty(h)){c[h]=e[h]}}}if(e.$onExtended){c.$onExtended=e.$onExtended.slice()}c.getConfigurator()},$onExtended:[],triggerExtended:function(){var c=this.$onExtended,d=c.length,a,b;if(d>0){for(a=0;a<d;a++){b=c[a];b.fn.apply(b.scope||this,arguments)}}},onExtended:function(b,a){this.$onExtended.push({fn:b,scope:a});return this},addStatics:function(a){this.addMembers(a,true);return this},addInheritableStatics:function(f){var c,a,d=this.prototype,e,b;c=d.$inheritableStatics;a=d.$hasInheritableStatics;if(!c){c=d.$inheritableStatics=[];a=d.$hasInheritableStatics={}}for(e in f){if(f.hasOwnProperty(e)){b=f[e];this[e]=b;if(!a[e]){a[e]=true;c.push(e)}}}return this},addMembers:function(b,d,g){var i=this,D=Ext.Function.clone,k=d?i:i.prototype,a=!d&&k.defaultConfig,f=Ext.enumerables,C=b.privates,l,E,j,F,h,e,c;if(C){delete b.privates;if(!d){c=C.statics;delete C.statics}i.addMembers(C,d,e);if(c){i.addMembers(c,true,e)}}for(h in b){if(b.hasOwnProperty(h)){F=b[h];if(typeof F==="function"&&!F.$isClass&&!F.$nullFn){if(F.$owner){F=D(F)}if(k.hasOwnProperty(h)){F.$previous=k[h]}F.$owner=i;F.$name=h}else{if(a&&(h in a)&&!k.config.hasOwnProperty(h)){(l||(l={}))[h]=F;continue}}k[h]=F}}if(l){i.addConfig(l)}if(f){for(E=0,j=f.length;E<j;++E){if(b.hasOwnProperty(h=f[E])){F=b[h];if(F&&!F.$nullFn){if(F.$owner){F=D(F)}F.$owner=i;F.$name=h;if(k.hasOwnProperty(h)){F.$previous=k[h]}}k[h]=F}}}return this},addMember:function(a,b){o[a]=b;this.addMembers(o);delete o[a];return this},borrow:function(b,a){var f=b.prototype,d={},e,c,g;a=Ext.Array.from(a);for(e=0,c=a.length;e<c;e++){g=a[e];d[g]=f[g]}return this.addMembers(d)},override:function(g){var e=this,b=g.statics,c=g.inheritableStatics,f=g.config,a=g.mixins,d=g.cachedConfig;if(b||c||f){g=Ext.apply({},g)}if(b){e.addMembers(b,true);delete g.statics}if(c){e.addInheritableStatics(c);delete g.inheritableStatics}if(f){e.addConfig(f);delete g.config}if(d){e.addCachedConfig(d);delete g.cachedConfig}delete g.mixins;e.addMembers(g);if(a){e.mixin(a)}return e},callParent:function(a){var b;return(b=this.callParent.caller)&&(b.$previous||((b=b.$owner?b:b.caller)&&b.$owner.superclass.self[b.$name])).apply(this,a||w)},callSuper:function(a){var b;return(b=this.callSuper.caller)&&((b=b.$owner?b:b.caller)&&b.$owner.superclass.self[b.$name]).apply(this,a||w)},mixin:function(f,e){var z=this,g,k,h,l,d,a,i,j,b;if(typeof f!=="string"){b=f;if(b instanceof Array){for(d=0,a=b.length;d<a;d++){g=b[d];z.mixin(g.prototype.mixinId||g.$className,g)}}else{for(var c in b){z.mixin(c,b[c])}}return}g=e.prototype;k=z.prototype;if(g.onClassMixedIn){g.onClassMixedIn.call(e,z)}if(!k.hasOwnProperty("mixins")){if("mixins" in k){k.mixins=Ext.Object.chain(k.mixins)}else{k.mixins={}}}for(h in g){j=g[h];if(h==="mixins"){Ext.applyIf(k.mixins,j)}else{if(!(h==="mixinId"||h==="config")&&(k[h]===undefined)){k[h]=j}}}l=g.$inheritableStatics;if(l){for(d=0,a=l.length;d<a;d++){i=l[d];if(!z.hasOwnProperty(i)){z[i]=e[i]}}}if("config" in g){z.addConfig(g.config,e)}k.mixins[f]=g;if(g.afterClassMixedIn){g.afterClassMixedIn.call(e,z)}return z},addConfig:function(c,b){var a=this.$config||this.getConfigurator();a.add(c,b)},addCachedConfig:function(a,c){var b={},d;for(d in a){b[d]={cached:true,$value:a[d]}}this.addConfig(b,c)},getConfigurator:function(){return this.$config||new Ext.Configurator(this)},getName:function(){return Ext.getClassName(this)},createAlias:v(function(b,a){t[b]=function(){return this[a].apply(this,arguments)};this.override(t);delete t[b]})});for(p in r){if(r.hasOwnProperty(p)){n.push(p)}}r.$staticMembers=n;r.getConfigurator();r.addMembers({$className:"Ext.Base",isInstance:true,$configPrefixed:true,$configStrict:true,isConfiguring:false,isFirstInstance:false,destroyed:false,statics:function(){var b=this.statics.caller,a=this.self;if(!b){return a}return b.$owner},callParent:function(c){var b,a=(b=this.callParent.caller)&&(b.$previous||((b=b.$owner?b:b.caller)&&b.$owner.superclass[b.$name]));return a.apply(this,c||w)},callSuper:function(c){var b,a=(b=this.callSuper.caller)&&((b=b.$owner?b:b.caller)&&b.$owner.superclass[b.$name]);return a.apply(this,c||w)},self:r,constructor:function(){return this},getConfigurator:function(){return this.$config||this.self.getConfigurator()},initConfig:function(b){var c=this,a=c.getConfigurator();c.initConfig=Ext.emptyFn;c.initialConfig=b||{};a.configure(c,b);return c},beforeInitConfig:Ext.emptyFn,getConfig:m,setConfig:function(d,b,e){var c=this,a;if(d){if(typeof d==="string"){a={};a[d]=b}else{a=d}c.getConfigurator().reconfigure(c,a,e)}return c},getCurrentConfig:function(){var a=this.getConfigurator();return a.getCurrentConfig(this)},hasConfig:function(a){return a in this.defaultConfig},getInitialConfig:function(b){var a=this.config;if(!b){return a}return a[b]},$links:null,link:function(d,b){var c=this,a=c.$links||(c.$links={});a[d]=true;c[d]=b;return b},unlink:function(b){var d=this,a,e,f,c;for(a=0,e=b.length;a<e;a++){f=b[a];c=d[f];if(c){if(c.isInstance&&!c.destroyed){c.destroy()}else{if(c.parentNode&&"nodeType" in c){c.parentNode.removeChild(c)}}}d[f]=null}return d},destroy:function(){var b=this,a=b.$links;b.initialConfig=b.config=null;b.destroy=Ext.emptyFn;b.isDestroyed=b.destroyed=true;if(a){b.$links=null;b.unlink(Ext.Object.getKeys(a))}}});u.callOverridden=u.callParent;return r}(Ext.Function.flexSetter));(function(c,d){(Ext.util||(Ext.util={})).Cache=c=function(f){var a=this,b;if(f){Ext.apply(a,f)}a.head=b={key:null,value:null};a.map={};b.next=b.prev=b};c.prototype=d={maxSize:100,count:0,clear:function(){var a=this,f=a.head,b=f.next;f.next=f.prev=f;if(!a.evict.$nullFn){for(;b!==f;b=b.next){a.evict(b.key,b.value)}}a.count=0},each:function(b,g){g=g||this;for(var h=this.head,a=h.next;a!==h;a=a.next){if(b.call(g,a.key,a.value)){break}}},get:function(i){var b=this,j=b.head,a=b.map,h=a[i];if(h){if(h.prev!==j){b.unlinkEntry(h);b.linkEntry(h)}}else{a[i]=h={key:i,value:b.miss.apply(b,arguments)};b.linkEntry(h);++b.count;while(b.count>b.maxSize){b.unlinkEntry(j.prev,true);--b.count}}return h.value},evict:Ext.emptyFn,linkEntry:function(b){var f=this.head,a=f.next;b.next=a;b.prev=f;f.next=b;a.prev=b},unlinkEntry:function(b,a){var h=b.next,g=b.prev;g.next=h;h.prev=g;if(a){this.evict(b.key,b.value)}}};d.destroy=d.clear}());(function(){var i,j=Ext.Base,h=j.$staticMembers,f=function(a,b){return(a.length-b.length)||((a<b)?-1:((a>b)?1:0))};function g(a){function b(){return this.constructor.apply(this,arguments)||null}return b}Ext.Class=i=function(b,a,c){if(typeof b!="function"){c=a;a=b;b=null}if(!a){a={}}b=i.create(b,a);i.process(b,a,c);return b};Ext.apply(i,{makeCtor:g,onBeforeCreated:function(b,a,c){b.addMembers(a);c.onCreated.call(b,b)},create:function(d,a){var b=h.length,c;if(!d){d=g()}while(b--){c=h[b];d[c]=j[c]}return d},process:function(A,e,y){var z=e.preprocessors||i.defaultPreprocessors,b=this.preprocessors,C={onBeforeCreated:this.onBeforeCreated},D=[],B,v,w,a,x,c,d;delete e.preprocessors;A._classHooks=C;for(w=0,a=z.length;w<a;w++){B=z[w];if(typeof B=="string"){B=b[B];v=B.properties;if(v===true){D.push(B.fn)}else{if(v){for(x=0,c=v.length;x<c;x++){d=v[x];if(e.hasOwnProperty(d)){D.push(B.fn);break}}}}}else{D.push(B)}}C.onCreated=y?y:Ext.emptyFn;C.preprocessors=D;this.doProcess(A,e,C)},doProcess:function(m,b,n){var c=this,a=n.preprocessors,e=a.shift(),d=c.doProcess;for(;e;e=a.shift()){if(e.call(c,m,b,n,d)===false){return}}n.onBeforeCreated.apply(c,arguments)},preprocessors:{},registerPreprocessor:function(d,a,c,e,b){if(!e){e="last"}if(!c){c=[d]}this.preprocessors[d]={name:d,properties:c||false,fn:a};this.setDefaultPreprocessorPosition(d,e,b);return this},getPreprocessor:function(a){return this.preprocessors[a]},getPreprocessors:function(){return this.preprocessors},defaultPreprocessors:[],getDefaultPreprocessors:function(){return this.defaultPreprocessors},setDefaultPreprocessors:function(a){this.defaultPreprocessors=Ext.Array.from(a);return this},setDefaultPreprocessorPosition:function(c,a,b){var e=this.defaultPreprocessors,d;if(typeof a=="string"){if(a==="first"){e.unshift(c);return this}else{if(a==="last"){e.push(c);return this}}a=(a==="after")?1:-1}d=Ext.Array.indexOf(e,b);if(d!==-1){Ext.Array.splice(e,Math.max(0,d+a),0,c)}return this}});i.registerPreprocessor("extend",function(r,p,a){var e=Ext.Base,d=e.prototype,c=p.extend,s,b,q;delete p.extend;if(c&&c!==Object){s=c}else{s=e}b=s.prototype;if(!s.$isClass){for(q in d){if(!b[q]){b[q]=d[q]}}}r.extend(s);r.triggerExtended.apply(r,arguments);if(p.onClassExtended){r.onExtended(p.onClassExtended,r);delete p.onClassExtended}},true);i.registerPreprocessor("privates",function(e,b){var c=b.privates,a=c.statics,d=c.privacy||true;delete b.privates;delete c.statics;e.addMembers(c,false,d);if(a){e.addMembers(a,true,d)}});i.registerPreprocessor("statics",function(b,a){b.addStatics(a.statics);delete a.statics});i.registerPreprocessor("inheritableStatics",function(b,a){b.addInheritableStatics(a.inheritableStatics);delete a.inheritableStatics});Ext.createRuleFn=function(a){return new Function("$c","with($c) { return ("+a+"); }")};Ext.expressionCache=new Ext.util.Cache({miss:Ext.createRuleFn});Ext.ruleKeySortFn=f;Ext.getPlatformConfigKeys=function(b){var c=[],d,a;for(d in b){a=Ext.expressionCache.get(d);if(a(Ext.platformTags)){c.push(d)}}c.sort(f);return c};i.registerPreprocessor("platformConfig",function(z,v,D){var e=v.platformConfig,y=v.config,a,d,c,x,A,C,B,E,w,b;delete v.platformConfig;x=z.getConfigurator();d=x.configs;C=Ext.getPlatformConfigKeys(e);for(w=0,b=C.length;w<b;++w){c=e[C[w]];A=a=null;for(B in c){E=c[B];if(y&&B in y){(a||(a={}))[B]=E;(A||(A={}))[B]=y[B];delete y[B]}else{if(B in d){(a||(a={}))[B]=E}else{v[B]=E}}}if(A){x.add(A)}if(a){x.add(a)}}});i.registerPreprocessor("config",function(b,a){if(a.hasOwnProperty("$configPrefixed")){b.prototype.$configPrefixed=a.$configPrefixed}b.addConfig(a.config);delete a.config});i.registerPreprocessor("cachedConfig",function(b,a){if(a.hasOwnProperty("$configPrefixed")){b.prototype.$configPrefixed=a.$configPrefixed}b.addCachedConfig(a.cachedConfig);delete a.cachedConfig});i.registerPreprocessor("mixins",function(b,a,e){var c=a.mixins,d=e.onCreated;delete a.mixins;e.onCreated=function(){e.onCreated=d;b.mixin(c);return e.onCreated.apply(this,arguments)}});Ext.extend=function(b,a,c){if(arguments.length===2&&Ext.isObject(a)){c=a;a=b;b=null}var d;if(!a){throw new Error("[Ext.extend] Attempting to extend from a class which has not been loaded on the page.")}c.extend=a;c.preprocessors=["extend","statics","inheritableStatics","mixins","platformConfig","config"];if(b){d=new i(b,c);d.prototype.constructor=b}else{d=new i(c)}d.prototype.override=function(e){for(var l in e){if(e.hasOwnProperty(l)){this[l]=e[l]}}};return d}}());Ext.Inventory=function(){var b=this;b.names=[];b.paths={};b.alternateToName={};b.aliasToName={};b.nameToAliases={};b.nameToAlternates={}};Ext.Inventory.prototype={_array1:[0],prefixes:null,dotRe:/\./g,wildcardRe:/\*/g,addAlias:function(d,e,f){return this.addMapping(d,e,this.aliasToName,this.nameToAliases,f)},addAlternate:function(d,c){return this.addMapping(d,c,this.alternateToName,this.nameToAlternates)},addMapping:function(s,y,x,i,w){var B=s.$className||s,u=B,t=this._array1,q,z,a,v,A,r;if(Ext.isString(B)){u={};u[B]=y}for(a in u){z=u[a];if(Ext.isString(z)){t[0]=z;z=t}A=z.length;r=i[a]||(i[a]=[]);for(v=0;v<A;++v){if(!(q=z[v])){continue}if(x[q]!==a){x[q]=a;r.push(q)}}}},getAliasesByName:function(b){return this.nameToAliases[b]||null},getAlternatesByName:function(b){return this.nameToAlternates[b]||null},getNameByAlias:function(b){return this.aliasToName[b]||""},getNameByAlternate:function(b){return this.alternateToName[b]||""},getNamesByExpression:function(D,N,G){var n=this,y=n.aliasToName,B=n.alternateToName,M=n.nameToAliases,K=n.nameToAlternates,w=G?N:{},E=[],x=Ext.isString(D)?[D]:D,H=x.length,J=n.wildcardRe,L,A,z,F,C,i,I;for(A=0;A<H;++A){if((L=x[A]).indexOf("*")<0){if(!(i=y[L])){if(!(i=B[L])){i=L}}if(!(i in w)&&!(N&&(i in N))){w[i]=1;E.push(i)}}else{I=new RegExp("^"+L.replace(J,"(.*?)")+"$");for(i in M){if(!(i in w)&&!(N&&(i in N))){if(!(F=I.test(i))){C=(z=M[i]).length;while(!F&&C-->0){F=I.test(z[C])}z=K[i];if(z&&!F){C=z.length;while(!F&&C-->0){F=I.test(z[C])}}}if(F){w[i]=1;E.push(i)}}}}}return E},getPath:function(f){var j=this,h=j.paths,g="",i;if(f in h){g=h[f]}else{i=j.getPrefix(f);if(i){f=f.substring(i.length+1);g=h[i];if(g){g+="/"}}g+=f.replace(j.dotRe,"/")+".js"}return g},getPrefix:function(f){if(f in this.paths){return f}var h=this.getPrefixes(),g=h.length,j,i;while(g-->0){j=(i=h[g]).length;if(j<f.length&&f.charAt(j)==="."&&i===f.substring(0,j)){return i}}return""},getPrefixes:function(){var d=this,c=d.prefixes;if(!c){d.prefixes=c=d.names.slice(0);c.sort(d._compareNames)}return c},removeName:function(t){var p=this,m=p.aliasToName,a=p.alternateToName,i=p.nameToAliases,q=p.nameToAlternates,s=i[t],o=q[t],r,n;delete i[t];delete q[t];if(s){for(r=s.length;r--;){if(t===(n=s[r])){delete m[n]}}}if(o){for(r=o.length;r--;){if(t===(n=o[r])){delete a[n]}}}},resolveName:function(e){var d=this,f;if(!(e in d.nameToAliases)){if(!(f=d.aliasToName[e])){f=d.alternateToName[e]}}return f||e},select:function(j,l){var k=this,i={},g={excludes:i,exclude:function(){k.getNamesByExpression(arguments,i,true);return this}},h;for(h in j){g[h]=k.selectMethod(i,j[h],l||j)}return g},selectMethod:function(g,e,f){var h=this;return function(b){var a=Ext.Array.slice(arguments,1);a.unshift(h.getNamesByExpression(b,g));return e.apply(f,a)}},setPath:Ext.Function.flexSetter(function(e,f){var d=this;d.paths[e]=f;d.names.push(e);d.prefixes=null;return d}),_compareNames:function(e,f){var d=e.length-f.length;if(!d){d=(e<f)?-1:1}return d}};Ext.ClassManager=(function(w,B,u,H,y){var K=Ext.Class.makeCtor,F=[],E={Ext:{name:"Ext",value:Ext}},J=Ext.apply(new Ext.Inventory(),{classes:{},classState:{},existCache:{},instantiators:[],isCreated:function(a){if(J.classes[a]||J.existCache[a]){return true}if(!J.lookupName(a,false)){return false}J.triggerCreated(a);return true},createdListeners:[],nameCreatedListeners:{},existsListeners:[],nameExistsListeners:{},overrideMap:{},triggerCreated:function(b,a){J.existCache[b]=a||1;J.classState[b]+=40;J.notify(b,J.createdListeners,J.nameCreatedListeners)},onCreated:function(a,b,c){J.addListener(a,b,c,J.createdListeners,J.nameCreatedListeners)},notify:function(c,a,i){var h=J.getAlternatesByName(c),b=[c],f,d,g,e,j,k;for(f=0,d=a.length;f<d;f++){j=a[f];j.fn.call(j.scope,c)}while(b){for(f=0,d=b.length;f<d;f++){k=b[f];a=i[k];if(a){for(g=0,e=a.length;g<e;g++){j=a[g];j.fn.call(j.scope,k)}delete i[k]}}b=h;h=null}},addListener:function(g,a,b,c,d){if(Ext.isArray(b)){g=Ext.Function.createBarrier(b.length,g,a);for(e=0;e<b.length;e++){this.addListener(g,null,b[e],c,d)}return}var e,f={fn:g,scope:a};if(b){if(this.isCreated(b)){g.call(a,b);return}if(!d[b]){d[b]=[]}d[b].push(f)}else{c.push(f)}},$namespaceCache:E,addRootNamespaces:function(a){for(var b in a){E[b]={name:b,value:a[b]}}},clearNamespaceCache:function(){F.length=0;for(var a in E){if(!E[a].value){delete E[a]}}},getNamespaceEntry:function(b){if(typeof b!=="string"){return b}var a=E[b],c;if(!a){c=b.lastIndexOf(".");if(c<0){a={name:b}}else{a={name:b.substring(c+1),parent:J.getNamespaceEntry(b.substring(0,c))}}E[b]=a}return a},lookupName:function(b,g){var a=J.getNamespaceEntry(b),c=Ext.global,e=0,f,d;for(f=a;f;f=f.parent){F[e++]=f}while(c&&e-->0){f=F[e];d=c;c=f.value||c[f.name];if(!c&&g){d[f.name]=c={}}}return c},setNamespace:function(c,a){var b=J.getNamespaceEntry(c),d=Ext.global;if(b.parent){d=J.lookupName(b.parent,true)}d[b.name]=a;return a},setXType:function(f,b){var d=f.$className,g=d?f:J.get(d=f),c=g.prototype,a=c.xtypes,e=c.xtypesChain,h=c.xtypesMap;if(!c.hasOwnProperty("xtypes")){c.xtypes=a=[];c.xtypesChain=e=e?e.slice(0):[];c.xtypesMap=h=Ext.apply({},h)}J.addAlias(d,"widget."+b,true);a.push(b);e.push(b);h[b]=true},set:function(c,a){var b=J.getName(a);J.classes[c]=J.setNamespace(c,a);if(b&&b!==c){J.addAlternate(b,c)}return J},get:function(a){return J.classes[a]||J.lookupName(a,false)},addNameAliasMappings:function(a){J.addAlias(a)},addNameAlternateMappings:function(a){J.addAlternate(a)},getByAlias:function(a){return J.get(J.getNameByAlias(a))},getByConfig:function(c,b){var a=c.xclass,d;if(a){d=a}else{d=c.xtype;if(d){b="widget."}else{d=c.type}d=J.getNameByAlias(b+d)}return J.get(d)},getName:function(a){return a&&a.$className||""},getClass:function(a){return a&&a.self||null},create:function(c,a,d){var b=K(c);if(typeof a==="function"){a=a(b)}a.$className=c;return new w(b,a,function(){var k=a.postprocessors||J.defaultPostprocessors,n=J.postprocessors,m=[],e,i,f,j,g,h,l;delete a.postprocessors;for(i=0,f=k.length;i<f;i++){e=k[i];if(typeof e==="string"){e=n[e];h=e.properties;if(h===true){m.push(e.fn)}else{if(h){for(j=0,g=h.length;j<g;j++){l=h[j];if(a.hasOwnProperty(l)){m.push(e.fn);break}}}}}else{m.push(e)}}a.postprocessors=m;a.createdFn=d;J.processCreate(c,this,a)})},processCreate:function(b,d,f){var a=this,e=f.postprocessors.shift(),c=f.createdFn;if(!e){if(b){a.set(b,d)}delete d._classHooks;if(c){c.call(d,d)}if(b){a.triggerCreated(b)}return}if(e.call(a,b,d,f,a.processCreate)!==false){a.processCreate(b,d,f)}},createOverride:function(e,g,i){var c=this,b=g.override,l=g.requires,h=g.uses,f=g.mixins,k,a=1,d,j=function(){var q,m,n,o,p;if(!d){m=l?l.slice(0):[];if(f){if(!(k=f instanceof Array)){for(o in f){if(Ext.isString(q=f[o])){m.push(q)}}}else{for(n=0,p=f.length;n<p;++n){if(Ext.isString(q=f[n])){m.push(q)}}}}d=true;if(m.length){Ext.require(m,j);return}}if(k){for(n=0,p=f.length;n<p;++n){if(Ext.isString(q=f[n])){f[n]=Ext.ClassManager.get(q)}}}else{if(f){for(o in f){if(Ext.isString(q=f[o])){f[o]=Ext.ClassManager.get(q)}}}}q=c.get(b);delete g.override;delete g.compatibility;delete g.requires;delete g.uses;Ext.override(q,g);Ext.Loader.history.push(e);if(h){Ext.Loader.addUsedClasses(h)}if(i){i.call(q,q)}};J.overrideMap[e]=true;if("compatibility" in g&&Ext.isString(a=g.compatibility)){a=Ext.checkVersion(a)}if(a){c.onCreated(j,c,b)}c.triggerCreated(e,2);return c},instantiateByAlias:function(){var b=arguments[0],c=u.call(arguments),a=this.getNameByAlias(b);c[0]=a;return Ext.create.apply(Ext,c)},instantiate:function(){return Ext.create.apply(Ext,arguments)},dynInstantiate:function(a,b){b=H(b,true);b.unshift(a);return Ext.create.apply(Ext,b)},getInstantiator:function(b){var c=this.instantiators,a,d,e;a=c[b];if(!a){d=b;e=[];for(d=0;d<b;d++){e.push("a["+d+"]")}a=c[b]=new Function("c","a","return new c("+e.join(",")+")")}return a},postprocessors:{},defaultPostprocessors:[],registerPostprocessor:function(d,a,c,e,b){if(!e){e="last"}if(!c){c=[d]}this.postprocessors[d]={name:d,properties:c||false,fn:a};this.setDefaultPostprocessorPosition(d,e,b);return this},setDefaultPostprocessors:function(a){this.defaultPostprocessors=H(a);return this},setDefaultPostprocessorPosition:function(d,a,b){var c=this.defaultPostprocessors,e;if(typeof a==="string"){if(a==="first"){c.unshift(d);return this}else{if(a==="last"){c.push(d);return this}}a=(a==="after")?1:-1}e=Ext.Array.indexOf(c,b);if(e!==-1){Ext.Array.splice(c,Math.max(0,e+a),0,d)}return this}});J.registerPostprocessor("alias",function(c,d,f){var e=Ext.Array.from(f.alias),b,a;for(b=0,a=e.length;b<a;b++){B=e[b];this.addAlias(d,B)}},["xtype","alias"]);J.registerPostprocessor("singleton",function(c,d,a,b){if(a.singleton){b.call(this,c,new d(),a)}else{return true}return false});J.registerPostprocessor("alternateClassName",function(d,e,g){var b=g.alternateClassName,c,a,f;if(!(b instanceof Array)){b=[b]}for(c=0,a=b.length;c<a;c++){f=b[c];this.set(f,e)}});J.registerPostprocessor("debugHooks",function(c,d,b){var a=d.isInstance?d.self:d;delete a.prototype.debugHooks});J.registerPostprocessor("deprecated",function(c,d,b){var a=d.isInstance?d.self:d;a.addDeprecations(b.deprecated);delete a.prototype.deprecated});Ext.apply(Ext,{create:function(){var b=arguments[0],a=typeof b,c=u.call(arguments,1),d;if(a==="function"){d=b}else{if(a!=="string"&&c.length===0){c=[b];if(!(b=b.xclass)){b=c[0].xtype;if(b){b="widget."+b}}}b=J.resolveName(b);d=J.get(b)}if(!d){Ext.syncRequire(b);d=J.get(b)}return J.getInstantiator(c.length)(d,c)},widget:function(c,d){var f=c,b,a,e;if(typeof f!=="string"){d=c;f=d.xtype;a=d.xclass}else{d=d||{}}if(d.isComponent){return d}if(!a){b="widget."+f;a=J.getNameByAlias(b)}if(a){e=J.get(a)}if(!e){return Ext.create(a||b,d)}return new e(d)},createByAlias:B(J,"instantiateByAlias"),define:function(b,a,c){if(a.override){J.classState[b]=20;return J.createOverride.apply(J,arguments)}J.classState[b]=10;return J.create.apply(J,arguments)},undefine:function(c){var e=J.classes;delete e[c];delete J.existCache[c];delete J.classState[c];J.removeName(c);var b=J.getNamespaceEntry(c),d=b.parent?J.lookupName(b.parent,false):Ext.global;if(d){try{delete d[b.name]}catch(a){d[b.name]=undefined}}},getClassName:B(J,"getName"),getDisplayName:function(a){if(a){if(a.displayName){return a.displayName}if(a.$name&&a.$class){return Ext.getClassName(a.$class)+"#"+a.$name}if(a.$className){return a.$className}}return"Anonymous"},getClass:B(J,"getClass"),namespace:function(){var b=y,a;for(a=arguments.length;a-->0;){b=J.lookupName(arguments[a],true)}return b}});Ext.addRootNamespaces=J.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;w.registerPreprocessor("className",function(b,a){if("$className" in a){b.$className=a.$className}},true,"first");w.registerPreprocessor("alias",function(m,f){var b=m.prototype,i=H(f.xtype),l=H(f.alias),k="widget.",a=k.length,e=Array.prototype.slice.call(b.xtypesChain||[]),h=Ext.merge({},b.xtypesMap||{}),g,c,d,j;for(g=0,c=l.length;g<c;g++){d=l[g];if(d.substring(0,a)===k){j=d.substring(a);Ext.Array.include(i,j)}}m.xtype=f.xtype=i[0];f.xtypes=i;for(g=0,c=i.length;g<c;g++){j=i[g];if(!h[j]){h[j]=true;e.push(j)}}f.xtypesChain=e;f.xtypesMap=h;Ext.Function.interceptAfter(f,"onClassCreated",function(){var p=b.mixins,n,o;for(n in p){if(p.hasOwnProperty(n)){o=p[n];i=o.xtypes;if(i){for(g=0,c=i.length;g<c;g++){j=i[g];if(!h[j]){h[j]=true;e.push(j)}}}}}});for(g=0,c=i.length;g<c;g++){j=i[g];Ext.Array.include(l,k+j)}f.alias=l},["xtype","alias"]);if(Ext.manifest){var G=Ext.manifest,v=G.classes,z=G.paths,x={},D={},I,C,t,A,L;if(z){if(G.bootRelative){L=Ext.Boot.baseUrl;for(A in z){if(z.hasOwnProperty(A)){z[A]=L+z[A]}}}J.setPath(z)}if(v){for(I in v){D[I]=[];x[I]=[];C=v[I];if(C.alias){x[I]=C.alias}if(C.alternates){D[I]=C.alternates}}}J.addAlias(x);J.addAlternate(D)}return J}(Ext.Class,Ext.Function.alias,Array.prototype.slice,Ext.Array.from,Ext.global));(Ext.env||(Ext.env={})).Browser=function(x,D){var w=this,P=Ext.Boot.browserPrefixes,N=Ext.Boot.browserNames,O=w.enginePrefixes,H=w.engineNames,A=x.match(new RegExp("((?:"+Ext.Object.getValues(P).join(")|(?:")+"))([\\w\\._]+)")),J=x.match(new RegExp("((?:"+Ext.Object.getValues(O).join(")|(?:")+"))([\\w\\._]+)")),B=N.other,y=H.other,F="",K="",M="",I=false,C,E,G,i,z;w.userAgent=x;if(/Edge\//.test(x)){A=x.match(/(Edge\/)([\w.]+)/)}if(A){B=N[Ext.Object.getKey(P,A[1])];if(B==="Safari"&&/^Opera/.test(x)){B="Opera"}F=new Ext.Version(A[2])}if(J){y=H[Ext.Object.getKey(O,J[1])];K=new Ext.Version(J[2])}if(y==="Trident"&&B!=="IE"){B="IE";var L=x.match(/.*rv:(\d+.\d+)/);if(L&&L.length){L=L[1];F=new Ext.Version(L)}}if(B&&F){Ext.setVersion(B,F)}if(x.match(/FB/)&&B==="Other"){B=N.safari;y=H.webkit}if(x.match(/Android.*Chrome/g)){B="ChromeMobile"}if(x.match(/OPR/)){B="Opera";A=x.match(/OPR\/(\d+.\d+)/);F=new Ext.Version(A[1])}Ext.apply(this,{engineName:y,engineVersion:K,name:B,version:F});this.setFlag(B,true,D);if(F){M=F.getMajor()||"";if(w.is.IE){M=parseInt(M,10);G=document.documentMode;if(G===7||(M===7&&G!==8&&G!==9&&G!==10)){M=7}else{if(G===8||(M===8&&G!==8&&G!==9&&G!==10)){M=8}else{if(G===9||(M===9&&G!==7&&G!==8&&G!==10)){M=9}else{if(G===10||(M===10&&G!==7&&G!==8&&G!==9)){M=10}else{if(G===11||(M===11&&G!==7&&G!==8&&G!==9&&G!==10)){M=11}}}}}z=Math.max(M,Ext.Boot.maxIEVersion);for(C=7;C<=z;++C){E="isIE"+C;if(M<=C){Ext[E+"m"]=true}if(M===C){Ext[E]=true}if(M>=C){Ext[E+"p"]=true}}}if(w.is.Opera&&parseInt(M,10)<=12){Ext.isOpera12m=true}Ext.chromeVersion=Ext.isChrome?M:0;Ext.firefoxVersion=Ext.isFirefox?M:0;Ext.ieVersion=Ext.isIE?M:0;Ext.operaVersion=Ext.isOpera?M:0;Ext.safariVersion=Ext.isSafari?M:0;Ext.webKitVersion=Ext.isWebKit?M:0;this.setFlag(B+M,true,D);this.setFlag(B+F.getShortVersion())}for(C in N){if(N.hasOwnProperty(C)){i=N[C];this.setFlag(i,B===i)}}this.setFlag(i);if(K){this.setFlag(y+(K.getMajor()||""));this.setFlag(y+K.getShortVersion())}for(C in H){if(H.hasOwnProperty(C)){i=H[C];this.setFlag(i,y===i,D)}}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){I=true;this.setFlag("PhoneGap");this.setFlag("Cordova")}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(x)){I=true}this.setFlag("WebView",I);this.isStrict=Ext.isStrict=document.compatMode==="CSS1Compat";this.isSecure=Ext.isSecure;this.identity=B+M+(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:""},is:function(b){return !!this.is[b]},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(e,f,d){if(f===undefined){f=true}this.is[e]=f;this.is[e.toLowerCase()]=f;if(d){Ext["is"+e]=f}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(d){var c=this.propertyPrefixes[this.engineName];if(c.length>0){return c+Ext.String.capitalize(d)}return d},getPreferredTranslationMethod:function(b){if(typeof b==="object"&&"translationMethod" in b&&b.translationMethod!=="auto"){return b.translationMethod}else{return"csstransform"}}};(function(b){Ext.browser=new Ext.env.Browser(b,true);Ext.userAgent=b.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?"javascript:''":"about:blank"}(Ext.global.navigator.userAgent));Ext.env.OS=function(i,A,r){var s=this,t=Ext.Boot.osNames,y=Ext.Boot.osPrefixes,B,u="",w=s.is,z,v,x,p,q;r=r||Ext.browser;for(z in y){if(y.hasOwnProperty(z)){v=y[z];x=i.match(new RegExp("(?:"+v+")([^\\s;]+)"));if(x){B=t[z];q=x[1];if(q&&q==="HTC_"){u=new Ext.Version("2.3")}else{if(q&&q==="Silk/"){u=new Ext.Version("2.3")}else{u=new Ext.Version(x[x.length-1])}}break}}}if(!B){B=t[(i.toLowerCase().match(/mac|win|linux/)||["other"])[0]];u=new Ext.Version("")}this.name=B;this.version=u;if(A){this.setFlag(A.replace(/ simulator$/i,""))}this.setFlag(B);if(u){this.setFlag(B+(u.getMajor()||""));this.setFlag(B+u.getShortVersion())}for(z in t){if(t.hasOwnProperty(z)){p=t[z];if(!w.hasOwnProperty(B)){this.setFlag(p,(B===p))}}}if(this.name==="iOS"&&window.screen.height===568){this.setFlag("iPhone5")}if(r.is.Safari||r.is.Silk){if(this.is.Android2||this.is.Android3||r.version.shortVersion===501){r.setFlag("AndroidStock")}if(this.is.Android4){r.setFlag("AndroidStock");r.setFlag("AndroidStock4")}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(b){return !!this[b]},name:null,version:null,setFlag:function(d,c){if(c===undefined){c=true}if(this.flags){this.flags[d]=c}this.is[d]=c;this.is[d.toLowerCase()]=c;return this}};(function(){var r=Ext.global.navigator,l=r.userAgent,m=Ext.env.OS,n=(Ext.is||(Ext.is={})),k,o,q;m.prototype.flags=n;Ext.os=k=new m(l,r.platform);o=k.name;Ext["is"+o]=true;Ext.isMac=n.Mac=n.MacOS;var j=window.location.search.match(/deviceType=(Tablet|Phone)/),p=window.deviceType;if(j&&j[1]){q=j[1]}else{if(p==="iPhone"){q="Phone"}else{if(p==="iPad"){q="Tablet"}else{if(!k.is.Android&&!k.is.iOS&&!k.is.WindowsPhone&&/Windows|Linux|MacOS/.test(o)){q="Desktop";Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else{if(k.is.iPad||k.is.RIMTablet||k.is.Android3||Ext.browser.is.Silk||(k.is.Android&&l.search(/mobile/i)===-1)){q="Tablet"}else{q="Phone"}}}}}k.setFlag(q,true);k.deviceType=q;delete m.prototype.flags}());Ext.feature={has:function(b){return !!this.has[b]},testElements:{},getTestElement:function(d,c){if(d===undefined){d="div"}else{if(typeof d!=="string"){return d}}if(c){return document.createElement(d)}if(!this.testElements[d]){this.testElements[d]=document.createElement(d)}return this.testElements[d]},isStyleSupported:function(h,e){var g=this.getTestElement(e).style,f=Ext.String.capitalize(h);if(typeof g[h]!=="undefined"||typeof g[Ext.browser.getStylePrefix(h)+f]!=="undefined"){return true}return false},isStyleSupportedWithoutPrefix:function(d,e){var f=this.getTestElement(e).style;if(typeof f[d]!=="undefined"){return true}return false},isEventSupported:function(j,g){if(g===undefined){g=window}var h=this.getTestElement(g),f="on"+j.toLowerCase(),i=(f in h);if(!i){if(h.setAttribute&&h.removeAttribute){h.setAttribute(f,"");i=typeof h[f]==="function";if(typeof h[f]!=="undefined"){h[f]=undefined}h.removeAttribute(f)}}return i},getStyle:function(h,e){var f=h.ownerDocument.defaultView,g=(f?f.getComputedStyle(h,null):h.currentStyle);return(g||h.style)[e]},getSupportedPropertyName:function(d,e){var f=Ext.browser.getVendorProperyName(e);if(f in d){return f}else{if(e in d){return e}}return null},detect:function(t){var s=this,q=document,w=s.toRun||s.tests,x=w.length,A=q.createElement("div"),z=[],n=Ext.supports,p=s.has,B,u,v,y,r;A.innerHTML='<div style="height:30px;width:50px;"><div style="height:20px;width:20px;"></div></div><div style="width: 200px; height: 200px; position: relative; padding: 5px;"><div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></div></div><div style="position: absolute; left: 10%; top: 10%;"></div><div style="float:left; background-color:transparent;"></div>';if(t){q.body.appendChild(A)}y=s.preDetected[Ext.browser.identity]||[];while(x--){v=w[x];r=y[x];B=v.name;u=v.names;if(r===undefined){if(!t&&v.ready){z.push(v);continue}r=v.fn.call(s,q,A)}if(B){n[B]=p[B]=r}else{if(u){while(u.length){B=u.pop();n[B]=p[B]=r}}}}if(t){q.body.removeChild(A)}s.toRun=z},report:function(){var d=[],e=this.tests.length,f;for(f=0;f<e;++f){d.push(this.has[this.tests[f].name]?1:0)}Ext.log(Ext.browser.identity+": ["+d.join(",")+"]")},preDetected:{},tests:[{name:"CloneNodeCopiesExpando",fn:function(){var b=document.createElement("div");b.expandoProp={};return b.cloneNode().expandoProp===b.expandoProp}},{name:"CSSPointerEvents",fn:function(b){return"pointerEvents" in b.documentElement.style}},{name:"CSS3BoxShadow",fn:function(b){return"boxShadow" in b.documentElement.style||"WebkitBoxShadow" in b.documentElement.style||"MozBoxShadow" in b.documentElement.style}},{name:"CSS3NegationSelector",fn:function(c){try{c.querySelectorAll("foo:not(bar)")}catch(d){return false}return true}},{name:"ClassList",fn:function(b){return !!b.documentElement.classList}},{name:"Canvas",fn:function(){var b=this.getTestElement("canvas");return !!(b&&b.getContext&&b.getContext("2d"))}},{name:"Svg",fn:function(b){return !!(b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect)}},{name:"Vml",fn:function(){var c=this.getTestElement(),d=false;c.innerHTML="<!--[if vml]><br><![endif]-->";d=(c.childNodes.length===1);c.innerHTML="";return d}},{name:"touchScroll",fn:function(){var b=0;if(Ext.os.is.Desktop&&(navigator.maxTouchPoints||navigator.msMaxTouchPoints)){b=1}else{if(Ext.supports.Touch){b=2}}return b}},{name:"Touch",fn:function(){var b=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return(Ext.supports.TouchEvents&&b!==1)||b>1}else{return Ext.supports.TouchEvents||b>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 b=!!document.createRange?document.createRange():false;return b&&!!b.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(b){}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 b=new XMLHttpRequest();return b&&("upload" in b)&&("onprogress" in b.upload)}return false}},{name:"NumericInputPlaceHolder",fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:"matchesSelector",fn:function(){var f=document.documentElement,h="matches",i="webkitMatchesSelector",g="msMatchesSelector",j="mozMatchesSelector";return f[h]?h:f[i]?i:f[g]?g:f[j]?j:null}},{name:"RightMargin",ready:true,fn:function(d,f){var e=d.defaultView;return !(e&&e.getComputedStyle(f.firstChild.firstChild,null).marginRight!=="0px")}},{name:"DisplayChangeInputSelectionBug",fn:function(){var b=Ext.webKitVersion;return 0<b&&b<533}},{name:"DisplayChangeTextAreaSelectionBug",fn:function(){var b=Ext.webKitVersion;return 0<b&&b<534.24}},{name:"TransparentColor",ready:true,fn:function(d,f,e){e=d.defaultView;return !(e&&e.getComputedStyle(f.lastChild,null).backgroundColor!=="transparent")}},{name:"ComputedStyle",ready:true,fn:function(d,f,e){e=d.defaultView;return e&&e.getComputedStyle}},{name:"Float",fn:function(b){return"cssFloat" in b.documentElement.style}},{name:"CSS3BorderRadius",ready:true,fn:function(g){var e=["borderRadius","BorderRadius","MozBorderRadius","WebkitBorderRadius","OBorderRadius","KhtmlBorderRadius"],h=false,f;for(f=0;f<e.length;f++){if(g.documentElement.style[e[f]]!==undefined){h=true}}return h&&!Ext.isIE9}},{name:"CSS3LinearGradient",fn:function(m,r){var k="background-image:",l="-webkit-gradient(linear, left top, right bottom, from(black), to(white))",n="linear-gradient(left top, black, white)",o="-moz-"+n,q="-ms-"+n,p="-o-"+n,j=[k+l,k+n,k+o,k+q,k+p];r.style.cssText=j.join(";");return((""+r.style.backgroundImage).indexOf("gradient")!==-1)&&!Ext.isIE9}},{name:"MouseEnterLeave",fn:function(b){return("onmouseenter" in b.documentElement&&"onmouseleave" in b.documentElement)}},{name:"MouseWheel",fn:function(b){return("onmousewheel" in b.documentElement)}},{name:"Opacity",fn:function(d,c){if(Ext.isIE8){return false}c.firstChild.style.cssText="opacity:0.73";return c.firstChild.style.opacity=="0.73"}},{name:"Placeholder",fn:function(b){return"placeholder" in b.createElement("input")}},{name:"Direct2DBug",fn:function(b){return Ext.isString(b.documentElement.style.msTransformOrigin)&&Ext.isIE9m}},{name:"BoundingClientRect",fn:function(b){return"getBoundingClientRect" in b.documentElement}},{name:"RotatedBoundingClientRect",ready:true,fn:function(h){var g=h.body,f=false,i=h.createElement("div"),j=i.style;if(i.getBoundingClientRect){j.position="absolute";j.top="0";j.WebkitTransform=j.MozTransform=j.msTransform=j.OTransform=j.transform="rotate(90deg)";j.width="100px";j.height="30px";g.appendChild(i);f=i.getBoundingClientRect().height!==100;g.removeChild(i)}return f}},{name:"ChildContentClearedWhenSettingInnerHTML",ready:true,fn:function(){var d=this.getTestElement(),c;d.innerHTML="<div>a</div>";c=d.firstChild;d.innerHTML="<div>b</div>";return c.innerHTML!=="a"}},{name:"IncludePaddingInWidthCalculation",ready:true,fn:function(d,c){return c.childNodes[1].firstChild.offsetWidth===210}},{name:"IncludePaddingInHeightCalculation",ready:true,fn:function(d,c){return c.childNodes[1].firstChild.offsetHeight===210}},{name:"TextAreaMaxLength",fn:function(b){return("maxlength" in b.createElement("textarea"))}},{name:"GetPositionPercentage",ready:true,fn:function(d,c){return Ext.feature.getStyle(c.childNodes[2],"left")==="10%"}},{name:"PercentageHeightOverflowBug",ready:true,fn:function(g){var f=false,h,e;if(Ext.getScrollbarSize().height){e=this.getTestElement();h=e.style;h.height="50px";h.width="50px";h.overflow="auto";h.position="absolute";e.innerHTML=['<div style="display:table;height:100%;">','<div style="width:51px;"></div>',"</div>"].join("");g.body.appendChild(e);if(e.firstChild.offsetHeight===50){f=true}g.body.removeChild(e)}return f}},{name:"xOriginBug",ready:true,fn:function(i,h){h.innerHTML='<div id="b1" style="height:100px;width:100px;direction:rtl;position:relative;overflow:scroll"><div id="b2" style="position:relative;width:100%;height:20px;"></div><div id="b3" style="position:absolute;width:20px;height:20px;top:0px;right:0px"></div></div>';var j=document.getElementById("b1").getBoundingClientRect(),f=document.getElementById("b2").getBoundingClientRect(),g=document.getElementById("b3").getBoundingClientRect();return(f.left!==j.left&&g.right!==j.right)}},{name:"ScrollWidthInlinePaddingBug",ready:true,fn:function(g){var f=false,h,e;e=g.createElement("div");h=e.style;h.height="50px";h.width="50px";h.padding="10px";h.overflow="hidden";h.position="absolute";e.innerHTML='<span style="display:inline-block;zoom:1;height:60px;width:60px;"></span>';g.body.appendChild(e);if(e.scrollWidth===70){f=true}g.body.removeChild(e);return f}},{name:"rtlVertScrollbarOnRight",ready:true,fn:function(h,g){g.innerHTML='<div style="height:100px;width:100px;direction:rtl;overflow:scroll"><div style="width:20px;height:200px;"></div></div>';var e=g.firstChild,f=e.firstChild;return(f.offsetLeft+f.offsetWidth!==e.offsetLeft+e.offsetWidth)}},{name:"rtlVertScrollbarOverflowBug",ready:true,fn:function(d,f){f.innerHTML='<div style="height:100px;width:100px;direction:rtl;overflow:auto"><div style="width:95px;height:200px;"></div></div>';var e=f.firstChild;return e.clientHeight===e.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(b){return null}};return false}},{name:"SpecialKeyDownRepeat",fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!((Ext.isGecko&&!Ext.isWindows)||(Ext.isOpera&&Ext.operaVersion<12))}},{name:"EmulatedMouseOver",fn:function(){return Ext.os.is.iOS}},{name:"Hashchange",fn:function(){var b=document.documentMode;return"onhashchange" in window&&(b===undefined||b>7)}},{name:"FixedTableWidthBug",ready:true,fn:function(){if(Ext.isIE8){return false}var d=document.createElement("div"),e=document.createElement("div"),f;d.setAttribute("style","display:table;table-layout:fixed;");e.setAttribute("style","display:table-cell;min-width:50px;");d.appendChild(e);document.body.appendChild(d);d.offsetWidth;d.style.width="25px";f=d.offsetWidth;document.body.removeChild(d);return f===50}},{name:"FocusinFocusoutEvents",fn:function(){return !Ext.isGecko}},{name:"AsyncFocusEvents",fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:"accessibility",ready:true,fn:function(l){var j=l.body,k,o,n,i,p;function m(e){var d=[],b=0,f,c;if(e.indexOf("rgb(")!==-1){d=e.replace("rgb(","").replace(")","").split(", ")}else{if(e.indexOf("#")!==-1){f=e.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;c=e.match(f);if(c){d=["0x"+c[1],"0x"+c[2],"0x"+c[3]]}}}for(var a=0;a<d.length;a++){b+=parseInt(d[a])}return b}k=l.createElement("div");o=l.createElement("img");n=k.style;Ext.apply(n,{width:"2px",position:"absolute",clip:"rect(1px,1px,1px,1px)",borderWidth:"1px",borderStyle:"solid",borderTopTolor:"#f00",borderRightColor:"#ff0",backgroundColor:"#fff",backgroundImage:"url("+Ext.BLANK_IMAGE_URL+")"});o.alt="";o.src=Ext.BLANK_IMAGE_URL;k.appendChild(o);j.appendChild(k);n=k.currentStyle||k.style;p=n.backgroundImage;i={Images:o.offsetWidth===1&&o.readyState!=="uninitialized",BackgroundImages:!(p!==null&&(p==="none"||p==="url(invalid-url:)")),BorderColors:n.borderTopColor!==n.borderRightColor,LightOnDark:m(n.color)-m(n.backgroundColor)>0};Ext.supports.HighContrastMode=!i.BackgroundImages;j.removeChild(k);k=o=null;return i}},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 d=Ext.env.Ready,c=document;if(!d.bound){if(c.readyState==="complete"){d.onReadyEvent({type:c.readyState||"body"})}else{d.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){d.bound=2;c.addEventListener("deviceready",d.onReadyEvent,false)}c.addEventListener("DOMContentLoaded",d.onReadyEvent,false);window.addEventListener("load",d.onReadyEvent,false)}}},block:function(){++this.blocks;Ext.isReady=false},fireReady:function(){var b=Ext.env.Ready;if(!b.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=true;b.state=1;Ext.feature.detect(true);if(!b.delay){b.handleReady()}else{if(navigator.standalone){b.timer=Ext.defer(function(){b.timer=null;b.handleReadySoon()},1)}else{b.handleReadySoon()}}}},handleReady:function(){var b=this;if(b.state===1){b.state=2;Ext._beforeReadyTime=Ext.ticks();b.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(d){var c=this;if(!c.timer){c.timer=Ext.defer(function(){c.timer=null;c.handleReady()},d||c.delay)}},invoke:function(c){var d=c.delay;if(d){Ext.defer(c.fn,d,c.scope)}else{if(Ext.elevateFunction){Ext.elevateFunction(c.fn,c.scope)}else{c.fn.call(c.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else{this.doInvokeAll()}},doInvokeAll:function(){var d=this,e=d.listeners,f;if(!d.blocks){Ext.isReady=true}d.firing=true;while(e.length){if(d.sortGeneration!==d.generation){d.sortGeneration=d.generation;e.sort(d.sortFn)}f=e.pop();if(d.blocks&&!f.dom){e.push(f);break}d.invoke(f)}d.firing=false},makeListener:function(g,h,e){var f={fn:g,id:++this.nextId,scope:h,dom:false,priority:0};if(e){Ext.apply(f,e)}f.phase=f.dom?0:1;return f},on:function(j,f,g){var i=Ext.env.Ready,h=i.makeListener(j,f,g);if(i.state===2&&!i.firing&&(h.dom||!i.blocks)){i.invoke(h)}else{i.listeners.push(h);++i.generation;if(!i.bound){i.bind()}}},onReadyEvent:function(c){var d=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(d.doReadyEvent,d,arguments)}else{d.doReadyEvent(c)}},doReadyEvent:function(c){var d=this;if(d.bound>0){d.unbind();d.bound=-1}if(!d.state){d.fireReady()}},sortFn:function(a,b){return -((a.phase-b.phase)||(b.priority-a.priority)||(a.id-b.id))},unblock:function(){var b=this;if(b.blocks){if(!--b.blocks){if(b.state===2&&!b.firing){b.invokeAll()}}}},unbind:function(){var d=this,c=document;if(d.bound>1){c.removeEventListener("deviceready",d.onReadyEvent,false)}c.removeEventListener("DOMContentLoaded",d.onReadyEvent,false);window.removeEventListener("load",d.onReadyEvent,false)}};(function(){var b=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(b,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var a=true;try{document.documentElement.doScroll("left")}catch(d){a=false}if(a&&document.body){b.onReadyEvent({type:"doScroll"})}else{b.scrollTimer=Ext.defer(b.pollScroll,20)}return a},bind:function(){if(b.bound){return}var e=document,a;try{a=window.frameElement===undefined}catch(f){}if(!a||!e.documentElement.doScroll){b.pollScroll=Ext.emptyFn}else{if(b.pollScroll()){return}}if(e.readyState==="complete"){b.onReadyEvent({type:"already "+(e.readyState||"body")})}else{e.attachEvent("onreadystatechange",b.onReadyStateChange);window.attachEvent("onload",b.onReadyEvent);b.bound=1}},unbind:function(){document.detachEvent("onreadystatechange",b.onReadyStateChange);window.detachEvent("onload",b.onReadyEvent);if(Ext.isNumber(b.scrollTimer)){clearTimeout(b.scrollTimer);b.scrollTimer=null}},onReadyStateChange:function(){var a=document.readyState;if(b.readyStatesRe.test(a)){b.onReadyEvent({type:a})}}})}Ext.onDocumentReady=function(f,g,a){var h={dom:true};if(a){Ext.apply(h,a)}b.on(f,g,h)};Ext.onReady=function(e,f,a){b.on(e,f,a)};Ext.onInternalReady=function(e,f,a){b.on(e,f,Ext.apply({priority:1000},a))};b.bind()}());Ext.Loader=(new function(){var B=this,D=Ext.ClassManager,x=Ext.Boot,A=Ext.Class,v=Ext.env.Ready,w=Ext.Function.alias,y=["extend","mixins","requires"],r={},u=[],C=[],z=[],q={},s={},t={enabled:true,scriptChainDelay:false,disableCaching:true,disableCachingParam:"_dc",paths:D.paths,preserveScripts:true,scriptCharset:undefined},p={disableCaching:true,disableCachingParam:true,preserveScripts:true,scriptChainDelay:"loadDelay"};Ext.apply(B,{isInHistory:r,isLoading:false,history:u,config:t,readyListeners:C,optionalRequires:z,requiresMap:q,hasFileLoadError:false,scriptsLoading:0,syncModeEnabled:false,missingQueue:s,init:function(){var i=document.getElementsByTagName("script"),c=i[i.length-1].src,d=c.substring(0,c.lastIndexOf("/")+1),f=Ext._classPathMetadata,e=Ext.Microloader,a=Ext.manifest,k,h,g,j,b;if(!D.getPath("Ext")){D.setPath("Ext",d+"src")}if(f){Ext._classPathMetadata=null;B.addClassPathMappings(f)}if(a){k=a.loadOrder;h=Ext.Boot.baseUrl;if(k&&a.bootRelative){for(g=k.length,j=0;j<g;j++){b=k[j];b.path=h+b.path}}}if(e){v.block();e.onMicroloaderReady(function(){v.unblock()})}},setConfig:Ext.Function.flexSetter(function(c,b){if(c==="paths"){B.setPath(b)}else{t[c]=b;var a=p[c];if(a){x.setConfig((a===true)?c:a,b)}}return B}),getConfig:function(a){return a?t[a]:t},setPath:function(){D.setPath.apply(D,arguments);return B},addClassPathMappings:function(a){D.setPath(a);return B},addBaseUrlClassPathMappings:function(b){for(var a in b){b[a]=x.baseUrl+b[a]}Ext.Loader.addClassPathMappings(b)},getPath:function(a){return D.getPath(a)},require:function(c,d,e,a){if(a){return B.exclude(a).require(c,d,e)}var b=D.getNamesByExpression(c);return B.load(b,d,e)},syncRequire:function(){var a=B.syncModeEnabled;B.syncModeEnabled=true;var b=B.require.apply(B,arguments);B.syncModeEnabled=a;return b},exclude:function(a){var b=D.select({require:function(c,d,e){return B.load(c,d,e)},syncRequire:function(c,e,f){var d=B.syncModeEnabled;B.syncModeEnabled=true;var g=B.load(c,e,f);B.syncModeEnabled=d;return g}});b.exclude(a);return b},load:function(c,e,d){if(e){if(e.length){e=B.makeLoadCallback(c,e)}e=e.bind(d||Ext.global)}var j=[],a=c.length,g,h,i,f=[],b=D.classState;for(h=0;h<a;++h){g=D.resolveName(c[h]);if(!D.isCreated(g)){j.push(g);s[g]=B.getPath(g);if(!b[g]){f.push(s[g])}}}i=j.length;if(i){B.missingCount+=i;D.onCreated(function(){if(e){Ext.callback(e,d,arguments)}B.checkReady()},B,j);if(!t.enabled){Ext.raise("Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class"+((j.length>1)?"es":"")+": "+j.join(", "))}if(f.length){B.loadScripts({url:f,_classNames:j})}else{B.checkReady()}}else{if(e){e.call(d)}B.checkReady()}if(B.syncModeEnabled){if(a===1){return D.get(c[0])}}return B},makeLoadCallback:function(b,a){return function(){var c=[],d=b.length;while(d-->0){c[d]=D.get(b[d])}return a.apply(this,c)}},onLoadFailure:function(){var b=this,a=b.onError;B.hasFileLoadError=true;--B.scriptsLoading;if(a){a.call(b.userScope,b)}B.checkReady()},onLoadSuccess:function(){var b=this,a=b.onLoad;--B.scriptsLoading;if(a){a.call(b.userScope,b)}B.checkReady()},onReady:function(c,d,a,e){if(a){v.on(c,d,e)}else{var b=v.makeListener(c,d,e);if(B.isLoading){C.push(b)}else{v.invoke(b)}}},addUsedClasses:function(b){var d,c,a;if(b){b=(typeof b==="string")?[b]:b;for(c=0,a=b.length;c<a;c++){d=b[c];if(typeof d==="string"&&!Ext.Array.contains(z,d)){z.push(d)}}}return B},triggerReady:function(){var b,a=z;if(B.isLoading&&a.length){z=[];B.require(a)}else{B.isLoading=false;C.sort(v.sortFn);while(C.length&&!B.isLoading){b=C.pop();v.invoke(b)}v.unblock()}},historyPush:function(a){if(a&&!r[a]&&!D.overrideMap[a]){r[a]=true;u.push(a)}return B},loadScripts:function(a){var b=Ext.manifest,e=b&&b.loadOrder,d=b&&b.loadOrderMap,c;++B.scriptsLoading;if(e&&!d){b.loadOrderMap=d=x.createLoadOrderMap(e)}B.checkReady();c=Ext.apply({loadOrder:e,loadOrderMap:d,charset:t.scriptCharset,success:B.onLoadSuccess,failure:B.onLoadFailure,sync:B.syncModeEnabled,_classNames:[]},a);c.userScope=c.scope;c.scope=c;x.load(c)},loadScriptsSync:function(a){var b=B.syncModeEnabled;B.syncModeEnabled=true;B.loadScripts({url:a});B.syncModeEnabled=b},loadScriptsSyncBasePrefix:function(a){var b=B.syncModeEnabled;B.syncModeEnabled=true;B.loadScripts({url:a,prependBaseUrl:true});B.syncModeEnabled=b},loadScript:function(d){var b=typeof d==="string",h=d instanceof Array,e=!h&&!b,c=e?d.url:d,i=e&&d.onError,g=e&&d.onLoad,f=e&&d.scope,a={url:c,scope:f,onLoad:g,onError:i,_classNames:[]};B.loadScripts(a)},flushMissingQueue:function(){var d,a,b=0,c=0;for(d in s){b++;a=s[d];if(D.isCreated(d)){delete s[d]}else{if(D.existCache[d]===2){delete s[d]}else{++c}}}this.missingCount=c},checkReady:function(){var a=B.isLoading,b;B.flushMissingQueue();b=B.missingCount+B.scriptsLoading;if(b&&!a){v.block();B.isLoading=!!b}else{if(!b&&a){B.triggerReady()}}}});Ext.require=w(B,"require");Ext.syncRequire=w(B,"syncRequire");Ext.exclude=w(B,"exclude");A.registerPreprocessor("loader",function(F,n,b,d){var h=this,j=[],f,i=D.getName(F),o,a,k,l,e,m,c,g;for(o=0,k=y.length;o<k;o++){m=y[o];if(n.hasOwnProperty(m)){c=n[m];if(typeof c==="string"){j.push(c)}else{if(c instanceof Array){for(a=0,l=c.length;a<l;a++){e=c[a];if(typeof e==="string"){j.push(e)}}}else{if(typeof c!=="function"){for(a in c){if(c.hasOwnProperty(a)){e=c[a];if(typeof e==="string"){j.push(e)}}}}}}}}if(j.length===0){return}if(i){q[i]=j}(i?B.exclude(i):B).require(j,function(){for(o=0,k=y.length;o<k;o++){m=y[o];if(n.hasOwnProperty(m)){c=n[m];if(typeof c==="string"){n[m]=D.get(c)}else{if(c instanceof Array){for(a=0,l=c.length;a<l;a++){e=c[a];if(typeof e==="string"){n[m][a]=D.get(e)}}}else{if(typeof c!=="function"){for(var E in c){if(c.hasOwnProperty(E)){e=c[E];if(typeof e==="string"){n[m][E]=D.get(e)}}}}}}}}d.call(h,F,n,b)});return false},true,"after","className");D.registerPostprocessor("uses",function(b,d,i){var c=Ext.manifest,a=c&&c.loadOrder,l=c&&c.classes,k,g,e,h,j,f;if(a){g=l[b];if(g&&!isNaN(j=g.idx)){e=a[j];k=e.uses;f={};for(h=k.length,j=0;j<h;j++){f[k[j]]=true}k=Ext.Boot.getPathsFromIndexes(f,a,true);if(k.length>0){B.loadScripts({url:k,sequential:true})}}}if(i.uses){k=i.uses;B.addUsedClasses(k)}});D.onCreated(B.historyPush);B.init()}());Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}(Ext.cmd.derive("Ext.Mixin",Ext.Base,function(b){return{statics:{addHook:function(i,l,n,m){var j=Ext.isFunction(i),k=function(){var d=arguments,c=j?i:m[i],e=this.callParent(d);c.apply(this,d);return e},a=l.hasOwnProperty(n)&&l[n];if(j){i.$previous=Ext.emptyFn}k.$name=n;k.$owner=l.self;if(a){k.$previous=a.$previous;a.$previous=k}else{l[n]=k}}},onClassExtended:function(a,r){var p=r.mixinConfig,m=r.xhooks,n=a.superclass,q=r.onClassMixedIn,t,o,l,s;if(m){delete r.xhooks;(p||(r.mixinConfig=p={})).on=m}if(p){t=n.mixinConfig;if(t){r.mixinConfig=p=Ext.merge({},t,p)}r.mixinId=p.id;o=p.before;l=p.after;m=p.on;s=p.extended}if(o||l||m||s){r.onClassMixedIn=function(e){var d=this.prototype,f=e.prototype,c;if(o){Ext.Object.each(o,function(h,g){e.addMember(h,function(){if(d[g].apply(this,arguments)!==false){return this.callParent(arguments)}})})}if(l){Ext.Object.each(l,function(h,g){e.addMember(h,function(){var i=this.callParent(arguments);d[g].apply(this,arguments);return i})})}if(m){for(c in m){b.addHook(m[c],f,c,d)}}if(s){e.onExtended(function(){var g=Ext.Array.slice(arguments,0);g.unshift(e);return s.apply(this,g)},this)}if(q){q.apply(this,arguments)}}}}}},0,0,0,0,0,0,[Ext,"Mixin"],0));Ext.util=Ext.util||{};Ext.util.DelayedTask=function(n,o,i,k,l){var m=this,j,p=function(){var a=Ext.GlobalEvents;clearInterval(m.id);m.id=null;n.apply(o,i||[]);if(l!==false&&a.hasListeners.idle){a.fireEvent("idle")}};k=typeof k==="boolean"?k:true;m.id=null;m.delay=function(c,a,b,d){if(k){m.cancel()}if(typeof c==="number"){j=c}n=a||n;o=b||o;i=d||i;if(!m.id){m.id=Ext.interval(p,j)}};m.cancel=function(){if(m.id){clearInterval(m.id);m.id=null}}};(Ext.cmd.derive("Ext.util.Event",Ext.Base,function(){var g=Array.prototype.slice,f=Ext.Array.insert,h=Ext.Array.toArray,e={};return{isEvent:true,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(E,L,K,i,B){var b=this,G=false,C=b.observable,H=b.name,A,I,c,y,a,z,J,F,d,D;if(b.findListener(E,L)===-1){I=b.createListener(E,L,K,i,B);if(b.firing){b.listeners=b.listeners.slice(0)}A=b.listeners;F=J=A.length;c=K&&K.priority;a=b._highestNegativePriorityIndex;z=a!==undefined;if(c){y=(c<0);if(!y||z){for(d=(y?a:0);d<J;d++){D=A[d].o?A[d].o.priority||0:0;if(D<c){F=d;break}}}else{b._highestNegativePriorityIndex=F}}else{if(z){F=a}}if(!y&&F<=a){b._highestNegativePriorityIndex++}if(F===J){A[J]=I}else{f(A,F,[I])}if(C.isElement){C._getPublisher(H).subscribe(C,H,K.delegated!==false,K.capture)}G=true}return G},createListener:function(c,a,v,u,s){var o=this,d=Ext._namedScopes[a],t={fn:c,scope:a,ev:o,caller:u,manager:s,namedScope:d,defaultScope:d?(a||o.observable):undefined,lateBound:typeof c==="string"},b=c,q=false,r;if(v){t.o=v;if(v.single){b=o.createSingle(b,t,v,a);q=true}if(v.target){b=o.createTargeted(b,t,v,a,q);q=true}if(v.delay){b=o.createDelayed(b,t,v,a,q);q=true}if(v.buffer){b=o.createBuffered(b,t,v,a,q);q=true}if(o.observable.isElement){r=v.type;if(r){t.type=r}}}t.fireFn=b;t.wrapped=q;return t},findListener:function(b,c){var d=this.listeners,i=d.length,a;while(i--){a=d[i];if(a){if(a.fn===b&&a.scope==c){return i}}}return -1},removeListener:function(b,D,d){var c=this,i=false,A=c.observable,k=c.name,y,B,C,w,x,a,z,v;d=d||c.findListener(b,D);if(d!=-1){y=c.listeners[d];C=y.o;B=c._highestNegativePriorityIndex;if(c.firing){c.listeners=c.listeners.slice(0)}if(y.task){y.task.cancel();delete y.task}w=y.tasks&&y.tasks.length;if(w){while(w--){y.tasks[w].cancel()}delete y.tasks}c.listeners.splice(d,1);x=y.manager;if(x){a=x.managedListeners;if(a){for(v=a.length;v--;){z=a[v];if(z.item===c.observable&&z.ename===k&&z.fn===b&&z.scope===D){a.splice(v,1)}}}}if(B){if(d<B){c._highestNegativePriorityIndex--}else{if(d===B&&d===c.listeners.length){delete c._highestNegativePriorityIndex}}}if(A.isElement){A._getPublisher(k).unsubscribe(A,k,C.delegated!==false,C.capture)}i=true}return i},clearListeners:function(){var b=this.listeners,c=b.length,a;while(c--){a=b[c];this.removeListener(a.fn,a.scope)}},suspend:function(){++this.suspended},resume:function(){if(this.suspended){--this.suspended}},isSuspended:function(){return this.suspended>0},fireDelegated:function(a,b){this.firingObservable=a;return this.fire.apply(this,b)},fire:function(){var I=this,F=I.listeners,N=F.length,K=I.observable,E=K.isElement,a=K.isComponent,c=I.firingObservable,R,d,J,C,S,P,i,D,H,Q,L,O,b,G,M;if(!I.suspended&&N>0){I.firing=true;S=arguments.length?g.call(arguments,0):[];i=S.length;if(E){b=S[0]}for(C=0;C<N;C++){P=F[C];R=P.o;if(E){if(H){b.setCurrentTarget(H)}Q=P.type;if(Q){L=b;b=S[0]=L.chain({type:Q})}Ext.EventObject=b}O=S;if(R){d=R.delegate;if(d){if(E){D=b.getTarget("#"+b.currentTarget.id+" "+d);if(D){S[1]=D;H=b.currentTarget;b.setCurrentTarget(D)}else{continue}}else{if(a&&!c.is("#"+K.id+" "+R.delegate)){continue}}}if(E){if(R.preventDefault){b.preventDefault()}if(R.stopPropagation){b.stopPropagation()}if(R.stopEvent){b.stopEvent()}}S[i]=R;if(R.args){O=R.args.concat(S)}}J=I.getFireInfo(P);G=J.fn;M=J.scope;J.fn=J.scope=null;if(G.apply(M,O)===false){Ext.EventObject=null;return(I.firing=false)}if(L){b=S[0]=L;L=null}Ext.EventObject=null}}I.firing=false;return true},getFireInfo:function(b,c){var a=this.observable,n=b.fireFn,d=b.scope,m=b.namedScope,l;if(!c&&b.wrapped){e.fn=n;return e}l=c?b.fn:n;if(b.lateBound){if(!d||m){d=(b.caller||a).resolveListenerScope(b.defaultScope)}l=d[l]}else{if(m&&m.isController){d=(b.caller||a).resolveListenerScope(b.defaultScope)}else{if(!d||m){d=a}}}e.fn=l;e.scope=d;return e},createTargeted:function(c,b,a,d,j){return function(){if(a.target===arguments[0]){var i;if(!j){i=b.ev.getFireInfo(b,true);c=i.fn;d=i.scope;i.fn=i.scope=null}return c.apply(d,arguments)}}},createBuffered:function(c,b,a,d,j){b.task=new Ext.util.DelayedTask();return function(){var i;if(!j){i=b.ev.getFireInfo(b,true);c=i.fn;d=i.scope;i.fn=i.scope=null}b.task.delay(a.buffer,c,d,h(arguments))}},createDelayed:function(c,b,a,d,j){return function(){var l=new Ext.util.DelayedTask(),i;if(!j){i=b.ev.getFireInfo(b,true);c=i.fn;d=i.scope;i.fn=i.scope=null}if(!b.tasks){b.tasks=[]}b.tasks.push(l);l.delay(a.delay||10,c,d,h(arguments))}},createSingle:function(c,b,a,d,j){return function(){var l=b.ev,i;if(l.removeListener(b.fn,d)&&l.observable){l.observable.hasListeners[l.name]--}if(!j){i=l.getFireInfo(b,true);c=i.fn;d=i.scope;i.fn=i.scope=null}return c.apply(d,arguments)}}}},1,0,0,0,0,0,[Ext.util,"Event"],0));(Ext.cmd.derive("Ext.mixin.Identifiable",Ext.Base,{statics:{uniqueIds:{}},isIdentifiable:true,mixinId:"identifiable",idCleanRegex:/\.|[^\w\-]/g,defaultIdPrefix:"ext-",defaultIdSeparator:"-",getOptimizedId:function(){return this.id},getUniqueId:function(){var i=this.id,g,k,j,h,l;if(!(i||i===0)){g=this.self.prototype;k=this.defaultIdSeparator;h=Ext.mixin.Identifiable.uniqueIds;if(!g.hasOwnProperty("identifiablePrefix")){j=this.xtype;if(j){l=this.defaultIdPrefix+j.replace(this.idCleanRegex,k)+k}else{if(!(l=g.$className)){l=this.defaultIdPrefix+"anonymous"+k}else{l=l.replace(this.idCleanRegex,k).toLowerCase()+k}}g.identifiablePrefix=l}l=this.identifiablePrefix;if(!h.hasOwnProperty(l)){h[l]=0}i=this.id=this.id=l+(++h[l])}this.getUniqueId=this.getOptimizedId;return i},setId:function(b){this.id=this.id=b},getId:function(){var b=this.id;if(!b){b=this.getUniqueId()}this.getId=this.getOptimizedId;return b}},0,0,0,0,0,0,[Ext.mixin,"Identifiable"],0));(Ext.cmd.derive("Ext.mixin.Observable",Ext.Mixin,function(h){var k=Ext.emptyFn,l=[],j=Array.prototype,i=j.slice,g=function(a){if(a instanceof g){return a}this.observable=a;if(arguments[1].isObservable){this.managedListeners=true}this.args=i.call(arguments,1)};g.prototype.destroy=function(){this.destroy=Ext.emptyFn;var a=this.observable;a[this.managedListeners?"mun":"un"].apply(a,this.args)};return{mixinConfig:{id:"observable",after:{destroy:"clearListeners"}},statics:{releaseCapture:function(a){a.fireEventArgs=this.prototype.fireEventArgs},capture:function(a,c,d){var b=function(f,e){return c.apply(d,[f].concat(e))};this.captureArgs(a,b,d)},captureArgs:function(a,b,c){a.fireEventArgs=Ext.Function.createInterceptor(a.fireEventArgs,b,c)},observe:function(b,a){if(b){if(!b.isObservable){Ext.applyIf(b,new this());this.captureArgs(b.prototype,b.fireEventArgs,b)}if(Ext.isObject(a)){b.on(a)}}return b},prepareClass:function(t,b,s){var c=t.listeners=[],e=s||t.prototype,x=e.listeners,u=b?b.listeners:t.superclass.self.listeners,w,a,d;if(u){c.push(u)}if(x){a=x.scope;if(!a){x.scope="self"}else{d=Ext._namedScopes[a];if(d&&d.isController){x.scope="self.controller"}}c.push(x);e.listeners=null}if(!t.HasListeners){var f=function(){},v=t.superclass.HasListeners||(b&&b.HasListeners)||h.HasListeners;t.prototype.HasListeners=t.HasListeners=f;f.prototype=t.hasListeners=new v()}}},isObservable:true,eventsSuspended:0,constructor:function(c){var q=this,d=q.self,e,a,p,f,b;if(q.$observableInitialized){return}q.$observableInitialized=true;q.hasListeners=new q.HasListeners();q.eventedBeforeEventNames={};q.events=q.events||{};e=d.listeners;if(e&&!q._addDeclaredListeners(e)){d.listeners=null}a=(c&&c.listeners)||q.listeners;if(a){if(a instanceof Array){for(b=0,f=a.length;b<f;++b){q.addListener(a[b])}}else{q.addListener(a)}}p=(c&&c.bubbleEvents)||q.bubbleEvents;if(p){q.enableBubble(p)}if(q.$applyConfigs){if(c){Ext.apply(q,c)}}else{q.initConfig(c)}if(a){q.listeners=null}},onClassExtended:function(b,a){if(!b.HasListeners){h.prepareClass(b,b.prototype.$observableMixedIn?undefined:a)}},$eventOptions:{scope:1,delay:1,buffer:1,onFrame:1,single:1,args:1,destroyable:1,priority:1,order:1},$orderToPriority:{before:100,current:0,after:-100},_addDeclaredListeners:function(b){var a=this;if(b instanceof Array){Ext.each(b,a._addDeclaredListeners,a)}else{a._addedDeclaredListeners=true;a.addListener(b)}return a._addedDeclaredListeners},addManagedListener:function(c,q,e,b,a,r){var f=this,d=f.managedListeners=f.managedListeners||[],s,t;if(typeof q!=="string"){t=arguments.length>4?a:q;a=q;for(q in a){if(a.hasOwnProperty(q)){s=a[q];if(!c.$eventOptions[q]){f.addManagedListener(c,q,s.fn||s,s.scope||a.scope||b,s.fn?s:t,true)}}}if(a&&a.destroyable){return new g(f,c,a)}}else{if(e!==k){c.doAddListener(q,e,b,a,null,f,f);if(!r&&a&&a.destroyable){return new g(f,c,q,e,b)}}}},removeManagedListener:function(c,s,e,b){var f=this,a,t,d,u,r;if(typeof s!=="string"){a=s;for(s in a){if(a.hasOwnProperty(s)){t=a[s];if(!c.$eventOptions[s]){f.removeManagedListener(c,s,t.fn||t,t.scope||a.scope||b)}}}}else{d=f.managedListeners?f.managedListeners.slice():[];s=Ext.canonicalEventName(s);for(r=0,u=d.length;r<u;r++){f.removeManagedListenerItem(false,d[r],c,s,e,b)}}},fireEvent:function(a){return this.fireEventArgs(a,i.call(arguments,1))},resolveListenerScope:function(a){var b=Ext._namedScopes[a];if(b){if(b.isSelf||b.isThis){a=null}}return a||this},fireEventArgs:function(f,d){f=Ext.canonicalEventName(f);var a=this,c=a.events,b=c&&c[f],e=true;if(a.hasListeners[f]){e=a.doFireEvent(f,d||l,b?b.bubble:false)}return e},fireAction:function(e,c,a,b,d,f){if(typeof a==="string"&&!b){a=this[a]}d=d?Ext.Object.chain(d):{};d.single=true;d.priority=((f==="after")?-99.5:99.5);this.doAddListener(e,a,b,d);this.fireEventArgs(e,c)},$eventedController:{_paused:1,pause:function(){++this._paused},resume:function(){var b=this,c=b.fn,d=b.scope,a=b.fnArgs,n=b.owner,e,f;if(!--b._paused){if(c){e=Ext.Array.slice(a||b.args);if(a===false){e.shift()}b.fn=null;e.push(b);if(Ext.isFunction(c)){f=c.apply(d,e)}else{if(d&&Ext.isString(c)&&Ext.isFunction(d[c])){f=d[c].apply(d,e)}}if(f===false){return false}}if(!b._paused){return b.owner.fireEventArgs(b.eventName,b.args)}}}},fireEventedAction:function(s,q,d,a,e){var f=this,b=f.eventedBeforeEventNames,r=b[s]||(b[s]="before"+s),t=Ext.apply({owner:f,eventName:s,fn:d,scope:a,fnArgs:e,args:q},f.$eventedController),c;q.push(t);c=f.fireEventArgs(r,q);q.pop();if(c===false){return false}return t.resume()},doFireEvent:function(e,c,f){var a=this,n,b,d=true;do{if(a.eventsSuspended){if((n=a.eventQueue)){n.push([e,c])}return d}else{b=a.events&&a.events[e];if(b&&b!==true){if((d=b.fire.apply(b,c))===false){break}}}}while(f&&(a=a.getBubbleParent()));return d},getBubbleParent:function(){var a=this,b=a.getBubbleTarget&&a.getBubbleTarget();if(b&&b.isObservable){return b}return null},addListener:function(u,b,a,z,w,y){var c=this,t=Ext._namedScopes,x,d,f,e,v;if(typeof u!=="string"){z=u;a=z.scope;d=a&&t[a];f=d&&d.isSelf;v=((c.isComponent||c.isWidget)&&z.element)?c.$elementEventOptions:c.$eventOptions;for(u in z){x=z[u];if(!v[u]){e=x.scope;if(e&&f){d=t[e];if(d&&d.isController){e="self.controller"}}c.doAddListener(u,x.fn||x,e||a,x.fn?x:z,w,y)}}if(z&&z.destroyable){return new g(c,z)}}else{c.doAddListener(u,b,a,z,w,y);if(z&&z.destroyable){return new g(c,u,b,a,z)}}return c},removeListener:function(d,b,c,n){var a=this,e,f;if(typeof d!=="string"){f=d;n=n||a.$eventOptions;for(d in f){if(f.hasOwnProperty(d)){e=f[d];if(!a.$eventOptions[d]){a.doRemoveListener(d,e.fn||e,e.scope||f.scope)}}}}else{a.doRemoveListener(d,b,c)}return a},onBefore:function(d,a,b,c){return this.addListener(d,a,b,c,"before")},onAfter:function(d,a,b,c){return this.addListener(d,a,b,c,"after")},unBefore:function(d,a,b,c){return this.removeListener(d,a,b,c,"before")},unAfter:function(d,a,b,c){return this.removeListener(d,a,b,c,"after")},addBeforeListener:function(){return this.onBefore.apply(this,arguments)},addAfterListener:function(){return this.onAfter.apply(this,arguments)},removeBeforeListener:function(){return this.unBefore.apply(this,arguments)},removeAfterListener:function(){return this.unAfter.apply(this,arguments)},clearListeners:function(){var a=this,c=a.events,e=a.hasListeners,b,d;if(c){for(d in c){if(c.hasOwnProperty(d)){b=c[d];if(b.isEvent){delete e[d];b.clearListeners()}}}a.events=null}a.clearManagedListeners()},clearManagedListeners:function(){var a=this,c=a.managedListeners?a.managedListeners.slice():[],b=0,d=c.length;for(;b<d;b++){a.removeManagedListenerItem(true,c[b])}a.managedListeners=[]},removeManagedListenerItem:function(e,f,a,d,b,c){if(e||(f.item===a&&f.ename===d&&(!b||f.fn===b)&&(!c||f.scope===c))){f.item.doRemoveListener(f.ename,f.fn,f.scope,f.options);if(!e){Ext.Array.remove(this.managedListeners,f)}}},hasListener:function(a){a=Ext.canonicalEventName(a);return !!this.hasListeners[a]},isSuspended:function(a){var b=this.eventsSuspended>0,c=this.events;if(!b&&a&&c){a=c[a];if(a&&a.isEvent){return a.isSuspended()}}return b},suspendEvents:function(a){++this.eventsSuspended;if(a&&!this.eventQueue){this.eventQueue=[]}},suspendEvent:function(){var a=this,c=a.events,f=arguments.length,d,b,e;for(d=0;d<f;d++){e=arguments[d];e=Ext.canonicalEventName(e);b=c[e];if(!b||!b.isEvent){b=a._initEvent(e)}b.suspend()}},resumeEvent:function(){var b=this.events||0,d=b&&arguments.length,c,a;for(c=0;c<d;c++){a=b[arguments[c]];if(a&&a.resume){a.resume()}}},resumeEvents:function(e){var d=this,a=d.eventQueue,b,c;if(d.eventsSuspended&&!--d.eventsSuspended){delete d.eventQueue;if(!e&&a){b=a.length;for(c=0;c<b;c++){d.fireEventArgs.apply(d,a[c])}}}},relayEvents:function(b,a,q){var c=this,f=a.length,r=0,s,e,d={};if(Ext.isObject(a)){for(r in a){e=a[r];d[r]=c.createRelayer(e)}}else{for(;r<f;r++){s=a[r];d[s]=c.createRelayer(q?q+s:s)}}c.mon(b,d,null,null,undefined);return new g(c,b,d)},createRelayer:function(c,b){var a=this;return function(){return a.fireEventArgs.call(a,c,b?i.apply(arguments,b):arguments)}},enableBubble:function(p){if(p){var a=this,q=(typeof p=="string")?arguments:p,d=a.events,b=d&&q.length,e,c,f;for(f=0;f<b;++f){e=q[f];e=Ext.canonicalEventName(e);c=d[e];if(!c||!c.isEvent){c=a._initEvent(e)}a.hasListeners._incr_(e);c.bubble=true}}},destroy:function(){this.clearListeners();this.callParent()},privates:{doAddListener:function(s,e,b,a,t,u,r){var f=this,v,c,d;t=t||(a&&a.order);if(t){d=(a&&a.priority);if(!d){a=a?Ext.Object.chain(a):{};a.priority=f.$orderToPriority[t]}}s=Ext.canonicalEventName(s);if(!r&&(b&&b.isObservable&&(b!==f))){r=b}if(r){c=r.managedListeners=r.managedListeners||[];c.push({item:f,ename:s,fn:e,scope:b,options:a})}v=(f.events||(f.events={}))[s];if(!v||!v.isEvent){v=f._initEvent(s)}if(e!==k){if(v.addListener(e,b,a,u,r)){f.hasListeners._incr_(s)}}},doRemoveListener:function(e,c,d){var a=this,f=a.events,b;e=Ext.canonicalEventName(e);b=f&&f[e];if(b&&b.isEvent){if(b.removeListener(c,d)){a.hasListeners._decr_(e)}}},_initEvent:function(a){return(this.events[a]=new Ext.util.Event(this,a))}},deprecated:{"5.0":{methods:{addEvents:null}}}}},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.mixin,"Observable"],function(){var g=this,j=g.prototype,l=function(){},i=function(b){if(!b.HasListeners){var a=b.prototype;a.$observableMixedIn=1;g.prepareClass(b,this);b.onExtended(function(d,c){g.prepareClass(d,null,c)});if(a.onClassMixedIn){Ext.override(b,{onClassMixedIn:function(c){i.call(this,c);this.callParent(arguments)}})}else{a.onClassMixedIn=function(c){i.call(this,c)}}}h.call(this,b)},h=j.onClassMixedIn;l.prototype={_decr_:function(a,b){if(b==null){b=1}if(!(this[a]-=b)){delete this[a]}},_incr_:function(a){if(this.hasOwnProperty(a)){++this[a]}else{this[a]=1}}};j.HasListeners=g.HasListeners=l;g.createAlias({on:"addListener",un:"removeListener",mon:"addManagedListener",mun:"removeManagedListener",setListeners:"addListener"});g.observeClass=g.observe;function k(a){var b=(this.methodEvents=this.methodEvents||{})[a],e,f,d,c=this,n;if(!b){this.methodEvents[a]=b={};b.originalFn=this[a];b.methodName=a;b.before=[];b.after=[];n=function(m,q,r){if((f=m.apply(q||c,r))!==undefined){if(typeof f=="object"){if(f.returnValue!==undefined){e=f.returnValue}else{e=f}d=!!f.cancel}else{if(f===false){d=true}else{e=f}}}};this[a]=function(){var r=Array.prototype.slice.call(arguments,0),s,m,t;e=f=undefined;d=false;for(m=0,t=b.before.length;m<t;m++){s=b.before[m];n(s.fn,s.scope,r);if(d){return e}}if((f=b.originalFn.apply(c,r))!==undefined){e=f}for(m=0,t=b.after.length;m<t;m++){s=b.after[m];n(s.fn,s.scope,r);if(d){return e}}return e}}return b}Ext.apply(j,{onClassMixedIn:i,beforeMethod:function(a,b,c){k.call(this,a).before.push({fn:b,scope:c})},afterMethod:function(a,b,c){k.call(this,a).after.push({fn:b,scope:c})},removeMethodListener:function(a,c,d){var b=this.getMethodEvent(a),e,f;for(e=0,f=b.before.length;e<f;e++){if(b.before[e].fn==c&&b.before[e].scope==d){Ext.Array.erase(b.before,e,1);return}}for(e=0,f=b.after.length;e<f;e++){if(b.after[e].fn==c&&b.after[e].scope==d){Ext.Array.erase(b.after,e,1);return}}},toggleEventLogging:function(a){Ext.util.Observable[a?"capture":"releaseCapture"](this,function(b){if(Ext.isDefined(Ext.global.console)){Ext.global.console.log(b,arguments)}})}})}));(Ext.cmd.derive("Ext.util.HashMap",Ext.Base,{generation:0,config:{keyFn:null},constructor:function(e){var f=this,d;f.mixins.observable.constructor.call(f,e);f.clear(true);d=f.getKeyFn();if(d){f.getKey=d}},getCount:function(){return this.length},getData:function(d,c){if(c===undefined){c=d;d=this.getKey(c)}return[d,c]},getKey:function(b){return b.id},add:function(e,f){var d=this;if(arguments.length===1){f=e;e=d.getKey(f)}if(d.containsKey(e)){return d.replace(e,f)}d.map[e]=f;++d.length;d.generation++;if(d.hasListeners.add){d.fireEvent("add",d,e,f)}return f},replace:function(f,i){var j=this,h=j.map,g;if(arguments.length===1){i=f;f=j.getKey(i)}if(!j.containsKey(f)){j.add(f,i)}g=h[f];h[f]=i;j.generation++;if(j.hasListeners.replace){j.fireEvent("replace",j,f,i,g)}return i},remove:function(c){var d=this.findKey(c);if(d!==undefined){return this.removeAtKey(d)}return false},removeAtKey:function(e){var d=this,f;if(d.containsKey(e)){f=d.map[e];delete d.map[e];--d.length;d.generation++;if(d.hasListeners.remove){d.fireEvent("remove",d,e,f)}return true}return false},get:function(d){var c=this.map;return c.hasOwnProperty(d)?c[d]:undefined},clear:function(d){var c=this;if(d||c.generation){c.map={};c.length=0;c.generation=d?0:c.generation+1}if(d!==true&&c.hasListeners.clear){c.fireEvent("clear",c)}return c},containsKey:function(d){var c=this.map;return c.hasOwnProperty(d)&&c[d]!==undefined},contains:function(b){return this.containsKey(this.findKey(b))},getKeys:function(){return this.getArray(true)},getValues:function(){return this.getArray(false)},getArray:function(g){var f=[],e,h=this.map;for(e in h){if(h.hasOwnProperty(e)){f.push(g?e:h[e])}}return f},each:function(i,j){var g=Ext.apply({},this.map),f,h=this.length;j=j||this;for(f in g){if(g.hasOwnProperty(f)){if(i.call(j,f,g[f],h)===false){break}}}return this},clone:function(){var f=new this.self(this.initialConfig),d=this.map,e;f.suspendEvents();for(e in d){if(d.hasOwnProperty(e)){f.add(e,d[e])}}f.resumeEvents();return f},findKey:function(d){var e,f=this.map;for(e in f){if(f.hasOwnProperty(e)&&f[e]===d){return e}}return undefined},destroy:function(){this.callParent();this.map=null}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,"HashMap"],function(c){var d=c.prototype;d.removeByKey=d.removeAtKey}));(Ext.cmd.derive("Ext.promise.Consequence",Ext.Base,function(b){return{promise:null,deferred:null,onFulfilled:null,onRejected:null,onProgress:null,constructor:function(f,a,g){var h=this;h.onFulfilled=f;h.onRejected=a;h.onProgress=g;h.deferred=new Ext.promise.Deferred();h.promise=h.deferred.promise},trigger:function(f,g){var h=this,a=h.deferred;switch(f){case"fulfill":h.propagate(g,h.onFulfilled,a,a.resolve);break;case"reject":h.propagate(g,h.onRejected,a,a.reject);break}},update:function(a){if(Ext.isFunction(this.onProgress)){a=this.onProgress(a)}this.deferred.update(a)},propagate:function(g,f,a,h){if(Ext.isFunction(f)){this.schedule(function(){try{a.resolve(f(g))}catch(c){a.reject(c)}})}else{h.call(this.deferred,g)}},schedule:function(d){var a=b.queueSize++;b.queue[a]=d;if(!a){Ext.asap(b.dispatch)}},statics:{queue:new Array(10000),queueSize:0,dispatch:function(){var a=b.queue,e,f;for(f=0;f<b.queueSize;++f){e=a[f];a[f]=null;e()}b.queueSize=0}}}},1,0,0,0,0,0,[Ext.promise,"Consequence"],0));(Ext.cmd.derive("Ext.promise.Deferred",Ext.Base,{promise:null,consequences:[],completed:false,completionAction:null,completionValue:null,constructor:function(){var b=this;b.promise=new Ext.promise.Promise(b);b.consequences=[];b.completed=false;b.completionAction=null;b.completionValue=null},then:function(h,g,i){var j=this,f=new Ext.promise.Consequence(h,g,i);if(j.completed){f.trigger(j.completionAction,j.completionValue)}else{j.consequences.push(f)}return f.promise},resolve:function(i){var j=this,g,e;if(j.completed){return}try{if(i===j.promise){throw new TypeError("A Promise cannot be resolved with itself.")}if((Ext.isObject(i)||Ext.isFunction(i))&&Ext.isFunction(e=i.then)){g=false;try{e.call(i,function(a){if(!g){g=true;j.resolve(a)}},function(a){if(!g){g=true;j.reject(a)}})}catch(h){if(!g){j.reject(h)}}}else{j.complete("fulfill",i)}}catch(h){j.reject(h)}},reject:function(b){if(this.completed){return}this.complete("reject",b)},update:function(f){var h=this.consequences,i,j,g;if(this.completed){return}for(j=0,g=h.length;j<g;j++){i=h[j];i.update(f)}},complete:function(k,l){var m=this,j=m.consequences,n,h,i;m.completionAction=k;m.completionValue=l;m.completed=true;for(h=0,i=j.length;h<i;h++){n=j[h];n.trigger(m.completionAction,m.completionValue)}m.consequences=null}},1,0,0,0,0,0,[Ext.promise,"Deferred"],0));(Ext.cmd.derive("Ext.promise.Promise",Ext.Base,function(c){var d;return{statics:{CancellationError:Ext.global.CancellationError||Error,_ready:function(){d=Ext.promise.Deferred},all:function(a){return c.when(a).then(function(s){var b=new d(),p=s.length,r=new Array(p),n,t,i,q,o;if(!p){b.resolve(r)}else{i=function(f,e){return c.when(f).then(function(g){r[e]=g;if(!--p){b.resolve(r)}return g},function(g){return b.reject(g)})};for(n=q=0,o=s.length;q<o;n=++q){t=s[n];if(n in s){i(t,n)}else{p--}}}return b.promise})},is:function(a){return(Ext.isObject(a)||Ext.isFunction(a))&&Ext.isFunction(a.then)},rethrowError:function(a){Ext.asap(function(){throw a})},when:function(a){var b=new Ext.promise.Deferred();b.resolve(a);return b.promise}},owner:null,constructor:function(a){this.owner=a},then:function(a,j,b,i){var h;if(arguments.length===1&&Ext.isObject(arguments[0])){h=arguments[0];a=h.success;j=h.failure;b=h.progress;i=h.scope}if(i){if(a){a=Ext.Function.bind(a,i)}if(j){j=Ext.Function.bind(j,i)}if(b){b=Ext.Function.bind(b,i)}}return this.owner.then(a,j,b)},otherwise:function(f,b){var a;if(arguments.length===1&&Ext.isObject(arguments[0])){a=arguments[0];f=a.fn;b=a.scope}if(b!=null){f=Ext.Function.bind(f,b)}return this.owner.then(null,f)},always:function(f,b){var a;if(arguments.length===1&&Ext.isObject(arguments[0])){a=arguments[0];f=a.fn;b=a.scope}if(b!=null){f=Ext.Function.bind(f,b)}return this.owner.then(function(h){try{f()}catch(e){c.rethrowError(e)}return h},function(e){try{f()}catch(h){c.rethrowError(h)}throw e})},done:function(){this.owner.then(null,c.rethrowError)},cancel:function(a){if(a==null){a=null}this.owner.reject(new this.self.CancellationError(a))},log:function(a){if(a==null){a=""}return this._owner.then(function(b){Ext.log(""+(a||"Promise")+" resolved with value: "+b);return b},function(b){Ext.log(""+(a||"Promise")+" rejected with reason: "+b);throw b})}}},1,0,0,0,0,0,[Ext.promise,"Promise"],function(b){b._ready()}));(Ext.cmd.derive("Ext.Promise",Ext.Base,function(){var b;return{statics:{_ready:function(){b=Ext.promise.Promise},all:function(){return b.all.apply(b,arguments)},race:function(){},reject:function(d){var a=new Ext.promise.Deferred();a.reject(d);return a.promise},resolve:function(d){var a=new Ext.promise.Deferred();a.resolve(d);return a.promise}},constructor:function(d){var a=new Ext.promise.Deferred();d(a.resolve.bind(a),a.reject.bind(a));return a.promise}}},1,0,0,0,0,0,[Ext,"Promise"],function(d){var c=Ext.global.Promise;if(c&&c.resolve){Ext.Promise=c}else{d._ready()}}));(Ext.cmd.derive("Ext.Deferred",Ext.promise.Deferred,function(d){var f,e;return{statics:{_ready:function(){f=Ext.promise.Promise;e=Ext.Promise.resolve},all:function(){return f.all.apply(f,arguments)},any:function(a){return d.some(a,1).then(function(b){return b[0]},function(b){if(b instanceof Error&&b.message==="Too few Promises were resolved."){Ext.raise("No Promises were resolved.")}else{throw b}})},delay:function(c,a){var b;if(arguments.length===1){a=c;c=undefined}a=Math.max(a,0);b=new d();setTimeout(function(){b.resolve(c)},a);return b.promise},map:function(b,a){return d.resolved(b).then(function(u){var c,p,v,r,i,t,s,q;r=u.length;t=new Array(u.length);c=new d();if(!r){c.resolve(t)}else{i=function(h,g){return d.resolved(h).then(function(j){return a(j,g,t)}).then(function(j){t[g]=j;if(!--r){c.resolve(t)}return j},function(j){return c.reject(j)})};for(p=s=0,q=u.length;s<q;p=++s){v=u[p];if(p in u){i(v,p)}else{r--}}}return c.promise})},memoize:function(a,b,h){var c=Ext.Function.memoize(a,b,h);return function(){return d.all(Ext.Array.slice(arguments)).then(function(g){return c.apply(b,g)})}},parallel:function(b,a){if(a==null){a=null}var c=Ext.Array.slice(arguments,2);return d.map(b,function(h){if(!Ext.isFunction(h)){throw new Error("Invalid parameter: expected a function.")}return h.apply(a,c)})},pipeline:function(b,c,a){if(a==null){a=null}return d.reduce(b,function(i,j){if(!Ext.isFunction(j)){throw new Error("Invalid parameter: expected a function.")}return j.call(a,i)},c)},reduce:function(c,b,h){var a=arguments.length===3;return d.resolved(c).then(function(g){var j=[g,function(m,i,n){return d.resolved(m).then(function(k){return d.resolved(i).then(function(l){return b(k,l,n,g)})})}];if(a){j.push(h)}return Ext.Array.reduce.apply(Ext.Array,j)})},rejected:function(a){var b=new Ext.Deferred();b.reject(a);return b.promise},resolved:function(a){var b=new Ext.Deferred();b.resolve(a);return b.promise},sequence:function(b,a){if(a==null){a=null}var c=Ext.Array.slice(arguments,2);return d.reduce(b,function(j,i){if(!Ext.isFunction(i)){throw new Error("Invalid parameter: expected a function.")}return d.resolved(i.apply(a,c)).then(function(g){j.push(g);return j})},[])},some:function(a,b){return d.resolved(a).then(function(x){var c,t,r,i,y,z,v,s,w,u;s=[];v=b;z=(x.length-v)+1;c=new d();if(x.length<b){c.reject(new Error("Too few Promises were resolved."))}else{i=function(g){if(v>0){s.push(g)}v--;if(v===0){c.resolve(s)}return g};r=function(g){z--;if(z===0){c.reject(new Error("Too few Promises were resolved."))}return g};for(t=w=0,u=x.length;w<u;t=++w){y=x[t];if(t in x){d.resolved(y).then(i,r)}}}return c.promise})},timeout:function(h,b){var c=new d(),a;a=setTimeout(function(){if(a){c.reject(new Error("Promise timed out."))}},b);d.resolved(h).then(function(g){clearTimeout(a);a=null;c.resolve(g)},function(g){clearTimeout(a);a=null;c.reject(g)});return c.promise}}}},0,0,0,0,0,0,[Ext,"Deferred"],function(b){b._ready()}));Ext.Factory=function(d){var c=this;c.aliasPrefix=d+".";c.cache={};c.name=d.replace(c.fixNameRe,c.fixNameFn);c.type=d};Ext.Factory.prototype={defaultProperty:"type",instanceProp:"isInstance",create:function(p,n){var k=this,r=Ext.ClassManager,q=k.cache,o,l,m,j;if(p){if(p[k.instanceProp]){return p}if(typeof p==="string"){j=p;p={};p[k.defaultProperty]=j}l=p.xclass;j=p.type}if(l){if(!(m=r.get(l))){return r.instantiate(l,p)}}else{if(!(j=j||n||k.defaultType)){m=k.defaultClass}if(!m&&!(m=q[j])){o=k.aliasPrefix+j;l=r.getNameByAlias(o);if(!(m=l&&r.get(l))){return r.instantiateByAlias(o,p)}q[j]=m}}return m.isInstance?m:new m(p)},fixNameRe:/\.[a-z]/ig,fixNameFn:function(b){return b.substring(1).toUpperCase()},clearCache:function(){this.cache={}}};Ext.Factory.define=function(i,k){var h=Ext.Factory,g,l,j;if(i.constructor===Object){Ext.Object.each(i,h.define,h)}else{l=new Ext.Factory(i);if(k){if(k.constructor===Object){Ext.apply(l,k);if(typeof(g=l.xclass)==="string"){l.defaultClass=Ext.ClassManager.get(g)}}else{l.defaultType=k}}h[l.name]=j=l.create.bind(l);j.instance=l}return j};(Ext.cmd.derive("Ext.mixin.Factoryable",Ext.Base,{mixinId:"factoryable",onClassMixedIn:function(k){var l=k.prototype,j=l.factoryConfig,m=l.alias,n={},h,i;m=m&&m.length&&m[0];if(m&&(h=m.lastIndexOf("."))>0){n.type=m.substring(0,h);n.defaultType=m.substring(h+1)}if(j){delete l.factoryConfig;Ext.apply(n,j)}i=Ext.Factory.define(n.type,n);if(k.create===Ext.Base.create){k.create=i}}},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(d){var c=this;Ext.apply(c,d.options||{},d.ownerConfig);c.id=++Ext.data.Connection.requestId;c.owner=d.owner;c.options=d.options;c.requestOptions=d.requestOptions},start:function(){var d=this,c=d.getTimeout();if(c&&d.async){d.timer=Ext.defer(d.onTimeout,c,d)}},abort:function(){var b=this;b.clearTimer();if(!b.timedout){b.aborted=true}b.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 b=this.getPromise();return b.then.apply(b,arguments)},onComplete:function(){var f=this,d=f.deferred,e=f.result;f.clearTimer();if(d){if(f.success){d.resolve(e)}else{d.reject(e)}}},onTimeout:function(){var b=this;b.timedout=true;b.timer=null;b.abort(true)},getTimeout:function(){return this.timeout},clearTimer:function(){var b=this.timer;if(b){clearTimeout(b);this.timer=null}},destroy:function(){var b=this;b.abort();b.owner=b.options=b.requestOptions=b.result=null;b.callParent()},privates:{createException:function(){var c=this,d;d={request:c,requestId:c.id,status:c.aborted?-1:0,statusText:c.aborted?"transaction aborted":"communication failure",getResponseHeader:c._getHeader,getAllResponseHeaders:c._getHeaders};if(c.aborted){d.aborted=true}if(c.timedout){d.timedout=true}return d},_getHeader:function(d){var c=this.headers;return c&&c[d.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(g,h,e){var f;f=this.liveConnections[Number(g)];if(f){f.onFlashStateChange(h,e)}},registerConnection:function(c){var d=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[d]=c;return d},injectFlashPlugin:function(){var d=this,e,f;d.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"}]}]});e=[Ext.Loader.getPath("Ext.data.Connection"),"../../../plugins/flash/swfobject.js"].join("/");f="/plugins/flash/FlashPlugin.swf";if(Ext.flashPluginPath){f=Ext.flashPluginPath}Ext.Loader.loadScript({url:e,onLoad:function(){var i="11.4.0";var b="playerProductInstall.swf";var j={};var a={};a.quality="high";a.bgcolor="#ffffff";a.allowscriptaccess="sameDomain";a.allowfullscreen="true";var c={};c.id="ext-flash-polyfill";c.name="polyfill";c.align="middle";swfobject.embedSWF(f,"ext-flash-polyfill","0","0",i,b,j,a,c)},onError:function(){},scope:d});Ext.data.flash.BinaryXhr.flashPluginInjected=true}},readyState:0,status:0,statusText:"",responseBytes:null,javascriptId:null,constructor:function(d){if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}var c=this;Ext.apply(c,d);c.requestHeaders={}},abort:function(){var b=this;if(b.readyState==4){return}b.aborted=true;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener("flashready",b.onFlashReady,b);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(b.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[b.javascriptId]},getAllResponseHeaders:function(){var b=[];Ext.Object.each(this.responseHeaders,function(a,d){b.push(a+": "+d)});return b.join("\r\n")},getResponseHeader:function(c){var d=this.responseHeaders;return(d&&d[c])||null},open:function(i,l,k,h,g){var j=this;j.method=i;j.url=l;j.async=k!==false;j.user=h;j.password=g},overrideMimeType:function(b){this.mimeType=b},send:function(d){var c=this;c.body=d;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener("flashready",c.onFlashReady,c)}else{this.onFlashReady()}},onFlashReady:function(){var f=this,d,e;f.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(f);d={method:f.method,url:f.url,user:f.user,password:f.password,mimeType:f.mimeType,requestHeaders:f.requestHeaders,body:f.body,javascriptId:f.javascriptId};e=Ext.data.flash.BinaryXhr.flashPlugin.postBinary(d)},setReadyState:function(c){var d=this;if(d.readyState!=c){d.readyState=c;d.onreadystatechange()}},setRequestHeader:function(c,d){this.requestHeaders[c]=d},onreadystatechange:Ext.emptyFn,parseData:function(c){var d=this;this.status=c.status||0;d.responseHeaders={};if(d.mimeType){d.responseHeaders["content-type"]=d.mimeType}if(c.reason=="complete"){this.responseBytes=c.data;d.responseHeaders["content-length"]=c.data.length}else{if(c.reason=="error"||c.reason=="securityError"){this.statusText=c.text;d.responseHeaders["content-length"]=0}}},onFlashStateChange:function(f,d){var e=this;if(f==4){e.parseData(d);delete Ext.data.flash.BinaryXhr.liveConnections[e.javascriptId]}e.setReadyState(f)}},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(e){e=e==1223?204:e;var f=(e>=200&&e<300)||e==304,d=false;if(!f){switch(e){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:d=true;break}}return{success:f,isException:d}}},start:function(l){var n=this,h=n.options,i=n.requestOptions,m=n.isXdr,j,k;j=n.xhr=n.openRequest(h,i,n.async,n.username,n.password);if(!m){k=n.setupHeaders(j,h,i.data,i.params)}if(n.async){if(!m){j.onreadystatechange=Ext.Function.bind(n.onStateChange,n)}}if(m){n.processXdrRequest(n,j)}Ext.data.request.Base.prototype.start.call(this,l);j.send(l);if(!n.async){return n.onComplete()}return n},abort:function(e){var f=this,g=f.xhr;if(e||f.isLoading()){try{g.onreadystatechange=null}catch(h){g.onreadystatechange=Ext.emptyFn}g.abort();Ext.data.request.Base.prototype.abort.call(this,e);f.onComplete();f.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var f=this,g=f.xhr,e=g&&g.readyState,h=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!g||f.aborted||f.timedout){return false}if(h&&g instanceof h){return e!==4}return e!==0&&e!==4},openRequest:function(n,i,m,j,h){var l=this,k=l.newRequest(n);if(j){k.open(i.method,i.url,m,j,h)}else{if(l.isXdr){k.open(i.method,i.url)}else{k.open(i.method,i.url,m)}}if(n.binary||l.binary){if(window.Uint8Array){k.responseType="arraybuffer"}else{if(k.overrideMimeType){k.overrideMimeType("text/plain; charset=x-user-defined")}}}if(n.withCredentials||l.withCredentials){k.withCredentials=true}return k},newRequest:function(e){var d=this,f;if(e.binaryData){if(window.Uint8Array){f=d.getXhrInstance()}else{f=new Ext.data.flash.BinaryXhr()}}else{if(d.cors&&Ext.isIE9m){f=d.getXdrInstance();d.isXdr=true}else{f=d.getXhrInstance();d.isXdr=false}}return f},setupHeaders:function(p,e,x,y){var t=this,A=Ext.apply({},e.headers||{},t.defaultHeaders),q=t.defaultPostHeader,s=e.jsonData,B=e.xmlData,u="Content-Type",z=t.useDefaultXhrHeader,r,w;if(!A.hasOwnProperty(u)&&(x||y)){if(x){if(e.rawData){q="text/plain"}else{if(B&&Ext.isDefined(B)){q="text/xml"}else{if(s&&Ext.isDefined(s)){q="application/json"}}}}A[u]=q}if(z&&!A["X-Requested-With"]){A["X-Requested-With"]=t.defaultXhrHeader}if(A[u]===undefined||A[u]===null){delete A[u]}try{for(r in A){if(A.hasOwnProperty(r)){w=A[r];p.setRequestHeader(r,w)}}}catch(v){t.owner.fireEvent("exception",r,w)}return A},getXdrInstance:function(){var b;if(Ext.ieVersion>=8){b=new XDomainRequest()}else{Ext.raise({msg:"Your browser does not support CORS"})}return b},getXhrInstance:(function(){var e=[function(){return new XMLHttpRequest()},function(){return new ActiveXObject("MSXML2.XMLHTTP.3.0")},function(){return new ActiveXObject("MSXML2.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],j=0,g=e.length,h;for(;j<g;++j){try{h=e[j];h();break}catch(i){}}return h}()),processXdrRequest:function(d,f){var e=this;delete d.headers;d.contentType=d.options.contentType||e.defaultXdrContentType;f.onload=Ext.Function.bind(e.onStateChange,e,[true]);f.onerror=f.ontimeout=Ext.Function.bind(e.onStateChange,e,[false])},processXdrResponse:function(d,c){d.getAllResponseHeaders=function(){return[]};d.getResponseHeader=function(){return""};d.contentType=c.contentType||this.defaultXdrContentType},onStateChange:function(e){var h=this,g=h.xhr,f=Ext.GlobalEvents;if((g&&g.readyState==4)||h.isXdr){h.clearTimer();h.onComplete(e);h.cleanup();if(f.hasListeners.idle){f.fireEvent("idle")}}},onComplete:function(m){var p=this,t=p.owner,l=p.options,n=p.xhr,s={success:false,isException:false},e,o,r;if(!n||p.destroyed){return p.result=s}try{e=Ext.data.request.Ajax.parseStatus(n.status);if(e.success){e.success=n.readyState===4}}catch(q){e=s}o=p.success=p.isXdr?m:e.success;if(o){r=p.createResponse(n);t.fireEvent("requestcomplete",t,r,l);Ext.callback(l.success,l.scope,[r,l])}else{if(e.isException||p.aborted||p.timedout){r=p.createException(n)}else{r=p.createResponse(n)}t.fireEvent("requestexception",t,r,l);Ext.callback(l.failure,l.scope,[r,l])}p.result=r;Ext.callback(l.callback,l.scope,[l,o,r]);t.onRequestComplete(p);Ext.data.request.Base.prototype.onComplete.call(this,m);return r},createResponse:function(n){var p=this,t=p.isXdr,u={},m=t?[]:n.getAllResponseHeaders().replace(/\r\n/g,"\n").split("\n"),r=m.length,l,q,o,s,v;while(r--){l=m[r];q=l.indexOf(":");if(q>=0){o=l.substr(0,q).toLowerCase();if(l.charAt(q+1)==" "){++q}u[o]=l.substr(q+1)}}s={request:p,requestId:p.id,status:n.status,statusText:n.statusText,getResponseHeader:function(a){return u[a.toLowerCase()]},getAllResponseHeaders:function(){return u}};if(t){p.processXdrResponse(s,n)}if(p.binary){s.responseBytes=p.getByteArray(n)}else{s.responseText=n.responseText;s.responseXML=n.responseXML}return s},destroy:function(){this.xhr=null;Ext.data.request.Base.prototype.destroy.call(this)},privates:{getByteArray:function(i){var p=i.response,q=i.responseBody,e=Ext.data.flash&&Ext.data.flash.BinaryXhr,r,l,n,o;if(i instanceof e){r=i.responseBytes}else{if(window.Uint8Array){r=p?new Uint8Array(p):[]}else{if(Ext.isIE9p){try{r=new VBArray(q).toArray()}catch(m){r=[]}}else{if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(i.responseBody,r=[])}else{r=[];l=i.responseText;n=l.length;for(o=0;o<n;o++){r.push(l.charCodeAt(o)&255)}}}}}return r},injectVBScript:function(){var b=document.createElement("script");b.type="text/vbscript";b.text=["Function getIEByteArray(byteArray, out)","Dim len, i","len = LenB(byteArray)","For i = 1 to len","out.push(AscB(MidB(byteArray, i, 1)))","Next","End Function"].join("\n");Ext.getHead().dom.appendChild(b);this.self.vbScriptInjected=true}}},0,0,0,0,["request.ajax"],0,[Ext.data.request,"Ajax"],0));(Ext.cmd.derive("Ext.data.request.Form",Ext.data.request.Base,{start:function(g){var h=this,e=h.options,f=h.requestOptions;Ext.data.request.Base.prototype.start.call(this,g);h.form=h.upload(e.form,f.url,f.data,e);return h},abort:function(e){var f=this,g;if(f.isLoading()){try{g=f.frame.dom;if(g.stop){g.stop()}else{g.document.execCommand("Stop")}}catch(h){}}Ext.data.request.Base.prototype.abort.call(this,e);f.onComplete();f.cleanup()},cleanup:function(){var d=this,c=d.frame;if(c){c.un("load",d.onComplete,d);Ext.removeNode(c)}d.frame=d.form=null},isLoading:function(){return !!this.frame},upload:function(M,H,v,I){M=Ext.getDom(M);I=I||{};var x=document.createElement("iframe"),D=Ext.get(x),B=D.id,L=[],K="multipart/form-data",w={target:M.target,method:M.method,encoding:M.encoding,enctype:M.enctype,action:M.action},N=function(b,a){G=document.createElement("input");Ext.fly(G).set({type:"hidden",value:a,name:b});M.appendChild(G);L.push(G)},G,E,z,h,A,F,C,y,J;D.set({name:B,cls:"x-hidden-display",src:Ext.SSL_SECURE_URL,tabIndex:-1});document.body.appendChild(x);if(document.frames){document.frames[B].name=B}Ext.fly(M).set({target:B,method:"POST",enctype:K,encoding:K,action:H||w.action});if(v){E=Ext.Object.fromQueryString(v)||{};for(h in E){if(E.hasOwnProperty(h)){z=E[h];if(Ext.isArray(z)){A=z.length;for(F=0;F<A;F++){N(h,z[F])}}else{N(h,z)}}}}this.frame=D;D.on({load:this.onComplete,scope:this,single:!Ext.isOpera});M.submit();Ext.fly(M).set(w);for(C=L.length,y=0;y<C;y++){Ext.removeNode(L[y])}return M},getDoc:function(){var b=this.frame.dom;return(b&&(b.contentWindow.document||b.contentDocument))||(window.frames[b.id]||{}).document},getTimeout:function(){return this.options.timeout},onComplete:function(){var o=this,s=o.frame,t=o.owner,e=o.options,m,n,l,q,r;if(!s){return}if(o.aborted||o.timedout){o.result=r=o.createException();r.responseXML=null;r.responseText='{success:false,message:"'+Ext.String.trim(r.statusText)+'"}';m=e.failure;l=false}else{try{n=o.getDoc();o.result=r={responseText:"",responseXML:null};if(n){if(Ext.isOpera&&n.location==Ext.SSL_SECURE_URL){return}if(n.body){if((q=n.body.firstChild)&&/pre/i.test(q.tagName)){r.responseText=q.textContent||q.innerText}else{if((q=n.getElementsByTagName("textarea")[0])){r.responseText=q.value}else{r.responseText=n.body.textContent||n.body.innerText}}}r.responseXML=n.XMLDocument||n;m=e.success;l=true;r.status=200}else{Ext.raise("Could not acquire a suitable connection for the file upload service.")}}catch(p){o.result=r=o.createException();r.status=400;r.statusText=(p.message||p.description)+"";r.responseText='{success:false,message:"'+Ext.String.trim(r.statusText)+'"}';r.responseXML=null;m=e.failure;l=false}}o.frame=null;o.success=l;t.fireEvent(l?"requestcomplete":"requestexception",t,r,e);Ext.callback(m,e.scope,[r,e]);Ext.callback(e.callback,e.scope,[e,l,r]);t.onRequestComplete(o);Ext.asap(s.destroy,s);Ext.data.request.Base.prototype.onComplete.call(this)},destroy:function(){this.cleanup();Ext.data.request.Base.prototype.destroy.call(this)}},0,0,0,0,["request.form"],0,[Ext.data.request,"Form"],0));(Ext.cmd.derive("Ext.data.Connection",Ext.Base,{statics:{requestId:0},enctypeRe:/multipart\/form-data/i,config:{url:null,async:true,username:"",password:"",disableCaching:true,withCredentials:false,binary:false,cors:false,isXdr:false,defaultXdrContentType:"text/plain",disableCachingParam:"_dc",timeout:30000,extraParams:null,autoAbort:false,method:null,defaultHeaders:null,defaultPostHeader:"application/x-www-form-urlencoded; charset=UTF-8",useDefaultXhrHeader:true,defaultXhrHeader:"XMLHttpRequest"},constructor:function(b){this.mixins.observable.constructor.call(this,b);this.requests={}},request:function(e){e=e||{};var g=this,f,h;if(g.fireEvent("beforerequest",g,e)!==false){f=g.setOptions(e,e.scope||Ext.global);h=g.createRequest(e,f);return h.start(f.data)}Ext.callback(e.callback,e.scope,[e,undefined,undefined]);return Ext.Deferred.rejected([e,undefined,undefined])},createRequest:function(f,g){var h=this,j=f.type||g.type,i;if(!j){j=h.isFormUpload(f)?"form":"ajax"}if(f.autoAbort||h.getAutoAbort()){h.abort()}i=Ext.Factory.request({type:j,owner:h,options:f,requestOptions:g,ownerConfig:h.getConfig()});h.requests[i.id]=i;h.latestId=i.id;return i},isFormUpload:function(d){var c=this.getForm(d);if(c){return d.isUpload||this.enctypeRe.test(c.getAttribute("enctype"))}return false},getForm:function(b){return Ext.getDom(b.form)},setOptions:function(m,n){var p=this,t=m.params||{},q=p.getExtraParams(),u=m.urlParams,v=m.url||p.getUrl(),r=m.cors,o=m.jsonData,w,x,s;if(r!==undefined){p.setCors(r)}if(Ext.isFunction(t)){t=t.call(n,m)}if(Ext.isFunction(v)){v=v.call(n,m)}v=this.setupUrl(m,v);s=m.rawData||m.binaryData||m.xmlData||o||null;if(o&&!Ext.isPrimitive(o)){s=Ext.encode(s)}if(m.binaryData){if(p.nativeBinaryPostSupport()){s=(new Uint8Array(m.binaryData));if((Ext.isChrome&&Ext.chromeVersion<22)||Ext.isSafari||Ext.isGecko){s=s.buffer}}}if(Ext.isObject(t)){t=Ext.Object.toQueryString(t)}if(Ext.isObject(q)){q=Ext.Object.toQueryString(q)}t=t+((q)?((t)?"&":"")+q:"");u=Ext.isObject(u)?Ext.Object.toQueryString(u):u;t=this.setupParams(m,t);w=(m.method||p.getMethod()||((t||s)?"POST":"GET")).toUpperCase();this.setupMethod(m,w);x=m.disableCaching!==false?(m.disableCaching||p.getDisableCaching()):false;if(w==="GET"&&x){v=Ext.urlAppend(v,(m.disableCachingParam||p.getDisableCachingParam())+"="+(new Date().getTime()))}if((w=="GET"||s)&&t){v=Ext.urlAppend(v,t);t=null}if(u){v=Ext.urlAppend(v,u)}return{url:v,method:w,data:s||t||null}},setupUrl:function(d,e){var f=this.getForm(d);if(f){e=e||f.action}return e},setupParams:function(f,g){var h=this.getForm(f),e;if(h&&!this.isFormUpload(f)){e=Ext.Element.serializeForm(h);g=g?(g+"&"+e):e}return g},setupMethod:function(d,c){if(this.isFormUpload(d)){return"POST"}return c},isLoading:function(b){if(!b){b=this.getLatest()}return b?b.isLoading():false},abort:function(b){if(!b){b=this.getLatest()}if(b&&b.isLoading()){b.abort()}},abortAll:function(){var c=this.requests,d;for(d in c){this.abort(c[d])}},getLatest:function(){var c=this.latestId,d;if(c){d=this.requests[c]}return d||null},clearTimeout:function(b){if(!b){b=this.getLatest()}if(b){b.clearTimer()}},onRequestComplete:function(b){delete this.requests[b.id]},nativeBinaryPostSupport:function(){return Ext.isChrome||(Ext.isSafari&&Ext.isDefined(window.Uint8Array))||(Ext.isGecko&&Ext.isDefined(window.Uint8Array))}},1,0,0,0,0,[["observable",Ext.mixin.Observable]],[Ext.data,"Connection"],0));(Ext.cmd.derive("Ext.Ajax",Ext.data.Connection,{singleton:true,autoAbort:false},0,0,0,0,0,0,[Ext,"Ajax"],0));(Ext.cmd.derive("Ext.AnimationQueue",Ext.Base,{singleton:true,constructor:function(){var b=this;b.queue=[];b.taskQueue=[];b.runningQueue=[];b.idleQueue=[];b.isRunning=false;b.isIdle=true;b.run=Ext.Function.bind(b.run,b);if(Ext.os.is.iOS){Ext.interval(b.watch,500,b)}},start:function(h,e,f){var g=this;g.queue.push(arguments);if(!g.isRunning){if(g.hasOwnProperty("idleTimer")){clearTimeout(g.idleTimer);delete g.idleTimer}if(g.hasOwnProperty("idleQueueTimer")){clearTimeout(g.idleQueueTimer);delete g.idleQueueTimer}g.isIdle=false;g.isRunning=true;g.doStart()}},watch:function(){if(this.isRunning&&Ext.now()-this.lastRunTime>=500){this.run()}},run:function(){var h=this;if(!h.isRunning){return}var g=h.runningQueue,f=Ext.now(),j,i;h.lastRunTime=f;h.frameStartTime=f;g.push.apply(g,h.queue);for(j=0,i=g.length;j<i;j++){h.invoke(g[j])}g.length=0;h.doIterate()},doStart:function(){this.animationFrameId=Ext.Function.requestAnimationFrame(this.run);this.lastRunTime=Ext.now()},doIterate:function(){this.animationFrameId=Ext.Function.requestAnimationFrame(this.run)},doStop:function(){Ext.Function.cancelAnimationFrame(this.animationFrameId)},stop:function(n,o,i){var k=this;if(!k.isRunning){return}var j=k.queue,l=j.length,p,m;for(p=0;p<l;p++){m=j[p];if(m[0]===n&&m[1]===o&&m[2]===i){j.splice(p,1);p--;l--}}if(l===0){k.doStop();k.isRunning=false;k.idleTimer=Ext.defer(k.whenIdle,100,k)}},onIdle:function(l,m,i){var n=this.idleQueue,h,k,j;for(h=0,k=n.length;h<k;h++){j=n[h];if(l===j[0]&&m===j[1]&&i===j[2]){return}}n.push(arguments);if(this.isIdle){this.processIdleQueue()}},unIdle:function(l,m,i){var n=this.idleQueue,h,k,j;for(h=0,k=n.length;h<k;h++){j=n[h];if(l===j[0]&&m===j[1]&&i===j[2]){n.splice(h,1);return true}}return false},queueTask:function(f,d,e){this.taskQueue.push(arguments);this.processTaskQueue()},dequeueTask:function(l,m,i){var n=this.taskQueue,h,k,j;for(h=0,k=n.length;h<k;h++){j=n[h];if(l===j[0]&&m===j[1]&&i===j[2]){n.splice(h,1);h--;k--}}},invoke:function(g){var h=g[0],e=g[1],f=g[2];h=(typeof h=="string"?e[h]:h);if(Ext.isArray(f)){h.apply(e,f)}else{h.call(e,f)}},whenIdle:function(){this.isIdle=true;this.processIdleQueue()},processIdleQueue:function(){if(!this.hasOwnProperty("idleQueueTimer")){this.idleQueueTimer=Ext.defer(this.processIdleQueueItem,1,this)}},processIdleQueueItem:function(){delete this.idleQueueTimer;if(!this.isIdle){return}var d=this.idleQueue,c;if(d.length>0){c=d.shift();this.invoke(c);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty("taskQueueTimer")){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){delete this.taskQueueTimer;var d=this.taskQueue,c;if(d.length>0){c=d.shift();this.invoke(c);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(d){var c=this;Ext.apply(c,d||{});c.all={};c.references={};c.onAvailableCallbacks={}},create:function(d,c){if(typeof d==="string"){return Ext.widget(d)}if(d.isComponent){return d}if("xclass" in d){return Ext.create(d.xclass,d)}return Ext.widget(d.xtype||c,d)},get:function(b){return this.all[b]},register:function(g){var h=this,i=h.all,j=g.getId(),f=h.onAvailableCallbacks;i[j]=g;if(g.getReference&&g.getReference()){h.references[j]=g}++h.count;if(!h.hasFocusListener){Ext.on("focus",h.onGlobalFocus,h);h.hasFocusListener=true}f=f&&f[j];if(f&&f.length){h.notifyAvailable(g)}},unregister:function(d){var c=d.getId();if(d.getReference&&d.getReference()){this.references[c]=null;delete this.references[c]}this.all[c]=null;delete this.all[c];this.count--},markReferencesDirty:function(){this.referencesDirty=true},fixReferences:function(){var f=this,d=f.references,e;if(f.referencesDirty){for(e in d){if(d.hasOwnProperty(e)){d[e].fixReference()}}f.referencesDirty=false}},onAvailable:function(j,n,h){var k=this,l=k.onAvailableCallbacks,i=k.all,m;if(j in i){m=i[j];n.call(h||m,m)}else{if(j){if(!Ext.isArray(l[j])){l[j]=[]}l[j].push(function(a){n.call(h||a,a)})}}},notifyAvailable:function(c){var d=this.onAvailableCallbacks[c&&c.getId()]||[];while(d.length){(d.shift())(c)}},each:function(c,d){return Ext.Object.each(this.all,c,d)},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(l){var o=this,e=l.toElement,k=l.fromElement,m=Ext.Component.fromElement(e),j=Ext.Component.fromElement(k),p,n;if(m===j){return}p=o.getCommonAncestor(j,m);if(j&&!(j.destroyed||j.destroying)){if(j.handleBlurEvent){j.handleBlurEvent(l)}for(n=j;n&&n!==p;n=n.getRefOwner()){if(!(n.destroyed||n.destroying)){n.onFocusLeave({event:l.event,type:"focusleave",target:k,relatedTarget:e,fromComponent:j,toComponent:m})}}}if(m&&!m.destroyed){if(m.handleFocusEvent){m.handleFocusEvent(l)}for(n=m;n&&n!==p;n=n.getRefOwner()){n.onFocusEnter({event:l.event,type:"focusenter",relatedTarget:k,target:e,fromComponent:j,toComponent:m})}}},getCommonAncestor:function(c,d){if(c===d){return c}while(c&&!(c.isAncestor(d)||c===d)){c=c.getRefOwner()}return c},privates:{clearAll:function(){this.all={};this.references={};this.onAvailableCallbacks={}},fromElement:function(q,o,p){var l=Ext.getDom(q),r=this.all,n=0,j,m,k;if(typeof o!=="number"){j=Ext.getDom(o);o=Number.MAX_VALUE}while(l&&l.nodeType===1&&n<o&&l!==j){m=l.getAttribute("data-componentid")||l.id;if(m){k=r[m];if(k&&(!p||Ext.ComponentQuery.is(k,p))){return k}n++}l=l.parentNode}return null}},deprecated:{5:{methods:{isRegistered:null,registerType:null}}}},1,0,0,0,0,0,[Ext,"ComponentManager",Ext,"ComponentMgr"],function(){Ext.getCmp=function(b){return Ext.ComponentManager.get(b)}}));Ext.ns("Ext.util").Operators={"=":function(a,d){return a==d},"!=":function(a,d){return a!=d},"^=":function(a,d){return a&&a.substr(0,d.length)==d},"$=":function(a,d){return a&&a.substr(a.length-d.length)==d},"*=":function(a,d){return a&&a.indexOf(d)!==-1},"%=":function(a,d){return(a%d)===0},"|=":function(a,d){return a&&(a==d||a.substr(0,d.length+1)==d+"-")},"~=":function(a,d){return a&&(" "+a+" ").indexOf(" "+d+" ")!=-1}};(Ext.cmd.derive("Ext.util.LruCache",Ext.util.HashMap,{config:{maxSize:null},add:function(g,h){var i=this,j,f;i.removeAtKey(g);f=i.last;j={prev:f,next:null,key:g,value:h};if(f){f.next=j}else{i.first=j}i.last=j;Ext.util.HashMap.prototype.add.call(this,g,j);i.prune();return h},insertBefore:function(g,i,l){var j=this,h,k;if(l=this.map[this.findKey(l)]){h=j.findKey(i);if(h){j.unlinkEntry(k=j.map[h])}else{k={prev:l.prev,next:l,key:g,value:i}}if(l.prev){k.prev.next=k}else{j.first=k}k.next=l;l.prev=k;j.prune();return i}else{return j.add(g,i)}},get:function(d){var c=this.map[d];if(c){if(c.next){this.moveToEnd(c)}return c.value}},removeAtKey:function(b){this.unlinkEntry(this.map[b]);return Ext.util.HashMap.prototype.removeAtKey.apply(this,arguments)},clear:function(b){this.first=this.last=null;return Ext.util.HashMap.prototype.clear.call(this,b)},unlinkEntry:function(b){if(b){if(b.next){b.next.prev=b.prev}else{this.last=b.prev}if(b.prev){b.prev.next=b.next}else{this.first=b.next}b.prev=b.next=null}},moveToEnd:function(b){this.unlinkEntry(b);if(b.prev=this.last){this.last.next=b}else{this.first=b}this.last=b},getArray:function(f){var e=[],d=this.first;while(d){e.push(f?d.key:d.value);d=d.next}return e},each:function(l,g,h){var i=this,j=h?i.last:i.first,k=i.length;g=g||i;while(j){if(l.call(g,j.key,j.value,k)===false){break}j=h?j.prev:j.next}return i},findKey:function(d){var e,f=this.map;for(e in f){if(f.hasOwnProperty(e)&&f[e].value===d){return e}}return undefined},clone:function(){var e=new this.self(this.initialConfig),f=this.map,d;e.suspendEvents();for(d in f){if(f.hasOwnProperty(d)){e.add(d,f[d].value)}}e.resumeEvents();return e},prune:function(){var d=this,e=d.getMaxSize(),f=e?(d.length-e):0;if(f>0){for(;d.first&&f;f--){d.removeAtKey(d.first.key)}}},destroy:function(){this.first=this.last=null;Ext.util.HashMap.prototype.destroy.call(this)}},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 E=this,s=Ext.util.Operators,A=/(\d*)n\+?(\d*)/,F=/\D/,y=/^(\s)+/,z=/\\(.)/g,x=new Ext.util.LruCache({maxSize:100}),w=["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(""),v=function(a,b){return b.method.apply(this,[a].concat(b.args))},J=function(d,g){var f=[],c=0,a=d.length,b,e=g!==">";for(;c<a;c++){b=d[c];if(b.getRefItems){f=f.concat(b.getRefItems(e))}}return f},D=function(d){var e=[],c=0,a=d.length,b;for(;c<a;c++){b=d[c];while(!!(b=b.getRefOwner())){e.push(b)}}return e},G=function(e,g,a){if(g==="*"){return e.slice()}else{var f=[],d=0,b=e.length,c;for(;d<b;d++){c=e[d];if(c.isXType(g,a)){f.push(c)}}return f}},I=function(c,b,i,j){var k=[],d=0,l=c.length,n,g,a,m,e,f,h;if(b.charAt(0)==="@"){n=true;b=b.substr(1)}if(b.charAt(0)==="?"){n=true;g=true;b=b.substr(1)}for(;d<l;d++){a=c[d];h=a.getConfigurator&&a.self.$config.configs[b];if(h){m=a[h.names.get]()}else{if(n&&!a.hasOwnProperty(b)){continue}else{m=a[b]}}if(g){k.push(a)}else{if(i==="~="){if(m){if(!Ext.isArray(m)){m=m.split(" ")}for(e=0,f=m.length;e<f;e++){if(s[i](Ext.coerce(m[e],j),j)){k.push(a);break}}}}else{if(i==="/="){if(m!=null&&j.test(m)){k.push(a)}}else{if(!j?!!a[b]:s[i](Ext.coerce(m,j),j)){k.push(a)}}}}}return k},C=function(e,a){var f=[],d=0,b=e.length,c;for(;d<b;d++){c=e[d];if(c.getItemId()===a){f.push(c)}}return f},t=function(c,b,a){return E.pseudos[b](c,a)},B=/^(\s?([>\^])\s?|\s|$)/,u=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,H=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:G,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(z,"$1")}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:I,argTransform:function(c){var f=c[0],b=c[1],e=c[2],d=c[4],a;if(d!==undefined){d=d.replace(z,"$1")}if(e==="/="){a=x.get(d);if(a){d=a}else{d=x.add(d,new RegExp(d))}}return[b,e,d]}},{re:/^#((?:\\\.|[\w\-])+)/,method:C},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:t,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(z,"$1")}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:w}];E.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(d){var c=this.operations,e=[],a,b,f;for(b=0,f=c.length;b<f;b++){a=c[b];e=e.concat(this._execute(d,a))}return e},_execute:function(e,c){var b=0,a=c.length,d,f;if(!e){f=Ext.ComponentManager.getAll()}else{if(Ext.isIterable(e)){f=e}else{if(e.isMixedCollection){f=e.items}}}for(;b<a;b++){d=c[b];if(d.mode==="^"){f=D(f||[e])}else{if(d.mode){f=J(f||[e],d.mode)}else{f=v(f||J([e]),d)}}if(b===a-1){return f}}return[]},is:function(c){var d=this.operations,e=false,f=d.length,a,b;if(f===0){return true}for(b=0;b<f;b++){a=d[b];e=this._is(c,a);if(e){return e}}return false},_is:function(b,j){var d=j.length,i=[b],h,f,g,e,c,a;for(f=d-1;f>=0;--f){h=j[f];e=h.mode;if(e){if(e==="^"){i=J(i," ")}else{if(e===">"){c=[];for(g=0,d=i.length;g<d;++g){a=i[g].getRefOwner();if(a){c.push(a)}}i=c}else{i=D(i)}}if(i.length===0){return false}}else{i=v(i,h);if(i.length===0){return false}}}return true},getMatches:function(a,c){var d=c.length,b;for(b=0;b<d;++b){a=v(a,c[b]);if(a.length===0){break}}return a},isMultiMatch:function(){return this.operations.length>1}});Ext.apply(E,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(g,f){var b=0,a=g.length,c=[],d=-1,e;for(;b<a;++b){e=g[b];if(!E.is(e,f)){c[++d]=e}}return c},first:function(a){var b=[];if(a.length>0){b.push(a[0])}return b},last:function(a){var c=a.length,b=[];if(c>0){b.push(a[c-1])}return b},focusable:function(d){var e=d.length,b=[],c=0,a;for(;c<e;c++){a=d[c];if(a.isFocusable&&a.isFocusable()){b.push(a)}}return b},"nth-child":function(c,b){var a=[],h=A.exec(b==="even"&&"2n"||b==="odd"&&"2n+1"||!F.test(b)&&"n+"+b||b),e=(h[1]||1)-0,d=h[2]-0,f,i,g;for(f=0;i=c[f];f++){g=f+1;if(e===1){if(d===0||g===d){a.push(i)}}else{if((g+d)%e===0){a.push(i)}}}return a},scrollable:function(d){var e=d.length,b=[],c=0,a;for(;c<e;c++){a=d[c];if(a.scrollable||a._scrollable){b.push(a)}}return b}},query:function(i,b){if(!i){return Ext.ComponentManager.all.getArray()}var g=[],a=[],d={},e=E.cache.get(i),f,c,h;if(!e){e=E.cache.add(i,E.parse(i))}g=e.execute(b);if(e.isMultiMatch()){f=g.length;for(h=0;h<f;h++){c=g[h];if(!d[c.id]){a.push(c);d[c.id]=true}}g=a}return g},visitPreOrder:function(e,c,a,b,d){E._visit(true,e,c,a,b,d)},visitPostOrder:function(e,c,a,b,d){E._visit(false,e,c,a,b,d)},_visit:function(b,k,c,d,a,g){var e=E.cache.get(k),h=[c],l,f=0,i,j;if(!e){e=E.cache.add(k,E.parse(k))}j=e.is(c);if(c.getRefItems){l=c.getRefItems();f=l.length}if(g){Ext.Array.push(h,g)}if(b){if(j){if(d.apply(a||c,h)===false){return false}}}for(i=0;i<f;i++){if(E._visit.call(E,b,k,l[i],d,a,g)===false){return false}}if(!b){if(j){if(d.apply(a||c,h)===false){return false}}}},is:function(b,c){if(!c){return true}var a=E.cache.get(c);if(!a){a=E.cache.add(c,E.parse(c))}return a.is(b)},parse:function(e){var d=[],b,a,c,f;b=Ext.splitAndUnescape(e,",");for(c=0,f=b.length;c<f;c++){a=Ext.String.trim(b[c]);d.push(E._parse(a))}return new E.Query({operations:d})},_parse:function(f){var m=[],h=Ext.String.trim,k=H.length,a,e,g,o,l,j,i,d,c,n,b;while(f&&a!==f){a=f;e=f.match(u);if(e){o=e[1];g=h(e[2]).replace(z,"$1");if(o==="#"){m.push({method:C,args:[g]})}else{m.push({method:G,args:[g,Boolean(e[3])]})}f=f.replace(e[0],"").replace(y,"$1")}while(!(l=f.match(B))){for(d=0;f&&d<k;d++){c=H[d];j=f.match(c.re);n=c.method;i=c.argTransform;if(j){if(i){b=i(j)}else{b=j.slice(1)}m.push({method:Ext.isString(c.method)?Ext.functionFactory("items",Ext.String.format.apply(Ext.String,[n].concat(j.slice(1)))):c.method,args:b});f=f.replace(j[0],"").replace(y,"$1");break}if(d===(k-1)){Ext.raise('Invalid ComponentQuery selector: "'+arguments[0]+'"')}}}if(l[1]){m.push({mode:l[2]||l[1]});f=f.replace(l[0],"").replace(y,"")}}return m}});Ext.all=function(){return E.query.apply(E,arguments)};Ext.first=function(){var a=E.query.apply(E,arguments);return(a&&a[0])||null}}));(Ext.cmd.derive("Ext.Evented",Ext.Base,{alternateClassName:"Ext.EventedBase",initialized:false,constructor:function(b){this.mixins.observable.constructor.call(this,b);this.initialized=true},onClassExtended:function(g,j){if(!j.hasOwnProperty("eventedConfig")){return}var k=j.config,i=j.eventedConfig,l,h;if(k){Ext.applyIf(k,i)}else{g.addConfig(i)}for(l in i){if(i.hasOwnProperty(l)){h=Ext.Config.get(l);j[h.names.set]=h.eventedSetter||h.getEventedSetter()}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext,"Evented",Ext,"EventedBase"],0));(Ext.cmd.derive("Ext.util.Positionable",Ext.Base,{mixinId:"positionable",_positionTopLeft:["position","top","left"],_alignRe:/^([a-z]+)-([a-z]+)([?!])?$/,afterSetPosition:Ext.emptyFn,adjustForConstraints:function(f,d){var e=this.getConstrainVector(d,f);if(e){f[0]+=e[0];f[1]+=e[1]}return f},alignTo:function(l,h,i,g){var j=this,k=j.el;return j.setXY(j.getAlignToXY(l,h,i),k.anim&&!!g?k.anim(g):false)},calculateAnchorXY:function(s,q,r,u){var p=this,v=p.el,o=document,t=(v.dom===o.body||v.dom===o),n=Math.round,m,w,x;s=(s||"tl").toLowerCase();u=u||{};w=u.width||(t?Ext.Element.getViewportWidth():p.getWidth());x=u.height||(t?Ext.Element.getViewportHeight():p.getHeight());switch(s){case"tl":m=[0,0];break;case"bl":m=[0,x];break;case"tr":m=[w,0];break;case"c":m=[n(w*0.5),n(x*0.5)];break;case"t":m=[n(w*0.5),0];break;case"l":m=[0,n(x*0.5)];break;case"r":m=[w,n(x*0.5)];break;case"b":m=[n(w*0.5),x];break;case"tc":m=[n(w*0.5),0];break;case"bc":m=[n(w*0.5),x];break;case"br":m=[w,x]}return[m[0]+q,m[1]+r]},convertPositionSpec:Ext.identityFn,getAlignToXY:function(L,y,P){var x=this,Q,z,T,N,D,O,C,B,F,E,A,G,H,S,R,M,J,I,K;L=Ext.get(L.el||L);if(!L||!L.dom){}P=P||[0,0];y=(!y||y==="?"?"tl-bl?":(!(/-/).test(y)&&y!==""?"tl-"+y:y||"tl-bl")).toLowerCase();y=x.convertPositionSpec(y);T=y.match(x._alignRe);G=T[1];H=T[2];A=!!T[3];N=x.getAnchorXY(G,true);D=x.getAnchorToXY(L,H,false);I=D[0]-N[0]+P[0];K=D[1]-N[1]+P[1];if(A){if(T[3]==="!"){Q=L}else{Q=x.constrainTo||x.container||x.el.parent()}Q=Ext.get(Q.el||Q);z=Q.getConstrainRegion();z.right=z.left+Q.el.dom.clientWidth;O=x.getWidth();C=x.getHeight();B=L.getRegion();S=G.charAt(0);R=G.charAt(G.length-1);M=H.charAt(0);J=H.charAt(H.length-1);F=(I<B.right&&I+O>=B.left)&&((S=="t"&&M=="b")||(S=="b"&&M=="t"));E=(K<B.bottom&&K+C>=B.top)&&((R=="r"&&J=="l")||(R=="l"&&J=="r"));if(I+O>z.right){if(E){I=B.left-O;E=false}else{I=z.right-O}}if(I<z.left){I=E?B.right:z.left}if(K+C>z.bottom){if(F){K=B.top-C;F=false}else{K=z.bottom-C}}if(K<z.top){K=F?B.bottom:z.top}}return[I,K]},getAnchorXY:function(s,o,u){var p=this,n=p.getXY(),v=p.el,l=document,t=v.dom==l.body||v.dom==l,m=v.getScroll(),q=t?m.left:o?0:n[0],r=t?m.top:o?0:n[1];return p.calculateAnchorXY(s,q,r,u)},getBox:function(s,p){var r=this,h=p?r.getLocalXY():r.getXY(),o=h[0],q=h[1],n=r.getWidth(),u=r.getHeight(),t,v,m;if(s){t=r.getBorderPadding();v=t.beforeX;m=t.beforeY;o+=v;q+=m;n-=(v+t.afterX);u-=(m+t.afterY)}return{x:o,left:o,0:o,y:q,top:q,1:q,width:n,height:u,right:o+n,bottom:q+u}},calculateConstrainedPosition:function(t,y,p,w){var q=this,x,s=q.floatParent,v=s?s.getTargetEl():null,z,u,r,n=false,o;if(p&&s){z=v.getXY();u=v.getBorderPadding();z[0]+=u.beforeX;z[1]+=u.beforeY;if(y){r=[y[0]+z[0],y[1]+z[1]]}}else{r=y}t=t||q.constrainTo||v||q.container||q.el.parent();if(p&&r){r=q.reverseTranslateXY(r)}x=((q.constrainHeader&&q.header.rendered)?q.header:q).getConstrainVector(t,r,w);if(x){n=y||q.getPosition(p);n[0]+=x[0];n[1]+=x[1]}return n},getConstrainRegion:function(){var p=this,t=p.el,v=t.dom.nodeName==="BODY",r=t.dom,q=t.getBorders(),o=t.getXY(),s=o[0]+q.beforeX,n=o[1]+q.beforeY,m,u,l;if(v){m=t.getScroll();s=m.left;n=m.top;u=Ext.Element.getViewportWidth();l=Ext.Element.getViewportHeight()}else{u=r.clientWidth;l=r.clientHeight}return new Ext.util.Region(n,s+u,n+l,s)},getConstrainVector:function(l,p,n){var r=this.getRegion(),o=[0,0],q=(this.shadow&&this.constrainShadow&&!this.shadowDisabled)?this.shadow.getShadowSize():undefined,j=false,k,m=this.constraintInsets;if(!(l instanceof Ext.util.Region)){l=Ext.get(l.el||l);k=l.getViewSize();l=l.getConstrainRegion();l.right=l.left+k.width;l.bottom=l.top+k.height}if(m){m=Ext.isObject(m)?m:Ext.Element.parseBox(m);l.adjust(m.top,m.right,m.bottom,m.left)}if(p){r.translateBy(p[0]-r.x,p[1]-r.y)}if(n){r.right=r.left+n[0];r.bottom=r.top+n[1]}if(q){l.adjust(q[0],-q[1],-q[2],q[3])}if(r.right>l.right){j=true;o[0]=(l.right-r.right)}if(r.left+o[0]<l.left){j=true;o[0]=(l.left-r.left)}if(r.bottom>l.bottom){j=true;o[1]=(l.bottom-r.bottom)}if(r.top+o[1]<l.top){j=true;o[1]=(l.top-r.top)}return j?o:false},getOffsetsTo:function(e){var f=this.getXY(),d=Ext.fly(e.el||e).getXY();return[f[0]-d[0],f[1]-d[1]]},getRegion:function(){var b=this.getBox();return new Ext.util.Region(b.top,b.right,b.bottom,b.left)},getClientRegion:function(){var e=this,f,h=e.getBox(),g=e.dom;f=g.offsetWidth-g.clientWidth;if(f){if(e.getStyle("direction")==="rtl"){h.left+=f}else{h.right-=f}}f=g.offsetHeight-g.clientHeight;if(f){h.bottom-=f}return new Ext.util.Region(h.top,h.right,h.bottom,h.left)},getViewRegion:function(){var o=this,r=o.el,t=r.dom.nodeName==="BODY",p,l,n,m,q,s,k;if(t){l=r.getScroll();q=l.left;m=l.top;s=Ext.Element.getViewportWidth();k=Ext.Element.getViewportHeight()}else{p=o.getBorderPadding();n=o.getXY();q=n[0]+p.beforeX;m=n[1]+p.beforeY;s=o.getWidth(true);k=o.getHeight(true)}return new Ext.util.Region(m,q+s,m+k,q)},move:function(p,w,v){var s=this,m=s.getXY(),o=m[0],q=m[1],u=[o-w,q],n=[o+w,q],r=[o,q-w],x=[o,q+w],t={l:u,left:u,r:n,right:n,t:r,top:r,up:r,b:x,bottom:x,down:x};p=p.toLowerCase();s.setXY([t[p][0],t[p][1]],v)},setBox:function(h){var e=this,f,g;if(h.isRegion){h={x:h.left,y:h.top,width:h.right-h.left,height:h.bottom-h.top}}e.constrainBox(h);f=h.x;g=h.y;e.setXY([f,g]);e.setSize(h.width,h.height);e.afterSetPosition(f,g);return e},constrainBox:function(i){var j=this,f,g,h;if(j.constrain||j.constrainHeader){g=("x" in i)?i.x:i.left;h=("y" in i)?i.y:i.top;f=j.calculateConstrainedPosition(null,[g,h],false,[i.width,i.height]);if(f){i.x=f[0];i.y=f[1]}}},translatePoints:function(e,f){var d=this.translateXY(e,f);return{left:d.x,top:d.y}},translateXY:function(l,n){var o=this,q=o.el,k=q.getStyle(o._positionTopLeft),r=k.position==="relative",p=parseFloat(k.left),m=parseFloat(k.top),j=o.getXY();if(Ext.isArray(l)){n=l[1];l=l[0]}if(isNaN(p)){p=r?0:q.dom.offsetLeft}if(isNaN(m)){m=r?0:q.dom.offsetTop}p=(typeof l==="number")?l-j[0]+p:undefined;m=(typeof n==="number")?n-j[1]+m:undefined;return{x:p,y:m}},reverseTranslateXY:function(k){var m=k,r=this.el,l=[],q=r.dom,s=q.offsetParent,t,p,n,o;if(s){t=r.isStyle("position","relative"),p=Ext.fly(s).getXY(),n=k[0]+p[0]+s.clientLeft;o=k[1]+p[1]+s.clientTop;if(t){n+=r.getPadding("l");o+=r.getPadding("t")}m=[n,o]}return m}},0,0,0,0,0,0,[Ext.util,"Positionable"],0));Ext.define("Ext.overrides.util.Positionable",{override:"Ext.util.Positionable",anchorTo:function(n,p,s,t,l,k){var o=this,m=!Ext.isEmpty(l),r=function(){o.alignTo(n,p,s,t);Ext.callback(k,o)},q=o.getAnchor();o.removeAnchor();Ext.apply(q,{fn:r,scroll:m});Ext.on("resize",r,null);if(m){Ext.getWin().on("scroll",r,null,{buffer:!isNaN(l)?l:50})}r();return o},getAnchor:function(){var d=this.el,f,e;if(!d.dom){return}f=d.getData();e=f._anchor;if(!e){e=f._anchor={}}return e},removeAnchor:function(){var b=this.getAnchor();if(b&&b.fn){Ext.un("resize",b.fn);if(b.scroll){Ext.getWin().on("scroll",b.fn)}delete b.fn}return this},setBox:function(f,e){var d=this;if(f.isRegion){f={x:f.left,y:f.top,width:f.right-f.left,height:f.bottom-f.top}}if(e){d.constrainBox(f);d.animate(Ext.applyIf({to:f,listeners:{afteranimate:Ext.Function.bind(d.afterSetPosition,d,[f.x,f.y])}},e))}else{arguments.callee.$previous.call(this,f)}return d}});(Ext.cmd.derive("Ext.dom.UnderlayPool",Ext.Base,{constructor:function(b){this.elementConfig=b;this.cache=[]},checkOut:function(){var b=this.cache.shift();if(!b){b=Ext.Element.create(this.elementConfig);b.setVisibilityMode(2)}return b},checkIn:function(b){this.cache.push(b)},reset:function(){var d=this.cache,c=d.length;while(c--){d[c].destroy()}this.cache=[]}},1,0,0,0,0,0,[Ext.dom,"UnderlayPool"],0));(Ext.cmd.derive("Ext.dom.Underlay",Ext.Base,{constructor:function(b){Ext.apply(this,b)},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 c=this,d=c.el;if(d){d.hide();c.getPool().checkIn(d);c.el=null;c.hidden=true}},realign:function(k,l,r,j){var n=this,q=n.el,o=n.target,p=n.offsets,m=Math.max;if(q){if(k==null){k=o.getX()}if(l==null){l=o.getY()}if(r==null){r=o.getWidth()}if(j==null){j=o.getHeight()}if(p){k=k+p.x;l=l+p.y;r=m(r+p.w,0);j=m(j+p.h,0)}q.setXY([k,l]);q.setSize(r,j)}},setZIndex:function(b){this.zIndex=b;if(this.el){this.el.setStyle("z-index",b)}},show:function(){var g=this,k=g.target,i=g.zIndex,h=g.el,l=g.getInsertionTarget().dom,j;if(!h){h=g.el=g.getPool().checkOut()}g.beforeShow();if(i==null){i=(parseInt(k.getStyle("z-index"),10))}if(i){h.setStyle("z-index",i)}h.setStyle("position",g.fixed?"fixed":"");j=h.dom;if(j.nextSibling!==l){k.dom.parentNode.insertBefore(j,l)}h.show();g.realign();g.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(g){var k=this,j,l,i,h;Ext.dom.Underlay.prototype.constructor.call(this,g);k.elementConfig={cls:k.cls,role:"presentation"};i=k.offset;h=Math.floor(i/2);k.opacity=50;switch(k.mode.toLowerCase()){case"drop":j={x:0,y:0,w:i,h:i};if(Ext.supports.CSS3BoxShadow){l={x:i,y:i,h:-i,w:-i}}else{l={x:-h,y:-h,h:-h,w:-h}}break;case"sides":j={x:-i,y:0,w:i*2,h:i};if(Ext.supports.CSS3BoxShadow){l={x:0,y:i,h:-i,w:0}}else{l={x:1+h-2*i,y:-(1+h),h:-1,w:h-1}}break;case"frame":j={x:-i,y:-i,w:i*2,h:i*2};if(Ext.supports.CSS3BoxShadow){l={x:0,y:0,h:0,w:0}}else{l={x:1+h-2*i,y:1+h-2*i,h:i-h-1,w:i-h-1}}break;case"bottom":j={x:-i,y:0,w:i*2,h:i};if(Ext.supports.CSS3BoxShadow){l={x:0,y:i,h:-i,w:0}}else{l={x:0,y:i,h:0,w:0}}break}k.offsets=l;k.outerOffsets=j},getShadowSize:function(){var e=this,g=e.el?e.offset:0,f=[g,g,g,g],h=e.mode.toLowerCase();if(e.el&&h!=="frame"){f[0]=0;if(h=="drop"){f[3]=0}}return f},boxShadowProperty:(function(){var c="boxShadow",d=document.documentElement.style;if(!("boxShadow" in d)){if("WebkitBoxShadow" in d){c="WebkitBoxShadow"}else{if("MozBoxShadow" in d){c="MozBoxShadow"}}}return c}()),beforeShow:function(){var d=this,e=d.el.dom.style,f=d.shim;if(Ext.supports.CSS3BoxShadow){e[d.boxShadowProperty]="0 0 "+(d.offset+2)+"px #888"}else{e.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+d.opacity+") progid:DXImageTransform.Microsoft.Blur(pixelradius="+(d.offset)+")"}if(f){f.realign()}},setOpacity:function(d){var c=this.el;if(c){if(Ext.isIE&&!Ext.supports.CSS3BoxShadow){d=Math.floor(d*100/2)/100}this.opacity=d;c.setOpacity(d)}}},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(b){Ext.dom.Underlay.prototype.constructor.call(this,b);this.elementConfig={tag:"iframe",cls:this.cls,role:"presentation",frameBorder:"0",src:Ext.SSL_SECURE_URL,tabindex:"-1"}},getInsertionTarget:function(){var b=this.shadow;return(b&&b.el)||this.target}},1,0,0,0,0,0,[Ext.dom,"Shim"],0));(Ext.cmd.derive("Ext.dom.ElementEvent",Ext.util.Event,{addListener:function(p,m,l,t,r){var q=this,o=false,v=q.name,u,s,n;l=l||{};if(l.delegated===false||Ext.event.publisher.Dom.instance.directEvents[v]){if(l.capture){n=q.directCaptures||(q.directCaptures=new Ext.util.Event(q.observable,v));o=n.addListener(p,m,l,t,r)}else{s=q.directs||(q.directs=new Ext.util.Event(q.observable,v));o=s.addListener(p,m,l,t,r)}}else{if(l.capture){u=q.captures||(q.captures=new Ext.util.Event(q.observable,v));o=u.addListener(p,m,l,t,r)}else{o=Ext.util.Event.prototype.addListener.call(this,p,m,l,t,r)}}return o},removeListener:function(n,o){var m=this,j=m.captures,p=m.directs,l=m.directCaptures,k=false,i=m.findListener(n,o);if(i!==-1){k=Ext.util.Event.prototype.removeListener.call(this,n,o,i)}else{if(p){i=p.findListener(n,o)}if(i!==-1){k=p.removeListener(n,o,i)}else{if(j){i=j.findListener(n,o)}if(i!==-1){k=j.removeListener(n,o,i)}else{if(l){i=l.findListener(n,o);if(i!==-1){k=l.removeListener(n,o,i)}}}}}return k},clearListeners:function(){var h=this,g=h.directCaptures,e=h.directs,f=h.captures;if(g){g.clearListeners()}if(e){e.clearListeners()}if(f){f.clearListeners()}Ext.util.Event.prototype.clearListeners.call(this)},suspend:function(){var h=this,g=h.directCaptures,e=h.directs,f=h.captures;if(g){g.suspend()}if(e){e.suspend()}if(f){f.suspend()}Ext.util.Event.prototype.suspend.call(this)},resume:function(){var h=this,g=h.directCaptures,e=h.directs,f=h.captures;if(g){g.resume()}if(e){e.resume()}if(f){f.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,{handledEvents:[],statics:{publishers:{},publishersByEvent:{}},constructor:function(){var c=this,d=c.type;c.handles={};c.registerEvents();Ext.event.publisher.Publisher.publishers[d]=c},registerEvents:function(l){var j=this,m=Ext.event.publisher.Publisher.publishersByEvent,h=l||j.handledEvents,k=h.length,i,n;for(n=0;n<k;n++){i=h[n];j.handles[i]=1;m[i]=j}},fire:function(h,f,e){var g;if(h.hasListeners[f]){g=h.events[f];if(g){g.fire.apply(g,e)}}}},1,0,0,0,0,0,[Ext.event.publisher,"Publisher"],0));(Ext.cmd.derive("Ext.util.Offset",Ext.Base,{statics:{fromObject:function(b){return new this(b.x,b.y)}},constructor:function(d,c){this.x=(d!=null&&!isNaN(d))?d:0;this.y=(c!=null&&!isNaN(c))?c:0;return this},copy:function(){return new Ext.util.Offset(this.x,this.y)},copyFrom:function(b){this.x=b.x;this.y=b.y},toString:function(){return"Offset["+this.x+","+this.y+"]"},equals:function(b){return(this.x==b.x&&this.y==b.y)},round:function(c){if(!isNaN(c)){var d=Math.pow(10,c);this.x=Math.round(this.x*d)/d;this.y=Math.round(this.y*d)/d}else{this.x=Math.round(this.x);this.y=Math.round(this.y)}},isZero:function(){return this.x==0&&this.y==0}},3,0,0,0,0,0,[Ext.util,"Offset"],0));(Ext.cmd.derive("Ext.util.Region",Ext.Base,{isRegion:true,statics:{getRegion:function(b){return Ext.fly(b).getRegion()},from:function(b){return new this(b.top,b.right,b.bottom,b.left)}},constructor:function(h,f,g,i){var j=this;j.y=j.top=j[1]=h;j.right=f;j.bottom=g;j.x=j.left=j[0]=i},contains:function(c){var d=this;return(c.x>=d.x&&c.right<=d.right&&c.y>=d.y&&c.bottom<=d.bottom)},intersect:function(h){var i=this,k=Math.max(i.y,h.y),j=Math.min(i.right,h.right),b=Math.min(i.bottom,h.bottom),l=Math.max(i.x,h.x);if(b>k&&j>l){return new this.self(k,j,b,l)}else{return false}},union:function(h){var i=this,k=Math.min(i.y,h.y),j=Math.max(i.right,h.right),b=Math.max(i.bottom,h.bottom),l=Math.min(i.x,h.x);return new this.self(k,j,b,l)},constrainTo:function(d){var e=this,f=Ext.Number.constrain;e.top=e.y=f(e.top,d.y,d.bottom);e.bottom=f(e.bottom,d.y,d.bottom);e.left=e.x=f(e.left,d.x,d.right);e.right=f(e.right,d.x,d.right);return e},adjust:function(h,f,g,i){var j=this;j.top=j.y+=h;j.left=j.x+=i;j.right+=f;j.bottom+=g;return j},getOutOfBoundOffset:function(e,d){if(!Ext.isObject(e)){if(e=="x"){return this.getOutOfBoundOffsetX(d)}else{return this.getOutOfBoundOffsetY(d)}}else{d=e;var f=new Ext.util.Offset();f.x=this.getOutOfBoundOffsetX(d.x);f.y=this.getOutOfBoundOffsetY(d.y);return f}},getOutOfBoundOffsetX:function(b){if(b<=this.x){return this.x-b}else{if(b>=this.right){return this.right-b}}return 0},getOutOfBoundOffsetY:function(b){if(b<=this.y){return this.y-b}else{if(b>=this.bottom){return this.bottom-b}}return 0},isOutOfBound:function(d,c){if(!Ext.isObject(d)){if(d=="x"){return this.isOutOfBoundX(c)}else{return this.isOutOfBoundY(c)}}else{c=d;return(this.isOutOfBoundX(c.x)||this.isOutOfBoundY(c.y))}},isOutOfBoundX:function(b){return(b<this.x||b>this.right)},isOutOfBoundY:function(b){return(b<this.y||b>this.bottom)},restrict:function(e,g,f){if(Ext.isObject(e)){var h;f=g;g=e;if(g.copy){h=g.copy()}else{h={x:g.x,y:g.y}}h.x=this.restrictX(g.x,f);h.y=this.restrictY(g.y,f);return h}else{if(e=="x"){return this.restrictX(g,f)}else{return this.restrictY(g,f)}}},restrictX:function(c,d){if(!d){d=1}if(c<=this.x){c-=(c-this.x)*d}else{if(c>=this.right){c-=(c-this.right)*d}}return c},restrictY:function(c,d){if(!d){d=1}if(c<=this.y){c-=(c-this.y)*d}else{if(c>=this.bottom){c-=(c-this.bottom)*d}}return c},getSize:function(){return{width:this.right-this.x,height:this.bottom-this.y}},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(c){var d=this;d.top=d.y=d[1]=c.y;d.right=c.right;d.bottom=c.bottom;d.left=d.x=d[0]=c.x;return this},toString:function(){return"Region["+this.top+","+this.right+","+this.bottom+","+this.left+"]"},translateBy:function(e,f){if(arguments.length==1){f=e.y;e=e.x}var d=this;d.top=d.y+=f;d.right+=e;d.bottom+=f;d.left=d.x+=e;return d},round:function(){var b=this;b.top=b.y=Math.round(b.y);b.right=Math.round(b.right);b.bottom=Math.round(b.bottom);b.left=b.x=Math.round(b.x);return b},equals:function(b){return(this.top===b.top&&this.right===b.right&&this.bottom===b.bottom&&this.left===b.left)}},3,0,0,0,0,0,[Ext.util,"Region"],0));(Ext.cmd.derive("Ext.util.Point",Ext.util.Region,{radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(d){var e=d.changedTouches,f=(e&&e.length>0)?e[0]:d;return this.fromTouch(f)},fromTouch:function(b){return new this(b.pageX,b.pageY)},from:function(b){if(!b){return new this(0,0)}if(!(b instanceof this)){return new this(b.x,b.y)}return b}},constructor:function(d,c){if(d==null){d=0}if(c==null){c=0}Ext.util.Region.prototype.constructor.call(this,c,d,c,d)},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(b){this.x=b.x;this.y=b.y;return this},toString:function(){return"Point["+this.x+","+this.y+"]"},equals:function(b){return(this.x===b.x&&this.y===b.y)},isCloseTo:function(l,g){if(typeof g=="number"){return this.getDistanceTo(l)<=g}var h=l.x,i=l.y,j=g.x,k=g.y;return(this.x<=h+j&&this.x>=h-j&&this.y<=i+k&&this.y>=i-k)},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(b){if(!(b instanceof Ext.util.Region)){b=Ext.get(b.el||b).getRegion()}return b.contains(this)},roundedEquals:function(b){if(!b||typeof b!=="object"){b=this.origin}return(Math.round(this.x)===Math.round(b.x)&&Math.round(this.y)===Math.round(b.y))},getDistanceTo:function(d){if(!d||typeof d!=="object"){d=this.origin}var f=this.x-d.x,e=this.y-d.y;return Math.sqrt(f*f+e*e)},getAngleTo:function(d){if(!d||typeof d!=="object"){d=this.origin}var f=this.x-d.x,e=this.y-d.y;return Math.atan2(e,f)*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",isStopped:false,defaultPrevented:false,isEvent:true,statics:{resolveTextNode:function(b){return(b&&b.nodeType===3)?b.parentNode:b},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},pointerTypes:{2:"touch",3:"pen",4:"mouse",touch:"touch",pen:"pen",mouse:"mouse"}},constructor:function(q){var m=this,j=m.self,n=m.self.resolveTextNode,k=q.changedTouches,p=k?k[0]:q,l=q.type,r,o;m.pageX=p.pageX;m.pageY=p.pageY;m.target=m.delegatedTarget=n(q.target);o=q.relatedTarget;if(o){m.relatedTarget=n(o)}m.browserEvent=m.event=q;m.type=l;m.button=q.button||0;m.shiftKey=q.shiftKey;m.ctrlKey=q.ctrlKey||q.metaKey||false;m.altKey=q.altKey;m.charCode=q.charCode;m.keyCode=q.keyCode;m.buttons=q.buttons;if(m.button===0&&m.buttons===0){m.buttons=1}if(j.forwardTab!==undefined&&j.focusEvents[l]){m.forwardTab=j.forwardTab}if(j.mouseEvents[l]||j.clickEvents[l]){r="mouse"}else{if(j.pointerEvents[l]){r=j.pointerTypes[q.pointerType]}else{if(j.touchEvents[l]){r="touch"}}}if(r){m.pointerType=r}m.timeStamp=m.time=+(q.timeStamp||new Date())},chain:function(d){var c=Ext.Object.chain(this);c.parentEvent=this;return Ext.apply(c,d)},correctWheelDelta:function(f){var d=this.WHEEL_SCALE,e=Math.round(f/d);if(!e&&f){e=(f<0)?-1:1}return e},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.getXY();return new Ext.util.Point(b[0],b[1])},getRelatedTarget:function(f,h,g){var j=this.relatedTarget,i=null;if(j){if(f){i=Ext.fly(j).findParent(f,h,g)}else{i=g?Ext.get(j):j}}return i},getTarget:function(d,f,e){return d?Ext.fly(this.target).findParent(d,f,e):(e?Ext.get(this.target):this.target)},getTime:function(){return this.time},getWheelDelta:function(){var b=this.getWheelDeltas();return b.y},getWheelDeltas:function(){var g=this,h=g.browserEvent,e=0,f=0;if(Ext.isDefined(h.wheelDeltaX)){e=h.wheelDeltaX;f=h.wheelDeltaY}else{if(h.wheelDelta){f=h.wheelDelta}else{if(h.detail){f=-h.detail;if(f>100){f=3}else{if(f<-100){f=-3}}if(Ext.isDefined(h.axis)&&h.axis===h.HORIZONTAL_AXIS){e=f;f=0}}}}return{x:g.correctWheelDelta(e),y:g.correctWheelDelta(f)}},getX:function(){return this.getXY()[0]},getXY:function(){var n=this,l=n.xy;if(!l){l=n.xy=[n.pageX,n.pageY];var h=l[0],j,m,k,i;if(!h&&h!==0){j=n.browserEvent;m=document;k=m.documentElement;i=m.body;l[0]=j.clientX+(k&&k.scrollLeft||i&&i.scrollLeft||0)-(k&&k.clientLeft||i&&i.clientLeft||0);l[1]=j.clientY+(k&&k.scrollTop||i&&i.scrollTop||0)-(k&&k.clientTop||i&&i.clientTop||0)}}return l},getY:function(){return this.getXY()[1]},hasModifier:function(){var b=this;return !!(b.ctrlKey||b.altKey||b.shiftKey||b.metaKey)},isNavKeyPress:function(g){var h=this,f=h.keyCode,e=h.type==="keypress";return((!e||Ext.isGecko)&&f>=33&&f<=40)||(!g&&(f===h.RETURN||f===h.TAB||f===h.ESC))},isSpecialKey:function(){var g=this,e=g.keyCode,f=Ext.isGecko,h=g.type==="keypress";return(f&&h&&g.charCode===0)||(this.isNavKeyPress())||(e===g.BACKSPACE)||(e===g.ENTER)||(e>=16&&e<=20)||((!h||f)&&e>=44&&e<=46)},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var c=this,d=c.parentEvent;c.defaultPrevented=true;if(d){d.defaultPrevented=true}c.browserEvent.preventDefault();return c},setCurrentTarget:function(b){this.currentTarget=this.delegatedTarget=b},stopEvent:function(){return this.preventDefault().stopPropagation()},stopPropagation:function(){var d=this,f=d.browserEvent,e=d.parentEvent;d.isStopped=true;if(e){e.isStopped=true}if(!f.stopPropagation){f.cancelBubble=true;return d}f.stopPropagation();return d},within:function(h,g,f){var e;if(h){e=g?this.getRelatedTarget():this.getTarget()}return e?Ext.fly(h).contains(e)||!!(f&&e===Ext.getDom(h)):false},deprecated:{"4.0":{methods:{getPageX:"getX",getPageY:"getY"}}}},1,0,0,0,0,0,[Ext.event,"Event",Ext,"EventObjectImpl"],function(h){var l=h.prototype,k={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 a;if(Ext.isGecko){a=3}else{if(Ext.isMac){if(Ext.isSafari&&Ext.webKitVersion>=532){a=120}else{a=12}a*=3}else{a=120}}return a}())},g={},j,i;Ext.apply(h,k);Ext.apply(l,k);delete k.WHEEL_SCALE;delete k.RETURN;for(j in k){i=k[j];g[i]=j}l.keyCodes=g;l.getTrueXY=l.getXY}));Ext.define("Ext.overrides.event.Event",{override:"Ext.event.Event",mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},injectEvent:(function(){var i,h={},j;if(!Ext.isIE9m&&document.createEvent){i={createHtmlEvent:function(a,c,d,e){var b=a.createEvent("HTMLEvents");b.initEvent(c,d,e);return b},createMouseEvent:function(C,a,v,w,e,x,z,y,B,b,c,u,d){var A=C.createEvent("MouseEvents"),D=C.defaultView||window;if(A.initMouseEvent){A.initMouseEvent(a,v,w,D,e,x,z,x,z,y,B,b,c,u,d)}else{A=C.createEvent("UIEvents");A.initEvent(a,v,w);A.view=D;A.detail=e;A.screenX=x;A.screenY=z;A.clientX=x;A.clientY=z;A.ctrlKey=y;A.altKey=B;A.metaKey=c;A.shiftKey=b;A.button=u;A.relatedTarget=d}return A},createUIEvent:function(a,c,e,m,d){var b=a.createEvent("UIEvents"),n=a.defaultView||window;b.initUIEvent(c,e,m,n,d);return b},fireEvent:function(a,c,b){a.dispatchEvent(b)}}}else{if(document.createEventObject){j={0:1,1:4,2:2};i={createHtmlEvent:function(a,c,d,e){var b=a.createEventObject();b.bubbles=d;b.cancelable=e;return b},createMouseEvent:function(B,a,u,v,e,w,y,x,A,b,c,t,d){var z=B.createEventObject();z.bubbles=u;z.cancelable=v;z.detail=e;z.screenX=w;z.screenY=y;z.clientX=w;z.clientY=y;z.ctrlKey=x;z.altKey=A;z.shiftKey=b;z.metaKey=c;z.button=j[t]||t;z.relatedTarget=d;return z},createUIEvent:function(a,c,e,l,d){var b=a.createEventObject();b.bubbles=e;b.cancelable=l;return b},fireEvent:function(a,c,b){a.fireEvent("on"+c,b)}}}}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(b,a){var c=a[0],d=a[1];h[b]=function(e,n){var m=i.createHtmlEvent(b,c,d);i.fireEvent(e,b,m)}});function f(a,b){var c=(a!=="mousemove");return function(d,n){var e=n.getXY(),m=i.createMouseEvent(d.ownerDocument,a,true,c,b,e[0],e[1],n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget);i.fireEvent(d,a,m)}}Ext.each(["click","dblclick","mousedown","mouseup","mouseover","mousemove","mouseout"],function(a){h[a]=f(a,1)});Ext.Object.each({focusin:[true,false],focusout:[true,false],activate:[true,true],focus:[false,false],blur:[false,false]},function(b,a){var c=a[0],d=a[1];h[b]=function(e,n){var m=i.createUIEvent(e.ownerDocument,b,c,d,1);i.fireEvent(e,b,m)}});if(!i){h={};i={}}function g(a,b){}return function(a){var b=this,c=h[b.type]||g,d=a?(a.dom||a):b.getTarget();c(d,b)}}()),preventDefault:function(){var i=this,j=i.browserEvent,f=i.parentEvent,g,h;if(typeof j.type!=="unknown"){i.defaultPrevented=true;if(f){f.defaultPrevented=true}if(j.preventDefault){j.preventDefault()}else{if(j.type==="mousedown"){h=j.target;g=h.getAttribute("unselectable");if(g!=="on"){h.setAttribute("unselectable","on");Ext.defer(function(){h.setAttribute("unselectable",g)},1)}}j.returnValue=false;if(j.ctrlKey||j.keyCode>111&&j.keyCode<124){j.keyCode=-1}}}return i},stopPropagation:function(){var c=this,d=c.browserEvent;if(typeof d.type!=="unknown"){if(c.mousedownEvents[c.type]){Ext.GlobalEvents.fireMouseDown(c)}arguments.callee.$previous.call(this)}return c},deprecated:{"5.0":{methods:{clone:function(){return new this.self(this.browserEvent,this)}}}}},function(){var f=this,g,h=function(a){if(a.keyCode===9){f.forwardTab=!a.shiftKey}},e=function(a){if(a.keyCode===9){delete f.forwardTab}};if(Ext.isIE9m){g={0:0,1:0,4:1,2:2};f.override({statics:{enableIEAsync:function(a){var c,b={};for(c in a){b[c]=a[c]}return b}},constructor:function(b,a,d,j){var c=this;c.callParent([b,a,d,j]);c.button=g[b.button];if(b.type==="contextmenu"){c.button=2}c.toElement=b.toElement;c.fromElement=b.fromElement},mouseLeaveRe:/(mouseout|mouseleave)/,mouseEnterRe:/(mouseover|mouseenter)/,enableIEAsync:function(a){this.browserEvent=this.self.enableIEAsync(a)},getRelatedTarget:function(k,a,l){var c=this,d,b;if(!c.relatedTarget){d=c.type;if(c.mouseLeaveRe.test(d)){b=c.toElement}else{if(c.mouseEnterRe.test(d)){b=c.fromElement}}if(b){c.relatedTarget=c.self.resolveTextNode(b)}}return c.callParent([k,a,l])}});document.attachEvent("onkeydown",h);document.attachEvent("onkeyup",e);window.attachEvent("onunload",function(){document.detachEvent("onkeydown",h);document.detachEvent("onkeyup",e)})}else{if(document.addEventListener){document.addEventListener("keydown",h,true);document.addEventListener("keyup",e,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,scroll: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},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 b=this;b.bubbleSubscribers={};b.captureSubscribers={};b.directSubscribers={};b.directCaptureSubscribers={};b.delegatedListeners={};b.initHandlers();Ext.onInternalReady(b.onReady,b);Ext.event.publisher.Publisher.prototype.constructor.call(this)},registerEvents:function(){var i=this,k=Ext.event.publisher.Publisher.publishersByEvent,h=i.handledDomEvents,j=h.length,l=0,g;for(;l<j;l++){g=h[l];i.handles[g]=1;k[g]=i}Ext.event.publisher.Publisher.prototype.registerEvents.call(this)},onReady:function(){var g=this,f=g.handledDomEvents,h,e;if(f){for(e=0,h=f.length;e<h;e++){g.addDelegatedListener(f[e])}}Ext.getWin().on("unload",g.destroy,g)},initHandlers:function(){var b=this;b.onDelegatedEvent=Ext.bind(b.onDelegatedEvent,b);b.onDirectEvent=Ext.bind(b.onDirectEvent,b);b.onDirectCaptureEvent=Ext.bind(b.onDirectCaptureEvent,b)},addDelegatedListener:function(b){this.delegatedListeners[b]=1;this.target.addEventListener(b,this.onDelegatedEvent,!!this.captureEvents[b])},removeDelegatedListener:function(b){delete this.delegatedListeners[b];this.target.removeEventListener(b,this.onDelegatedEvent,!!this.captureEvents[b])},addDirectListener:function(d,f,e){f.dom.addEventListener(d,e?this.onDirectCaptureEvent:this.onDirectEvent,e)},removeDirectListener:function(d,f,e){f.dom.removeEventListener(d,e?this.onDirectCaptureEvent:this.onDirectEvent,e)},subscribe:function(n,h,k,i){var m=this,l,j;if(k&&!m.directEvents[h]){l=i?m.captureSubscribers:m.bubbleSubscribers;if(!m.handles[h]&&!m.delegatedListeners[h]){m.addDelegatedListener(h)}if(l[h]){++l[h]}else{l[h]=1}}else{l=i?m.directCaptureSubscribers:m.directSubscribers;j=n.id;l=l[h]||(l[h]={});if(l[j]){++l[j]}else{l[j]=1;m.addDirectListener(h,n,i)}}},unsubscribe:function(n,m,q,j){var k=this,l,o,r,p;if(q&&!k.directEvents[m]){l=k.captureSubscribers;o=k.bubbleSubscribers;r=j?l:o;if(r[m]){--r[m]}if(!k.handles[m]&&!o[m]&&!l[m]){this.removeDelegatedListener(m)}}else{r=j?k.directCaptureSubscribers:k.directSubscribers;p=n.id;r=r[m];if(r[p]){--r[p]}if(!r[p]){delete r[p];k.removeDirectListener(m,n,j)}}},getPropagatingTargets:function(g){var h=g,e=[],f;while(h){e.push(h);f=h.parentNode;if(!f){f=h.defaultView}h=f}return e},publish:function(e,k,l){var m=this,i,o,p,n;if(Ext.isArray(k)){i=k}else{if(m.captureEvents[e]){o=Ext.cache[k.id];i=o?[o]:[]}else{i=m.getPropagatingTargets(k)}}n=i.length;if(m.captureSubscribers[e]){for(p=n;p--;){o=Ext.cache[i[p].id];if(o){m.fire(o,e,l,false,true);if(l.isStopped){break}}}}if(!l.isStopped&&m.bubbleSubscribers[e]){for(p=0;p<n;p++){o=Ext.cache[i[p].id];if(o){m.fire(o,e,l,false,false);if(l.isStopped){break}}}}},fire:function(l,e,j,i,h){var k;if(l.hasListeners[e]){k=l.events[e];if(k){if(h&&i){k=k.directCaptures}else{if(h){k=k.captures}else{if(i){k=k.directs}}}if(k){j.setCurrentTarget(l.dom);k.fire(j,j.target)}}}},onDelegatedEvent:function(b){if(Ext.elevateFunction){Ext.elevateFunction(this.doDelegatedEvent,this,[b])}else{this.doDelegatedEvent(b)}},doDelegatedEvent:function(g,h){var e=this,f=g.timeStamp;g=new Ext.event.Event(g);if(e.isEventBlocked(g)){return false}e.beforeEvent(g);Ext.frameStartTime=f;e.reEnterCount++;e.publish(g.type,g.target,g);e.reEnterCount--;if(h!==false){e.afterEvent(g)}return g},onDirectEvent:function(b){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[b,false])}else{this.doDirectEvent(b,false)}},onDirectCaptureEvent:function(b){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[b,true])}else{this.doDirectEvent(b,true)}},doDirectEvent:function(i,e){var k=this,j=i.currentTarget,h=i.timeStamp,l;i=new Ext.event.Event(i);if(k.isEventBlocked(i)){return}k.beforeEvent(i);Ext.frameStartTime=h;l=Ext.cache[j.id];if(l){k.reEnterCount++;k.fire(l,i.type,i,true,e);k.reEnterCount--}k.afterEvent(i)},beforeEvent:function(j){var h=j.browserEvent,g=Ext.event.publisher.Dom,e,i;if(h.type==="touchstart"){e=h.touches;if(e.length===1){i=e[0];g.lastTouchStartX=i.pageX;g.lastTouchStartY=i.pageY}}},afterEvent:function(i){var h=i.browserEvent,j=h.type,e=Ext.event.publisher.Dom,g=Ext.GlobalEvents;if(i.self.pointerEvents[j]&&i.pointerType!=="mouse"){e.lastScreenPointerEventTime=Ext.now()}if(j==="touchend"){e.lastTouchEndTime=Ext.now()}if(!this.reEnterCount&&g.hasListeners.idle&&!g.idleEventMask[j]){g.fireEvent("idle")}},isEventBlocked:function(h){var i=this,j=h.type,g=Ext.event.publisher.Dom,e=Ext.now();if(Ext.isGecko&&h.type==="click"&&h.button===2){return true}return(i.blockedPointerEvents[j]&&h.pointerType!=="mouse")||(i.blockedCompatibilityMouseEvents[j]&&(e-g.lastScreenPointerEventTime<1000))||(Ext.supports.TouchEvents&&h.self.mouseEvents[h.type]&&Math.abs(h.pageX-g.lastTouchStartX)<15&&Math.abs(h.pageY-g.lastTouchStartY)<15&&(Ext.now()-g.lastTouchEndTime)<1000)},destroy:function(){var b;for(b in this.delegatedListeners){this.removeDelegatedListener(b)}this.callParent()},reset:function(){var b=Ext.event.publisher.Dom;b.lastScreenPointerEventTime=b.lastTouchEndTime=b.lastTouchStartX=b.lastTouchStartY=undefined}},1,0,0,0,0,0,[Ext.event.publisher,"Dom"],function(e){var g=document,h=g.defaultView,f=e.prototype;if((Ext.os.is.iOS&&Ext.os.version.getMajor()<5)||Ext.browser.is.AndroidStock||!(h&&h.addEventListener)){f.target=g}else{f.target=h}e.instance=new e()}));Ext.define("Ext.overrides.event.publisher.Dom",{override:"Ext.event.publisher.Dom"},function(i){if(Ext.isIE9m){var g=document.documentElement,j=document.body,k=i.prototype,h,l;k.target=document;k.directBoundListeners={};h=function(a,b,c){a.target=a.srcElement||window;a.currentTarget=this;if(c){b.onDirectCaptureEvent(a)}else{b.onDirectEvent(a)}};l=function(a,b){a.target=a.srcElement||window;a.currentTarget=this;b.onDirectCaptureEvent(a)};i.override({addDelegatedListener:function(a){this.delegatedListeners[a]=1;this.target.attachEvent("on"+a,this.onDelegatedEvent)},removeDelegatedListener:function(a){delete this.delegatedListeners[a];this.target.detachEvent("on"+a,this.onDelegatedEvent)},addDirectListener:function(d,c,e){var a=this,p=c.dom,b=Ext.Function.bind(h,p,[a,e],true),o=a.directBoundListeners,f=o[d]||(o[d]={});f[p.id]=b;if(p.attachEvent){p.attachEvent("on"+d,b)}else{a.callParent(arguments)}},removeDirectListener:function(c,b){var a=b.dom;if(a.detachEvent){a.detachEvent("on"+c,this.directBoundListeners[c][a.id])}else{this.callParent(arguments)}},doDelegatedEvent:function(a,b){a.target=a.srcElement||window;if(a.type==="focusin"){a.relatedTarget=a.fromElement===j||a.fromElement===g?null:a.fromElement}else{if(a.type==="focusout"){a.relatedTarget=a.toElement===j||a.toElement===g?null:a.toElement}}return this.callParent([a,b])}});Ext.apply(k.directEvents,k.captureEvents);Ext.apply(k.directEvents,{change:1,input:1,paste:1});k.captureEvents={}}});(Ext.cmd.derive("Ext.event.publisher.Gesture",Ext.event.publisher.Dom,{type:"gesture",config:{async:true},isCancelEvent:{touchcancel:1,pointercancel:1,MSPointerCancel:1},handledEvents:[],handledDomEvents:[],constructor:function(w){var r=this,v=r.handledDomEvents,m=Ext.supports,o=m.TouchEvents,n=Ext.Function,u=r.onTouchStart,x=r.onTouchMove,p=r.onTouchEnd,s=n.createAnimationFrame(r.onTouchStart,r,null,1),t=n.createAnimationFrame(r.onTouchMove,r),q=n.createAnimationFrame(r.onTouchEnd,r,null,1);r._handlers={touchstart:u,touchmove:x,touchend:p,touchcancel:p,pointerdown:u,pointermove:x,pointerup:p,pointercancel:p,MSPointerDown:u,MSPointerMove:x,MSPointerUp:p,MSPointerCancel:p,mousedown:u,mousemove:x,mouseup:p};r._asyncHandlers={touchstart:s,touchmove:t,touchend:q,touchcancel:q,pointerdown:s,pointermove:t,pointerup:q,pointercancel:q,MSPointerDown:s,MSPointerMove:t,MSPointerUp:q,MSPointerCancel:q,mousedown:s,mousemove:t,mouseup:q};r.activeTouchesMap={};r.activeTouches=[];r.changedTouches=[];r.recognizers=[];if(o){r.onTargetTouchMove=r.onTargetTouchMove.bind(r);r.onTargetTouchEnd=r.onTargetTouchEnd.bind(r)}if(m.PointerEvents){v.push("pointerdown","pointermove","pointerup","pointercancel");r.mousePointerType="mouse"}else{if(m.MSPointerEvents){v.push("MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel");r.mousePointerType=4}else{if(o){v.push("touchstart","touchmove","touchend","touchcancel")}}}if(!v.length||(o&&Ext.isWebKit&&Ext.os.is.Desktop)){v.push("mousedown","mousemove","mouseup")}r.initConfig(w);return Ext.event.publisher.Dom.prototype.constructor.call(this)},onReady:function(){Ext.event.publisher.Dom.prototype.onReady.call(this);Ext.Array.sort(this.recognizers,function(a,b){var g=a.priority,h=b.priority;return(g>h)?1:(g<h)?-1:0})},registerRecognizer:function(g){var h=this,f=g.handledEvents,i=f.length,j;g.setOnRecognized(h.onRecognized);g.setCallbackScope(h);for(j=0;j<i;j++){h.handledEvents.push(f[j])}h.registerEvents(f);h.recognizers.push(g)},onRecognized:function(q,o,t){var m=this,i=o.changedTouches,n=i.length,e,p,r,s;t=t||{};t.type=q;t.target=i[0].target;t.isStopped=false;o=o.chain(t);if(n>1){e=[];for(r=0;r<n;r++){s=i[r];e.push(s.targets)}p=m.getCommonTargets(e)}else{p=i[0].targets}m.publish(q,p,o)},getCommonTargets:function(j){var k=j[0],m=j.length;if(m===1){return k}var o=[],n=1,l,i,p;while(true){l=k[k.length-n];if(!l){return o}for(p=1;p<m;p++){i=j[p];if(i[i.length-n]!==l){return o}}o.unshift(l);n++}return o},invokeRecognizers:function(l,i){var e=this.recognizers,j=e.length,k,h;if(l==="onStart"){for(k=0;k<j;k++){e[k].isActive=true}}for(k=0;k<j;k++){h=e[k];if(h.isActive&&h[l].call(h,i)===false){h.isActive=false}}},updateTouches:function(y,E){var u=this,e=y.browserEvent,B=e.changedTouches||[e],F=u.activeTouches,x=u.activeTouchesMap,s=[],v,z,C,A,D,w,i,t;for(D=0,w=B.length;D<w;D++){v=B[D];if("identifier" in v){z=v.identifier}else{if("pointerId" in v){z=v.pointerId}else{z=1}}C=x[z];if(!C){A=Ext.event.Event.resolveTextNode(v.target);C=x[z]={identifier:z,target:A,targets:u.getPropagatingTargets(A)};F.push(C)}if(E){delete x[z];Ext.Array.remove(F,C)}i=v.pageX;t=v.pageY;C.pageX=i;C.pageY=t;C.point=new Ext.util.Point(i,t);s.push(C)}y.touches=Ext.Array.clone(F);y.changedTouches=s},doDelegatedEvent:function(c){var d=this;c=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,c,false);if(c){if(!c.button||c.button<1){d.handlers[c.type].call(d,c)}d.afterEvent(c)}},onTouchStart:function(g){var f=this,h=g.target,e=g.browserEvent.touches;if(g.browserEvent.type==="touchstart"){h.addEventListener("touchmove",f.onTargetTouchMove);h.addEventListener("touchend",f.onTargetTouchEnd);h.addEventListener("touchcancel",f.onTargetTouchEnd)}if(e&&e.length<=f.activeTouches.length){f.removeGhostTouches(e)}f.updateTouches(g);if(!f.isStarted){f.isStarted=true;f.invokeRecognizers("onStart",g);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.pause()}}f.invokeRecognizers("onTouchStart",g)},onTouchMove:function(f){var d=this,e=d.mousePointerType;if(d.isStarted){if(e&&f.browserEvent.pointerType===e&&f.buttons===0){f.type=Ext.dom.Element.prototype.eventMap.touchend;f.button=0;d.onTouchEnd(f);return}d.updateTouches(f);if(f.changedTouches.length>0){d.invokeRecognizers("onTouchMove",f)}}},onTouchEnd:function(c){var d=this;if(!d.isStarted){return}d.updateTouches(c,true);d.invokeRecognizers(d.isCancelEvent[c.type]?"onTouchCancel":"onTouchEnd",c);if(!d.activeTouches.length){d.isStarted=false;d.invokeRecognizers("onEnd",c);if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}},onTargetTouchMove:function(b){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[b])}else{this.doTargetTouchMove(b)}},doTargetTouchMove:function(b){if(!Ext.getBody().contains(b.target)){this.onTouchMove(new Ext.event.Event(b))}},onTargetTouchEnd:function(b){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[b])}else{this.doTargetTouchEnd(b)}},doTargetTouchEnd:function(f){var e=this,d=f.target;d.removeEventListener("touchmove",e.onTargetTouchMove);d.removeEventListener("touchend",e.onTargetTouchEnd);d.removeEventListener("touchcancel",e.onTargetTouchEnd);if(!Ext.getBody().contains(d)){e.onTouchEnd(new Ext.event.Event(f))}},updateAsync:function(b){this.handlers=b?this._asyncHandlers:this._handlers},reset:function(){var h=this,f=h.recognizers,i=f.length,j,g;h.activeTouchesMap={};h.activeTouches=[];h.changedTouches=[];h.isStarted=false;for(j=0;j<i;j++){g=f[j];g.reset();g.isActive=false}Ext.event.publisher.Dom.prototype.reset.call(this)},privates:{removeGhostTouches:function(n){var p={},j=n.length,k=this.activeTouches,o=this.activeTouchesMap,i,l,m;for(i=0;i<j;++i){p[n[i].identifier]=true}i=k.length;while(i--){m=k[i];l=m.identifier;if(!n[l]){Ext.Array.remove(k,m);delete o[l]}}}}},1,0,0,0,0,0,[Ext.event.publisher,"Gesture"],function(b){b.instance=new b()}));Ext.define("Ext.overrides.event.publisher.Gesture",{override:"Ext.event.publisher.Gesture"},function(){if(Ext.isIE9m){this.override({updateTouches:function(h,f){var g=h.browserEvent,e=h.getXY();g.pageX=e[0];g.pageY=e[1];this.callParent([h,f])},doDelegatedEvent:function(b){this.callParent([Ext.event.Event.enableIEAsync(b)])}})}});(Ext.cmd.derive("Ext.mixin.Templatable",Ext.Mixin,{mixinConfig:{id:"templatable"},referenceAttributeName:"reference",referenceSelector:"[reference]",getElementConfig:function(){return{reference:"element"}},getElementTemplate:function(){var b=document.createDocumentFragment();b.appendChild(Ext.Element.create(this.getElementConfig(),true));return b},initElement:function(){var b=this.self.prototype;b.elementTemplate=this.getElementTemplate();b.initElement=b.doInitElement;this.initElement.apply(this,arguments)},linkElement:function(d,c){this.link(d,c)},doInitElement:function(){var j=this.referenceAttributeName,n,m,l,k,h,i;n=this.elementTemplate.cloneNode(true);m=n.querySelectorAll(this.referenceSelector);for(l=0,k=m.length;l<k;l++){h=m[l];i=h.getAttribute(j);h.removeAttribute(j);this.linkElement(i,h)}}},0,0,0,0,0,0,[Ext.mixin,"Templatable"],0));(Ext.cmd.derive("Ext.TaskQueue",Ext.Base,{singleton:true,pending:false,mode:true,constructor:function(){this.readQueue=[];this.writeQueue=[];this.run=Ext.Function.bind(this.run,this);if(Ext.os.is.iOS){Ext.interval(this.watch,500,this)}},requestRead:function(f,d,e){this.request(true);this.readQueue.push(arguments)},requestWrite:function(f,d,e){this.request(false);this.writeQueue.push(arguments)},request:function(b){if(!this.pending){this.pendingTime=Date.now();this.pending=true;this.mode=b;if(b){Ext.defer(this.run,1,this)}else{Ext.Function.requestAnimationFrame(this.run)}}},watch:function(){if(this.pending&&Date.now()-this.pendingTime>=500){this.run()}},run:function(){this.pending=false;var l=this.readQueue,p=this.writeQueue,r=null,o;if(this.mode){o=l;if(p.length>0){r=false}}else{o=p;if(l.length>0){r=true}}var s=o.slice(),q,n,t,m,i;o.length=0;for(q=0,n=s.length;q<n;q++){t=s[q];m=t[0];i=t[1];if(typeof m==="string"){m=i[m]}if(t.length>2){m.apply(i,t[2])}else{m.call(i)}}s.length=0;if(r!==null){this.request(r)}}},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:0,height:0,contentWidth:0,contentHeight:0,constructor:function(b){this.refresh=Ext.Function.bind(this.refresh,this);this.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};this.initElement();this.initConfig(b);this.bindListeners(true)},bindListeners:Ext.emptyFn,applyElement:function(b){if(b){return Ext.get(b)}},updateElement:function(b){b.append(this.detectorsContainer);b.addCls("x-size-monitored")},applyArgs:function(b){return b.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead("refresh",this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.offsetWidth},getContentHeight:function(){return this.detectorsContainer.offsetHeight},refreshSize:function(){var q=this.getElement();if(!q||q.destroyed){return false}var s=q.getWidth(),k=q.getHeight(),t=this.getContentWidth(),l=this.getContentHeight(),m=this.contentWidth,o=this.contentHeight,r=this.info,p=false,n;this.width=s;this.height=k;this.contentWidth=t;this.contentHeight=l;n=((m!==t?1:0)+(o!==l?2:0));if(n>0){r.width=s;r.height=k;r.contentWidth=t;r.contentHeight=l;r.flag=n;p=true;this.getCallback().apply(this.getScope(),this.getArgs())}return p},refresh:function(b){if(this.refreshSize()||b){Ext.TaskQueue.requestWrite("refreshMonitors",this)}},destroy:function(){var c=this,d=c.getElement();c.bindListeners(false);if(d&&!d.destroyed){d.removeCls("x-size-monitored")}delete c._element;c.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(b){this.onScroll=Ext.Function.bind(this.onScroll,this);Ext.util.sizemonitor.Abstract.prototype.constructor.apply(this,arguments)},bindListeners:function(c){var d=c?"addEventListener":"removeEventListener";this.expandMonitor[d]("scroll",this.onScroll,true);this.shrinkMonitor[d]("scroll",this.onScroll,true)},forceRefresh:function(){Ext.TaskQueue.requestRead("refresh",this,[true])},onScroll:function(){Ext.TaskQueue.requestRead("refresh",this)},refreshMonitors:function(){var d=this.expandMonitor,f=this.shrinkMonitor,e=1000000;if(d&&!d.destroyed){d.scrollLeft=e;d.scrollTop=e}if(f&&!f.destroyed){f.scrollLeft=e;f.scrollTop=e}}},1,0,0,0,0,0,[Ext.util.sizemonitor,"Scroll"],0));(Ext.cmd.derive("Ext.util.sizemonitor.OverflowChange",Ext.util.sizemonitor.Abstract,{constructor:function(b){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(c){var d=c?"addEventListener":"removeEventListener";this.expandMonitor[d](Ext.browser.is.Firefox?"underflow":"overflowchanged",this.onExpand,true);this.shrinkMonitor[d](Ext.browser.is.Firefox?"overflow":"overflowchanged",this.onShrink,true)},onExpand:function(b){if(Ext.browser.is.Webkit&&b.horizontalOverflow&&b.verticalOverflow){return}Ext.TaskQueue.requestRead("refresh",this)},onShrink:function(b){if(Ext.browser.is.Webkit&&!b.horizontalOverflow&&!b.verticalOverflow){return}Ext.TaskQueue.requestRead("refresh",this)},refreshMonitors:function(){if(this.destroyed){return}var i=this.expandHelper,j=this.shrinkHelper,g=this.getContentBounds(),k=g.width,h=g.height,l;if(i&&!i.destroyed){l=i.style;l.width=(k+1)+"px";l.height=(h+1)+"px"}if(j&&!j.destroyed){l=j.style;l.width=k+"px";l.height=h+"px"}Ext.TaskQueue.requestRead("refresh",this)}},1,0,0,0,0,0,[Ext.util.sizemonitor,"OverflowChange"],0));(Ext.cmd.derive("Ext.util.SizeMonitor",Ext.Base,{constructor:function(d){var c=Ext.util.sizemonitor;if(Ext.browser.is.Firefox){return new c.OverflowChange(d)}else{return new c.Scroll(d)}}},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(e){var g=e.id,h=this.subscribers,f=this.monitors;if(h[g]){++h[g]}else{h[g]=1;f[g]=new Ext.util.SizeMonitor({element:e,callback:this.onElementResize,scope:this,args:[e]})}e.on("painted","forceRefresh",f[g]);return true},unsubscribe:function(j){var h=j.id,i=this.subscribers,f=this.monitors,g;if(i[h]&&!--i[h]){delete i[h];g=f[h];j.un("painted","forceRefresh",g);g.destroy();delete f[h]}},onElementResize:function(d,c){Ext.TaskQueue.requestRead("fire",this,[d,"resize",[d,c]])}},1,0,0,0,0,0,[Ext.event.publisher,"ElementSize"],function(b){b.instance=new b()}));(Ext.cmd.derive("Ext.util.paintmonitor.Abstract",Ext.Base,{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:"",monitorClass:"",constructor:function(b){this.onElementPainted=Ext.Function.bind(this.onElementPainted,this);this.initConfig(b)},bindListeners:function(b){this.monitorElement[b?"addEventListener":"removeEventListener"](this.eventName,this.onElementPainted,true)},applyElement:function(b){if(b){return Ext.get(b)}},updateElement:function(b){this.monitorElement=Ext.Element.create({classList:["x-paint-monitor",this.monitorClass]},true);b.appendChild(this.monitorElement);b.addCls("x-paint-monitored");this.bindListeners(true)},onElementPainted:function(){},destroy:function(){var g=this,e=g.monitorElement,f=e.parentNode,h=g.getElement();g.bindListeners(false);delete g.monitorElement;if(h&&!h.destroyed){h.removeCls("x-paint-monitored");delete g._element}if(f){f.removeChild(e)}g.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(b){if(b.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(b){return new Ext.util.paintmonitor.CssAnimation(b)}},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(f){var e=this,g=f.id,h=e.subscribers;if(h[g]){++h[g]}else{h[g]=1;e.monitors[g]=new Ext.util.PaintMonitor({element:f,callback:e.onElementPainted,scope:e,args:[f]})}},unsubscribe:function(e){var g=e.id,h=this.subscribers,f=this.monitors;if(h[g]&&!--h[g]){delete h[g];f[g].destroy();delete f[g]}},onElementPainted:function(b){Ext.TaskQueue.requestRead("fire",this,[b,"painted",[b]])}},1,0,0,0,0,0,[Ext.event.publisher,"ElementPaint"],function(b){b.instance=new b()}));(Ext.cmd.derive("Ext.dom.Element",Ext.Base,function(a3){var aY=window,aq=document,aH="ext-window",ax="ext-document",ba="width",at="height",aN="min-width",be="min-height",a2="max-width",aL="max-height",ap="top",aE="right",aw="bottom",aD="left",a8="visibility",aK="hidden",bf="display",an="none",a5="z-index",al="position",a0="relative",aZ="static",aT="-",aV=/\w/g,ay=/\s+/,aJ=/[\s]+/,bh=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,aA=/table-row|table-.*-group/,bg=/top/i,aW={t:"border-top-width",r:"border-right-width",b:"border-bottom-width",l:"border-left-width"},aP={t:"padding-top",r:"padding-right",b:"padding-bottom",l:"padding-left"},a6={t:"margin-top",r:"margin-right",b:"margin-bottom",l:"margin-left"},aF=[aP.l,aP.r,aP.t,aP.b],bc=[aW.l,aW.r,aW.t,aW.b],aS=/\d+$/,a9=/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,ar="px",au=/(-[a-z])/gi,aC=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,a1=/^\d+(?:\.\d*)?px$/i,aU={},aX="originalDisplay",am=function(b,a){return a.charAt(1).toUpperCase()},az=function(b,d){var a,c,e;if(b.nodeType===1){b._extData=null;if(d){a=b.childNodes;for(c=0,e=a.length;c<e;++c){az(a[c],d)}}}},aI="x-hidden-visibility",aM="x-hidden-display",a7="x-hidden-offsets",bi="x-hidden-clip",aO="x-sized",av="x-unsized",aB="x-stretched",aj="x-no-touch-scroll",a4={style:"style",className:"className",cls:"cls",classList:"classList",text:"text",hidden:"hidden",html:"html",children:"children"},ao=0,aR=0,aQ=false,bd=false,ak,aG,bb;return{alternateClassName:["Ext.Element"],observableType:"element",isElement:true,skipGarbageCollection:true,$applyConfigs:true,identifiablePrefix:"ext-element-",styleHooks:{},validIdRe:Ext.validIdRe,blockedEvents:Ext.supports.EmulatedMouseOver?{mouseover:1}:{},longpressEvents:{longpress:1,taphold:1},constructor:function(b){var c=this,a;if(typeof b==="string"){b=aq.getElementById(b)}if(!b){return null}c.dom=b;a=b.id;if(a){c.id=a}else{a=b.id=c.getUniqueId()}c.el=c;Ext.cache[a]=c;c.mixins.observable.constructor.call(c)},inheritableStatics:{cache:Ext.cache={},editableSelector:'input,textarea,[contenteditable="true"]',VISIBILITY:1,DISPLAY:2,OFFSETS:3,CLIP:4,minKeyboardHeight:100,unitRe:a9,useDelegatedEvents:true,validNodeTypes:{1:1,9:1},addUnits:function(a,b){if(typeof a==="number"){return a+(b||ar)}if(a===""||a==="auto"||a==null){return a||""}if(aS.test(a)){return a+(b||ar)}if(!a9.test(a)){return a||""}return a},create:function(j,k){var d=this,g=a4.hidden,h,c,a,b,l,i,e,f;if(!j){j={}}if(j.isElement){return k?j.dom:j}else{if("nodeType" in j){return k?j:Ext.get(j)}}if(typeof j==="string"){return aq.createTextNode(j)}a=j.tag;if(!a){a="div"}if(j.namespace){h=aq.createElementNS(j.namespace,a)}else{h=aq.createElement(a)}c=h.style;if(j[g]){f=j.className;f=(f==null)?"":f+" ";j.className=f+aM;delete j[g]}for(l in j){if(l!=="tag"){b=j[l];switch(l){case a4.style:if(typeof b==="string"){h.setAttribute(l,b)}else{for(i in b){if(b.hasOwnProperty(i)){c[i]=b[i]}}}break;case a4.className:case a4.cls:h.className=b;break;case a4.classList:h.className=b.join(" ");break;case a4.text:h.textContent=b;break;case a4.html:h.innerHTML=b;break;case a4.children:for(i=0,e=b.length;i<e;i++){h.appendChild(d.create(b[i],true))}break;default:if(b!=null){h.setAttribute(l,b)}}}}if(k){return h}else{return d.get(h)}},detach:function(){var a=this.dom;if(a&&a.parentNode&&a.tagName!=="BODY"){a.parentNode.removeChild(a)}return this},fly:function(a,b){return Ext.fly(a,b)},fromPoint:function(b,a){return Ext.get(aq.elementFromPoint(b,a))},get:function(h){var d=this,j=Ext.cache,f,g,i,a,b,e,c;if(!h){return null}if(h.isFly){h=h.dom}if(typeof h==="string"){i=h;if(j.hasOwnProperty(i)){a=j[i];if(a.skipGarbageCollection||!Ext.isGarbage(a.dom)){return a}else{a.destroy()}}if(i===aH){return a3.get(aY)}else{if(i===ax){return a3.get(aq)}}g=Ext.getElementById?Ext.getElementById(i):aq.getElementById(i);if(g){return new a3(g)}}f=h.nodeType;if(f){b=(f===9);c=d.validNodeTypes[f]}else{e=(h.window==h)}if(c||e){i=h.id;if(j.hasOwnProperty(i)){a=j[i];if(a.skipGarbageCollection||h===a.dom||!Ext.isGarbage(a.dom)){return a}else{a.destroy()}}if(h===aq){h.id=ax}if(h==aY){h.id=aH}h=new a3(h);if(e||b){h.skipGarbageCollection=true}return h}if(h.isElement){return h}if(h.isComposite){return h}if(Ext.isIterable(h)){return d.select(h)}return null},getActiveElement:function(b){var a=aq.activeElement;if(!a||!a.focus){a=aq.body}return b?Ext.get(a):a},getDocumentHeight:function(){return Math.max(!Ext.isStrict?aq.body.scrollHeight:aq.documentElement.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return Math.max(!Ext.isStrict?aq.body.scrollWidth:aq.documentElement.scrollWidth,this.getViewportWidth())},getOrientation:function(){if(Ext.supports.OrientationChange){return(aY.orientation==0)?"portrait":"landscape"}return(aY.innerHeight>aY.innerWidth)?"portrait":"landscape"},getViewportHeight:function(){var a=a3._viewportHeight;if(Ext.isIE9m){return aq.documentElement.clientHeight}return(a!=null)?a:aY.innerHeight},getViewportWidth:function(){var a=a3._viewportWidth;if(Ext.isIE9m){return aq.documentElement.clientWidth}return(a!=null)?a:aY.innerWidth},getViewSize:function(){return{width:a3.getViewportWidth(),height:a3.getViewportHeight()}},normalize:function(a){return aU[a]||(aU[a]=a.replace(au,am))},_onWindowFocusChange:function(a){if(Ext.fly(a.target).is(a3.editableSelector)){ao=new Date();aQ=(a.type==="focusin"||a.type==="pointerup")}},_onWindowResize:function(){var b=window.innerWidth,a=window.innerHeight,c=new Date(),e=1000,d,f;d=b-a3._windowWidth;f=a-a3._windowHeight;a3._windowWidth=b;a3._windowHeight=a;if(((c-ao)<e)||((c-aR)<e)){if(d===0&&(aQ&&(f<=-a3.minKeyboardHeight))){bd=true;return}}if(bd&&(d===0)&&(f>=a3.minKeyboardHeight)){bd=false;aR=new Date()}if(bd){return}a3._viewportWidth=b;a3._viewportHeight=a},parseBox:function(b){b=b||0;var d=typeof b,a,c;if(d==="number"){return{top:b,right:b,bottom:b,left:b}}else{if(d!=="string"){return b}}a=b.split(" ");c=a.length;if(c===1){a[1]=a[2]=a[3]=a[0]}else{if(c===2){a[2]=a[0];a[3]=a[1]}else{if(c===3){a[3]=a[1]}}}return{top:parseFloat(a[0])||0,right:parseFloat(a[1])||0,bottom:parseFloat(a[2])||0,left:parseFloat(a[3])||0}},parseStyles:function(b){var c={},a;if(b){aC.lastIndex=0;while((a=aC.exec(b))){c[a[1]]=a[2]||""}}return c},select:function(c,a,b){return Ext.fly(b||aq).select(c,a)},query:function(b,c,a){return Ext.fly(a||aq).query(b,c)},unitizeBox:function(a,c){var b=this;a=b.parseBox(a);return b.addUnits(a.top,c)+" "+b.addUnits(a.right,c)+" "+b.addUnits(a.bottom,c)+" "+b.addUnits(a.left,c)},serializeForm:function(l){var k=l.elements||(aq.forms[l]||Ext.getDom(l)).elements,b=false,c=encodeURIComponent,h="",i=k.length,g,n,d,o,a,f,j,e,m;for(f=0;f<i;f++){g=k[f];n=g.name;d=g.type;o=g.options;if(!g.disabled&&n){if(/select-(one|multiple)/i.test(d)){e=o.length;for(j=0;j<e;j++){m=o[j];if(m.selected){a=m.hasAttribute("value");h+=Ext.String.format("{0}={1}&",c(n),c(a?m.value:m.text))}}}else{if(!(/file|undefined|reset|button/i.test(d))){if(!(/radio|checkbox/i.test(d)&&!g.checked)&&!(d=="submit"&&b)){h+=c(n)+"="+c(g.value)+"&";b=/submit/i.test(d)}}}}}return h.substr(0,h.length-1)},getCommonAncestor:function(a,b,c){bb=bb||new Ext.dom.Fly();bb.attach(Ext.getDom(a));while(!bb.isAncestor(b)){if(bb.dom.parentNode){bb.attach(bb.dom.parentNode)}else{bb.attach(document.body);break}}return c?bb.dom:Ext.get(bb)}},addCls:function(d,f,b){var c=this,i=c.getData(),a,h,k,j,g,e,l;if(!d){return c}if(!i.isSynchronized){c.synchronize()}h=c.dom;k=i.classMap;j=i.classList;f=f?f+aT:"";b=b?aT+b:"";if(typeof d==="string"){d=d.split(ay)}for(g=0,e=d.length;g<e;g++){l=d[g];if(l){l=f+l+b;if(!k[l]){k[l]=true;j.push(l);a=true}}}if(a){h.className=j.join(" ")}return c},addStyles:function(a,b){var f=0,c=(a||"").match(aV),d,h=c.length,e,g=[];if(h===1){f=Math.abs(parseFloat(this.getStyle(b[c[0]]))||0)}else{if(h){for(d=0;d<h;d++){e=c[d];g.push(b[e])}g=this.getStyle(g);for(d=0;d<h;d++){e=c[d];f+=parseFloat(g[b[e]])||0}}}return f},addUnits:function(a,b){return a3.addUnits(a,b)},adjustDirect2DDimension:function(g){var b=this,h=b.dom,d=b.getStyle("display"),e=h.style.display,a=h.style.position,c=g===ba?0:1,i=h.currentStyle,f;if(d==="inline"){h.style.display="inline-block"}h.style.position=d.match(aA)?"absolute":"static";f=(parseFloat(i[g])||parseFloat(i.msTransformOrigin.split(" ")[c])*2)%1;h.style.position=a;if(d==="inline"){h.style.display=e}return f},animate:function(a){a=new Ext.fx.Animation(a);a.setElement(this);this._activeAnimation=a;a.on({animationend:this._onAnimationEnd});Ext.Animator.run(a);return a},_onAnimationEnd:function(){this._activeAnimation=null},getActiveAnimation:function(){return this._activeAnimation},append:function(){this.appendChild.apply(this,arguments)},appendChild:function(d,e){var c=this,a,f,b;if(d.nodeType||d.dom||typeof d==="string"){d=Ext.getDom(d);c.dom.appendChild(d);return !e?Ext.get(d):d}else{if(d.length){a=Ext.fly(document.createDocumentFragment());f=d.length;for(b=0;b<f;b++){a.appendChild(d[b],e)}c.dom.appendChild(a.dom);return e?a.dom:a}else{return c.createChild(d,null,e)}}},appendTo:function(a){Ext.getDom(a).appendChild(this.dom);return this},applyStyles:function(a){if(a){if(typeof a==="function"){a=a.call()}if(typeof a==="string"){a=a3.parseStyles(a)}if(typeof a==="object"){this.setStyle(a)}}return this},blur:function(){var c=this,a=c.dom;if(a!==aq.body){try{a.blur()}catch(b){}return c}else{return c.focus(undefined,a)}},cacheScrollValues:function(){var c=this,b=[],d=[],a,e,f,g;aG=aG||new Ext.dom.Fly();a=c.query("*");for(f=0,g=a.length;f<g;f++){e=a[f];if(e.scrollTop>0||e.scrollLeft!==0){d.push(e);b.push(aG.attach(e).getScroll())}}return function(){var i,h,j;for(h=0,j=d.length;h<j;h++){i=b[h];aG.attach(d[h]);aG.setScrollLeft(i.left);aG.setScrollTop(i.top)}}},center:function(a){return this.alignTo(a||aq,"c-c")},child:function(d,c){var b=this,a=Ext.get(b).id;return b.selectNode(Ext.makeIdSelector(a)+" > "+d,!!c)},clone:function(c,b){var a=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){az(a,c)}return b?a:Ext.get(a)},constrainScrollLeft:function(b){var a=this.dom;return Math.max(Math.min(b,a.scrollWidth-a.clientWidth),0)},constrainScrollTop:function(b){var a=this.dom;return Math.max(Math.min(b,a.scrollHeight-a.clientHeight),0)},createChild:function(b,c,a){b=b||{tag:"div"};if(c){return Ext.DomHelper.insertBefore(c,b,a!==true)}else{return Ext.DomHelper.append(this.dom,b,a!==true)}},contains:function(c){if(!c){return false}var b=this,a=Ext.getDom(c);return(a===b.dom)||b.isAncestor(a)},destroy:function(){var b=this,a=b.dom;if(a&&a.parentNode){a.parentNode.removeChild(a)}b.collect();if(!b.isFly){b.callParent()}},detach:function(){var a=this.dom;if(a&&a.parentNode&&a.tagName!=="BODY"){a.parentNode.removeChild(a)}return this},disableShadow:function(){var a=this.shadow;if(a){a.hide();a.disabled=true}},disableShim:function(){var a=this.shim;if(a){a.hide();a.disabled=true}},disableTouchContextMenu:function(){this._contextMenuListenerRemover=this.on({MSHoldVisual:function(a){a.preventDefault()},destroyable:true,delegated:false})},disableTouchScroll:function(){this.addCls(aj);this.on({touchmove:function(a){a.preventDefault()},translate:false})},doReplaceWith:function(b){var a=this.dom;a.parentNode.replaceChild(Ext.getDom(b),a)},doScrollIntoView:function(m,i,l,h,b,e){aG=aG||new Ext.dom.Fly();var d=this,g=d.dom,a=aG.attach(m)[b](),c=m.scrollTop,f=d.getScrollIntoViewXY(m,a,c),j=f.x,k=f.y;if(h){if(l){l=Ext.apply({listeners:{afteranimate:function(){aG.attach(g).highlight()}}},l)}else{aG.attach(g).highlight()}}if(k!==c){aG.attach(m).scrollTo("top",k,l)}if(i!==false&&(j!==a)){aG.attach(m)[e]("left",j,l)}return d},down:function(b,a){return this.selectNode(b,!!a)},enableShadow:function(d,e){var c=this,a=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},d))),b=c.shim;if(b){b.offsets=a.outerOffsets;b.shadow=a;a.shim=b}if(e===true||(e!==false&&c.isVisible())){a.show()}else{a.hide()}a.disabled=false},enableShim:function(d,e){var c=this,a=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},d))),b=c.shadow;if(b){a.offsets=b.outerOffsets;a.shadow=b;b.shim=a}if(e===true||(e!==false&&c.isVisible())){a.show()}else{a.hide()}a.disabled=false},findParent:function(a,f,g){var d=this,c=d.dom,e=aq.documentElement,b=0;if(f||f===0){if(typeof f!=="number"){e=Ext.getDom(f);f=Number.MAX_VALUE}}else{f=50}while(c&&c.nodeType===1&&b<f&&c!==e){if(Ext.fly(c).is(a)){return g?Ext.get(c):c}b++;c=c.parentNode}return null},findParentNode:function(a,c,d){var b=Ext.fly(this.dom.parentNode);return b?b.findParent(a,c,d):null},first:function(b,a){return this.matchNode("nextSibling","firstChild",b,a)},focus:function(a,b){var c=this;b=b||c.dom;if(Number(a)){Ext.defer(c.focus,a,c,[null,b])}else{Ext.GlobalEvents.fireEvent("beforefocus",b);b.focus()}return c},collect:function(){var d=this,c=d.dom,a=d.shadow,b=d.shim;if(!d.isFly){d.mixins.observable.destroy.call(d);delete Ext.cache[d.id];d.destroyed=true;d.el=null}if(c){c._extData=d.dom=null}if(a){a.hide();d.shadow=null}if(b){b.hide();d.shim=null}},getAnchorToXY:function(a,d,b,c){return a.getAnchorXY(d,b,c)},getAttribute:function(c,b){var a=this.dom;return b?(a.getAttributeNS(b,c)||a.getAttribute(b+":"+c)):(a.getAttribute(c)||a[c]||null)},getAttributes:function(){var b=this.dom.attributes,c={},d,a,e;for(a=0,e=b.length;a<e;a++){d=b[a];c[d.name]=d.value}return c},getBottom:function(a){return(a?this.getLocalY():this.getY())+this.getHeight()},getById:function(a,c){var b=aq.getElementById(a)||this.dom.querySelector(Ext.makeIdSelector(a));return c?b:(b?Ext.get(b):null)},getBorderPadding:function(){var b=this.getStyle(aF),a=this.getStyle(bc);return{beforeX:(parseFloat(a[aW.l])||0)+(parseFloat(b[aP.l])||0),afterX:(parseFloat(a[aW.r])||0)+(parseFloat(b[aP.r])||0),beforeY:(parseFloat(a[aW.t])||0)+(parseFloat(b[aP.t])||0),afterY:(parseFloat(a[aW.b])||0)+(parseFloat(b[aP.b])||0)}},getBorders:function(){var a=this.getStyle(bc);return{beforeX:(parseFloat(a[aW.l])||0),afterX:(parseFloat(a[aW.r])||0),beforeY:(parseFloat(a[aW.t])||0),afterY:(parseFloat(a[aW.b])||0)}},getBorderWidth:function(a){return this.addStyles(a,aW)},getData:function(c){var a=this.dom,b;if(a){b=a._extData;if(!b&&!c){a._extData=b={}}}return b},getFirstChild:function(){return Ext.get(this.dom.firstElementChild)},getHeight:function(c,e){var d=this,b=d.isStyle("display","none"),f,a;if(b){return 0}f=d.dom.offsetHeight;if(Ext.supports.Direct2DBug){a=d.adjustDirect2DDimension(at);if(e){f+=a}else{if(a>0&&a<0.5){f++}}}if(c){f-=d.getBorderWidth("tb")+d.getPadding("tb")}return(f<0)?0:f},getHtml:function(){return this.dom?this.dom.innerHTML:""},getLeft:function(a){return a?this.getLocalX():this.getX()},getLocalX:function(){var a=this,b,c=a.getStyle("left");if(!c||c==="auto"){c=0}else{if(a1.test(c)){c=parseFloat(c)}else{c=a.getX();b=a.dom.offsetParent;if(b){c-=Ext.fly(b).getX()}}}return c},getLocalXY:function(){var b=this,c,d=b.getStyle(["left","top"]),e=d.left,a=d.top;if(!e||e==="auto"){e=0}else{if(a1.test(e)){e=parseFloat(e)}else{e=b.getX();c=b.dom.offsetParent;if(c){e-=Ext.fly(c).getX()}}}if(!a||a==="auto"){a=0}else{if(a1.test(a)){a=parseFloat(a)}else{a=b.getY();c=b.dom.offsetParent;if(c){a-=Ext.fly(c).getY()}}}return[e,a]},getLocalY:function(){var b=this,c,a=b.getStyle("top");if(!a||a==="auto"){a=0}else{if(a1.test(a)){a=parseFloat(a)}else{a=b.getY();c=b.dom.offsetParent;if(c){a-=Ext.fly(c).getY()}}}return a},getMargin:(function(){var a={t:"top",l:"left",r:"right",b:"bottom"},b=["margin-top","margin-left","margin-right","margin-bottom"];return function(f){var d=this,e,g,c;if(!f){e=d.getStyle(b);c={};if(e&&typeof e==="object"){c={};for(g in a6){c[g]=c[a[g]]=parseFloat(e[a6[g]])||0}}}else{c=d.addStyles(f,a6)}return c}})(),getPadding:function(a){return this.addStyles(a,aP)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(a){return(a?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var d=this,a=d.dom,e=aq.documentElement,b,c,f=document.body;if(a===aq||a===f){b=e.scrollLeft||(f?f.scrollLeft:0);c=e.scrollTop||(f?f.scrollTop:0)}else{b=a.scrollLeft;c=a.scrollTop}return{left:b,top:c}},getScrollIntoViewXY:function(m,d,e){var b=this.dom,q=Ext.getDom(m),p=this.getOffsetsTo(q),f=b.offsetWidth,j=b.offsetHeight,r=p[0]+d,l=p[1]+e,n=l+j,k=r+f,h=q.clientHeight,c=q.clientWidth,a=d,g=e,o=g+h,i=a+c;if(j>h||l<g){e=l}else{if(n>o){e=n-h}}if(f>c||r<a){d=r}else{if(k>i){d=k-c}}return{x:d,y:e}},getScrollLeft:function(){var a=this.dom;if(a===aq||a===document.body){return this.getScroll().left}else{return a.scrollLeft}},getScrollTop:function(){var a=this.dom;if(a===aq||a===document.body){return this.getScroll().top}else{return a.scrollTop}},getSize:function(a){return{width:this.getWidth(a),height:this.getHeight(a)}},getStyle:function(b,g){var f=this,k=f.dom,o=typeof b!=="string",a=f.styleHooks,m=b,e=m,h=1,i,p,c,d,l,n,j;if(o){c={};m=e[0];j=0;if(!(h=e.length)){return c}}if(!k||k.documentElement){return c||""}i=k.style;if(g){n=i}else{n=k.ownerDocument.defaultView.getComputedStyle(k,null);if(!n){g=true;n=i}}do{d=a[m];if(!d){a[m]=d={name:a3.normalize(m)}}if(d.get){l=d.get(k,f,g,n)}else{p=d.name;l=n[p]}if(!o){return l}c[m]=l;m=e[++j]}while(j<h);return c},getStyleValue:function(a){return this.dom.style.getPropertyValue(a)},getTop:function(a){return a?this.getLocalY():this.getY()},getValue:function(a){var b=this.dom.value;return a?parseInt(b,10):b},getViewSize:function(){var a=this.dom;if(a===aq||a===aq.body){return{width:a3.getViewportWidth(),height:a3.getViewportHeight()}}else{return{width:a.clientWidth,height:a.clientHeight}}},getVisibilityMode:function(){var c=this,b=c.getData(),a=b.visibilityMode;if(a===undefined){b.visibilityMode=a=a3.DISPLAY}return a},getWidth:function(h,c){var e=this,b=e.dom,d=e.isStyle("display","none"),f,g,a;if(d){return 0}if(Ext.supports.BoundingClientRect){f=b.getBoundingClientRect();g=(e.vertical&&!Ext.supports.RotatedBoundingClientRect)?(f.bottom-f.top):(f.right-f.left);g=c?g:Math.ceil(g)}else{g=b.offsetWidth}if(Ext.supports.Direct2DBug&&!e.vertical){a=e.adjustDirect2DDimension(ba);if(c){g+=a}else{if(a>0&&a<0.5){g++}}}if(h){g-=e.getBorderWidth("lr")+e.getPadding("lr")}return(g<0)?0:g},getX:function(){return this.getXY()[0]},getXY:function(){var e=Math.round,b=this.dom,f=0,a=0,c,g;if(b!==aq&&b!==aq.body){try{c=b.getBoundingClientRect()}catch(d){c={left:0,top:0}}f=e(c.left);a=e(c.top);g=Ext.getDoc().getScroll();f+=g.left;a+=g.top}return[f,a]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle("z-index"),10)},hasCls:function(b){var a=this.getData();if(!a.isSynchronized){this.synchronize()}return a.classMap.hasOwnProperty(b)},hide:function(){this.setVisible(false);return this},insertAfter:function(a){a=Ext.getDom(a);a.parentNode.insertBefore(this.dom,a.nextSibling);return this},insertBefore:function(a){a=Ext.getDom(a);a.parentNode.insertBefore(this.dom,a);return this},insertFirst:function(a,b){a=a||{};if(a.nodeType||a.dom||typeof a==="string"){a=Ext.getDom(a);this.dom.insertBefore(a,this.dom.firstChild);return !b?Ext.get(a):a}else{return this.createChild(a,this.dom.firstChild,b)}},insertHtml:function(c,b,d){var a=Ext.DomHelper.insertHtml(c,this.dom,b);return d?Ext.get(a):a},insertSibling:function(i,f,c){var d=this,b=Ext.DomHelper,a=(f||"before").toLowerCase()==="after",g,j,h,e;if(Ext.isIterable(i)){h=i.length;j=Ext.fly(document.createDocumentFragment());if(Ext.isArray(i)){for(e=0;e<h;e++){g=j.appendChild(i[e],c)}}else{for(e=0;e<h;e++){j.dom.appendChild(g=i[0])}if(c===false){g=Ext.get(g)}}d.dom.parentNode.insertBefore(j.dom,a?d.dom.nextSibling:d.dom);return g}i=i||{};if(i.nodeType||i.dom){g=d.dom.parentNode.insertBefore(Ext.getDom(i),a?d.dom.nextSibling:d.dom);if(!c){g=Ext.get(g)}}else{if(a&&!d.dom.nextSibling){g=b.append(d.dom.parentNode,i,!c)}else{g=b[a?"insertAfter":"insertBefore"](d.dom,i,!c)}}return g},is:function(c){var a=this.dom,b;if(!c){b=true}else{if(!a.tagName){b=false}else{if(Ext.isFunction(c)){b=c(a)}else{b=a[Ext.supports.matchesSelector](c)}}}return b},isAncestor:function(c){var d=false,b=this.dom,a=Ext.getDom(c);if(b&&a){if(b.contains){return b.contains(a)}else{if(b.compareDocumentPosition){return !!(b.compareDocumentPosition(a)&16)}else{while((a=a.parentNode)){d=a===b||d}}}}return d},isPainted:(function(){return !Ext.browser.is.IE?function(){var a=this.dom;return Boolean(a&&a.offsetParent)}:function(){var a=this.dom;return Boolean(a&&(a.offsetHeight!==0&&a.offsetWidth!==0))}})(),isScrollable:function(){var a=this.dom;return a.scrollHeight>a.clientHeight||a.scrollWidth>a.clientWidth},isStyle:function(b,a){return this.getStyle(b)===a},isVisible:function(b){var a=this.dom,c;if(!a){return false}if(!ak){ak=new Ext.dom.Fly()}for(c=a.ownerDocument.documentElement;a!==c;a=a.parentNode){if(!a||a.nodeType===11||(ak.attach(a)).isStyle(a8,aK)||ak.isStyle(bf,an)){return false}if(!b){break}}return true},last:function(b,a){return this.matchNode("previousSibling","lastChild",b,a)},maskIframes:function(){var a=document.getElementsByTagName("iframe");Ext.each(a,function(b){var c=Ext.fly(b.parentNode),d=c.mask();d.setStyle("background-color","transparent")})},matchNode:function(e,a,f,d){var c=this.dom,b;if(!c){return null}b=c[a];while(b){if(b.nodeType===1&&(!f||Ext.fly(b,"_matchNode").is(f))){return !d?Ext.get(b):b}b=b[e]}return null},next:function(b,a){return this.matchNode("nextSibling","nextSibling",b,a)},parent:function(b,a){return this.matchNode("parentNode","parentNode",b,a)},position:function(a,b,e,c){var d=this;if(d.dom.tagName!=="BODY"){if(!a&&d.isStyle(al,aZ)){d.setStyle(al,a0)}else{if(a){d.setStyle(al,a)}}if(b){d.setStyle(a5,b)}if(e||c){d.setXY([e||false,c||false])}}},prev:function(b,a){return this.matchNode("previousSibling","previousSibling",b,a)},query:function(i,a,c){var g=this.dom,e,d,b,j,k,f,h;if(!g){return null}a=(a!==false);i=i.split(",");if(!c){e=[]}for(f=0,d=i.length;f<d;f++){if(typeof i[f]==="string"){if(c){j=g.querySelector(i[f]);return a?j:Ext.get(j)}k=g.querySelectorAll(i[f]);for(h=0,b=k.length;h<b;h++){e.push(a?k[h]:Ext.get(k[h]))}}}return e},radioCls:function(b){var a=this.dom.parentNode.childNodes,d;b=Ext.isArray(b)?b:[b];for(var c=0,e=a.length;c<e;c++){d=a[c];if(d&&d.nodeType===1){Ext.fly(d).removeCls(b)}}return this.addCls(b)},redraw:function(){var a=this.dom,b=a.style;b.display="none";a.offsetHeight;b.display=""},remove:function(){this.destroy()},removeChild:function(a){this.dom.removeChild(Ext.getDom(a));return this},removeCls:function(d,f,b){var c=this,i=c.getData(),a,h,k,j,g,e,l;if(!d){return c}if(!i.isSynchronized){c.synchronize()}h=c.dom;k=i.classMap;j=i.classList;f=f?f+aT:"";b=b?aT+b:"";if(typeof d==="string"){d=d.split(ay)}for(g=0,e=d.length;g<e;g++){l=d[g];if(l){l=f+l+b;if(k[l]){delete k[l];Ext.Array.remove(j,l);a=true}}}if(a){h.className=j.join(" ")}return c},repaint:function(){var a=this;a.addCls("x-repaint");Ext.defer(function(){if(a.dom){Ext.fly(a.dom).removeCls("x-repaint")}},1);return a},replace:function(c,d){c=Ext.getDom(c);var e=c.parentNode,a=c.id,b=this.dom;if(d!==false&&a&&Ext.cache[a]){e.insertBefore(b,c);Ext.get(c).destroy()}else{e.replaceChild(b,c)}return this},replaceCls:function(k,d,f,a){var c=this,h,l,j,g,e,m,i=c.getData(),b;if(!k&&!d){return c}k=k||[];d=d||[];if(!i.isSynchronized){c.synchronize()}if(!a){a=""}h=c.dom;l=i.classMap;j=i.classList;f=f?f+aT:"";a=a?aT+a:"";if(typeof k==="string"){k=k.split(ay)}if(typeof d==="string"){d=d.split(ay)}for(g=0,e=k.length;g<e;g++){m=f+k[g]+a;if(l[m]){delete l[m];b=true}}for(g=0,e=d.length;g<e;g++){m=f+d[g]+a;if(!l[m]){l[m]=true;b=true}}if(b){i.classList=j=Ext.Object.getKeys(l);h.className=j.join(" ")}return c},replaceWith:function(c){var b=this,a=b.dom,d=a.parentNode,f=Ext.cache,e;b.clearListeners();if(c.nodeType||c.dom||typeof c==="string"){c=Ext.get(c);e=d.insertBefore(c.dom,a)}else{e=Ext.DomHelper.insertBefore(a,c)}d.removeChild(a);b.dom=e;if(!b.isFly){delete f[b.id];f[b.id=Ext.id(e)]=b}return b},resolveListenerScope:function(a){var b=this.component;return b?b.resolveListenerScope(a):this},scroll:function(a,i,g){if(!this.isScrollable()){return false}a=a.charAt(0);var b=this,e=b.dom,c=a==="r"||a==="l"?"left":"top",h=false,f,d;if(a==="l"||a==="t"||a==="u"){i=-i}if(c==="left"){f=e.scrollLeft;d=b.constrainScrollLeft(f+i)}else{f=e.scrollTop;d=b.constrainScrollTop(f+i)}if(d!==f){this.scrollTo(c,d,g);h=true}return h},scrollBy:function(d,e,c){var b=this,a=b.dom;if(d.length){c=e;e=d[1];d=d[0]}else{if(typeof d!="number"){c=e;e=d.y;d=d.x}}if(d){b.scrollTo("left",b.constrainScrollLeft(a.scrollLeft+d),c)}if(e){b.scrollTo("top",b.constrainScrollTop(a.scrollTop+e),c)}return b},scrollChildIntoView:function(a,b){Ext.fly(a).scrollIntoView(this,b)},scrollIntoView:function(d,a,b,c){d=Ext.getDom(d)||Ext.getBody().dom;return this.doScrollIntoView(d,a,b,c,"getScrollLeft","scrollTo")},scrollTo:function(f,d,h){var c=bg.test(f),e=this,a=c?"scrollTop":"scrollLeft",b=e.dom,g;if(!h||!e.anim){b[a]=d;b[a]=d}else{g={to:{}};g.to[a]=d;if(Ext.isObject(h)){Ext.applyIf(g,h)}e.animate(g)}return e},select:function(c,a){var d,b;if(typeof c==="string"){b=this.query(c,!a)}else{b=c;d=true}return a?new Ext.CompositeElement(b,!d):new Ext.CompositeElementLite(b,true)},selectNode:function(a,b){return this.query(a,b,true)},set:function(f,e){var c=this,a=c.dom,d,b;for(d in f){if(f.hasOwnProperty(d)){b=f[d];if(d==="style"){c.applyStyles(b)}else{if(d==="cls"){a.className=b}else{if(e!==false){if(b===undefined){a.removeAttribute(d)}else{a.setAttribute(d,b)}}else{a[d]=b}}}}}return c},setBottom:function(a){this.dom.style[aw]=a3.addUnits(a);return this},setCls:function(e){var c=this,f=c.getData(),g,d,h,b,a;if(!f.isSynchronized){c.synchronize()}if(typeof e==="string"){e=e.split(ay)}f.classList=a=e.slice();f.classMap=b={};for(g=0,d=a.length;g<d;g++){b[a[g]]=true}c.dom.className=a.join(" ")},setDisplayed:function(a){var b=this;if(typeof a==="boolean"){a=a?b._getDisplay():an}b.setStyle(bf,a);if(b.shadow||b.shim){b.setUnderlaysVisible(a!==an)}return b},setHeight:function(b){var a=this;a.dom.style[at]=a3.addUnits(b);if(a.shadow||a.shim){a.syncUnderlays()}return a},setHtml:function(a){if(this.dom){this.dom.innerHTML=a}return this},setId:function(a){var b=this,d=b.id,c=Ext.cache;if(d){delete c[d]}b.dom.id=a;b.id=a;c[a]=b;return b},setLeft:function(a){var b=this;b.dom.style[aD]=a3.addUnits(a);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocalX:function(c){var a=this,b=a.dom.style;b.right="auto";b.left=(c===null)?"auto":c+"px";if(a.shadow||a.shim){a.syncUnderlays()}return a},setLocalXY:function(d,a){var b=this,c=b.dom.style;c.right="auto";if(d&&d.length){a=d[1];d=d[0]}if(d===null){c.left="auto"}else{if(d!==undefined){c.left=d+"px"}}if(a===null){c.top="auto"}else{if(a!==undefined){c.top=a+"px"}}if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocalY:function(a){var b=this;b.dom.style.top=(a===null)?"auto":a+"px";if(b.shadow||b.shim){b.syncUnderlays()}return b},setMargin:function(a){var b=this,c=b.dom.style;if(a||a===0){a=b.self.unitizeBox((a===true)?5:a);c.setProperty("margin",a,"important")}else{c.removeProperty("margin-top");c.removeProperty("margin-right");c.removeProperty("margin-bottom");c.removeProperty("margin-left")}},setMaxHeight:function(a){this.dom.style[aL]=a3.addUnits(a);return this},setMaxWidth:function(a){this.dom.style[a2]=a3.addUnits(a);return this},setMinHeight:function(a){this.dom.style[be]=a3.addUnits(a);return this},setMinWidth:function(a){this.dom.style[aN]=a3.addUnits(a);return this},setOpacity:function(b){var a=this;if(a.dom){a.setStyle("opacity",b)}return a},setPadding:function(a){var b=this,c=b.dom.style;if(a||a===0){a=b.self.unitizeBox((a===true)?5:a);c.setProperty("padding",a,"important")}else{c.removeProperty("padding-top");c.removeProperty("padding-right");c.removeProperty("padding-bottom");c.removeProperty("padding-left")}},setRight:function(a){this.dom.style[aE]=a3.addUnits(a);return this},setScrollLeft:function(a){this.dom.scrollLeft=a;return this},setScrollTop:function(a){this.dom.scrollTop=a;return this},setSize:function(b,d){var a=this,c=a.dom.style;if(Ext.isObject(b)){d=b.height;b=b.width}c.width=a3.addUnits(b);c.height=a3.addUnits(d);if(a.shadow||a.shim){a.syncUnderlays()}return a},setSizeState:function(b){var c=this,a,d;if(b===true){a=aO;d=[av,aB]}else{if(b===false){a=av;d=[aO,aB]}else{if(b===null){a=aB;d=[aO,av]}else{d=[aO,av,aB]}}}if(a){c.addCls(a)}c.removeCls(d);return c},setStyle:function(a,c){var e=this,b=e.dom,h=e.styleHooks,f=b.style,g=a,d;if(typeof g==="string"){d=h[g];if(!d){h[g]=d={name:a3.normalize(g)}}c=(c==null)?"":c;if(d.set){d.set(b,c,e)}else{f[d.name]=c}if(d.afterSet){d.afterSet(b,c,e)}}else{for(g in a){if(a.hasOwnProperty(g)){d=h[g];if(!d){h[g]=d={name:a3.normalize(g)}}c=a[g];c=(c==null)?"":c;if(d.set){d.set(b,c,e)}else{f[d.name]=c}if(d.afterSet){d.afterSet(b,c,e)}}}}return e},setText:function(a){this.dom.textContent=a},setTop:function(a){var b=this;b.dom.style[ap]=a3.addUnits(a);if(b.shadow||b.shim){b.syncUnderlays()}return b},setUnderlaysVisible:function(c){var a=this.shadow,b=this.shim;if(a&&!a.disabled){if(c){a.show()}else{a.hide()}}if(b&&!b.disabled){if(c){b.show()}else{b.hide()}}},setVisibility:function(b){var a=this.dom.style;if(b){a.removeProperty("visibility")}else{a.setProperty("visibility","hidden","important")}},setVisibilityMode:function(a){this.getData().visibilityMode=a;return this},setVisible:function(b){var d=this,c=d.getVisibilityMode(),a=b?"removeCls":"addCls";switch(c){case a3.DISPLAY:d.removeCls([aI,a7,bi]);d[a](aM);break;case a3.VISIBILITY:d.removeCls([aM,a7,bi]);d[a](aI);break;case a3.OFFSETS:d.removeCls([aI,aM,bi]);d[a](a7);break;case a3.CLIP:d.removeCls([aI,aM,a7]);d[a](bi);break}if(d.shadow||d.shim){d.setUnderlaysVisible(b)}return d},setWidth:function(b){var a=this;a.dom.style[ba]=a3.addUnits(b);if(a.shadow||a.shim){a.syncUnderlays()}return a},setX:function(a){return this.setXY([a,false])},setXY:function(c){var d=this,b=d.translatePoints(c),e=d.dom.style,a;d.position();e.right="auto";for(a in b){if(!isNaN(b[a])){e[a]=b[a]+"px"}}if(d.shadow||d.shim){d.syncUnderlays()}return d},setY:function(a){return this.setXY([false,a])},setZIndex:function(b){var a=this;if(a.shadow){a.shadow.setZIndex(b)}if(a.shim){a.shim.setZIndex(b)}return a.setStyle("z-index",b)},show:function(){this.setVisible(true);return this},swapCls:function(f,a,g,c){if(g===undefined){g=true}var d=this,b=g?f:a,e=g?a:f;if(e){d.removeCls(c?c+"-"+e:e)}if(b){d.addCls(c?c+"-"+b:b)}return d},synchronize:function(){var b=this,f=b.dom,a={},c=f.className,h,e,d,i,g=b.getData();if(c&&c.length>0){h=f.className.split(aJ);for(e=0,d=h.length;e<d;e++){i=h[e];a[i]=true}}else{h=[]}g.classList=h;g.classMap=a;g.isSynchronized=true;return b},syncUnderlays:function(){var f=this,b=f.shadow,i=f.shim,h=f.dom,a,d,e,c,g;if(f.isVisible()){a=f.getXY();d=a[0];e=a[1];c=h.offsetWidth;g=h.offsetHeight;if(b&&!b.hidden){b.realign(d,e,c,g)}if(i&&!i.hidden){i.realign(d,e,c,g)}}},toggleCls:function(b,a){if(typeof a!=="boolean"){a=!this.hasCls(b)}return a?this.addCls(b):this.removeCls(b)},toggle:function(){this.setVisible(!this.isVisible());return this},translate:function(){var a="webkitTransform" in aq.createElement("div").style?"webkitTransform":"transform";return function(d,b,c){this.dom.style[a]="translate3d("+(d||0)+"px, "+(b||0)+"px, "+(c||0)+"px)"}}(),unmaskIframes:function(){var a=document.getElementsByTagName("iframe");Ext.each(a,function(b){var c=Ext.fly(b.parentNode);c.unmask()})},unwrap:function(){var b=this.dom,g=b.parentNode,e,c=Ext.fly(Ext.Element.getActiveElement()),d,f,a,h;d=Ext.cache[c.id];if(d){c=d}if(this.contains(c)){if(d){d.suspendFocusEvents()}f=true}if(g){e=g.parentNode;if(f){h=e.getAttribute("tabIndex");a=Ext.fly(e);a.set({tabIndex:-1});a.suspendFocusEvents();a.focus()}e.insertBefore(b,g);e.removeChild(g)}else{e=document.createDocumentFragment();e.appendChild(b)}if(f){if(d){d.focus();d.resumeFocusEvents()}else{Ext.fly(c).focus()}if(a){a.resumeFocusEvents();a.set({tabIndex:h})}}return this},up:function(a,c,b){return this.findParentNode(a,c,!b)},update:function(a){return this.setHtml(a)},wrap:function(h,a,e){var b=this,d=b.dom,f=Ext.DomHelper.insertBefore(d,h||{tag:"div"},!a),c=f,i=Ext.Element.getActiveElement(),g,j,k;g=Ext.cache[i.id];if(g){i=g}if(e){c=f.selectNode(e,a)}if(b.contains(i)){if(g){g.suspendFocusEvents()}k=f.dom.getAttribute("tabIndex");f.set({tabIndex:-1});f.suspendFocusEvents();f.focus();j=true}c.appendChild(d);if(j){if(g){g.focus();g.resumeFocusEvents()}else{Ext.fly(i).focus()}f.resumeFocusEvents();f.set({tabIndex:k})}return f},privates:{doAddListener:function(f,c,b,a,j,k,i){var d=this,h,g,e;f=Ext.canonicalEventName(f);if(!d.blockedEvents[f]){h=d.mixins.observable.doAddListener;a=a||{};if(d.longpressEvents[f]){d.disableTouchContextMenu()}if(a3.useDelegatedEvents===false){a.delegated=a.delegated||false}if(a.translate!==false){g=d.additiveEvents[f];if(g){a.type=f;f=g;h.call(d,f,c,b,a,j,k,i)}e=d.eventMap[f];if(e){a.type=a.type||f;f=e}}h.call(d,f,c,b,a,j,k,i);delete a.type}},doRemoveListener:function(h,d,e){var c=this,f,a,b,g;if(!c.blockedEvents[h]){f=c.mixins.observable.doRemoveListener;if(c.longpressEvents[h]){g=this._contextMenuListenerRemover;if(g){g.destroy()}}b=c.additiveEvents[h];if(b){h=b;f.call(c,h,d,e)}a=c.eventMap[h];if(a){f.call(c,a,d,e)}f.call(c,h,d,e)}},_initEvent:function(a){return(this.events[a]=new Ext.dom.ElementEvent(this,a))},_getDisplay:function(){var b=this.getData(),a=b[aX];if(a===undefined){b[aX]=a=""}return a},_getPublisher:function(c){var a=Ext.event.publisher.Publisher,b=a.publishersByEvent[c];if(!b||(this.dom===window&&c==="resize")){b=a.publishers.dom}return b},isFocusSuspended:function(){return !!this.getData().suspendFocusEvents},suspendFocusEvents:function(){if(!this.isFly){this.suspendEvent("focus","blur")}this.getData().suspendFocusEvents=true},resumeFocusEvents:function(){function a(){var b;if(!this.destroyed){b=this.getData();if(b){b.suspendFocusEvents=false}if(!this.isFly){this.resumeEvent("focus","blur")}}}if(!this.destroyed&&this.getData().suspendFocusEvents){if(Ext.isIE){Ext.asap(a,this)}else{a.call(this)}}}},deprecated:{"5.0":{methods:{cssTranslate:null,getHTML:"getHtml",getOuterHeight:null,getOuterWidth:null,getPageBox:function(i){var f=this,h=f.dom,d=h.nodeName==="BODY",c=d?a3.getViewportWidth():h.offsetWidth,g=d?a3.getViewportHeight():h.offsetHeight,a=f.getXY(),b=a[1],k=a[0]+c,e=a[1]+g,j=a[0];if(i){return new Ext.util.Region(b,k,e,j)}else{return{left:j,top:b,width:c,height:g,right:k,bottom:e}}},getScrollParent:null,isDescendent:null,isTransparent:function(a){var b=this.getStyle(a);return b?bh.test(b):false},purgeAllListeners:"clearListeners",removeAllListeners:"clearListeners",setHTML:"setHtml",setTopLeft:null}}}}},1,0,0,0,0,[[Ext.util.Positionable.prototype.mixinId||Ext.util.Positionable.$className,Ext.util.Positionable],[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.dom,"Element",Ext,"Element"],function(U){var ai=document,Y=U.prototype,I=Ext.supports,O="pointerdown",af="pointermove",ah="pointerup",ag="pointercancel",ac="MSPointerDown",X="MSPointerMove",F="MSPointerUp",aj="MSPointerCancel",N="mousedown",G="mousemove",M="mouseup",L="mouseover",Q="mouseout",V="mouseenter",ae="mouseleave",J="touchstart",Z="touchmove",T="touchend",ad="touchcancel",S="click",ab="dblclick",K="tap",R="doubletap",aa=Y.eventMap={},P=Y.additiveEvents={},W=Ext.id,H;Ext.id=function(c,d){var e=Ext.getDom(c,true),b,a;if(!e){a=W(c,d)}else{if(!(a=e.id)){a=W(null,d||U.prototype.identifiablePrefix);if(Ext.isSandboxed){b=Ext.sandboxPrefix||(Ext.sandboxPrefix=Ext.sandboxName.toLowerCase()+"-");a=b+a}e.id=a}}return a};if(I.PointerEvents){aa[N]=O;aa[G]=af;aa[M]=ah;aa[J]=O;aa[Z]=af;aa[T]=ah;aa[ad]=ag;aa[S]=K;aa[ab]=R;aa[L]="pointerover";aa[Q]="pointerout";aa[V]="pointerenter";aa[ae]="pointerleave"}else{if(I.MSPointerEvents){aa[O]=ac;aa[af]=X;aa[ah]=F;aa[ag]=aj;aa[N]=ac;aa[G]=X;aa[M]=F;aa[J]=ac;aa[Z]=X;aa[T]=F;aa[ad]=aj;aa[S]=K;aa[ab]=R;aa[L]="MSPointerOver";aa[Q]="MSPointerOut"}else{if(I.TouchEvents){aa[O]=J;aa[af]=Z;aa[ah]=T;aa[ag]=ad;aa[N]=J;aa[G]=Z;aa[M]=T;aa[S]=K;aa[ab]=R;if(Ext.isWebKit&&Ext.os.is.Desktop){aa[J]=N;aa[Z]=G;aa[T]=M;aa[ad]=M;P[N]=N;P[G]=G;P[M]=M;P[J]=J;P[Z]=Z;P[T]=T;P[ad]=ad;P[O]=N;P[af]=G;P[ah]=M;P[ag]=M}}else{aa[O]=N;aa[af]=G;aa[ah]=M;aa[ag]=M;aa[J]=N;aa[Z]=G;aa[T]=M;aa[ad]=M}}}if(Ext.isWebKit){aa.transitionend=Ext.browser.getVendorProperyName("transitionEnd");aa.animationstart=Ext.browser.getVendorProperyName("animationStart");aa.animationend=Ext.browser.getVendorProperyName("animationEnd")}if(!Ext.supports.MouseWheel&&!Ext.isOpera){aa.mousewheel="DOMMouseScroll"}H=Y.$eventOptions=Ext.Object.chain(Y.$eventOptions);H.translate=H.capture=H.delegate=H.delegated=H.stopEvent=H.preventDefault=H.stopPropagation=H.element=1;Y.styleHooks.opacity={name:"opacity",afterSet:function(b,c,d){var a=d.shadow;if(a){a.setOpacity(c)}}};Y.getTrueXY=Y.getXY;Ext.select=U.select;Ext.query=U.query;Ext.apply(Ext,{get:function(a){return U.get(a)},getDom:function(a){if(!a||!ai){return null}return typeof a==="string"?Ext.getElementById(a):"dom" in a?a.dom:a},getBody:function(){if(!Ext._bodyEl){if(!ai.body){throw new Error("[Ext.getBody] document.body does not yet exist")}Ext._bodyEl=Ext.get(ai.body)}return Ext._bodyEl},getHead:function(){if(!Ext._headEl){Ext._headEl=Ext.get(ai.head||ai.getElementsByTagName("head")[0])}return Ext._headEl},getDoc:function(){if(!Ext._docEl){Ext._docEl=Ext.get(ai)}return Ext._docEl},getWin:function(){if(!Ext._winEl){Ext._winEl=Ext.get(window)}return Ext._winEl},removeNode:function(b){b=b.dom||b;var a=b&&b.id,c=Ext.cache[a],d;if(c){c.destroy()}else{if(b&&(b.nodeType===3||b.tagName.toUpperCase()!=="BODY")){d=b.parentNode;if(d){d.removeChild(b)}}}}});Ext.isGarbage=function(a){return a&&a.nodeType===1&&a.tagName!=="BODY"&&a.tagName!=="HTML"&&(!a.parentNode||(!a.offsetParent&&((Ext.isIE8?ai.all[a.id]:ai.getElementById(a.id))!==a)&&!(Ext.detachedBodyEl&&Ext.detachedBodyEl.isAncestor(a))))};if(Ext.os.is.Android||(Ext.os.is.Windows&&Ext.supports.Touch)){Ext.onReady(function(){var a=Ext.getWin();U._windowWidth=U._viewportWidth=window.innerWidth;U._windowHeight=U._viewportHeight=window.innerHeight;a.on({focusin:"_onWindowFocusChange",focusout:"_onWindowFocusChange",pointerup:"_onWindowFocusChange",capture:true,delegated:false,delay:1,scope:U});a.on({resize:"_onWindowResize",priority:2000,scope:U})})}}));(Ext.cmd.derive("Ext.util.Filter",Ext.Base,{isFilter:true,config:{property:null,value:null,filterFn:null,id:null,anyMatch:false,exactMatch:false,caseSensitive:false,disabled:false,disableOnEmpty:false,operator:null,root:null,serializer:null,convert:null},scope:null,$configStrict:false,statics:{createFilterFn:function(b){if(!b){return Ext.returnTrue}return function(i){var a=b.isCollection?b.items:b,h=a.length,l=true,k,j;for(k=0;l&&k<h;k++){j=a[k];if(!j.getDisabled()){l=j.filter(i)}}return l}},isInvalid:function(b){if(!b.filterFn){if(!b.property){return"A Filter requires either a property or a filterFn to be set"}if(!b.hasOwnProperty("value")&&!b.operator){return"A Filter requires either a property and value, or a filterFn to be set"}}return false}},constructor:function(b){this.initConfig(b)},preventConvert:{"in":1,notin:1},filter:function(f){var g=this,h=g._filterFn||g.getFilterFn(),i=g.getConvert(),j=g._value;g._filterValue=j;g.isDateValue=Ext.isDate(j);if(g.isDateValue){g.dateValue=j.getTime()}if(i&&!g.preventConvert[g.getOperator()]){g._filterValue=i.call(g.scope||g,j)}return h.call(g.scope||g,f)},getId:function(){var b=this._id;if(!b){b=this.getProperty();if(!b){b=Ext.id(null,"ext-filter-")}this._id=b}return b},getFilterFn:function(){var d=this,f=d._filterFn,e;if(!f){e=d.getOperator();if(e){f=d.operatorFns[e]}else{f=d.createRegexFilter()}d._filterFn=f}return f},createRegexFilter:function(){var f=this,h=!!f.getAnyMatch(),g=!!f.getExactMatch(),j=f.getValue(),i=Ext.String.createRegex(j,!h,!h&&g,!f.getCaseSensitive());return function(b){var a=f.getPropertyValue(b);return i?i.test(a):(a==null)}},getPropertyValue:function(d){var e=this._root,f=(e==null)?d:d[e];return f[this._property]},getState:function(){var f=this.getInitialConfig(),e={},d;for(d in f){if(f.hasOwnProperty(d)){e[d]=f[d]}}delete e.root;e.value=this.getValue();return e},getScope:function(){return this.scope},serialize:function(){var d=this.getState(),c=this.getSerializer();delete d.id;delete d.serializer;if(c){c.call(this,d)}return d},updateOperator:function(){this._filterFn=null},updateValue:function(b){this._filterFn=null;if(this.getDisableOnEmpty()){this.setDisabled(Ext.isEmpty(b))}},updateDisableOnEmpty:function(d){var c=false;if(d){c=Ext.isEmpty(this.getValue())}this.setDisabled(c)},privates:{getCandidateValue:function(l,g,j){var k=this,i=k._convert,h=k.getPropertyValue(l);if(i){h=i.call(k.scope||k,h)}else{if(!j){h=Ext.coerce(h,g)}}return h}}},1,0,0,0,0,0,[Ext.util,"Filter"],function(){var d=this.prototype,c=(d.operatorFns={"<":function(a){var b=this._filterValue;return this.getCandidateValue(a,b)<b},"<=":function(a){var b=this._filterValue;return this.getCandidateValue(a,b)<=b},"=":function(b){var a=this,f=a._filterValue;b=a.getCandidateValue(b,f);if(a.isDateValue&&b instanceof Date){b=b.getTime();f=a.dateValue}return b==f},"===":function(b){var a=this,f=a._filterValue;b=a.getCandidateValue(b,f,true);if(a.isDateValue&&b instanceof Date){b=b.getTime();f=a.dateValue}return b===f},">=":function(a){var b=this._filterValue;return this.getCandidateValue(a,b)>=b},">":function(a){var b=this._filterValue;return this.getCandidateValue(a,b)>b},"!=":function(b){var a=this,f=a._filterValue;b=a.getCandidateValue(b,f);if(a.isDateValue&&b instanceof Date){b=b.getTime();f=a.dateValue}return b!=f},"!==":function(b){var a=this,f=a._filterValue;b=a.getCandidateValue(b,f,true);if(a.isDateValue&&b instanceof Date){b=b.getTime();f=a.dateValue}return b!==f},"in":function(a){var b=this._filterValue;return Ext.Array.contains(b,this.getCandidateValue(a,b))},notin:function(a){var b=this._filterValue;return !Ext.Array.contains(b,this.getCandidateValue(a,b))},like:function(a){var b=this._filterValue;return b&&this.getCandidateValue(a,b).toLowerCase().indexOf(b.toLowerCase())>-1}});c["=="]=c["="];c.gt=c[">"];c.ge=c[">="];c.lt=c["<"];c.le=c["<="];c.eq=c["="];c.ne=c["!="]}));(Ext.cmd.derive("Ext.util.Observable",Ext.mixin.Observable,{$applyConfigs:true},0,0,0,0,0,0,[Ext.util,"Observable"],function(d){var c=Ext.mixin.Observable;d.releaseCapture=c.releaseCapture;d.capture=c.capture;d.captureArgs=c.captureArgs;d.observe=d.observeClass=c.observe}));(Ext.cmd.derive("Ext.util.AbstractMixedCollection",Ext.Base,{isMixedCollection:true,generation:0,indexGeneration:0,constructor:function(d,e){var f=this;if(arguments.length===1&&Ext.isObject(d)){f.initialConfig=d;Ext.apply(f,d)}else{f.allowFunctions=d===true;if(e){f.getKey=e}f.initialConfig={allowFunctions:f.allowFunctions,getKey:f.getKey}}f.items=[];f.map={};f.keys=[];f.indexMap={};f.length=0;f.mixins.observable.constructor.call(f)},destroy:function(){var b=this;b.items=b.map=b.keys=b.indexMap=null;b.callParent()},allowFunctions:false,add:function(h,g){var f=this.length,e;if(arguments.length===1){e=this.insert(f,h)}else{e=this.insert(f,h,g)}return e},getKey:function(b){return b.id},replace:function(j,h){var i=this,g,f;if(arguments.length==1){h=arguments[0];j=i.getKey(h)}g=i.map[j];if(typeof j=="undefined"||j===null||typeof g=="undefined"){return i.add(j,h)}i.generation++;f=i.indexOfKey(j);i.items[f]=h;i.map[j]=h;if(i.hasListeners.replace){i.fireEvent("replace",j,g,h)}return h},reorder:function(o){var l=this,i=l.items,p=0,m=i.length,j=[],n=[],k;l.suspendEvents();for(k in o){j[o[k]]=i[k]}for(p=0;p<m;p++){if(o[p]==undefined){n.push(i[p])}}for(p=0;p<m;p++){if(j[p]==undefined){j[p]=n.shift()}}l.clear();l.addAll(j);l.resumeEvents()},updateKey:function(k,j){var m=this,l=m.map,i=m.indexOfKey(k),n=m.indexMap,h;if(i>-1){h=l[k];delete l[k];delete n[k];l[j]=h;n[j]=i;m.keys[i]=j;m.indexGeneration=++m.generation}},addAll:function(f){var d=this,e;if(arguments.length>1||Ext.isArray(f)){d.insert(d.length,arguments.length>1?arguments:f)}else{for(e in f){if(f.hasOwnProperty(e)){if(d.allowFunctions||typeof f[e]!="function"){d.add(e,f[e])}}}}},each:function(j,k){var g=Ext.Array.push([],this.items),l=0,h=g.length,i;for(;l<h;l++){i=g[l];if(j.call(k||i,i,l,h)===false){break}}},eachKey:function(j,k){var i=this.keys,g=this.items,l=0,h=i.length;for(;l<h;l++){j.call(k||window,i[l],g[l],l,h)}},findBy:function(j,k){var i=this.keys,g=this.items,l=0,h=g.length;for(;l<h;l++){if(j.call(k||window,g[l],i[l])){return g[l]}}return null},insert:function(e,h,g){var f;if(Ext.isIterable(h)){f=this.doInsert(e,h,g)}else{if(arguments.length>2){f=this.doInsert(e,[h],[g])}else{f=this.doInsert(e,[h])}f=f[0]}return f},doInsert:function(w,r,s){var u=this,C,B,y,v=r.length,D=v,z=u.hasListeners.add,A,x={},t,i,q;if(s!=null){u.useLinearSearch=true}else{s=r;r=new Array(v);for(y=0;y<v;y++){r[y]=this.getKey(s[y])}}u.suspendEvents();for(y=0;y<v;y++){C=r[y];B=u.indexOfKey(C);if(B!==-1){if(B<w){w--}u.removeAt(B)}if(C!=null){if(x[C]!=null){t=true;D--}x[C]=y}}u.resumeEvents();if(t){i=r;q=s;r=new Array(D);s=new Array(D);y=0;for(C in x){r[y]=i[x[C]];s[y]=q[x[C]];y++}v=D}A=w===u.length&&u.indexGeneration===u.generation;Ext.Array.insert(u.items,w,s);Ext.Array.insert(u.keys,w,r);u.length+=v;u.generation++;if(A){u.indexGeneration=u.generation}for(y=0;y<v;y++,w++){C=r[y];if(C!=null){u.map[C]=s[y];if(A){u.indexMap[C]=w}}if(z){u.fireEvent("add",w,s[y],C)}}return s},remove:function(g){var h=this,e,f;if(!h.useLinearSearch&&(e=h.getKey(g))){f=h.indexOfKey(e)}else{f=Ext.Array.indexOf(h.items,g)}return(f===-1)?false:h.removeAt(f)},removeAll:function(e){var f=this,d;if(e||f.hasListeners.remove){if(e){for(d=e.length-1;d>=0;--d){f.remove(e[d])}}else{while(f.length){f.removeAt(0)}}}else{f.length=f.items.length=f.keys.length=0;f.map={};f.indexMap={};f.generation++;f.indexGeneration=f.generation}},removeAt:function(f){var h=this,g,e;if(f<h.length&&f>=0){h.length--;g=h.items[f];Ext.Array.erase(h.items,f,1);e=h.keys[f];if(typeof e!="undefined"){delete h.map[e]}Ext.Array.erase(h.keys,f,1);if(h.hasListeners.remove){h.fireEvent("remove",g,e)}h.generation++;return g}return false},removeRange:function(l,r){var k=this,q,i,m,n,p,o;if(l<k.length&&l>=0){if(!r){r=1}n=Math.min(l+r,k.length);r=n-l;o=n===k.length;p=o&&k.indexGeneration===k.generation;for(m=l;m<n;m++){i=k.keys[m];if(i!=null){delete k.map[i];if(p){delete k.indexMap[i]}}}q=k.items[m-1];k.length-=r;k.generation++;if(p){k.indexGeneration=k.generation}if(o){k.items.length=k.keys.length=k.length}else{k.items.splice(l,r);k.keys.splice(l,r)}return q}return false},removeAtKey:function(e){var g=this,h=g.keys,f;if(e==null){for(f=h.length-1;f>=0;f--){if(h[f]==null){g.removeAt(f)}}}else{return g.removeAt(g.indexOfKey(e))}},getCount:function(){return this.length},indexOf:function(f){var d=this,e;if(f!=null){if(!d.useLinearSearch&&(e=d.getKey(f))){return this.indexOfKey(e)}return Ext.Array.indexOf(d.items,f)}return -1},indexOfKey:function(b){if(!this.map.hasOwnProperty(b)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[b]},rebuildIndexMap:function(){var h=this,i=h.indexMap={},j=h.keys,g=j.length,f;for(f=0;f<g;f++){i[j[f]]=f}h.indexGeneration=h.generation},get:function(e){var g=this,f=g.map[e],h=f!==undefined?f:(typeof e=="number")?g.items[e]:undefined;return typeof h!="function"||g.allowFunctions?h:null},getAt:function(b){return this.items[b]},getByKey:function(b){return this.map[b]},contains:function(f){var d=this,e;if(f!=null){if(!d.useLinearSearch&&(e=d.getKey(f))){return this.map[e]!=null}return Ext.Array.indexOf(this.items,f)!==-1}return false},containsKey:function(b){return this.map.hasOwnProperty(b)},clear:function(){var b=this;if(b.generation){b.length=0;b.items=[];b.keys=[];b.map={};b.indexMap={};b.generation++;b.indexGeneration=b.generation}if(b.hasListeners.clear){b.fireEvent("clear")}},first:function(){return this.items[0]},last:function(){return this.items[this.length-1]},sum:function(l,i,k,j){var p=this.extractValues(l,i),m=p.length,n=0,o;k=k||0;j=(j||j===0)?j:m-1;for(o=k;o<=j;o++){n+=p[o]}return n},collect:function(l,p,n){var i=this.extractValues(l,p),t=i.length,s={},r=[],m,o,q;for(q=0;q<t;q++){m=i[q];o=String(m);if((n||!Ext.isEmpty(m))&&!s[o]){s[o]=true;r.push(m)}}return r},extractValues:function(f,e){var d=this.items;if(e){d=Ext.Array.pluck(d,e)}return Ext.Array.pluck(d,f)},hasRange:function(c,d){return(d<this.length)},getRange:function(k,i){var l=this,o=l.items,p=[],j=o.length,m,n;if(j<1){return p}if(k>i){n=true;m=k;k=i;i=m}if(k<0){k=0}if(i==null||i>=j){i=j-1}p=o.slice(k,i+1);if(n&&p.length){p.reverse()}return p},filter:function(i,j,h,g){var f=[];if(Ext.isString(i)){f.push(new Ext.util.Filter({property:i,value:j,anyMatch:h,caseSensitive:g}))}else{if(Ext.isArray(i)||i instanceof Ext.util.Filter){f=f.concat(i)}}return this.filterBy(Ext.util.Filter.createFilterFn(f))},filterBy:function(n,o){var k=this,j=new k.self(k.initialConfig),l=k.keys,i=k.items,m=i.length,p;j.getKey=k.getKey;for(p=0;p<m;p++){if(n.call(o||k,i[p],l[p])){j.add(l[p],i[p])}}j.useLinearSearch=k.useLinearSearch;return j},findIndex:function(j,f,h,i,g){if(Ext.isEmpty(f,false)){return -1}f=this.createValueMatcher(f,i,g);return this.findIndexBy(function(a){return a&&f.test(a[j])},null,h)},findIndexBy:function(n,o,k){var l=this,m=l.keys,i=l.items,p=k||0,j=i.length;for(;p<j;p++){if(n.call(o||l,i[p],m[p])){return p}}return -1},createValueMatcher:function(j,h,g,f){if(!j.exec){var i=Ext.String.escapeRegex;j=String(j);if(h===true){j=i(j)}else{j="^"+i(j);if(f===true){j+="$"}}j=new RegExp(j,g?"":"i")}return j},clone:function(){var d=this,c=new d.self(d.initialConfig);c.add(d.keys,d.items);c.useLinearSearch=d.useLinearSearch;return c}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.util,"AbstractMixedCollection"],0));(Ext.cmd.derive("Ext.util.Sorter",Ext.Base,{isSorter:true,config:{property:null,sorterFn:null,root:null,transform:null,direction:"ASC",id:undefined},statics:{createComparator:function(c,d){d=d||0;return function(l,a){var j=c.isCollection?c.items:c,b=j.length,k,i;for(i=0;i<b;++i){k=j[i].sort(l,a);if(k){return k}}return d&&d(l,a)}}},multiplier:1,constructor:function(b){this.initConfig(b)},getId:function(){var b=this._id;if(!b){b=this.getProperty();if(!b){b=Ext.id(null,"ext-sorter-")}this._id=b}return b},sort:function(d,c){return this.multiplier*this.sortFn(d,c)},sortFn:function(o,p){var m=this,n=m._transform,i=m._root,l=m._property,j,k;if(i){o=o[i];p=p[i]}j=o[l];k=p[l];if(n){j=n(j);k=n(k)}return(j>k)?1:(j<k?-1:0)},applyDirection:function(b){return b?b:"ASC"},updateDirection:function(b){this.multiplier=(b.toUpperCase()==="DESC")?-1:1},updateProperty:function(b){if(b){delete this.sortFn}},updateSorterFn:function(b){this.sortFn=b},toggle:function(){this.setDirection(Ext.String.toggle(this.getDirection(),"ASC","DESC"))},getState:function(){var c=this,d={root:c.getRoot(),property:c.getProperty(),direction:c.getDirection()};if(c._id){d.id=c._id}return d},serialize:function(){return{property:this.getProperty(),direction:this.getDirection()}}},1,0,0,0,0,0,[Ext.util,"Sorter"],0));(Ext.cmd.derive("Ext.util.Sortable",Ext.Base,{isSortable:true,$configPrefixed:false,$configStrict:false,config:{sorters:null},defaultSortDirection:"ASC",multiSortLimit:3,statics:{createComparator:function(b){return b&&b.length?function(i,j){var a=b[0].sort(i,j),g=b.length,h=1;for(;!a&&h<g;h++){a=b[h].sort.call(b[h],i,j)}return a}:function(){return 0}}},applySorters:function(f){var d=this,e=d.getSorters()||new Ext.util.MixedCollection(false,Ext.returnId);if(f){e.addAll(d.decodeSorters(f))}return e},sort:function(l,m,j,n){var i=this,k,o,p=i.getSorters();if(!p){i.setSorters(null);p=i.getSorters()}if(Ext.isArray(l)){n=j;j=m}else{if(Ext.isObject(l)){l=[l];n=j;j=m}else{if(Ext.isString(l)){k=p.get(l);if(!k){k={property:l,direction:m}}else{if(m==null){k.toggle()}else{k.setDirection(m)}}l=[k]}}}if(l&&l.length){l=i.decodeSorters(l);switch(j){case"multi":p.insert(0,l[0]);o=p.getCount()-i.multiSortLimit;if(o>0){p.removeRange(i.multiSortLimit,o)}break;case"prepend":p.insert(0,l);break;case"append":p.addAll(l);break;case undefined:case null:case"replace":p.clear();p.addAll(l);break;default:}}if(n!==false){i.fireEvent("beforesort",i,l);i.onBeforeSort(l);if(i.getSorterCount()){i.doSort(i.generateComparator())}}return l},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var b=this.getSorters().getRange();return b.length?this.createComparator(b):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(k){if(!Ext.isArray(k)){if(k===undefined){k=[]}else{k=[k]}}var m=k.length,j=Ext.util.Sorter,h=this.getModel?this.getModel():this.model,l,i,n;for(n=0;n<m;n++){i=k[n];if(!(i instanceof j)){if(Ext.isString(i)){i={property:i}}Ext.applyIf(i,{root:this.sortRoot,direction:"ASC"});if(i.fn){i.sorterFn=i.fn}if(typeof i=="function"){i={sorterFn:i}}if(h&&!i.transform){l=h.getField(i.property);i.transform=l&&l.sortType!==Ext.identityFn?l.sortType:undefined}k[n]=new Ext.util.Sorter(i)}}return k},getFirstSorter:function(){var h=this.getSorters().items,f=h.length,e=0,g;for(;e<f;++e){g=h[e];if(!g.isGrouper){return g}}return null}},0,0,0,0,0,0,[Ext.util,"Sortable"],function(){this.prototype.createComparator=this.createComparator}));(Ext.cmd.derive("Ext.util.MixedCollection",Ext.util.AbstractMixedCollection,{constructor:function(){this.initConfig();Ext.util.AbstractMixedCollection.prototype.constructor.apply(this,arguments)},doSort:function(b){this.sortBy(b)},_sort:function(i,u,n){var o=this,s,r,t=String(u).toUpperCase()=="DESC"?-1:1,p=[],c=o.keys,q=o.items,v;n=n||function(a,b){return a-b};for(s=0,r=q.length;s<r;s++){p[p.length]={key:c[s],value:q[s],index:s}}Ext.Array.sort(p,function(a,b){return n(a[i],b[i])*t||(a.index<b.index?-1:1)});for(s=0,r=p.length;s<r;s++){v=p[s];q[s]=v.value;c[s]=v.key;o.indexMap[v.key]=s}o.generation++;o.indexGeneration=o.generation;o.fireEvent("sort",o)},sortBy:function(i){var k=this,j=k.items,l,m=k.keys,o,n=j.length,p;for(p=0;p<n;p++){j[p].$extCollectionIndex=p}Ext.Array.sort(j,function(a,b){return i(a,b)||(a.$extCollectionIndex<b.$extCollectionIndex?-1:1)});for(p=0;p<n;p++){l=j[p];o=k.getKey(l);m[p]=o;k.indexMap[o]=p;delete j.$extCollectionIndex}k.generation++;k.indexGeneration=k.generation;k.fireEvent("sort",k,j,m)},findInsertionIndex:function(n,o){var m=this,i=m.items,k=0,j=i.length-1,p,l;if(!o){o=m.generateComparator()}while(k<=j){p=(k+j)>>1;l=o(n,i[p]);if(l>=0){k=p+1}else{if(l<0){j=p-1}}}return k},reorder:function(b){Ext.util.AbstractMixedCollection.prototype.reorder.call(this,b);this.fireEvent("sort",this)},sortByKey:function(d,c){this._sort("key",d,c||function(g,h){var a=String(g).toUpperCase(),b=String(h).toUpperCase();return a>b?1:(a<b?-1:0)})}},1,0,0,0,0,[["sortable",Ext.util.Sortable]],[Ext.util,"MixedCollection"],0));(Ext.cmd.derive("Ext.util.TaskRunner",Ext.Base,{interval:10,timerId:null,constructor:function(d){var c=this;if(typeof d=="number"){c.interval=d}else{if(d){Ext.apply(c,d)}}c.tasks=[];c.timerFn=Ext.Function.bind(c.onTick,c)},newTask:function(c){var d=new Ext.util.TaskRunner.Task(c);d.manager=this;return d},start:function(e){var f=this,d=Ext.Date.now();if(!e.pending){f.tasks.push(e);e.pending=true}e.stopped=false;e.taskStartTime=d;e.taskRunTime=e.fireOnStart!==false?0:e.taskStartTime;e.taskRunCount=0;if(!f.firing){if(e.fireOnStart!==false){f.startTimer(0,d)}else{f.startTimer(e.interval,d)}}return e},stop:function(b){if(!b.stopped){b.stopped=true;if(b.onStop){b.onStop.call(b.scope||b,b)}}return b},stopAll:function(){Ext.each(this.tasks,this.stop,this)},firing:false,nextExpires:1e+99,onTick:function(){var s=this,y=s.tasks,D=Ext.Date.now(),r=1e+99,u=y.length,A=Ext.GlobalEvents,B,q,w,C,z,x,i;s.timerId=null;s.firing=true;for(w=0;w<u||w<(u=y.length);++w){C=y[w];if(!(x=C.stopped)){B=C.taskRunTime+C.interval;if(B<=D){z=1;if(C.hasOwnProperty("fireIdleEvent")){i=C.fireIdleEvent}else{i=s.fireIdleEvent}try{z=C.run.apply(C.scope||C,C.args||[++C.taskRunCount])}catch(v){try{if(C.onError){z=C.onError.call(C.scope||C,C,v)}}catch(t){}}C.taskRunTime=D;if(z===false||C.taskRunCount===C.repeat){s.stop(C);x=true}else{x=C.stopped;B=D+C.interval}}if(!x&&C.duration&&C.duration<=(D-C.taskStartTime)){s.stop(C);x=true}}if(x){C.pending=false;if(!q){q=y.slice(0,w)}}else{if(q){q.push(C)}if(r>B){r=B}}}if(q){s.tasks=q}s.firing=false;if(s.tasks.length){s.startTimer(r-D,Ext.Date.now())}if(i!==false&&A.hasListeners.idle){A.fireEvent("idle")}},startTimer:function(h,j){var i=this,f=j+h,g=i.timerId;if(g&&i.nextExpires-f>i.interval){clearTimeout(g);g=null}if(!g){if(h<i.interval){h=i.interval}i.timerId=Ext.defer(i.timerFn,h);i.nextExpires=f}}},1,0,0,0,0,0,[Ext.util,"TaskRunner"],function(){var c=this,d=c.prototype;d.destroy=d.stopAll;c.Task=new Ext.Class({isTask:true,stopped:true,fireOnStart:false,constructor:function(a){Ext.apply(this,a)},restart:function(a){if(a!==undefined){this.interval=a}this.manager.start(this)},start:function(a){if(this.stopped){this.restart(a)}},stop:function(){this.manager.stop(this)}});d=c.Task.prototype;d.destroy=d.stop}));(Ext.cmd.derive("Ext.fx.target.Target",Ext.Base,{isAnimTarget:true,constructor:function(b){this.target=b;this.id=this.getId()},getId:function(){return this.target.id},remove:function(){Ext.destroy(this.target)}},1,0,0,0,0,0,[Ext.fx.target,"Target"],0));(Ext.cmd.derive("Ext.fx.target.Element",Ext.fx.target.Target,{type:"element",getElVal:function(d,e,f){if(f===undefined){if(e==="x"){f=d.getX()}else{if(e==="y"){f=d.getY()}else{if(e==="scrollTop"){f=d.getScroll().top}else{if(e==="scrollLeft"){f=d.getScroll().left}else{if(e==="height"){f=d.getHeight()}else{if(e==="width"){f=d.getWidth()}else{f=d.getStyle(e)}}}}}}}return f},getAttr:function(e,f){var d=this.target;return[[d,this.getElVal(d,e,f)]]},setAttr:function(k){var m=k.length,o,j,l,n,p,i;for(n=0;n<m;n++){o=k[n].attrs;for(j in o){if(o.hasOwnProperty(j)){i=o[j].length;for(p=0;p<i;p++){l=o[j][p];this.setElVal(l[0],j,l[1])}}}}},setElVal:function(d,e,f){if(e==="x"){d.setX(f)}else{if(e==="y"){d.setY(f)}else{if(e==="scrollTop"){d.scrollTo("top",f)}else{if(e==="scrollLeft"){d.scrollTo("left",f)}else{if(e==="width"){d.setWidth(f)}else{if(e==="height"){d.setHeight(f)}else{d.setStyle(e,f)}}}}}}}},0,0,0,0,0,0,[Ext.fx.target,"Element"],0));(Ext.cmd.derive("Ext.fx.target.ElementCSS",Ext.fx.target.Element,{setAttr:function(s,z){var i={attrs:[],duration:[],easing:[]},u=s.length,t=function(){this.setStyle(Ext.supports.CSS3Prefix+"TransitionProperty",null);this.setStyle(Ext.supports.CSS3Prefix+"TransitionDuration",null);this.setStyle(Ext.supports.CSS3Prefix+"TransitionTimingFunction",null)},o={single:true},y,j,w,v,B,C,x,A,D;for(x=0;x<u;x++){j=s[x];B=j.duration;v=j.easing;j=j.attrs;for(w in j){if(Ext.Array.indexOf(i.attrs,w)==-1){i.attrs.push(w.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));i.duration.push(B+"ms");i.easing.push(v)}}}y=i.attrs.join(",");B=i.duration.join(",");v=i.easing.join(", ");for(x=0;x<u;x++){j=s[x].attrs;for(w in j){D=j[w].length;for(A=0;A<D;A++){C=j[w][A];C[0].setStyle(Ext.supports.CSS3Prefix+"TransitionProperty",z?"":y);C[0].setStyle(Ext.supports.CSS3Prefix+"TransitionDuration",z?"":B);C[0].setStyle(Ext.supports.CSS3Prefix+"TransitionTimingFunction",z?"":v);C[0].setStyle(w,C[1]);if(z){C=C[0].dom.offsetWidth}else{C[0].on(Ext.supports.CSS3TransitionEnd,t,C[0],o)}}}}}},0,0,0,0,0,0,[Ext.fx.target,"ElementCSS"],0));(Ext.cmd.derive("Ext.fx.target.CompositeElement",Ext.fx.target.Element,{isComposite:true,constructor:function(b){b.id=b.id||Ext.id(null,"ext-composite-");Ext.fx.target.Element.prototype.constructor.call(this,b)},getAttr:function(j,k){var i=[],l=this.target,m=l.elements,n=m.length,p,o;for(p=0;p<n;p++){o=m[p];if(o){o=l.getElement(o);i.push([o,this.getElVal(o,j,k)])}}return i},setAttr:function(q){var s=this.target,r=q.length,y=s.elements,i=y.length,k,w,j,t,x,u,v,z;for(u=0;u<r;u++){j=q[u].attrs;for(t in j){if(j.hasOwnProperty(t)){z=j[t].length;for(v=0;v<z;v++){k=j[t][v][1];for(w=0;w<i;++w){x=y[w];if(x){x=s.getElement(x);this.setElVal(x,t,k)}}}}}}},remove:function(){this.target.destroy()}},1,0,0,0,0,0,[Ext.fx.target,"CompositeElement"],0));(Ext.cmd.derive("Ext.fx.target.CompositeElementCSS",Ext.fx.target.CompositeElement,{setAttr:function(){return Ext.fx.target.ElementCSS.prototype.setAttr.apply(this,arguments)}},0,0,0,0,0,0,[Ext.fx.target,"CompositeElementCSS"],0));(Ext.cmd.derive("Ext.fx.target.Sprite",Ext.fx.target.Target,{type:"draw",getFromPrim:function(d,e){var f;switch(e){case"rotate":case"rotation":f=d.attr.rotation;return{x:f.x||0,y:f.y||0,degrees:f.degrees||0};case"scale":case"scaling":f=d.attr.scaling;return{x:f.x||1,y:f.y||1,cx:f.cx||0,cy:f.cy||0};case"translate":case"translation":f=d.attr.translation;return{x:f.x||0,y:f.y||0};default:return d.attr[e]}},getAttr:function(d,c){return[[this.target,c!==undefined?c:this.getFromPrim(this.target,d)]]},setAttr:function(u){var y=u.length,w=[],C,z,r,i,j,s,t,A,B,v,x,D;for(A=0;A<y;A++){C=u[A].attrs;for(z in C){r=C[z];D=r.length;for(B=0;B<D;B++){j=r[B][0];i=r[B][1];if(z==="translate"||z==="translation"){t={x:i.x,y:i.y}}else{if(z==="rotate"||z==="rotation"){v=i.x;if(isNaN(v)){v=null}x=i.y;if(isNaN(x)){x=null}t={degrees:i.degrees,x:v,y:x}}else{if(z==="scale"||z==="scaling"){v=i.x;if(isNaN(v)){v=null}x=i.y;if(isNaN(x)){x=null}t={x:v,y:x,cx:i.cx,cy:i.cy}}else{if(z==="width"||z==="height"||z==="x"||z==="y"){t=parseFloat(i)}else{t=i}}}}s=Ext.Array.indexOf(w,j);if(s===-1){w.push([j,{}]);s=w.length-1}w[s][1][z]=t}}}y=w.length;for(A=0;A<y;A++){w[A][0].setAttributes(w[A][1])}this.target.redraw()}},0,0,0,0,0,0,[Ext.fx.target,"Sprite"],0));(Ext.cmd.derive("Ext.fx.target.CompositeSprite",Ext.fx.target.Sprite,{getAttr:function(i,j){var h=[],k=[].concat(this.target.items),l=k.length,m,n;for(m=0;m<l;m++){n=k[m];h.push([n,j!==undefined?j:this.getFromPrim(n,i)])}return h}},0,0,0,0,0,0,[Ext.fx.target,"CompositeSprite"],0));(Ext.cmd.derive("Ext.fx.target.Component",Ext.fx.target.Target,{type:"component",getPropMethod:{top:function(){return this.getPosition(true)[1]},left:function(){return this.getPosition(true)[0]},x:function(){return this.getPosition()[0]},y:function(){return this.getPosition()[1]},height:function(){return this.getHeight()},width:function(){return this.getWidth()},opacity:function(){return this.el.getStyle("opacity")}},setMethods:{top:"setPosition",left:"setPosition",x:"setPagePosition",y:"setPagePosition",height:"setSize",width:"setSize",opacity:"setOpacity"},getAttr:function(d,c){return[[this.target,c!==undefined?c:this.getPropMethod[d].call(this.target)]]},setAttr:function(h,z,D){var j=this,o=h.length,F,v,C,y,A,w,B,i,G,x,E={},H;for(y=0;y<o;y++){F=h[y].attrs;for(v in F){w=F[v].length;for(A=0;A<w;A++){C=F[v][A];H=E[j.setMethods[v]]||(E[j.setMethods[v]]={});H.target=C[0];H[v]=C[1]}}if(E.setPosition){C=E.setPosition;B=(C.left===undefined)?undefined:parseFloat(C.left);i=(C.top===undefined)?undefined:parseFloat(C.top);C.target.setPosition(B,i)}if(E.setPagePosition){C=E.setPagePosition;C.target.setPagePosition(C.x,C.y)}if(E.setSize){C=E.setSize;G=(C.width===undefined)?C.target.getWidth():parseFloat(C.width);x=(C.height===undefined)?C.target.getHeight():parseFloat(C.height);C.target.el.setSize(G,x);if(D||j.dynamic){Ext.GlobalEvents.on({idle:Ext.Function.bind(C.target.setSize,C.target,[G,x]),single:true})}}if(E.setOpacity){C=E.setOpacity;C.target.el.setStyle("opacity",C.opacity)}}}},0,0,0,0,0,0,[Ext.fx.target,"Component"],0));(Ext.cmd.derive("Ext.fx.Queue",Ext.Base,{constructor:function(){this.targets=new Ext.util.HashMap();this.fxQueue={}},getFxDefaults:function(d){var c=this.targets.get(d);if(c){return c.fxDefaults}return{}},setFxDefaults:function(e,f){var d=this.targets.get(e);if(d){d.fxDefaults=Ext.apply(d.fxDefaults||{},f)}},stopAnimation:function(f){var h=this,g=h.getFxQueue(f),i=g.length,j;while(i){j=g[i-1];if(j){j.end()}i--}},getActiveAnimation:function(c){var d=this.getFxQueue(c);return(d&&!!d.length)?d[0]:false},hasFxBlock:function(c){var d=this.getFxQueue(c);return d&&d[0]&&d[0].block},getFxQueue:function(e){if(!e){return false}var h=this,f=h.fxQueue[e],g=h.targets.get(e);if(!g){return false}if(!f){h.fxQueue[e]=[];if(g.type!=="element"){g.target.on("destroy",function(){h.fxQueue[e]=[]})}}return h.fxQueue[e]},queueFx:function(i){var j=this,h=i.target,g,f;if(!h){return}g=j.getFxQueue(h.getId());f=g.length;if(f){if(i.concurrent){i.paused=false}else{g[f-1].on("afteranimate",function(){i.paused=false})}}else{i.paused=false}i.on("afteranimate",function(){Ext.Array.remove(g,i);if(g.length===0){j.targets.remove(i.target)}if(i.remove){if(h.type==="element"){var a=Ext.get(h.id);if(a){a.destroy()}}}},j,{single:true});g.push(i)}},1,0,0,0,0,0,[Ext.fx,"Queue"],0));(Ext.cmd.derive("Ext.fx.Manager",Ext.Base,{singleton:true,constructor:function(){var b=this;b.items=new Ext.util.MixedCollection();b.targetArr={};b.mixins.queue.constructor.call(b);b.taskRunner=new Ext.util.TaskRunner()},interval:16,forceJS:true,createTarget:function(g){var e=this,h=!e.forceJS&&Ext.supports.Transitions,f;e.useCSS3=h;if(g){if(g.tagName||Ext.isString(g)||g.isFly){g=Ext.get(g);f=new Ext.fx.target["Element"+(h?"CSS":"")](g)}else{if(g.dom){f=new Ext.fx.target["Element"+(h?"CSS":"")](g)}else{if(g.isComposite){f=new Ext.fx.target["CompositeElement"+(h?"CSS":"")](g)}else{if(g.isSprite){f=new Ext.fx.target.Sprite(g)}else{if(g.isCompositeSprite){f=new Ext.fx.target.CompositeSprite(g)}else{if(g.isComponent){f=new Ext.fx.target.Component(g)}else{if(g.isAnimTarget){return g}else{return null}}}}}}}e.targets.add(f);return f}else{return null}},addAnim:function(g){var h=this,e=h.items,f=h.task;e.add(g.id,g);if(!f&&e.length){f=h.task={run:h.runner,interval:h.interval,scope:h};h.taskRunner.start(f)}},removeAnim:function(g){var h=this,e=h.items,f=h.task;e.removeAtKey(g.id);if(f&&!e.length){h.taskRunner.stop(f);delete h.task}},runner:function(){var i=this,f=i.items.getRange(),j=0,g=f.length,h;i.targetArr={};i.timestamp=new Date();for(;j<g;j++){h=f[j];if(h.isReady()){i.startAnim(h)}}for(j=0;j<g;j++){h=f[j];if(h.isRunning()){i.runAnim(h)}}i.applyPendingAttrs();i.targetArr=null},startAnim:function(b){b.start(this.timestamp)},runAnim:function(n,j){if(!n){return}var o=this,l=o.useCSS3&&n.target.type==="element",i=o.timestamp-n.startTime,p=(i>=n.duration),m,k;if(j){i=n.duration;p=true}m=this.collectTargetData(n,i,l,p);if(l){n.target.setAttr(m.anims[n.id].attributes,true);o.collectTargetData(n,n.duration,l,p);n.paused=true;m=n.target.target;if(n.target.isComposite){m=n.target.target.last()}k={};k[Ext.supports.CSS3TransitionEnd]=n.lastFrame;k.scope=n;k.single=true;m.on(k)}return m},jumpToEnd:function(h){var e=this,g,f;if(!e.targetArr){e.targetArr={};f=true}g=e.runAnim(h,true);e.applyAnimAttrs(g,g.anims[h.id]);if(f){e.targetArr=null}},collectTargetData:function(l,h,j,i){var g=l.target.getId(),k=this.targetArr[g];if(!k){k=this.targetArr[g]={id:g,el:l.target,anims:{}}}k.anims[l.id]={id:l.id,anim:l,elapsed:h,isLastFrame:i,attributes:[{duration:l.duration,easing:(j&&l.reverse)?l.easingFn.reverse().toCSS3():l.easing,attrs:l.runAnim(h)}]};return k},applyAnimAttrs:function(f,e){var d=e.anim;if(e.attributes&&d.isRunning()){f.el.setAttr(e.attributes,false,e.isLastFrame);if(e.isLastFrame){d.lastFrame()}}},applyPendingAttrs:function(){var j=this.targetArr,i,l,g,k,h;for(l in j){if(j.hasOwnProperty(l)){i=j[l];for(h in i.anims){if(i.anims.hasOwnProperty(h)){g=i.anims[h];k=g.anim;if(g.attributes&&k.isRunning()){i.el.setAttr(g.attributes,false,g.isLastFrame);if(g.isLastFrame){k.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(d){var c=this;d=Ext.apply(c,d||{});c.config=d;c.id=Ext.id(null,"ext-animator-");c.mixins.observable.constructor.call(c,d);c.timeline=[];c.createTimeline(c.keyframes);if(c.target){c.applyAnimator(c.target);Ext.fx.Manager.addAnim(c)}},sorter:function(a,b){return a.pct-b.pct},createTimeline:function(s){var p=this,m=[],o=p.to||{},u=p.duration,i,v,t,q,n,r;for(n in s){if(s.hasOwnProperty(n)&&p.animKeyFramesRE.test(n)){r={attrs:Ext.apply(s[n],o)};if(n==="from"){n=0}else{if(n==="to"){n=100}}r.pct=parseInt(n,10);m.push(r)}}Ext.Array.sort(m,p.sorter);q=m.length;for(t=0;t<q;t++){i=(m[t-1])?u*(m[t-1].pct/100):0;v=u*(m[t].pct/100);p.timeline.push({duration:v-i,attrs:m[t].attrs})}},applyAnimator:function(q){var n=this,m=[],i=n.timeline,o=i.length,s,p,t,l,r;if(n.fireEvent("beforeanimate",n)!==false){for(r=0;r<o;r++){s=i[r];l=s.attrs;p=l.easing||n.easing;t=l.damper||n.damper;delete l.easing;delete l.damper;s=new Ext.fx.Anim({target:q,easing:p,damper:t,duration:s.duration,paused:true,to:l});m.push(s)}n.animations=m;n.target=s.target;for(r=0;r<o-1;r++){s=m[r];s.nextAnim=m[r+1];s.on("afteranimate",function(){this.nextAnim.paused=false});s.on("afteranimate",function(){this.fireEvent("keyframe",this,++this.keyframeStep)},n)}m[o-1].on("afteranimate",function(){this.lastFrame()},n)}},start:function(i){var h=this,j=h.delay,f=h.delayStart,g;if(j){if(!f){h.delayStart=i;return}else{g=i-f;if(g<j){return}else{i=new Date(f.getTime()+j)}}}if(h.fireEvent("beforeanimate",h)!==false){h.startTime=i;h.running=true;h.animations[h.keyframeStep].paused=false}},lastFrame:function(){var f=this,e=f.iterations,d=f.currentIteration;d++;if(d<e){f.startTime=new Date();f.currentIteration=d;f.keyframeStep=0;f.applyAnimator(f.target);f.animations[f.keyframeStep].paused=false}else{f.currentIteration=0;f.end()}},end:function(){var b=this;b.fireEvent("afteranimate",b,b.startTime,new Date()-b.startTime)},isReady:function(){return this.paused===false&&this.running===false&&this.iterations>0},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(q,A,C,r,s,w){var v=3*A,t=3*(r-A)-v,D=1-v-t,x=3*C,u=3*(s-C)-x,p=1-x-u;function y(a){return((D*a+t)*a+v)*a}function B(c,a){var b=z(c,a);return((p*b+u)*b+x)*b}function z(h,a){var b,c,e,g,d,f;for(e=h,f=0;f<8;f++){g=y(e)-h;if(Math.abs(g)<a){return e}d=(3*D*e+2*t)*e+v;if(Math.abs(d)<0.000001){break}e=e-g/d}b=0;c=1;e=h;if(e<b){return b}if(e>c){return c}while(b<c){g=y(e);if(Math.abs(g-h)<a){return e}if(h>g){b=e}else{c=e}e=(c-b)/2+b}return e}return B(q,1/(200*w))},cubicBezier:function(f,h,g,j){var i=function(a){return Ext.fx.CubicBezier.cubicBezierAtTime(a,f,h,g,j,1)};i.toCSS3=function(){return"cubic-bezier("+[f,h,g,j].join(",")+")"};i.reverse=function(){return Ext.fx.CubicBezier.cubicBezier(1-g,1-j,1-f,1-h)};return i}},0,0,0,0,0,0,[Ext.fx,"CubicBezier"],0));(Ext.cmd.derive("Ext.fx.Easing",Ext.Base,function(){var l=Math,j=l.PI,m=l.pow,h=l.sin,k=l.sqrt,i=l.abs,n=1.70158;return{singleton:true,linear:Ext.identityFn,ease:function(g){var c=0.07813-g/2,d=k(0.0066+c*c),f=d-c,q=m(i(f),1/3)*(f<0?-1:1),a=-d-c,b=m(i(a),1/3)*(a<0?-1:1),e=q+b+0.25;return m(1-e,2)*3*e*0.1+(1-e)*3*e*e+e*e*e},easeIn:function(a){return m(a,1.7)},easeOut:function(a){return m(a,0.48)},easeInOut:function(g){var c=0.48-g/1.04,d=k(0.1734+c*c),f=d-c,q=m(i(f),1/3)*(f<0?-1:1),a=-d-c,b=m(i(a),1/3)*(a<0?-1:1),e=q+b+0.5;return(1-e)*3*e*e+e*e*e},backIn:function(a){return a*a*((n+1)*a-n)},backOut:function(a){a=a-1;return a*a*((n+1)*a+n)+1},elasticIn:function(a){if(a===0||a===1){return a}var b=0.3,c=b/4;return m(2,-10*a)*h((a-c)*(2*j)/b)+1},elasticOut:function(a){return 1-Ext.fx.Easing.elasticIn(1-a)},bounceIn:function(a){return 1-Ext.fx.Easing.bounceOut(1-a)},bounceOut:function(a){var c=7.5625,b=2.75,d;if(a<(1/b)){d=c*a*a}else{if(a<(2/b)){a-=(1.5/b);d=c*a*a+0.75}else{if(a<(2.5/b)){a-=(2.25/b);d=c*a*a+0.9375}else{a-=(2.625/b);d=c*a*a+0.984375}}}return d}}},0,0,0,0,0,0,[Ext.fx,"Easing"],function(d){var f=d.self,e=f.prototype;f.addMembers({"back-in":e.backIn,"back-out":e.backOut,"ease-in":e.easeIn,"ease-out":e.easeOut,"elastic-in":e.elasticIn,"elastic-out":e.elasticOut,"bounce-in":e.bounceIn,"bounce-out":e.bounceOut,"ease-in-out":e.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(c,d){d=String(d).toLowerCase();return(d=="object"&&c===Object(c))||(d=="undefined"&&typeof c==d)||(d=="null"&&c===null)||(d=="array"&&Array.isArray&&Array.isArray(c))||(Object.prototype.toString.call(c).toLowerCase().slice(8,-1))==d},path2string:function(){return this.join(",").replace(Ext.fx.DrawPath.pathToStringRE,"$1")},pathToString:function(b){return b.join(",").replace(Ext.fx.DrawPath.pathToStringRE,"$1")},parsePathString:function(f){if(!f){return null}var g={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},h=[],e=this;if(e.is(f,"array")&&e.is(f[0],"array")){h=e.pathClone(f)}if(!h.length){String(f).replace(e.pathCommandRE,function(d,j,a){var b=[],c=j.toLowerCase();a.replace(e.pathValuesRE,function(i,l){if(l){b.push(+l)}});if(c=="m"&&b.length>2){h.push([j].concat(Ext.Array.splice(b,0,2)));c="l";j=(j=="m")?"l":"L"}while(b.length>=g[c]){h.push([j].concat(Ext.Array.splice(b,0,g[c])));if(!g[c]){break}}})}h.toString=e.path2string;return h},pathClone:function(i){var l=[],h,j,g,k;if(!this.is(i,"array")||!this.is(i&&i[0],"array")){i=this.parsePathString(i)}for(g=0,k=i.length;g<k;g++){l[g]=[];for(h=0,j=i[g].length;h<j;h++){l[g][h]=i[g][h]}}l.toString=this.path2string;return l},pathToAbsolute:function(v){if(!this.is(v,"array")||!this.is(v&&v[0],"array")){v=this.parsePathString(v)}var q=[],o=0,p=0,i=0,j=0,s=0,r=v.length,w,u,t,x;if(r&&v[0][0]=="M"){o=+v[0][1];p=+v[0][2];i=o;j=p;s++;q[0]=["M",o,p]}for(;s<r;s++){w=q[s]=[];u=v[s];if(u[0]!=u[0].toUpperCase()){w[0]=u[0].toUpperCase();switch(w[0]){case"A":w[1]=u[1];w[2]=u[2];w[3]=u[3];w[4]=u[4];w[5]=u[5];w[6]=+(u[6]+o);w[7]=+(u[7]+p);break;case"V":w[1]=+u[1]+p;break;case"H":w[1]=+u[1]+o;break;case"M":i=+u[1]+o;j=+u[2]+p;default:t=1;x=u.length;for(;t<x;t++){w[t]=+u[t]+((t%2)?o:p)}}}else{t=0;x=u.length;for(;t<x;t++){q[s][t]=u[t]}}switch(w[0]){case"Z":o=i;p=j;break;case"H":o=w[1];break;case"V":p=w[1];break;case"M":u=q[s];x=u.length;i=u[x-2];j=u[x-1];default:u=q[s];x=u.length;o=u[x-2];p=u[x-1]}}q.toString=this.path2string;return q},interpolatePaths:function(i,u){var w=this,A=w.pathToAbsolute(i),t=w.pathToAbsolute(u),s={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},D={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},C=function(c,b){if(c[b].length>7){c[b].shift();var a=c[b];while(a.length){Ext.Array.splice(c,b++,0,["C"].concat(Ext.Array.splice(a,0,6)))}Ext.Array.erase(c,b,1);r=Math.max(A.length,t.length||0)}},B=function(a,b,d,e,c){if(a&&b&&a[c][0]=="M"&&b[c][0]!="M"){Ext.Array.splice(b,c,0,["M",e.x,e.y]);d.bx=0;d.by=0;d.x=a[c][1];d.y=a[c][2];r=Math.max(A.length,t.length||0)}},x,r,y,p,z,v;for(x=0,r=Math.max(A.length,t.length||0);x<r;x++){A[x]=w.command2curve(A[x],s);C(A,x);(t[x]=w.command2curve(t[x],D));C(t,x);B(A,t,s,D,x);B(t,A,D,s,x);y=A[x];p=t[x];z=y.length;v=p.length;s.x=y[z-2];s.y=y[z-1];s.bx=parseFloat(y[z-4])||s.x;s.by=parseFloat(y[z-3])||s.y;D.bx=(parseFloat(p[v-4])||D.x);D.by=(parseFloat(p[v-3])||D.y);D.x=p[v-2];D.y=p[v-1]}return[A,t]},command2curve:function(f,d){var e=this;if(!f){return["C",d.x,d.y,d.x,d.y,d.x,d.y]}if(f[0]!="T"&&f[0]!="Q"){d.qx=d.qy=null}switch(f[0]){case"M":d.X=f[1];d.Y=f[2];break;case"A":f=["C"].concat(e.arc2curve.apply(e,[d.x,d.y].concat(f.slice(1))));break;case"S":f=["C",d.x+(d.x-(d.bx||d.x)),d.y+(d.y-(d.by||d.y))].concat(f.slice(1));break;case"T":d.qx=d.x+(d.x-(d.qx||d.x));d.qy=d.y+(d.y-(d.qy||d.y));f=["C"].concat(e.quadratic2curve(d.x,d.y,d.qx,d.qy,f[1],f[2]));break;case"Q":d.qx=f[1];d.qy=f[2];f=["C"].concat(e.quadratic2curve(d.x,d.y,f[1],f[2],f[3],f[4]));break;case"L":f=["C"].concat(d.x,d.y,f[1],f[2],f[1],f[2]);break;case"H":f=["C"].concat(d.x,d.y,f[1],d.y,f[1],d.y);break;case"V":f=["C"].concat(d.x,d.y,d.x,f[1],d.x,f[1]);break;case"Z":f=["C"].concat(d.x,d.y,d.X,d.Y,d.X,d.Y);break}return f},quadratic2curve:function(i,o,l,n,j,p){var m=1/3,k=2/3;return[m*i+k*l,m*o+k*n,m*j+k*l,m*p+k*n,j,p]},rotate:function(h,j,i){var m=Math.cos(i),n=Math.sin(i),k=h*m-j*n,l=h*n+j*m;return{x:k,y:l}},arc2curve:function(aK,aw,at,av,aG,aP,aT,aL,az,aF){var aI=this,aV=Math.PI,aH=aI.radian,ax=aV*120/180,aX=aH*(+aG||0),an=[],aq=Math,ag=aq.cos,aY=aq.sin,y=aq.sqrt,aJ=aq.abs,aO=aq.asin,ar,al,am,h,aW,ai,af,aB,aD,aQ,aR,aM,aS,aA,aU,aC,ak,ah,aj,aE,i,k,x,ao,t,ap,ay,au,aN;if(!aF){ar=aI.rotate(aK,aw,-aX);aK=ar.x;aw=ar.y;ar=aI.rotate(aL,az,-aX);aL=ar.x;az=ar.y;al=(aK-aL)/2;am=(aw-az)/2;h=(al*al)/(at*at)+(am*am)/(av*av);if(h>1){h=y(h);at=h*at;av=h*av}aW=at*at;ai=av*av;af=(aP==aT?-1:1)*y(aJ((aW*ai-aW*am*am-ai*al*al)/(aW*am*am+ai*al*al)));aB=af*at*am/av+(aK+aL)/2;aD=af*-av*al/at+(aw+az)/2;aQ=aO(((aw-aD)/av).toFixed(7));aR=aO(((az-aD)/av).toFixed(7));aQ=aK<aB?aV-aQ:aQ;aR=aL<aB?aV-aR:aR;if(aQ<0){aQ=aV*2+aQ}if(aR<0){aR=aV*2+aR}if(aT&&aQ>aR){aQ=aQ-aV*2}if(!aT&&aR>aQ){aR=aR-aV*2}}else{aQ=aF[0];aR=aF[1];aB=aF[2];aD=aF[3]}aM=aR-aQ;if(aJ(aM)>ax){ay=aR;au=aL;aN=az;aR=aQ+ax*(aT&&aR>aQ?1:-1);aL=aB+at*ag(aR);az=aD+av*aY(aR);an=aI.arc2curve(aL,az,at,av,aG,0,aT,au,aN,[aR,ay,aB,aD])}aM=aR-aQ;aS=ag(aQ);aA=aY(aQ);aU=ag(aR);aC=aY(aR);ak=aq.tan(aM/4);ah=4/3*at*ak;aj=4/3*av*ak;aE=[aK,aw];i=[aK+ah*aA,aw-aj*aS];k=[aL+ah*aC,az-aj*aU];x=[aL,az];i[0]=2*aE[0]-i[0];i[1]=2*aE[1]-i[1];if(aF){return[i,k,x].concat(an)}else{an=[i,k,x].concat(an).join().split(",");ao=[];ap=an.length;for(t=0;t<ap;t++){ao[t]=t%2?aI.rotate(an[t-1],an[t],aX).y:aI.rotate(an[t],an[t+1],aX).x}return ao}}},0,0,0,0,0,0,[Ext.fx,"DrawPath"],0));(Ext.cmd.derive("Ext.fx.PropertyHandler",Ext.Base,{statics:{defaultHandler:{pixelDefaultsRE:/width|height|top$|bottom$|left$|right$/i,unitRE:/^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/,scrollRE:/^scroll/i,computeDelta:function(j,p,r,m,k){r=(typeof r=="number")?r:1;var l=this.unitRE,o=l.exec(j),q,n;if(o){j=o[1];n=o[2];if(!this.scrollRE.test(k)&&!n&&this.pixelDefaultsRE.test(k)){n="px"}}j=+j||0;o=l.exec(p);if(o){p=o[1];n=o[2]||n}p=+p||0;q=(m!=null)?m:j;return{from:j,delta:(p-q)*r,units:n}},get:function(i,w,x,j,q){var o=i.length,u=[],t,r,p,v,s;for(t=0;t<o;t++){if(j){r=j[t][1].from}if(Ext.isArray(i[t][1])&&Ext.isArray(w)){p=[];v=0;s=i[t][1].length;for(;v<s;v++){p.push(this.computeDelta(i[t][1][v],w[v],x,r,q))}u.push([i[t][0],p])}else{u.push([i[t][0],this.computeDelta(i[t][1],w,x,r,q)])}}return u},set:function(i,m){var l=i.length,p=[],o,r,j,n,q;for(o=0;o<l;o++){r=i[o][1];if(Ext.isArray(r)){j=[];q=0;n=r.length;for(;q<n;q++){j.push(r[q].from+r[q].delta*m+(r[q].units||0))}p.push([i[o][0],j])}else{p.push([i[o][0],r.from+r.delta*m+(r.units||0)])}}return p}},stringHandler:{computeDelta:function(h,f,i,j,g){return{from:h,delta:f}},get:function(i,q,r,k,m){var l=i.length,p=[],o,n;for(o=0;o<l;o++){p.push([i[o][0],this.computeDelta(i[o][1],q,r,n,m)])}return p},set:function(h,i){var k=h.length,g=[],l,j;for(l=0;l<k;l++){j=h[l][1];g.push([h[l][0],j.delta])}return g}},color:{rgbRE:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,hexRE:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,hex3RE:/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i,parseColor:function(n,r){r=(typeof r=="number")?r:1;var m=false,p=[this.hexRE,this.rgbRE,this.hex3RE],o=p.length,k,q,i,l;for(l=0;l<o;l++){i=p[l];q=(l%2===0)?16:10;k=i.exec(n);if(k&&k.length===4){if(l===2){k[1]+=k[1];k[2]+=k[2];k[3]+=k[3]}m={red:parseInt(k[1],q),green:parseInt(k[2],q),blue:parseInt(k[3],q)};break}}return m||n},computeDelta:function(j,i,l,n){j=this.parseColor(j);i=this.parseColor(i,l);var k=n?n:j,h=typeof k,m=typeof i;if(h==="string"||h==="undefined"||m==="string"||m==="undefined"){return i||k}return{from:j,delta:{red:Math.round((i.red-k.red)*l),green:Math.round((i.green-k.green)*l),blue:Math.round((i.blue-k.blue)*l)}}},get:function(k,j,m,o){var l=k.length,p=[],n,i;for(n=0;n<l;n++){if(o){i=o[n][1].from}p.push([k[n][0],this.computeDelta(k[n][1],j,m,i)])}return p},set:function(i,n){var m=i.length,p=[],o,q,r,l,k;for(o=0;o<m;o++){q=i[o][1];if(q){l=q.from;k=q.delta;q=(typeof q==="object"&&"red" in q)?"rgb("+q.red+", "+q.green+", "+q.blue+")":q;q=(typeof q==="object"&&q.length)?q[0]:q;if(typeof q==="undefined"){return[]}r=typeof q==="string"?q:"rgb("+[(l.red+Math.round(k.red*n))%256,(l.green+Math.round(k.green*n))%256,(l.blue+Math.round(k.blue*n))%256].join(",")+")";p.push([i[o][0],r])}}return p}},object:{interpolate:function(g,e){e=(typeof e==="number")?e:1;var f={},h;for(h in g){f[h]=parseFloat(g[h])*e}return f},computeDelta:function(j,i,n,h){j=this.interpolate(j);i=this.interpolate(i,n);var k=h?h:j,l={},m;for(m in i){l[m]=i[m]-k[m]}return{from:j,delta:l}},get:function(k,j,m,o){var l=k.length,p=[],n,i;for(n=0;n<l;n++){if(o){i=o[n][1].from}p.push([k[n][0],this.computeDelta(k[n][1],j,m,i)])}return p},set:function(i,o){var n=i.length,r=[],p={},q,m,l,s,t;for(q=0;q<n;q++){s=i[q][1];m=s.from;l=s.delta;for(t in m){p[t]=m[t]+l[t]*o}r.push([i[q][0],p])}return r}},path:{computeDelta:function(h,g,j,f){j=(typeof j==="number")?j:1;var i;h=+h||0;g=+g||0;i=(f!=null)?f:h;return{from:h,delta:(g-i)*j}},forcePath:function(b){if(!Ext.isArray(b)&&!Ext.isArray(b[0])){b=Ext.fx.DrawPath.parsePathString(b)}return b},get:function(D,x,E,k){var C=this.forcePath(x),v=[],i=D.length,B,y,u,z,t,w,A,F,j;for(u=0;u<i;u++){j=this.forcePath(D[u][1]);z=Ext.fx.DrawPath.interpolatePaths(j,C);j=z[0];C=z[1];B=j.length;F=[];for(w=0;w<B;w++){z=[j[w][0]];y=j[w].length;for(A=1;A<y;A++){t=k&&k[0][1][w][A].from;z.push(this.computeDelta(j[w][A],C[w][A],E,t))}F.push(z)}v.push([D[u][0],F])}return v},set:function(i,k){var j=i.length,t=[],r,s,u,q,p,v,x,w;for(r=0;r<j;r++){v=i[r][1];q=[];x=v.length;for(s=0;s<x;s++){p=[v[s][0]];w=v[s].length;for(u=1;u<w;u++){p.push(v[s][u].from+v[s][u].delta*k)}q.push(p.join(","))}t.push([i[r][0],q.join(",")])}return t}}}},0,0,0,0,0,0,[Ext.fx,"PropertyHandler"],function(){var e=["outlineColor","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","fill","stroke"],h=e.length,f=0,g;for(;f<h;f++){g=e[f];this[g]=this.color}e=["cursor"];h=e.length;f=0;for(;f<h;f++){g=e[f];this[g]=this.stringHandler}}));(Ext.cmd.derive("Ext.fx.Anim",Ext.Base,{isAnimation:true,duration:250,delay:0,delayStart:0,dynamic:false,easing:"ease",damper:1,bezierRE:/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,reverse:false,running:false,paused:false,iterations:1,autoEnd:false,alternate:false,currentIteration:0,startTime:0,frameCount:0,constructor:function(e){var d=this,f;e=e||{};if(e.keyframes){return new Ext.fx.Animator(e)}Ext.apply(d,e);if(d.from===undefined){d.from={}}d.propHandlers={};d.config=e;d.target=Ext.fx.Manager.createTarget(d.target);d.easingFn=Ext.fx.Easing[d.easing];d.target.dynamic=d.dynamic;if(!d.easingFn){d.easingFn=String(d.easing).match(d.bezierRE);if(d.easingFn&&d.easingFn.length===5){f=d.easingFn;d.easingFn=Ext.fx.CubicBezier.cubicBezier(+f[1],+f[2],+f[3],+f[4])}}d.id=Ext.id(null,"ext-anim-");d.mixins.observable.constructor.call(d);Ext.fx.Manager.addAnim(d);if(e.autoEnd){d.running=true;d.jumpToEnd()}},setAttr:function(d,c){return Ext.fx.Manager.items.get(this.id).setAttr(this.target,d,c)},initAttrs:function(){var n=this,l=n.from,k=n.to,m=n.initialFrom||{},p={},r,q,j,o;for(o in k){if(k.hasOwnProperty(o)){r=n.target.getAttr(o,l[o]);q=k[o];if(!Ext.fx.PropertyHandler[o]){if(Ext.isObject(q)){j=n.propHandlers[o]=Ext.fx.PropertyHandler.object}else{j=n.propHandlers[o]=Ext.fx.PropertyHandler.defaultHandler}}else{j=n.propHandlers[o]=Ext.fx.PropertyHandler[o]}p[o]=j.get(r,q,n.damper,m[o],o)}}n.currentAttrs=p},start:function(i){var h=this,j=h.delay,f=h.delayStart,g;if(j){if(!f){h.delayStart=i;return}else{g=i-f;if(g<j){return}else{i=new Date(f.getTime()+j)}}}if(h.fireEvent("beforeanimate",h)!==false){h.startTime=i;if(!h.paused&&!h.currentAttrs){h.initAttrs()}h.running=true;h.frameCount=0}},jumpToEnd:function(){var b=this;if(!b.endWasCalled){if(!b.currentAttrs){b.initAttrs()}Ext.fx.Manager.jumpToEnd(b);b.end()}},runAnim:function(l){var o=this,m=o.currentAttrs,s=o.duration,t=o.easingFn,u=o.propHandlers,q={},p,n,r,v;if(l>=s){l=s;v=true}if(o.reverse){l=s-l}for(r in m){if(m.hasOwnProperty(r)){n=m[r];p=v?1:t(l/s);q[r]=u[r].set(n,p)}}o.frameCount++;return q},lastFrame:function(){var f=this,e=f.iterations,d=f.currentIteration;d++;if(d<e){if(f.alternate){f.reverse=!f.reverse}f.startTime=new Date();f.currentIteration=d;f.paused=false}else{f.currentIteration=0;f.end();f.fireEvent("lastframe",f,f.startTime)}},endWasCalled:0,end:function(){var b=this;if(b.endWasCalled++){return}b.startTime=0;b.paused=false;b.running=false;Ext.fx.Manager.removeAnim(b);b.fireEvent("afteranimate",b,b.startTime);Ext.callback(b.callback,b.scope,[b,b.startTime]);if(b.remove){b.target.destroy()}},isReady:function(){return this.paused===false&&this.running===false&&this.iterations>0},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(d){var c=this;if(Ext.fx.Manager.hasFxBlock(c.id)){return c}Ext.fx.Manager.queueFx(new Ext.fx.Anim(c.anim(d)));return this},anim:function(d){if(!Ext.isObject(d)){return(d)?{}:false}var c=this;if(d.stopAnimation){c.stopAnimation()}Ext.applyIf(d,Ext.fx.Manager.getFxDefaults(c.id));return Ext.apply({target:c,paused:true},d)},getAnimationProps:function(){var c=this,d=c.layout;return d&&d.animate?d.animate:{}},stopFx:Ext.Function.alias(Ext.util.Animate,"stopAnimation"),stopAnimation:function(){Ext.fx.Manager.stopAnimation(this.id);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(b){this.dom=b;this.el=this},attach:function(c){var d=this;if(!c){return d.detach()}d.dom=c;if(!Ext.cache[c.id]){d.getData().isSynchronized=false}return d},detach:function(){this.dom=null},addListener:null,removeListener:null},1,0,0,0,0,0,[Ext.dom,"Fly",Ext.dom.Element,"Fly"],function(d){var c={};d.cache=c;Ext.fly=function(a,k){var i=null,j=Ext.fly,l,b;k=k||(j.caller&&j.caller.$name)||"_global";a=Ext.getDom(a);if(a){l=a.nodeType;if(d.prototype.validNodeTypes[l]||(!l&&(a.window==a))){i=Ext.cache[a.id];if(!i||i.dom!==a){i=c[k]||(c[k]=new d());i.dom=a;b=i.getData(true);if(b){b.isSynchronized=false}}}}return i}}));(Ext.cmd.derive("Ext.dom.CompositeElementLite",Ext.Base,{alternateClassName:["Ext.CompositeElementLite"],isComposite:true,isLite:true,statics:{importElementMethods:function(){var d=Ext.dom.Element,c=this.prototype;Ext.Object.each(d.prototype,function(b,a){if(typeof a==="function"&&!c[b]){c[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(c,d){if(d){this.elements=c||[]}else{this.elements=[];this.add(c)}},getElement:function(c){var d=this._fly||(this._fly=new Ext.dom.Fly());return d.attach(c)},transformElement:function(b){return Ext.getDom(b)},getCount:function(){return this.elements.length},add:function(j,g){var h=this.elements,f,i;if(!j){return this}if(typeof j=="string"){j=Ext.fly(g||document).query(j)}else{if(j.isComposite){j=j.elements}else{if(!Ext.isIterable(j)){j=[j]}}}for(f=0,i=j.length;f<i;++f){h.push(this.transformElement(j[f]))}return this},invoke:function(n,i){var l=this,k=l.elements,m=k.length,j,o,p;if(p!==0){j=(l.isLite?Ext.dom.Fly:Ext.dom.Element).prototype;for(p=0;p<m;p++){o=k[p];if(o){j[n].apply(l.getElement(o),i)}}}return l},item:function(d){var f=this.elements[d],e=null;if(f){e=this.getElement(f)}return e},slice:function(c,d){return Ext.Array.slice(this.elements,c,d)},each:function(l,m){var k=this,n=k.elements,i=n.length,e,j;for(e=0;e<i;e++){j=n[e];if(j){j=this.getElement(j);if(l.call(m||j,j,k,e)===false){break}}}return k},fill:function(d){var c=this;c.elements=[];c.add(d);return c},insert:function(c,d){Ext.Array.insert(this.elements,c,d)},filter:function(q){var l=this,p=l.elements,m=p.length,o=[],n=0,k=typeof q=="function",i,r;for(;n<m;n++){r=p[n];i=false;if(r){r=l.getElement(r);if(k){i=q.call(r,r,l,n)!==false}else{i=r.is(q)}if(i){o.push(l.transformElement(r))}}}l.elements=o;return l},indexOf:function(b){return Ext.Array.indexOf(this.elements,this.transformElement(b))},replaceElement:function(i,j,g){var d=!isNaN(i)?i:this.indexOf(i),h;if(d>-1){j=Ext.getDom(j);if(g){h=this.elements[d];h.parentNode.insertBefore(j,h);Ext.removeNode(h)}Ext.Array.splice(this.elements,d,1,j)}return this},clear:function(g){var h=this,e=h.elements,f=e.length-1;if(g){for(;f>=0;f--){Ext.removeNode(e[f])}}this.elements=[]},addElements:function(i,e){if(!i){return this}if(typeof i==="string"){i=Ext.dom.Element.selectorFunction(i,e)}var j=this.elements,g=i.length,h;for(h=0;h<g;h++){j.push(Ext.get(i[h]))}return this},first:function(){return this.item(0)},last:function(){return this.item(this.getCount()-1)},contains:function(b){return this.indexOf(b)!=-1},removeElement:function(n,k){n=[].concat(n);var o=this,m=o.elements,p=n.length,l,i,j;for(j=0;j<p;j++){l=n[j];if((i=(m[l]||m[l=o.indexOf(l)]))){if(k){if(i.dom){i.destroy()}else{Ext.removeNode(i)}}Ext.Array.erase(m,l,1)}}return o},destroy:function(){return this.invoke("destroy",arguments);this.callParent()}},1,0,0,0,0,0,[Ext.dom,"CompositeElementLite",Ext,"CompositeElementLite"],function(c){var d=c.prototype;c.importElementMethods();d.on=d.addListener}));Ext.define("Ext.overrides.dom.Element",(function(){var aw,au=window,aa=document,S="hidden",ao="isClipped",U="overflow",ak="overflow-x",al="overflow-y",ah="originalClip",ac="height",aA="width",az="visibility",aE="display",Y="none",Q="offsets",aC="clip",at="originalDisplay",X="visibilityMode",ag="isVisible",av="x-hidden-offsets",ap="x-hidden-clip",P=['<div class="{0}-tl" role="presentation">','<div class="{0}-tr" role="presentation">','<div class="{0}-tc" role="presentation"></div>',"</div>","</div>",'<div class="{0}-ml" role="presentation">','<div class="{0}-mr" role="presentation">','<div class="{0}-mc" role="presentation"></div>',"</div>","</div>",'<div class="{0}-bl" role="presentation">','<div class="{0}-br" role="presentation">','<div class="{0}-bc" role="presentation"></div>',"</div>","</div>"].join(""),V=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig,ab=/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,aD=/\ssrc=([\'\"])(.*?)\1/i,aq=/\S/,ax=/\stype=([\'\"])(.*?)\1/i,ae=/^-ms-/,ad=/(-[a-z])/gi,W=function(b,a){return a.charAt(1).toUpperCase()},ar="x-masked",af="x-masked-relative",aj="x-mask-msg",am=/^body/i,an={},ai=function(b){var a=b.getData(),c=a[X];if(c===undefined){a[X]=c=aw.VISIBILITY}return c},R=aa.createRange?aa.createRange():null,Z={INPUT:true,TEXTAREA:true};if(Ext.isIE8){var ay=aa.createElement("div"),T=[],aB=Ext.Function.createBuffered(function(){var b=T.length,a;for(a=0;a<b;a++){ay.appendChild(T[a])}ay.innerHTML="";T.length=0},10)}return{override:"Ext.dom.Element",mixins:[Ext.util.Animate],skipGarbageCollection:false,_init:function(a){aw=a;a.tabbableSelector+=",["+a.tabbableSavedCounterAttribute+"]"},statics:{selectableCls:"x-selectable",unselectableCls:"x-unselectable",tabbableSelector:Ext.supports.CSS3NegationSelector?'a[href],button,iframe,input,select,textarea,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]':'a[href],button,iframe,input,select,textarea,[tabindex],[contenteditable="true"]',naturallyFocusableTags:{BUTTON:true,IFRAME:true,EMBED:true,INPUT:true,OBJECT:true,SELECT:true,TEXTAREA:true,HTML:Ext.isIE?true:false},naturallyTabbableTags:{BUTTON:true,IFRAME:true,INPUT:true,SELECT:true,TEXTAREA:true,OBJECT:Ext.isIE8m?true:false},tabbableSavedCounterAttribute:"data-tabindex-counter",tabbableSavedValueAttribute:"data-tabindex-value",normalize:function(a){if(a==="float"){a=Ext.supports.Float?"cssFloat":"styleFloat"}return an[a]||(an[a]=a.replace(ae,"ms-").replace(ad,W))}},addClsOnClick:function(d,a,e){var c=this,b=c.dom,f=Ext.isFunction(a);c.on("mousedown",function(){if(f&&a.call(e||c,c)===false){return false}Ext.fly(b).addCls(d);var g=Ext.getDoc(),h=function(){Ext.fly(b).removeCls(d);g.removeListener("mouseup",h)};g.on("mouseup",h)});return c},addClsOnFocus:function(d,a,e){var c=this,b=c.dom,f=Ext.isFunction(a);c.on("focus",function(){if(f&&a.call(e||c,c)===false){return false}Ext.fly(b).addCls(d)});c.on("blur",function(){Ext.fly(b).removeCls(d)});return c},addClsOnOver:function(d,a,e){var c=this,b=c.dom,f=Ext.isFunction(a);c.hover(function(){if(f&&a.call(e||c,c)===false){return}Ext.fly(b).addCls(d)},function(){Ext.fly(b).removeCls(d)});return c},addKeyListener:function(c,a,b){var d;if(typeof c!=="object"||Ext.isArray(c)){d={target:this,key:c,fn:a,scope:b}}else{d={target:this,key:c.key,shift:c.shift,ctrl:c.ctrl,alt:c.alt,fn:a,scope:b}}return new Ext.util.KeyMap(d)},addKeyMap:function(a){return new Ext.util.KeyMap(Ext.apply({target:this},a))},afterAnimate:function(){var a=this.shadow;if(a&&!a.disabled&&!a.animate){a.show()}},anchorAnimX:function(b){var a=(b==="l")?"right":"left";this.dom.style[a]="0px"},anim:function(e){if(!Ext.isObject(e)){return(e)?{}:false}var d=this,c=e.duration||Ext.fx.Anim.prototype.duration,a=e.easing||"ease",b;if(e.stopAnimation){d.stopAnimation()}Ext.applyIf(e,Ext.fx.Manager.getFxDefaults(d.id));Ext.fx.Manager.setFxDefaults(d.id,{delay:0});b={target:d.dom,remove:e.remove,alternate:e.alternate||false,duration:c,easing:a,callback:e.callback,listeners:e.listeners,iterations:e.iterations||1,scope:e.scope,block:e.block,concurrent:e.concurrent,delay:e.delay||0,paused:true,keyframes:e.keyframes,from:e.from||{},to:Ext.apply({},e),userConfig:e};Ext.apply(b.to,e.to);delete b.to.to;delete b.to.from;delete b.to.remove;delete b.to.alternate;delete b.to.keyframes;delete b.to.iterations;delete b.to.listeners;delete b.to.target;delete b.to.paused;delete b.to.callback;delete b.to.scope;delete b.to.duration;delete b.to.easing;delete b.to.concurrent;delete b.to.block;delete b.to.stopAnimation;delete b.to.delay;return b},animate:function(a){this.addAnimation(a);return this},addAnimation:function(d){var b=this,e=b.dom.id||Ext.id(b.dom),c,a,f;if(!Ext.fx.Manager.hasFxBlock(e)){if(d.listeners){c=d.listeners;delete d.listeners}if(d.internalListeners){d.listeners=d.internalListeners;delete d.internalListeners}f=d.autoEnd;delete d.autoEnd;a=new Ext.fx.Anim(b.anim(d));a.on({afteranimate:"afterAnimate",beforeanimate:"beforeAnimate",scope:b,single:true});if(c){a.on(c)}Ext.fx.Manager.queueFx(a);if(f){a.jumpToEnd()}}return a},beforeAnimate:function(){var a=this.shadow;if(a&&!a.disabled&&!a.animate){a.hide()}},boxWrap:function(b){b=b||"x-box";var a=Ext.get(this.insertHtml("beforeBegin","<div class='"+b+"' role='presentation'>"+Ext.String.format(P,b)+"</div>"));a.selectNode("."+b+"-mc").appendChild(this.dom);return a},clean:function(f){var d=this,b=d.dom,c=d.getData(),a=b.firstChild,e=-1,g;if(c.isCleaned&&f!==true){return d}while(a){g=a.nextSibling;if(a.nodeType===3){if(!(aq.test(a.nodeValue))){b.removeChild(a)}else{if(g&&g.nodeType===3){a.appendData(Ext.String.trim(g.data));b.removeChild(g);g=a.nextSibling;a.nodeIndex=++e}}}else{Ext.fly(a,"_clean").clean();a.nodeIndex=++e}a=g}c.isCleaned=true;return d},empty:R?function(){var a=this.dom;if(a.firstChild){R.setStartBefore(a.firstChild);R.setEndAfter(a.lastChild);R.deleteContents()}}:function(){var a=this.dom;while(a.lastChild){a.removeChild(a.lastChild)}},clearListeners:function(){this.removeAnchor();arguments.callee.$previous.call(this)},clearPositioning:function(a){a=a||"";return this.setStyle({left:a,right:a,top:a,bottom:a,"z-index":"",position:"static"})},createProxy:function(e,a,b){e=(typeof e==="object")?e:{tag:"div",role:"presentation",cls:e};var c=this,d=a?Ext.DomHelper.append(a,e,true):Ext.DomHelper.insertBefore(c.dom,e,true);d.setVisibilityMode(aw.DISPLAY);d.hide();if(b&&c.setBox&&c.getBox){d.setBox(c.getBox())}return d},clearOpacity:function(){return this.setOpacity("")},clip:function(){var b=this,a=b.getData(),c;if(!a[ao]){a[ao]=true;c=b.getStyle([U,ak,al]);a[ah]={o:c[U],x:c[ak],y:c[al]};b.setStyle(U,S);b.setStyle(ak,S);b.setStyle(al,S)}return b},destroy:function(){var c=this,a=c.dom,b=c.getData(),d,e;if(a&&c.isAnimate){c.stopAnimation()}arguments.callee.$previous.call(this);if(a&&Ext.isIE8&&(a.window!=a)&&(a.nodeType!==9)&&(a.tagName!=="BODY")&&(a.tagName!=="HTML")){T[T.length]=a;aB()}if(b){d=b.maskEl;e=b.maskMsg;if(d){d.destroy()}if(e){e.destroy()}}},enableDisplayMode:function(a){var b=this;b.setVisibilityMode(aw.DISPLAY);if(a!==undefined){b.getData()[at]=a}return b},fadeIn:function(a){var c=this,b=c.dom;c.animate(Ext.apply({},a,{opacity:1,internalListeners:{beforeanimate:function(d){var e=Ext.fly(b,"_anim");if(e.isStyle("display","none")){e.setDisplayed("")}else{e.show()}}}}));return this},fadeOut:function(a){var c=this,b=c.dom;a=Ext.apply({opacity:0,internalListeners:{afteranimate:function(d){if(b&&d.to.opacity===0){var e=Ext.fly(b,"_anim");if(a.useDisplay){e.setDisplayed(false)}else{e.hide()}}}}},a);c.animate(a);return c},fixDisplay:function(){var a=this;if(a.isStyle(aE,Y)){a.setStyle(az,S);a.setStyle(aE,a._getDisplay());if(a.isStyle(aE,Y)){a.setStyle(aE,"block")}}},frame:function(f,c,b){var d=this,a=d.dom,e;f=f||"#C3DAF9";c=c||1;b=b||{};e=function(){var j=Ext.fly(a,"_anim"),k=this,i,g,h;j.show();i=j.getBox();g=Ext.getBody().createChild({role:"presentation",id:j.dom.id+"-anim-proxy",style:{position:"absolute","pointer-events":"none","z-index":35000,border:"0px solid "+f}});h=new Ext.fx.Anim({target:g,duration:b.duration||1000,iterations:c,from:{top:i.y,left:i.x,borderWidth:0,opacity:1,height:i.height,width:i.width},to:{top:i.y-20,left:i.x-20,borderWidth:10,opacity:0,height:i.height+40,width:i.width+40}});h.on("afteranimate",function(){g.destroy();k.end()})};d.animate({duration:(Math.max(b.duration,500)*2)||2000,listeners:{beforeanimate:{fn:e}},callback:b.callback,scope:b.scope});return d},getColor:function(g,f,a){var d=this.getStyle(g),e=a||a===""?a:"#",b,h,c=0;if(!d||(/transparent|inherit/.test(d))){return f}if(/^r/.test(d)){d=d.slice(4,d.length-1).split(",");h=d.length;for(;c<h;c++){b=parseInt(d[c],10);e+=(b<16?"0":"")+b.toString(16)}}else{d=d.replace("#","");e+=d.length===3?d.replace(/^(\w)(\w)(\w)$/,"$1$1$2$2$3$3"):d}return(e.length>5?e.toLowerCase():f)},getLoader:function(){var b=this,a=b.getData(),c=a.loader;if(!c){a.loader=c=new Ext.ElementLoader({target:b})}return c},getPositioning:function(b){var c=this.getStyle(["left","top","position","z-index"]),a=this.dom;if(b){if(c.left==="auto"){c.left=a.offsetLeft+"px"}if(c.top==="auto"){c.top=a.offsetTop+"px"}}return c},ghost:function(e,b){var c=this,a=c.dom,d;e=e||"b";d=function(){var k=Ext.fly(a,"_anim"),f=k.getWidth(),g=k.getHeight(),j=k.getXY(),h=k.getPositioning(),i={opacity:0};switch(e){case"t":i.y=j[1]-g;break;case"l":i.x=j[0]-f;break;case"r":i.x=j[0]+f;break;case"b":i.y=j[1]+g;break;case"tl":i.x=j[0]-f;i.y=j[1]-g;break;case"bl":i.x=j[0]-f;i.y=j[1]+g;break;case"br":i.x=j[0]+f;i.y=j[1]+g;break;case"tr":i.x=j[0]+f;i.y=j[1]-g;break}this.to=i;this.on("afteranimate",function(){var l=Ext.fly(a,"_anim");if(l){l.hide();l.clearOpacity();l.setPositioning(h)}})};c.animate(Ext.applyIf(b||{},{duration:500,easing:"ease-out",listeners:{beforeanimate:d}}));return c},hide:function(a){if(typeof a==="string"){this.setVisible(false,a);return this}this.setVisible(false,this.anim(a));return this},highlight:function(h,j){var d=this,g=d.dom,b={},e,a,f,i,k,c;j=j||{};i=j.listeners||{};f=j.attr||"backgroundColor";b[f]=h||"ffff9c";if(!j.to){a={};a[f]=j.endColor||d.getColor(f,"ffffff","")}else{a=j.to}j.listeners=Ext.apply(Ext.apply({},i),{beforeanimate:function(){e=g.style[f];var l=Ext.fly(g,"_anim");l.clearOpacity();l.show();k=i.beforeanimate;if(k){c=k.fn||k;return c.apply(k.scope||i.scope||au,arguments)}},afteranimate:function(){if(g){g.style[f]=e}k=i.afteranimate;if(k){c=k.fn||k;c.apply(k.scope||i.scope||au,arguments)}}});d.animate(Ext.apply({},j,{duration:1000,easing:"ease-in",from:b,to:a}));return d},hover:function(d,e,b,c){var a=this;a.on("mouseenter",d,b||a.dom,c);a.on("mouseleave",e,b||a.dom,c);return a},initDD:function(b,c,a){var d=new Ext.dd.DD(Ext.id(this.dom),b,c);return Ext.apply(d,a)},initDDProxy:function(b,c,a){var d=new Ext.dd.DDProxy(Ext.id(this.dom),b,c);return Ext.apply(d,a)},initDDTarget:function(b,c,a){var d=new Ext.dd.DDTarget(Ext.id(this.dom),b,c);return Ext.apply(d,a)},isFocusable:function(){var b=this.dom,c=false,a;if(b&&!b.disabled){a=b.nodeName;c=!!Ext.Element.naturallyFocusableTags[a]||((a==="A"||a==="LINK")&&!!b.href)||b.getAttribute("tabIndex")!=null||b.contentEditable==="true";if(Ext.isIE8&&a==="INPUT"&&b.type==="hidden"){c=false}c=c&&this.isVisible(true)}return c},isInputField:function(){var a=this.dom,b=a.contentEditable;if((Z[a.tagName]&&a.type!=="button")||(b===""||b==="true")){return true}return false},isTabbable:function(d){var c=this.dom,a=false,b,e,f;if(c&&!c.disabled){b=c.nodeName;f=c.getAttribute("tabIndex");e=f!=null;f-=0;if(b==="A"||b==="LINK"){if(c.href){a=e&&f<0?false:true}else{if(c.contentEditable==="true"){a=!e||(e&&f>=0)?true:false}else{a=e&&f>=0?true:false}}}else{if(c.contentEditable==="true"||Ext.Element.naturallyTabbableTags[b]){a=e&&f<0?false:true}else{if(e&&f>=0){a=true}}}if(Ext.isIE8&&b==="INPUT"&&c.type==="hidden"){a=false}a=a&&(d||((!this.component||this.component.isVisible(true))&&this.isVisible(true)))}return a},isMasked:function(g){var c=this,a=c.getData(),d=a.maskEl,f=a.maskMsg,b=false,e;if(d&&d.isVisible()){if(f){f.center(c)}b=true}else{if(g){e=c.findParentNode();if(e){return Ext.fly(e).isMasked(g)}}}return b},load:function(a){this.getLoader().load(a);return this},mask:function(a,c,h){var e=this,b=e.dom,d=e.getData(),f=d.maskEl,g;if(!(am.test(b.tagName)&&e.getStyle("position")==="static")){e.addCls(af)}if(f){f.destroy()}f=Ext.DomHelper.append(b,{role:"presentation",cls:"x-mask x-border-box",children:{role:"presentation",cls:c?aj+" "+c:aj,cn:{tag:"div",role:"presentation",cls:"x-mask-msg-inner",cn:{tag:"div",role:"presentation",cls:"x-mask-msg-text",html:a||""}}}},true);g=Ext.get(f.dom.firstChild);d.maskEl=f;e.addCls(ar);f.setDisplayed(true);if(typeof a==="string"){g.setDisplayed(true);g.center(e)}else{g.setDisplayed(false)}if(b===aa.body){f.addCls("x-mask-fixed")}e.saveTabbableState({skipSelf:b===aa.body});if(Ext.isIE9m&&b!==aa.body&&e.isStyle("height","auto")){f.setSize(undefined,h||e.getHeight())}return f},monitorMouseLeave:function(f,c,d){var b=this,a,e={mouseleave:function(g){if(Ext.isIE9m){g.enableIEAsync()}a=Ext.defer(c,f,d||b,[g])},mouseenter:function(){clearTimeout(a)}};b.on(e);return e},puff:function(b){var c=this,a=c.dom,e,d=c.getBox(),f=c.getStyle(["width","height","left","right","top","bottom","position","z-index","font-size","opacity"],true);b=Ext.applyIf(b||{},{easing:"ease-out",duration:500,useDisplay:false});e=function(){var g=Ext.fly(a,"_anim");g.clearOpacity();g.show();this.to={width:d.width*2,height:d.height*2,x:d.x-(d.width/2),y:d.y-(d.height/2),opacity:0,fontSize:"200%"};this.on("afteranimate",function(){var h=Ext.fly(a,"_anim");if(h){if(b.useDisplay){h.setDisplayed(false)}else{h.hide()}h.setStyle(f);Ext.callback(b.callback,b.scope)}})};c.animate({duration:b.duration,easing:b.easing,listeners:{beforeanimate:{fn:e}}});return c},selectable:function(){var a=this;a.dom.unselectable="";a.removeCls(aw.unselectableCls);a.addCls(aw.selectableCls);return a},setCapture:function(){var a=this.dom;if(Ext.isIE9m&&a.setCapture){a.setCapture()}},setHeight:function(c,b){var a=this;if(!b||!a.anim){arguments.callee.$previous.apply(this,arguments)}else{if(!Ext.isObject(b)){b={}}a.animate(Ext.applyIf({to:{height:c}},b))}return a},setHorizontal:function(){var a=this,b=a.verticalCls;delete a.vertical;if(b){delete a.verticalCls;a.removeCls(b)}delete a.setWidth;delete a.setHeight;if(!Ext.isIE8){delete a.getWidth;delete a.getHeight}delete a.styleHooks},updateText:function(a){var d=this,b,c;if(b){c=b.firstChild;if(!c||(c.nodeType!==3||c.nextSibling)){c=aa.createTextNode();d.empty();b.appendChild(c)}if(a){c.data=a}}},setHtml:function(f,g,a,e){var d=this,b,c,h;if(!d.dom){return d}f=f||"";c=d.dom;if(g!==true){c.innerHTML=f;Ext.callback(a,d);return d}b=Ext.id();f+='<span id="'+b+'" role="presentation"></span>';h=Ext.interval(function(){var i,m,l,n,o,j,k;if(!(j=aa.getElementById(b))){return false}clearInterval(h);Ext.removeNode(j);i=Ext.getHead().dom;while((m=V.exec(f))){l=m[1];n=l?l.match(aD):false;if(n&&n[2]){k=aa.createElement("script");k.src=n[2];o=l.match(ax);if(o&&o[2]){k.type=o[2]}i.appendChild(k)}else{if(m[2]&&m[2].length>0){if(e){Ext.functionFactory(m[2]).call(e)}else{Ext.globalEval(m[2])}}}}Ext.callback(a,e||d)},20);c.innerHTML=f.replace(ab,"");return d},setOpacity:function(b,c){var a=this;if(!a.dom){return a}if(!c||!a.anim){a.setStyle("opacity",b)}else{if(typeof c!="object"){c={duration:350,easing:"ease-in"}}a.animate(Ext.applyIf({to:{opacity:b}},c))}return a},setPositioning:function(a){return this.setStyle(a)},setVertical:function(a,d){var b=this,c=aw.prototype;b.vertical=true;if(d){b.addCls(b.verticalCls=d)}b.setWidth=c.setHeight;b.setHeight=c.setWidth;if(!Ext.isIE8){b.getWidth=c.getHeight;b.getHeight=c.getWidth}b.styleHooks=(a===270)?c.verticalStyleHooks270:c.verticalStyleHooks90},setSize:function(b,d,c){var a=this;if(Ext.isObject(b)){c=d;d=b.height;b=b.width}if(!c||!a.anim){a.dom.style.width=aw.addUnits(b);a.dom.style.height=aw.addUnits(d);if(a.shadow||a.shim){a.syncUnderlays()}}else{if(c===true){c={}}a.animate(Ext.applyIf({to:{width:b,height:d}},c))}return a},setVisible:function(a,e){var c=this,b=c.dom,d=ai(c);if(typeof e==="string"){switch(e){case aE:d=aw.DISPLAY;break;case az:d=aw.VISIBILITY;break;case Q:d=aw.OFFSETS;break;case aC:d=aw.CLIP;break}c.setVisibilityMode(d);e=false}if(!e||!c.anim){if(d===aw.DISPLAY){return c.setDisplayed(a)}else{if(d===aw.OFFSETS){c[a?"removeCls":"addCls"](av)}else{if(d===aw.CLIP){c[a?"removeCls":"addCls"](ap)}else{if(d===aw.VISIBILITY){c.fixDisplay();b.style.visibility=a?"":S}}}}}else{if(a){c.setOpacity(0.01);c.setVisible(true)}if(!Ext.isObject(e)){e={duration:350,easing:"ease-in"}}c.animate(Ext.applyIf({callback:function(){if(!a){Ext.fly(b).setVisible(false).setOpacity(1)}},to:{opacity:(a)?1:0}},e))}c.getData()[ag]=a;if(c.shadow||c.shim){c.setUnderlaysVisible(a)}return c},setWidth:function(b,c){var a=this;if(!c||!a.anim){arguments.callee.$previous.apply(this,arguments)}else{if(!Ext.isObject(c)){c={}}a.animate(Ext.applyIf({to:{width:b}},c))}return a},setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(a,c){var b=this;if(!c||!b.anim){arguments.callee.$previous.call(this,a)}else{if(!Ext.isObject(c)){c={}}b.animate(Ext.applyIf({to:{x:a[0],y:a[1]}},c))}return this},setY:function(a,b){return this.setXY([this.getX(),a],b)},show:function(a){if(typeof a==="string"){this.setVisible(true,a);return this}this.setVisible(true,this.anim(a));return this},slideIn:function(g,h,f){var d=this,i=d.dom,a=i.style,b,j,e,c;g=g||"t";h=h||{};b=function(){var m=this,n=h.listeners,o=Ext.fly(i,"_anim"),l,q,k,p;if(!f){o.fixDisplay()}l=o.getBox();if((g=="t"||g=="b")&&l.height===0){l.height=i.scrollHeight}else{if((g=="l"||g=="r")&&l.width===0){l.width=i.scrollWidth}}q=o.getStyle(["width","height","left","right","top","bottom","position","z-index"],true);o.setSize(l.width,l.height);if(h.preserveScroll){e=o.cacheScrollValues()}p=o.wrap({role:"presentation",id:Ext.id()+"-anim-wrap-for-"+o.dom.id,style:{visibility:f?"visible":"hidden"}});c=p.dom.parentNode;p.setPositioning(o.getPositioning());if(p.isStyle("position","static")){p.position("relative")}o.clearPositioning("auto");p.clip();if(e){e()}o.setStyle({visibility:"",position:"absolute"});if(f){p.setSize(l.width,l.height)}switch(g){case"t":k={from:{width:l.width+"px",height:"0px"},to:{width:l.width+"px",height:l.height+"px"}};a.bottom="0px";break;case"l":k={from:{width:"0px",height:l.height+"px"},to:{width:l.width+"px",height:l.height+"px"}};d.anchorAnimX(g);break;case"r":k={from:{x:l.x+l.width,width:"0px",height:l.height+"px"},to:{x:l.x,width:l.width+"px",height:l.height+"px"}};d.anchorAnimX(g);break;case"b":k={from:{y:l.y+l.height,width:l.width+"px",height:"0px"},to:{y:l.y,width:l.width+"px",height:l.height+"px"}};break;case"tl":k={from:{x:l.x,y:l.y,width:"0px",height:"0px"},to:{width:l.width+"px",height:l.height+"px"}};a.bottom="0px";d.anchorAnimX("l");break;case"bl":k={from:{y:l.y+l.height,width:"0px",height:"0px"},to:{y:l.y,width:l.width+"px",height:l.height+"px"}};d.anchorAnimX("l");break;case"br":k={from:{x:l.x+l.width,y:l.y+l.height,width:"0px",height:"0px"},to:{x:l.x,y:l.y,width:l.width+"px",height:l.height+"px"}};d.anchorAnimX("r");break;case"tr":k={from:{x:l.x+l.width,width:"0px",height:"0px"},to:{x:l.x,width:l.width+"px",height:l.height+"px"}};a.bottom="0px";d.anchorAnimX("r");break}p.show();j=Ext.apply({},h);delete j.listeners;j=new Ext.fx.Anim(Ext.applyIf(j,{target:p,duration:500,easing:"ease-out",from:f?k.to:k.from,to:f?k.from:k.to}));j.on("afteranimate",function(){var r=Ext.fly(i,"_anim");r.setStyle(q);if(f){if(h.useDisplay){r.setDisplayed(false)}else{r.hide()}}if(p.dom){if(p.dom.parentNode){p.dom.parentNode.insertBefore(r.dom,p.dom)}else{c.appendChild(r.dom)}p.destroy()}if(e){e()}m.end()});if(n){j.on(n)}};d.animate({duration:h.duration?Math.max(h.duration,500)*2:1000,listeners:{beforeanimate:b}});return d},slideOut:function(b,a){return this.slideIn(b,a,true)},swallowEvent:function(e,d){var b=this,a,f,c=function(g){g.stopPropagation();if(d){g.preventDefault()}};if(Ext.isArray(e)){f=e.length;for(a=0;a<f;a++){b.on(e[a],c)}return b}b.on(e,c);return b},switchOff:function(b){var c=this,a=c.dom,d;b=Ext.applyIf(b||{},{easing:"ease-in",duration:500,remove:false,useDisplay:false});d=function(){var j=Ext.fly(a,"_anim"),e=this,f=j.getSize(),i=j.getXY(),g,h;j.clearOpacity();j.clip();h=j.getPositioning();g=new Ext.fx.Animator({target:a,duration:b.duration,easing:b.easing,keyframes:{33:{opacity:0.3},66:{height:1,y:i[1]+f.height/2},100:{width:1,x:i[0]+f.width/2}}});g.on("afteranimate",function(){var k=Ext.fly(a,"_anim");if(b.useDisplay){k.setDisplayed(false)}else{k.hide()}k.clearOpacity();k.setPositioning(h);k.setSize(f);e.end()})};c.animate({duration:(Math.max(b.duration,500)*2),listeners:{beforeanimate:{fn:d}},callback:b.callback,scope:b.scope});return c},syncContent:function(k){k=Ext.getDom(k);var j=k.childNodes,m=j.length,a=this.dom,n=a.childNodes,c=n.length,e,b,h,f,i,l,d,g=a._extData;if(Ext.isIE9m&&a.mergeAttributes){a.mergeAttributes(k,true);a.src=k.src}else{i=k.attributes;l=i.length;for(e=0;e<l;e++){d=i[e].name;if(d!=="id"){a.setAttribute(d,i[e].value)}}}if(g){g.isSynchronized=false}if(m!==c){a.innerHTML=k.innerHTML;return}for(e=0;e<m;e++){h=j[e];b=n[e];f=h.nodeType;if(f!==b.nodeType||(f===1&&h.tagName!==b.tagName)){a.innerHTML=k.innerHTML;return}if(f===3){b.data=h.data}else{if(h.id&&b.id!==h.id){b.id=h.id}b.style.cssText=h.style.cssText;b.className=h.className;Ext.fly(b,"_syncContent").syncContent(h)}}},toggle:function(b){var a=this;a.setVisible(!a.isVisible(),a.anim(b));return a},unmask:function(){var b=this,a=b.getData(),c=a.maskEl,d;if(c){d=c.dom.style;if(d.clearExpression){d.clearExpression("width");d.clearExpression("height")}if(c){c.destroy();delete a.maskEl}b.removeCls([ar,af])}b.restoreTabbableState(b.dom===aa.body)},unclip:function(){var b=this,a=b.getData(),c;if(a[ao]){a[ao]=false;c=a[ah];if(c.o){b.setStyle(U,c.o)}if(c.x){b.setStyle(ak,c.x)}if(c.y){b.setStyle(al,c.y)}}return b},translate:function(c,a,b){if(Ext.supports.CssTransforms&&!Ext.isIE9m){arguments.callee.$previous.apply(this,arguments)}else{if(c!=null){this.dom.style.left=c+"px"}if(a!=null){this.dom.style.top=a+"px"}}},unselectable:function(){var a=this;if(Ext.isOpera){a.dom.unselectable="on"}a.removeCls(aw.selectableCls);a.addCls(aw.unselectableCls);return a},privates:{findTabbableElements:function(m){var l,b,p,h,g,d=this.dom,e=Ext.Element.tabbableSavedCounterAttribute,n=[],o=0,k,i,f,c,a,j;if(!d){return n}if(m){l=m.skipSelf;b=m.skipChildren;p=m.excludeRoot;h=m.includeSaved;g=m.includeHidden}p=p&&Ext.getDom(p);if(p&&p.contains(d)){return n}if(!l&&((h&&d.hasAttribute(e))||this.isTabbable(g))){n[o++]=d}if(b){return n}k=d.querySelectorAll(Ext.Element.tabbableSelector);a=k.length;if(!a){return n}f=new Ext.dom.Fly();for(c=0;c<a;c++){i=k[c];j=+i.getAttribute("tabIndex");if(((h&&i.hasAttribute(e))||(!(j<0)&&f.attach(i).isTabbable(g)))&&!(p&&(p===i||p.contains(i)))){n[o++]=i}}return n},saveTabbableState:function(d){var a=Ext.Element.tabbableSavedCounterAttribute,e=Ext.Element.tabbableSavedValueAttribute,g,f,b,c,h;if(!d||d.includeSaved==null){d=Ext.Object.chain(d||null);d.includeSaved=true}f=this.findTabbableElements(d);for(c=0,h=f.length;c<h;c++){b=f[c];g=+b.getAttribute(a);if(g>0){b.setAttribute(a,++g)}else{if(b.hasAttribute("tabIndex")){b.setAttribute(e,b.getAttribute("tabIndex"))}else{b.setAttribute(e,"none")}b.setAttribute("tabIndex","-1");b.setAttribute(a,"1")}}return f},restoreTabbableState:function(k,e){var g=this.dom,c=Ext.Element.tabbableSavedCounterAttribute,b=Ext.Element.tabbableSavedValueAttribute,i=[],a,j,i,h,f,d;if(!g){return this}if(!e){i=Ext.Array.from(g.querySelectorAll("["+c+"]"))}if(!k){i.unshift(g)}for(f=0,d=i.length;f<d;f++){h=i[f];if(!h.hasAttribute(c)||!h.hasAttribute(b)){continue}j=+h.getAttribute(c);if(j>1){h.setAttribute(c,--j);continue}a=h.getAttribute(b);if(a==="none"){h.removeAttribute("tabIndex")}else{h.setAttribute("tabIndex",a)}h.removeAttribute(b);h.removeAttribute(c)}return i}},deprecated:{"4.0":{methods:{pause:function(b){var a=this;Ext.fx.Manager.setFxDefaults(a.id,{delay:b});return a},scale:function(c,b,a){this.animate(Ext.apply({},a,{width:c,height:b}));return this},shift:function(a){this.animate(a);return this}}},"4.2":{methods:{moveTo:function(c,a,b){return this.setXY([c,a],b)},setBounds:function(d,a,b,e,c){return this.setBox({x:d,y:a,width:b,height:e},c)},setLeftTop:function(a,b){var c=this,d=c.dom.style;d.left=aw.addUnits(a);d.top=aw.addUnits(b);if(c.shadow||c.shim){c.syncUnderlays()}return c},setLocation:function(c,a,b){return this.setXY([c,a],b)}}},"5.0":{methods:{getAttributeNS:function(a,b){return this.getAttribute(b,a)},getCenterXY:function(){return this.getAlignToXY(aa,"c-c")},getComputedHeight:function(){return Math.max(this.dom.offsetHeight,this.dom.clientHeight)||parseFloat(this.getStyle(ac))||0},getComputedWidth:function(){return Math.max(this.dom.offsetWidth,this.dom.clientWidth)||parseFloat(this.getStyle(aA))||0},getStyleSize:function(){var b=this,a=this.dom,e=(a===aa||a===aa.body),c,f,d;if(e){return{width:aw.getViewportWidth(),height:aw.getViewportHeight()}}c=b.getStyle(["height","width"],true);if(c.width&&c.width!=="auto"){f=parseFloat(c.width)}if(c.height&&c.height!=="auto"){d=parseFloat(c.height)}return{width:f||b.getWidth(true),height:d||b.getHeight(true)}},isBorderBox:function(){return true},isDisplayed:function(){return !this.isStyle("display","none")},focusable:"isFocusable"}}}}})(),function(){var F=Ext.dom.Element,G=F.prototype,z=!Ext.isIE8,S=document,J=S.defaultView,A=/alpha\(opacity=(.*)\)/i,N=/^\s+|\s+$/g,y=G.styleHooks,C=Ext.supports,P,H,Q,D,O,k,R;G._init(F);delete G._init;Ext.plainTableCls="x-table-plain";Ext.plainListCls="x-list-plain";if(Ext.CompositeElementLite){Ext.CompositeElementLite.importElementMethods()}if(!C.Opacity&&Ext.isIE){Ext.apply(y.opacity,{get:function(a){var c=a.style.filter,d,b;if(c.match){d=c.match(A);if(d){b=parseFloat(d[1]);if(!isNaN(b)){return b?b/100:0}}}return 1},set:function(a,d){var b=a.style,c=b.filter.replace(A,"").replace(N,"");b.zoom=1;if(typeof(d)==="number"&&d>=0&&d<1){d*=100;b.filter=c+(c.length?" ":"")+"alpha(opacity="+d+")"}else{b.filter=c}}})}if(!C.matchesSelector){var L=/^([a-z]+|\*)?(?:\.([a-z][a-z\-_0-9]*))?$/i,K=/\-/g,T,B=function(a,c){var b=new RegExp("(?:^|\\s+)"+c.replace(K,"\\-")+"(?:\\s+|$)");if(a&&a!=="*"){a=a.toUpperCase();return function(d){return d.tagName===a&&b.test(d.className)}}return function(d){return b.test(d.className)}},E=function(a){a=a.toUpperCase();return function(b){return b.tagName===a}},I={};G.matcherCache=I;G.is=function(e){if(!e){return true}var g=this.dom,i,d,a,b,c,f,h;if(g.nodeType!==1){return false}if(!(a=Ext.isFunction(e)?e:I[e])){if(!(d=e.match(L))){b=g.parentNode;if(!b){c=true;b=T||(T=S.createDocumentFragment());T.appendChild(g)}f=Ext.Array.indexOf(Ext.fly(b,"_is").query(e),g)!==-1;if(c){T.removeChild(g)}return f}h=d[1];i=d[2];I[e]=a=i?B(h,i):E(h)}return a(g)}}if(!J||!J.getComputedStyle){G.getStyle=function(i,p){var o=this,b=o.dom,f=typeof i!=="string",h=i,n=h,q=1,d=p,l=o.styleHooks,g,r,j,m,c,e,a;if(f){j={};h=n[0];a=0;if(!(q=n.length)){return j}}if(!b||b.documentElement){return j||""}r=b.style;if(p){e=r}else{e=b.currentStyle;if(!e){d=true;e=r}}do{m=l[h];if(!m){l[h]=m={name:F.normalize(h)}}if(m.get){c=m.get(b,o,d,e)}else{g=m.name;c=e[g]}if(!f){return c}j[h]=c;h=n[++a]}while(a<q);return j}}if(Ext.isIE8){R=function(a,d,c,b){if(b[this.styleName]==="none"){return"0px"}return b[this.name]};Q=["Top","Right","Bottom","Left"];D=Q.length;while(D--){O=Q[D];k="border"+O+"Width";y["border-"+O.toLowerCase()+"-width"]=y[k]={name:k,styleName:"border"+O+"Style",get:R}}var M="x-sync-repaint";G.syncRepaint=function(){this.addCls(M);this.getWidth();this.removeCls(M)}}if(Ext.isIE10m){Ext.override(F,{focus:function(e,a){var c=this,d;a=a||c.dom;if(Number(e)){Ext.defer(c.focus,e,c,[null,a])}else{Ext.GlobalEvents.fireEvent("beforefocus",a);if(a&&(a.tagName==="INPUT"||a.tagname==="TEXTAREA")){Ext.synchronouslyFocusing=document.activeElement}try{a.focus()}catch(b){d=b}if(Ext.synchronouslyFocusing&&document.activeElement!==a&&!d){a.focus()}Ext.synchronouslyFocusing=null}return c}})}Ext.apply(Ext,{enableGarbageCollector:true,isBorderBox:true,useShims:false,getDetachedBody:function(){var a=Ext.detachedBodyEl;if(!a){a=S.createElement("div");Ext.detachedBodyEl=a=new Ext.dom.Fly(a);a.isDetachedBody=true}return a},getElementById:function(b){var c=S.getElementById(b),a;if(!c&&(a=Ext.detachedBodyEl)){c=a.dom.querySelector(Ext.makeIdSelector(b))}return c},addBehaviors:function(e){if(!Ext.isReady){Ext.onInternalReady(function(){Ext.addBehaviors(e)})}else{var d={},a,b,c;for(b in e){if((a=b.split("@"))[1]){c=a[0];if(!d[c]){d[c]=Ext.fly(document).select(c,true)}d[c].on(a[1],e[b])}}d=null}}});if(Ext.isIE9m){Ext.getElementById=function(b){var c=S.getElementById(b),a;if(!c&&(a=Ext.detachedBodyEl)){c=a.dom.all[b]}return c};G.getById=function(d,b){var f=this.dom,e=null,a,c;if(f){c=(z&&S.getElementById(d))||f.all[d];if(c){if(b){e=c}else{a=Ext.cache[d];if(a){if(a.skipGarbageCollection||!Ext.isGarbage(a.dom)){e=a}else{a.destroy()}}e=e||new Ext.Element(c)}}}return e}}else{if(!S.querySelector){Ext.getDetachedBody=Ext.getBody;Ext.getElementById=function(a){return S.getElementById(a)};G.getById=function(b,a){var c=S.getElementById(b);return a?c:(c?Ext.get(c):null)}}}if(Ext.isIE&&!(Ext.isIE9p&&S.documentMode>=9)){G.getAttribute=function(b,c){var a=this.dom,d;if(c){d=typeof a[c+":"+b];if(d!=="undefined"&&d!=="unknown"){return a[c+":"+b]||null}return null}if(b==="for"){b="htmlFor"}return a[b]||null}}Ext.onInternalReady(function(){var d=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,h=[],o=G.setWidth,n=G.setHeight,i=G.setSize,g=/^\d+(?:\.\d*)?px$/i,p,b,e,j;if(C.FixedTableWidthBug){y.width={name:"width",set:function(q,r,t){var u=q.style,v=t._needsTableWidthFix,s=u.display;if(v){u.display="none"}u.width=r;if(v){q.scrollWidth;u.display=s}}};G.setWidth=function(t,v){var r=this,q=r.dom,u=q.style,w=r._needsTableWidthFix,s=u.display;if(w&&!v){u.display="none"}o.call(r,t,v);if(w&&!v){q.scrollWidth;u.display=s}return r};G.setSize=function(t,w,v){var r=this,q=r.dom,u=q.style,x=r._needsTableWidthFix,s=u.display;if(x&&!v){u.display="none"}i.call(r,t,w,v);if(x&&!v){q.scrollWidth;u.display=s}return r}}if(Ext.isIE8){y.height={name:"height",set:function(q,r,t){var u=t.component,s,v;if(u&&u._syncFrameHeight&&t===u.el){v=u.frameBody.dom.style;if(g.test(r)){s=u.getFrameInfo();if(s){v.height=(parseInt(r,10)-s.height)+"px"}}else{if(!r||r==="auto"){v.height=""}}}q.style.height=r}};G.setHeight=function(u,s){var r=this.component,q,t;if(r&&r._syncFrameHeight&&this===r.el){t=r.frameBody.dom.style;if(!u||u==="auto"){t.height=""}else{q=r.getFrameInfo();if(q){t.height=(u-q.height)+"px"}}}return n.call(this,u,s)};G.setSize=function(r,v,t){var s=this.component,q,u;if(s&&s._syncFrameHeight&&this===s.el){u=s.frameBody.dom.style;if(!v||v==="auto"){u.height=""}else{q=s.getFrameInfo();if(q){u.height=(v-q.height)+"px"}}}return i.call(this,r,v,t)}}Ext.getDoc().on("selectstart",function(r,q){var s=F.selectableCls,t=F.unselectableCls,v=q&&q.tagName;v=v&&v.toLowerCase();if(v==="input"||v==="textarea"){return}while(q&&q.nodeType===1&&q!==S.documentElement){var u=Ext.fly(q);if(u.hasCls(s)){return}if(u.hasCls(t)){r.stopEvent();return}q=q.parentNode}});function a(q,t,r,u){var s=u[this.name]||"";return d.test(s)?"transparent":s}function l(r,q,s){return function(){r.selectionStart=q;r.selectionEnd=s}}function m(s){var u=C.DisplayChangeInputSelectionBug,t=C.DisplayChangeTextAreaSelectionBug,r,w,q,v;if(u||t){r=F.getActiveElement();w=r&&r.tagName;if((t&&w==="TEXTAREA")||(u&&w==="INPUT"&&r.type==="text")){if(Ext.fly(s).isAncestor(r)){q=r.selectionStart;v=r.selectionEnd;if(Ext.isNumber(q)&&Ext.isNumber(v)){return l(r,q,v)}}}}return Ext.emptyFn}function c(q,t,r,u){var w=u.marginRight,v,s;if(w!=="0px"){v=q.style;s=v.display;v.display="inline-block";w=(r?u:q.ownerDocument.defaultView.getComputedStyle(q,null)).marginRight;v.display=s}return w}function f(q,t,r,u){var x=u.marginRight,v,w,s;if(x!=="0px"){v=q.style;w=m(q);s=v.display;v.display="inline-block";x=(r?u:q.ownerDocument.defaultView.getComputedStyle(q,"")).marginRight;v.display=s;w()}return x}if(!C.RightMargin){y.marginRight=y["margin-right"]={name:"marginRight",get:(C.DisplayChangeInputSelectionBug||C.DisplayChangeTextAreaSelectionBug)?f:c}}if(!C.TransparentColor){p=["background-color","border-color","color","outline-color"];for(b=p.length;b--;){e=p[b];j=F.normalize(e);y[e]=y[j]={name:j,get:a}}}G.verticalStyleHooks90=P=Ext.Object.chain(y);G.verticalStyleHooks270=H=Ext.Object.chain(y);P.width=y.height||{name:"height"};P.height=y.width||{name:"width"};P["margin-top"]={name:"marginLeft"};P["margin-right"]={name:"marginTop"};P["margin-bottom"]={name:"marginRight"};P["margin-left"]={name:"marginBottom"};P["padding-top"]={name:"paddingLeft"};P["padding-right"]={name:"paddingTop"};P["padding-bottom"]={name:"paddingRight"};P["padding-left"]={name:"paddingBottom"};P["border-top"]={name:"borderLeft"};P["border-right"]={name:"borderTop"};P["border-bottom"]={name:"borderRight"};P["border-left"]={name:"borderBottom"};H.width=y.height||{name:"height"};H.height=y.width||{name:"width"};H["margin-top"]={name:"marginRight"};H["margin-right"]={name:"marginBottom"};H["margin-bottom"]={name:"marginLeft"};H["margin-left"]={name:"marginTop"};H["padding-top"]={name:"paddingRight"};H["padding-right"]={name:"paddingBottom"};H["padding-bottom"]={name:"paddingLeft"};H["padding-left"]={name:"paddingTop"};H["border-top"]={name:"borderRight"};H["border-right"]={name:"borderBottom"};H["border-bottom"]={name:"borderLeft"};H["border-left"]={name:"borderTop"};if(!Ext.scopeCss){h.push("x-body")}if(C.Touch){h.push("x-touch")}if(Ext.isIE&&Ext.isIE9m){h.push("x-ie","x-ie9m");h.push("x-ie8p");if(Ext.isIE8){h.push("x-ie8")}else{h.push("x-ie9","x-ie9p")}if(Ext.isIE8m){h.push("x-ie8m")}}if(Ext.isIE10){h.push("x-ie10")}if(Ext.isIE10p){h.push("x-ie10p")}if(Ext.isIE11){h.push("x-ie11")}if(Ext.isGecko){h.push("x-gecko")}if(Ext.isOpera){h.push("x-opera")}if(Ext.isOpera12m){h.push("x-opera12m")}if(Ext.isWebKit){h.push("x-webkit")}if(Ext.isSafari){h.push("x-safari")}if(Ext.isChrome){h.push("x-chrome")}if(Ext.isMac){h.push("x-mac")}if(Ext.isLinux){h.push("x-linux")}if(!C.CSS3BorderRadius){h.push("x-nbr")}if(!C.CSS3LinearGradient){h.push("x-nlg")}if(C.Touch){h.push("x-touch")}Ext.getBody().addCls(h)},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 b=this;b.callParent();Ext.onInternalReady(function(){b.attachListeners()})},attachListeners:function(){Ext.get(window).on("resize",this.fireResize,this,{buffer:this.resizeBuffer});Ext.getDoc().on("mousedown",this.fireMouseDown,this)},fireMouseDown:function(b){this.fireEvent("mousedown",b)},fireResize:function(){var g=this,e=Ext.Element,f=e.getViewportWidth(),h=e.getViewportHeight();if(g.curHeight!==h||g.curWidth!==f){g.curHeight=h;g.curWidth=f;g.fireEvent("resize",f,h)}}},1,0,0,0,0,0,[Ext,"GlobalEvents",Ext,"globalEvents"],function(b){Ext.on=function(){return b.addListener.apply(b,arguments)};Ext.un=function(){return b.removeListener.apply(b,arguments)}}));Ext.define("Ext.overrides.GlobalEvents",{override:"Ext.GlobalEvents",deprecated:{5:{methods:{addListener:function(o,l,k,j,p,q,n){var r,m;if(o==="ready"){m=l}else{if(typeof o!=="string"){for(r in o){if(r==="ready"){m=o[r]}}}}if(m){Ext.onReady(m)}this.callParent([o,l,k,j,p,q,n])}}}}});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;i<len;i+=1){a.push(me.encodeValue(o[i],cnewline),sep)}a[a.length-1]=newline+"]";return a.join("")},encodeObjectPretty=function(o,newline){var cnewline=newline+" ",sep=","+cnewline,a=["{",cnewline],i,val;for(i in o){val=o[i];if(!useHasOwn||o.hasOwnProperty(i)){if(typeof val==="function"||val===undefined){continue}a.push(me.encodeValue(i)+": "+me.encodeValue(val,cnewline),sep)}}a[a.length-1]=newline+"}";return a.join("")},encodeArray=function(o,newline){if(newline){return encodeArrayPretty(o,newline)}var a=["[",""],len=o.length,i;for(i=0;i<len;i+=1){a.push(me.encodeValue(o[i]),",")}a[a.length-1]="]";return a.join("")},encodeObject=function(o,newline){if(newline){return encodeObjectPretty(o,newline)}var a=["{",""],i,val;for(i in o){val=o[i];if(!useHasOwn||o.hasOwnProperty(i)){if(typeof val==="function"||val===undefined){continue}a.push(me.encodeValue(i),":",me.encodeValue(val),",")}}a[a.length-1]="}";return a.join("")};me.encodeString=encodeString;me.encodeValue=doEncode;me.encodeDate=function(o){return'"'+o.getFullYear()+"-"+pad(o.getMonth()+1)+"-"+pad(o.getDate())+"T"+pad(o.getHours())+":"+pad(o.getMinutes())+":"+pad(o.getSeconds())+'"'};me.encode=function(o){if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.stringify(o)}return me.encodeValue(o)};me.decode=function(json,safe){try{if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.parse(json)}return doDecode(json)}catch(e){if(safe){return null}Ext.raise({sourceClass:"Ext.JSON",sourceMethod:"decode",msg:"You're trying to decode an invalid JSON String: "+json})}};me.encodeMSDate=encodeMSDate;if(!Ext.util){Ext.util={}}Ext.util.JSON=me;Ext.encode=me.encode;Ext.decode=me.decode})());(Ext.cmd.derive("Ext.mixin.Inheritable",Ext.Mixin,{mixinConfig:{id:"inheritable"},getInherited:function(j){var n=this,l=(j&&n.inheritedStateInner)||n.inheritedState,q=n.getRefOwner(),r=n.isContainer,k,p,o,m;if(!l||l.invalid){k=n.getRefOwner();m=n.ownerLayout;if(q){o=m?m===q.layout:true}n.inheritedState=l=Ext.Object.chain(k?k.getInherited(o):Ext.rootInheritedState);if(r){n.inheritedStateInner=p=Ext.Object.chain(l)}n.initInheritedState(l,p);l=(r&&j)?n.inheritedStateInner:n.inheritedState}return l},getInheritedConfig:function(h,g){var i=this.inheritedState,f,j;if(!i||i.invalid){i=this.getInherited()}j=i[h];if(g&&i.hasOwnProperty(h)){f=j;delete i[h];j=i[h];i[h]=f}return j},resolveListenerScope:function(i,h){var k=this,j=(typeof h==="boolean"),l=Ext._namedScopes[i],g;if(!l){g=k.getInheritedConfig("defaultListenerScope",j?h:true)||i||k}else{if(l.isController){g=k.getInheritedConfig("controller",j?h:!l.isSelf)}else{if(l.isSelf){g=k.getInheritedConfig("defaultListenerScope",j&&h)||k}else{if(l.isThis){g=k}}}}return g||null},resolveSatelliteListenerScope:function(j,h){var i=this,f=Ext._namedScopes[h],g;if(!f){g=i.getInheritedConfig("defaultListenerScope")||h||i}else{if(f.isController){g=i.getInheritedConfig("controller")}else{if(f.isSelf){g=i.getInheritedConfig("defaultListenerScope")||j}else{if(f.isThis){g=j}}}}return g||null},lookupReferenceHolder:function(b){return this.getInheritedConfig("referenceHolder",b!==false)||null},getRefOwner:function(){var b=this;return b.ownerCt||b.parent||b.$initParent||b.ownerCmp||b.floatParent},invalidateInheritedState:function(){var b=this.inheritedState;if(b){b.invalid=true;delete this.inheritedState}},privates:{fixReference:function(){var d=this,c;if(d.getReference()){c=d.lookupReferenceHolder();if(c){c.attachReference(d)}}},onInheritedAdd:function(d,e){var f=this;if(f.inheritedState&&e){f.invalidateInheritedState()}if(f.getReference()){Ext.ComponentManager.markReferencesDirty()}},onInheritedRemove:function(d){var e=this,f;if(e.getReference()){f=e.lookupReferenceHolder();if(f){f.clearReference(e)}}if(e.inheritedState&&!d){e.invalidateInheritedState()}}}},0,0,0,0,0,0,[Ext.mixin,"Inheritable"],function(){Ext.rootInheritedState={}}));(Ext.cmd.derive("Ext.mixin.Bindable",Ext.Base,{mixinId:"bindable",config:{bind:{$value:null,lazy:true},controller:null,defaultListenerScope:false,publishes:{$value:null,lazy:true,merge:function(c,d){return this.mergeSets(c,d)}},reference:null,session:{$value:null,lazy:true},twoWayBindable:{$value:null,lazy:true,merge:function(c,d){return this.mergeSets(c,d)}},viewModel:{$value:null,lazy:true}},defaultBindProperty:null,validRefRe:/^[a-z_][a-z0-9_]*$/i,initInheritedState:function(m){var l=this,i=l.getReference(),h=l.getController(),n=l.getConfig("viewModel",true),j=l.getConfig("session",true),k=l.getDefaultListenerScope();if(h){m.controller=h}if(k){m.defaultListenerScope=l}else{if(h){m.defaultListenerScope=h}}if(n){if(!n.isViewModel){n=l}m.viewModel=n}if(j){if(!j.isSession){j=l}m.session=j}if(i){l.referenceKey=(m.referencePath||"")+i;l.viewModelKey=(m.viewModelPath||"")+i}},lookupController:function(b){return this.getInheritedConfig("controller",b)||null},lookupSession:function(d){var c=d?null:this.getSession();if(!c){c=this.getInheritedConfig("session",d);if(c&&!c.isSession){c=c.getInherited().session=c.getSession()}}return c||null},lookupViewModel:function(d){var c=d?null:this.getViewModel();if(!c){c=this.getInheritedConfig("viewModel",d);if(c&&!c.isViewModel){c=c.getInherited().viewModel=c.getViewModel()}}return c||null},publishState:function(m,n){var o=this,u=o.publishedState,r=o.getBind(),p=r&&m&&r[m],q=0,t,v,s,l;if(p&&!p.syncing&&!p.isReadOnly()){if(!(p.calls===0&&(n==null||n===o.getInitialConfig()[m]))){p.setValue(n)}}if(!(v=o.getPublishes())){return}if(!(s=o.lookupViewModel())){return}if(!(l=o.viewModelKey)){return}if(m&&u){if(!v[m]){return}if(!(n&&n.constructor===Object)&&!(n instanceof Array)){if(u[m]===n){return}}l+=".";l+=m}else{u=u||(o.publishedState={});for(t in v){++q;if(t===m){u[t]=n}else{u[t]=o[t]}}if(!q){return}n=u}s.set(l,n)},privates:{addBindableUpdater:function(j){var f=this,i=f.self.$config.configs,g=i[j],h;if(g&&!f.hasOwnProperty(h=g.names.update)){f[h]=g.bindableUpdater||(g.root.bindableUpdater=f.makeBindableUpdater(g))}},applyBind:function(p,b){if(!p){return p}var n=this,l=n.lookupViewModel(),o=n.getTwoWayBindable(),r=n._getBindTemplateScope,m,k,q;if(!b||typeof b==="string"){b={}}if(Ext.isString(p)){m=p;p={};p[n.defaultBindProperty]=m}for(k in p){q=p[k];m=b[k];if(m&&typeof m!=="string"){m.destroy();m=null}if(q){m=l.bind(q,n.onBindNotify,n);m._config=Ext.Config.get(k);m.getTemplateScope=r}b[k]=m;if(o&&o[k]&&!m.isReadOnly()){n.addBindableUpdater(k)}}return b},applyController:function(b){if(b){b=Ext.Factory.controller(b);b.setView(this)}return b},applyPublishes:function(d){if(this.lookupViewModel()){for(var c in d){this.addBindableUpdater(c)}}return d},applySession:function(f){if(!f){return null}if(!f.isSession){var d=this.lookupSession(true),e=(f===true)?{}:f;if(d){f=d.spawn(e)}else{f=new Ext.data.Session(e)}}return f},applyViewModel:function(e){var h=this,f,g;if(!e){return null}if(!e.isViewModel){f={parent:h.lookupViewModel(true)};f.session=h.getSession();if(!g&&!f.parent){f.session=h.lookupSession()}if(e){if(e.constructor===Object){Ext.apply(f,e)}else{if(typeof e==="string"){f.type=e}}}e=Ext.Factory.viewModel(f)}return e},_getBindTemplateScope:function(){return this.scope.resolveListenerScope()},destroyBindable:function(){var h=this,e=h.getConfig("viewModel",true),g=h.getConfig("session",true),f=h.getController();if(e&&e.isViewModel){e.destroy();h.setViewModel(null)}if(g&&g.isSession){if(g.getAutoDestroy()){g.destroy()}h.setSession(null)}if(f){h.setController(null);f.destroy()}},initBindable:function(){this.initBindable=Ext.emptyFn;this.getBind();this.getPublishes()},makeBindableUpdater:function(d){var c=d.names.update;return function(b,h){var g=this,a=g.self.prototype[c];if(a){a.call(g,b,h)}g.publishState(d.name,b)}},isSyncing:function(e){var g=this.getBind(),f=false,h;if(g){h=g[e];if(h){f=h.syncing>0}}return f},onBindNotify:function(d,e,f){f.syncing=(f.syncing+1)||1;this[f._config.names.set](d);--f.syncing},removeBindings:function(){var e=this,g,f,h;if(!e.destroying){g=e.getBind();if(g&&typeof g!=="string"){for(f in g){h=g[f];h.destroy();h._config=h.getTemplateScope=null}}}e.setBind(null)},updateSession:function(c){var d=this.getInherited();if(c){d.session=c}else{delete d.session}},updateViewModel:function(d){var f=this.getInherited(),e=this.getController();if(d){f.viewModel=d;d.setView(this);if(e){e.initViewModel(d)}}else{delete f.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(q,o,m,l,s,t,r){var p=this,u,v,n;s=s||l.order;if(s){n=(l&&l.priority);if(!n){l=l?Ext.Object.chain(l):{};l.priority=p.$orderToPriority[s]}}u=p.$delegatedEvents||(p.$delegatedEvents={});v=u[q]||(u[q]=new Ext.util.Event(p,q));if(v.addListener(o,m,l,t,r)){p.$hasDelegatedListeners._incr_(q)}},clearDelegatedListeners:function(){var i=this,f=i.$delegatedEvents,g,j,h;if(f){for(g in f){j=f[g];h=j.listeners.length;j.clearListeners();i.$hasDelegatedListeners._decr_(g,h);delete f[g]}}},doFireDelegatedEvent:function(h,m){var j=this,n=true,i,l,k;if(j.$hasDelegatedListeners[h]){i=j.getRefOwner();while(i){l=i.$delegatedEvents;if(l){k=l[h];if(k){n=k.fireDelegated(j,m);if(n===false){break}}}i=i.getRefOwner()}}return n},removeDelegatedListener:function(h,k,l){var i=this,g=i.$delegatedEvents,j;if(g){j=g[h];if(j&&j.removeListener(k,l)){i.$hasDelegatedListeners._decr_(h);if(j.listeners.length===0){delete g[h]}}}}},onClassMixedIn:function(d){function c(){}d.prototype.HasListeners=d.HasListeners=c;c.prototype=d.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},0,0,0,0,0,0,[Ext.mixin,"ComponentDelegation"],function(c){function d(){}c.HasDelegatedListeners=d;d.prototype=c.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()}));(Ext.cmd.derive("Ext.Widget",Ext.Evented,{isWidget:true,element:{reference:"element"},observableType:"component",cachedConfig:{style:null},config:{userCls:null},eventedConfig:{width:null,height:null},template:[],constructor:function(d){var f=this,e;f.initId(d);f.initElement();f.mixins.observable.constructor.call(f,d);Ext.ComponentManager.register(f);e=f.getController();if(e){e.init(f)}},afterCachedConfig:function(){var m=this,l=m.self.prototype,i=m.referenceList,r=m.renderElement,o,q,p,n,s,t;l.renderTemplate=o=document.createDocumentFragment();o.appendChild(r.clone(true,true));t=o.querySelectorAll("[id]");for(p=0,n=t.length;p<n;p++){q=t[p];q.removeAttribute("id")}for(p=0,n=i.length;p<n;p++){s=i[p];m[s].dom.removeAttribute("reference")}},addCls:function(b){this.el.addCls(b)},applyWidth:function(b){return this.filterLengthValue(b)},applyHeight:function(b){return this.filterLengthValue(b)},clearListeners:function(){var b=this;b.mixins.observable.clearListeners.call(b);b.mixins.componentDelegation.clearDelegatedListeners.call(b)},destroy:function(){var h=this,f=h.referenceList,j,i,g;for(j=0,i=f.length;j<i;j++){g=f[j];if(h.hasOwnProperty(g)){h[g].destroy();h[g]=null}}h.destroyBindable();Ext.Evented.prototype.destroy.call(this);Ext.ComponentManager.unregister(h)},doFireEvent:function(f,i,g){var h=this,j=h.mixins.observable.doFireEvent.call(h,f,i,g);if(j!==false){j=h.mixins.componentDelegation.doFireDelegatedEvent.call(h,f,i)}return j},getElementConfig:function(){var c=this,d=c.element;if(!("children" in d)){d=Ext.apply({children:c.getTemplate()},d)}return d},getSize:function(){return{width:this.getWidth(),height:this.getHeight()}},getTemplate:function(){return this.template},initElement:function(){var p=this,o=p.self.prototype,z=p.getId(),i=p.referenceList=p.referenceList=[],x=true,s,v,t,y,u,q,r,w;if(o.hasOwnProperty("renderTemplate")){s=p.renderTemplate.cloneNode(true);v=s.firstChild}else{x=false;s=document.createDocumentFragment();v=Ext.Element.create(p.processElementConfig.call(o),true);s.appendChild(v)}y=s.querySelectorAll("[reference]");for(u=0,q=y.length;u<q;u++){r=y[u];w=r.getAttribute("reference");if(x){r.removeAttribute("reference")}if(w==="element"){r.id=z;t=p.el=p.addElementReference(w,r);t.dom.setAttribute("data-componentid",z)}else{p.addElementReferenceOnDemand(w,r)}i.push(w)}if(v===t.dom){p.renderElement=t}else{p.addElementReferenceOnDemand("renderElement",v)}},is:function(b){return Ext.ComponentQuery.is(this,b)},isXType:function(c,d){return d?(Ext.Array.indexOf(this.xtypes,c)!==-1):!!this.xtypesMap[c]},removeCls:function(b){this.el.removeCls(b)},toggleCls:function(d,c){this.element.toggleCls(d,c)},resolveListenerScope:function(c,d){return this.mixins.inheritable.resolveListenerScope.call(this,c,d)},setSize:function(c,d){if(c!==undefined){this.setWidth(c)}if(d!==undefined){this.setHeight(d)}},applyStyle:function(c,d){if(d&&c===d&&Ext.isObject(d)){c=Ext.apply({},c)}return c},updateStyle:function(b){this.element.applyStyles(b)},updateWidth:function(b){this.element.setWidth(b)},updateHeight:function(b){this.element.setHeight(b)},onFocusEnter:Ext.emptyFn,onFocusLeave:Ext.emptyFn,isAncestor:function(){return false},privates:{addElementReferenceOnDemand:function(d,c){if(this._elementListeners[d]){this.addElementReference(d,c)}else{Ext.Object.defineProperty(this,d,{get:function(){delete this[d];return this.addElementReference(d,c)},configurable:true})}},addElementReference:function(n,l){var k=this,h=k[n]=Ext.get(l),m=k._elementListeners[n],i,j;h.skipGarbageCollection=true;h.component=k;if(m){m=Ext.clone(m);for(i in m){j=m[i];if(typeof j==="object"){j.scope=k}}m.scope=k;h.on(m)}return h},detachFromBody:function(){Ext.getDetachedBody().appendChild(this.element);this.isDetached=true},doAddListener:function(r,l,k,j,p,q,o){var m=this,n;if(j&&"element" in j){m[j.element].doAddListener(r,l,k||m,j,p)}if(j){n=j.delegate;if(n){m.mixins.componentDelegation.addDelegatedListener.call(m,r,l,k,j,p,q,o);return}}Ext.Evented.prototype.doAddListener.call(this,r,l,k,j,p,q,o)},doRemoveListener:function(f,h,e){var g=this;g.mixins.observable.doRemoveListener.call(g,f,h,e);g.mixins.componentDelegation.removeDelegatedListener.call(g,f,h,e)},filterLengthValue:function(b){if(b==="auto"||(!b&&b!==0)){return null}return b},getFocusEl:function(){return this.element},initElementListeners:function(i){var m=this,s=m.self.superclass,t=s._elementListeners,r=i.reference,v=i.children,p,n,u,o,q;if(m.hasOwnProperty("_elementListeners")){p=m._elementListeners}else{p=m._elementListeners=(t?Ext.Object.chain(t):{})}if(r){n=i.listeners;if(n){if(t){u=t[r];if(u){n=Ext.Object.chain(u);Ext.apply(n,i.listeners)}}p[r]=n;i.listeners=null}}if(v){for(q=0,o=v.length;q<o;q++){m.initElementListeners(v[q])}}},initId:function(e){var h=this,f=h.config,g=(e&&e.id)||(f&&f.id);if(g){h.setId(g);h.id=g}else{h.getId()}},processElementConfig:function(){var e=this,f=e.self.superclass,d;if(e.hasOwnProperty("_elementConfig")){d=e._elementConfig}else{d=e._elementConfig=e.getElementConfig();if(f.isWidget){e.processElementConfig.call(f)}e.initElementListeners(d)}return d},reattachToBody:function(){this.isDetached=false},updateUserCls:function(c,d){this.element.replaceCls(d,c)}}},1,["widget"],["widget"],{widget:true},["widget.widget"],[[Ext.mixin.Inheritable.prototype.mixinId||Ext.mixin.Inheritable.$className,Ext.mixin.Inheritable],[Ext.mixin.Bindable.prototype.mixinId||Ext.mixin.Bindable.$className,Ext.mixin.Bindable],[Ext.mixin.ComponentDelegation.prototype.mixinId||Ext.mixin.ComponentDelegation.$className,Ext.mixin.ComponentDelegation]],[Ext,"Widget"],function(c){var d=c.prototype;(d.$elementEventOptions=Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element=1;(d.$eventOptions=Ext.Object.chain(d.$eventOptions)).delegate=1}));Ext.define("Ext.overrides.Widget",{override:"Ext.Widget",$configStrict:false,isComponent:true,liquidLayout:true,rendered:true,rendering:true,config:{renderTo:null},cachedConfig:{baseCls:"x-widget"},constructor:function(e){var d=this,f;(arguments.callee.$previous||Ext.Evented.prototype.constructor).call(this,e);d.getComponentLayout();f=d.getRenderTo();if(f){d.render(f)}},addClsWithUI:function(b){this.el.addCls(b)},afterComponentLayout:Ext.emptyFn,updateLayout:function(){var b=this.getRefOwner();if(b){b.updateLayout()}},destroy:function(){var c=this,d=c.ownerCt;if(d&&d.remove){d.remove(c,false)}(arguments.callee.$previous||Ext.Evented.prototype.destroy).call(this)},finishRender:function(){this.rendering=false;this.initBindable()},getAnimationProps:function(){return{}},getComponentLayout:function(){var c=this,d=c.componentLayout;if(!d){d=c.componentLayout=new Ext.layout.component.Auto();d.setOwner(c)}return d},getEl:function(){return this.element},getTdCls:function(){return"x-"+this.getTdType()+"-"+(this.ui||"default")+"-cell"},getTdType:function(){return this.xtype},getItemId:function(){return this.itemId||this.id},getSizeModel:function(){return Ext.Component.prototype.getSizeModel.apply(this,arguments)},onAdded:function(f,h,g){var i=this,j=i.inheritedState;i.ownerCt=f;i.onInheritedAdd(i,g)},onRemoved:function(c){var d=this;if(!c){d.removeBindings()}d.onInheritedRemove(c);d.ownerCt=d.ownerLayout=null},parseBox:function(b){return Ext.Element.parseBox(b)},removeClsWithUI:function(b){this.el.removeCls(b)},render:function(g,h){var j=this,l=j.element,k=Ext.Component.prototype,i;if(!j.ownerCt||j.floating){if(Ext.scopeCss){l.addCls(k.rootCls)}l.addCls(k.borderBoxCls)}if(h){i=g.childNodes[h];if(i){Ext.fly(g).insertBefore(l,i);return}}Ext.fly(g).appendChild(l)},setPosition:function(d,c){this.el.setLocalXY(d,c)},up:function(){return Ext.Component.prototype.up.apply(this,arguments)},isAncestor:function(){return Ext.Component.prototype.isAncestor.apply(this,arguments)},onFocusEnter:function(){return Ext.Component.prototype.onFocusEnter.apply(this,arguments)},onFocusLeave:function(){return Ext.Component.prototype.onFocusLeave.apply(this,arguments)},isLayoutChild:function(c){var d=this.ownerCt;return d?(d===c||d.isLayoutChild(c)):false}},function(c){var d=c.prototype;if(Ext.isIE9m){d.addElementReferenceOnDemand=d.addElementReference}});(Ext.cmd.derive("Ext.ProgressBase",Ext.Base,{mixinId:"progressbase",config:{value:0,textTpl:null},applyTextTpl:function(b){if(!b.isTemplate){b=new Ext.XTemplate(b)}return b},applyValue:function(b){return b||0}},0,0,0,0,0,0,[Ext,"ProgressBase"],0));(Ext.cmd.derive("Ext.util.Format",Ext.Base,function(){var b;return{singleton:true,defaultDateFormat:"m/d/Y",thousandSeparator:",",decimalSeparator:".",currencyPrecision:2,currencySign:"$",percentSign:"%",currencyAtEnd:false,stripTagsRe:/<\/?[^>]+>/gi,stripScriptsRe:/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,\.#]+/,formatCleanRe:/[^\d\.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){b=this},undef:function(a){return a!==undefined?a:""},defaultValue:function(d,a){return d!==undefined&&d!==""?d:a},substr:"ab".substr(-1)!="b"?function(h,f,a){var g=String(h);return(f<0)?g.substr(Math.max(g.length+f,0),a):g.substr(f,a)}:function(f,e,a){return String(f).substr(e,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(a){return b.currency(a,"$",2)},currency:function(m,k,n,a){var i="",j=",0",l=0;m=m-0;if(m<0){m=-m;i="-"}n=Ext.isDefined(n)?n:b.currencyPrecision;j+=(n>0?".":"");for(;l<n;l++){j+="0"}m=b.number(m,j);if((a||b.currencyAtEnd)===true){return Ext.String.format("{0}{1}{2}",i,m,k||b.currencySign)}else{return Ext.String.format("{0}{1}{2}",i,k||b.currencySign,m)}},date:function(a,d){if(!a){return""}if(!Ext.isDate(a)){a=new Date(Date.parse(a))}return Ext.Date.dateFormat(a,d||Ext.Date.defaultFormat)},dateRenderer:function(a){return function(d){return b.date(d,a)}},hex:function(e,f){var a=parseInt(e||0,10).toString(16);if(f){if(f<0){f=-f;if(a.length>f){a=a.substring(a.length-f)}}while(a.length<f){a="0"+a}}return a},or:function(d,a){return d||a},pick:function(g,h,f){if(Ext.isNumber(g)){var a=arguments[g+1];if(a){return a}}return g?f:h},stripTags:function(a){return !a?a:String(a).replace(b.stripTagsRe,"")},stripScripts:function(a){return !a?a:String(a).replace(b.stripScriptsRe,"")},fileSize:(function(){var a=1024,f=1048576,e=1073741824;return function(c){var d;if(c<a){if(c===1){d="1 byte"}else{d=c+" bytes"}}else{if(c<f){d=(Math.round(((c*10)/a))/10)+" KB"}else{if(c<e){d=(Math.round(((c*10)/f))/10)+" MB"}else{d=(Math.round(((c*10)/e))/10)+" GB"}}}return d}})(),math:(function(){var a={};return function(e,f){if(!a[f]){a[f]=Ext.functionFactory("v","return v "+f+";")}return a[f](e)}}()),round:function(e,f){var a=Number(e);if(typeof f==="number"){f=Math.pow(10,f);a=Math.round(e*f)/f}else{if(f===undefined){a=Math.round(a)}}return a},number:function(r,x){if(!x){return r}if(isNaN(r)){return""}var y=b.formatFns[x];if(!y){var u=x,a=b.thousandSeparator,q=b.decimalSeparator,w=0,z="",A,t,s,p,B,v;if(x.substr(x.length-2)==="/i"){if(!b.I18NFormatCleanRe||b.lastDecimalSeparator!==q){b.I18NFormatCleanRe=new RegExp("[^\\d\\"+q+"#]","g");b.lastDecimalSeparator=q}x=x.substr(0,x.length-2);A=x.indexOf(a)!==-1;t=x.replace(b.I18NFormatCleanRe,"").split(q)}else{A=x.indexOf(",")!==-1;t=x.replace(b.formatCleanRe,"").split(".")}s=x.replace(b.formatPattern,"");if(t.length>2){}else{if(t.length===2){w=t[1].length;p=t[1].match(b.hashRe);if(p){v=p[0].length;z='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+v+'}$")'}}}B=["var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts"+(A?",thousandSeparator,thousands=[],j,n,i":"")+(s?',formatString="'+x+'",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, "+w+");",z,";"];if(A){if(w){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<j;i+=n){if(i!==0){n=3;}thousands[thousands.length]=fnum.substr(i,n);}fnum=thousands.join(thousandSeparator);}";if(w){B[B.length]="fnum += utilFormat.decimalSeparator+parts[1];"}}else{if(w){B[B.length]='if(utilFormat.decimalSeparator!=="."){parts=fnum.split(".");fnum=parts[0]+utilFormat.decimalSeparator+parts[1];}'}}B[B.length]='if(neg&&fnum!=="'+(w?"0."+Ext.String.repeat("0",w):"0")+'") { fnum="-"+fnum; }';if(p){B[B.length]='fnum=fnum.replace(trailingZeroes,"");'}B[B.length]="return ";if(s){B[B.length]="formatString.replace(formatPattern, fnum);"}else{B[B.length]="fnum;"}B[B.length]="};";y=b.formatFns[u]=Ext.functionFactory("Ext",B.join(""))(Ext)}return y(r)},numberRenderer:function(a){return function(d){return b.number(d,a)}},percent:function(d,a){return b.number(d*100,a||"0")+b.percentSign},attributes:function(f){if(typeof f==="object"){var a=[],e;for(e in f){if(f.hasOwnProperty(e)){a.push(e,'="',e==="style"?Ext.DomHelper.generateStyles(f[e],null,true):Ext.htmlEncode(f[e]),'" ')}}f=a.join("")}return f||""},plural:function(a,f,e){return a+" "+(a===1?f:(e?e:f+"s"))},nl2br:function(a){return Ext.isEmpty(a)?"":a.replace(b.nl2brRe,"<br/>")},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(f){f=f||0;if(typeof f==="number"){return{top:f,right:f,bottom:f,left:f}}var e=f.split(" "),a=e.length;if(a===1){e[1]=e[2]=e[3]=e[0]}else{if(a===2){e[2]=e[0];e[3]=e[1]}else{if(a===3){e[3]=e[1]}}}return{top:parseInt(e[0],10)||0,right:parseInt(e[1],10)||0,bottom:parseInt(e[2],10)||0,left:parseInt(e[3],10)||0}}}},1,0,0,0,0,0,[Ext.util,"Format"],0));(Ext.cmd.derive("Ext.Template",Ext.Base,{inheritableStatics:{from:function(c,d){c=Ext.getDom(c);return new this(c.value||c.innerHTML,d||"")}},useEval:Ext.isGecko,constructor:function(m){var k=this,h=arguments,i=[],n,l=h.length,j;k.initialConfig={};if(l===1&&Ext.isArray(m)){h=m;l=h.length}if(l>1){for(n=0;n<l;n++){j=h[n];if(typeof j==="object"){Ext.apply(k.initialConfig,j);Ext.apply(k,j)}else{i.push(j)}}}else{i.push(m)}k.html=i.join("")},isTemplate:true,disableFormats:false,tokenRe:/\{(?:(?:(\d+)|([a-z_][\w\-]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi,apply:function(d){var c=this;if(c.compiled){if(!c.fn){c.compile()}return c.fn(d).join("")}return c.evaluate(d)},evaluate:function(h){var i=this,l=!i.disableFormats,j=Ext.util.Format,g=i;function k(b,c,d,a,e){if(d==null||d===""){d=c}if(a&&l){if(e){e=[h[d]].concat(Ext.functionFactory("return ["+e+"];")())}else{e=[h[d]]}if(a.substr(0,5)==="this."){return g[a.substr(5)].apply(g,e)}else{if(j[a]){return j[a].apply(j,e)}else{return b}}}else{return h[d]!==undefined?h[d]:""}}return i.html.replace(i.tokenRe,k)},applyOut:function(e,d){var f=this;if(f.compiled){if(!f.fn){f.compile()}d.push.apply(d,f.fn(e))}else{d.push(f.apply(e))}return d},applyTemplate:function(){return this.apply.apply(this,arguments)},set:function(e,f){var d=this;d.html=e;d.compiled=!!f;d.fn=null;return d},compileARe:/\\/g,compileBRe:/(\r\n|\n)/g,compileCRe:/'/g,compile:function(){var c=this,d;d=c.html.replace(c.compileARe,"\\\\").replace(c.compileBRe,"\\n").replace(c.compileCRe,"\\'").replace(c.tokenRe,c.regexReplaceFn.bind(c));d=(this.disableFormats!==true?"var fm=Ext.util.Format;":"")+(c.useEval?"$=":"return")+" function(v){return ['"+d+"'];};";c.fn=c.useEval?c.evalCompiled(d):(new Function("Ext",d))(Ext);c.compiled=true;return c},evalCompiled:function($){eval($);return $},regexReplaceFn:function(i,j,f,h,g){if(j==null||j===""){j='"'+f+'"'}else{if(this.stringFormat){j=parseInt(j)+1}}if(h&&this.disableFormats!==true){g=g?","+g:"";if(h.substr(0,5)==="this."){h=h+"("}else{if(Ext.util.Format[h]){h="fm."+h+"("}else{return i}}return"',"+h+"v["+j+"]"+g+"),'"}else{return"',v["+j+"] == undefined ? '' : v["+j+"],'"}},insertFirst:function(d,e,f){return this.doInsert("afterBegin",d,e,f)},insertBefore:function(d,e,f){return this.doInsert("beforeBegin",d,e,f)},insertAfter:function(d,e,f){return this.doInsert("afterEnd",d,e,f)},append:function(d,e,f){return this.doInsert("beforeEnd",d,e,f)},doInsert:function(f,i,g,h){var j=Ext.DomHelper.insertHtml(f,Ext.getDom(i),this.apply(g));return h?Ext.get(j):j},overwrite:function(h,f,g){var e=Ext.DomHelper.overwrite(Ext.getDom(h),this.apply(f));return g?Ext.get(e):e}},1,0,0,0,0,0,[Ext,"Template"],function(i){var j=/\{\d+\}/,g=function(a){if(j.test(a)){a=new i(a,f);return function(){return a.apply(arguments)}}else{return function(){return a}}},f={useFormat:false,compiled:true,stringFormat:true},h={};Ext.String.format=Ext.util.Format.format=function(a){var b=h[a]||(h[a]=g(a));return b.apply(this,arguments)};Ext.String.formatEncode=function(){return Ext.String.htmlEncode(Ext.String.format.apply(this,arguments))}}));(Ext.cmd.derive("Ext.util.XTemplateParser",Ext.Base,{constructor:function(b){Ext.apply(this,b)},doTpl:Ext.emptyFn,parse:function(A){var m=this,x=A.length,y={elseif:"elif"},w=m.topRe,J=m.actionsRe,H,I,D,z,F,C,E,s,t,K,G,L,B;m.level=0;m.stack=I=[];for(H=0;H<x;H=K){w.lastIndex=H;z=w.exec(A);if(!z){m.doText(A.substring(H,x));break}t=z.index;K=w.lastIndex;if(H<t){D=A.substring(H,t);if(!(B&&Ext.String.trim(D)==="")){m.doText(D)}}B=false;if(z[1]){K=A.indexOf("%}",t+2);m.doEval(A.substring(t+2,K));K+=2}else{if(z[2]){K=A.indexOf("]}",t+2);m.doExpr(A.substring(t+2,K));K+=2}else{if(z[3]){m.doTag(z[3])}else{if(z[4]){G=null;while((s=J.exec(z[4]))!==null){D=s[2]||s[3];if(D){D=Ext.String.htmlDecode(D);F=s[1];F=y[F]||F;G=G||{};C=G[F];if(typeof C=="string"){G[F]=[C,D]}else{if(C){G[F].push(D)}else{G[F]=D}}}}if(!G){if(m.elseRe.test(z[4])){m.doElse()}else{if(m.defaultRe.test(z[4])){m.doDefault()}else{m.doTpl();I.push({type:"tpl"})}}}else{if(G["if"]){m.doIf(G["if"],G);I.push({type:"if"})}else{if(G["switch"]){m.doSwitch(G["switch"],G);I.push({type:"switch"});B=true}else{if(G["case"]){m.doCase(G["case"],G)}else{if(G.elif){m.doElseIf(G.elif,G)}else{if(G["for"]){++m.level;if(L=m.propRe.exec(z[4])){G.propName=L[1]||L[2]}m.doFor(G["for"],G);I.push({type:"for",actions:G})}else{if(G.foreach){++m.level;if(L=m.propRe.exec(z[4])){G.propName=L[1]||L[2]}m.doForEach(G.foreach,G);I.push({type:"foreach",actions:G})}else{if(G.exec){m.doExec(G.exec,G);I.push({type:"exec",actions:G})}}}}}}}}}else{if(z[0].length===5){I.push({type:"tpl"})}else{E=I.pop();m.doEnd(E.type,E.actions);if(E.type=="for"||E.type=="foreach"){--m.level}}}}}}}},topRe:/(?:(\{\%)|(\{\[)|\{([^{}]+)\})|(?:<tpl([^>]*)\>)|(?:<\/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(e){var f=this,d=f.generate(e);return f.useEval?f.evalTpl(d):(new Function("Ext",d))(Ext)},generate:function(f){var g=this,e="var fm=Ext.util.Format,ts=Object.prototype.toString;",h;g.maxLevel=0;g.body=["var c0=values, a0="+g.createArrayTest(0)+", p0=parent, n0=xcount, i0=xindex, k0, v;\n"];if(g.definitions){if(typeof g.definitions==="string"){g.definitions=[g.definitions,e]}else{g.definitions.push(e)}}else{g.definitions=[e]}g.switches=[];g.parse(f);g.definitions.push((g.useEval?"$=":"return")+" function ("+g.fnArgs+") {",g.body.join(""),"}");h=g.definitions.join("\n");g.definitions.length=g.body.length=g.switches.length=0;delete g.definitions;delete g.body;delete g.switches;return h},doText:function(f){var d=this,e=d.body;f=f.replace(d.aposRe,"\\'").replace(d.newLineRe,"\\n");if(d.useIndex){e.push("out[out.length]='",f,"'\n")}else{e.push("out.push('",f,"')\n")}},doExpr:function(c){var d=this.body;d.push("if ((v="+c+") != null) out");if(this.useIndex){d.push("[out.length]=v+''\n")}else{d.push(".push(v+'')\n")}},doTag:function(d){var c=this.parseTag(d);if(c){this.doExpr(c)}else{this.doText("{"+d+"}")}},doElse:function(){this.body.push("} else {\n")},doEval:function(b){this.body.push(b,"\n")},doIf:function(d,f){var e=this;if(d==="."){e.body.push("if (values) {\n")}else{if(e.propNameRe.test(d)){e.body.push("if (",e.parseTag(d),") {\n")}else{e.body.push("if (",e.addFn(d),e.callFn,") {\n")}}if(f.exec){e.doExec(f.exec)}},doElseIf:function(d,f){var e=this;if(d==="."){e.body.push("else if (values) {\n")}else{if(e.propNameRe.test(d)){e.body.push("} else if (",e.parseTag(d),") {\n")}else{e.body.push("} else if (",e.addFn(d),e.callFn,") {\n")}}if(f.exec){e.doExec(f.exec)}},doSwitch:function(f){var d=this,e;if(f==="."||f==="#"){e=f==="."?"values":"xindex";d.body.push("switch (",e,") {\n")}else{if(d.propNameRe.test(f)){d.body.push("switch (",d.parseTag(f),") {\n")}else{d.body.push("switch (",d.addFn(f),d.callFn,") {\n")}}d.switches.push(0)},doCase:function(j){var k=this,l=Ext.isArray(j)?j:[j],i=k.switches.length-1,h,g;if(k.switches[i]){k.body.push("break;\n")}else{k.switches[i]++}for(g=0,i=l.length;g<i;++g){h=k.intRe.exec(l[g]);l[g]=h?h[1]:("'"+l[g].replace(k.aposRe,"\\'")+"'")}k.body.push("case ",l.join(": case "),":\n")},doDefault:function(){var d=this,c=d.switches.length-1;if(d.switches[c]){d.body.push("break;\n")}else{d.switches[c]++}d.body.push("default:\n")},doEnd:function(e,g){var h=this,f=h.level-1;if(e=="for"||e=="foreach"){if(g.exec){h.doExec(g.exec)}h.body.push("}\n");h.body.push("parent=p",f,";values=r",f+1,";xcount=n"+f+";xindex=i",f,"+1;xkey=k",f,";\n")}else{if(e=="if"||e=="switch"){h.body.push("}\n")}}},doFor:function(l,j){var m=this,n,h=m.level,i=h-1,k;if(l==="."){n="values"}else{if(m.propNameRe.test(l)){n=m.parseTag(l)}else{n=m.addFn(l)+m.callFn}}if(m.maxLevel<h){m.maxLevel=h;m.body.push("var ")}if(l=="."){k="c"+h}else{k="a"+i+"?c"+i+"[i"+i+"]:c"+i}m.body.push("i",h,"=0,n",h,"=0,c",h,"=",n,",a",h,"=",m.createArrayTest(h),",r",h,"=values,p",h,",k",h,";\n","p",h,"=parent=",k,"\n","if (c",h,"){if(a",h,"){n",h,"=c",h,".length;}else if (c",h,".isMixedCollection){c",h,"=c",h,".items;n",h,"=c",h,".length;}else if(c",h,".isStore){c",h,"=c",h,".data.items;n",h,"=c",h,".length;}else{c",h,"=[c",h,"];n",h,"=1;}}\n","for (xcount=n",h,";i",h,"<n"+h+";++i",h,"){\n","values=c",h,"[i",h,"]");if(j.propName){m.body.push(".",j.propName)}m.body.push("\n","xindex=i",h,"+1\n");if(j.between){m.body.push('if(xindex>1){ out.push("',j.between,'"); } \n')}},doForEach:function(l,j){var m=this,n,h=m.level,i=h-1,k;if(l==="."){n="values"}else{if(m.propNameRe.test(l)){n=m.parseTag(l)}else{n=m.addFn(l)+m.callFn}}if(m.maxLevel<h){m.maxLevel=h;m.body.push("var ")}if(l=="."){k="c"+h}else{k="a"+i+"?c"+i+"[i"+i+"]:c"+i}m.body.push("i",h,"=-1,n",h,"=0,c",h,"=",n,",a",h,"=",m.createArrayTest(h),",r",h,"=values,p",h,",k",h,";\n","p",h,"=parent=",k,"\n","for(k",h," in c",h,"){\n","xindex=++i",h,"+1;\n","xkey=k",h,";\n","values=c",h,"[k",h,"];");if(j.propName){m.body.push(".",j.propName)}if(j.between){m.body.push('if(xindex>1){ out.push("',j.between,'"); } \n')}},createArrayTest:("isArray" in Array)?function(b){return"Array.isArray(c"+b+")"}:function(b){return"ts.call(c"+b+')==="[object Array]"'},doExec:function(i,h){var j=this,g="f"+j.definitions.length,f=j.guards[j.strict?0:1];j.definitions.push("function "+g+"("+j.fnArgs+") {",f.doTry," var $v = values; with($v) {"," "+i," }",f.doCatch,"}");j.body.push(g+j.callFn+"\n")},guards:[{doTry:"",doCatch:""},{doTry:"try { ",doCatch:" } catch(e) {\n}"}],addFn:function(f){var g=this,e="f"+g.definitions.length,h=g.guards[g.strict?0:1];if(f==="."){g.definitions.push("function "+e+"("+g.fnArgs+") {"," return values","}")}else{if(f===".."){g.definitions.push("function "+e+"("+g.fnArgs+") {"," return parent","}")}else{g.definitions.push("function "+e+"("+g.fnArgs+") {",h.doTry," var $v = values; with($v) {"," return("+f+")"," }",h.doCatch,"}")}}return e},parseTag:function(i){var l=this,j=l.tagRe.exec(i),n,k,o,m,p;if(!j){return null}n=j[1];k=j[2];o=j[3];m=j[4];if(n=="."){if(!l.validTypes){l.definitions.push("var validTypes={string:1,number:1,boolean:1};");l.validTypes=true}p='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else{if(n=="#"){p="xindex"}else{if(n=="$"){p="xkey"}else{if(n.substr(0,7)=="parent."){p=n}else{if(isNaN(n)&&n.indexOf("-")==-1&&n.indexOf(".")!=-1){p="values."+n}else{p="values['"+n+"']"}}}}}if(m){p="("+p+m+")"}if(k&&l.useFormat){o=o?","+o:"";if(k.substr(0,5)!="this."){k="fm."+k+"("}else{k+="("}}else{return p}return k+p+o+")"},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 b=this.prototype;b.fnArgs="out,values,parent,xindex,xcount,xkey";b.callFn=".call(this,"+b.fnArgs+")"}));(Ext.cmd.derive("Ext.XTemplate",Ext.Template,{isXTemplate:true,emptyObj:{},fn:null,strict:false,apply:function(f,e,h,g){return this.applyOut(f,[],e,h,g).join("")},applyOut:function(j,e,o,m,k){var n=this,p;if(!n.fn){p=new Ext.util.XTemplateCompiler({useFormat:n.disableFormats!==true,definitions:n.definitions,strict:n.strict});n.fn=p.compile(n.html)}m=m||1;k=k||1;if(n.strict){n.fn(e,j,o||n.emptyObj,m,k)}else{try{n.fn(e,j,o||n.emptyObj,m,k)}catch(l){}}return e},compile:function(){return this},statics:{getTpl:function(e,g){var h=e[g],f;if(h&&!h.isTemplate){h=Ext.ClassManager.dynInstantiate("Ext.XTemplate",h);if(e.hasOwnProperty(g)){f=e}else{for(f=e.self.prototype;f&&!f.hasOwnProperty(g);f=f.superclass){}}f[g]=h;h.owner=f}return h||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 b=this;if(!b.isInstance){Ext.app.EventDomain.instances[b.type]=b}b.bus={};b.monitoredClasses=[]},dispatch:function(u,q,s){q=Ext.canonicalEventName(q);var r=this,t=r.bus,p=t[q],x,z,A,y,i,v,w,B;if(!p){return true}for(x in p){if(p.hasOwnProperty(x)&&r.match(u,x,r.controller)){z=p[x];for(A in z){if(z.hasOwnProperty(A)){y=z[A];if(y.controller.isActive()){i=y.list;v=i.length;for(w=0;w<v;w++){B=i[w];if(B.fire.apply(B,s)===false){return false}}}}}}}return true},listen:function(M,E){var i=this,F=i.bus,J=i.idProperty,I=i.monitoredClasses,L=I.length,G=E.getId(),w=(i.type==="component"),B=w?E.getRefMap():null,z,H,y,A,O,N,P,C,D,x,K;for(A in M){D=M[A];if(w){A=B[A]||A}if(D){if(J){A=A==="*"?A:A.substring(1)}for(x in D){O=null;N=D[x];P=E;x=Ext.canonicalEventName(x);C=new Ext.util.Event(E,x);if(Ext.isObject(N)){O=N;N=O.fn;P=O.scope||E;delete O.fn;delete O.scope}if(typeof N==="string"){N=P[N]}C.addListener(N,P,O);for(z=0;z<L;++z){K=I[z].hasListeners;if(K){K._incr_(x)}}H=F[x]||(F[x]={});H=H[A]||(H[A]={});y=H[G]||(H[G]={controller:E,list:[]});y.list.push(C)}}}},match:function(f,e){var d=this.idProperty;if(d){return e==="*"||f[d]===e}return false},monitor:function(h){var e=this,f=h.isInstance?h:h.prototype,g=f.doFireEvent;e.monitoredClasses.push(h);f.doFireEvent=function(a,b){var c=g.apply(this,arguments);if(c!==false&&!this.isSuspended(a)){c=e.dispatch(this,a,b)}return c}},unlisten:function(C){var v=this.bus,F=C,j=this.monitoredClasses,x=j.length,E,u,i,w,s,B,t,y,z,D,A;if(C.isController){F=C.getId()}for(u in v){u=Ext.canonicalEventName(u);if(v.hasOwnProperty(u)&&(t=v[u])){for(B in t){E=t[B];D=E[F];if(D){i=D.list;if(i){for(y=0,w=i.length;y<w;++y){s=i[y];s.clearListeners();for(z=0;z<x;++z){A=j[z].hasListeners;if(A){A._decr_(s.name)}}}delete E[F]}}}}}},destroy:function(){this.monitoredClasses=this.bus=null;this.callParent()}},1,0,0,0,0,0,[Ext.app,"EventDomain"],0));(Ext.cmd.derive("Ext.app.domain.Component",Ext.app.EventDomain,{singleton:true,type:"component",constructor:function(){this.callParent();this.monitor(Ext.Widget)},dispatch:function(i,k,l){var g=i.lookupController(false),j,h;while(g){j=g.compDomain;if(j){if(j.dispatch(i,k,l)===false){return false}}h=g.getView();g=h?h.lookupController(true):null}return this.callParent(arguments)},match:function(c,d){return c.is(d)}},1,0,0,0,0,0,[Ext.app.domain,"Component"],0));(Ext.cmd.derive("Ext.util.ProtoElement",Ext.Base,function(){var c=Ext.String.splitWords,d=Ext.Array.toMap;return{isProtoEl:true,clsProp:"cls",styleProp:"style",removedProp:"removed",styleIsText:false,constructor:function(g){var a=this,h,b;if(g){Ext.apply(a,g);h=a.cls;b=a.style;delete a.cls}a.classList=h?c(h):[];a.classMap=h?d(a.classList):{};if(b){if(typeof b==="string"){a.style=Ext.Element.parseStyles(b)}else{if(Ext.isFunction(b)){a.styleFn=b;delete a.style}else{a.style=Ext.apply({},b)}}}},flush:function(){this.flushClassList=[];this.removedClasses={};delete this.style;delete this.unselectableAttr},addCls:function(a){if(!a){return this}var i=this,b=(typeof a==="string")?c(a):a,r=b.length,o=i.classList,s=i.classMap,q=i.flushClassList,p=0,n;for(;p<r;++p){n=b[p];if(!s[n]){s[n]=true;o.push(n);if(q){q.push(n);delete i.removedClasses[n]}}}return i},hasCls:function(a){return a in this.classMap},removeCls:function(a){var b=this,o=b.classList,s=(b.classList=[]),q=d(c(a)),t=o.length,u=b.classMap,p=b.removedClasses,r,i;for(r=0;r<t;++r){i=o[r];if(q[i]){if(p){if(u[i]){p[i]=true;Ext.Array.remove(b.flushClassList,i)}}delete u[i]}else{s.push(i)}}return b},setStyle:function(a,b){var g=this,h=g.style||(g.style={});if(typeof a==="string"){if(arguments.length===1){g.setStyle(Ext.Element.parseStyles(a))}else{h[a]=b}}else{Ext.apply(h,a)}return g},unselectable:function(){this.addCls(Ext.dom.Element.unselectableCls);if(Ext.isOpera){this.unselectableAttr=true}},writeTo:function(a){var h=this,b=h.flushClassList||h.classList,i=h.removedClasses,j;if(h.styleFn){j=Ext.apply({},h.styleFn());Ext.apply(j,h.style)}else{j=h.style}a[h.clsProp]=b.join(" ");if(j){a[h.styleProp]=h.styleIsText?Ext.DomHelper.generateStyles(j,null,true):j}if(i){i=Ext.Object.getKeys(i);if(i.length){a[h.removedProp]=i.join(" ")}}if(h.unselectableAttr){a.unselectable="on"}return a}}},1,0,0,0,0,0,[Ext.util,"ProtoElement"],0));(Ext.cmd.derive("Ext.dom.CompositeElement",Ext.dom.CompositeElementLite,{alternateClassName:"Ext.CompositeElement",isLite:false,getElement:function(b){return b},transformElement:function(b){return Ext.get(b)}},0,0,0,0,0,0,[Ext.dom,"CompositeElement",Ext,"CompositeElement"],0));(Ext.cmd.derive("Ext.scroll.Scroller",Ext.Evented,{factoryConfig:{defaultType:"dom"},isScroller:true,_spacerCls:"x-domscroller-spacer",config:{direction:undefined,directionLock:false,disabled:null,element:undefined,indicators:null,maxPosition:{x:0,y:0},maxUserPosition:{x:0,y:0},minPosition:{x:0,y:0},minUserPosition:{x:0,y:0},momentumEasing:null,size:null,slotSnapSize:{x:0,y:0},x:true,y:true,spacerXY:null},statics:{create:function(b){return Ext.Factory.scroller(b,Ext.supports.Touch?"touch":"dom")}},constructor:function(d){var c=this;c.position={x:0,y:0};Ext.Evented.prototype.constructor.call(this,d);c.onDomScrollEnd=Ext.Function.createBuffered(c.onDomScrollEnd,100,c)},destroy:function(){var b=this;b.setX(Ext.emptyString);b.setY(Ext.emptyString);b.setElement(null);b.onDomScrollEnd=b._partners=b.component=null;Ext.Evented.prototype.destroy.call(this)},addPartner:function(i,f){var j=this,h=j._partners||(j._partners={}),g=i._partners||(i._partners={});h[i.getId()]={scroller:i,axis:f};g[j.getId()]={scroller:j,axis:f}},applyElement:function(f,g){var i=this,j,h;if(g){i.scrollListener.destroy()}if(f){if(f.isElement){j=f}else{j=Ext.get(f)}if(j.dom===document.body){j=Ext.get(document.scrollingElement||(Ext.isWebKit?document.body:document.documentElement));h=Ext.get(Ext.isIE9m?window:document)}else{h=j}i.scrollListener=h.on({scroll:i.onDomScroll,scope:i,destroyable:true});return j}},getClientSize:function(){var b=this.getElement().dom;return{x:b.clientWidth,y:b.clientHeight}},getScrollbarSize:function(){var o=this,s=0,k=0,p,q,l,m,n,r,t;if(o.isDomScroller||Ext.supports.touchScroll===1){p=o.getElement();if(p&&!p.destroyed){l=o.getX();m=o.getY();q=p.dom;if(l||m){t=Ext.getScrollbarSize()}if(l==="scroll"){n=true}else{if(l){n=q.scrollWidth>q.clientWidth}}if(m==="scroll"){r=true}else{if(m){r=q.scrollHeight>q.clientHeight}}if(n){k=t.height}if(r){s=t.width}}}return{width:s,height:k}},getPosition:function(){return this.position},updateDirectionLock:Ext.emptyFn,updateDisabled:Ext.emptyFn,updateIndicators:Ext.emptyFn,updateMaxPosition:Ext.emptyFn,updateMaxUserPosition:Ext.emptyFn,updateMinPosition:Ext.emptyFn,updateMinUserPosition:Ext.emptyFn,updateMomenumEasing:Ext.emptyFn,updateX:Ext.emptyFn,updateY:Ext.emptyFn,onPartnerScrollStart:Ext.emptyFn,onPartnerScrollEnd:Ext.emptyFn,refresh:function(){this.fireEvent("refresh",this);return this},removePartner:function(d){var f=this._partners,e=d._partners;if(f){delete f[d.getId()]}if(e){delete (e[this.getId()])}},scrollBy:function(h,e,g){var f=this.getPosition();if(h){if(h.length){g=e;e=h[1];h=h[0]}else{if(typeof h!=="number"){g=e;e=h.y;h=h.x}}}h=(typeof h==="number")?h+f.x:null;e=(typeof e==="number")?e+f.y:null;return this.doScrollTo(h,e,g)},scrollIntoView:function(q,p,s,n){var l=this,m=l.getPosition(),o,t,k,r=l.getElement();if(q){o=Ext.fly(q).getScrollIntoViewXY(r,m.x,m.y);t=(p===false)?m.x:o.x;k=o.y;if(n){l.on({scrollend:"doHighlight",scope:l,single:true,args:[q,n]})}l.doScrollTo(t,k,s)}},isInView:function(l){var k=this,h={x:false,y:false},j,i=k.getElement(),g;if(l&&i.contains(l)){g=i.getRegion();j=Ext.fly(l).getRegion();h.x=j.right>g.left&&j.left<g.right;h.y=j.bottom>g.top&&j.top<g.bottom}return h},scrollTo:function(f,g,e){var h;if(f){if(f.length){e=g;g=f[1];f=f[0]}else{if(typeof f!=="number"){e=g;g=f.y;f=f.x}}}if(f<0||g<0){h=this.getMaxPosition();if(f<0){f+=h.x}if(g<0){g+=h.y}}this.doScrollTo(f,g,e)},updateDirection:function(h){var e=this,f,g;if(!h){f=e.getX();g=e.getY();if(f&&g){h=(g==="scroll"&&f==="scroll")?"both":"auto"}else{if(g){h="vertical"}else{if(f){h="horizontal"}}}e._direction=h}else{if(h==="auto"){f=true;g=true}else{if(h==="vertical"){f=false;g=true}else{if(h==="horizontal"){f=true;g=false}else{if(h==="both"){f="scroll";g="scroll"}}}}e.setX(f);e.setY(g)}},updateSize:function(k){var j=this,l=j.getElement(),g,h,i;if(l){g=j.getSpacer();if(k==null){g.hide()}else{if(typeof k==="number"){h=k;i=k}else{h=k.x||0;i=k.y||0}if(h>0){h-=1}if(i>0){i-=1}j.setSpacerXY({x:h,y:i});g.show()}}},deprecated:{"5":{methods:{getScroller:function(){return this}}},"5.1.0":{methods:{scrollToTop:function(b){return this.scrollTo(0,0,b)},scrollToEnd:function(b){return this.scrollTo(Infinity,Infinity,b)}}}},privates:{getSpacer:function(){var f=this,e=f._spacer,d;if(!e){d=f.getElement();e=f._spacer=d.createChild({cls:f._spacerCls,role:"presentation"});e.setVisibilityMode(2);d.position()}return e},applySpacerXY:function(c,d){if(d&&c.x===d.x&&c.y===d.y){c=undefined}return c},updateSpacerXY:function(b){this.getSpacer().setLocalXY(b.x,b.y)},convertX:function(b){return b},doHighlight:function(c,d){if(d!==true){Ext.fly(c).highlight(d)}else{Ext.fly(c).highlight()}},fireScrollStart:function(f,g){var h=this,e=h.component;h.invokePartners("onPartnerScrollStart",f,g);if(h.hasListeners.scrollstart){h.fireEvent("scrollstart",h,f,g)}if(e&&e.onScrollStart){e.onScrollStart(f,g)}Ext.GlobalEvents.fireEvent("scrollstart",h,f,g)},fireScroll:function(f,g){var h=this,e=h.component;h.invokePartners("onPartnerScroll",f,g);if(h.hasListeners.scroll){h.fireEvent("scroll",h,f,g)}if(e&&e.onScrollMove){e.onScrollMove(f,g)}Ext.GlobalEvents.fireEvent("scroll",h,f,g)},fireScrollEnd:function(f,g){var h=this,e=h.component;h.invokePartners("onPartnerScrollEnd",f,g);if(h.hasListeners.scrollend){h.fireEvent("scrollend",h,f,g)}if(e&&e.onScrollEnd){e.onScrollEnd(f,g)}Ext.GlobalEvents.fireEvent("scrollend",h,f,g)},initXStyle:function(){var c=this.getElement(),d=this.getX();if(c&&c.dom){if(!d){d="hidden"}else{if(d===true){d="auto"}}c.setStyle("overflow-x",d)}},initYStyle:function(){var d=this.getElement(),c=this.getY();if(d&&d.dom){if(!c){c="hidden"}else{if(c===true){c="auto"}}d.setStyle("overflow-y",c)}},invokePartners:function(k,j,l){var p=this,n=p._partners,i,m,o=k==="onPartnerScrollEnd";if(!p.suspendSync&!p.isReflecting){for(m in n){i=n[m].scroller;i.isReflecting=true;i[k](p,j,l);if(o){i.isReflecting=false}}}},clearReflecting:function(){this.isReflecting=false},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},resumePartnerSync:function(){if(this.suspendSync){this.suspendSync--}},updateDomScrollPosition:function(){var g=this,h=g.getElement(),e,f=g.position;if(h&&!h.destroyed){e=g.getElementScroll(h);f.x=e.left;f.y=e.top}g.positionDirty=false;return f},getElementScroll:function(b){return b.getScroll()},onDomScroll:function(){var i=this,f,g,h,j;if(i.isTouchScroller&&Ext.supports.touchScroll===2){j=i.getElement().dom;j.scrollTop=j.scrollLeft=0;return}f=i.updateDomScrollPosition();g=f.x;h=f.y;if(!i.isScrolling){i.isScrolling=Ext.isScrolling=true;i.fireScrollStart(g,h)}i.fireScroll(g,h);i.onDomScrollEnd()},onDomScrollEnd:function(){var h=this,e=h.getPosition(),f=e.x,g=e.y;h.isScrolling=Ext.isScrolling=false;h.trackingScrollLeft=f;h.trackingScrollTop=g;h.fireScrollEnd(f,g)},onPartnerScroll:function(h,f,g){var e=h._partners[this.getId()].axis;if(e){if(e==="x"){g=null}else{if(e==="y"){f=null}}}this.doScrollTo(f,g,false,true)},restoreState:function(){var d=this,e=d.getElement(),f;if(e){f=e.dom;if(d.trackingScrollTop!==undefined){f.scrollTop=d.trackingScrollTop;f.scrollLeft=d.trackingScrollLeft}}}}},1,0,0,0,["scroller.scroller"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.scroll,"Scroller"],0));(Ext.cmd.derive("Ext.fx.easing.Abstract",Ext.Base,{config:{startTime:0,startValue:0},isEasing:true,isEnded:false,constructor:function(b){this.initConfig(b);return this},applyStartTime:function(b){if(!b){b=Ext.Date.now()}return b},updateStartTime:function(b){this.reset()},reset:function(){this.isEnded=false},getValue:Ext.emptyFn},1,0,0,0,0,0,[Ext.fx.easing,"Abstract"],0));(Ext.cmd.derive("Ext.fx.easing.Momentum",Ext.fx.easing.Abstract,{config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(c){var d=Math.log(1-(c/10));this.theta=d;this.alpha=d/this.getAcceleration()},updateStartVelocity:function(b){this.velocity=b*this.getAcceleration()},updateAcceleration:function(b){this.velocity=this.getStartVelocity()*b;this.alpha=this.theta/b},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var b=Ext.Date.now()-this.getStartTime();return Math.exp(b*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}},0,0,0,0,0,0,[Ext.fx.easing,"Momentum"],0));(Ext.cmd.derive("Ext.fx.easing.Bounce",Ext.fx.easing.Abstract,{config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var d=Ext.Date.now()-this.getStartTime(),f=(d/this.getAcceleration()),e=f*Math.pow(Math.E,-this.getSpringTension()*f);return this.getStartValue()+(this.getStartVelocity()*e)}},0,0,0,0,0,0,[Ext.fx.easing,"Bounce"],0));(Ext.cmd.derive("Ext.fx.easing.BoundMomentum",Ext.fx.easing.Abstract,{config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(d,c){return Ext.factory(d,Ext.fx.easing.Momentum,c)},applyBounce:function(d,c){return Ext.factory(d,Ext.fx.easing.Bounce,c)},updateStartTime:function(b){this.getMomentum().setStartTime(b);Ext.fx.easing.Abstract.prototype.updateStartTime.apply(this,arguments)},updateStartVelocity:function(b){this.getMomentum().setStartVelocity(b)},updateStartValue:function(b){this.getMomentum().setStartValue(b)},reset:function(){this.lastValue=null;this.isBouncingBack=false;this.isOutOfBound=false;return Ext.fx.easing.Abstract.prototype.reset.apply(this,arguments)},getValue:function(){var t=this.getMomentum(),k=this.getBounce(),p=t.getStartVelocity(),o=p>0?1:-1,n=this.getMinMomentumValue(),q=this.getMaxMomentumValue(),r=(o==1)?q:n,m=this.lastValue,l,s;if(p===0){return this.getStartValue()}if(!this.isOutOfBound){l=t.getValue();s=t.getVelocity();if(Math.abs(s)<this.getMinVelocity()){this.isEnded=true}if(l>=n&&l<=q){return l}this.isOutOfBound=true;k.setStartTime(Ext.Date.now()).setStartVelocity(s).setStartValue(r)}l=k.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(m!==null){if((o==1&&l<m)||(o==-1&&l>m)){this.isBouncingBack=true}}}else{if(Math.round(l)==r){this.isEnded=true}}}this.lastValue=l;return l}},0,0,0,0,0,0,[Ext.fx.easing,"BoundMomentum"],0));(Ext.cmd.derive("Ext.fx.easing.Linear",Ext.fx.easing.Abstract,{config:{duration:0,endValue:0},updateStartValue:function(b){this.distance=this.getEndValue()-b},updateEndValue:function(b){this.distance=b-this.getStartValue()},getValue:function(){var d=Ext.Date.now()-this.getStartTime(),c=this.getDuration();if(d>c){this.isEnded=true;return this.getEndValue()}else{return this.getStartValue()+((d/c)*this.distance)}}},0,0,0,0,["easing.linear"],0,[Ext.fx.easing,"Linear"],0));(Ext.cmd.derive("Ext.fx.easing.EaseOut",Ext.fx.easing.Linear,{config:{exponent:4,duration:1500},getValue:function(){var m=Ext.Date.now()-this.getStartTime(),o=this.getDuration(),q=this.getStartValue(),k=this.getEndValue(),r=this.distance,p=m/o,l=1-p,n=1-Math.pow(l,this.getExponent()),j=q+(n*r);if(m>=o){this.isEnded=true;return k}return j}},0,0,0,0,["easing.ease-out"],0,[Ext.fx.easing,"EaseOut"],0));(Ext.cmd.derive("Ext.util.translatable.Abstract",Ext.Evented,{config:{useWrapper:null,easing:null,easingX:null,easingY:null},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:false,isTranslatable:true,constructor:function(b){this.mixins.observable.constructor.call(this,b);this.position={x:0,y:0}},factoryEasing:function(b){return Ext.factory(b,Ext.fx.easing.Linear,null,"easing")},applyEasing:function(b){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(b))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(b))}},applyEasingX:function(b){return this.factoryEasing(b)},applyEasingY:function(b){return this.factoryEasing(b)},doTranslate:Ext.emptyFn,translate:function(e,f,d){if(d){return this.translateAnimated(e,f,d)}if(this.isAnimating){this.stopAnimation()}if(!isNaN(e)&&typeof e=="number"){this.x=e}if(!isNaN(f)&&typeof f=="number"){this.y=f}this.doTranslate(e,f)},translateAxis:function(f,i,j){var g,h;if(f=="x"){g=i}else{h=i}return this.translate(g,h,j)},getPosition:function(){var c=this,d=c.position;d.x=-c.x;d.y=-c.y;return d},animate:function(c,d){this.activeEasingX=c;this.activeEasingY=d;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(i,k,m){var n=this;if(!Ext.isObject(m)){m={}}if(n.isAnimating){n.stopAnimation()}n.callback=m.callback;n.callbackScope=m.scope;var o=Ext.Date.now(),l=m.easing,p=(typeof i=="number")?(m.easingX||l||n.getEasingX()||true):null,j=(typeof k=="number")?(m.easingY||l||n.getEasingY()||true):null;if(p){p=n.factoryEasing(p);p.setStartTime(o);p.setStartValue(n.x);p.setEndValue(i);if("duration" in m){p.setDuration(m.duration)}}if(j){j=n.factoryEasing(j);j.setStartTime(o);j.setStartValue(n.y);j.setEndValue(k);if("duration" in m){j.setDuration(m.duration)}}return n.animate(p,j)},doAnimationFrame:function(){var j=this,l=j.activeEasingX,g=j.activeEasingY,k=Date.now(),h,i;if(!j.isAnimating){return}j.lastRun=k;if(l===null&&g===null){j.stopAnimation();return}if(l!==null){j.x=h=Math.round(l.getValue());if(l.isEnded){j.activeEasingX=null;j.fireEvent("axisanimationend",j,"x",h)}}else{h=j.x}if(g!==null){j.y=i=Math.round(g.getValue());if(g.isEnded){j.activeEasingY=null;j.fireEvent("axisanimationend",j,"y",i)}}else{i=j.y}if(j.lastX!==h||j.lastY!==i){j.doTranslate(h,i);j.lastX=h;j.lastY=i}j.fireEvent("animationframe",j,h,i)},stopAnimation:function(){var b=this;if(!b.isAnimating){return}b.activeEasingX=null;b.activeEasingY=null;b.isAnimating=false;Ext.AnimationQueue.stop(b.doAnimationFrame,b);b.fireEvent("animationend",b,b.x,b.y);if(b.callback){b.callback.call(b.callbackScope);b.callback=null}},refresh:function(){this.translate(this.x,this.y)},destroy:function(){if(this.isAnimating){this.stopAnimation()}Ext.Evented.prototype.destroy.call(this)}},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(b){if(!b){return}return Ext.get(b)},updateElement:function(){this.refresh()}},0,0,0,0,0,0,[Ext.util.translatable,"Dom"],0));(Ext.cmd.derive("Ext.util.translatable.CssTransform",Ext.util.translatable.Dom,{doTranslate:function(e,f){var d=this.getElement();if(!this.destroyed&&!d.destroyed){d.translate(e,f)}},destroy:function(){var b=this.getElement();if(b&&!b.destroyed){b.dom.style.webkitTransform=null}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,"CssTransform"],0));(Ext.cmd.derive("Ext.util.translatable.ScrollPosition",Ext.util.translatable.Dom,{type:"scrollposition",config:{useWrapper:true},getWrapper:function(){var f=this.wrapper,d=this.getElement(),e;if(!f){e=d.getParent();if(!e){return null}if(e.hasCls("x-translatable-hboxfix")){e=e.getParent()}if(this.getUseWrapper()){f=d.wrap()}else{f=e}d.addCls("x-translatable");f.addCls("x-translatable-container");this.wrapper=f;f.on("painted",function(){if(!this.isAnimating){this.refresh()}},this);this.refresh()}return f},doTranslate:function(f,g){var h=this.getWrapper(),e;if(h){e=h.dom;if(typeof f=="number"){e.scrollLeft=500000-f}if(typeof g=="number"){e.scrollTop=500000-g}}},destroy:function(){var d=this,e=d.getElement(),f=d.wrapper;if(f){if(!e.destroyed){if(d.getUseWrapper()){f.doReplaceWith(e)}e.removeCls("x-translatable")}if(!f.destroyed){f.removeCls("x-translatable-container");f.un("painted","refresh",d)}delete d.wrapper;delete d._element}Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,"ScrollPosition"],0));(Ext.cmd.derive("Ext.util.translatable.ScrollParent",Ext.util.translatable.Dom,{isScrollParent:true,applyElement:function(d){var c=Ext.get(d);if(c){this.parent=c.parent()}return c},doTranslate:function(e,f){var d=this.parent;d.setScrollLeft(Math.round(-e));d.setScrollTop(Math.round(-f))},getPosition:function(){var f=this,e=f.position,d=f.parent;e.x=d.getScrollLeft();e.y=d.getScrollTop();return e}},0,0,0,0,0,0,[Ext.util.translatable,"ScrollParent"],0));(Ext.cmd.derive("Ext.util.translatable.CssPosition",Ext.util.translatable.Dom,{doTranslate:function(e,f){var d=this.getElement().dom.style;if(typeof e=="number"){d.left=e+"px"}if(typeof f=="number"){d.top=f+"px"}},destroy:function(){var b=this.getElement().dom.style;b.left=null;b.top=null;Ext.util.translatable.Dom.prototype.destroy.call(this)}},0,0,0,0,0,0,[Ext.util.translatable,"CssPosition"],0));(Ext.cmd.derive("Ext.util.Translatable",Ext.Base,{constructor:function(d){var c=Ext.util.translatable;switch(Ext.browser.getPreferredTranslationMethod(d)){case"scrollposition":return new c.ScrollPosition(d);case"scrollparent":return new c.ScrollParent(d);case"csstransform":return new c.CssTransform(d);case"cssposition":return new c.CssPosition(d)}}},1,0,0,0,0,0,[Ext.util,"Translatable"],0));(Ext.cmd.derive("Ext.scroll.Indicator",Ext.Widget,{config:{axis:null,hideAnimation:true,hideDelay:0,scroller:null,minLength:24},defaultHideAnimation:{to:{opacity:0},duration:300},names:{x:{side:"l",getSize:"getHeight",setLength:"setWidth",translate:"translateX"},y:{side:"t",getSize:"getWidth",setLength:"setHeight",translate:"translateY"}},oppositeAxis:{x:"y",y:"x"},cls:"x-scroll-indicator",applyHideAnimation:function(b){if(b){b=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,b)}return b},constructor:function(e){var f=this,d;Ext.Widget.prototype.constructor.call(this,e);d=f.getAxis();f.names=f.names[d];f.element.addCls(f.cls+" "+f.cls+"-"+d)},hide:function(){var c=this,d=c.getHideDelay();if(d){c._hideTimer=Ext.defer(c.doHide,d,c)}else{c.doHide()}},setValue:function(r){var t=this,B=t.element,u=t.names,A=t.getAxis(),w=t.getScroller(),x=w.getMaxUserPosition()[A],q=w.getElementSize()[A],v=t.length,C=t.getMinLength(),D=v,y=q-v-t.sizeAdjust,p=Math.round,s=Math.max,z;if(r<0){D=p(s(v+(v*r/q),C));z=0}else{if(r>x){D=p(s(v-(v*(r-x)/q),C));z=y+v-D}else{z=p(r/x*y)}}t[u.translate](z);B[u.setLength](D)},show:function(){var d=this,e=d.element,f=e.getActiveAnimation();if(f){f.end()}if(!d._inDom){d.getScroller().getElement().appendChild(e);d._inDom=true;if(!d.size){d.cacheStyles()}}d.refreshLength();clearTimeout(d._hideTimer);e.setStyle("opacity","")},privates:{cacheStyles:function(){var d=this,e=d.element,f=d.names;d.size=e[f.getSize]();d.margin=e.getMargin(f.side)},doHide:function(){var c=this.getHideAnimation(),d=this.element;if(c){d.animate(c)}else{d.setStyle("opacity",0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle("opacity","0")},refreshLength:function(){var l=this,m=l.names,q=l.getAxis(),o=l.getScroller(),t=o.getSize()[q],k=o.getElementSize()[q],n=k/t,r=l.margin*2,p=l.hasOpposite()?(r+l.size):r,s=Math.max(Math.round((k-p)*n),l.getMinLength());l.sizeAdjust=p;l.length=s;l.element[m.setLength](s)},translateX:function(b){this.element.translate(b)},translateY:function(b){this.element.translate(0,b)}}},1,["scrollindicator"],["widget","scrollindicator"],{widget:true,scrollindicator:true},["widget.scrollindicator"],0,[Ext.scroll,"Indicator"],0));(Ext.cmd.derive("Ext.scroll.TouchScroller",Ext.scroll.Scroller,{isTouchScroller:true,config:{autoRefresh:true,bounceEasing:{duration:400},elementSize:undefined,indicators:true,fps:"auto",maxAbsoluteVelocity:6,momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,innerElement:null,size:undefined,slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},startMomentumResetTime:300,translatable:{translationMethod:"auto",useWrapper:false}},cls:"x-scroll-container",scrollerCls:"x-scroll-scroller",dragStartTime:0,dragEndTime:0,isDragging:false,isAnimating:false,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:"onTouchStart",touchmove:"onTouchMove",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd"},refreshCounter:0,constructor:function(e){var d=this,f="onEvent";d.elementListeners={touchstart:f,touchmove:f,dragstart:f,drag:f,dragend:f,scope:d};d.minPosition={x:0,y:0};d.startPosition={x:0,y:0};d.velocity={x:0,y:0};d.isAxisEnabledFlags={x:false,y:false};d.flickStartPosition={x:0,y:0};d.flickStartTime={x:0,y:0};d.lastDragPosition={x:0,y:0};d.dragDirection={x:0,y:0};Ext.scroll.Scroller.prototype.constructor.call(this,e);d.refreshAxes();d.scheduleRefresh={idle:d.doRefresh,scope:d,single:true,destroyable:true}},applyBounceEasing:function(c){var d=Ext.fx.easing.EaseOut;return{x:Ext.factory(c,d),y:Ext.factory(c,d)}},applyElementSize:function(f){var j=this.getElement(),i,g,h;if(!j){return null}i=j.dom;if(!i){return}if(f==null){g=i.clientWidth;h=i.clientHeight}else{g=f.x;h=f.y}return{x:g,y:h}},applyIndicators:function(k,n){var l=this,h,m,i,j;if(k){if(k===true){h=m={}}else{i=k.x;j=k.y;if(i||j){h=(i==null||i===true)?{}:i;m=(i==null||j===true)?{}:j}else{h=m=k}}if(n){if(h){n.x.setConfig(h)}else{n.x.destroy();n.x=null}if(m){n.y.setConfig(m)}else{n.y.destroy();n.y=null}k=n}else{k={x:null,y:null};if(h){k.x=new Ext.scroll.Indicator(Ext.applyIf({axis:"x",scroller:l},h))}if(m){k.y=new Ext.scroll.Indicator(Ext.applyIf({axis:"y",scroller:l},m))}}}else{if(n){if(n.x){n.x.destroy()}if(n.y){n.y.destroy()}n.x=n.y=null}}return k},applyMomentumEasing:function(c){var d=Ext.fx.easing.BoundMomentum;return{x:Ext.factory(c,d),y:Ext.factory(c,d)}},applyInnerElement:function(b){if(b&&!b.isElement){b=Ext.get(b)}return b},applyMaxPosition:function(h,g){if(g&&h.x===g.x&&h.y===g.y){return}var f=this.getTranslatable(),e;if(f.isAnimating){e=f.activeEasingY;if(e&&e.getStartVelocity&&e.getStartVelocity()<0&&h.y<g.y){e.setMinMomentumValue(-h.y)}}return h},applyMaxUserPosition:function(c,d){if(d&&c.x===d.x&&c.y===d.y){return}return c},applySize:function(g){var l=this.getElement(),j,k,h,i;if(typeof g==="number"){h=g;i=g}else{if(g){h=g.x;i=g.y}}if(l&&(h==null||i==null)){j=l.dom;k=this.getInnerElement().dom;if(h==null){h=Math.max(k.scrollWidth,j.clientWidth)}if(i==null){i=Math.max(k.scrollHeight,j.clientHeight)}}return{x:h,y:i}},applySlotSnapOffset:function(b){if(typeof b==="number"){b={x:b,y:b}}return b},applySlotSnapSize:function(b){if(typeof b==="number"){b={x:b,y:b}}return b},applySlotSnapEasing:function(c){var d=Ext.fx.easing.EaseOut;return{x:Ext.factory(c,d),y:Ext.factory(c,d)}},applyTranslatable:function(c,d){return Ext.factory(c,Ext.util.Translatable,d)},destroy:function(){var h=this,e=h.getElement(),g=h.getInnerElement(),f=h.sizeMonitors;if(f){f.element.destroy();f.container.destroy()}if(e&&!e.destroyed){e.removeCls(h.cls)}if(g&&!g.destroyed){g.removeCls(h.scrollerCls)}if(h._isWrapped){if(!e.destroyed){h.unwrapContent()}g.destroy()}h.setElement(null);h.setInnerElement(null);h.setIndicators(null);Ext.destroy(h.getTranslatable());Ext.scroll.Scroller.prototype.destroy.call(this)},refresh:function(e,d){var f=this;++f.refreshCounter;if(e){f.doRefresh(d)}else{if(!f.refreshScheduled){f.scheduleRefresh.args=[d];f.refreshScheduled=Ext.on(f.scheduleRefresh)}}},updateAutoRefresh:function(b){this.toggleResizeListeners(b)},updateBounceEasing:function(b){this.getTranslatable().setEasingX(b.x).setEasingY(b.y)},updateElementSize:function(){if(!this.isConfiguring){this.refreshAxes()}},updateDisabled:function(b){if(!this.isConfiguring){if(b){this.detachListeners()}else{this.attachListeners()}}},updateElement:function(l,g){var j=this,i=j.getInnerElement(),k,h;if(!i){i=l.dom.firstChild;if(!i||i.nodeType!==1||!Ext.fly(i).hasCls(j.scrollerCls)){i=j.wrapContent(l)}j.setInnerElement(i)}l.addCls(j.cls);if(j.isConfiguring){if(!j.getTranslatable().isScrollParent){l.dom.style.overflowX=l.dom.style.overflowY="";k=j.elementListeners;k.mousewheel="onMouseWheel";k.scroll={fn:"onElementScroll",delegated:false,scope:j}}}if(!j.getDisabled()){j.attachListeners()}if(!j.isConfiguring){h=j.getAutoRefresh();if(h!==false){j.toggleResizeListeners(h);if(h){j.refresh()}else{if(h===null){j.setElementSize(null)}}}}},updateFps:function(b){if(b!=="auto"){this.getTranslatable().setFps(b)}},updateMaxUserPosition:function(){this.snapToBoundary()},updateMinUserPosition:function(){this.snapToBoundary()},updateInnerElement:function(b){if(b){b.addCls(this.scrollerCls)}this.getTranslatable().setElement(b)},updateSize:function(b){if(!this.isConfiguring){if(Ext.supports.touchScroll===1){Ext.scroll.Scroller.prototype.updateSize.call(this,b)}this.refreshAxes()}},updateTranslatable:function(b){b.setElement(this.getInnerElement());if(!b.isScrollParent){b.on({animationframe:"onAnimationFrame",animationend:"onAnimationEnd",scope:this})}},updateX:function(){if(!this.isConfiguring){this.refreshAxes()}},updateY:function(){if(!this.isConfiguring){this.refreshAxes()}},privates:{attachListeners:function(){this.getElement().on(this.elementListeners)},constrainX:function(b){return Math.min(this.getMaxPosition().x,Math.max(b,0))},constrainY:function(b){return Math.min(this.getMaxPosition().y,Math.max(b,0))},convertEasingConfig:function(b){return b},detachListeners:function(){this.getElement().un(this.elementListeners)},doRefresh:function(e){var g=this,h,f;if(g.refreshScheduled){g.refreshScheduled=g.refreshScheduled.destroy()}if(g.refreshCounter&&g.getElement()){g.stopAnimation();g.getTranslatable().refresh();if(e){h=e.size;f=e.elementSize}g.setSize(h);g.setElementSize(f);g.fireEvent("refresh",g);g.refreshCounter=0}},doScrollTo:function(q,r,y,u){var s=this,t=s.isDragging,p=s.getTranslatable().isScrollParent,z=!s.isReflecting&&!p;if(s.destroyed||!s.getElement()){return s}u=u||s.isDragging;var o=s.getTranslatable(),x=s.position,n=false,v,w;if(!t||s.isAxisEnabled("x")){if(isNaN(q)||typeof q!=="number"){q=x.x}else{if(!u){q=s.constrainX(q)}if(x.x!==q){x.x=q;n=true}}v=s.convertX(-q)}if(!t||s.isAxisEnabled("y")){if(isNaN(r)||typeof r!=="number"){r=x.y}else{if(!u){r=s.constrainY(r)}if(x.y!==r){x.y=r;n=true}}w=-r}if(n){if(z){s.onScrollStart()}if(y){o.translateAnimated(v,w,y)}else{if(!p){s.onScroll()}o.translate(v,w);if(z){s.onScrollEnd()}}}else{if(y&&y.callback){y.callback()}}return s},getAnimationEasing:function(t,q){if(!this.isAxisEnabled(t)){return null}var o=this,u=o.position[t],w=o.getMinUserPosition()[t],r=o.getMaxUserPosition()[t],y=o.getMaxAbsoluteVelocity(),v=null,x=o.dragEndTime,s=q.flick.velocity[t],e=t==="x",z,p;if(u<w){v=w}else{if(u>r){v=r}}if(e){u=o.convertX(u);v=o.convertX(v)}if(v!==null){p=o.getBounceEasing()[t];p.setConfig({startTime:x,startValue:-u,endValue:-v});return p}if(s===0){return null}if(s<-y){s=-y}else{if(s>y){s=y}}p=o.getMomentumEasing()[t];z={startTime:x,startValue:-u,startVelocity:s*1.5,minMomentumValue:-r,maxMomentumValue:0};if(e){o.convertEasingConfig(z)}p.setConfig(z);return p},getSnapPosition:function(p){var o=this,k=o.getSlotSnapSize()[p],n=null,j,l,m,i;if(k!==0&&o.isAxisEnabled(p)){j=o.position[p];l=o.getSlotSnapOffset()[p];m=o.getMaxUserPosition()[p];i=Math.floor((j-l)%k);if(i!==0){if(j!==m){if(Math.abs(i)>k/2){n=Math.min(m,j+((i>0)?k-i:i-k))}else{n=j-i}}else{n=j-i}}}return n},hideIndicators:function(){var h=this,g=h.getIndicators(),f,e;if(g){if(h.isAxisEnabled("x")){f=g.x;if(f){f.hide()}}if(h.isAxisEnabled("y")){e=g.y;if(e){e.hide()}}}},isAxisEnabled:function(b){this.getX();this.getY();return this.isAxisEnabledFlags[b]},onAnimationEnd:function(){this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(h,e,g){var f=this.position;f.x=this.convertX(-e);f.y=-g;this.onScroll()},onAxisDrag:function(G,u){if(u&&this.isAxisEnabled(G)){var t=this,z=t.flickStartPosition,s=t.flickStartTime,B=t.lastDragPosition,x=t.dragDirection,J=t.position[G],w=t.getMinUserPosition()[G],v=t.getMaxUserPosition()[G],D=t.startPosition[G],A=B[G],y=D-u,C=x[G],E=t.getOutOfBoundRestrictFactor(),I=t.getStartMomentumResetTime(),H=Ext.Date.now(),F;if(y<w){y*=E}else{if(y>v){F=y-v;y=v+F*E}}if(y>A){x[G]=1}else{if(y<A){x[G]=-1}}if((C!==0&&(x[G]!==C))||(H-s[G])>I){z[G]=J;s[G]=H}B[G]=y;return true}},onDomScroll:function(){var d=this,f,e;if(d.getTranslatable().isScrollParent){f=d.getElement().dom;e=d.position;e.x=f.scrollLeft;e.y=f.scrollTop}Ext.scroll.Scroller.prototype.onDomScroll.call(this)},onDrag:function(f){var e=this,d=e.lastDragPosition;if(!e.isDragging){return}if(e.onAxisDrag("x",e.convertX(f.deltaX))|e.onAxisDrag("y",f.deltaY)){e.doScrollTo(d.x,d.y)}},onDragEnd:function(g){var h=this,e,f;if(!h.isDragging){return}h.dragEndTime=Ext.Date.now();h.onDrag(g);h.isDragging=false;e=h.getAnimationEasing("x",g);f=h.getAnimationEasing("y",g);if(e||f){h.getTranslatable().animate(e,f)}else{h.onScrollEnd()}},onDragStart:function(t){var s=this,e=s.getDirection(),y=t.absDeltaX,z=t.absDeltaY,u=s.getDirectionLock(),w=s.startPosition,A=s.flickStartPosition,v=s.flickStartTime,x=s.lastDragPosition,B=s.position,C=s.dragDirection,q=B.x,r=B.y,D=Ext.Date.now();if(u&&e!=="both"){if((e==="horizontal"&&y>z)||(e==="vertical"&&z>y)){t.stopPropagation()}else{return}}x.x=q;x.y=r;A.x=q;A.y=r;w.x=q;w.y=r;v.x=D;v.y=D;C.x=0;C.y=0;s.dragStartTime=D;s.isDragging=true;if(!s.isScrolling){s.onScrollStart()}},onElementResize:function(d,c){this.refresh(true,{elementSize:{x:c.contentWidth,y:c.contentHeight},size:this.getAutoRefresh()?null:this.getSize()})},onElementScroll:function(d,c){c.scrollTop=c.scrollLeft=0},onEvent:function(d){var e=this,f=d.browserEvent;if((!e.self.isTouching||e.isTouching)&&((!e.getTranslatable().isScrollParent)||(!e.isMouseEvent[f.type]&&f.pointerType!=="mouse"))&&(e.getY()||e.getX())){e[e.listenerMap[d.type]](d)}},onInnerElementResize:function(d,c){this.refresh(true,{size:{x:c.width,y:c.height}})},onMouseWheel:function(p){var o=this,e=p.getWheelDeltas(),u=-e.x,w=-e.y,s=o.position,t=o.getMaxUserPosition(),x=o.getMinUserPosition(),n=Math.max,v=Math.min,q=n(v(s.x+u,t.x),x.x),r=n(v(s.y+w,t.y),x.y);u=q-s.x;w=r-s.y;if(!u&&!w){return}p.stopEvent();o.onScrollStart();o.scrollBy(u,w);o.onScroll();o.onScrollEnd()},onPartnerScrollEnd:function(e,f){var d=this;if(!d.getTranslatable().isScrollParent){d.fireScrollEnd(e,f)}Ext.scroll.Scroller.prototype.onPartnerScrollEnd.call(this,e,f);d.isScrolling=false;d.hideIndicators()},onPartnerScrollStart:function(e,f){var d=this;d.isScrolling=true;if(!d.getTranslatable().isScrollParent){d.fireScrollStart(e,f)}d.showIndicators()},onScroll:function(){var l=this,n=l.position,h=n.x,j=n.y,k=l.getIndicators(),i,m;if(k){if(l.isAxisEnabled("x")){i=k.x;if(i){i.setValue(h)}}if(l.isAxisEnabled("y")){m=k.y;if(m){m.setValue(j)}}}l.fireScroll(h,j)},onScrollEnd:function(){var c=this,d=c.position;if(c.isScrolling&&!c.isTouching&&!c.snapToSlot()){c.hideIndicators();c.isScrolling=Ext.isScrolling=false;c.fireScrollEnd(d.x,d.y)}},onScrollStart:function(){var c=this,d=c.position;if(!c.isScrolling){c.showIndicators();c.isScrolling=Ext.isScrolling=true;c.fireScrollStart(d.x,d.y)}},onTouchEnd:function(){var b=this;b.isTouching=b.self.isTouching=false;if(!b.isDragging&&b.snapToSlot()){b.onScrollStart()}},onTouchMove:function(b){b.preventDefault()},onTouchStart:function(){var b=this;b.isTouching=b.self.isTouching=true;Ext.getDoc().on({touchend:"onTouchEnd",scope:b,single:true});b.stopAnimation()},refreshAxes:function(){var r=this,t=r.isAxisEnabledFlags,l=r.getSize(),m=r.getElementSize(),n=r.getIndicators(),u,v,o,p,s,q;if(!l||!m){return}u=Math.max(0,l.x-m.x);v=Math.max(0,l.y-m.y);o=r.getX();p=r.getY();r.setMaxPosition({x:u,y:v});if(o===true||o==="auto"){t.x=!!u}else{if(o===false){t.x=false;s=n&&n.x;if(s){s.hide()}}else{if(o==="scroll"){t.x=true}}}if(p===true||p==="auto"){t.y=!!v}else{if(p===false){t.y=false;q=n&&n.y;if(q){q.hide()}}else{if(p==="scroll"){t.y=true}}}r.setMaxUserPosition({x:t.x?u:0,y:t.y?v:0});if(Ext.supports.touchScroll===1){r.initXStyle();r.initYStyle()}},showIndicators:function(){var h=this,g=h.getIndicators(),f,e;if(g){if(h.isAxisEnabled("x")){f=g.x;if(f){f.show()}}if(h.isAxisEnabled("y")){e=g.y;if(e){e.show()}}}},snapToBoundary:function(){var m=this,n=m.getPosition();if(m.isConfiguring||!(n.x||n.y)){return}var r=m.getMinUserPosition(),o=m.getMaxUserPosition(),p=r.x,q=r.y,s=o.x,t=o.y,k=Math.round(n.x),l=Math.round(n.y);if(k<p){k=p}else{if(k>s){k=s}}if(l<q){l=q}else{if(l>t){l=t}}m.doScrollTo(k,l)},snapToSlot:function(){var f=this,h=f.getSnapPosition("x"),e=f.getSnapPosition("y"),g=f.getSlotSnapEasing();if(h!==null||e!==null){f.doScrollTo(h,e,{easingX:g.x,easingY:g.y});return true}return false},stopAnimation:function(){this.getTranslatable().stopAnimation()},toggleResizeListeners:function(h){var l=this,g=l.getElement(),i,j,k;if(g){k=l.getInnerElement();if(h){i=j="on"}else{if(h===null){i="on";j="un"}else{i=j="un"}}g[i]("resize","onElementResize",l);k[j]("resize","onInnerElementResize",l)}},unwrapContent:function(){var e=this.getInnerElement().dom,d=this.getElement().dom,f;while((f=e.firstChild)){d.insertBefore(f,e)}},wrapContent:function(f){var e=document.createElement("div"),h=f.dom,g;while(g=h.lastChild){e.insertBefore(g,e.firstChild)}h.appendChild(e);this.setInnerElement(e);this._isWrapped=true;return this.getInnerElement()}}},1,0,0,0,["scroller.touch"],0,[Ext.scroll,"TouchScroller"],0));(Ext.cmd.derive("Ext.scroll.DomScroller",Ext.scroll.Scroller,{isDomScroller:true,getMaxPosition:function(){var e=this.getElement(),f=0,g=0,h;if(e&&!e.destroyed){h=e.dom;f=h.scrollWidth-h.clientWidth;g=h.scrollHeight-h.clientHeight}return{x:f,y:g}},getMaxUserPosition:function(){var j=this,f=j.getElement(),g=0,h=0,i;if(f&&!f.destroyed){i=f.dom;if(j.getX()){g=i.scrollWidth-i.clientWidth}if(j.getY()){h=i.scrollHeight-i.clientHeight}}return{x:g,y:h}},getPosition:function(){var b=this;if(b.positionDirty){b.updateDomScrollPosition()}return b.position},getSize:function(){var d=this.getElement(),e,f;if(d&&!d.destroyed){f=d.dom;e={x:f.scrollWidth,y:f.scrollHeight}}else{e={x:0,y:0}}return e},updateElement:function(c,d){this.initXStyle();this.initYStyle()},updateX:function(b){this.initXStyle()},updateY:function(b){this.initYStyle()},privates:{doScrollTo:function(n,o,v){var p=this,s=p.getElement(),r,u,m,i,q,t;if(s&&!s.destroyed){u=s.dom;i=(n===Infinity);q=(o===Infinity);if(i||q){r=p.getMaxPosition();if(i){n=r.x}if(q){o=r.y}}n=p.convertX(n);if(v){m={};if(o!=null){m.scrollTop=o}if(n!=null){m.scrollLeft=n}s.animate(Ext.mergeIf({to:{scrollTop:o,scrollLeft:n}},v))}else{if(o!=null){u.scrollTop=o}if(n!=null){u.scrollLeft=n;if(Ext.isIE8){t=u.scrollLeft;u.scrollLeft=n}}}p.positionDirty=true}},getElementScroll:function(b){return b.getScroll()},stopAnimation:function(){var b=this.getElement().getActiveAnimation();if(b){b.end()}}}},0,0,0,0,["scroller.dom"],0,[Ext.scroll,"DomScroller"],function(b){Ext.onDocumentReady(function(){b.document=new b({x:true,y:true,element:document.body})})}));(Ext.cmd.derive("Ext.util.Floating",Ext.Base,{mixinId:"floating",focusOnToFront:true,shadow:"sides",animateShadow:false,constrain:false,config:{activeCounter:0,alwaysOnTop:false},preventDefaultAlign:false,_visModeMap:{visibility:1,display:2,offsets:3},constructor:function(){var i=this,j=i.el,h=i.shadow,g,f;if(h){f={mode:(h===true)?"sides":h};g=i.shadowOffset;if(g){f.offset=g}f.animate=i.animateShadow;f.fixed=i.fixed;j.enableShadow(f,false)}if(i.shim||Ext.useShims){j.enableShim({fixed:i.fixed},false)}j.setVisibilityMode(i._visModeMap[i.hideMode]);i.el.on({mousedown:i.onMouseDown,scope:i,capture:true});i.registerWithOwnerCt();i.initHierarchyEvents()},alignTo:function(l,h,i,k){var j=this,g;Ext.un("scroll",j.onAlignToScroll,j);if(l.isComponent){g=l.el}else{if(l.nodeType){g=Ext.fly(l)}else{g=l}}if(!g.contains(j.el)){Ext.on("scroll",j.onAlignToScroll,j)}j._lastAlignTarget=l;j._lastAlignToPos=h;j.mixins.positionable.alignTo.call(j,g,h,i,k)},initFloatConstrain:function(){var d=this,c=d.floatParent;if((d.constrain||d.constrainHeader)&&!d.constrainTo){d.constrainTo=c?c.getTargetEl():d.container}},initHierarchyEvents:function(){var c=this,d=this.syncHidden;if(!c.hasHierarchyEventListeners){c.mon(Ext.GlobalEvents,{hide:d,collapse:d,show:d,expand:d,added:d,scope:c});c.hasHierarchyEventListeners=true}},registerWithOwnerCt:function(){var f=this,d=f.ownerCt,e=f.zIndexParent;if(e){e.unregisterFloatingItem(f)}e=f.zIndexParent=f.up("[floating]");f.floatParent=d||e;f.initFloatConstrain();delete f.ownerCt;if(e){e.registerFloatingItem(f)}else{Ext.WindowManager.register(f)}},onMouseDown:function(l){var e=this,i=e.focusTask,n=l.pointerType==="touch",m,k,j;if(e.floating&&(!i||!i.id)){m=l.target;k=e.el.dom;while(!n&&m&&m!==k){if(Ext.fly(m).isFocusable()){n=true}m=m.parentNode}j=Ext.WindowManager.getActive()===e&&(m===k||n);if(!j){e.toFront(n)}}},onBeforeFloatLayout:function(){this.el.preventSync=true},onAfterFloatLayout:function(){var b=this.el;if(b.shadow||b.shim){b.setUnderlaysVisible(true);b.syncUnderlays()}},syncHidden:function(){var h=this,g=h.hidden||!h.rendered,f=h.hierarchicallyHidden=h.isHierarchicallyHidden(),e=h.pendingShow;if(g!==f){if(f){h.hide();h.pendingShow=true}else{if(e){delete h.pendingShow;if(e.length){h.show.apply(h,e)}else{h.show()}}}}},setZIndex:function(d){var c=this;c.el.setZIndex(d);d+=10;if(c.floatingDescendants){d=Math.floor(c.floatingDescendants.setBase(d)/100)*100+10000}return d},doConstrain:function(e){var d=this,f=d.calculateConstrainedPosition(e,null,true);if(f){d.setPosition(f)}},updateActiveCounter:function(d){var c=this.zIndexParent;if(c&&this.bringParentToFront!==false){c.setActiveCounter(++Ext.ZIndexManager.activeCounter)}c=this.zIndexManager;if(c){c.onComponentUpdate(this)}},updateAlwaysOnTop:function(d){var c=this.zIndexManager;if(c){c.onComponentUpdate(this)}},toFront:function(c){var d=this;if(d.zIndexManager.bringToFront(d,c||!d.focusOnToFront)){if(d.hasListeners.tofront){d.fireEvent("tofront",d,d.el.getZIndex())}}return d},setActive:function(g,e){var h=this,f;if(g){if(h.el.shadow&&!h.maximized){h.el.enableShadow(null,true)}if(e){f=Ext.ComponentManager.getActiveComponent();if(!f||!f.up(h)){h.focus()}}h.fireEvent("activate",h)}else{h.fireEvent("deactivate",h)}},toBack:function(){this.zIndexManager.sendToBack(this);return this},center:function(){var d=this,c;if(d.isVisible()){c=d.getAlignToXY(d.container,"c-c");d.setPagePosition(c)}else{d.needsCenter=true}return d},onFloatShow:function(){if(this.needsCenter){this.center()}delete this.needsCenter;if(this.toFrontOnShow){this.toFront()}},fitContainer:function(l){var i=this,j=i.floatParent,g=j?j.getTargetEl():i.container,h=g.getViewSize(),k=j||(g.dom!==document.body)?[0,0]:g.getXY();h.x=k[0];h.y=k[1];i.setBox(h,l)},privates:{onFloatDestroy:function(){this.clearAlignEl()},clearAlignEl:function(){var b=this;if(b._lastAlignTarget){Ext.un("scroll",b.onAlignToScroll,b);b._lastAlignPos=b._lastAlignTarget=null}},onAlignToScroll:function(h){var j=this,g=j._lastAlignTarget,l=g.isFloating,k,i;if(g){if(g.isComponent){k=g.destroyed;g=g.el}else{if(g.nodeType){g=Ext.fly(g)}i=g.dom;k=!i||Ext.isGarbage(i)}if(k){j.clearAlignEl()}else{if((h.getElement().contains(g)||l)&&!h.getElement().contains(j.el)){j.alignTo(g,j._lastAlignToPos)}}}}}},1,0,0,0,0,0,[Ext.util,"Floating"],0));(Ext.cmd.derive("Ext.util.ElementContainer",Ext.Base,{mixinId:"elementCt",config:{childEls:{$value:{},cached:true,lazy:true,merge:function(k,i,l,m){var n=i?Ext.Object.chain(i):{},h,j;if(k instanceof Array){for(h=k.length;h--;){j=k[h];if(!m||!(j in n)){if(typeof j==="string"){n[j]={name:j,itemId:j}}else{n[j.name]=j}}}}else{if(k){if(k.constructor===Object){for(h in k){if(!m||!(h in n)){j=k[h];if(j===true){n[h]={itemId:h}}else{if(typeof j==="string"){n[h]={itemId:j}}else{n[h]=j;if(!("itemId" in j)){j.itemId=h}}}n[h].name=h}}}else{if(!m||!(k in n)){n[k]={name:k,itemId:k}}}}}return n}}},destroy:function(){var h=this,e=h.getChildEls(),g,f;for(f in e){g=h[f];if(g){if(g.destroy){g.component=null;g.destroy()}h[f]=null}}},privates:{addChildEl:function(e){var f=this,d=f.getChildEls();if(!f.hasOwnProperty("childEls")){f.childEls=d=Ext.Object.chain(d)}if(typeof e==="string"){e={name:e,itemId:e}}d[e.name]=e},afterClassMixedIn:function(f){var d=f.prototype,e=d.childEls;if(e){delete d.childEls;f.getConfigurator().add({childEls:e})}},attachChildEls:function(y,z){var u=this,t=u.getChildEls(),v=z||u,p=v.id+"-",q=!v.frame,k,B,r,w,x,s,A;for(k in t){r=t[k];if(q&&r.frame){continue}x=r.select;if(x){s=y.select(x,true)}else{if(!(x=r.selectNode)){if(!(A=r.id)){A=p+r.itemId;s=Ext.cache[A]}else{s=Ext.cache[A]||y.getById(A)}}else{s=y.selectNode(x,false)}}if(s){if(s.isElement){s.component=v}else{if(s.isComposite&&!s.isLite){B=s.elements;for(w=B.length;w--;){B[w].component=v}}}}u[k]=s||null}}}},0,0,0,0,0,0,[Ext.util,"ElementContainer"],0));(Ext.cmd.derive("Ext.util.Renderable",Ext.Base,{mixinId:"renderable",frameCls:"x-frame",frameIdRegex:/[\-]frame\d+[TMB][LCR]$/,frameElNames:["TL","TC","TR","ML","MC","MR","BL","BC","BR","Table"],frameTpl:["{%this.renderDockedItems(out,values,0);%}",'<tpl if="top">','<tpl if="left"><div id="{fgid}TL" data-ref="frameTL" class="{frameCls}-tl {baseCls}-tl {baseCls}-{ui}-tl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tl</tpl>{frameElCls}" role="presentation"></tpl>','<tpl if="right"><div id="{fgid}TR" data-ref="frameTR" class="{frameCls}-tr {baseCls}-tr {baseCls}-{ui}-tr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tr</tpl>{frameElCls}" role="presentation"></tpl>','<div id="{fgid}TC" data-ref="frameTC" class="{frameCls}-tc {baseCls}-tc {baseCls}-{ui}-tc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tc</tpl>{frameElCls}" role="presentation"></div>','<tpl if="right"></div></tpl>','<tpl if="left"></div></tpl>',"</tpl>",'<tpl if="left"><div id="{fgid}ML" data-ref="frameML" class="{frameCls}-ml {baseCls}-ml {baseCls}-{ui}-ml<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-ml</tpl>{frameElCls}" role="presentation"></tpl>','<tpl if="right"><div id="{fgid}MR" data-ref="frameMR" class="{frameCls}-mr {baseCls}-mr {baseCls}-{ui}-mr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mr</tpl>{frameElCls}" role="presentation"></tpl>','<div id="{fgid}Body" data-ref="frameBody" class="{frameBodyCls} {frameCls}-mc {baseCls}-mc {baseCls}-{ui}-mc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mc</tpl>{frameElCls}" role="presentation">',"{%this.applyRenderTpl(out, values)%}","</div>",'<tpl if="right"></div></tpl>','<tpl if="left"></div></tpl>','<tpl if="bottom">','<tpl if="left"><div id="{fgid}BL" data-ref="frameBL" class="{frameCls}-bl {baseCls}-bl {baseCls}-{ui}-bl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bl</tpl>{frameElCls}" role="presentation"></tpl>','<tpl if="right"><div id="{fgid}BR" data-ref="frameBR" class="{frameCls}-br {baseCls}-br {baseCls}-{ui}-br<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-br</tpl>{frameElCls}" role="presentation"></tpl>','<div id="{fgid}BC" data-ref="frameBC" class="{frameCls}-bc {baseCls}-bc {baseCls}-{ui}-bc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bc</tpl>{frameElCls}" role="presentation"></div>','<tpl if="right"></div></tpl>','<tpl if="left"></div></tpl>',"</tpl>","{%this.renderDockedItems(out,values,1);%}"],frameTableTpl:["{%this.renderDockedItems(out,values,0);%}",'<table id="{fgid}Table" data-ref="frameTable" class="{frameCls} ','x-table-plain" cellpadding="0" role="presentation">','<tpl if="top">','<tr role="presentation">','<tpl if="left"><td id="{fgid}TL" data-ref="frameTL" class="{frameCls}-tl {baseCls}-tl {baseCls}-{ui}-tl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tl</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}TC" data-ref="frameTC" class="{frameCls}-tc {baseCls}-tc {baseCls}-{ui}-tc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tc</tpl>{frameElCls}" role="presentation"></td>','<tpl if="right"><td id="{fgid}TR" data-ref="frameTR" class="{frameCls}-tr {baseCls}-tr {baseCls}-{ui}-tr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-tr</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>","</tpl>",'<tr role="presentation">','<tpl if="left"><td id="{fgid}ML" data-ref="frameML" class="{frameCls}-ml {baseCls}-ml {baseCls}-{ui}-ml<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-ml</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}Body" data-ref="frameBody" class="{frameBodyCls} {frameCls}-mc {baseCls}-mc {baseCls}-{ui}-mc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mc</tpl>{frameElCls}" style="{mcStyle}" role="presentation">',"{%this.applyRenderTpl(out, values)%}","</td>",'<tpl if="right"><td id="{fgid}MR" data-ref="frameMR" class="{frameCls}-mr {baseCls}-mr {baseCls}-{ui}-mr<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-mr</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>",'<tpl if="bottom">','<tr role="presentation">','<tpl if="left"><td id="{fgid}BL" data-ref="frameBL" class="{frameCls}-bl {baseCls}-bl {baseCls}-{ui}-bl<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bl</tpl>{frameElCls}" role="presentation"></td></tpl>','<td id="{fgid}BC" data-ref="frameBC" class="{frameCls}-bc {baseCls}-bc {baseCls}-{ui}-bc<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-bc</tpl>{frameElCls}" role="presentation"></td>','<tpl if="right"><td id="{fgid}BR" data-ref="frameBR" class="{frameCls}-br {baseCls}-br {baseCls}-{ui}-br<tpl for="uiCls"> {parent.baseCls}-{parent.ui}-{.}-br</tpl>{frameElCls}" role="presentation"></td></tpl>',"</tr>","</tpl>","</table>","{%this.renderDockedItems(out,values,1);%}"],_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(e,f){var d=e.name;return function(c){var h=this,a=(h.renderConfigs||(h.renderConfigs={})),b=a[f];if(h._renderState>=f){(e.setter||e.getSetter()).call(h,c)}else{if(!b){a[f]=b={}}if(!(d in b)){b[d]=h[d]}h[d]=c}return h}},processRenderConfig:function(x,n,v){var r=this.prototype,t=this.getConfigurator(),m=Ext.util.Renderable,o=m.makeRenderSetter,u=x[n],q,p,w,s;for(w in u){p=Ext.Config.get(w);if(!r[s=p.names.set]){q=(p.renderSetter||(p.renderSetter={}));r[s]=q[v]||(q[v]=o(p,v))}}delete x[n];t.add(u)}},onClassMixedIn:function(j){var g=j.override,h=this.processRenderConfig,i=function(a){if(a.beforeRenderConfig){this.processRenderConfig(a,"beforeRenderConfig",1)}if(a.renderConfig){this.processRenderConfig(a,"renderConfig",3)}g.call(this,a)},f=function(a,b){a.override=i;a.processRenderConfig=h;if(b.beforeRenderConfig){a.processRenderConfig(b,"beforeRenderConfig",1)}if(b.renderConfig){a.processRenderConfig(b,"renderConfig",3)}};f(j,j.prototype);j.onExtended(f)},afterRender:function(){var k=this,o={},q=k.protoEl,l=k.el,n,j,p,m,r;k.finishRenderChildren();k._renderState=4;if(k.contentEl){p="x-";m=p+"hidden-";r=k.contentEl=Ext.get(k.contentEl);r.component=k;r.removeCls([p+"hidden",m+"display",m+"offsets"]);k.getContentTarget().appendChild(r.dom)}q.writeTo(o);j=o.removed;if(j){l.removeCls(j)}j=o.cls;if(j.length){l.addCls(j)}j=o.style;if(o.style){l.setStyle(j)}k.protoEl=null;if(!k.ownerCt&&!k.skipLayout){k.updateLayout()}if(!(k.x&&k.y)&&(k.pageX||k.pageY)){k.setPagePosition(k.pageX,k.pageY)}if(k.disableOnRender){k.onDisable()}n=k.controller;if(n&&n.afterRender){n.afterRender(k)}},afterFirstLayout:function(u,n){var s=this,o=s.x,q=s.y,p=s.defaultAlign,w=s.alignOffset,t,v,x,r,m;if(!s.ownerLayout){v=o!==undefined;x=q!==undefined}if(s.floating&&!s.preventDefaultAlign&&(!v||!x)){if(s.floatParent){r=s.floatParent.getTargetEl().getViewRegion();m=s.el.getAlignToXY(s.alignTarget||s.floatParent.getTargetEl(),p,w);r.x=m[0]-r.x;r.y=m[1]-r.y}else{m=s.el.getAlignToXY(s.alignTarget||s.container,p,w);r=s.el.translateXY(m[0],m[1])}o=v?o:r.x;q=x?q:r.y;v=x=true}if(v||x){s.setPosition(o,q)}s.onBoxReady(u,n);t=s.controller;if(t&&t.boxReady){t.boxReady(s)}},beforeRender:function(){var i=this,h=i.floating,j=i.getComponentLayout(),f=i.userCls,g;i._renderState=1;i.ariaUsesMainElement=i.ariaEl==="el";g=i.controller;if(g&&g.beforeRender){g.beforeRender(i)}i.initBindable();if(i.renderConfigs){i.flushRenderConfigs()}if(i.reference){i.publishState()}if(f){i.addCls(f)}if(h){i.addCls(i.fixed?i._fixedLayerCls:i._layerCls);f=h.cls;if(f){i.addCls(f)}}i.frame=i.frame||i.alwaysFramed;if(!j.initialized){j.initLayout()}i.initOverflow();i.setUI(i.ui)},doApplyRenderTpl:function(h,f){var g=f.$comp,e;if(!g.rendered){e=g.initRenderTpl();e.applyOut(f.renderData,h)}},getElConfig:function(){var n=this,l=n.autoEl,o=n.getFrameInfo(),i={tag:"div",tpl:o?n.initFramingTpl(o.table):n.initRenderTpl()},k=n.layoutTargetCls,m=n.protoEl,j=n.ariaRole,p;n.initStyles(m);if(k&&!o){m.addCls(k)}m.writeTo(i);m.flush();if(l){if(Ext.isString(l)){i.tag=l}else{Ext.apply(i,l)}}if(j&&n.ariaUsesMainElement){i.role=j;if(!n.ariaStaticRoles[j]){i["aria-hidden"]=!!n.hidden;i["aria-disabled"]=!!n.disabled;if(n.ariaLabel&&!n.ariaLabelledBy){i["aria-label"]=n.ariaLabel}if(n.collapsible){i["aria-expanded"]=!n.collapsed}if(n.ariaRenderAttributes){Ext.apply(i,n.ariaRenderAttributes)}if(n.config.ariaAttributes){Ext.apply(i,n.getAriaAttributes())}}}i.id=n.id;if(i.tpl){if(o){i.tplData=p=n.getFrameRenderData();p.renderData=n.initRenderData()}else{i.tplData=n.initRenderData()}}n.ariaRenderAttributes=null;return i},getInsertPosition:function(b){if(b!==undefined){if(Ext.isNumber(b)){b=this.container.dom.childNodes[b]}else{b=Ext.getDom(b)}}return b},getRenderTree:function(){var c=this,d=null;if(!c.hasListeners.beforerender||c.fireEvent("beforerender",c)!==false){c._renderState=1;c.beforeRender();c.rendering=true;c._renderState=2;d=c.getElConfig();if(c.el){d.id=c.$pid=Ext.id(null,c.el.identifiablePrefix)}}return d},initRenderData:function(){var h=this,f=h.ariaRole,g,e;g=Ext.apply({$comp:h,id:h.id,ui:h.ui,uiCls:h.uiCls,baseCls:h.baseCls,componentCls:h.componentCls,frame:h.frame,renderScroller:h.touchScroll,scrollerCls:h.scrollerCls,childElCls:""},h.renderData);if(f&&!h.ariaUsesMainElement){e={role:f};if(!h.ariaStaticRoles[f]){e["aria-hidden"]=!!h.hidden;e["aria-disabled"]=!!h.disabled;if(h.ariaLabel&&!h.ariaLabelledBy){e["aria-label"]=h.ariaLabel}if(h.collapsible){e["aria-expanded"]=!h.collapsed}if(h.ariaRenderAttributes){Ext.apply(e,h.ariaRenderAttributes)}if(h.config.ariaAttributes){Ext.apply(e,h.getAriaAttributes())}}g.ariaAttributes=e}return g},onRender:function(o,n){var m=this,k=m.x,l=m.y,p=null,q=m.el,r,j;m.applyRenderSelectors();m.rendering=null;m.rendered=true;m._renderState=3;if(m.renderConfigs){m.flushRenderConfigs()}if(k!=null){p={x:k}}if(l!=null){(p=p||{}).y=l}if(!m.getFrameInfo()){r=m.width;j=m.height;if(typeof r==="number"){p=p||{};p.width=r}if(typeof j==="number"){p=p||{};p.height=j}}if(m.touchScroll===1){m.getOverflowEl().disableTouchScroll()}m.lastBox=q.lastBox=p},render:function(p,i){var n=this,o=n.el,k=n.ownerLayout,l,j,m;if(o&&!o.isElement){n.wrapPrimaryEl(o);o=n.el}if(!n.skipLayout){Ext.suspendLayouts()}p=n.initContainer(p);m=n.getInsertPosition(i);if(!o){j=n.getRenderTree();if(k&&k.transformItemRenderTree){j=k.transformItemRenderTree(j)}if(j){if(m){o=Ext.DomHelper.insertBefore(m,j)}else{o=Ext.DomHelper.append(p,j)}n.wrapPrimaryEl(o);n.cacheRefEls(o)}}else{if(!n.hasListeners.beforerender||n.fireEvent("beforerender",n)!==false){n.beforeRender();n.needsRenderTpl=n.rendering=true;n._renderState=2;n.initStyles(o);if(n.allowDomMove!==false){if(m){p.dom.insertBefore(o.dom,m)}else{p.dom.appendChild(o.dom)}}}else{l=true}}if(o&&!l){n.finishRender(i)}if(!n.skipLayout){Ext.resumeLayouts(!n.hidden&&!p.isDetachedBody)}},ensureAttachedToBody:function(f){var d=this,e;while(d.ownerCt){d=d.ownerCt}if(d.container.isDetachedBody){d.container=e=Ext.getBody();e.appendChild(d.el.dom);if(f){d.updateLayout()}if(typeof d.x==="number"||typeof d.y==="number"){d.setPosition(d.x,d.y)}}},privates:{applyRenderSelectors:function(){var i=this,f=i.renderSelectors,j=i.el,h,g;i.attachChildEls(j);i.ariaEl=i[i.ariaEl]||i.el;if(f){for(g in f){h=f[g];if(h){i[g]=j.selectNode(h,false)}}}},cacheRefEls:function(n){n=n||this.el;var p=Ext.cache,l=Ext.dom.Element,k=n.isElement?n.dom:n,i=k.querySelectorAll("[data-ref]"),j=i.length,m,o;for(o=0;o<j;o++){m=i[o];if(!p[m.id]){new l(m)}}},doAutoRender:function(){var b=this;if(!b.rendered){if(b.floating){b.render(b.renderTo||document.body)}else{b.render(Ext.isBoolean(b.autoRender)?Ext.getBody():b.autoRender)}}},doRenderContent:function(f,g){var e=g.$comp,h=e.data;if(e.html){Ext.DomHelper.generateMarkup(e.html,f);delete e.html}if(e.tpl){if(!e.tpl.isTemplate){e.tpl=new Ext.XTemplate(e.tpl)}if(h){e.data=h=h.isEntity?h.getData(true):h;e.tpl.applyOut(h,f)}}},doRenderFramingDockedItems:function(f,h,g){var e=h.$comp;if(!e.rendered&&e.doRenderDockedItems){h.renderData.$skipDockedItems=true;e.doRenderDockedItems.call(this,f,h,g)}},flushRenderConfigs:function(){var o=this,l=o.renderConfigs,m=o._renderState,k,p,i,j,n;if(l){for(p=0;p<=m;++p){k=l[p];if(k){l[p]=null;for(i in k){n=k[i];(j||(j={}))[i]=o[i];o[i]=n}}}if(j){o.setConfig(j)}}},finishRender:function(n){var k=this,t=Ext.cache,l,o,s,m,p,q,r;if(!k.el||k.$pid){if(k.container){r=t[k.id];q=r?r.dom:k.container.getById(k.id,true)}else{s=k.$pid||k.id;r=t[s];q=r?r.dom:Ext.getDom(s)}if(!k.el){k.wrapPrimaryEl(q)}else{delete k.$pid;if(!k.el.dom){k.wrapPrimaryEl(k.el)}q.parentNode.insertBefore(k.el.dom,q);l=q;q=k.el.dom;o=q.firstChild;while(l.firstChild){q.insertBefore(l.firstChild,o)}k.el.addCls(l.className);Ext.removeNode(l)}}else{if(k.needsRenderTpl){m=k.initRenderTpl();if(m){p=k.initRenderData();m.insertFirst(k.getTargetEl(),p)}k.cacheRefEls()}}k.el.component=k;if(!k.container){k.container=Ext.get(k.el.dom.parentNode)}if(k.ctCls){k.container.addCls(k.ctCls)}k.onRender(k.container,n);if(!k.overflowInited){k.initOverflow()}k.el.setVisibilityMode(Ext.Element[k.hideMode.toUpperCase()]);if(k.overCls){k.el.hover(k.addOverCls,k.removeOverCls,k)}if(k.hasListeners.render){k.fireEvent("render",k)}k.afterRender();if(k.hasListeners.afterrender){k.fireEvent("afterrender",k)}k.initEvents();if(k.hidden){k.el.hide()}},finishRenderChildren:function(){var b=this.getComponentLayout();b.finishRender()},getFrameRenderData:function(){var f=this,d=f.frameSize,e="";if(f._syncFrameHeight&&f.height){e="height:"+(f.height-d.height)+"px"}return{$comp:f,id:f.id,fgid:f.id+"-frame",ui:f.ui,uiCls:f.uiCls,frameCls:f.frameCls,frameBodyCls:f.layoutTargetCls||"",baseCls:f.baseCls,top:!!d.top,left:!!d.left,right:!!d.right,bottom:!!d.bottom,mcStyle:e,frameElCls:""}},getFrameInfo:function(){if(Ext.supports.CSS3BorderRadius||!this.frame){return false}var v=this,B=v.frameInfoCache,H=v.getFramingInfoCls()+"-frameInfo",u=B[H],C,z,D,t,G,F,A,s,w,I,y,J,E,x;if(u==null){C=Ext.fly(v.getStyleProxy(H),"frame-style-el");z=C.getStyle("font-family");if(z){z=z.split("-");D=parseInt(z[1],10);t=parseInt(z[2],10);G=parseInt(z[3],10);F=parseInt(z[4],10);A=parseInt(z[5],10);s=parseInt(z[6],10);w=parseInt(z[7],10);I=parseInt(z[8],10);y=parseInt(z[9],10);J=parseInt(z[10],10);E=parseInt(z[11],10);x=parseInt(z[12],10);u={table:z[0].charAt(0)==="t",vertical:z[0].charAt(1)==="v",top:D,right:t,bottom:G,left:F,width:F+t,height:D+G,border:{top:A,right:s,bottom:w,left:I,width:I+s,height:A+w},padding:{top:y,right:J,bottom:E,left:x,width:x+J,height:y+E}}}else{u=false}B[H]=u}v.frame=!!u;v.frameSize=u;return u},getFramingInfoCls:function(){return this.baseCls+"-"+this.ui},getStyleProxy:function(c){var d=this.styleProxyEl||(Ext.Component.prototype.styleProxyEl=Ext.getBody().createChild({role:"presentation",style:{position:"absolute",top:"-10000px"}},null,true));d.className=c;return d},getFrameTpl:function(b){return this.getTpl(b?"frameTableTpl":"frameTpl")},initContainer:function(d){var c=this;if(!d&&c.el){d=c.el.dom.parentNode;c.allowDomMove=false}c.container=d.dom?d:Ext.get(d);return c.container},initOverflow:function(){var k=this,h=k.getOverflowStyle(),i=k.scrollFlags,j=k.getOverflowEl(),l=(i.y||i.x),g=k.touchScroll=(l&&Ext.supports.touchScroll);if(!l||!j||!j.isElement){return}k.overflowInited=true;if(g===2){j.setStyle("overflow","hidden")}else{j.setStyle(h)}},doRenderPadding:function(e,f){var d=f.$comp;if(d.touchScroll){e.push("padding:",d.unitizeBox(d.padding))}},initFramingTpl:function(c){var d=this.getFrameTpl(c);if(d&&!d.applyRenderTpl){this.setupFramingTpl(d)}return d},initRenderTpl:function(){var b=this.getTpl("renderTpl");if(b&&!b.renderContent){this.setupRenderTpl(b)}return b},setupFramingTpl:function(b){b.applyRenderTpl=this.doApplyRenderTpl;b.renderDockedItems=this.doRenderFramingDockedItems},setupRenderTpl:function(b){b.renderBody=b.renderContent=this.doRenderContent;b.renderPadding=this.doRenderPadding},updateFrame:function(){if(Ext.supports.CSS3BorderRadius||!this.frame){return}var w=this,B=w.el.dom,x=w.frameTable,F=w.frameBody,u=F.dom,y=w.getFrameInfo(),t,C,G,D,z,s,i,E,A,H,v;G=document.createElement("div");s=w.getFrameRenderData();E=w.getFrameTpl(y.table);E.insertFirst(G,s);v=G.querySelectorAll("[data-ref]");H=G.querySelector('[data-ref="frameBody"]');for(z=u;z.parentNode!==B;){z=z.parentNode}while(G.firstChild){B.insertBefore(G.firstChild,z)}H.parentNode.replaceChild(u,H);u.className=H.className;F.setSize();t=w.getChildEls();if(x){x.destroy();w.frameTable=null}for(C in t){if(t[C].frame){D=w[C];if(D&&D!==F){D.destroy();w[C]=null}}}for(A=v.length;A--;){C=(i=v[A]).getAttribute("data-ref");if(C!=="frameBody"){w[C]=new Ext.dom.Element(i)}}},frameInfoCache:{}}},0,0,0,0,0,0,[Ext.util,"Renderable"],0));(Ext.cmd.derive("Ext.state.Provider",Ext.Base,{prefix:"ext-",constructor:function(d){var c=this;Ext.apply(c,d);c.state={};c.mixins.observable.constructor.call(c)},get:function(f,e){var d=this.state[f];return d===undefined?e:d},clear:function(d){var c=this;delete c.state[d];c.fireEvent("statechange",c,d,null)},set:function(e,f){var d=this;d.state[e]=f;d.fireEvent("statechange",d,e,f)},decodeValue:function(o){var r=this,k=/^(a|n|d|b|s|o|e)\:(.*)$/,s=k.exec(unescape(o)),n,q,t,l,p,m;if(!s||!s[1]){return}q=s[1];o=s[2];switch(q){case"e":return null;case"n":return parseFloat(o);case"d":return new Date(Date.parse(o));case"b":return(o==="1");case"a":n=[];if(o){l=o.split("^");p=l.length;for(m=0;m<p;m++){o=l[m];n.push(r.decodeValue(o))}}return n;case"o":n={};if(o){l=o.split("^");p=l.length;for(m=0;m<p;m++){o=l[m];t=o.split("=");n[t[0]]=r.decodeValue(t[1])}}return n;default:return o}},encodeValue:function(j){var i="",k=0,g,h,l;if(j==null){return"e:1"}else{if(typeof j==="number"){g="n:"+j}else{if(typeof j==="boolean"){g="b:"+(j?"1":"0")}else{if(Ext.isDate(j)){g="d:"+j.toUTCString()}else{if(Ext.isArray(j)){for(h=j.length;k<h;k++){i+=this.encodeValue(j[k]);if(k!==h-1){i+="^"}}g="a:"+i}else{if(typeof j==="object"){for(l in j){if(typeof j[l]!=="function"&&j[l]!==undefined){i+=l+"="+this.encodeValue(j[l])+"^"}}g="o:"+i.substring(0,i.length-1)}else{g="s:"+j}}}}}}return escape(g)}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.state,"Provider"],0));(Ext.cmd.derive("Ext.state.Manager",Ext.Base,{singleton:true,constructor:function(){this.provider=new Ext.state.Provider()},setProvider:function(b){this.provider=b},get:function(c,d){return this.provider.get(c,d)},set:function(d,c){this.provider.set(d,c)},clear:function(b){this.provider.clear(b)},getProvider:function(){return this.provider}},1,0,0,0,0,0,[Ext.state,"Manager"],0));(Ext.cmd.derive("Ext.state.Stateful",Ext.Base,{mixinId:"state",stateful:false,saveDelay:100,constructor:function(){var b=this;if(!b.stateEvents){b.stateEvents=[]}if(b.stateful!==false){b.addStateEvents(b.stateEvents);b.initState()}},addStateEvents:function(k){var i=this,l,j,g,h;if(i.stateful&&i.getStateId()){h=(typeof k==="string")?arguments:k;g=i.stateEventsByName||(i.stateEventsByName={});for(l=h.length;l--;){j=h[l];if(j&&!g[j]){g[j]=1;i.on(j,i.onStateChange,i)}}}},onStateChange:function(){var h=this,f=h.saveDelay,g,e;if(!h.stateful){return}if(f){if(!h.stateTask){g=Ext.state.Stateful;e=g.runner||(g.runner=new Ext.util.TaskRunner());h.stateTask=e.newTask({run:h.saveState,scope:h,interval:f,repeat:1,fireIdleEvent:false})}h.stateTask.start()}else{h.saveState()}},saveState:function(){var k=this,q=k.stateful&&k.getStateId(),l=k.hasListeners,p,n,o,m,r,i;if(q){r=k.getState()||{};p=k.getPlugins()||[];for(o=0,m=p.length;o<m;o++){n=p[o];if(n&&n.getState){i=n.getState(r);if(i&&!r[n.ptype]){r[n.ptype]=i}}}if(!l.beforestatesave||k.fireEvent("beforestatesave",k,r)!==false){Ext.state.Manager.set(q,r);if(l.statesave){k.fireEvent("statesave",k,r)}}}},getState:function(){return null},applyState:function(b){if(b){Ext.apply(this,b)}},getStateId:function(){var b=this;return b.stateId||(b.autoGenId?null:b.id)},initState:function(){var l=this,s=l.stateful&&l.getStateId(),m=l.hasListeners,t,i,p,n,q,o,r;if(s){i=Ext.state.Manager.get(s);if(i){t=Ext.apply({},i);if(!m.beforestaterestore||l.fireEvent("beforestaterestore",l,i)!==false){q=l.getPlugins()||[];for(p=0,n=q.length;p<n;p++){o=q[p];if(o){r=o.ptype;if(o.applyState){o.applyState(t[r],i)}delete t[r]}}l.applyState(t);if(m.staterestore){l.fireEvent("staterestore",l,i)}}}}},savePropToState:function(i,j,k){var g=this,l=g[i],h=g.initialConfig;if(g.hasOwnProperty(i)){if(!h||h[i]!==l){if(j){j[k||i]=l}return true}}return false},savePropsToState:function(h,j){var f=this,g,i;if(typeof h==="string"){f.savePropToState(h,j)}else{for(g=0,i=h.length;g<i;++g){f.savePropToState(h[g],j)}}return j},destroy:function(){var c=this,d=c.stateTask;if(d){d.destroy();c.stateTask=null}c.clearListeners()}},1,0,0,0,0,0,[Ext.state,"Stateful"],0));(Ext.cmd.derive("Ext.util.Focusable",Ext.Base,{mixinId:"focusable",hasFocus:false,focusable:false,focusCls:"focus",initFocusable:Ext.emptyFn,initFocusableEvents:function(){this.initFocusableElement()},getFocusClsEl:function(){return this.getFocusEl()},getFocusEl:function(){return this.element||this.el},destroyFocusable:function(){var b=this;Ext.destroy(b.focusListeners);b.focusListeners=b.focusEnterEvent=b.focusTask=null;b.focusEl=b.ariaEl=null},enableFocusable:Ext.emptyFn,disableFocusable:function(){var g=this,e,h=g.focusCls,f;if(g.hasFocus){e=g.findFocusTarget();if(e){e.focus()}}f=g.getFocusClsEl();if(h&&f){f.removeCls(g.removeClsWithUI(h,true))}},isFocusable:function(e){var f=this,d;if(!f.focusable&&(!f.isContainer||!e)){return false}d=f.getFocusEl();if(d&&f.canFocus()){return d.isFocusable(e)}return false},canFocus:function(e,g){var h=this,f;f=(h.isContainer||h.focusable)&&h.rendered&&!h.destroying&&!h.destroyed&&!h.disabled&&(e||h.isVisible(true));return f||(g&&!!h.findFocusTarget())},focus:function(m,p,k,o){var n=this,j,l,i;if((!n.focusable&&!n.isContainer)||n.destroyed||n.destroying){return}if(p){n.getFocusTask().delay(Ext.isNumber(p)?p:10,n.focus,n,[m,false,k,o]);return n}n.cancelFocus();if(n.canFocus()){if(j=n.getFocusEl()){if(j.isComponent){return j.focus(m,p,k,o)}l=j.dom;if(l){if(n.floating){i=n.container.dom.scrollTop}j.focus();if(m){if(Ext.isArray(m)){if(n.selectText){n.selectText.apply(n,m)}}else{if(l.select){l.select()}else{if(n.selectText){n.selectText()}}}}Ext.callback(k,o)}if(n.floating){if(i!==undefined){n.container.dom.scrollTop=i}}}}else{j=n.findFocusTarget();if(j){return j.focus(m,p,k,o)}}return n},cancelFocus:function(){var b=this.getFocusTask();if(b){b.cancel()}},beforeBlur:Ext.emptyFn,onBlur:function(h){var i=this,e=i.focusableContainer,j=i.focusCls,g;if(!i.focusable||i.destroying){return}i.beforeBlur(h);if(e){e.beforeFocusableChildBlur(i,h)}g=i.getFocusClsEl();if(j&&g){g.removeCls(i.removeClsWithUI(j,true))}if(i.validateOnBlur){i.validate()}i.hasFocus=false;i.fireEvent("blur",i,h);i.postBlur(h);if(e){e.afterFocusableChildBlur(i,h)}},postBlur:Ext.emptyFn,beforeFocus:Ext.emptyFn,onFocus:function(h){var i=this,e=i.focusableContainer,j=i.focusCls,g;if(!i.focusable){return}if(i.canFocus()){i.beforeFocus(h);if(e){e.beforeFocusableChildFocus(i,h)}g=i.getFocusClsEl();if(j&&g){g.addCls(i.addClsWithUI(j,true))}if(!i.hasFocus){i.hasFocus=true;i.fireEvent("focus",i,h)}i.postFocus(h);if(e){e.afterFocusableChildFocus(i,h)}}},postFocus:Ext.emptyFn,getTabIndex:function(){var f=this,d,e;if(!f.focusable){return}d=f.rendered&&f.getFocusEl();if(d){if(d.isComponent){e=d.getTabIndex()}else{if(d.isElement){e=d.getAttribute("tabIndex")}else{return}}f.tabIndex=e}else{e=f.tabIndex}return e-0},setTabIndex:function(g,f){var h=this,e;if(!h.focusable){return}h.tabIndex=g;if(!h.rendered){return}e=f||h.getFocusEl();if(e){if(e.isComponent){e.setTabIndex(g)}else{if(e.isElement){e.set({tabIndex:g})}}}},onFocusEnter:function(c){var d=this;if(d.floating&&d!==d.zIndexManager.getActive()){d.toFront(true)}d.focusEnterEvent=c;d.containsFocus=true;d.fireEvent("focusenter",d,c)},onFocusLeave:function(c){var d=this;d.focusEnterEvent=null;d.containsFocus=false;d.fireEvent("focusleave",d,c)},privates:{revertFocus:function(){var g=this,h=g.previousFocus,e=g.focusEnterEvent,f;g.previousFocus=null;if(g.preventRefocus||!g.el.contains(Ext.Element.getActiveElement())){return}f=h||(e&&e.fromComponent);if(f){if(f.canFocus&&f.canFocus(false,true)){f.focus();return}else{if(f.nodeType){f=Ext.fly(f)}if(f.isFocusable&&f.isFocusable()){f.focus();return}}}if(e){f=Ext.fly(e.relatedTarget);if(Ext.isIE8||(f.isFocusable&&f.isFocusable())){f.focus()}}},findFocusTarget:function(){var d=this,e,f;for(e=d.up(":not([disabled])");e;e=e.up(":not([disabled])")){f=Ext.ComponentQuery.query(":focusable:not([hasFocus])",e);if(f.length){return f[0]}if(e.isFocusable&&e.isFocusable()){return e}}},initFocusableElement:function(){var f=this,e=f.tabIndex,d=f.getFocusEl();if(d&&!d.isComponent){f.focusEl=d;if(e!=null&&f.canFocus(true)){f.setTabIndex(e,d)}d.dom.setAttribute("data-componentid",f.id);if(f.config.keyHandlers){f.initKeyHandlers(d)}}},getFocusTask:function(){if(!this.focusTask){this.focusTask=Ext.focusTask}return this.focusTask},handleFocusEvent:function(c){var d;if(this.isFocusing(c)){d=new Ext.event.Event(c.event);d.type="focus";d.relatedTarget=c.fromElement;d.target=c.toElement;this.onFocus(d)}},handleBlurEvent:function(c){var d;if(this.isBlurring(c)){d=new Ext.event.Event(c.event);d.type="blur";d.target=c.fromElement;d.relatedTarget=c.toElement;this.onBlur(d)}},isFocusing:function(e){var g=e.fromElement,h=e.toElement,f;if(this.focusable){f=this.getFocusEl();if(f){if(f.isComponent){return f.isFocusing(g,h)}else{return h===f.dom&&g!==h}}}return false},isBlurring:function(e){var g=e.fromElement,h=e.toElement,f;if(this.focusable){f=this.getFocusEl();if(f){if(f.isComponent){return f.isBlurring(g,h)}else{return g===f.dom&&g!==h}}}return false},blur:function(){var c=this,d;if(!c.focusable||!c.canFocus()){return}d=c.getFocusEl();if(d){c.blurring=true;d.blur();delete c.blurring}return c},disableTabbing:function(){var f=this,d=f.el,e;if(d){d.saveTabbableState()}e=f.getFocusEl();if(e){if(e.isComponent){e.disableTabbing()}else{if(e.isElement&&d&&!d.contains(e)){e.saveTabbableState()}}}},enableTabbing:function(){var f=this,d=f.el,e;e=f.getFocusEl();if(e){if(e.isComponent){e.enableTabbing()}else{if(e.isElement&&d&&!d.contains(e)){e.restoreTabbableState()}}}if(d){d.restoreTabbableState()}}}},0,0,0,0,0,0,[Ext.util,"Focusable"],function(){if(!Ext.focusTask){Ext.focusTask=new Ext.util.DelayedTask()}}));(Ext.cmd.derive("Ext.mixin.Accessible",Ext.Mixin,{mixinConfig:{id:"accessible"},config:{ariaAttributes:{$value:null,lazy:true}},privates:{getAriaLabelEl:function(n){var l=[],j,m,h,k,i;if(n){if(Ext.isFunction(n)){return n.call(this)}else{if(!Ext.isArray(n)){n=[n]}j=this.lookupReferenceHolder();if(j){for(m=0,h=n.length;m<h;m++){k=j.lookupReference(n[m]);if(k){l.push(k.ariaEl.id)}}}}}return l.length?l.join(" "):null}}},0,0,0,0,0,0,[Ext.mixin,"Accessible"],0));(Ext.cmd.derive("Ext.util.KeyboardInteractive",Ext.Mixin,{mixinConfig:{id:"keyboardinteractive"},config:{keyHandlers:{$value:null,lazy:true}},initKeyHandlers:function(e){var g=this,f=g.getKeyHandlers(),h;for(h in f){e.on("keydown",g.handleKeydown,g);g.keydownListenerAttached=true;break}},applyKeyHandlers:function(n){var l=this,p={},i,m,k,o,j;if(n){for(m in n){o=n[m];if(typeof o==="function"){p[m]=o}else{p[m]=l[o]}}if(l.focusable&&l.rendered&&!l.destroyed&&!l.destroying){i=l.getFocusEl();if(i&&!l.keydownListenerAttached){i.on("keydown",l.handleKeydown,l);l.keydownListenerAttached=true}}}return p},handleKeydown:function(g){var h=this,e,f;e=g.getKeyName();if(e){f=h.getKeyHandlers()[e];if(f){f.call(h,g)}}}},0,0,0,0,0,0,[Ext.util,"KeyboardInteractive"],0));(Ext.cmd.derive("Ext.Component",Ext.Base,{alternateClassName:"Ext.AbstractComponent",statics:{AUTO_ID:1000,pendingLayouts:null,layoutSuspendCount:0,DIRECTION_TOP:"top",DIRECTION_RIGHT:"right",DIRECTION_BOTTOM:"bottom",DIRECTION_LEFT:"left",VERTICAL_DIRECTION_Re:/^(?:top|bottom)$/,INVALID_ID_CHARS_Re:/[\.,\s]/g,ariaHighContrastModeCls:"x-aria-highcontrast",cancelLayout:function(e,f){var d=this.runningLayoutContext||this.pendingLayouts;if(d){d.cancelComponent(e,false,f)}},fromElement:function(f,d,e){return Ext.ComponentManager.fromElement(f,d,e)},flushLayouts:function(){var c=this,d=c.pendingLayouts;if(d&&d.invalidQueue.length){c.pendingLayouts=null;c.runningLayoutContext=d;Ext.override(d,{runComplete:function(){c.runningLayoutContext=null;var a=this.callParent();if(Ext.GlobalEvents.hasListeners.afterlayout){Ext.GlobalEvents.fireEvent("afterlayout")}return a}});d.run()}},resumeLayouts:function(b){if(this.layoutSuspendCount&&!--this.layoutSuspendCount){if(b){this.flushLayouts()}if(Ext.GlobalEvents.hasListeners.resumelayouts){Ext.GlobalEvents.fireEvent("resumelayouts")}}},suspendLayouts:function(){++this.layoutSuspendCount},updateLayout:function(f,h){var j=this,g=j.runningLayoutContext,i;if(g){g.queueInvalidate(f)}else{i=j.pendingLayouts||(j.pendingLayouts=new Ext.layout.Context());i.queueInvalidate(f);if(!h&&!j.layoutSuspendCount&&!f.isLayoutSuspended()){j.flushLayouts()}}}},$configPrefixed:false,$configStrict:false,config:{data:null,maxHeight:null,maxWidth:null,minHeight:null,minWidth:null,scrollable:null},defaultBindProperty:"html",alignTarget:null,autoRender:false,autoShow:false,baseCls:"x-component",childEls:{frameTable:{frame:true},frameTL:{frame:"tl"},frameTC:{frame:"tc"},frameTR:{frame:"tr"},frameML:{frame:"ml"},frameBody:{frame:"mc"},frameMR:{frame:"mr"},frameBL:{frame:"bl"},frameBC:{frame:"bc"},frameBR:{frame:"br"}},componentLayout:"autocomponent",defaultAlign:"c-c",disabled:false,disabledRe:/^(?:button|input|select|textarea|optgroup|option|fieldset)$/i,nonMaskableRe:(function(){var b=["input","select","textarea","optgroup","option","table"];if(Ext.isIE9m&&!(Ext.isIE9&&!Ext.isIEQuirks)){b.push("p")}return new RegExp("^(?:"+b.join("|")+")$","i")}()),disabledCls:"x-item-disabled",draggable:false,floating:false,hidden:false,hideMode:"display",maskElement:null,renderTpl:['<tpl if="renderScroller">','<div class="{scrollerCls}" style="{%this.renderPadding(out, values)%}">',"</tpl>","{%this.renderContent(out,values)%}",'<tpl if="renderScroller"></div></tpl>'],resizeHandles:"all",shrinkWrap:2,toFrontOnShow:true,synthetic:false,tplWriteMode:"overwrite",ui:"default",uiCls:[],userCls:null,weight:null,allowDomMove:true,autoGenId:false,borderBoxCls:"x-border-box",componentLayoutCounter:0,contentPaddingProperty:"padding",deferLayouts:false,frameSize:null,horizontalPosProp:"left",isComponent:true,_isLayoutRoot:false,layoutSuspendCount:0,liquidLayout:false,maskOnDisable:true,offsetsCls:"x-hidden-offsets",rendered:false,rootCls:"x-body",scrollerCls:"x-scroll-scroller",scrollerSelector:".x-scroll-scroller",_scrollFlags:{auto:{auto:{overflowX:"auto",overflowY:"auto",x:true,y:true,both:true},"false":{overflowX:"auto",overflowY:"hidden",x:true,y:false,both:false},scroll:{overflowX:"auto",overflowY:"scroll",x:true,y:true,both:true}},"false":{auto:{overflowX:"hidden",overflowY:"auto",x:false,y:true,both:false},"false":{overflowX:"hidden",overflowY:"hidden",x:false,y:false,both:false},scroll:{overflowX:"hidden",overflowY:"scroll",x:false,y:true,both:false}},scroll:{auto:{overflowX:"scroll",overflowY:"auto",x:true,y:true,both:true},"false":{overflowX:"scroll",overflowY:"hidden",x:true,y:false,both:false},scroll:{overflowX:"scroll",overflowY:"scroll",x:true,y:true,both:true}},none:{overflowX:"",overflowY:"",x:false,y:false,both:false}},_scrollableCfg:{x:{x:true,y:false},y:{x:false,y:true},horizontal:{x:true,y:false},vertical:{x:false,y:true},both:{x:true,y:true},"true":{x:true,y:true}},validIdRe:Ext.validIdRe,constructor:function(t){var n=this,r,o,m,p,i,q,s,l;t=t||{};if(t.initialConfig){if(t.isAction){n.baseAction=t}t=t.initialConfig}else{if(t.tagName||t.dom||Ext.isString(t)){t={applyTo:t,id:t.id||t}}}n.initialConfig=t;n.getId();n.protoEl=new Ext.util.ProtoElement();n.initConfig(t);if(n.scrollable==null){i=n.autoScroll;if(i){l=!!i}else{q=n.overflowX;s=n.overflowY;if(q||s){l={x:(q&&q!=="hidden")?q:false,y:(s&&s!=="hidden")?s:false}}}if(l){n.setScrollable(l)}}m=n.xhooks;if(m){delete n.xhooks;Ext.override(n,m)}n.mixins.elementCt.constructor.call(n);n.setupProtoEl();if(n.cls){n.initialCls=n.cls;n.protoEl.addCls(n.cls)}if(n.style){n.initialStyle=n.style;n.protoEl.setStyle(n.style)}n.renderData=n.renderData||{};n.initComponent();if(!n.preventRegister){Ext.ComponentManager.register(n)}n.mixins.state.constructor.call(n);n.addStateEvents("resize");p=n.getController();if(p){p.init(n)}if(n.plugins){for(r=0,o=n.plugins.length;r<o;r++){n.plugins[r]=n.initPlugin(n.plugins[r])}}n.loader=n.getLoader();if(n.disabled){n.disabled=false;n.disable(true)}if(n.renderTo){n.render(n.renderTo)}if(n.autoShow&&!n.$initParent){n.show()}if(n.baseAction){n.baseAction.addComponent(n)}},beforeInitConfig:function(){this.mixins.observable.constructor.call(this)},addCls:function(e){var f=this,d=f.rendered?f.el:f.protoEl;d.addCls.apply(d,arguments);return f},addClsWithUI:function(p,k){var l=this,m=[],n=0,o=l.uiCls=Ext.Array.clone(l.uiCls),q=l.activeUI,r,i;if(typeof p==="string"){p=(p.indexOf(" ")<0)?[p]:Ext.String.splitWords(p)}r=p.length;for(;n<r;n++){i=p[n];if(i&&!l.hasUICls(i)){o.push(i);if(q){m=m.concat(l.addUIClsToElement(i))}}}if(k!==true&&q){l.addCls(m)}return m},afterComponentLayout:function(k,g,l,i){var j=this,h;if(++j.componentLayoutCounter===1){h=j.scrollable;if(h){if(j.touchScroll&&h.isTouchScroller){h.setInnerElement(j.getScrollerEl())}h.setElement(j.getOverflowEl());if(Ext.isIE){Ext.on("show",j.onGlobalShow,j)}}j.afterFirstLayout(k,g)}if(k!==l||g!==i){j.onResize(k,g,l,i)}if(j.floating){j.onAfterFloatLayout()}},addPlugin:function(c){var d=this;c=d.constructPlugin(c);if(d.plugins){d.plugins.push(c)}else{d.plugins=[c]}if(d.pluginsInitialized){d.initPlugin(c)}return c},addPropertyToState:function(h,i,j){var f=this,g=arguments.length;if(g===3||f.hasOwnProperty(i)){if(g<3){j=f[i]}if(j!==f.initialConfig[i]){(h||(h={}))[i]=j}}return h},addUIClsToElement:function(k){var n=this,i=n.baseCls+"-"+n.ui+"-"+k,j=["x-"+k,n.baseCls+"-"+k,i],o,l,p,m;if(n.rendered&&n.frame&&!Ext.supports.CSS3BorderRadius){i+="-";o=n.getChildEls();for(l in o){m=o[l].frame;if(m&&m!==true){p=n[l];if(p){p.addCls(i+m)}}}}return j},removeUIClsFromElement:function(k){var n=this,i=n.baseCls+"-"+n.ui+"-"+k,j=["x-"+k,n.baseCls+"-"+k,i],o,l,p,m;if(n.rendered&&n.frame&&!Ext.supports.CSS3BorderRadius){i+="-";o=n.getChildEls();for(l in o){m=o[l].frame;if(m&&m!==true){p=n[l];if(p){p.removeCls(i+m)}}}}return j},adjustPosition:function(f,g){var e=this,h;if(e.isContainedFloater()){h=e.floatParent.getTargetEl().getViewRegion();f+=h.left;g+=h.top}return{x:f,y:g}},afterHide:function(f,h){var g=this,e=g.focusableContainer;g.hiddenByLayout=null;if(this.ownerLayout){this.updateLayout({isRoot:false})}Ext.callback(f,h||g);g.fireHierarchyEvent("hide");g.fireEvent("hide",g);if(e){e.onFocusableChildHide(g)}},afterSetPosition:function(e,f){var d=this;d.onPosition(e,f);if(d.hasListeners.move){d.fireEvent("move",d,e,f)}},afterShow:function(l,i,n){var m=this,k=m.el,j,p,o;l=m.getAnimateTarget(l);if(!m.ghost){l=null}if(l){p={x:k.getX(),y:k.getY(),width:k.dom.offsetWidth,height:k.dom.offsetHeight};j={x:l.getX(),y:l.getY(),width:l.dom.offsetWidth,height:l.dom.offsetHeight};k.addCls(m.offsetsCls);o=m.ghost();o.el.stopAnimation();o.setX(-10000);m.ghostBox=p;o.el.animate({from:j,to:p,listeners:{afteranimate:function(){delete o.componentLayout.lastComponentSize;m.unghost();delete m.ghostBox;k.removeCls(m.offsetsCls);m.onShowComplete(i,n)}}})}else{m.onShowComplete(i,n)}m.fireHierarchyEvent("show")},animate:function(H){var h=this,E,A,B,J,G,I,t,w,z,F,v,y,D,x,u,C;H=H||{};G=H.to||{};if(Ext.fx.Manager.hasFxBlock(h.id)){return h}E=Ext.isDefined(G.width);if(E){J=Ext.Number.constrain(G.width,h.minWidth,h.maxWidth)}A=Ext.isDefined(G.height);if(A){B=Ext.Number.constrain(G.height,h.minHeight,h.maxHeight)}if(!H.dynamic&&(E||A)){w=(H.from?H.from.width:undefined)||h.getWidth();z=w;F=(H.from?H.from.height:undefined)||h.getHeight();v=F;y=false;if(A&&B>F){v=B;y=true}if(E&&J>w){z=J;y=true}if(A||E){C=h.el.getStyle("overflow");if(C!=="hidden"){h.el.setStyle("overflow","hidden")}}if(y){I=!Ext.isNumber(h.width);t=!Ext.isNumber(h.height);h.setSize(z,v);h.el.setSize(w,F);if(I){delete h.width}if(t){delete h.height}}if(E){G.width=J}if(A){G.height=B}}D=h.constrain;x=h.constrainHeader;if(D||x){h.constrain=h.constrainHeader=false;u=H.callback;H.callback=function(){h.constrain=D;h.constrainHeader=x;if(u){u.call(H.scope||h,arguments)}if(C!=="hidden"){h.el.setStyle("overflow",C)}}}return h.mixins.animate.animate.apply(h,arguments)},applyScrollable:function(g,k){var h=this,i=h.rendered,j,l;if(g){if(g===true||typeof g==="string"){j=h._scrollableCfg[g];g=j}if(k){k.setConfig(g);g=k}else{g=Ext.Object.chain(g);if(i){g.element=h.getOverflowEl();l=h.getScrollerEl();if(l){g.innerElement=l}}g.autoRefresh=false;if(Ext.supports.touchScroll===1){g.translatable={translationMethod:"scrollparent"};g.indicators=false}g=Ext.scroll.Scroller.create(g);g.component=h}}else{if(k){k.setConfig({x:false,y:false});k.destroy();g=null}}if(h.rendered&&!h.destroying&&!h.destroyed){if(g){h.getOverflowStyle()}else{h.scrollFlags=h._scrollFlags.none}h.updateLayout()}return g},beforeComponentLayout:function(){return true},beforeDestroy:Ext.emptyFn,beforeLayout:function(){if(this.floating){this.onBeforeFloatLayout()}},beforeSetPosition:function(j,l,q){var m=this,k=null,o,p,r,n;if(j){if(Ext.isNumber(o=j[0])){q=l;l=j[1];j=o}else{if((o=j.x)!==undefined){q=l;l=j.y;j=o}}}if(m.constrain||m.constrainHeader){k=m.calculateConstrainedPosition(null,[j,l],true);if(k){j=k[0];l=k[1]}}p=(j!==undefined);r=(l!==undefined);if(p||r){m.x=j;m.y=l;n=m.adjustPosition(j,l);k={x:n.x,y:n.y,anim:q,hasX:p,hasY:r}}return k},beforeShow:Ext.emptyFn,bubble:function(h,e,f){var g=this;while(g){if(h.apply(e||g,f||[g])===false){break}g=g.getBubbleTarget()}return this},clearListeners:function(){var b=this;b.mixins.observable.clearListeners.call(b);b.mixins.componentDelegation.clearDelegatedListeners.call(b)},cloneConfig:function(h){h=h||{};var g=h.id||Ext.id(),f=Ext.applyIf(h,this.initialConfig),e;f.id=g;e=Ext.getClass(this);return new e(f)},destroy:function(){var k=this,n=k.renderSelectors,h=k.getConfig("viewModel",true),j=k.getConfig("session",true),i,l,m;if(!k.hasListeners.beforedestroy||k.fireEvent("beforedestroy",k)!==false){k.isDestroying=k.destroying=true;l=k.floatParent||k.ownerCt;if(k.floating){delete k.floatParent;if(k.zIndexManager){k.zIndexManager.unregister(k);k.zIndexManager=null}}k.removeBindings();k.beforeDestroy();k.destroyBindable();if(l&&l.remove){l.remove(k,false)}k.stopAnimation();k.onDestroy();Ext.destroy(k.plugins);if(k.rendered){Ext.Component.cancelLayout(k,true)}k.componentLayout=null;if(k.hasListeners.destroy){k.fireEvent("destroy",k)}if(!k.preventRegister){Ext.ComponentManager.unregister(k)}k.mixins.state.destroy.call(k);if(k.floating){k.onFloatDestroy()}k.clearListeners();if(k.rendered){if(!k.preserveElOnDestroy){k.el.destroy()}k.el.component=null;k.mixins.elementCt.destroy.call(k);if(n){for(i in n){if(n.hasOwnProperty(i)){m=k[i];if(m){delete k[i];m.destroy()}}}}k.data=k.el=k.frameBody=k.rendered=k.afterRenderEvents=null;k.tpl=k.renderTpl=k.renderData=null;k.focusableContainer=k.container=k.scrollable=null}k.isDestroying=k.destroying=false;k.callParent()}},disable:function(j,h){var i=this,f=i.focusableContainer,g=i.getInherited();if(!h){g.disabled=true;i.savedDisabled=true}if(i.maskOnDisable){g.disableMask=true}if(!i.disabled){if(f){f.beforeFocusableChildDisable(i)}i.addCls(i.disabledCls);if(i.rendered){i.onDisable()}else{i.disableOnRender=true}i.disabled=true;if(j!==true){i.fireEvent("disable",i)}if(f){f.onFocusableChildDisable(i)}}return i},doFireEvent:function(f,i,g){var h=this,j=h.mixins.observable.doFireEvent.call(h,f,i,g);if(j!==false){j=h.mixins.componentDelegation.doFireDelegatedEvent.call(h,f,i)}return j},enable:function(j,h){var i=this,f=i.focusableContainer,g=i.getInherited();if(!h){delete i.getInherited().disabled;i.savedDisabled=false}if(i.maskOnDisable){delete g.disableMask}if(i.disabled){if(!(h&&g.hasOwnProperty("disabled"))){if(f){f.beforeFocusableChildEnable(i)}i.disableOnRender=false;i.removeCls(i.disabledCls);if(i.rendered){i.onEnable()}i.disabled=false;if(j!==true){i.fireEvent("enable",i)}if(f){f.onFocusableChildEnable(i)}}}return i},findParentBy:function(d){var c;for(c=this.getRefOwner();c&&!d(c,this);c=c.getRefOwner()){}return c||null},findParentByType:function(b){return Ext.isFunction(b)?this.findParentBy(function(a){return a.constructor===b}):this.up(b)},findPlugin:function(g){var e,f=this.plugins,h=f&&f.length;for(e=0;e<h;e++){if(f[e].ptype===g){return f[e]}}},getAnimateTarget:function(b){b=b||this.animateTarget;if(b){b=b.isComponent?b.getEl():Ext.get(b)}return b||null},getBubbleTarget:function(){return this.getRefOwner()},getComponentLayout:function(){var b=this;if(!b.componentLayout||!b.componentLayout.isLayout){b.setComponentLayout(Ext.layout.Layout.create(b.componentLayout,"autocomponent"))}return b.componentLayout},getEl:function(){return this.el},getHeight:function(){return this.el.getHeight()},initInheritedState:function(e){var f=this,d=f.componentLayout;if(f.hidden){e.hidden=true}if(f.collapseImmune){e.collapseImmune=true}if(f.modelValidation!==undefined){e.modelValidation=f.modelValidation}if(f.savedDisabled){e.disabled=true}f.mixins.bindable.initInheritedState.call(f,e);if(d&&d.initInheritedState){d.initInheritedState(e)}},getId:function(){var d=this,c;if(!(d.id||(d.id=d.initialConfig.id))){c=d.getXType();if(c){c=c.replace(Ext.Component.INVALID_ID_CHARS_Re,"-")}else{c=Ext.name.toLowerCase()+"-comp"}d.id=c+"-"+d.getAutoId()}return d.id},getItemId:function(){return this.itemId||this.id},getLoader:function(){var c=this,d=c.loader;if(d){if(!d.isLoader){c.loader=new Ext.ComponentLoader(Ext.apply({target:c},d))}else{d.setTarget(c)}return c.loader}return null},getMaskTarget:function(){return this.maskElement?this[this.maskElement]:null},getPlugin:function(e){var h,f=this.plugins,g=f&&f.length;for(h=0;h<g;h++){if(f[h].pluginId===e){return f[h]}}return null},getPosition:function(g){var f=this,i,j=f.isContainedFloater(),h;if((g===true)&&!j){return[f.getLocalX(),f.getLocalY()]}i=f.getXY();if((g===true)&&j){h=f.floatParent.getTargetEl().getViewRegion();i[0]-=h.left;i[1]-=h.top}return i},getScrollX:function(){var b=this.getScrollable();return b?b.getPosition().x:0},getScrollY:function(){var b=this.getScrollable();return b?b.getPosition().y:0},getSize:function(b){return this.el.getSize(b)},getSizeModel:function(y){var u=this,H=Ext.layout.SizeModel,E=u.componentLayout.ownerContext,G=u.width,s=u.height,r,F,B,C,A,t,w,v,x,z,D=u.floating||u.floated;if(E){z=E.widthModel;A=E.heightModel}if(!z||!A){B=((r=typeof G)==="number");C=((F=typeof s)==="number");x=D||!(t=u.ownerLayout);if(x){w=Ext.layout.Layout.prototype.autoSizePolicy;v=D?3:u.shrinkWrap;if(B){z=H.configured}if(C){A=H.configured}}else{w=t.getItemSizePolicy(u,y);v=t.isItemShrinkWrap(u)}if(E){E.ownerSizePolicy=w}v=(v===true)?3:(v||0);if(x&&v){if(G&&r==="string"){v&=2}if(s&&F==="string"){v&=1}}if(v!==3){if(!y){y=u.ownerCt&&u.ownerCt.getSizeModel()}if(y){v|=(y.width.shrinkWrap?1:0)|(y.height.shrinkWrap?2:0)}}if(!z){if(!w.setsWidth){if(B){z=H.configured}else{z=(v&1)?H.shrinkWrap:H.natural}}else{if(w.readsWidth){if(B){z=H.calculatedFromConfigured}else{z=(v&1)?H.calculatedFromShrinkWrap:H.calculatedFromNatural}}else{z=H.calculated}}}if(!A){if(!w.setsHeight){if(C){A=H.configured}else{A=(v&2)?H.shrinkWrap:H.natural}}else{if(w.readsHeight){if(C){A=H.calculatedFromConfigured}else{A=(v&2)?H.calculatedFromShrinkWrap:H.calculatedFromNatural}}else{A=H.calculated}}}}return z.pairsByHeightOrdinal[A.ordinal]},getState:function(){var d=this,f=null,e=d.getSizeModel();if(e.width.configured){f=d.addPropertyToState(f,"width")}if(e.height.configured){f=d.addPropertyToState(f,"height")}return f},getUserCls:function(){return this.userCls},setUserCls:function(e){var d=this,f=d.userCls;if(e!==f){d.userCls=e;if(d.rendered){d.el.replaceCls(f,e)}}return f},getWidth:function(){return this.el.getWidth()},getXType:function(){return this.self.xtype},getXTypes:function(){var h=this.self,g,e,f;if(!h.xtypes){g=[];e=this;while(e){f=e.xtypes;if(f!==undefined){g.unshift.apply(g,f)}e=e.superclass}h.xtypeChain=g;h.xtypes=g.join("/")}return h.xtypes},hasCls:function(d){var c=this.rendered?this.el:this.protoEl;return c.hasCls.apply(c,arguments)},hasUICls:function(e){var d=this,f=d.uiCls||[];return Ext.Array.contains(f,e)},hide:function(g,f,e){var h=this;if(h.pendingShow){h.pendingShow=false}if(!(h.rendered&&!h.isVisible())){if(!h.hasListeners.beforehide||h.fireEvent("beforehide",h)!==false||h.hierarchicallyHidden){h.getInherited().hidden=h.hidden=true;h.fireHierarchyEvent("beforehide");if(h.rendered){h.onHide.apply(h,arguments)}}}return h},initComponent:function(){var f=this,d=f.width,e=f.height;if(f.plugins&&!f.plugins.processed){f.plugins=f.constructPlugins()}f.pluginsInitialized=true;if(d!=null||e!=null){f.setSize(d,e)}if(f.listeners){f.on(f.listeners);f.listeners=null}if(f.focusable){f.initFocusable()}},initEvents:function(){var l=this,j=l.afterRenderEvents,h,m,k,n,i;if(j){for(k in j){m=l[k];if(m&&m.on){h=j[k];for(n=0,i=h.length;n<i;++n){l.mon(m,h[n])}}}}if(l.focusable){l.initFocusableEvents()}},is:function(b){return Ext.ComponentQuery.is(this,b)},isDescendantOf:function(d){var c;for(c=this.getRefOwner();c&&c!==d;c=c.getRefOwner()){}return c||null},isAncestor:function(b){while(b){if(b.getRefOwner()===this){return true}b=b.getRefOwner()}},isDisabled:function(){return this.disabled},isDraggable:function(){return !!this.draggable},isDroppable:function(){return !!this.droppable},isFloating:function(){return this.floating},isHidden:function(){return this.hidden},isHierarchicallyHidden:function(){var g=this,h=false,f,e;for(;(f=g.ownerCt||g.floatParent);g=f){e=f.getInherited();if(e.hidden){h=true;break}if(g.getInherited().collapseImmune){if(f.collapsed&&!g.collapseImmune){h=true;break}}else{h=!!e.collapsed;break}}return h},isLayoutChild:function(b){return !this.floating&&!!this.up(b)},isLayoutRoot:function(){var d=this,c=d.ownerLayout;if(!c||d._isLayoutRoot||d.floating){return true}return c.isItemLayoutRoot(d)},isLayoutSuspended:function(){var d=this,c;while(d){if(d.layoutSuspendCount||d.suspendLayout){return true}c=d.ownerLayout;if(!c){break}d=c.owner}return false},isVisible:function(e){var d=this,f;if(d.hidden||!d.rendered||d.destroyed){f=true}else{if(e){f=d.isHierarchicallyHidden()}}return !f},isXType:function(c,d){return d?(Ext.Array.indexOf(this.xtypes,c)!==-1):!!this.xtypesMap[c]},isMasked:function(d){var c=this;return !!(c.masked||(c.loadMask&&c.loadMask.isVisible())||(d&&c.getInherited().masked))},setMasked:function(f){var d=this,e=d.focusableContainer;if(f){d.masked=true;d.getInherited().masked=f}else{d.masked=false;delete d.getInherited().masked}if(e){e.onFocusableChildMasked(d,f)}return d},mask:function(h,j,g){var f=this.lastBox,i=this.getMaskTarget()||this.el;if(f){g=f.height}i.mask(h,j,g);this.setMasked(true)},nextNode:function(o,k){var q=this,p=q.ownerCt,i,n,l,m,r;if(k&&q.is(o)){return q}if(p){for(n=p.items.items,m=Ext.Array.indexOf(n,q)+1,l=n.length;m<l;m++){r=n[m];if(r.is(o)){return r}if(r.down){i=r.down(o);if(i){return i}}}return p.nextNode(o)}return null},nextSibling:function(c){var j=this.ownerCt,l,k,h,i;if(j){l=j.items;h=l.indexOf(this)+1;if(h){if(c){for(k=l.getCount();h<k;h++){if((i=l.getAt(h)).is(c)){return i}}}else{if(h<l.getCount()){return l.getAt(h)}}}}return null},onAdded:function(e,g,f){var h=this;h.ownerCt=e;h.onInheritedAdd(h,f);if(h.hasListeners&&h.hasListeners.added){h.fireEvent("added",h,e,g)}if(Ext.GlobalEvents.hasListeners.added){h.fireHierarchyEvent("added")}},onRemoved:function(d){var e=this,f;if(Ext.GlobalEvents.hasListeners.removed){e.fireHierarchyEvent("removed")}if(e.hasListeners.removed){e.fireEvent("removed",e,e.ownerCt)}if(!d){e.removeBindings()}e.onInheritedRemove(d);e.ownerCt=e.ownerLayout=null},onBoxReady:function(h,f){var g=this,e;if(g.ariaLabelledBy||g.ariaDescribedBy){if(g.ariaLabelledBy){e=g.getAriaLabelEl(g.ariaLabelledBy);if(e){g.ariaEl.dom.setAttribute("aria-labelledby",e)}}if(g.ariaDescribedBy){e=g.getAriaLabelEl(g.ariaDescribedBy);if(e){g.ariaEl.dom.setAttribute("aria-describedby",e)}}}if(g.resizable){g.initResizable(g.resizable)}if(g.draggable){g.initDraggable()}if(g.hasListeners.boxready){g.fireEvent("boxready",g,h,f)}},onDestroy:function(){var c=this,d=c.focusableContainer;if(c.rendered){Ext.destroy(c.dd,c.resizer,c.proxy,c.proxyWrap,c.resizerComponent,c.scrollable,c.contentEl)}if(d){d.onFocusableChildDestroy(c)}if(c.focusable){c.destroyFocusable()}Ext.destroy(c.componentLayout,c.loadMask,c.floatingDescendants)},onDisable:function(){var e=this,d,f;if(e.focusable){e.disableFocusable()}if(!e.ariaStaticRoles[e.ariaRole]){e.ariaEl.dom.setAttribute("aria-disabled",true)}if(e.maskOnDisable&&!e.getInheritedConfig("disableMask",true)){d=e.el.dom;f=d.nodeName;if(e.disabledRe.test(f)){d.disabled=true}if(!e.nonMaskableRe.test(f)){e.mask()}}},onEnable:function(){var e=this,d,f;if(e.focusable){e.enableFocusable()}if(!e.ariaStaticRoles[e.ariaRole]){e.ariaEl.dom.setAttribute("aria-disabled",false)}if(e.maskOnDisable&&e.getInherited().hasOwnProperty("masked")){d=e.el.dom;f=d.nodeName;if(e.disabledRe.test(f)){d.disabled=false}if(!e.nonMaskableRe.test(f)){e.unmask()}}},onGlobalShow:function(b){if(this.up(b)){this.getScrollable().restoreState()}},onHide:function(j,i,l){var k=this,n,m,h;if(!k.ariaStaticRoles[k.ariaRole]){k.ariaEl.dom.setAttribute("aria-hidden",true)}k.revertFocus();j=k.getAnimateTarget(j);if(!k.ghost){j=null}if(j){h={x:j.getX(),y:j.getY(),width:j.dom.offsetWidth,height:j.dom.offsetHeight};n=k.ghost();n.el.stopAnimation();m=k.getSize();n.el.animate({to:h,listeners:{afteranimate:function(){delete n.componentLayout.lastComponentSize;n.el.hide();n.setHiddenState(true);n.el.setSize(m);k.afterHide(i,l)}}})}k.el.hide();if(!j){k.afterHide(i,l)}},onPosition:Ext.emptyFn,onResize:function(j,g,f,h){var i=this;if(i.floating&&i.constrain){i.doConstrain()}i.refreshScroll();if(i.hasListeners.resize){i.fireEvent("resize",i,j,g,f,h)}},onShow:function(){var b=this;if(!b.ariaStaticRoles[b.ariaRole]){b.ariaEl.dom.setAttribute("aria-hidden",false)}b.el.show();b.updateLayout({isRoot:false});if(b.floating){if(b.maximized){b.fitContainer()}else{if(b.constrain){b.doConstrain()}}}},onShowComplete:function(f,h){var g=this,e=g.focusableContainer;if(g.floating){g.onFloatShow()}Ext.callback(f,h||g);g.fireEvent("show",g);if(e){e.onFocusableChildShow(g)}delete g.hiddenByLayout},onShowVeto:Ext.emptyFn,previousNode:function(i,o){var k=this,l=k.ownerCt,j,m,n,p;if(o&&k.is(i)){return k}if(l){for(m=l.items.items,n=Ext.Array.indexOf(m,k)-1;n>-1;n--){p=m[n];if(p.query){j=p.query(i);j=j[j.length-1];if(j){return j}}if(p.is(i)){return p}}return l.previousNode(i,true)}return null},previousSibling:function(c){var i=this.ownerCt,j,g,h;if(i){j=i.items;g=j.indexOf(this);if(g!==-1){if(c){for(--g;g>=0;g--){if((h=j.getAt(g)).is(c)){return h}}}else{if(g){return j.getAt(--g)}}}}return null},registerFloatingItem:function(c){var d=this;if(!d.floatingDescendants){d.floatingDescendants=new Ext.ZIndexManager(d)}d.floatingDescendants.register(c)},removeCls:function(e){var f=this,d=f.rendered?f.el:f.protoEl;d.removeCls.apply(d,arguments);return f},removeClsWithUI:function(s,m){var n=this,o=[],q=0,v=Ext.Array,p=v.remove,r=n.uiCls=v.clone(n.uiCls),t=n.activeUI,u,i;if(typeof s==="string"){s=(s.indexOf(" ")<0)?[s]:Ext.String.splitWords(s)}u=s.length;for(q=0;q<u;q++){i=s[q];if(i&&n.hasUICls(i)){p(r,i);if(t){o=o.concat(n.removeUIClsFromElement(i))}}}if(m!==true&&t){n.removeCls(o)}return o},resumeLayouts:function(c){var d=this;if(!d.rendered){return}if(d.layoutSuspendCount&&!--d.layoutSuspendCount){d.suspendLayout=false;if(c&&!d.isLayoutSuspended()){d.updateLayout(c)}}},scrollBy:function(h,e,g){var f=this.getScrollable();if(f){f.scrollBy(h,e,g)}},scrollTo:function(e,g,h){var f=this.getScrollable();if(f){f.scrollTo(e,g,h)}},setAutoScroll:function(b){this.setScrollable(!!b);return this},setBorder:function(e,g){var h=this,f=!!g;if(h.rendered||f){if(!f){g=h.el}if(!e){e=0}else{if(e===true){e="1px"}else{e=this.unitizeBox(e)}}g.setStyle("border-width",e);if(!f){h.updateLayout()}}h.border=e},setDock:function(f){var d=this,e=d.ownerCt;if(f!==d.dock){if(e&&e.moveDocked){e.moveDocked(d,f)}else{d.dock=f}}return d},setDisabled:function(b){return this[b?"disable":"enable"]()},setFlex:function(b){this.flex=b},setHeight:function(b){return this.setSize(undefined,b)},setLoading:function(h,g){var e=this,f={target:e};if(e.rendered){if(h!==false){if(Ext.isString(h)){f.msg=h}else{Ext.apply(f,h)}if(!e.loadMask||!e.loadMask.isLoadMask){if(g&&f.useTargetEl==null){f.useTargetEl=true}e.loadMask=new Ext.LoadMask(f)}else{Ext.apply(e.loadMask,f)}if(e.loadMask.isVisible()){e.loadMask.syncMaskState()}else{e.loadMask.show()}}else{if(e.loadMask&&e.loadMask.isLoadMask){e.loadMask.hide()}}}return e.loadMask},setMargin:function(f,d){var e=this;if(e.rendered){if(!f&&f!==0){f=""}else{if(f===true){f=5}f=this.unitizeBox(f)}e.margin=f;e.margin$=null;e.getEl().setStyle("margin",f);if(!d){e.updateLayout(e._notAsLayoutRoot)}}else{e.margin=f}},setOverflowXY:function(c,d){this.setScrollable({x:(c&&c!=="hidden")?c:false,y:(d&&d!=="hidden")?d:false});return this},setPagePosition:function(h,i,g){var l=this,k,j;if(Ext.isArray(h)){i=h[1];h=h[0]}l.pageX=h;l.pageY=i;if(l.floating){if(l.isContainedFloater()){j=l.floatParent.getTargetEl().getViewRegion();if(Ext.isNumber(h)&&Ext.isNumber(j.left)){h-=j.left}if(Ext.isNumber(i)&&Ext.isNumber(j.top)){i-=j.top}}else{k=l.el.translateXY(h,i);h=k.x;i=k.y}l.setPosition(h,i,g)}else{k=l.el.translateXY(h,i);l.setPosition(k.x,k.y,g)}return l},setPosition:function(g,h,f){var j=this,i=j.beforeSetPosition.apply(j,arguments);if(i&&j.rendered){g=i.x;h=i.y;if(f){if(g!==j.getLocalX()||h!==j.getLocalY()){j.stopAnimation();j.animate(Ext.apply({duration:1000,listeners:{afteranimate:Ext.Function.bind(j.afterSetPosition,j,[g,h])},to:{left:g,top:h}},f))}}else{j.setLocalXY(g,h);j.afterSetPosition(g,h)}}return j},setScrollX:function(d,f){var e=this.getScrollable();if(e){e.scrollTo(d,null,f)}},setScrollY:function(f,d){var e=this.getScrollable();if(e){e.scrollTo(null,f,d)}},setSize:function(m,i){var l=this,h=l.width,j=l.height,k,n;if(m&&typeof m==="object"){i=m.height;m=m.width}if(typeof m==="number"){l.width=Ext.Number.constrain(m,l.minWidth,l.maxWidth)}else{if(m===null){delete l.width}else{if(typeof m==="string"){k=true;l.width=m}}}if(typeof i==="number"){l.height=Ext.Number.constrain(i,l.minHeight,l.maxHeight)}else{if(i===null){delete l.height}else{if(typeof i==="string"){n=true;l.height=i}}}if(l.rendered&&l.isVisible()){if(h!==l.width||j!==l.height){if(l.liquidLayout||k||n){l.el.setSize(l.width,l.height)}l.updateLayout(l._notAsLayoutRoot)}}return l},setStyle:function(f,d){var e=this.el||this.protoEl;e.setStyle(f,d);return this},setUI:function(j){var f=this,h=f.uiCls,i=f.activeUI,g;if(j===i){return}if(i){g=f.removeClsWithUI(h,true);if(g.length){f.removeCls(g)}f.removeUIFromElement()}else{f.uiCls=[]}f.ui=j;f.activeUI=j;f.addUIToElement();g=f.addClsWithUI(h,true);if(g.length){f.addCls(g)}if(f.rendered){f.updateLayout()}},setVisible:function(b){return this[b?"show":"hide"]()},setHidden:function(b){return this.setVisible(!b)},setWidth:function(b){return this.setSize(b)},show:function(i,g,f){var j=this,h=j.rendered;if(j.hierarchicallyHidden||(j.floating&&!h&&j.isHierarchicallyHidden())){if(!h){j.initHierarchyEvents()}if(arguments.length>1){arguments[0]=null;j.pendingShow=arguments}else{j.pendingShow=true}}else{if(h&&j.isVisible()){if(j.floating){j.onFloatShow()}}else{if(j.fireEvent("beforeshow",j)!==false){j.hidden=false;delete this.getInherited().hidden;Ext.suspendLayouts();if(!h&&(j.autoRender||j.floating)){j.doAutoRender();h=j.rendered}if(h){j.beforeShow();Ext.resumeLayouts();j.onShow.apply(j,arguments);j.afterShow.apply(j,arguments)}else{Ext.resumeLayouts(true)}}else{j.onShowVeto()}}}return j},showAt:function(f,g,e){var h=this;if(!h.rendered&&(h.autoRender||h.floating)){h.x=f;h.y=g;return h.show()}if(h.floating){h.setPosition(f,g,e)}else{h.setPagePosition(f,g,e)}return h.show()},showBy:function(e,g,h){var f=this;if(f.floating&&e){f.alignTarget=e;if(g){f.defaultAlign=g}if(h){f.alignOffset=h}f.show();if(!f.hidden){f.alignTo(e,g||f.defaultAlign,h||f.alignOffset)}}return f},suspendLayouts:function(){var b=this;if(!b.rendered){return}if(++b.layoutSuspendCount===1){b.suspendLayout=true}},unitizeBox:function(b){return Ext.Element.unitizeBox(b)},unmask:function(){(this.getMaskTarget()||this.el).unmask();this.setMasked(false)},unregisterFloatingItem:function(c){var d=this;if(d.floatingDescendants){d.floatingDescendants.unregister(c)}},up:function(m,l){var n=this.getRefOwner(),h=typeof l==="string",j=typeof l==="number",i=l&&l.isComponent,k=0;if(m){for(;n;n=n.getRefOwner()){k++;if(m.isComponent){if(n===m){return n}}else{if(Ext.ComponentQuery.is(n,m)){return n}}if(h&&n.is(l)){return}if(j&&k===l){return}if(i&&n===l){return}}}return n},update:function(s,p,m,u){var n=this,l=(n.tpl&&!Ext.isString(s)),o=n.getScrollable(),t=n.focusableContainer,q,v,r;if(l){n.data=(s&&s.isEntity)?s.getData(true):s}else{n.html=Ext.isObject(s)?Ext.DomHelper.markup(s):s}if(n.rendered){q=n.getSizeModel();v=q.width.shrinkWrap||q.height.shrinkWrap;if(n.isContainer){r=n.layout.getRenderTarget();v=v||n.items.items.length>0}else{r=n.touchScroll?n.getScrollerEl():n.getTargetEl()}if(l){n.tpl[n.tplWriteMode](r,n.data||{})}else{r.setHtml(n.html,p,m,u||n)}if(v){n.updateLayout()}if(o){o.refresh(true)}if(t){t.onFocusableChildUpdate(n)}}},setHtml:function(d,e,f){this.update(d,e,null,f)},applyData:function(b){this.update(b)},updateBox:function(b){this.setSize(b.width,b.height);this.setPagePosition(b.x,b.y);return this},_asLayoutRoot:{isRoot:true},_notAsLayoutRoot:{isRoot:false},updateLayout:function(j){var i=this,h,f=i.lastBox,g=j&&j.isRoot;if(f){f.invalid=true}if(!i.rendered||i.layoutSuspendCount||i.suspendLayout){return}if(i.hidden){Ext.Component.cancelLayout(i)}else{if(typeof g!=="boolean"){g=i.isLayoutRoot()}}if(g||!i.ownerLayout||!i.ownerLayout.onContentChange(i)){if(!i.isLayoutSuspended()){h=(j&&j.hasOwnProperty("defer"))?j.defer:i.deferLayouts;Ext.Component.updateLayout(i,h)}}},updateMaxHeight:function(c,d){this.changeConstraint(c,d,"min","max-height","height")},updateMaxWidth:function(c,d){this.changeConstraint(c,d,"min","max-width","width")},updateMinHeight:function(c,d){this.changeConstraint(c,d,"max","min-height","height")},updateMinWidth:function(d,c){this.changeConstraint(d,c,"max","min-width","width")},getAnchorToXY:function(g,f,h,e){return g.getAnchorXY(f,h,e)},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(b){this.el.setLocalX(b)},setLocalXY:function(d,c){this.el.setLocalXY(d,c)},setLocalY:function(b){this.el.setLocalY(b)},setX:function(d,c){this.el.setX(d,c)},setXY:function(c,d){this.el.setXY(c,d)},setY:function(c,d){this.el.setY(c,d)},privates:{addOverCls:function(){var b=this;if(!b.disabled){b.el.addCls(b.overCls)}},addUIToElement:function(){var k=this,h=k.baseCls+"-"+k.ui,l,i,g,j;k.addCls(h);if(k.rendered&&k.frame&&!Ext.supports.CSS3BorderRadius){h+="-";l=k.getChildEls();for(i in l){j=l[i].frame;if(j&&j!==true){g=k[i];if(g){g.addCls(h+j)}}}}},changeConstraint:function(j,n,i,l,h){var k=this,m=k[h];if(j!=null&&typeof m==="number"){k[h]=Math[i](m,j)}if(k.liquidLayout){if(j!=null){k.setStyle(l,j+"px")}else{if(n){k.setStyle(l,"")}}}if(k.rendered){k.updateLayout()}},constructPlugin:function(c){var d=this;if(typeof c==="string"){c=Ext.PluginManager.create({},c,d)}else{c=Ext.PluginManager.create(c,null,d)}return c},constructPlugins:function(){var h=this,j=h.plugins,f,i,g;if(j){f=[];f.processed=true;if(!Ext.isArray(j)){j=[j]}for(i=0,g=j.length;i<g;i++){f[i]=h.constructPlugin(j[i])}}h.pluginsInitialized=true;return f},detachFromBody:function(){Ext.getDetachedBody().appendChild(this.el);Ext.Component.cancelLayout(this);this.isDetached=true},doAddListener:function(y,r,q,o,A,B,x){var s=this,t,v,z,p,w,u;if(Ext.isObject(r)||(o&&o.element)){if(o.element){p=o.element;t={};t[y]=r;if(q){t.scope=q}z=s.$elementEventOptions;for(v in o){if(z[v]){t[v]=o[v]}}}else{t=r;p=y}w=s[p];if(w&&w.isObservable){s.mon(w,t)}else{s.afterRenderEvents=s.afterRenderEvents||{};if(!s.afterRenderEvents[p]){s.afterRenderEvents[p]=[]}s.afterRenderEvents[p].push(t)}return}if(o){u=o.delegate;if(u){s.mixins.componentDelegation.addDelegatedListener.call(s,y,r,q,o,A,B,x);return}}s.mixins.observable.doAddListener.call(s,y,r,q,o,A,B,x)},doRemoveListener:function(f,h,e){var g=this;g.mixins.observable.doRemoveListener.call(g,f,h,e);g.mixins.componentDelegation.removeDelegatedListener.call(g,f,h,e)},fireHierarchyEvent:function(c){var d=Ext.GlobalEvents;if(d.hasListeners[c]){d.fireEvent(c,this)}},getActionEl:function(){return this.el},getAutoId:function(){this.autoGenId=true;return ++Ext.Component.AUTO_ID},getContentTarget:function(){return this.el},getDragEl:function(){return this.el},getOverflowEl:function(){return this.getTargetEl()},getOverflowStyle:function(){var k=this,g=k.getScrollable(),l=k._scrollFlags,h,i,j;if(g){h=g.getX();if(h===true){h="auto"}i=g.getY();if(i===true){i="auto"}j=l[h][i]}else{j=l.none}k.scrollFlags=j;return{overflowX:j.overflowX,overflowY:j.overflowY}},getPlugins:function(){var b=this.plugins;b=(b&&b.processed)?b:this.constructPlugins();return b||null},getProxy:function(){var d=this,c;if(!d.proxy){c=Ext.getBody();d.proxy=d.el.createProxy("x-proxy-el",c,true)}return d.proxy},getScrollerEl:function(){var b=this;return b.scrollerEl||(b.scrollerEl=b.componentLayout.getScrollerEl()||b.getOverflowEl().child(b.scrollerSelector))},getTargetEl:function(){return this.frameBody||this.el},getTdCls:function(){return"x-"+this.getTdType()+"-"+this.ui+"-cell"},getTdType:function(){return this.xtype},getTpl:function(b){return Ext.XTemplate.getTpl(this,b)},initCls:function(){var d=this,e=[d.baseCls],f=d.getComponentLayout().targetCls;if(f){e.push(f)}if(d.componentCls){e.push(d.componentCls)}else{d.componentCls=d.baseCls}return e},initDraggable:function(){var f=this,e=(f.resizer&&f.resizer.el!==f.el)?f.resizerComponent=new Ext.Component({el:f.resizer.el,rendered:true,container:f.container}):f,d=Ext.applyIf({el:e.getDragEl(),constrainTo:(f.constrain||f.draggable.constrain)?(f.constrainTo||(f.floatParent?f.floatParent.getTargetEl():f.container)):undefined},f.draggable);if(f.constrain||f.constrainDelegate){d.constrain=f.constrain;d.constrainDelegate=f.constrainDelegate}f.dd=new Ext.util.ComponentDragger(e,d)},initPadding:function(f){var e=this,d=e.padding;if(d!=null){if(e.touchScroll||(e.layout&&e.layout.managePadding&&e.contentPaddingProperty==="padding")){f.setStyle("padding",0)}else{f.setStyle("padding",this.unitizeBox((d===true)?5:d))}}},initPlugin:function(b){b.init(this);return b},initResizable:function(d){var c=this;d=Ext.apply({target:c,dynamic:false,constrainTo:(c.constrain||(d&&d.constrain))?(c.constrainTo||(c.floatParent?c.floatParent.getTargetEl():c.container)):undefined,handles:c.resizeHandles},d);d.target=c;c.resizer=new Ext.resizer.Resizer(d)},initStyles:function(m){var q=this,s=q.margin,r=q.border,l=q.cls,v=q.style,o=q.x,p=q.y,t=q.liquidLayout,u,n;q.initPadding(m);if(s!=null){m.setStyle("margin",this.unitizeBox((s===true)?5:s))}if(r!=null){q.setBorder(r,m)}if(l&&l!==q.initialCls){m.addCls(l);q.cls=q.initialCls=null}if(v&&v!==q.initialStyle){m.setStyle(v);q.style=q.initialStyle=null}if(o!=null){m.setStyle(q.horizontalPosProp,(typeof o==="number")?(o+"px"):o)}if(p!=null){m.setStyle("top",(typeof p==="number")?(p+"px"):p)}if(!q.ownerCt||q.floating){if(Ext.scopeCss){m.addCls(q.rootCls)}m.addCls(q.borderBoxCls)}if(t||!q.getFrameInfo()){u=q.width;n=q.height;if(u!=null){if(typeof u==="number"){m.setStyle("width",u+"px")}else{m.setStyle("width",u)}}if(n!=null){if(typeof n==="number"){m.setStyle("height",n+"px")}else{m.setStyle("height",n)}}}},isContainedFloater:function(){return(this.floating&&this.floatParent)},isDescendant:function(d){if(d.isContainer){for(var c=this.ownerCt;c;c=c.ownerCt){if(c===d){return true}}}return false},owns:function(d){var e=false,f;if(d.isEvent){d=d.target}else{if(d.isElement){d=d.dom}}f=Ext.Component.fromElement(d);if(f){e=(f===this)||(!!f.up(this))}return e},parseBox:function(b){return Ext.Element.parseBox(b)},reattachToBody:function(){this.isDetached=false},refreshScroll:function(){var b=this.getScrollable();if(b){b.refresh()}},removeManagedListenerItem:function(i,j,k,o,m,n){var l=this,p=j.options?j.options.element:null;if(p){p=l[p];if(p&&p.un){if(i||(j.item===k&&j.ename===o&&(!m||j.fn===m)&&(!n||j.scope===n))){p.un(j.ename,j.fn,j.scope);if(!i){Ext.Array.remove(l.managedListeners,j)}}}}else{return l.mixins.observable.removeManagedListenerItem.apply(l,arguments)}},removeOverCls:function(){this.el.removeCls(this.overCls)},removePlugin:function(b){Ext.Array.remove(this.plugins,b);b.destroy()},removeUIFromElement:function(){var k=this,h=k.baseCls+"-"+k.ui,l,i,g,j;k.removeCls(h);if(k.rendered&&k.frame&&!Ext.supports.CSS3BorderRadius){h+="-";l=k.getChildEls();for(i in l){j=l[i].frame;if(j&&j!==true){g=k[i];if(g){g.removeCls(h+j)}}}}},setComponentLayout:function(c){var d=this.componentLayout;if(d&&d.isLayout&&d!==c){d.setOwner(null)}this.componentLayout=c;c.setOwner(this)},setHiddenState:function(g){var h=this,e=h.getInherited(),f=h.zIndexManager;h.hidden=g;if(g){e.hidden=true}else{delete e.hidden}if(f){f.onComponentShowHide(h)}},setupProtoEl:function(){var b=this.initCls();this.protoEl.addCls(b)},wrapPrimaryEl:function(f){var d=this,e=d.el;if(!e||!e.isElement){d.el=Ext.get(f)}if(d.floating){this.mixins.floating.constructor.call(this)}}},deprecated:{5:{methods:{addClass:"addCls",doComponentLayout:function(){this.updateLayout();return this},removeClass:"removeCls",forceComponentLayout:"updateLayout",setDocked:"setDock"}}}},1,["component","box"],["component","box"],{component:true,box:true},["widget.box","widget.component"],[[Ext.mixin.Inheritable.prototype.mixinId||Ext.mixin.Inheritable.$className,Ext.mixin.Inheritable],[Ext.util.Floating.prototype.mixinId||Ext.util.Floating.$className,Ext.util.Floating],[Ext.util.Positionable.prototype.mixinId||Ext.util.Positionable.$className,Ext.util.Positionable],[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable],[Ext.mixin.ComponentDelegation.prototype.mixinId||Ext.mixin.ComponentDelegation.$className,Ext.mixin.ComponentDelegation],[Ext.mixin.Bindable.prototype.mixinId||Ext.mixin.Bindable.$className,Ext.mixin.Bindable],[Ext.util.Animate.prototype.mixinId||Ext.util.Animate.$className,Ext.util.Animate],[Ext.util.ElementContainer.prototype.mixinId||Ext.util.ElementContainer.$className,Ext.util.ElementContainer],[Ext.util.Renderable.prototype.mixinId||Ext.util.Renderable.$className,Ext.util.Renderable],[Ext.state.Stateful.prototype.mixinId||Ext.state.Stateful.$className,Ext.state.Stateful],[Ext.util.Focusable.prototype.mixinId||Ext.util.Focusable.$className,Ext.util.Focusable],[Ext.mixin.Accessible.prototype.mixinId||Ext.mixin.Accessible.$className,Ext.mixin.Accessible],[Ext.util.KeyboardInteractive.prototype.mixinId||Ext.util.KeyboardInteractive.$className,Ext.util.KeyboardInteractive]],[Ext,"Component",Ext,"AbstractComponent"],function(c){var d=c.prototype;(d.$elementEventOptions=Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element=1;(d.$eventOptions=Ext.Object.chain(d.$eventOptions)).delegate=1;c.createAlias({on:"addListener",prev:"previousSibling",next:"nextSibling"});Ext.resumeLayouts=function(a){c.resumeLayouts(a)};Ext.suspendLayouts=function(){c.suspendLayouts()};Ext.batchLayouts=function(a,b){c.suspendLayouts();a.call(b);c.resumeLayouts(true)};Ext.setGlyphFontFamily=function(a){Ext._glyphFontFamily=a};c.hierarchyEventSource=d.hierarchyEventSource=Ext.GlobalEvents;Ext.onReady(function(){if(Ext.supports.HighContrastMode){Ext.getBody().addCls(c.ariaHighContrastModeCls)}})}));Ext.define("Ext.theme.neptune.Component",{override:"Ext.Component",initComponent:function(){arguments.callee.$previous.call(this);if(this.dock&&this.border===undefined){this.border=false}},privates:{initStyles:function(){var f=this,d=f.hasOwnProperty("border"),e=f.border;if(f.dock){f.border=null}arguments.callee.$previous.apply(this,arguments);if(d){f.border=e}else{delete f.border}}}},function(){Ext.namespace("Ext.theme.is").Neptune=true;Ext.theme.name="Neptune"});Ext.define("Ext.theme.triton.Component",{override:"Ext.Component"},function(){Ext.namespace("Ext.theme.is").Triton=true;Ext.theme.name="Triton"});Ext.define("Ext.overrides.app.domain.Component",{override:"Ext.app.domain.Component"},function(b){b.monitor(Ext.Component)});(Ext.cmd.derive("Ext.app.EventBus",Ext.Base,{singleton:true,constructor:function(){var c=this,d=Ext.app.EventDomain.instances;c.callParent();c.domains=d;c.bus=d.component.bus},control:function(c,d){return this.domains.component.listen(c,d)},listen:function(g,e){var f=this.domains,h;for(h in g){if(g.hasOwnProperty(h)){f[h].listen(g[h],e)}}},unlisten:function(f){var e=Ext.app.EventDomain.instances,d;for(d in e){e[d].unlisten(f)}}},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 b=this;b.callParent();b.monitor(Ext.GlobalEvents)},listen:function(c,d){this.callParent([{global:c},d])},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:null,control:null,listen:null,routes:null,before:null},constructor:function(d){var c=this;Ext.apply(c,d);delete c.control;delete c.listen;c.eventbus=Ext.app.EventBus;c.mixins.observable.constructor.call(c,d);c.ensureId()},applyListen:function(b){if(Ext.isObject(b)){b=Ext.clone(b)}return b},applyControl:function(b){if(Ext.isObject(b)){b=Ext.clone(b)}return b},updateControl:function(b){this.ensureId();if(b){this.control(b)}},updateListen:function(b){this.ensureId();if(b){this.listen(b)}},updateRoutes:function(h){if(h){var l=this,k=l.getBefore()||{},i=Ext.app.route.Router,m,n,j;for(m in h){n=h[m];if(Ext.isString(n)){n={action:n}}j=n.action;if(!n.before){n.before=k[j]}i.connect(m,n,l)}}},isActive:function(){return true},control:function(g,l,h){var k=this,j=h,i;if(Ext.isString(g)){i={};i[g]=l}else{i=g;j=l}k.eventbus.control(i,j||k)},listen:function(c,d){this.eventbus.listen(c,d||this)},destroy:function(){var c=this,d=c.eventbus;Ext.app.route.Router.disconnectAll(c);if(d){d.unlisten(c);c.eventbus=null}c.callParent()},redirectTo:function(d,f){if(d.isModel){d=d.toUrl()}if(!f){var e=Ext.util.History.getToken();if(e===d){return false}}else{Ext.app.route.Router.onStateChange(d)}Ext.util.History.add(d);return true}},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(h){var g=Ext.app.namespaces,e,f;if(!Ext.isArray(h)){h=[h]}for(e=0,f=h.length;e<f;e++){g[h[e]]=true}},clearNamespaces:function(){Ext.app.namespaces={}},getNamespace:function(e){var g=Ext.apply({},Ext.ClassManager.paths,Ext.app.namespaces),f="",h;for(h in g){if(g.hasOwnProperty(h)&&h.length>f.length&&(h+"."===e.substring(0,h.length+1))){f=h}}return f===""?undefined:f},setupPaths:function(g,f,h){var i=Ext.manifest,j;if(g&&f!==null){i=i&&i.paths;if(!i||f!==undefined){Ext.Loader.setPath(g,(f===undefined)?"app":f)}}if(h){for(j in h){if(h.hasOwnProperty(j)){Ext.Loader.setPath(j,h[j])}}}}});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(b){this.initConfig(b)},get:function(d){var c=this.map||this.getMap();return c[d]||null},clear:function(){this.map=null},getRootProperty:function(){var c=this,d=(arguments.callee.$previous||Ext.Base.prototype.getRootProperty).call(this);return d!==null?d:c.getCollection().getRootProperty()},indexOf:function(l,p){var t=this.map||this.getMap(),i=t[l],o=this.getCollection(),s=o.length,q,n,m,r;if(!i){return -1}if(p===undefined){p=-1}if(i instanceof Array){m=i;n=s;for(r=m.length;r-->0;){q=o.indexOf(m[r]);if(q<n&&q>p){n=q}}if(n===s){return -1}}else{n=o.indexOf(i)}return(n>p)?n:-1},updateKey:function(l,j){var g=this,k=g.map,i,h;if(k){i=k[j];if(i instanceof Array){h=Ext.Array.indexOf(i,l);if(h>=0){if(i.length>2){i.splice(h,1)}else{k[j]=i[1-h]}}}else{if(i){delete k[j]}}g.add([l])}},onCollectionAdd:function(c,d){if(this.map){this.add(d.items)}},onCollectionItemChange:function(c,d){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(n,o){var l=this,r=l.map,m=o.items,q=m.length,p,i,k;if(r){if(l.getUnique()&&q<n.length/2){for(p=0;p<q;++p){k=l.getKey(i=m[p]);delete r[k]}}else{l.map=null}}},add:function(m){var l=this,r=l.map,q,n,i,k,p,o;p=m.length;o=l.getUnique();for(n=0;n<p;++n){k=l.getKey(i=m[n]);if(o||!(k in r)){r[k]=i}else{if(!((q=r[k]) instanceof Array)){r[k]=q=[q]}q.push(i)}}},applyKeyFn:function(b){if(Ext.isString(b)){this.getKey=function(a){return a[b]()}}else{this.getKey=b}},updateProperty:function(c){var d=this.getRootProperty();this.getKey=function(a){return(d?a[d]:a)[c]}},getMap:function(){var d=this,c=d.map;if(!c){d.map=c={};d.keysByItemKey={};++d.mapRebuilds;d.add(d.getCollection().items)}return c},updateCollection:function(b){b.addObserver(this)},clone:function(){return new Ext.util.CollectionKey(this.getCurrentConfig())}},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.util,"CollectionKey"],0));(Ext.cmd.derive("Ext.util.Grouper",Ext.util.Sorter,{isGrouper:true,config:{groupFn:null,sortProperty:null},constructor:function(b){Ext.util.Sorter.prototype.constructor.apply(this,arguments)},getGroupString:function(d){var c=this._groupFn(d);return(c!=null)?String(c):""},sortFn:function(o,p){var m=this,q=m._groupFn(o),n=m._groupFn(p),j=m._sortProperty,k=m._root,l=m._sorterFn,r=m._transform;if(q===n){return 0}if(j||l){if(l){return l.call(this,o,p)}if(k){o=o[k];p=p[k]}q=o[j];n=p[j];if(r){q=r(q);n=r(n)}}return(q>n)?1:(q<n?-1:0)},standardGroupFn:function(c){var d=this._root;return(d?c[d]:c)[this._property]},updateSorterFn:function(){},updateProperty:function(){if(!this.getGroupFn()){this.setGroupFn(this.standardGroupFn)}}},1,0,0,0,0,0,[Ext.util,"Grouper"],0));(Ext.cmd.derive("Ext.util.Collection",Ext.Base,{isCollection:true,config:{autoFilter:true,autoSort:true,autoGroup:true,decoder:null,extraKeys:null,filters:null,grouper:null,groups:null,rootProperty:null,sorters:null,multiSortLimit:3,defaultSortDirection:"ASC",source:null,trackGroups:true},generation:0,indices:null,indexRebuilds:0,updating:0,grouped:false,sorted:false,filtered:false,$endUpdatePriority:1001,constructor:function(d){var c=this;c.items=[];c.map={};c.length=0;if(d&&d.keyFn){c.getKey=d.keyFn}c.mixins.observable.constructor.call(c,d)},destroy:function(){var h=this,e=h._filters,g=h._sorters,f=h._groups;if(e){e.destroy();h._filters=null}if(g){g.destroy();h._sorters=null}if(f){f.destroy();h._groups=null}h.setSource(null);h.observers=h.items=h.map=null;h.callParent()},add:function(g){var h=this,f=h.decodeItems(arguments,0),e=f;if(f.length){h.requestedIndex=h.length;h.splice(h.length,0,f);delete h.requestedIndex;e=(f.length===1)?f[0]:f}return e},replaceAll:function(){var f=this,d,e;e=f.decodeItems(arguments,0);d=e;if(e.length){f.splice(0,f.length,e);d=(e.length===1)?e[0]:e}else{f.removeAll()}return d},aggregate:function(j,h,l,i,m){var k=this,n=Ext.Array.slice(arguments);n.unshift(k.items);return k.aggregateItems.apply(k,n)},aggregateByGroup:function(g,e,h){var f=this.getGroups();return this.aggregateGroups(f,g,e,h)},aggregateItems:function(x,j,C,F,B,i){var w=this,y=Ext.Number.clipIndices(x.length,[F,B]),E=(F!==0&&B!==x.length),z,A,D,v,t,s,u;F=y[0];B=y[1];if(!Ext.isFunction(C)){C=w._aggregators[C];return C.call(w,x,F,B,j,w.getRootProperty())}v=w.getRootProperty();s=new Array(D);u=E?new Array(D):x;for(z=F,A=0;z<B;++z,A++){if(E){u[A]=t=x[z]}s[A]=(v?t[v]:t)[j]}return C.call(i||w,x,s,0)},aggregateGroups:function(v,n,t,m){var p=v.items,q=p.length,u=!Ext.isFunction(t),s={},r,o,i;for(r=0;r<q;++r){o=p[r];if(!u){i=this.aggregateItems(o.items,n,t,null,null,m)}else{i=o[t](n)}s[o.getGroupKey()]=i}return s},beginUpdate:function(){if(!this.updating++){this.notify("beginupdate")}},clear:function(){var j=this,i=j.generation,g=i?j.items:[],f,h;if(i){j.items=[];j.length=0;j.map={};j.indices={};j.generation++;f=j.getExtraKeys();if(f){for(h in f){f[h].clear()}}}return g},clone:function(){var d=this,c=new d.self(d.initialConfig);c.add(d.items);return c},collect:function(i,o,m){var p=this.items,s=p.length,t={},q=[],r,n,l;for(r=0;r<s;++r){l=p[r];l=(o?l[o]:l)[i];n=String(l);if((m||!Ext.isEmpty(l))&&!t[n]){t[n]=1;q.push(l)}}return q},contains:function(f){var e=false,d;if(f!=null){d=this.getKey(f);e=this.map[d]===f}return e},containsKey:function(b){return b in this.map},createFiltered:function(p,q,x,t,y){var u=this,w=new u.self(u.initialConfig),r=u.getRootProperty(),v=u.items,A,z,B,s,i;if(Ext.isFunction(p)){s=p;i=q}else{if(Ext.isString(p)){B=[new Ext.util.Filter({property:p,value:q,root:r,anyMatch:x,caseSensitive:t,exactMatch:y})]}else{if(p instanceof Ext.util.Filter){B=[p];p.setRoot(r)}else{if(Ext.isArray(p)){B=p.slice(0);for(z=0,A=B.length;z<A;++z){B[z].setRoot(r)}}}}s=Ext.util.Filter.createFilterFn(B)}i=i||u;for(z=0,A=v.length;z<A;z++){if(s.call(i,v[z])){w.add(v[z])}}return w},filterBy:function(c,d){return this.createFiltered(c,d)},each:function(i,j){var g=this.items,h=g.length,k,l;if(h){j=j||this;g=g.slice(0);for(k=0;k<h;k++){l=i.call(j,g[k],k,h);if(l===false){break}}}return l},eachKey:function(m,i){var n=this,o=n.items,q=o.length,r,k,l,p;if(q){i=i||n;o=o.slice(0);for(r=0;r<q;r++){l=n.getKey(k=o[r]);p=m.call(i,l,k,r,q);if(p===false){break}}}return p},endUpdate:function(){if(!--this.updating){this.notify("endupdate")}},find:function(l,m,k,o,p,i){if(Ext.isEmpty(m,false)){return null}var n=Ext.String.createRegex(m,o,p,i),j=this.getRootProperty();return this.findBy(function(a){return a&&n.test((j?a[j]:a)[l])},null,k)},findBy:function(m,i,r){var n=this,o=n.items,p=o.length,q,k,l;i=i||n;for(q=r||0;q<p;q++){l=n.getKey(k=o[q]);if(m.call(i,k,l)){return o[q]}}return null},findIndex:function(k,l,j,n,h,i){var m=this.find(k,l,j,n,h,i);return m?this.indexOf(m):-1},findIndexBy:function(e,f,g){var h=this.findBy(e,f,g);return h?this.indexOf(h):-1},first:function(c){var d=c?this.getGroups():undefined;return d?this.aggregateGroups(d,null,"first"):this.items[0]},last:function(c){var d=c?this.getGroups():undefined;return d?this.aggregateGroups(d,null,"last"):this.items[this.length-1]},get:function(b){return this.map[b]},getAt:function(b){return this.items[b]},getByKey:function(b){return this.map[b]},getCount:function(){return this.length},getKey:function(d){var c=d.id;return(c===0||c)?c:((c=d._id)===0||c)?c:d.getId()},getRange:function(i,g){var j=this.items,h=j.length,f;if(!h){f=[]}else{f=Ext.Number.clipIndices(h,[i,g]);f=j.slice(f[0],f[1])}return f},getValues:function(i,l,r,q){var m=this.items,o=Ext.Number.clipIndices(m.length,[r,q]),n=[],p,k;for(p=o[0],q=o[1];p<q;++p){k=m[p];k=(l?k[l]:k)[i];n.push(k)}return n},indexOf:function(c){if(!c){return -1}var d=this.getKey(c);return this.indexOfKey(d)},indexOfKey:function(e){var d=this,f=d.indices;if(e in d.map){if(!f){f=d.getIndices()}return f[e]}return -1},insert:function(j,h){var i=this,g=i.decodeItems(arguments,1),f=g;if(g.length){i.requestedIndex=j;i.splice(j,0,g);delete i.requestedIndex;f=(g.length===1)?g[0]:g}return f},itemChanged:function(y,K,G,F){var x=this,P=G===0||!!G,J=x.filtered&&x.getAutoFilter(),N=false,O=0,D=x.items,H=x.length-1,R=x.sorted&&H>0&&x.getAutoSort(),B=x.getSource(),C=0,I=false,E=false,z,A,M,w,L,Q;if(B&&!B.updating){B.itemChanged(y,K,G,F)}else{A=x.getKey(y);if(J){L=x.indexOfKey(P?G:A);E=(L<0);I=x.isItemFiltered(y);N=(E!==I)}if(N){if(I){C=[y];Q=-1}else{w=[y];Q=x.length}}else{if(R&&!I){if(!J){L=x.indexOfKey(P?G:A)}M=x.getSortFn();if(L!==-1){if(L&&M(D[L-1],D[L])>0){O=-1;Q=Ext.Array.binarySearch(D,y,0,L,M)}else{if(L<H&&M(D[L],D[L+1])>0){O=1;Q=Ext.Array.binarySearch(D,y,L+1,M)}}if(O){w=[y]}}}}z={item:y,key:A,index:Q,filterChanged:N,keyChanged:P,indexChanged:!!O,filtered:I,oldIndex:L,newIndex:Q,wasFiltered:E,meta:F};if(P){z.oldKey=G}if(K){z.modified=K}x.beginUpdate();x.notify("beforeitemchange",[z]);if(P){x.updateKey(y,G)}if(w||C){x.splice(Q,C,w)}if(O>0){z.newIndex--}else{if(O<0){z.oldIndex++}}x.notify(I?"filtereditemchange":"itemchange",[z]);x.endUpdate()}},remove:function(g){var h=this,f=h.decodeRemoveItems(arguments,0),e=h.length;h.splice(0,f);return e-h.length},removeAll:function(){var c=this,d=c.length;if(c.generation&&d){c.splice(0,d)}return c},removeAt:function(m,n){var l=this,s=l.length,p=Ext.Number,q=p.clipIndices(s,[m,(n===undefined)?1:n],p.Clip.COUNT),r=q[0],t=q[1]-r,k=(t===1)&&l.getAt(r),o;l.splice(r,t);o=l.length-s;return(k&&o)?k:o},removeByKey:function(d){var c=this.getByKey(d);if(!c||!this.remove(c)){return false}return c},replace:function(c){var d=this.indexOf(c);if(d===-1){this.add(c)}else{this.insert(d,c)}},splice:function(X,an,Z){var ao=this,av=ao.sorted&&ao.getAutoSort(),ab=ao.map,aj=ao.items,al=ao.length,af=(an instanceof Array)?ao.decodeRemoveItems(an):null,ae=!af,W=Ext.Number,au=W.clipIndices(al,[X,ae?an:0],W.Clip.COUNT),ar=au[0],ap=au[1],Q=ap-ar,ah=ao.decodeItems(arguments,2),R=ah?ah.length:0,Y,ad,ag,aw=ar,ax=ao.indices||((R||af)?ao.getIndices():null),ak=null,aq=Q?[ar]:null,at=null,ai=ao.getSource(),ay,U,T,n,aa,V,P,am,ac,S,i,k,ap;if(ai&&!ai.updating){if(ae){af=[];for(n=0;n<Q;++n){af.push(aj[ar+n])}}if(ar<al){n=ai.indexOf(aj[ar])}else{n=ai.length}ai.splice(n,af,ah);return ao}if(R){Y=ah;at=[];ad={};if(av){k=ao.getSorters();if(R>1){if(!Y.$cloned){ah=Y=Y.slice(0)}ao.sortData(Y)}}for(n=0;n<R;++n){am=ao.getKey(aa=ah[n]);if((P=ad[am])!==undefined){(i||(i={}))[P]=1}else{V=ax[am];if(V<ar||ap<=V){(aq||(aq=[])).push(V)}}ad[am]=n;at.push(am)}if(i){ac=at;Y=[];at=[];Y.$cloned=true;for(n=0;n<R;++n){if(!i[n]){aa=ah[n];Y.push(aa);at.push(ac[n])}}R=Y.length}ak={items:Y,keys:at}}for(n=af?af.length:0;n-->0;){am=ao.getKey(af[n]);if((V=ax[am])!==undefined){(aq||(aq=[])).push(V)}}if(!ak&&!aq){return ao}ao.beginUpdate();if(aq){ay=null;T=[];ag={};if(aq.length>1){aq.sort(Ext.Array.numericSortFn)}for(n=0,S=aq.length;n<S;++n){am=ao.getKey(aa=aj[V=aq[n]]);if(!(am in ab)){continue}delete ab[am];if(!ay||V>(ay.at+U.length)){T.push(ay={at:V,items:(U=[]),keys:(ac=[]),map:ag,next:ay,replacement:ak});if(ak){ak.replaced=ay}}U.push(ag[am]=aa);ac.push(am);if(V<aw){--aw}if(Q>1&&V===ar){--Q;aq[n--]=++ar}}if(ak){ak.at=aw}for(P=T.length;P-->0;){ay=T[P];n=ay.at;S=ay.items.length;if(n+S<al){ao.indices=ax=null}ao.length=al-=S;aj.splice(n,S);if(ax){ac=ay.keys;for(n=0;n<S;++n){delete ax[ac[n]]}}++ao.generation;ao.notify("remove",[ay])}}if(ak){if(av&&R>1&&al){ao.spliceMerge(Y,at)}else{if(av){if(R>1){aw=0;ao.indices=ax=null}else{aw=k.findInsertionIndex(ak.items[0],aj,ao.getSortFn())}}if(aw===al){ap=aw;for(n=Y.length-1;n>=0;--n){aj[ap+n]=Y[n]}ax=ao.indices;if(ax){for(n=0;n<R;++n){ax[at[n]]=aw+n}}}else{ao.indices=null;Ext.Array.insert(aj,aw,Y)}for(n=0;n<R;++n){ab[at[n]]=Y[n]}ao.length+=R;ak.at=aw;ak.atItem=aw===0?null:aj[aw-1];++ao.generation;ao.notify("add",[ak])}}ao.endUpdate();return ao},update:function(e,f){var h=this;h.beginUpdate();try{return e.call(f||h,h)}catch(g){throw g}finally{h.endUpdate()}},updateKey:function(h,l){var i=this,m=i.map,j=i.indices,n=i.getSource(),k;if(n&&!n.updating){n.updateKey(h,l)}else{if((k=i.getKey(h))!==l){if(m[l]===h&&!(k in m)){delete m[l];i.updating++;i.generation++;m[k]=h;if(j){j[k]=j[l];delete j[l]}i.notify("updatekey",[{item:h,newKey:k,oldKey:l}]);i.updating--}}}},findInsertIndex:function(k){var j=this.getSource(),i=j.items,g=j.indexOf(k)-1,l,h;while(g>-1){l=i[g];h=this.indexOf(l);if(h>-1){return h+1}--g}return 0},onCollectionAdd:function(x,w){var o=this,i=w.atItem,p=w.items,s=o.requestedIndex,q,r,v,t,n,u;if(!o.sorted){if(s!==undefined){r=s}else{if(i){r=o.indexOf(i);if(r===-1){r=o.findInsertIndex(p[0])}else{++r}}else{r=0}}}if(o.getAutoFilter()&&o.filtered){for(t=0,u=p.length;t<u;++t){n=p[t];if(o.isItemFiltered(n)){if(!v){v=p.slice(0,t)}if(!q){q=[]}q.push(n)}else{if(v){v.push(n)}}}}o.splice((r<0)?o.length:r,0,v||p);if(q){o.notify("filteradd",[q])}},onCollectionBeforeItemChange:function(c,d){this.onCollectionUpdateKey=null},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(c,d){delete this.onCollectionUpdateKey;this.itemChanged(d.item,d.modified,d.oldKey,d.meta)},onCollectionFilteredItemChange:null,onCollectionRefresh:function(r){var m=this,q={},k={},o,i,n,l,p;n=r.items;n=m.filtered&&m.getAutoFilter()?Ext.Array.filter(n,m.getFilterFn()):n.slice(0);if(m.sorted){m.sortData(n)}m.items=n;m.length=p=n.length;m.map=q;m.indices=k;for(o=0;o<p;++o){l=m.getKey(i=n[o]);q[l]=i;k[l]=o}m.notify("refresh")},onCollectionRemove:function(c,d){this.splice(0,d.items)},onCollectionUpdateKey:function(c,d){this.updateKey(d.item,d.oldKey)},_aggregators:{average:function(l,k,g,j,h){var i=g-k;return i&&this._aggregators.sum.call(this,l,k,g,j,h)/i},bounds:function(n,r,q,i,m){for(var k,l,p,o=r;o<q;++o){k=n[o];k=(m?k[m]:k)[i];if(!(k<l)){l=k}if(!(k>p)){p=k}}return[p,l]},count:function(b){return b.length},extremes:function(s,x,v,n,p){var r=null,w=null,t,i,q,u,o;for(t=x;t<v;++t){i=s[t];o=(p?i[p]:i)[n];if(!(o<q)){q=o;r=i}if(!(o>u)){u=o;w=i}}return[w,r]},max:function(j,i,k,h,l){var b=this._aggregators.bounds.call(this,j,i,k,h,l);return b[1]},maxItem:function(j,i,k,h,l){var b=this._aggregators.extremes.call(this,j,i,k,h,l);return b[1]},min:function(j,i,k,h,l){var b=this._aggregators.bounds.call(this,j,i,k,h,l);return b[0]},minItem:function(j,i,k,h,l){var b=this._aggregators.extremes.call(this,j,i,k,h,l);return b[0]},sum:function(p,m,i,k,j){for(var l,n=0,o=m;o<i;++o){l=p[o];l=(j?l[j]:l)[k];n+=l}return n}},_eventToMethodMap:{add:"onCollectionAdd",beforeitemchange:"onCollectionBeforeItemChange",beginupdate:"onCollectionBeginUpdate",endupdate:"onCollectionEndUpdate",itemchange:"onCollectionItemChange",filtereditemchange:"onCollectionFilteredItemChange",refresh:"onCollectionRefresh",remove:"onCollectionRemove",beforesort:"beforeCollectionSort",sort:"onCollectionSort",filter:"onCollectionFilter",filteradd:"onCollectionFilterAdd",updatekey:"onCollectionUpdateKey"},addObserver:function(e){var d=this,f=d.observers;if(!f){d.observers=f=[]}f.push(e);if(f.length>1){Ext.Array.sort(f,d.prioritySortFn)}},prioritySortFn:function(a,b){var g=a.observerPriority||0,h=b.observerPriority||0;return g-h},applyExtraKeys:function(l,i){var k=this,m=i||{},n,h,j;for(h in l){j=l[h];if(!j.isCollectionKey){n={collection:k};if(Ext.isString(j)){n.property=j}else{n=Ext.apply(n,j)}j=new Ext.util.CollectionKey(n)}else{j.setCollection(k)}m[h]=k[h]=j;j.name=h}return m},applyGrouper:function(b){if(b){b=this.getSorters().decodeSorter(b,"Ext.util.Grouper")}return b},decodeItems:function(m,n){var k=this,h=(n===undefined)?m:m[n],i,j,l;if(!h||!h.$cloned){i=m.length>n+1||!Ext.isIterable(h);if(i){h=Ext.Array.slice(m,n);if(h.length===1&&h[0]===undefined){h.length=0}}j=k.getDecoder();if(j){if(!i){h=h.slice(0);i=true}for(l=h.length;l-->0;){if((h[l]=j.call(k,h[l]))===false){h.splice(l,1)}}}if(i){h.$cloned=true}}return h},getIndices:function(){var k=this,j=k.indices,h=k.items,i=h.length,l,g;if(!j){k.indices=j={};++k.indexRebuilds;for(l=0;l<i;++l){g=k.getKey(h[l]);j[g]=l}}return j},notify:function(q,n){var m=this,r=m.observers,k=m._eventToMethodMap[q],l=0,p,s,t,o;n=n||[];if(r&&k){for(p=0,s=r.length;p<s;++p){t=(o=r[p])[k];if(t){if(!l++){n.unshift(m)}t.apply(o,n)}}}if(!m.hasListeners){return}if(m.hasListeners[q]){if(!l){n.unshift(m)}m.fireEventArgs(q,n)}},getFilterFn:function(){return this.getFilters().getFilterFn()},getFilters:function(c){var d=this._filters;if(!d&&c!==false){d=new Ext.util.FilterCollection();this.setFilters(d)}return d},isItemFiltered:function(b){return !this.getFilters().filterFn(b)},onFilterChange:function(j){var k=this,i=k.getSource(),l,g,h;if(!i){l=k.getExtraKeys();if(l){g={};for(h in l){g[h]=l[h].clone(k)}}i=new Ext.util.Collection({keyFn:k.getKey,extraKeys:g,rootProperty:k.getRootProperty()});if(k.length){i.add(k.items)}k.setSource(i);k.autoSource=i}else{if(i.length||k.length){k.onCollectionRefresh(i)}}k.notify("filter")},applyFilters:function(d,c){if(d==null||(d&&d.isFilterCollection)){return d}if(d){if(!c){c=this.getFilters()}c.splice(0,c.length,d)}return c},updateFilters:function(e,d){var f=this;if(d){d.un("endupdate","onEndUpdateFilters",f)}if(e){e.on({endupdate:"onEndUpdateFilters",scope:f,priority:f.$endUpdatePriority});e.$filterable=f}f.onEndUpdateFilters(e)},onEndUpdateFilters:function(h){var e=this,g=e.filtered,f=!!h&&(h.length>0);if(g||f){e.filtered=f;e.onFilterChange(h)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(c){var d=this._sorters;if(!d&&c!==false){d=new Ext.util.SorterCollection();this.setSorters(d)}return d},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(f,h,g){var e=this.getSorters();e.addSort.apply(e,arguments);return this},sortData:function(b){Ext.Array.sort(b,this.getSortFn());return b},sortItems:function(c){var d=this;if(d.sorted){c=d.getSortFn()}d.indices=null;d.notify("beforesort",[d.getSorters(false)]);if(d.length){Ext.Array.sort(d.items,c)}d.notify("sort")},sortBy:function(b){return this.sortItems(b)},findInsertionIndex:function(f,e,d){if(!e){e=this.items}if(!d){d=this.getSortFn()}return Ext.Array.binarySearch(e,f,d)},applySorters:function(d,c){if(d==null||(d&&d.isSorterCollection)){return d}if(d){if(!c){c=this.getSorters()}c.splice(0,c.length,d)}return c},createSortFn:function(){var h=this,f=h.getGrouper(),g=h.getSorters(false),e=g?g.getSortFn():null;if(!f){return e}return function(c,a){var b=f.sort(c,a);if(!b&&e){b=e(c,a)}return b}},updateGrouper:function(f){var j=this,g=j.getGroups(),h=j.getSorters(),i;j.onSorterChange();j.grouped=!!f;if(f){if(j.getTrackGroups()){if(!g){g=new Ext.util.GroupCollection({itemRoot:j.getRootProperty()});g.$groupable=j;j.setGroups(g)}g.setGrouper(f);i=true}}else{if(g){j.removeObserver(g);g.destroy()}j.setGroups(null)}if(!h.updating){j.onEndUpdateSorters(h)}if(i){g.onCollectionRefresh(j)}},updateSorters:function(e,d){var f=this;if(d){d.un("endupdate","onEndUpdateSorters",f)}if(e){e.on({endupdate:"onEndUpdateSorters",scope:f,priority:f.$endUpdatePriority});e.$sortable=f}f.onSorterChange();f.onEndUpdateSorters(e)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(h){var e=this,g=e.sorted,f=(e.grouped&&e.getAutoGroup())||(h&&h.length>0);if(g||f){e.sorted=!!f;e.onSortChange(h)}},removeObserver:function(d){var c=this.observers;if(c){Ext.Array.remove(c,d)}},spliceMerge:function(B,t){var u=this,v=u.map,E=B.length,H=0,A=u.items,i=A.length,C=[],D=0,y=[],G=u.getSortFn(),z,I,x,F,w,J;u.items=y;for(J=0;J<E;J=I){F=B[J];for(;H<i;++H){if(G(F,w=A[H])<0){break}y.push(w)}if(H===i){C[D++]={at:y.length,itemAt:y[y.length-1],items:(z=[])};if(D>1){C[D-2].next=C[D-1]}for(;J<E;++J){z.push(F=B[J]);y.push(F)}break}C[D++]={at:y.length,itemAt:y[y.length-1],items:(z=[F])};if(D>1){C[D-2].next=C[D-1]}y.push(F);for(I=J+1;I<E;++I){if(G(F=B[I],w)>=0){break}y.push(F);z.push(F)}}for(;H<i;++H){y.push(A[H])}for(x=0;x<E;++x){v[t[x]]=B[x]}u.length=y.length;++u.generation;u.indices=null;for(x=0;x<D;++x){u.notify("add",[C[x]])}},getGroups:function(){return(arguments.callee.$previous||Ext.Base.prototype.getGroups).call(this)||null},updateAutoGroup:function(c){var d=this.getGroups();if(d){d.setAutoGroup(c)}this.onEndUpdateSorters(this._sorters)},updateGroups:function(d,c){if(c){this.removeObserver(c)}if(d){this.addObserver(d)}},updateSource:function(d,e){var f=this.autoSource;if(e){e.removeObserver(this);if(e===f){f.destroy();this.autoSource=null}}if(d){d.addObserver(this);if(d.length||this.length){this.onCollectionRefresh(d)}}}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,"Collection"],function(){var b=this.prototype;b.removeAtKey=b.removeByKey;b.decodeRemoveItems=b.decodeItems;Ext.Object.each(b._aggregators,function(a){b[a]=function(f,g,h){return this.aggregate(f,a,g,h)};b[a+"ByGroup"]=function(d){return this.aggregateByGroup(d,a)}})}));(Ext.cmd.derive("Ext.util.ObjectTemplate",Ext.Base,{isObjectTemplate:true,excludeProperties:{},valueRe:/^[{][a-z\.]+[}]$/i,statics:{create:function(c,d){return c.isObjectTemplate?c:new Ext.util.ObjectTemplate(c,d)}},constructor:function(c,d){Ext.apply(this,d);this.template=c},apply:function(d){var c=this;delete c.apply;c.apply=c.compile(c.template);return c.apply(d)},privates:{compile:function(l){var k=this,h=k.excludeProperties,j,n,i,m;if(Ext.isString(l)){if(l.indexOf("{")<0){m=function(){return l}}else{if(k.valueRe.test(l)){l=l.substring(1,l.length-1).split(".");m=function(a){for(var c=a,b=0;c&&b<l.length;++b){c=c[l[b]]}return c}}else{l=new Ext.XTemplate(l);m=function(a){return l.apply(a)}}}}else{if(!l||Ext.isPrimitive(l)||Ext.isFunction(l)){m=function(){return l}}else{if(l instanceof Array){j=[];for(n=0,i=l.length;n<i;++n){j[n]=k.compile(l[n])}m=function(a){var c=[],b;for(b=0;b<i;++b){c[b]=j[b](a)}return c}}else{j={};for(n in l){if(!h[n]){j[n]=k.compile(l[n])}}m=function(a){var c={},b,d;for(b in l){d=h[b]?l[b]:j[b](a);if(d!==undefined){c[b]=d}}return c}}}}return m}}},1,0,0,0,0,0,[Ext.util,"ObjectTemplate"],0));(Ext.cmd.derive("Ext.data.schema.Role",Ext.Base,{isRole:true,left:true,owner:false,side:"left",isMany:false,defaultReaderType:"json",_internalReadOptions:{recordsOnly:true,asRoot:true},constructor:function(e,h){var g=this,f=h.extra;Ext.apply(g,h);if(f){delete f.type;Ext.apply(g,f);delete g.extra}g.association=e;if(e.owner===g.side){e.owner=g;g.owner=true}},processUpdate:function(){Ext.raise('Only the "many" for an association may be processed. "'+this.role+'" is not valid.')},processLoad:function(e,h,f,g){return f},checkMembership:Ext.emptyFn,adoptAssociated:function(d,f){var e=this.getAssociatedItem(d);if(e){f.adopt(e)}},createAssociationStore:function(s,n,t,m){var q=this,u=q.association,r=u.getFieldName(),p=u.isManyToMany,w=q.storeConfig,x=n.getId(),v={asynchronousLoad:false,model:q.cls,role:q,session:s,associatedEntity:n,disableMetaChangeEvent:true,pageSize:null,remoteFilter:true,trackRemoved:!s},o;if(p){v.filters=[{property:q.inverse.field,value:x,exactMatch:true}]}else{if(r){v.filters=[{property:r,value:x,exactMatch:true}];v.foreignKeyName=r}}if(w){Ext.apply(v,w)}o=Ext.Factory.store(v);q.onStoreCreate(o,s,x);if(r||(p&&s)){o.on({scope:q,add:"onAddToMany",remove:"onRemoveFromMany",clear:"onRemoveFromMany"})}if(t){o.loadData(t);o.complete=!!m}return o},onStoreCreate:Ext.emptyFn,getAssociatedStore:function(A,I,M,y,w){var i=this,C=i.getStoreName(),H=A[C],N=A.session,E=I&&I.reload,B=A.$source,G=false,L,K,z,x,D,F,J,v;if(!H){if(N){if(!y&&B){B=B[C];if(B&&!B.isLoading()){J=B;y=[];D=B.getData().items;for(z=0,x=D.length;z<x;++z){F=D[z];y.push(N.getRecord(F.self,F.id))}G=!!B.complete;L=true}}if(!L){v=!!y;y=i.findRecords(N,A,y,w);if(!v&&(!y||!y.length)){y=null}G=v}}else{G=!!(y&&y.length>0)}H=i.createAssociationStore(N,A,y,G);H.$source=J;if(!y&&(i.autoLoad||I)){E=true}A[C]=H}if(I){if(E||H.isLoading()){H.on("load",function(b,c,a,d){K=[b,d];M=M||I.scope||A;if(a){Ext.callback(I.success,M,K)}else{Ext.callback(I.failure,M,K)}K.push(a);Ext.callback(I,M,K);Ext.callback(I.callback,M,K)},null,{single:true})}else{K=[H,null];M=M||I.scope||A;Ext.callback(I.success,M,K);K.push(true);Ext.callback(I,M,K);Ext.callback(I.callback,M,K)}}if(E&&!H.isLoading()){H.load()}return H},getAssociatedItem:function(c){var d=this.isMany?this.getStoreName():this.getInstanceName();return c[d]||null},onDrop:Ext.emptyFn,getReaderRoot:function(){var b=this;return b.associationKey||(b.associationKey=b.association.schema.getNamer().readerRoot(b.role))},getReader:function(){var j=this,g=j.reader,i=j.cls,h=!j.associationKey,f=this.getReaderRoot();if(g&&!g.isReader){if(Ext.isString(g)){g={type:g}}Ext.applyIf(g,{model:i,rootProperty:f,useSimpleAccessors:h,type:j.defaultReaderType});g=j.reader=Ext.createByAlias("reader."+g.type,g)}return g},getInstanceName:function(){var b=this;return b.instanceName||(b.instanceName=b.association.schema.getNamer().instanceName(b.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName="$old"+this.getInstanceName())},getStoreName:function(){var b=this;return b.storeName||(b.storeName=b.association.schema.getNamer().storeName(b.role))},constructReader:function(n){var m=this,j=m.getReader(),l=m.cls,k=!m.associationKey,i=m.getReaderRoot(),p,o;if(!j){o=l.getProxy();if(o){p=o.getReader();j=new p.self();j.copyFrom(p);j.setRootProperty(i)}else{j=new n.self({model:l,useSimpleAccessors:k,rootProperty:i})}m.reader=j}return j},read:function(l,i,k,j){var h=this.constructReader(k),g=h.getRoot(i);if(g){return h.readRecords(g,j,this._internalReadOptions)}},getCallbackOptions:function(e,d,f){if(typeof e==="function"){e={callback:e,scope:d||f}}else{if(e){e=Ext.apply({},e);e.scope=d||e.scope||f}}return e},doGetFK:function(y,n,p){var s=this,o=s.cls,v=s.association.getFieldName(),q=s.getInstanceName(),r=y[q],z=n&&n.reload,w=r!==undefined&&!z,t=y.session,x,u;if(!w){if(t){x=y.get(v);if(x||x===0){w=t.peekRecord(o,x,true)&&!z;r=t.getRecord(o,x,false)}else{w=true;y[q]=r=null}}else{if(v){x=y.get(v);if(!x&&x!==0){w=true;y[q]=r=null}else{if(!r){r=o.createWithId(x)}}}else{w=true}}}else{if(r){w=!r.isLoading()}}if(w){if(n){u=[r,null];p=p||n.scope||y;Ext.callback(n.success,p,u);u.push(true);Ext.callback(n,p,u);Ext.callback(n.callback,p,u)}}else{y[q]=r;n=s.getCallbackOptions(n,p,y);r.load(n)}return r},doSetFK:function(z,r,n,o){var s=this,u=s.association.getFieldName(),q=s.getInstanceName(),v=z[q],x=s.inverse,w=x.setterName,t=z.session,p,y;if(r&&r.isEntity){if(v!==r){y=s.getOldInstanceName();z[y]=v;z[q]=r;if(v&&v.isEntity){v[x.getInstanceName()]=undefined}if(u){z.set(u,r.getId())}delete z[y];if(w){r[w](z)}}}else{p=(z.changingKey&&!x.isMany)||z.set(u,r);if(p&&v&&v.isEntity&&!v.isEqual(v.getId(),r)){z[q]=undefined;if(!x.isMany){v[x.getInstanceName()]=undefined}}}if(n){if(Ext.isFunction(n)){n={callback:n,scope:o||z}}return z.save(n)}}},1,0,0,0,0,0,[Ext.data.schema,"Role"],0));(Ext.cmd.derive("Ext.data.schema.Association",Ext.Base,{isOneToOne:false,isManyToOne:false,isManyToMany:false,owner:null,field:null,constructor:function(f){var h=this,g,e;Ext.apply(h,f);h.left=g=new h.Left(h,h.left);h.right=e=new h.Right(h,h.right);g.inverse=e;e.inverse=g},hasField:function(){return !!this.field},getFieldName:function(){var b=this.field;return b?b.name:""}},1,0,0,0,0,0,[Ext.data.schema,"Association"],0));(Ext.cmd.derive("Ext.data.schema.OneToOne",Ext.data.schema.Association,{isOneToOne:true,isToOne:true,kind:"one-to-one",Left:Ext.define(null,{extend:"Ext.data.schema.Role",onDrop:function(e,d){var f=this.getAssociatedItem(e);e[this.getInstanceName()]=null;if(f){f[this.inverse.getInstanceName()]=null}},createGetter:function(){var b=this;return function(){return b.doGet(this)}},createSetter:function(){var b=this;return function(a){return b.doSet(this,a)}},doGet:function(f){var e=this.getInstanceName(),h=f[e],g=f.session;if(!h&&g){}return h||null},doSet:function(g,h){var f=this.getInstanceName(),i=g[f],j=this.inverse.setterName;if(i!==h){g[f]=h;if(j){h[j](g)}}return i},read:function(i,m,h,l){var n=this,k=n.callParent([i,m,h,l]),j;if(k){j=k[0];if(j){j[n.inverse.getInstanceName()]=i;i[n.getInstanceName()]=j;delete i.data[n.role]}}}}),Right:Ext.define(null,{extend:"Ext.data.schema.Role",left:false,side:"right",createGetter:function(){var b=this;return function(a,d){return b.doGetFK(this,a,d)}},createSetter:function(){var b=this;return function(e,a,f){return b.doSetFK(this,e,a,f)}},onDrop:function(i,k){var g=this,l=g.association.field,h=g.getAssociatedItem(i),j;if(g.inverse.owner){if(k){j=i.get(l.name);if(j||j===0){h=k.getEntry(g.cls,j).record;if(h){h.drop()}}}else{if(h){h.drop()}}}if(l){i.set(l.name,null)}i[g.getInstanceName()]=null;if(h){h[g.inverse.getInstanceName()]=null}},onValueChange:function(k,l,m){var n=this,j=k[n.getOldInstanceName()]||n.getAssociatedItem(k),o=m||m===0,p=n.getInstanceName(),i=n.cls;k.changingKey=true;n.doSetFK(k,m);if(!o){k[p]=null}else{if(l&&i){k[p]=l.peekRecord(i,m)||undefined}}if(n.inverse.owner&&j){n.association.schema.queueKeyCheck(j,n)}k.changingKey=false},checkKeyForDrop:function(d){var c=this.inverse.getAssociatedItem(d);if(!c){d.drop()}},read:function(A,z,p,y){var v=this,r=v.callParent([A,z,p,y]),u,s,q,w,t,C,B,D,x;if(r){u=r[0];s=v.association.field;if(s){q=s.name}w=A.session;x=A.data;if(u){if(w){t=w.getRefs(u,this.inverse,true);D=(t&&t[A.id])||(x[q]===undefined)}else{D=true}if(D){if(s){B=x[q];C=u.id;if(B!==C){x[q]=C;if(w){w.updateReference(A,s,C,B)}}}u[v.inverse.getInstanceName()]=A;A[v.getInstanceName()]=u}delete x[v.role]}}}})},0,0,0,0,0,0,[Ext.data.schema,"OneToOne"],0));(Ext.cmd.derive("Ext.data.schema.ManyToOne",Ext.data.schema.Association,{isManyToOne:true,isToOne:true,kind:"many-to-one",Left:Ext.define(null,{extend:"Ext.data.schema.Role",isMany:true,onDrop:function(l,n){var m=this,i=m.getAssociatedItem(l),q,o,p,k,r;if(i){q=i.removeAll();if(q&&m.inverse.owner){for(p=0,o=q.length;p<o;++p){q[p].drop()}}i.destroy();l[m.getStoreName()]=null}else{if(n){q=n.getRefs(l,m);if(q){for(r in q){q[r].drop()}}}}},processUpdate:function(m,q){var l=this,o=l.inverse.cls,n=q.R,r,k,j,p;if(n){for(r in n){k=m.peekRecord(o,r);if(k){p=m.getEntityList(l.cls,n[r]);j=l.getAssociatedItem(k);if(j){j.loadData(p);j.complete=true}else{k[l.getterName](null,null,p)}}else{m.onInvalidAssociationEntity(o,r)}}}},findRecords:function(s,r,w,i){var t=w,q=s.getRefs(r,this,true),p=this.association.field,o=p.name,x,y,v,u,z;if(!r.phantom){t=[];if(q||i){if(w){z={};for(v=0,u=w.length;v<u;++v){x=w[v];y=x.id;if(q&&q[y]){t.push(x)}else{if(i&&x.data[o]===undefined){t.push(x);x.data[o]=r.id;s.updateReference(x,p,r.id,undefined)}}z[y]=true}}if(q){for(y in q){if(!z||!z[y]){t.push(q[y])}}}}}return t},processLoad:function(f,g,h,i){var j=h;if(i){j=this.findRecords(i,g,h,true)}this.onLoadMany(g,j,i);return j},adoptAssociated:function(g,i){var l=this.getAssociatedItem(g),j,k,h;if(l){l.setSession(i);j=l.getData().items;for(k=0,h=j.length;k<h;++k){i.adopt(j[k])}}},createGetter:function(){var b=this;return function(a,f,e){return b.getAssociatedStore(this,a,f,e,b,true)}},createSetter:null,onAddToMany:function(d,c){this.syncFK(c,d.getAssociatedEntity(),false)},onLoadMany:function(o,t,p){var i=this.inverse.getInstanceName(),w=o.getId(),n=this.association.field,r,q,u,v,s,x;if(n){for(r=0,q=t.length;r<q;++r){u=t[r];u[i]=o;if(n){x=n.name;s=u.data;v=s[x];if(v!==w){s[x]=w;if(p){p.updateReference(u,n,w,v)}}}}}},onRemoveFromMany:function(d,c){this.syncFK(c,d.getAssociatedEntity(),true)},read:function(n,t,i,r){var o=this,l=o.inverse.getInstanceName(),s=o.callParent([n,t,i,r]),m,p,q;if(s){m=n[o.getterName](null,null,s);delete n.data[o.role];s=m.getData().items;for(q=0,p=s.length;q<p;++q){s[q][l]=n}}},syncFK:function(t,o,n){var p=this.association.getFieldName(),r=this.inverse,s=r.setterName,i=r.getInstanceName(),q=t.length,w=o.getId(),x,u,v;while(q-->0){u=t[q];x=!u.isEqual(w,u.get(p));v=n?null:o;if(x!==n){u.changingKey=true;u[s](v);u.changingKey=false}else{u[i]=v}}}}),Right:Ext.define(null,{extend:"Ext.data.schema.Role",left:false,side:"right",onDrop:function(f,d){var e=this.association.field;if(e){f.set(e.name,null)}f[this.getInstanceName()]=null},createGetter:function(){var b=this;return function(a,d){return b.doGetFK(this,a,d)}},createSetter:function(){var b=this;return function(a,f,e){return b.doSetFK(this,a,f,e)}},checkMembership:function(h,g){var e=this.association.field,f;f=this.getSessionStore(h,g.get(e.name));if(f&&!f.contains(g)){f.add(g)}},onValueChange:function(y,u,A,B){var t=this,q=t.getInstanceName(),i=t.cls,z,p,r,x,w,s,v;if(!y.changingKey){z=A||A===0;if(!z){y[q]=null}if(u){r=t.getSessionStore(u,B);if(r){r.remove(y)}if(z){r=t.getSessionStore(u,A);if(r&&!r.isLoading()){r.add(y)}if(i){v=u.peekRecord(i,A)}y[q]=v||undefined}}else{p=y.joined;if(p){for(x=0,w=p.length;x<w;++x){r=p[x];if(r.isStore){s=r.getAssociatedEntity();if(s&&s.self===t.cls&&s.getId()===B){r.remove(y)}}}}}}if(t.owner&&A===null){t.association.schema.queueKeyCheck(y,t)}},checkKeyForDrop:function(c){var d=this.association.field;if(c.get(d.name)===null){c.drop()}},getSessionStore:function(h,e){var f=this.cls,g;if(f){g=h.peekRecord(f,e);if(g){return this.inverse.getAssociatedItem(g)}}},read:function(i,l,g,j){var k=this.callParent([i,l,g,j]),h;if(k){h=k[0];if(h){i[this.getInstanceName()]=h;delete i.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(q,p,w){var o=q.getMatrixSlice(this.inverse,p.id),v=o.members,r=[],i=this.cls,z,t,s,y,u,x;if(w){z={};for(t=0,s=w.length;t<s;++t){x=w[t];y=x.id;u=v[y];if(!(u&&u[2]===-1)){r.push(x)}z[y]=true}}for(y in v){u=v[y];if(!z||!z[y]&&(u&&u[2]!==-1)){x=q.peekRecord(i,y);if(x){r.push(x)}}}return r},processLoad:function(f,g,h,i){var j=h;if(i){j=this.findRecords(i,g,h);this.onAddToMany(f,j,true)}return j},processUpdate:function(m,q){var l=this,o=l.inverse.cls,n=q.R,r,k,j,p;if(n){for(r in n){k=m.peekRecord(o,r);if(k){p=m.getEntityList(l.cls,n[r]);j=l.getAssociatedItem(k);if(j){j.loadData(p);j.complete=true}else{k[l.getterName](null,null,p)}}else{m.onInvalidAssociationEntity(o,r)}}}l.processMatrixBlock(m,q.C,1);l.processMatrixBlock(m,q.D,-1)},checkMembership:function(s,r){var q=s.getMatrix(this.association,true),t,w,v,o,n,z,x,u,y,p;if(!q){return}t=this.left?q.right:q.left;w=t.inverse.role.cls;v=this.inverse;n=t.slices;if(n){o=n[r.id];if(o){x=o.members;for(z in x){u=x[z];if(u[2]!==-1){y=s.peekRecord(w,z);if(y){p=v.getAssociatedItem(y);if(p){p.matrixUpdate=1;p.add(r);p.matrixUpdate=0}}}}}}},onStoreCreate:function(f,i,h){var j=this,g;if(i){g=i.getMatrixSlice(j.inverse,h);g.attach(f);g.notify=j.onMatrixUpdate;g.scope=j}},processMatrixBlock:function(l,m,n){var i=this.inverse,h=this.digitRe,k,j;if(m){for(j in m){if(h.test(j)){j=parseInt(j,10)}k=l.getMatrixSlice(i,j);k.update(m[j],n)}}},createGetter:function(){var b=this;return function(a,f,e){return b.getAssociatedStore(this,a,f,e,false)}},onAddToMany:function(e,f,d){if(!e.matrixUpdate){e.matrixUpdate=1;e.matrix.update(f,d===true?0:1);e.matrixUpdate=0}},onRemoveFromMany:function(c,d){if(!c.matrixUpdate){c.matrixUpdate=1;c.matrix.update(d,-1);c.matrixUpdate=0}},read:function(h,k,g,j){var l=this,i=l.callParent([h,k,g,j]);if(i){h[l.getterName](null,null,i);delete h.data[l.role]}},onMatrixUpdate:function(l,j,m){var i=l.store,h,k,n;if(i&&!i.loading&&!i.matrixUpdate){i.matrixUpdate=1;h=i.indexOfId(j);if(m<0){if(h>=0){i.remove([h])}}else{if(h<0){n=i.getSession().getEntry(this.type,j);k=n&&n.record;if(k){i.add(k)}}}i.matrixUpdate=0}},adoptAssociated:function(g,i){var k=this.getAssociatedItem(g),l,j,h;if(k){k.setSession(i);this.onStoreCreate(k,i,g.getId());l=k.getData().items;for(j=0,h=l.length;j<h;++j){i.adopt(l[j])}}}},function(){var b=this;Ext.ClassManager.onCreated(function(){Ext.data.schema.ManyToMany.prototype.Right=Ext.define(null,{extend:b,left:false,side:"right"})},null,"Ext.data.schema.ManyToMany")})},0,0,0,0,0,0,[Ext.data.schema,"ManyToMany"],0));(Ext.cmd.derive("Ext.util.Inflector",Ext.Base,{singleton:true,plurals:[[(/(quiz)$/i),"$1zes"],[(/^(ox)$/i),"$1en"],[(/([m|l])ouse$/i),"$1ice"],[(/(matr|vert|ind)ix|ex$/i),"$1ices"],[(/(x|ch|ss|sh)$/i),"$1es"],[(/([^aeiouy]|qu)y$/i),"$1ies"],[(/(hive)$/i),"$1s"],[(/(?:([^f])fe|([lr])f)$/i),"$1$2ves"],[(/sis$/i),"ses"],[(/([ti])um$/i),"$1a"],[(/(buffal|tomat|potat)o$/i),"$1oes"],[(/(bu)s$/i),"$1ses"],[(/(alias|status|sex)$/i),"$1es"],[(/(octop|vir)us$/i),"$1i"],[(/(ax|test)is$/i),"$1es"],[(/^(p)erson$/i),"$1eople"],[(/^(m)an$/i),"$1en"],[(/(.*)(child)(ren)?$/i),"$1$2ren"],[(/s$/i),"s"],[(/$/),"s"]],singulars:[[(/(address)$/i),"$1"],[(/(quiz)zes$/i),"$1"],[(/(matr)ices$/i),"$1ix"],[(/(vert|ind)ices$/i),"$1ex"],[(/^(ox)en/i),"$1"],[(/(alias|status)es$/i),"$1"],[(/(octop|vir)i$/i),"$1us"],[(/(cris|ax|test)es$/i),"$1is"],[(/(shoe)s$/i),"$1"],[(/(o)es$/i),"$1"],[(/(bus)es$/i),"$1"],[(/([m|l])ice$/i),"$1ouse"],[(/(x|ch|ss|sh)es$/i),"$1"],[(/(m)ovies$/i),"$1ovie"],[(/(s)eries$/i),"$1eries"],[(/([^aeiouy]|qu)ies$/i),"$1y"],[(/([lr])ves$/i),"$1f"],[(/(tive)s$/i),"$1"],[(/(hive)s$/i),"$1"],[(/([^f])ves$/i),"$1fe"],[(/(^analy)ses$/i),"$1sis"],[(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i),"$1$2sis"],[(/([ti])a$/i),"$1um"],[(/(n)ews$/i),"$1ews"],[(/(p)eople$/i),"$1erson"],[(/s$/i),""]],uncountable:["sheep","fish","series","species","money","rice","information","equipment","grass","mud","offspring","deer","means"],singular:function(c,d){this.singulars.unshift([c,d])},plural:function(c,d){this.plurals.unshift([c,d])},clearSingulars:function(){this.singulars=[]},clearPlurals:function(){this.plurals=[]},isTransnumeral:function(b){return Ext.Array.indexOf(this.uncountable,b)!=-1},pluralize:function(i){if(this.isTransnumeral(i)){return i}var j=this.plurals,k=j.length,h,l,g;for(g=0;g<k;g++){h=j[g];l=h[0];if(l==i||(l.test&&l.test(i))){return i.replace(l,h[1])}}return i},singularize:function(i){if(this.isTransnumeral(i)){return i}var j=this.singulars,k=j.length,h,l,g;for(g=0;g<k;g++){h=j[g];l=h[0];if(l==i||(l.test&&l.test(i))){return i.replace(l,h[1])}}return i},classify:function(b){return Ext.String.capitalize(this.singularize(b))},ordinalize:function(g){var e=parseInt(g,10),h=e%10,f=e%100;if(11<=f&&f<=13){return g+"th"}else{switch(h){case 1:return g+"st";case 2:return g+"nd";case 3:return g+"rd";default:return g+"th"}}}},0,0,0,0,0,0,[Ext.util,"Inflector"],function(){var c={alumnus:"alumni",cactus:"cacti",focus:"foci",nucleus:"nuclei",radius:"radii",stimulus:"stimuli",ellipsis:"ellipses",paralysis:"paralyses",oasis:"oases",appendix:"appendices",index:"indexes",beau:"beaux",bureau:"bureaux",tableau:"tableaux",woman:"women",child:"children",man:"men",corpus:"corpora",criterion:"criteria",curriculum:"curricula",genus:"genera",memorandum:"memoranda",phenomenon:"phenomena",foot:"feet",goose:"geese",tooth:"teeth",antenna:"antennae",formula:"formulae",nebula:"nebulae",vertebra:"vertebrae",vita:"vitae"},d;for(d in c){if(c.hasOwnProperty(d)){this.plural(d,c[d]);this.singular(c[d],d)}}}));(Ext.cmd.derive("Ext.data.schema.Namer",Ext.Base,{isNamer:true,capitalize:function(b){return Ext.String.capitalize(b)},fieldRole:function(c){var d=c.match(this.endsWithIdRe,"");if(d){c=c.substr(0,c.length-(d[1]||d[2]).length)}return this.apply("uncapitalize",c)},idField:function(b){return this.apply("uncapitalize,singularize",b)+"Id"},instanceName:function(b){return this.apply("underscore",b)},multiRole:function(b){return this.apply("undotted,uncapitalize,pluralize",b)},pluralize:function(b){return Ext.util.Inflector.pluralize(b)},readerRoot:function(b){return this.apply("uncapitalize",b)},singularize:function(b){return Ext.util.Inflector.singularize(b)},storeName:function(b){return this.apply("underscore",b)},uncapitalize:function(b){return Ext.String.uncapitalize(b)},underscore:function(b){return"_"+b},uniRole:function(b){return this.apply("undotted,uncapitalize,singularize",b)},undotted:function(d){if(d.indexOf(".")<0){return d}var f=d.split("."),e=f.length;while(e-->1){f[e]=this.apply("capitalize",f[e])}return f.join("")},getterName:function(c){var d=c.role;if(c&&c.isMany){return d}return"get"+this.apply("capitalize",d)},inverseFieldRole:function(l,k,n,i){var m=this,j=m.apply(k?"uniRole":"multiRole",l),o=m.apply("pluralize",n),p=m.apply("undotted,pluralize",i);if(o.toLowerCase()!==p.toLowerCase()){j=n+m.apply("capitalize",j)}return j},manyToMany:function(h,i,g){var j=this,f=j.apply("undotted,capitalize,singularize",i)+j.apply("undotted,capitalize,pluralize",g);if(h){f=j.apply("capitalize",h+f)}return f},manyToOne:function(g,e,f,h){return this.apply("capitalize,singularize",f)+this.apply("capitalize",e)},matrixRole:function(f,d){var e=this.apply(f?"multiRole,capitalize":"multiRole",d);return f?f+e:e},oneToOne:function(g,e,f,h){return this.apply("undotted,capitalize,singularize",f)+this.apply("capitalize",e)},setterName:function(b){return"set"+this.apply("capitalize",b.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(n,p){var k=this,q=k.cache,i=q[p]||(q[p]={}),l=i[n],m,o,r;if(!l){if(n.indexOf(",")<0){l=k[n](p)}else{o=(r=n.split(",")).length;l=p;for(m=0;m<o;++m){l=k.apply(r[m],l)}}i[n]=l}return l}},0,0,0,0,["namer.default"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.schema,"Namer"],0));(Ext.cmd.derive("Ext.data.schema.Schema",Ext.Base,{aliasPrefix:"schema.",isSchema:true,type:"default",statics:{instances:{},get:function(m){var k=this,n=k.instances,j="default",h=m&&Ext.isString(m),i,l;if(m){if(m.isSchema){return m}j=h?m:(m.id||j)}if(!(i=n[j])){n[j]=i=k.create(m);i.id=j}else{if(m&&!h){l=Ext.merge({},i.config);Ext.merge(l,m);i.setConfig(l);i.config=l}}return i},lookupEntity:function(h){var k=null,i=this.instances,l,g,j;if(h){if(h.isEntity){k=h.self}else{if(Ext.isFunction(h)){k=h}else{if(Ext.isString(h)){k=Ext.ClassManager.get(h);if(k&&(!k.prototype||!k.prototype.isEntity)){k=null}if(!k){for(g in i){j=i[g];l=j.getEntity(h);if(l){if(k){Ext.raise('Ambiguous entity name "'+h+'". Defined by schema "'+k.schema.type+'" and "'+g+'"')}k=l}}}if(!k){Ext.raise('No such Entity "'+h+'".')}}}}}return k}},assocCount:0,entityCount:0,config:{defaultIdentifier:null,keyCheckDelay:10,namer:"default",namespace:null,proxy:{type:"ajax",url:"{prefix}/{entityName}"},urlPrefix:""},onClassExtended:function(e,f){var d=f.alias;if(d&&!f.type){if(!Ext.isString(d)){d=d[0]}e.prototype.type=d.substring(this.prototype.aliasPrefix.length)}},constructor:function(b){this.initConfig(b);this.clear()},applyDefaultIdentifier:function(b){return b&&Ext.Factory.dataIdentifier(b)},applyNamer:function(c){var d=Ext.data.schema.Namer.create(c);d.schema=this;return d},applyNamespace:function(c){if(c){var d=c.length-1;if(c.charAt(d)!=="."){c+="."}}return c},applyProxy:function(b){return Ext.util.ObjectTemplate.create(b)},eachAssociation:function(g,h){var e=this.associations,f;for(f in e){if(e.hasOwnProperty(f)){if(g.call(h,f,e[f])===false){break}}}},eachEntity:function(h,e){var g=this.entities,f;for(f in g){if(g.hasOwnProperty(f)){if(h.call(e,f,g[f].cls)===false){break}}}},getAssociation:function(d){var c=this.associations[d];return c||null},getEntity:function(d){var c=this.entityClasses[d]||this.entities[d];return(c&&c.cls)||null},getEntityName:function(f){var g=this.getNamespace(),h,e;if(typeof f==="string"){e=f}else{e=f.$className||null}if(e){if(g){h=g.length;if(e.substring(0,h)!==g){return e}}if(h){e=e.substring(h)}}return e},hasAssociations:function(b){b=b.entityName||b;return !!this.associationEntityMap[b]},hasEntity:function(d){var c=this.getEntityName(d);return !!(this.entities[c]||this.entityClasses[c])},addMatrix:function(x,D,G,H,t){var s=this,z=s.getNamer(),v=s.associations,J=s.entities,E=H.type,u=t.type,F=H.field||z.apply("idField",E),B=t.field||z.apply("idField",u),I=H.role||z.matrixRole(G,E),y=t.role||z.matrixRole(G,u),w,C,A;C=J[E]||(J[E]={cls:null,name:E,associations:{}});A=J[u]||(J[u]={cls:null,name:u,associations:{}});++s.assocCount;v[D]=w=new Ext.data.schema.ManyToMany({name:D,schema:s,definedBy:x,left:{cls:C.cls,type:E,role:I,field:F,associationKey:H.associationKey},right:{cls:A.cls,type:u,role:y,field:B,associationKey:t.associationKey}});C.associations[w.right.role]=w.right;A.associations[w.left.role]=w.left;if(C.cls){s.associationEntityMap[C.cls.entityName]=true}if(A.cls){s.associationEntityMap[A.cls.entityName]=true}s.decorateModel(w)},addReference:function(x,N,z,M){var u=this,B=u.getNamer(),K=u.entities,w=u.associations,C=x.entityName,J=z.association,y=!!z.legacy,F=z.child,D=z.parent,A=z.role,v=z.type||D||F,E=z.inverse,G=Ext.isString(E)?{role:E}:E,H=G&&G.role,L,I;if(!A){if(y){A=B.apply("uncapitalize",v)}else{A=B.apply("fieldRole",N.name)}}if(!H){H=B.inverseFieldRole(C,M,A,v)}if(!J){if(M){J=B.oneToOne(x,H,v,A)}else{J=B.manyToOne(x,H,v,A)}}L=K[v]||(K[v]={cls:null,name:v,associations:{}});I=M?Ext.data.schema.OneToOne:Ext.data.schema.ManyToOne;J=new I({name:J,owner:F?"left":(D?"right":null),definedBy:x,schema:u,field:N,nullable:N?!!N.allowBlank:true,legacy:z.legacy,left:{cls:x,type:C,role:H,extra:G},right:{cls:L.cls,type:v,role:A,extra:z}});x.associations[A]=J.right;L.associations[H]=J.left;if(N){N.reference=J.right;x.references.push(N)}++u.assocCount;u.associationEntityMap[C]=true;if(L.cls){u.associationEntityMap[L.cls.entityName]=true}w[J.name]=J;if(J.right.cls){u.decorateModel(J)}},privates:{addEntity:function(s){var o=this,p=o.entities,m=s.entityName,i=p[m],q=s.fields,t,n,r,u,v;if(!i){p[m]=i={name:m,associations:{}}}else{t=i.associations;for(v in t){t[v].inverse.cls=s;o.associationEntityMap[m]=true;o.decorateModel(t[v].association)}}i.cls=s;s.prototype.associations=s.associations=i.associations;o.entityClasses[s.$className]=i;++o.entityCount;for(r=0,u=q.length;r<u;++r){n=q[r];if(n.reference){o.addReferenceDescr(s,n)}}},addMatrices:function(i,h){var j=this,g,k,l;if(Ext.isString(h)){j.addMatrixDescr(i,null,h)}else{if(h[0]){for(g=0,k=h.length;g<k;++g){j.addMatrixDescr(i,null,h[g])}}else{for(l in h){j.addMatrixDescr(i,l,h[l])}}}},addMatrixDescr:function(r,v,q){var p=this,n=r.entityName,s=p.associations,o=p.getNamer(),t=q.left,l=q.right,m,u;if(Ext.isString(q)){if(q.charAt(0)==="#"){t={type:n};l={type:q.substring(1)}}else{if(q.charAt(m=q.length-1)==="#"){t={type:q.substring(0,m)};l={type:n}}else{if(o.apply("multiRole",n)<o.apply("multiRole",q)){t={type:n};l={type:q}}else{t={type:q};l={type:n}}}}}else{u=q.relation;if(t||(!l&&o.apply("multiRole",n)<o.apply("multiRole",q.type))){if(!t||t===true){t={type:n}}else{t=Ext.apply({type:n},t)}l=q}else{if(!l||l===true){l={type:n}}else{l=Ext.apply({type:n},l)}t=q}}if(!v){v=o.manyToMany(u,t.type,l.type)}if(!(v in s)){p.addMatrix(r,v,u,t,l)}},addReferenceDescr:function(e,g){var f=this,h=g.$reference;if(Ext.isString(h)){h={type:h}}else{h=Ext.apply({},h)}if(h.legacy){if(h.single){f.addLegacySingle(e,h)}else{f.addLegacyHasMany(e,h)}}else{f.addReference(e,g,h,g.unique)}},addPending:function(g,j,h,f){var i=this.pending;if(!i[g]){i[g]=[]}i[g].push([j,h,f])},addLegacyBelongsTo:function(d,c){this.addLegacySingle(d,c)},addLegacyHasOne:function(d,c){this.addLegacySingle(d,c)},addLegacySingle:function(j,h){var f,g,i;h=this.constructLegacyAssociation(j,h);h.single=true;g=h.type;f=h.foreignKey||(g.toLowerCase()+"_id");i=j.getField(f);if(i){i.$reference=h}this.addReference(j,i,h,true)},addLegacyHasMany:function(u,p){var o=this,s=o.entities,v=o.pending,x=p.associationKey,m,w,n,q,r,t;p=this.constructLegacyAssociation(u,p);w=p.type;q=s[w];if(q&&q.cls){p.type=u.entityName;r=p.foreignKey||(p.type.toLowerCase()+"_id");m=q.cls;n=m.getField(r);p.inverse=p||{};t=p.name;if(t||x){if(t){p.inverse.role=t}if(x){p.inverse.associationKey=x}}if(n){n.$reference=p}o.addReference(m,n,p,false)}else{if(!v[w]){v[w]=[]}v[w].push([u,p])}},constructLegacyAssociation:function(d,f){if(Ext.isString(f)){f={model:f}}f.legacy=true;f.type=this.getEntityName(f.model);var e=f.associatedName||f.name;if(e){f.role=e}return f},afterLegacyAssociations:function(g){var i=this.pending,l=g.entityName,j=i[l],k,h;if(j){for(k=0,h=j.length;k<h;++k){this.addLegacyHasMany.apply(this,j[k])}delete i[l]}},clear:function(d){var e=this,f=e.timer;delete e.setConfig;if(f){window.clearTimeout(f);e.timer=null}e.associations={};e.associationEntityMap={};e.entities={};e.entityClasses={};e.pending={};e.assocCount=e.entityCount=0;if(d){e.setNamespace(null)}},constructProxy:function(g){var e=this,h=Ext.Object.chain(g),f=e.getProxy();h.schema=e;h.prefix=e.getUrlPrefix();return f.apply(h)},applyDecoration:function(j){var l=this,i=j.inverse.cls,k=l.getNamer(),n,h,m;if(i&&!j.decorated){j.decorated=true;m=i.prototype;if(!(n=j.getterName)){j.getterName=n=k.getterName(j)}m[n]=j.createGetter();if(j.createSetter){if(!(h=j.setterName)){j.setterName=h=k.setterName(j)}m[h]=j.createSetter()}}},decorateModel:function(b){this.applyDecoration(b.left);this.applyDecoration(b.right)},processKeyChecks:function(m){var k=this,h=k.keyCheckQueue,j=k.timer,i,n,l;if(j){window.clearTimeout(j);k.timer=null}if(!h){return}do{h=k.keyCheckQueue;k.keyCheckQueue=[];for(n=0,i=h.length;n<i;++n){l=h[n];l.role.checkKeyForDrop(l.record)}}while(m&&k.keyCheckQueue.length)},queueKeyCheck:function(g,h){var j=this,f=j.keyCheckQueue,i=j.timer;if(!f){j.keyCheckQueue=f=[]}f.push({record:g,role:h});if(!i){j.timer=i=Ext.Function.defer(j.processKeyChecks,j.getKeyCheckDelay(),j)}},rankEntities:function(){var j=this,i=j.entities,h=Ext.Object.getKeys(i),k=h.length,l,g;j.nextRank=1;h.sort();for(g=0;g<k;++g){l=i[h[g]].cls;if(!l.rank){j.rankEntity(l)}}},rankEntity:function(j){var f=j.associations,h,i,g;for(g in f){i=f[g];if(!i.left&&i.association.field){h=i.cls;if(!h.rank){this.rankEntity(h)}}}j.rank=this.nextRank++}}},1,0,0,0,["schema.default"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.schema,"Schema"],0));(Ext.cmd.derive("Ext.data.AbstractStore",Ext.Base,{factoryConfig:{defaultType:"store",type:"store"},$configPrefixed:false,$configStrict:false,config:{filters:null,autoDestroy:undefined,storeId:null,statefulFilters:false,sorters:null,remoteSort:{lazy:true,$value:false},remoteFilter:{lazy:true,$value:false},groupField:undefined,groupDir:"ASC",grouper:null,pageSize:25},currentPage:1,loading:false,isStore:true,updating:0,constructor:function(d){var f=this,e;f.isInitializing=true;f.mixins.observable.constructor.call(f,d);f.isInitializing=false;e=f.getStoreId();if(!e&&(d&&d.id)){f.setStoreId(e=d.id)}if(e){Ext.data.StoreManager.register(f)}},getCount:function(){return this.getData().getCount()},rangeCached:function(c,d){return this.getData().getCount()>=Math.max(c,d)},find:function(m,n,l,k,j,o){var p=!k,i=!!(p&&o);return this.getData().findIndex(m,n,l,p,i,!j)},findRecord:function(){var c=this,d=c.find.apply(c,arguments);return d!==-1?c.getAt(d):null},findExact:function(d,e,f){return this.getData().findIndexBy(function(a){return a.isEqual(a.get(d),e)},this,f)},findBy:function(d,e,f){return this.getData().findIndexBy(d,e,f)},getAt:function(b){return this.getData().getAt(b)||null},getRange:function(g,e,h){var f=this.getData().getRange(g,Ext.isNumber(e)?e+1:e);if(h&&h.callback){h.callback.call(h.scope||this,f,g,e,h)}return f},getFilters:function(c){var d=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this);if(!d&&c!==false){this.setFilters([]);d=(arguments.callee.$previous||Ext.Base.prototype.getFilters).call(this)}return d},applyFilters:function(d,e){var f;if(!e){e=this.createFiltersCollection();f=true}e.add(d);if(f){this.onRemoteFilterSet(e,this.getRemoteFilter())}return e},getSorters:function(c){var d=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this);if(!d&&c!==false){this.setSorters([]);d=(arguments.callee.$previous||Ext.Base.prototype.getSorters).call(this)}return d},applySorters:function(d,e){var f;if(!e){e=this.createSortersCollection();f=true}e.add(d);if(f){this.onRemoteSortSet(e,this.getRemoteSort())}return e},filter:function(d,f,e){if(Ext.isString(d)){d={property:d,value:f}}this.suppressNextFilter=!!e;this.getFilters().add(d);this.suppressNextFilter=false},removeFilter:function(f,g){var h=this,e=h.getFilters();h.suppressNextFilter=!!g;if(f instanceof Ext.util.Filter){e.remove(f)}else{e.removeByKey(f)}h.suppressNextFilter=false},updateRemoteSort:function(b){this.onRemoteSortSet(this.getSorters(false),b)},updateRemoteFilter:function(b){this.onRemoteFilterSet(this.getFilters(false),b)},addFilter:function(c,d){this.suppressNextFilter=!!d;this.getFilters().add(c);this.suppressNextFilter=false},filterBy:function(c,d){this.getFilters().add({filterFn:c,scope:d||this})},clearFilter:function(f){var d=this,e=d.getFilters(false);if(!e||e.getCount()===0){return}d.suppressNextFilter=!!f;e.removeAll();d.suppressNextFilter=false},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var b=this.getSorters(false);return !!(b&&b.length>0)||this.isGrouped()},addFieldTransform:function(h){if(h.getTransform()){return}var i=h.getProperty(),j=this.getModel(),g,f;if(j){g=j.getField(i);f=g?g.getSortType():null}if(f&&f!==Ext.identityFn){h.setTransform(f)}},beginUpdate:function(){if(!this.updating++){this.fireEvent("beginupdate")}},endUpdate:function(){if(this.updating&&!--this.updating){this.fireEvent("endupdate");this.onEndUpdate()}},getState:function(){var l=this,k=[],m=l.getFilters(),h=l.getGrouper(),j,n,i;l.getSorters().each(function(a){k[k.length]=a.getState();n=true});if(l.statefulFilters&&l.saveStatefulFilters){n=true;j=[];m.each(function(a){j[j.length]=a.getState()})}if(h){n=true}if(n){i={};if(k.length){i.sorters=k}if(j){i.filters=j}if(h){i.grouper=h.getState()}}return i},applyState:function(h){var j=this,f=h.sorters,g=h.filters,i=h.grouper;if(f){j.getSorters().replaceAll(f)}if(g){j.saveStatefulFilters=true;j.getFilters().replaceAll(g)}if(i){j.setGrouper(i)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var b=this;if(b.getStoreId()){Ext.data.StoreManager.unregister(b)}b.callParent();b.onDestroy()},sort:function(h,e,g){var f=this;if(arguments.length===0){if(f.getRemoteSort()){f.load()}else{f.forceLocalSort()}}else{f.getSorters().addSort(h,e,g)}},onBeforeCollectionSort:function(d,c){if(c){this.fireEvent("beforesort",this,c.getRange())}},onSorterEndUpdate:function(){var d=this,c;c=d.getSorters(false);if(d.settingGroups||!c){return}c=c.getRange();if(c.length){if(d.getRemoteSort()){d.load({callback:function(){d.fireEvent("sort",d,c)}})}else{d.fireEvent("datachanged",d);d.fireEvent("refresh",d);d.fireEvent("sort",d,c)}}else{d.fireEvent("sort",d,c)}},onFilterEndUpdate:function(){var c=this,d=c.suppressNextFilter;if(c.getRemoteFilter()){c.currentPage=1;if(!d){c.load()}}else{if(!d){c.fireEvent("datachanged",c);c.fireEvent("refresh",c)}}if(c.trackStateChanges){c.saveStatefulFilters=true}c.fireEvent("filterchange",c,c.getFilters().getRange())},updateGroupField:function(b){if(b){this.setGrouper({property:b,direction:this.getGroupDir()})}else{this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(g,i){var f=this,j=f.getSorters(false),h=g||(j&&j.length);if(g&&typeof g==="string"){g={property:g,direction:i||f.getGroupDir()}}f.settingGroups=true;f.getData().setGrouper(g);delete f.settingGroups;if(h){if(f.getRemoteSort()){f.load({scope:f,callback:f.fireGroupChange})}else{f.fireEvent("datachanged",f);f.fireEvent("refresh",f);f.fireGroupChange()}}else{f.fireGroupChange()}},fireGroupChange:function(){if(!this.destroyed){this.fireEvent("groupchange",this,this.getGrouper())}},clearGrouping:function(){this.group(null)},getGroupField:function(){var d=this.getGrouper(),c="";if(d){c=d.getProperty()}return c},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(b){this.group(b);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(d,c){if(d){d[c?"on":"un"]("endupdate",this.onFilterEndUpdate,this)}},onRemoteSortSet:function(d,f){var e=this;if(d){d[f?"on":"un"]("endupdate",e.onSorterEndUpdate,e);e.getData()[f?"un":"on"]("beforesort",e.onBeforeCollectionSort,e)}}},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(b){this.initConfig(b);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(s){var p=this,r=s.fields,u=s.data,n,o,i,t,q,v,w,x;for(t=0,q=r.length;t<q;++t){o=r[t];x=o.name;w=u[x];if(o.validate&&!o.validate.$nullFn){n=p.length;v=o.validate(w,null,p,s);if(n===p.length&&v!==true){p.add(x,v)}}}return p},add:function(g,k){var l=this,h=Ext.data.field.Field.defaultInvalidMessage,i=g,j;if(Ext.isString(g)){i=new Ext.data.Error({field:g,message:k||h})}else{if(!(i.isError)){i=new Ext.data.Error({field:i.field||i.name,message:i.error||i.message||i.msg||h})}g=i.field}j=l.get(g);if(j){if(Ext.isArray(j)){j.push(i);return j}l.removeAtKey(g);i=[j,i];i.field=g;i=[i]}return Ext.util.MixedCollection.prototype.add.call(this,i)},getKey:function(b){return b.field},isValid:function(){return this.length===0},getByField:function(c){var d=this.get(c);if(d&&!Ext.isArray(d)){d=[d]}return d||[]}},0,0,0,0,0,0,[Ext.data,"ErrorCollection",Ext.data,"Errors"],0));(Ext.cmd.derive("Ext.data.operation.Operation",Ext.Base,{alternateClassName:"Ext.data.Operation",isOperation:true,config:{synchronous:false,url:"",params:undefined,callback:undefined,scope:undefined,resultSet:null,response:null,request:null,records:null,id:undefined,proxy:null,batch:null,recordCreator:null,internalCallback:null,internalScope:null},order:0,foreignKeyDirection:1,started:false,running:false,complete:false,success:undefined,exception:false,error:undefined,idPrefix:"ext-operation-",constructor:function(d){var c=d&&d.scope;this.initConfig(d);if(d){d.scope=c}if(c){this.setScope(c);this.initialConfig.scope=c}this._internalId=Ext.id(this,this.idPrefix)},getAction:function(){return this.action},execute:function(){var c=this,d;delete c.error;delete c.success;c.complete=c.exception=false;c.setStarted();c.request=d=c.doExecute();if(d){d.setOperation(c)}return d},doExecute:Ext.emptyFn,abort:function(){var c=this,d=c.request;if(c.running&&d){c.getProxy().abort(d);c.request=null}},process:function(f,i,g,h){var j=this;h=h!==false;j.setResponse(g);j.setResultSet(f);if(f.getSuccess()){j.doProcess(f,i,g);j.setSuccessful(h)}else{if(h){j.setException(f.getMessage())}}},_commitSetOptions:{convert:true,commit:true},doProcess:function(q,w,x){var s=this,y=s._commitSetOptions,B=s.getRecords(),z=B.length,p=B[0].clientIdProperty,i=q.getRecords(),t=i?i.length:0,r,u,A,v;if(t&&p){r=Ext.Array.toValueMap(B,"id");for(v=0;v<t;++v){u=i[v];A=r[u[p]];if(A){delete r[A.id];delete u[p];A.set(u,y)}}for(v in r){r[v].commit()}}else{for(v=0;v<z;++v){A=B[v];if(t===0||!(u=i[v])){A.commit()}else{A.set(u,y)}}}},setStarted:function(){this.started=this.running=true},setCompleted:function(){var c=this,d=c.getProxy();c.complete=true;c.running=false;c.triggerCallbacks();if(d){d.completeOperation(c)}},setSuccessful:function(b){this.success=true;if(b){this.setCompleted()}},setException:function(d){var c=this;c.exception=true;c.success=c.running=false;c.error=d;c.setCompleted()},triggerCallbacks:function(){var d=this,c=d.getInternalCallback();if(c){c.call(d.getInternalScope()||d,d);d.setInternalCallback(null);d.setInternalScope(null)}if(c=d.getCallback()){c.call(d.getScope()||d,d.getRecords(),d,d.wasSuccessful());d.setCallback(null);d.setScope(null)}},hasException:function(){return this.exception},getError:function(){return this.error},getRecords:function(){var b;return this._records||((b=this.getResultSet())?b.getRecords():null)},isStarted:function(){return this.started},isRunning:function(){return this.running},isComplete:function(){return this.complete},wasSuccessful:function(){return this.isComplete()&&this.success===true},allowWrite:function(){return true}},1,0,0,0,0,0,[Ext.data.operation,"Operation",Ext.data,"Operation"],0));(Ext.cmd.derive("Ext.data.operation.Create",Ext.data.operation.Operation,{action:"create",isCreateOperation:true,order:10,config:{recordCreator:Ext.identityFn},doExecute:function(){return this.getProxy().create(this)}},0,0,0,0,["data.operation.create"],0,[Ext.data.operation,"Create"],0));(Ext.cmd.derive("Ext.data.operation.Destroy",Ext.data.operation.Operation,{action:"destroy",isDestroyOperation:true,order:30,foreignKeyDirection:-1,doProcess:function(){var f=this.getRecords(),e=f.length,d;for(d=0;d<e;++d){f[d].setErased()}},doExecute:function(){return this.getProxy().erase(this)},getRecordData:function(g,j){var h={},i=g.idField,f=this.getNameProperty()||"name";h[i[f]]=g.id;return h}},0,0,0,0,["data.operation.destroy"],0,[Ext.data.operation,"Destroy"],0));(Ext.cmd.derive("Ext.data.operation.Read",Ext.data.operation.Operation,{action:"read",isReadOperation:true,config:{filters:undefined,sorters:undefined,grouper:undefined,start:undefined,limit:undefined,page:undefined,addRecords:false},doExecute:function(){return this.getProxy().read(this)},doProcess:Ext.emptyFn,allowWrite:function(){return false}},0,0,0,0,["data.operation.read"],0,[Ext.data.operation,"Read"],0));(Ext.cmd.derive("Ext.data.operation.Update",Ext.data.operation.Operation,{action:"update",isUpdateOperation:true,order:20,config:{recordCreator:Ext.identityFn},doExecute:function(){return this.getProxy().update(this)}},0,0,0,0,["data.operation.update"],0,[Ext.data.operation,"Update"],0));(Ext.cmd.derive("Ext.data.SortTypes",Ext.Base,{singleton:true,none:Ext.identityFn,stripCommasRe:/,/g,stripTagsRE:/<\/?[^>]+>/gi,asText:function(b){return(b!=null)?String(b).replace(this.stripTagsRe,""):"\x00"},asUCText:function(b){return(b!=null)?String(b).toUpperCase().replace(this.stripTagsRe,""):"\x00"},asUCString:function(b){return(b!=null)?String(b).toUpperCase():"\x00"},asDate:function(b){if(!b){return 0}if(Ext.isDate(b)){return b.getTime()}return Date.parse(String(b))},asFloat:function(d){var c=parseFloat(String(d).replace(this.stripCommasRe,""));return isNaN(c)?0:c},asInt:function(d){var c=parseInt(String(d).replace(this.stripCommasRe,""),10);return isNaN(c)?0:c}},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(d,e){var f=this.all;f[d.toUpperCase()]=f[d.toLowerCase()]=f[d]=e.prototype}},onClassExtended:function(d,c){if(c.type){Ext.data.validator.Validator.register(c.type,d)}},constructor:function(b){if(typeof b==="function"){this.fnOnly=true;this.validate=b}else{this.initConfig(b)}},validate:function(){return true},clone:function(){var b=this;if(b.fnOnly){return new Ext.data.validator.Validator(b.validate)}return new b.self(b.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(l,j){var i=j.sortType,k=l.prototype,h=k.validators,g=j.validators;if(i&&Ext.isString(i)){k.sortType=Ext.data.SortTypes[i]}if(g){if(!Ext.isArray(g)){g=[g]}delete j.validators;if(h){g=h.concat(g)}k.validators=g}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^\.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(y){var r=this,p=r.calculateRe,v,o,q,u,z,B,t,A,s,x,w;if(y){if(Ext.isString(y)){r.name=y}else{w=y.validators;if(w){delete y.validators;r.instanceValidators=w}Ext.apply(r,y)}}if(!r.allowNull){r.allowNull=!!r.reference}v=r.calculate;z=r.depends;if(v){r.convert=r.doCalculate;if(!z){if(!(z=v.$depends)){B={};s=v.toString();v.$depends=z=[];t=r.argumentNamesRe.exec(s);A=t?t[1]:"data";while((t=p.exec(s))){if(A===t[1]&&!B[x=t[2]]){B[x]=1;z.push(x)}}}r.depends=z}}q=r.defaultValue;if(r.convert){r.calculated=o=r.convert.length>1;r.evil=o&&!z}if(r.persist===null){r.persist=!v}u=r.sortType;if(!r.sortType){r.sortType=Ext.data.SortTypes.none}else{if(Ext.isString(u)){r.sortType=Ext.data.SortTypes[u]}}if(z&&typeof z==="string"){r.depends=[z]}r.cloneDefaultValue=q!==undefined&&(Ext.isDate(q)||Ext.isArray(q)||Ext.isObject(q))},setModelValidators:function(b){this._validators=null;this.modelValidators=b},compileValidators:function(){var b=this;b._validators=[];b.constructValidators(b.validators);b.constructValidators(b.modelValidators);b.constructValidators(b.instanceValidators)},constructValidators:function(g){if(g){if(!(g instanceof Array)){g=[g]}var h=g.length,j=this._validators,f,i;for(f=0;f<h;++f){i=g[f];if(i.fn){i=i.fn}j.push(Ext.Factory.dataValidator(i))}}},collate:function(j,f){var i=this,g=j,h=f;if(i.sortType){g=i.sortType(g);h=i.sortType(h)}return(g===h)?0:((g<h)?-1:1)},compare:function(c,d){return(c===d)?0:((c<d)?-1:1)},isEqual:function(c,d){return this.compare(c,d)===0},convert:null,serialize:null,validate:function(m,r,n,q){var o=this,p="",i,v,t,u,s;if(!o._validators){o.compileValidators()}t=o._validators;for(s=0,u=t.length;s<u;++s){v=t[s];i=v.validate(m,q);if(i!==true){i=i||o.defaultInvalidMessage;if(n){n.add(o.name,i);p=p||i}else{if(r){if(p){p+=r}p+=i}else{p=i;break}}}}return p||true},doCalculate:function(d,c){return c?this.calculate(c.data):d},getName:function(){return this.name},getAllowBlank:function(){return this.allowBlank},getAllowNull:function(){return this.allowNull},getConvert:function(){return this.convert},getDefaultValue:function(){return this.defaultValue},getDepends:function(){return this.depends},getMapping:function(){return this.mapping},hasMapping:function(){var b=this.mapping;return !!(b||b===0)},getPersist:function(){return this.persist},getSortType:function(){return this.sortType},getType:function(){return"auto"},deprecated:{5.1:{methods:{getSortDir:function(){return this.sortDir}}}}},1,0,0,0,["data.field.auto"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.field,"Field",Ext.data,"Field"],0));(Ext.cmd.derive("Ext.data.field.Boolean",Ext.data.field.Field,{isBooleanField:true,trueRe:/^\s*(?:true|yes|on|1)\s*$/i,convert:function(b){if(typeof b==="boolean"){return b}if(this.allowNull&&(b===undefined||b===null||b==="")){return null}return this.trueRe.test(String(b))},getType:function(){return"bool"}},0,0,0,0,["data.field.bool","data.field.boolean"],0,[Ext.data.field,"Boolean"],0));(Ext.cmd.derive("Ext.data.field.Date",Ext.data.field.Field,{sortType:"asDate",isDateField:true,dateFormat:null,dateReadFormat:null,dateWriteFormat:null,compare:function(f,h){var i=f instanceof Date,j=h instanceof Date,g;if(j&&i){g=f.getTime()-h.getTime();if(g===0){g=0}else{g=g<0?-1:1}}else{if(i===j){g=0}else{g=i?1:-1}}return g},convert:function(f){if(!f){return null}if(f instanceof Date){return f}var e=this.dateReadFormat||this.dateFormat,d;if(e){return Ext.Date.parse(f,e)}d=Date.parse(f);return d?new Date(d):null},serialize:function(d){var e=null,f;if(Ext.isDate(d)){f=this.getDateWriteFormat();e=f?Ext.Date.format(d,f):d}return e},getDateFormat:function(){return this.dateFormat},getDateReadFormat:function(){return this.dateReadFormat},getDateWriteFormat:function(){var b=this;if(b.hasOwnProperty("dateWriteFormat")){return b.dateWriteFormat}if(b.hasOwnProperty("dateFormat")){return b.dateFormat}return b.dateWriteFormat||b.dateFormat||"timestamp"},getType:function(){return"date"}},0,0,0,0,["data.field.date"],0,[Ext.data.field,"Date"],0));(Ext.cmd.derive("Ext.data.field.Integer",Ext.data.field.Field,{isNumeric:true,isIntegerField:true,numericType:"int",convert:function(e){if(typeof e==="number"){return this.getNumber(e)}var g=e===undefined||e===null||e==="",f=this.allowNull,h;if(g){h=f?null:0}else{h=this.parse(e);if(f&&isNaN(h)){h=null}}return h},getNumber:function(b){return parseInt(b,10)},getType:function(){return this.numericType},parse:function(b){return parseInt(String(b).replace(this.stripRe,""),10)},sortType:function(b){if(b==null){b=Infinity}return b}},0,0,0,0,["data.field.int","data.field.integer"],0,[Ext.data.field,"Integer"],0));(Ext.cmd.derive("Ext.data.field.Number",Ext.data.field.Integer,{isIntegerField:false,isNumberField:true,numericType:"float",getNumber:Ext.identityFn,parse:function(b){return parseFloat(String(b).replace(this.stripRe,""))}},0,0,0,0,["data.field.float","data.field.number"],0,[Ext.data.field,"Number"],0));(Ext.cmd.derive("Ext.data.field.String",Ext.data.field.Field,{sortType:"asUCString",isStringField:true,convert:function(c){var d=this.allowNull?null:"";return(c===undefined||c===null)?d:String(c)},getType:function(){return"string"}},0,0,0,0,["data.field.string"],0,[Ext.data.field,"String"],0));(Ext.cmd.derive("Ext.data.identifier.Generator",Ext.Base,{"abstract":true,factoryConfig:{defaultType:"sequential"},isGenerator:true,config:{id:null},constructor:function(e){var h=this,f,g;h.initConfig(e);g=h.getId();if(g){f=(e&&e.cache)||Ext.data.identifier.Generator.all;f[g]=h}},privates:{clone:function(c){var d=this.getInitialConfig();d=c?Ext.apply({},c,d):d;return new this.self(d)},statics:{all:{}}}},1,0,0,0,["data.identifier.default"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.identifier,"Generator"],function(){var f=this,e=Ext.Factory,d=e.dataIdentifier;e.dataIdentifier=function(c){var a=Ext.isString(c)?c:(c&&c.id),b=a&&((c&&c.cache)||f.all)[a];return b||d(c)}}));(Ext.cmd.derive("Ext.data.identifier.Sequential",Ext.data.identifier.Generator,{config:{increment:1,prefix:null,seed:1},generate:function(){var d=this,e=d._seed,f=d._prefix;d._seed+=d._increment;return(f!==null)?f+e:e}},0,0,0,0,["data.identifier.sequential"],0,[Ext.data.identifier,"Sequential"],0));(Ext.cmd.derive("Ext.data.Model",Ext.Base,{alternateClassName:"Ext.data.Record",isEntity:true,isModel:true,validIdRe:null,erasing:false,observableType:"record",constructor:function(z,t){var s=this,i=s.self,u=i.identifier,B=Ext.data.Model,r=B.identifier,q=s.idField.name,v,D,C,w,x,A,y;s.data=s.data=z||(z={});s.session=t||null;s.internalId=w=r.generate();if((v=z) instanceof Array){s.data=z={};y=s.getFields();x=Math.min(y.length,v.length);for(A=0;A<x;++A){z[y[A].name]=v[A]}}if(!(C=i.initializeFn)){i.initializeFn=C=B.makeInitializeFn(i)}if(!C.$nullFn){i.initializeFn(s)}if(!(s.id=D=z[q])&&D!==0){if(t){u=t.getIdentifier(i);D=u.generate()}else{if(r===u){D=w}else{D=u.generate()}}z[q]=s.id=D;s.phantom=true}if(t){t.add(s)}if(s.init&&Ext.isFunction(s.init)){s.init()}},editing:false,dirty:false,session:null,dropped:false,erased:false,clientIdProperty:null,evented:false,phantom:false,idProperty:"id",manyToMany:null,identifier:null,previousValues:undefined,proxy:undefined,schema:"default",versionProperty:null,generation:1,validationSeparator:null,convertOnSet:true,beginEdit:function(){var f=this,d=f.modified,e=f.previousValues;if(!f.editing){f.editing=true;f.editMemento={dirty:f.dirty,data:Ext.apply({},f.data),generation:f.generation,modified:d&&Ext.apply({},d),previousValues:e&&Ext.apply({},e)}}},cancelEdit:function(){var c=this,d=c.editMemento;if(d){c.editing=false;Ext.apply(c,d);c.editMemento=null}},endEdit:function(e,g){var h=this,f=h.editMemento;if(f){h.editing=false;h.editMemento=null;h.previousValues=f.previousValues;if(!e){if(!g){g=h.getModifiedFieldNames(f.data)}if(h.dirty||(g&&g.length)){h.callJoined("afterEdit",[g])}}}},getField:function(b){return this.self.getField(b)},getFields:function(){return this.self.getFields()},getFieldsMap:function(){return this.fieldsMap},getIdProperty:function(){return this.idProperty},getId:function(){return this.id},getObservableId:function(){return this.internalId},setId:function(c,d){this.set(this.idProperty,c,d)},getPrevious:function(c){var d=this.previousValues;return d&&d[c]},isModified:function(c){var d=this.modified;return !!(d&&d.hasOwnProperty(c))},getModified:function(c){var d;if(this.isModified(c)){d=this.modified[c]}return d},get:function(b){return this.data[b]},_singleProp:{},_rejectOptions:{convert:false,silent:true},set:function(am,T,al){var Q=this,ao=Q.self,P=Q.data,af=Q.modified,R=Q.previousValues,ar=Q.session,S=Ext.isString(am),aq=(S?al:T),ab=aq?aq.convert!==false:Q.convertOnSet,aj=Q.fieldsMap,X=aq&&aq.silent,Z=aq&&aq.commit,ad=!(aq&&aq.refs===false)&&ar,ae=!(aq&&aq.dirty===false&&!Z),ac=null,W,ap,Y,L,N,M,ak,ag,O,aa,K=0,V,U,ah,ai,i,an;if(S){an=Q._singleProp;an[am]=T}else{an=am}if(!(ah=ao.rankedFields)){ah=ao.rankFields()}V=ah.length;do{for(N in an){i=an[N];W=P[N];ak=Q;ap=aj[N];if(ap){if(ab&&ap.convert){i=ap.convert(i,Q)}ak=ap;ai=ap.reference}else{ai=null}if(ak.isEqual(W,i)){continue}P[N]=i;(ac||(ac=[])).push(N);(R||(Q.previousValues=R={}))[N]=W;if(ai&&ai.cls){if(ad){ar.updateReference(Q,ap,i,W)}ai.onValueChange(Q,ar,i,W)}aa=(O=ap&&ap.dependents)&&O.length;while(aa-->0){(ag=O[aa]).dirty=true;K=K?Math.min(K,ag.rank):ag.rank}if(!ap||ap.persist){if(af&&af.hasOwnProperty(N)){if(!ae||ak.isEqual(af[N],i)){delete af[N];Q.dirty=-1}}else{if(ae){if(!af){Q.modified=af={}}Q.dirty=true;af[N]=W}}}if(N===Q.idField.name){Y=true;M=W;U=i}}if(!K){break}ap=ah[K-1];ap.dirty=false;if(S){delete an[am]}else{an=Q._singleProp;S=true}am=ap.name;an[am]=P[am];ab=true;for(;K<V;++K){if(ah[K].dirty){break}}if(K<V){++K}else{K=0}}while(1);if(Q.dirty<0){Q.dirty=false;for(L in af){if(af.hasOwnProperty(L)){Q.dirty=true;break}}}if(S){delete an[am]}++Q.generation;if(Y){Q.id=U;Q.callJoined("onIdChanged",[M,U])}if(Z){Q.commit(X,ac)}else{if(!X&&!Q.editing&&ac){Q.callJoined("afterEdit",[ac])}}return ac},reject:function(e){var f=this,d=f.modified;if(d){f.set(d,f._rejectOptions)}f.dropped=false;f.clearState();if(!e){f.callJoined("afterReject")}},commit:function(g,k){var l=this,i=l.versionProperty,j=l.data,h;l.clearState();if(i&&!l.phantom&&!isNaN(j[i])){++j[i]}l.phantom=false;if(l.dropped){l.erased=h=true}if(!g){if(h){l.callJoined("afterErase")}else{l.callJoined("afterCommit",[k])}}},clearState:function(){var b=this;b.dirty=b.editing=false;b.editMemento=b.modified=null},drop:function(f){var i=this,j=i.associations,h=i.session,g;if(i.erased||i.dropped){return}i.dropped=true;if(j&&f!==false){for(g in j){j[g].onDrop(i,h)}}i.callJoined("afterDrop");if(i.phantom){i.setErased()}},join:function(d){var e=this,f=e.joined;if(!f){f=e.joined=[d]}else{if(!f.length){f[0]=d}else{Ext.Array.include(f,d)}}if(d.isStore&&!e.store){e.store=d}},unjoin:function(j){var k=this,i=k.joined,h=i&&i.length,g=k.store,l;if(h===1&&i[0]===j){i.length=0}else{if(h){Ext.Array.remove(i,j)}}if(g===j){g=null;if(i){for(l=0,h=i.length;l<h;++l){j=i[l];if(j.isStore){g=j;break}}}k.store=g}},clone:function(g){var h=this,e=h.modified,f=h.copy(h.id,g);if(e){f.modified=Ext.apply({},e)}f.dirty=h.dirty;f.dropped=h.dropped;f.phantom=h.phantom;return f},copy:function(l,i){var k=this,j=Ext.apply({},k.data),g=k.idProperty,h=k.self;if(l||l===0){j[g]=l}else{if(l===null){delete j[g]}}return new h(j,i)},getProxy:function(){return this.self.getProxy()},getValidation:function(d){var f=this,e=f.validation;if(!e){f.validation=e=new Ext.data.Validation();e.attach(f)}if(d===true||(d!==false&&e.syncGeneration!==f.generation)){e.refresh(d)}return e},validate:function(){return new Ext.data.ErrorCollection().init(this)},isValid:function(){return this.getValidation().isValid()},toUrl:function(){var c=this.$className.split("."),d=c[c.length-1].toLowerCase();return d+"/"+this.getId()},erase:function(d){var c=this;c.erasing=true;c.drop();c.erasing=false;return c.save(d)},setErased:function(){this.erased=true;this.callJoined("afterErase")},getChanges:function(){return this.getData(this._getChangesOptions)},getCriticalFields:function(){var d=this.self,c=d.criticalFields;if(!c){d.rankFields();c=d.criticalFields}return c},getAssociatedData:function(i,r){var v=this,D=v.associations,t,z,s,w,C,E,x,A,B,F,y,u;i=i||{};v.$gathering=1;if(r){r=Ext.Object.chain(r)}for(B in D){A=D[B];s=A.getAssociatedItem(v);if(!s||s.$gathering){continue}if(s.isStore){s.$gathering=1;w=s.getData().items;E=w.length;C=[];for(z=0;z<E;++z){x=w[z];t=!x.$gathering;x.$gathering=1;if(r){u=r.associated;if(u===undefined){r.associated=t;y=true}else{if(!t){r.associated=false;y=true}}F=r}else{F=t?v._getAssociatedOptions:v._getNotAssociatedOptions}C.push(x.getData(F));if(y){r.associated=u;y=false}delete x.$gathering}delete s.$gathering}else{F=r||v._getAssociatedOptions;if(r&&r.associated===undefined){F.associated=true}C=s.getData(F)}i[B]=C}delete v.$gathering;return i},getData:function(n){var y=this,z={},H=(n===true)?y._getAssociatedOptions:(n||z),D=y.data,x=H.associated,u=H.changes,v=u&&H.critical,A=u?y.modified:D,B=y.fieldsMap,C=H.persist,s=H.serialize,F,w,E,G,t;if(A){for(G in A){t=D[G];w=B[G];if(w){if(C&&!w.persist){continue}if(s&&w.serialize){t=w.serialize(t,y)}}z[G]=t}}if(v){F=y.self.criticalFields||y.getCriticalFields();for(E=F.length;E-->0;){G=(w=F[E]).name;if(!(G in z)){t=D[G];if(s&&w.serialize){t=w.serialize(t,y)}z[G]=t}}}if(x){y.getAssociatedData(z,H)}return z},getTransientFields:function(){var d=this.self,c=d.transientFields;if(!c){d.rankFields();c=d.transientFields}return c},isLoading:function(){return !!this.loadOperation},abort:function(){var b=this.loadOperation;if(b){b.abort()}},load:function(i){i=Ext.apply({},i);var m=this,n=i.scope||m,p=m.getProxy(),k=i.callback,j=m.loadOperation,l=m.getId(),o;if(j){o=j.extraCalls;if(!o){o=j.extraCalls=[]}o.push(i);return j}i.id=l;i.recordCreator=function(b,d,c){var a=m.session;if(c){c.recordCreator=a?a.recordCreator:null}m.set(b,m._commitOptions);return m};i.internalCallback=function(b){var f=b.wasSuccessful()&&b.getRecords().length>0,e=m.loadOperation,h=e.extraCalls,c=[m,b],g=[m,b,f],a,d;m.loadOperation=null;if(f){Ext.callback(i.success,n,c)}else{Ext.callback(i.failure,n,c)}Ext.callback(k,n,g);if(h){for(a=0,d=h.length;a<d;++a){i=h[a];if(f){Ext.callback(i.success,n,c)}else{Ext.callback(i.failure,n,c)}Ext.callback(i.callback,n,g)}}m.callJoined("afterLoad")};delete i.callback;m.loadOperation=j=p.createOperation("read",i);j.execute();return j},save:function(j){j=Ext.apply({},j);var m=this,o=m.phantom,r=m.dropped,p=r?"destroy":(o?"create":"update"),k=j.scope||m,l=j.callback,n=m.getProxy(),q;j.records=[m];j.internalCallback=function(c){var b=[m,c],a=c.wasSuccessful();if(a){Ext.callback(j.success,k,b)}else{Ext.callback(j.failure,k,b)}b.push(a);Ext.callback(l,k,b)};delete j.callback;q=n.createOperation(p,j);if(r&&o){q.setResultSet(Ext.data.reader.Reader.prototype.nullResultSet);m.setErased();q.setSuccessful(true)}else{q.execute()}return q},inheritableStatics:{addFields:function(b){this.replaceFields(b)},replaceFields:function(q,t){var p=this,x=p.prototype,u=Ext.data.field.Field,w=p.fields,r=p.fieldsMap,z=p.fieldOrdinals,i,y,A,v,B,s;if(t===true){w.length=0;p.fieldsMap=r={};p.fieldOrdinals=z={}}else{if(t){for(y=t.length;y-->0;){B=t[y];if(B in z){delete z[B];delete r[B]}}for(y=0,v=w.length;y<v;++y){B=(i=w[y]).name;if(B in z){z[B]=y}else{w.splice(y,1);--y;--v}}}}for(y=0,v=q?q.length:0;y<v;y++){B=(i=q[y]).name;if(!(B in z)){z[B]=s=w.length;w.push(i=u.create(i));r[B]=i;i.ordinal=s;i.definedBy=i.owner=this}}p.idField=x.idField=A=r[x.idProperty];A.allowNull=A.critical=A.identifier=true;A.defaultValue=null;p.initializeFn=p.rankedFields=p.transientFields=p.criticalFields=null},removeFields:function(b){this.replaceFields(null,b)},getIdFromData:function(h){var e=this,f=e.idField,g=f.calculated?(new e(h)).id:h[f.name];return g},createWithId:function(h,d,j){var i=d,g=this;if(h||h===0){i={};if(d){Ext.apply(i,d)}i[g.idField.name]=h}return new g(i,j)},getFields:function(){return this.fields},getFieldsMap:function(){return this.fieldsMap},getField:function(b){return this.fieldsMap[b]||null},getProxy:function(){var e=this,f=e.proxy,g=e.defaultProxy,h;if(!f){f=e.proxyConfig;if(!f&&g){f=g}if(!f||!f.isProxy){if(typeof f==="string"){f={type:f}}h=e.schema.constructProxy(e);f=f?Ext.merge(h,f):h}f=e.setProxy(f)}return f},setProxy:function(d){var f=this,e;if(d){if(!d.isProxy){d=Ext.Factory.proxy(d)}else{e=d.getModel();if(e&&e!==f){d=d.clone()}}d.setModel(f)}return(f.prototype.proxy=f.proxy=d)},load:function(h,g,j){var f={},i;f[this.prototype.idProperty]=h;i=new this(f,j);i.load(g);return i}},deprecated:{5:{methods:{hasId:null,markDirty:null,setDirty:null,eachStore:function(i,k){var j=this,g=j.stores,h=g.length,l;for(l=0;l<h;++l){i.call(k,g[l])}},join:function(h){var e=this,f=e.stores,g=e.joined;if(!g){g=e.joined=[h]}else{g.push(h)}if(h.isStore){e.store=e.store||h;if(!f){f=e.stores=[]}f.push(h)}},unjoin:function(h){var e=this,f=e.stores,g=e.joined;if(g.length===1){g.length=0}else{Ext.Array.remove(g,h)}if(h.isStore){Ext.Array.remove(f,h);e.store=f[0]||null}}},properties:{persistenceProperty:null},inheritableStatics:{methods:{setFields:null}}}},privates:{_commitOptions:{commit:true},_getChangesOptions:{changes:true},_getAssociatedOptions:{associated:true},_getNotAssociatedOptions:{associated:false},copyFrom:function(q){var r=this,t=r.fields,n=t.length,w=[],p,v=0,s,u,i=r.idProperty,x,o;if(q){s=r.data;u=q.data;for(;v<n;v++){p=t[v];x=p.name;if(x!==i){o=u[x];if(o!==undefined&&!r.isEqual(s[x],o)){s[x]=o;w.push(x)}}}if(r.phantom&&!q.phantom){r.beginEdit();r.setId(q.getId());r.endEdit(true);r.commit(true)}}return w},callJoined:function(o,p){var m=this,k=m.joined,n=m.session,r,q,l,i;if(!k&&!n){return}if(p){p.unshift(m)}else{p=[m]}if(k){for(r=0,q=k.length;r<q;++r){i=k[r];if(i&&(l=i[o])){l.apply(i,p)}}}l=n&&n[o];if(l){l.apply(n,p)}},setSession:function(b){this.session=b;if(b){b.add(this)}},getModifiedFieldNames:function(h){var k=this,j=k.data,g=[],i=h||k.editMemento.data,l;for(l in j){if(j.hasOwnProperty(l)){if(!k.isEqual(j[l],i[l],l)){g.push(l)}}}return g},isEqual:function(f,g,h){var e;if(h){e=h.isField?h:this.fieldsMap[h];if(e){return e.isEqual(f,g)}}if(f instanceof Date&&g instanceof Date){return f.getTime()===g.getTime()}return f===g},statics:{EDIT:"edit",REJECT:"reject",COMMIT:"commit",defaultProxy:"memory",rankFields:function(){var l=this,m=l.prototype,q=l.fields,s=q.length,o=[],t=[],p=[],i,n,r;l.rankedFields=m.rankedFields=o;l.criticalFields=m.criticalFields=t;l.transientFields=m.transientFields=p;for(r=0;r<s;++r){n=q[r];if(n.critical){t.push(n)}if(!n.persist){p.push(n)}if(n.evil){(i||(i=[])).push(n)}else{if(!n.depends){o.push(n);n.rank=o.length}}}for(r=0;r<s;++r){if(!(n=q[r]).rank&&!n.evil){l.topoAdd(n)}}if(i){for(r=0,s=i.length;r<s;++r){o.push(n=i[r]);n.rank=o.length}}return o},topoAdd:function(j){var h=this,k=j.depends,i=k?k.length:0,m=h.rankedFields,n,l;for(n=0;n<i;++n){l=h.fieldsMap[k[n]];(l.dependents||(l.dependents=[])).push(j);if(!l.rank){h.topoAdd(l)}}m.push(j);j.rank=m.length},initFields:function(x,Q,E){var J=Ext.data.field.Field,O=x.fields,D=[],I={},M={},R=[],y=E.fields,H=x.versionProperty||E.versionProperty,G=Q.idProperty,L,P,A,N,i,B,K,z,C,F;Q.fields=E.fields=D;Q.fieldOrdinals=E.fieldOrdinals=I;Q.fieldsMap=E.fieldsMap=M;Q.references=E.references=R;if(y){for(A=0,N=y.length;A<N;++A){D[A]=P=Ext.Object.chain(y[A]);P.dependents=null;P.owner=Q;I[i=P.name]=A;M[i]=P;P.rank=null;if(P.generated){z=P;C=P.name}}}if(O){delete x.fields;for(A=0,N=O.length;A<N;++A){P=O[A];K=P.reference;if(K&&typeof K!=="string"){K=Ext.merge({},K)}P.$reference=K;P=J.create(O[A]);i=P.name;B=I[i];if(B===undefined){I[i]=B=D.length}M[i]=P;D[B]=P;P.definedBy=P.owner=Q;P.ordinal=B;if(i===G){F=P}}}L=M[G];if(!L){if(z&&z.generated){B=z.ordinal}else{B=D.length}delete M[C];delete I[C];L=new J(G);D[B]=L;I[G]=B;M[G]=L;L.definedBy=Q;L.ordinal=B;L.generated=true}else{if(F&&z&&z.generated){Ext.Array.remove(D,z);delete M[C];delete I[C];M[G]=F;for(A=0,N=D.length;A<N;++A){P=D[A];D.ordinal=A;I[P.name]=A}}}L.allowNull=L.critical=L.identifier=true;L.defaultValue=null;Q.idField=E.idField=L;if(H){P=M[H];if(!P){B=D.length;P=new J({name:H,type:"int"});D[B]=P;I[H]=B;M[H]=P;P.definedBy=Q;P.ordinal=B;P.generated=true}P.defaultValue=1;P.critical=true}},initValidators:function(v,i,t){var q=t.validators,x,r,z,s,w,y,u,A,B,p;if(q){x={};for(r in q){x[r]=Ext.Array.clone(q[r])}}s=v.validators||v.validations;if(s){delete v.validators;x=x||{};if(Ext.isArray(s)){z={};for(w=0,y=s.length;w<y;++w){p=s[w];A=p.field;if(!z[A]){z[A]=[]}p=p.fn||p;z[A].push(p)}s=z}for(A in s){u=s[A];if(!Ext.isArray(u)){u=[u]}B=x[A];if(x[A]){Ext.Array.push(B,u)}else{x[A]=u}}}if(x){for(A in x){r=i.getField(A);if(r){r.setModelValidators(x[A])}}}i.validators=t.validators=x},initAssociations:function(t,q,m){var u=q.associations,s=q.belongsTo,o=q.hasMany,i=q.hasOne,n=q.manyToMany,r,v,p;delete q.manyToMany;if(n){t.addMatrices(m,n)}delete q.associations;delete q.belongsTo;delete q.hasMany;delete q.hasOne;if(u){u=Ext.isArray(u)?u:[u];for(r=0,v=u.length;r<v;++r){p=u[r];switch(p.type){case"belongsTo":t.addLegacyBelongsTo(m,p);break;case"hasMany":t.addLegacyHasMany(m,p);break;case"hasOne":t.addLegacyHasOne(m,p);break}}}if(s){s=Ext.isArray(s)?s:[s];for(r=0,v=s.length;r<v;++r){t.addLegacyBelongsTo(m,s[r])}}if(o){o=Ext.isArray(o)?o:[o];for(r=0,v=o.length;r<v;++r){t.addLegacyHasMany(m,o[r])}}if(i){i=Ext.isArray(i)?i:[i];for(r=0,v=i.length;r<v;++r){t.addLegacyHasOne(m,i[r])}}t.afterLegacyAssociations(m)},initIdentifier:function(i,h,j){var g=i.identifier||i.idgen,k=j.identifier||h.schema._defaultIdentifier,l;if(g){delete i.identifier;delete i.idgen;g=Ext.Factory.dataIdentifier(g)}else{if(k){if(k.clone&&!k.getId()){g=k.clone()}else{if(k.isGenerator){g=k}else{g=Ext.Factory.dataIdentifier(k)}}}}h.identifier=j.identifier=g;if(!g){l=h.entityName;if(!l){l=Ext.id(null,"extModel")}h.identifier=Ext.Factory.dataIdentifier({type:"sequential",prefix:l+"-"})}},findValidator:function(p,o,i){var m=i.type||i,k=p[o],j,n,l;if(k){for(n=0,j=k.length;n<j;++n){l=k[n];if(l.type===m){return l}}}return null},makeInitializeFn:function(i){var F=["var "],y=["\nreturn function (e) {\n var data = e.data, v;\n"],B=[],t=0,w,x,v,r,C,u,z,A,s,D,E;if(!(z=i.rankedFields)){z=i.rankFields()}for(D=0,E=z.length;D<E;++D){u=z[D];B[D]=A="f"+D;v=u.convert;if(D){F.push(", \n ")}F.push(A," = $fields["+D+"]");if((s=(u.defaultValue!==undefined))||v){r='data["'+u.name+'"]';++t;w=x="";if(u.cloneDefaultValue){w="Ext.clone(";x=")"}y.push("\n");if(v&&s){y.push(" v = ",r,";\n if (v !== undefined) {\n v = ",A,".convert(v, e);\n }\n if (v === undefined) {\n v = ",w,A,".defaultValue",x,";\n }\n ",r," = v;")}else{if(v){y.push(" v = ",A,".convert(",r,",e);\n if (v !== undefined) {\n ",r," = v;\n }\n")}else{if(s){y.push(" if (",r," === undefined) {\n ",r," = ",w,A,".defaultValue",x,";\n }\n")}}}}}if(!t){return Ext.emptyFn}F.push(";\n");F.push.apply(F,y);F.push("}");F=F.join("");C=new Function("$fields","Ext",F);return C(z,Ext)}}}},1,0,0,0,0,0,[Ext.data,"Model",Ext.data,"Record"],function(){var g=this,h=g.prototype,e=Ext.data.schema.Schema,f;g.proxyConfig=h.proxy;delete h.proxy;g.fields=[];g.fieldsMap=h.fieldsMap={};g.schema=h.schema=e.get(h.schema);h.idField=new Ext.data.field.Field(h.idProperty);g.identifier=new Ext.data.identifier.Sequential();g.onExtended(function(p,c){var d=p.prototype,a=c.schema,b=d.superclass.self,m,n,o;p.idProperty=c.idProperty||d.idProperty;if(a){delete c.schema;m=e.get(a)}else{if(!(m=d.schema)){m=f||(f=e.get("default"))}}p.rankFields=g.rankFields;p.topoAdd=g.topoAdd;d.schema=p.schema=m;if(!(n=c.entityName)){d.entityName=n=m.getEntityName(p)}p.entityName=n;p.fieldExtractors={};g.initIdentifier(c,p,d);g.initFields(c,p,d);g.initValidators(c,p,d);p.fields.items=p.fields;if(n){m.addEntity(p);g.initAssociations(m,c,p)}o=c.proxy;if(o){delete c.proxy}else{if(b!==g){o=b.proxyConfig||b.proxy}}p.proxyConfig=o})}));(Ext.cmd.derive("Ext.data.ResultSet",Ext.Base,{isResultSet:true,$configPrefixed:false,config:{loaded:true,count:null,total:null,success:false,records:null,message:null},constructor:function(b){this.initConfig(b)},getCount:function(){var c=(arguments.callee.$previous||Ext.Base.prototype.getCount).call(this),d;if(!c){d=this.getRecords();if(d){c=d.length}}return c}},1,0,0,0,0,0,[Ext.data,"ResultSet"],0));(Ext.cmd.derive("Ext.data.reader.Reader",Ext.Base,{alternateClassName:["Ext.data.Reader","Ext.data.DataReader"],factoryConfig:{defaultType:null},config:{totalProperty:"total",successProperty:"success",rootProperty:"",messageProperty:"",typeProperty:"",implicitIncludes:true,readRecordsOnFailure:true,model:null,proxy:null,transform:null,keepRawData:null},isReader:true,constructor:function(d){if(d&&d.hasOwnProperty("root")){d=Ext.apply({},d);d.rootProperty=d.root;delete d.root}var c=this;c.duringInit=1;c.mixins.observable.constructor.call(c,d);--c.duringInit;c.buildExtractors()},applyModel:function(b){return Ext.data.schema.Schema.lookupEntity(b)},applyTransform:function(b){if(b){if(Ext.isFunction(b)){b={fn:b}}else{if(b.charAt){b={fn:this[b]}}}return b.fn.bind(b.scope||this)}return b},forceBuildExtractors:function(){if(!this.duringInit){this.buildExtractors(true)}},updateTotalProperty:function(){this.forceBuildExtractors()},updateMessageProperty:function(){this.forceBuildExtractors()},updateSuccessProperty:function(){this.forceBuildExtractors()},read:function(e,g){var h,f;if(e){if(e.responseText){f=this.getResponseData(e);if(f&&f.__$isError){return new Ext.data.ResultSet({total:0,count:0,records:[],success:false,message:f.msg})}else{h=this.readRecords(f,g)}}else{h=this.readRecords(e,g)}}return h||this.nullResultSet},getNullResultSet:function(){return this.nullResultSet},createReadError:function(b){return{__$isError:true,msg:b}},readRecords:function(x,z,v){var u=this,w=v&&v.recordsOnly,q=v&&v.asRoot,p,y,A,s,t,r,o,B;B=this.getTransform();if(B){x=B(x)}u.buildExtractors();if(u.getKeepRawData()){u.rawData=x}if(u.hasListeners.rawdata){u.fireEventArgs("rawdata",[x])}x=u.getData(x);p=true;y=0;A=[];if(u.getSuccessProperty()){r=u.getSuccess(x);if(r===false||r==="false"){p=false}}if(u.getMessageProperty()){o=u.getMessage(x)}if(p||u.getReadRecordsOnFailure()){s=(q||Ext.isArray(x))?x:u.getRoot(x);if(s){t=s.length}if(u.getTotalProperty()){r=parseInt(u.getTotal(x),10);if(!isNaN(r)){t=r}}if(s){A=u.extractData(s,z);y=A.length}}return w?A:new Ext.data.ResultSet({total:t||y,count:y,records:A,success:p,message:o})},extractData:function(q,y){var s=this,x=y&&y.model?Ext.data.schema.Schema.lookupEntity(y.model):s.getModel(),A=x.schema,i=A.hasAssociations(x)&&s.getImplicitIncludes(),r=s.getFieldExtractorInfo(x.fieldExtractors),D=q.length,B=new Array(D),u=s.getTypeProperty(),t,C,z,v,w;if(!D&&Ext.isObject(q)){q=[q];D=1}for(w=0;w<D;w++){v=q[w];if(!v.isModel){C=v;if(u&&(z=s.getChildType(A,C,u))){t=z.getProxy().getReader();v=t.extractRecord(C,y,z,A.hasAssociations(z)&&t.getImplicitIncludes(),t.getFieldExtractorInfo(z.fieldExtractors))}else{v=s.extractRecord(C,y,x,i,r)}if(v.isModel&&v.isNode){v.raw=C}}if(v.onLoad){v.onLoad()}B[w]=v}return B},getChildType:function(e,h,g){var f;switch(typeof g){case"string":return e.getEntity(h[g]);case"object":f=g.namespace;return e.getEntity((f?f+".":"")+h[g.name]);case"function":return e.getEntity(g(h))}},extractRecordData:function(h,g){var e=g&&g.model?Ext.data.schema.Schema.lookupEntity(g.model):this.getModel(),f=this.getFieldExtractorInfo(e.fieldExtractors);return this.extractRecord(h,g,e,false,f)},extractRecord:function(r,q,p,j,l){var m=this,n=(q&&q.recordCreator)||m.defaultRecordCreator,k,o;k=m.extractModelData(r,l);o=n.call(m,k,p||m.getModel(),q);if(j&&o.isModel){m.readAssociated(o,r,q)}return o},getFieldExtractorInfo:function(f){if(!f){return}var e=this.$className,d=f[e];if(d===undefined){f[e]=d=this.buildFieldExtractors()}return d},buildFieldExtractors:function(){var n=this.getFields(),m=n.length,p=[],i=[],q=null,s=0,l,t,o,r;for(o=0;o<m;++o){l=n[o];r=this.createFieldAccessor(l);if(r){t=l.name;p.push("val = extractors["+s+"](raw); if (val !== undefined) { data['"+t+"'] = val; }");i.push(r);++s}}if(p.length){q={extractors:i,fn:new Function("raw","data","extractors","var val;"+p.join(""))}}return q},defaultRecordCreator:function(d,f){var e=new f(d);e.phantom=false;return e},getModelData:function(b){return{}},extractModelData:function(e,f){var g=this.getModelData(e),h;if(f){h=f.fn;h(e,g,f.extractors)}return g},readAssociated:function(h,j,k){var l=h.associations,g,i;for(g in l){if(l.hasOwnProperty(g)){i=l[g];if(i.cls){i.read(h,j,this,k)}}}},getFields:function(){return this.getModel().fields},getData:Ext.identityFn,getRoot:Ext.identityFn,getResponseData:function(b){},onMetaChange:function(j){var k=this,h=j.fields,n,l,i,m;k.metaData=j;if(j.root){k.setRootProperty(j.root)}if(j.totalProperty){k.setTotalProperty(j.totalProperty)}if(j.successProperty){k.setSuccessProperty(j.successProperty)}if(j.messageProperty){k.setMessageProperty(j.messageProperty)}i=j.clientIdProperty;if(h){l=Ext.define(null,{extend:"Ext.data.Model",fields:h,clientIdProperty:i});k.setModel(l);m=k.getProxy();if(m){m.setModel(l)}}else{if(i){n=k.getModel();if(n){n.self.prototype.clientIdProperty=i}}}},buildExtractors:function(i){var f=this,j,g,h;if(i||!f.hasExtractors){j=f.getTotalProperty();g=f.getSuccessProperty();h=f.getMessageProperty();if(j){f.getTotal=f.getAccessor(j)}if(g){f.getSuccess=f.getAccessor(g)}if(h){f.getMessage=f.getAccessor(h)}f.hasExtractors=true;return true}},getAccessor:function(h){var i=this,g=i.extractorCache,f,j;if(typeof h==="string"){j=i.getAccessorKey(h);f=g.get(j);if(!f){f=i.createAccessor(h);g.add(j,f)}}else{f=i.createAccessor(h)}return f},getAccessorKey:function(b){return this.$className+b},createAccessor:Ext.emptyFn,createFieldAccessor:Ext.emptyFn,destroy:function(){var b=this;b.model=b.getTotal=b.getSuccess=b.getMessage=b.rawData=null;b.onMetaChange=null;b.transform=null;b.callParent()},privates:{copyFrom:function(d){var c=this;d.buildExtractors();c.getTotal=d.getTotal;c.getSuccess=d.getSuccess;c.getMessage=d.getMessage;++c.duringInit;c.setConfig(d.getConfig());--c.duringInit;c.hasExtractors=true}}},1,0,0,0,["reader.base"],[[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.reader,"Reader",Ext.data,"Reader",Ext.data,"DataReader"],function(c){var d=c.prototype;Ext.apply(d,{nullResultSet:new Ext.data.ResultSet({total:0,count:0,records:[],success:true,message:""})});d.extractorCache=new Ext.util.LruCache()}));(Ext.cmd.derive("Ext.data.writer.Writer",Ext.Base,{factoryConfig:{defaultType:null},alternateClassName:["Ext.data.DataWriter","Ext.data.Writer"],config:{clientIdProperty:null,allDataOptions:{persist:true},partialDataOptions:{changes:true,critical:true},writeAllFields:false,dateFormat:null,nameProperty:"name",writeRecordId:true,transform:null},isWriter:true,constructor:function(b){this.initConfig(b)},applyTransform:function(b){if(b){if(Ext.isFunction(b)){b={fn:b}}return b.fn.bind(b.scope||this)}return b},write:function(j){var l=j.getOperation(),g=l.getRecords()||[],h=g.length,i=[],k;for(k=0;k<h;k++){i.push(this.getRecordData(g[k],l))}return this.writeRecords(j,i)},writeRecords:Ext.emptyFn,getRecordData:function(z,B){var w=this,D=w.getNameProperty(),H=D!=="name",F=z.self.idField,s=F[D]||F.name,t=z.id,E=w.getWriteAllFields(),x,G,C,r,u,y,A,v;if(F.serialize){t=F.serialize(t)}if(!E&&B&&B.isDestroyOperation){x={};x[s]=t}else{G=w.getDateFormat();C=z.phantom;r=(C||E)?w.getAllDataOptions():w.getPartialDataOptions();u=C&&w.getClientIdProperty();y=z.getFieldsMap();r.serialize=false;A=z.getData(r);x=H?{}:A;if(u){x[u]=t;delete A[s]}else{if(!w.getWriteRecordId()){delete A[s]}}for(s in A){t=A[s];if(!(v=y[s])){if(H){x[s]=t}}else{if(v.isDateField&&G&&Ext.isDate(t)){t=Ext.Date.format(t,G)}else{if(v.serialize){t=v.serialize(t,z)}}if(H){s=v[D]||s}x[s]=t}}}return x}},1,0,0,0,["writer.base"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.data.writer,"Writer",Ext.data,"DataWriter",Ext.data,"Writer"],0));(Ext.cmd.derive("Ext.data.proxy.Proxy",Ext.Base,{$configPrefixed:false,alternateClassName:["Ext.data.DataProxy","Ext.data.Proxy"],config:{batchOrder:"create,update,destroy",batchActions:true,model:undefined,reader:{type:"json"},writer:{type:"json"}},isProxy:true,isSynchronous:false,constructor:function(b){this.mixins.observable.constructor.call(this,b);this.pendingOperations={}},applyModel:function(b){return Ext.data.schema.Schema.lookupEntity(b)},updateModel:function(c){if(c){var d=this.getReader();if(d&&!d.getModel()){d.setModel(c)}}},applyReader:function(b){if(this.isSynchronous){b=b||{};b.keepRawData=true}return Ext.Factory.reader(b)},updateReader:function(e){if(e){var f=this,d=f.getModel();if(!d){d=e.getModel();if(d){f.setModel(d)}}else{e.setModel(d)}if(e.onMetaChange){e.onMetaChange=Ext.Function.createSequence(e.onMetaChange,f.onMetaChange,f)}}},applyWriter:function(c){var d=this.getReader();c=Ext.Factory.writer(c);if(c.getRecord&&!c.getRecord()&&d&&d.getRecord){d=d.getRecord();if(d){c.setRecord(d)}}return c},abort:Ext.emptyFn,onMetaChange:function(b){this.fireEvent("metachange",this,b)},create:Ext.emptyFn,read:Ext.emptyFn,update:Ext.emptyFn,erase:Ext.emptyFn,batch:function(a,q){var r=this,s=r.getBatchActions(),u,y,v,x,w,p,z,o,t;if(a.operations===undefined){a={operations:a,listeners:q}}if(a.batch){if(Ext.isDefined(a.batch.runOperation)){u=Ext.applyIf(a.batch,{proxy:r,listeners:{}})}}else{a.batch={proxy:r,listeners:a.listeners||{}}}if(!u){u=new Ext.data.Batch(a.batch)}u.on("complete",Ext.bind(r.onBatchComplete,r,[a],0));v=r.getBatchOrder().split(",");x=v.length;for(p=0;p<x;p++){w=v[p];y=a.operations[w];if(y){if(s){u.add(r.createOperation(w,{records:y,params:a.params}))}else{o=y.length;for(z=0;z<o;z++){t=y[z];u.add(r.createOperation(w,{records:[t],params:a.params}))}}}}u.start();return u},onBatchComplete:function(e,d){var f=e.scope||this;if(d.hasException()){if(Ext.isFunction(e.failure)){Ext.callback(e.failure,f,[d,e])}}else{if(Ext.isFunction(e.success)){Ext.callback(e.success,f,[d,e])}}if(Ext.isFunction(e.callback)){Ext.callback(e.callback,f,[d,e])}},createOperation:function(f,d){var e=Ext.createByAlias("data.operation."+f,d);e.setProxy(this);this.pendingOperations[e._internalId]=e;return e},completeOperation:function(b){delete this.pendingOperations[b._internalId]},clone:function(){return new this.self(this.getInitialConfig())},destroy:function(){var d=this.pendingOperations,e,f;for(e in d){f=d[e];if(f&&f.isRunning()){f.abort()}}this.pendingOperations=null}},1,0,0,0,["proxy.proxy"],[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable],[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.data.proxy,"Proxy",Ext.data,"DataProxy",Ext.data,"Proxy"],0));(Ext.cmd.derive("Ext.data.proxy.Client",Ext.data.proxy.Proxy,{alternateClassName:"Ext.data.ClientProxy",isSynchronous:true,clear:function(){}},0,0,0,0,0,0,[Ext.data.proxy,"Client",Ext.data,"ClientProxy"],0));(Ext.cmd.derive("Ext.data.proxy.Memory",Ext.data.proxy.Client,{alternateClassName:"Ext.data.MemoryProxy",isMemoryProxy:true,config:{enablePaging:false,data:{$value:null,merge:function(g,f,h,e){if(Ext.isArray(g)){return Ext.Array.clone(g)}else{return Ext.clone(g)}}}},finishOperation:function(e){var h=0,g=e.getRecords(),f=g.length;for(h;h<f;h++){g[h].commit()}e.setSuccessful(true)},create:function(b){this.finishOperation(b)},update:function(b){this.finishOperation(b)},erase:function(b){this.finishOperation(b)},read:function(m){var k=this,j=k.getReader().read(k.getData()),o=j.getRecords(),l=m.getSorters(),r=m.getGrouper(),p=m.getFilters(),q=m.getStart(),n=m.getLimit();if(m.process(j,null,null,false)!==false){if(p&&p.length){j.setRecords(o=Ext.Array.filter(o,Ext.util.Filter.createFilterFn(p)));j.setTotal(o.length)}if(r){l=l?l.concat(r):l}if(l&&l.length){j.setRecords(o=Ext.Array.sort(o,Ext.util.Sortable.createComparator(l)))}if(k.getEnablePaging()&&q!==undefined&&n!==undefined){if(q>=j.getTotal()){j.setConfig({success:false,records:[],total:0})}else{j.setRecords(Ext.Array.slice(o,q,q+n))}}m.setCompleted()}},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(f,i,g){var j=i.model,h;if(typeof j==="string"){h=g.onBeforeCreated;g.onBeforeCreated=function(){var a=this,b=arguments;Ext.require(j,function(){h.apply(a,b)})}}},implicitModel:"Ext.data.Model",autoSyncSuspended:0,constructor:function(d){var c=this;c.removed=[];Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);if(c.getAsynchronousLoad()===false){c.flushLoad()}},applyAsynchronousLoad:function(b){if(b==null){b=!this.loadsSynchronously()}return b},updateAutoLoad:function(b){this.getData();if(b){this.load(Ext.isObject(b)?b:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(b){if(b){this.createImplicitModel(b)}},applyModel:function(b){if(b){b=Ext.data.schema.Schema.lookupEntity(b)}else{this.getFields();b=this.getModel()||this.createImplicitModel()}return b},applyProxy:function(c){var d=this.getModel();if(c!==null){if(c){if(c.isProxy){c.setModel(d)}else{if(Ext.isString(c)){c={type:c,model:d}}else{if(!c.model){c=Ext.apply({model:d},c)}}c=Ext.createByAlias("proxy."+c.type,c);c.autoCreated=true}}else{if(d){c=d.getProxy()}}if(!c){c=Ext.createByAlias("proxy.memory");c.autoCreated=true}}return c},applyState:function(c){var d=this;Ext.data.AbstractStore.prototype.applyState.call(this,c);if(d.getAutoLoad()||d.isLoaded()){d.load()}},updateProxy:function(c,d){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(b){this.cleanRemoved();this.removed=b?[]:null},onMetaChange:function(d,c){this.fireEvent("metachange",this,c)},create:function(j,l){var k=this,i=k.getModel(),h=new i(j),g;l=Ext.apply({},l);if(!l.records){l.records=[h]}l.internalScope=k;l.internalCallback=k.onProxyWrite;g=k.createOperation("create",l);return g.execute()},read:function(){return this.load.apply(this,arguments)},update:function(d){var f=this,e;d=Ext.apply({},d);if(!d.records){d.records=f.getUpdatedRecords()}d.internalScope=f;d.internalCallback=f.onProxyWrite;e=f.createOperation("update",d);return e.execute()},onProxyWrite:function(e){var h=this,g=e.wasSuccessful(),f=e.getRecords();switch(e.getAction()){case"create":h.onCreateRecords(f,e,g);break;case"update":h.onUpdateRecords(f,e,g);break;case"destroy":h.onDestroyRecords(f,e,g);break}if(g){h.fireEvent("write",h,e);h.fireEvent("datachanged",h)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(d,e,f){if(f){this.cleanRemoved()}},erase:function(d){var f=this,e;d=Ext.apply({},d);if(!d.records){d.records=f.getRemovedRecords()}d.internalScope=f;d.internalCallback=f.onProxyWrite;e=f.createOperation("destroy",d);return e.execute()},onBatchOperationComplete:function(c,d){return this.onProxyWrite(d)},onBatchComplete:function(l,h){var i=this,g=l.operations,j=g.length,k;if(i.batchUpdateMode!=="operation"){i.suspendEvents();for(k=0;k<j;k++){i.onProxyWrite(g[k])}i.resumeEvents()}i.isSyncing=false;i.fireEvent("datachanged",i)},onBatchException:function(c,d){},filterNew:function(b){return b.phantom===true&&b.isValid()},getNewRecords:function(){return[]},getUpdatedRecords:function(){return[]},getModifiedRecords:function(){return[].concat(this.getNewRecords(),this.getUpdatedRecords())},filterUpdated:function(b){return b.dirty===true&&b.phantom!==true&&b.isValid()},getRemovedRecords:function(){var b=this.getRawRemovedRecords();return b?Ext.Array.clone(b):b},sync:function(n){var l=this,h={},k=l.getNewRecords(),m=l.getUpdatedRecords(),i=l.getRemovedRecords(),j=false;l.needsSync=false;if(k.length>0){h.create=k;j=true}if(m.length>0){h.update=m;j=true}if(i.length>0){h.destroy=i;j=true}if(j&&l.fireEvent("beforesync",h)!==false){l.isSyncing=true;n=n||{};l.proxy.batch(Ext.apply(n,{operations:h,listeners:l.getBatchListeners()}))}return l},getBatchListeners:function(){var c=this,d={scope:c,exception:c.onBatchException,complete:c.onBatchComplete};if(c.batchUpdateMode==="operation"){d.operationcomplete=c.onBatchOperationComplete}return d},save:function(){return this.sync.apply(this,arguments)},load:function(d){var c=this;if(typeof d==="function"){d={callback:d}}else{d=d?Ext.Object.chain(d):{}}c.pendingLoadOptions=d;if(c.getAsynchronousLoad()){if(!c.loadTimer){c.loadTimer=Ext.asap(c.flushLoad,c)}}else{c.flushLoad()}return c},flushLoad:function(){var f=this,d=f.pendingLoadOptions,e;f.clearLoadTask();if(!d){return}f.setLoadOptions(d);if(f.getRemoteSort()&&d.sorters){f.fireEvent("beforesort",f,d.sorters)}e=Ext.apply({internalScope:f,internalCallback:f.onProxyLoad,scope:f},d);f.lastOptions=e;e=f.createOperation("read",e);if(f.fireEvent("beforeload",f,e)!==false){f.onBeforeLoad(e);f.loading=true;e.execute()}},reload:function(d){var c=Ext.apply({},d,this.lastOptions);return this.load(c)},onEndUpdate:function(){var b=this;if(b.needsSync&&b.autoSync&&!b.autoSyncSuspended){b.sync()}},afterReject:function(d){var c=this;if(c.contains(d)){c.onUpdate(d,Ext.data.Model.REJECT,null);c.fireEvent("update",c,d,Ext.data.Model.REJECT,null)}},afterCommit:function(e,f){var d=this;if(!f){f=null}if(d.contains(e)){d.onUpdate(e,Ext.data.Model.COMMIT,f);d.fireEvent("update",d,e,Ext.data.Model.COMMIT,f)}},afterErase:function(b){this.onErase(b)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,onDestroy:function(){var c=this,d=c.getProxy();c.clearLoadTask();c.getData().destroy();c.data=null;c.setProxy(null);if(d.autoCreated){d.destroy()}c.setModel(null)},hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(c){var d=this;if(d.autoSyncSuspended&&!--d.autoSyncSuspended){if(c){d.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){Ext.asapCancel(this.loadTimer);this.pendingLoadOptions=this.loadTimer=null},cleanRemoved:function(){var f=this.getRawRemovedRecords(),e,d;if(f){for(d=0,e=f.length;d<e;++d){f[d].unjoin(this)}f.length=0}},createOperation:function(i,g){var h=this,f=h.getProxy(),j;if(!h.proxyListeners){j={scope:h,destroyable:true,beginprocessresponse:h.beginUpdate,endprocessresponse:h.endUpdate};if(!h.disableMetaChangeEvent){j.metachange=h.onMetaChange}h.proxyListeners=f.on(j)}return f.createOperation(i,g)},createImplicitModel:function(g){var h=this,f={extend:h.implicitModel,statics:{defaultProxy:"memory"}},i,j;if(g){f.fields=g}j=Ext.define(null,f);h.setModel(j);i=h.getProxy();if(i){j.setProxy(i)}else{h.setProxy(j.getProxy())}},loadsSynchronously:function(){return this.getProxy().isSynchronous},onBeforeLoad:Ext.privateFn,removeFromRemoved:function(d){var c=this.getRawRemovedRecords();if(c){Ext.Array.remove(c,d);d.unjoin(this)}},setLoadOptions:function(f){var h=this,e,g;if(h.getRemoteFilter()){e=h.getFilters(false);if(e&&e.getCount()){f.filters=e.getRange()}}if(h.getRemoteSort()){g=h.getSorters(false);if(g&&g.getCount()){f.sorters=g.getRange()}}}}},1,0,0,0,0,0,[Ext.data,"ProxyStore"],0));(Ext.cmd.derive("Ext.data.LocalStore",Ext.Mixin,{mixinConfig:{id:"localstore"},config:{extraKeys:null},applyExtraKeys:function(e){var f,d=this.getData();d.setExtraKeys(e);e=d.getExtraKeys();for(f in e){this[f]=e[f]}},add:function(b){return this.insert(this.getCount(),arguments.length===1?b:arguments)},constructDataCollection:function(){return new Ext.util.Collection({rootProperty:"data"})},createModel:function(e){var d=this.getSession(),f;if(!e.isModel){f=this.getModel();e=new f(e,d)}return e},createFiltersCollection:function(){return this.getData().getFilters()},createSortersCollection:function(){var b=this.getData().getSorters();b.setSorterConfigure(this.addFieldTransform,this);return b},onCollectionSort:function(){this.onSorterEndUpdate()},onCollectionFilter:function(){this.onFilterEndUpdate()},notifySorterChange:function(){this.getData().onSorterChange()},forceLocalSort:function(){this.getData().onSortChange()},contains:function(b){return this.indexOf(b)>-1},each:function(j,k){var i=this.data.items,h=i.length,g,l;for(l=0;l<h;++l){g=i[l];if(j.call(k||g,g,l,h)===false){break}}},collect:function(f,g,j){var i=this,h=i.getData();if(j===true&&h.filtered){h=h.getSource()}return h.collect(f,"data",g)},getById:function(c){var d=this.getData();if(d.filtered){d=d.getSource()}return d.get(c)||null},getByInternalId:function(e){var f=this.getData(),d;if(f.filtered){if(!f.$hasExtraKeys){d=this.makeInternalKeyCfg();f.setExtraKeys(d);f.$hasExtraKeys=true}f=f.getSource()}if(!f.$hasExtraKeys){f.setExtraKeys(d||this.makeInternalKeyCfg());f.$hasExtraKeys=true}return f.byInternalId.get(e)||null},getDataSource:function(){var b=this.getData();return b.getSource()||b},indexOf:function(b){return this.getData().indexOf(b)},indexOfId:function(b){return this.indexOf(this.getById(b))},insert:function(j,f){var h=this,g,i;if(f){if(!Ext.isIterable(f)){f=[f]}else{f=Ext.Array.clone(f)}g=f.length}if(!g){return[]}for(i=0;i<g;++i){f[i]=h.createModel(f[i])}h.getData().insert(j,f);return f},queryBy:function(d,e){var f=this.getData();return(f.getSource()||f).createFiltered(d,e)},query:function(j,k,i,h,g){var l=this.getData();return(l.getSource()||l).createFiltered(j,k,i,h,g)},first:function(b){return this.getData().first(b)||null},last:function(b){return this.getData().last(b)||null},sum:function(f,e){var d=this.getData();return(e&&this.isGrouped())?d.sumByGroup(f):d.sum(f)},count:function(d){var c=this.getData();return(d&&this.isGrouped())?c.countByGroup():c.count()},min:function(f,e){var d=this.getData();return(e&&this.isGrouped())?d.minByGroup(f):d.min(f)},max:function(f,e){var d=this.getData();return(e&&this.isGrouped())?d.maxByGroup(f):d.max(f)},average:function(f,e){var d=this.getData();return(e&&this.isGrouped())?d.averageByGroup(f):d.average(f)},aggregate:function(n,i,p,m){var o=this,t,q,s,l,r;if(p&&o.isGrouped()){t=o.getGroups().items;q=t.length;s={};for(r=0;r<q;++r){l=t[r];s[l.getGroupKey()]=o.getAggregate(n,i||o,l.items,m)}return s}else{return o.getAggregate(n,i,o.getData().items,m)}},getAggregate:function(k,l,n,j){var h=[],i=n.length,m;for(m=0;m<i;++m){h[m]=n[m].get(j)}return k.call(l||this,n,h)},addObserver:function(d){var c=this.observers;if(!c){this.observers=c=new Ext.util.Collection()}c.add(d)},removeObserver:function(d){var c=this.observers;if(c){c.remove(d)}},callObservers:function(l,o){var k=this.observers,j,p,n,i,m;if(k){p=k.items;if(o){o.unshift(this)}else{o=[this]}for(n=0,j=p.length;n<j;++n){m=p[n];i="onSource"+l;if(m[i]){m[i].apply(m,o)}}}},queryRecordsBy:function(l,m){var j=this.getData(),k=[],i,n,h;j=(j.getSource()||j).items;m=m||this;for(n=0,i=j.length;n<i;++n){h=j[n];if(l.call(m,h)===true){k.push(h)}}return k},queryRecords:function(j,k){var l=this.getData(),m=[],i,n,h;l=(l.getSource()||l).items;for(n=0,i=l.length;n<i;++n){h=l[n];if(h.get(j)===k){m.push(h)}}return m},privates:{isLast:function(b){return b===this.last()},makeInternalKeyCfg:function(){return{byInternalId:{property:"internalId",rootProperty:""}}}}},0,0,0,0,0,0,[Ext.data,"LocalStore"],0));(Ext.cmd.derive("Ext.data.proxy.Server",Ext.data.proxy.Proxy,{alternateClassName:"Ext.data.ServerProxy",isRemote:true,config:{url:"",pageParam:"page",startParam:"start",limitParam:"limit",groupParam:"group",groupDirectionParam:"groupDir",sortParam:"sort",filterParam:"filter",directionParam:"dir",idParam:"id",simpleSortMode:false,simpleGroupMode:false,noCache:true,cacheString:"_dc",timeout:30000,api:{create:undefined,read:undefined,update:undefined,destroy:undefined},extraParams:{}},create:function(){return this.doRequest.apply(this,arguments)},read:function(){return this.doRequest.apply(this,arguments)},update:function(){return this.doRequest.apply(this,arguments)},erase:function(){return this.doRequest.apply(this,arguments)},setExtraParam:function(e,d){var f=this.getExtraParams();f[e]=d;this.fireEvent("extraparamschanged",f)},updateExtraParams:function(c,d){this.fireEvent("extraparamschanged",c)},buildRequest:function(i){var k=this,h=Ext.apply({},i.getParams()),j=Ext.applyIf(h,k.getExtraParams()||{}),l,m,n;Ext.applyIf(j,k.getParams(i));m=i.getId();n=k.getIdParam();if(m!==undefined&&j[n]===undefined){j[n]=m}l=new Ext.data.Request({params:j,action:i.getAction(),records:i.getRecords(),url:i.getUrl(),operation:i,proxy:k});l.setUrl(k.buildUrl(l));i.setRequest(l);return l},processResponse:function(k,p,l,i){var m=this,o,j,n;m.fireEvent("beginprocessresponse",m,i,p);if(k===true){j=m.getReader();if(i.status===204){n=j.getNullResultSet()}else{n=j.read(m.extractResponseData(i),{recordCreator:p.getRecordCreator()})}p.process(n,l,i);o=!p.wasSuccessful()}else{m.setException(p,i);o=true}if(o){m.fireEvent("exception",m,i,p)}m.afterRequest(l,k);m.fireEvent("endprocessresponse",m,i,p)},setException:function(c,d){c.setException({status:d.status,statusText:d.statusText,response:d})},extractResponseData:Ext.identityFn,applyEncoding:function(b){return Ext.encode(b)},encodeSorters:function(h,j){var g=[],i=h.length,f;for(f=0;f<i;f++){g[f]=h[f].serialize()}return this.applyEncoding(j?g[0]:g)},encodeFilters:function(i){var g=[],j=i.length,f,h;for(f=0;f<j;f++){g[f]=i[f].serialize()}return this.applyEncoding(g)},getParams:function(B){if(!B.isReadOperation){return{}}var v=this,w={},y=B.getGrouper(),P=B.getSorters(),D=B.getFilters(),I=B.getPage(),J=B.getStart(),x=B.getLimit(),F=v.getSimpleSortMode(),M=v.getSimpleGroupMode(),z=v.getPageParam(),L=v.getStartParam(),O=v.getLimitParam(),N=v.getGroupParam(),E=v.getGroupDirectionParam(),K=v.getSortParam(),A=v.getFilterParam(),C=v.getDirectionParam(),G,H;if(z&&I){w[z]=I}if(L&&(J||J===0)){w[L]=J}if(O&&x){w[O]=x}G=N&&y;if(G){if(M){w[N]=y.getProperty();w[E]=y.getDirection()}else{w[N]=v.encodeSorters([y],true)}}if(K&&P&&P.length>0){if(F){H=0;if(P.length>1&&G){H=1}w[K]=P[H].getProperty();w[C]=P[H].getDirection()}else{w[K]=v.encodeSorters(P)}}if(A&&D&&D.length>0){w[A]=v.encodeFilters(D)}return w},buildUrl:function(f){var d=this,e=d.getUrl(f);if(d.getNoCache()){e=Ext.urlAppend(e,Ext.String.format("{0}={1}",d.getCacheString(),Ext.Date.now()))}return e},getUrl:function(c){var d;if(c){d=c.getUrl()||this.getApi()[c.getAction()]}return d?d:(arguments.callee.$previous||Ext.data.proxy.Proxy.prototype.getUrl).call(this)},doRequest:function(b){},afterRequest:Ext.emptyFn,destroy:function(){Ext.data.proxy.Proxy.prototype.destroy.call(this);Ext.destroy(this.getReader(),this.getWriter());this.reader=this.writer=null}},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(i){var m=this,l=m.getWriter(),n=m.buildRequest(i),j=m.getMethod(n),h,k;if(l&&i.allowWrite()){n=l.write(n)}n.setConfig({binary:m.getBinary(),headers:m.getHeaders(),timeout:m.getTimeout(),scope:m,callback:m.createRequestCallback(n,i),method:j,useDefaultXhrHeader:m.getUseDefaultXhrHeader(),disableCaching:false});if(j.toUpperCase()!=="GET"&&m.getParamsAsJson()){k=n.getParams();if(k){h=n.getJsonData();if(h){h=Ext.Object.merge({},h,k)}else{h=k}n.setJsonData(h);n.setParams(undefined)}}if(m.getWithCredentials()){n.setWithCredentials(true);n.setUsername(m.getUsername());n.setPassword(m.getPassword())}return m.sendRequest(n)},sendRequest:function(b){b.setRawRequest(Ext.Ajax.request(b.getCurrentConfig()));this.lastRequest=b;return b},abort:function(b){b=b||this.lastRequest;if(b){Ext.Ajax.abort(b.getRawRequest())}},getMethod:function(f){var h=this.getActionMethods(),e=f.getAction(),g;if(h){g=h[e]}return g||this.defaultActionMethods[e]},createRequestCallback:function(f,e){var d=this;return function(b,a,c){if(f===d.lastRequest){d.lastRequest=null}d.processResponse(a,e,f,c)}},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()},readRecords:function(i,j,g){var f=this,h;if(f.getMeta){h=f.getMeta(i);if(h){f.onMetaChange(h)}}else{if(i.metaData){f.onMetaChange(i.metaData)}}return Ext.data.reader.Reader.prototype.readRecords.call(this,i,j,g)},getResponseData:function(e){var d;try{return Ext.decode(e.responseText)}catch(f){d=this.createReadError(f.message);Ext.Logger.warn("Unable to parse the JSON returned by the server");this.fireEvent("exception",this,e,d);return d}},buildExtractors:function(){var f=this,e,d;if(Ext.data.reader.Reader.prototype.buildExtractors.apply(this,arguments)){e=f.getMetaProperty();d=f.getRootProperty();if(d){f.getRoot=f.getAccessor(d)}else{f.getRoot=Ext.identityFn}if(e){f.getMeta=f.getAccessor(e)}}},extractData:function(h,j){var i=this.getRecord(),k=[],l,g;if(i){l=h.length;if(!l&&Ext.isObject(h)){l=1;h=[h]}for(g=0;g<l;g++){k[g]=h[g][i]}}else{k=h}return Ext.data.reader.Reader.prototype.extractData.call(this,k,j)},getModelData:function(b){return this.getPreserveRawData()?Ext.apply({},b):b},createAccessor:(function(){var b=/[\[\.]/;return function(c){var w=this,F=w.getUseSimpleAccessors(),D,G,z,C,E,i,H,u,v,y,x,B,a,A;if(!(c||c===0)){return}if(typeof c==="function"){return c}if(!F){D=String(c).search(b)}if(F===true||D<0){G=function(d){return d[c]}}else{z="raw";C=[];E="";i=0;A=c.length;for(B=0;B<=A;++B){x=c[B];H=x===".";u=x==="[";v=x==="]";y=H||u||v||!x;if(!y||i>1||(i&&!v)){E+=x}else{if(y){a=false;if(u){++i}else{if(v){--i;a=true}}if(E){if(a){E="["+E+"]"}else{E="."+E}z+=E;C.push(""+z);E=""}}}}G=C.join(" && ");G=Ext.functionFactory("raw","return "+G)}return G}}()),createFieldAccessor:function(h){var f=this,g=h.mapping,j=g||g===0,i=j?g:h.name;if(j){if(typeof i==="function"){return function(a){return h.mapping(a,f)}}else{return f.createAccessor(i)}}},getAccessorKey:function(c){var d=this.getUseSimpleAccessors()?"simple":"";return this.$className+d+c},privates:{copyFrom:function(b){Ext.data.reader.Reader.prototype.copyFrom.call(this,b);this.getRoot=b.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(o){var q=o.length,n=0,j,r,m,p,l,i=function(c,b){var a={};a[c]=b;return a};for(;n<q;n++){j=o[n];for(r in j){if(j.hasOwnProperty(r)){m=r.split(".");p=m.length-1;if(p>0){l=j[r];for(;p>0;p--){l=i(m[p],l)}j[m[0]]=j[m[0]]||{};Ext.Object.merge(j[m[0]],l);delete j[r]}}}}return o},writeRecords:function(l,k){var m=this,i=m.getRootProperty(),n,j,h;if(m.getExpandData()){k=m.getExpandedData(k)}if(m.getAllowSingle()&&k.length===1){k=k[0];j=true}h=this.getTransform();if(h){k=h(k,l)}if(m.getEncode()){if(i){l.setParam(i,Ext.encode(k))}else{}}else{if(j||(k&&k.length)){n=l.getJsonData()||{};if(i){n[i]=k}else{n=k}l.setJsonData(n)}}return l}},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},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(d){var c=this;c.sortFn=Ext.util.Sorter.createComparator(c);Ext.util.Collection.prototype.constructor.call(this,d);c.setDecoder(c.decodeSorter)},addSort:function(n,o,t){var p=this,s,r,u,l,v,m,q;if(!n){p.beginUpdate();p.endUpdate()}else{l=p.getOptions();if(n instanceof Array){q=n;t=o;o=null}else{if(Ext.isString(n)){if(!(m=p.get(n))){q=[{property:n,direction:o||l.getDefaultSortDirection()}]}else{q=[m]}}else{if(Ext.isFunction(n)){q=[{sorterFn:n,direction:o||l.getDefaultSortDirection()}]}else{q=[n];t=o;o=null}}}t=p._sortModes[t||"replace"];v=p.getAt(0);s=p.length;r=t.append?s:0;p.beginUpdate();p.splice(r,t.replace?s:0,q);if(t.multi){s=p.length;u=l.getMultiSortLimit();if(s>u){p.removeAt(u,s)}}if(m&&o){m.setDirection(o)}else{if(r===0&&v&&v===p.getAt(0)){v.toggle()}}p.endUpdate()}},clear:function(){this.beginUpdate();Ext.util.Collection.prototype.clear.call(this);this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(h){var f=this.items,g=f.length,j,i;for(j=0;j<g;++j){i=f[j];if(i.getProperty()===h){return i}}return null},_sortModes:{append:{append:1},multi:{multi:1},prepend:{prepend:1},replace:{replace:1}},decodeSorter:function(k,r){var m=this,j=m.getOptions(),l=j.getRootProperty(),q=m.getSorterOptionsFn(),p,n,o;if(k.isSorter){if(!k.getRoot()){k.setRoot(l)}}else{n={direction:j.getDefaultSortDirection(),root:l};o=typeof k;if(o==="string"){p=m.get(k);if(p){return p}n.property=k}else{if(o==="function"){n.sorterFn=k}else{n=Ext.apply(n,k);if(n.fn){n.sorterFn=n.fn;delete n.fn}}}k=Ext.create(r||"Ext.util.Sorter",n)}if(q){q.call(m.getSorterOptionsScope()||m,k)}return k},setSorterConfigure:function(c,d){this.setSorterOptionsFn(c);this.setSorterOptionsScope(d)},decodeRemoveItems:function(r,u){var p=this,t=(u===undefined)?r:r[u];if(!t||!t.$cloned){if(r.length>u+1||!Ext.isIterable(t)){t=Ext.Array.slice(r,u)}var o=p.items,s=t.length,v=[],w,n,x,i,q;for(w=0;w<s;w++){i=t[w];if(i&&i.isSorter){v.push(i)}else{q=typeof i;if(q==="string"){i=p.get(i);if(i){v.push(i)}}else{if(q==="function"){for(x=o.length;x-->0;){n=o[x];if(n.getSorterFn()===i){v.push(n)}}}}}}t=v;t.$cloned=true}return t},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(d){var c=this;c.filterFn=Ext.util.Filter.createFilterFn(c);Ext.util.Collection.prototype.constructor.call(this,d);c.setDecoder(c.decodeFilter)},filterData:function(b){return this.filtered?Ext.Array.filter(b,this.filterFn):b},getFilterFn:function(){return this.filterFn},isItemFiltered:function(b){return !this.filterFn(b)},decodeFilter:function(h){var e=this.getOptions(),f=e.getRootProperty(),g;if(h.isFilter){if(!h.getRoot()){h.setRoot(f)}}else{g={root:f};if(Ext.isFunction(h)){g.filterFn=h}else{g=Ext.apply(g,h);if(g.fn){g.filterFn=g.fn;delete g.fn}if(Ext.util.Filter.isInvalid(g)){return false}}h=new Ext.util.Filter(g)}return h},decodeRemoveItems:function(t,x){var n=this,w=(x===undefined)?t:t[x];if(!w.$cloned){if(t.length>x+1||!Ext.isIterable(w)){w=Ext.Array.slice(t,x)}var B=n.items,u=w.length,z=[],E,A,D,v,F,i,y,C,s;for(A=0;A<u;A++){E=w[A];if(E&&E.isFilter){z.push(E)}else{s=typeof E;D=s==="function";v=E.property!==undefined&&E.value!==undefined;F=s==="string";for(C=B.length;C-->0;){i=B[C];y=false;if(F){y=i.getProperty()===E}else{if(D){y=i.getFilterFn()===E}else{if(v){y=i.getProperty()===E.property&&i.getValue()===E.value}}}if(y){z.push(i)}}}}w=z;w.$cloned=true}return w},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,onCollectionAdd:function(c,d){this.addItemsToGroups(c,d.items)},onCollectionBeforeItemChange:function(c,d){this.changeDetails=d},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(f,e){var d=e.item;if(!e.indexChanged){this.syncItemGrouping(f,d,f.getKey(d),e.oldKey,e.oldIndex)}this.changeDetails=null},onCollectionRefresh:function(b){this.removeAll();this.addItemsToGroups(b,b.items)},onCollectionRemove:function(v,u){var p=this,m=p.changeDetails,q,o,n,r,t,s,i;if(m){i=m.item;n=p.findGroupForItem(i);q=[];if(n){q.push({group:n,items:[i]})}}else{q=p.groupItems(v,u.items,false)}for(r=0,t=q.length;r<t;++r){n=(o=q[r]).group;if(n){n.remove(o.items);if(!n.length){(s||(s=[])).push(n)}}}if(s){p.remove(s)}},onCollectionSort:function(l){var m=this,j=l.getSorters(false),i,n,h,k;if(j){i=m.items;n=m.length;for(h=0;h<n;++h){k=i[h];if(k.getSorters()!==j){k.setSorters(j)}}}},onCollectionUpdateKey:function(g,e){var f=e.index,h=e.item;if(!e.indexChanged){f=g.indexOf(h);this.syncItemGrouping(g,h,e.newKey,e.oldKey,f)}},addItemsToGroups:function(c,d){this.groupItems(c,d,true)},groupItems:function(E,w,C){var v=this,F={},y=[],D=E.getGrouper(),t=v.itemGroupKeys,u,s,i,z,r,B,x,A;for(z=0,x=w.length;z<x;++z){i=D.getGroupString(r=w[z]);B=E.getKey(r);if(C){(t||(v.itemGroupKeys=t={}))[B]=i}else{if(t){delete t[B]}}if(!(u=F[i])){if(!(s=v.getByKey(i))&&C){(A||(A=[])).push(s=v.createGroup(E,i))}y.push(F[i]=u={group:s,items:[]})}u.items.push(r)}for(z=0,x=y.length;z<x;++z){u=y[z];u.group.add(u.items)}if(A){v.add(A)}return y},syncItemGrouping:function(F,r,A,x,E){var t=this,w=t.itemGroupKeys||(t.itemGroupKeys={}),D=F.getGrouper(),q=D.getGroupString(r),z=0,u=-1,v,s,B,y,C;if(x){y=w[x];delete w[x]}else{y=w[A]}w[A]=q;if(!(s=t.get(q))){s=t.createGroup(F,q);v=[s]}if(s.get(A)!==r){if(s.getCount()>0&&F.getSorters().getCount()===0){C=F.indexOf(s.items[0]);if(E<C){u=0}else{u=E-C}}if(u===-1){s.add(r)}else{s.insert(u,r)}}else{s.itemChanged(r)}if(q!==y&&(y===0||y)){B=t.get(y);if(B){B.remove(r);if(!B.length){z=[B]}}}if(v){t.splice(0,z,v)}else{if(z){t.splice(0,z)}}},createGroup:function(d,e){var f=new Ext.util.Group({groupKey:e,rootProperty:this.getItemRoot(),sorters:d.getSorters()});return f},getKey:function(b){return b.getGroupKey()},createSortFn:function(){var f=this,e=f.getGrouper(),d=f.getSorters().getSortFn();if(!e){return d}return function(b,a){return e.sort(b.items[0],a.items[0])||d(b,a)}},updateGrouper:function(d){var c=this;c.grouped=!!(d&&c.$groupable.getAutoGroup());c.onSorterChange();c.onEndUpdateSorters(c.getSorters())},destroy:function(){this.$groupable=null;Ext.util.Collection.prototype.destroy.call(this)},privates:{findGroupForItem:function(i){var f=this.items,g=f.length,j,h;for(j=0;j<g;++j){h=f[j];if(h.contains(i)){return h}}}}},0,0,0,0,0,0,[Ext.util,"GroupCollection"],0));(Ext.cmd.derive("Ext.data.Store",Ext.data.ProxyStore,{config:{data:0,clearRemovedOnLoad:true,clearOnPageLoad:true,associatedEntity:null,role:null,session:null},addRecordsOptions:{addRecords:true},loadCount:0,complete:false,moveMapCount:0,constructor:function(e){var d=this,f;if(e){if(e.buffered){return new Ext.data.BufferedStore(e)}}Ext.data.ProxyStore.prototype.constructor.call(this,e);d.getData().addObserver(d);f=d.inlineData;if(f){delete d.inlineData;d.loadInlineData(f)}},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},applyData:function(f,e){var d=this;d.getFields();d.getModel();if(f&&f.isCollection){e=f}else{if(!e){e=d.constructDataCollection()}if(f){if(d.isInitializing){d.inlineData=f}else{d.loadData(f)}}}return e},loadInlineData:function(f){var d=this,e=d.getProxy();if(e&&e.isMemoryProxy){e.setData(f);d.suspendEvents();d.read();d.resumeEvents()}else{d.removeAll(true);d.suspendEvents();d.loadData(f);d.resumeEvents()}},onCollectionAdd:function(c,d){this.onCollectionAddItems(c,d.items,d)},onCollectionFilterAdd:function(c,d){this.onCollectionAddItems(c,d)},onCollectionAddItems:function(w,A,B){var s=this,u=A.length,q=B?!B.next:false,v=s.removed,x=s.ignoreCollectionAdd,t=s.getSession(),i=B&&B.replaced,z,r,y,p;for(z=0;z<u;++z){y=A[z];if(t){t.adopt(y)}if(!x){y.join(s);if(v&&v.length){Ext.Array.remove(v,y)}r=r||y.phantom||y.dirty}}if(x){return}if(i){p=[];do{Ext.Array.push(p,i.items);i=i.next}while(i);s.setMoving(p,true)}if(B){if(B.replaced){if(q){s.fireEvent("refresh",s)}}else{s.fireEvent("add",s,A,B.at);if(q){s.fireEvent("datachanged",s)}}}if(p){s.setMoving(p,false)}s.needsSync=s.needsSync||r},onCollectionFilteredItemChange:function(){this.onCollectionItemChange.apply(this,arguments)},onCollectionItemChange:function(i,j){var k=this,h=j.item,l=j.modified||null,g=j.meta;if(k.fireChangeEvent(h)){k.onUpdate(h,g,l,j);k.fireEvent("update",k,h,g,l,j)}},fireChangeEvent:function(b){return this.getDataSource().contains(b)},afterChange:function(e,f,d){this.getData().itemChanged(e,f||null,undefined,d)},afterCommit:function(d,c){this.afterChange(d,c,Ext.data.Model.COMMIT)},afterEdit:function(d,c){this.needsSync=this.needsSync||d.dirty;this.afterChange(d,c,Ext.data.Model.EDIT)},afterReject:function(b){this.afterChange(b,null,Ext.data.Model.REJECT)},afterDrop:function(b){this.getData().remove(b)},afterErase:function(b){this.removeFromRemoved(b)},addSorted:function(g){var j=this,h=j.getRemoteSort(),i=j.getData(),f;if(h){i.setSorters(j.getSorters())}f=i.findInsertionIndex(g);if(h){i.setSorters(null)}return j.insert(f,g)},remove:function(q,i,l){var k=this,p=k.getDataSource(),m,o,r,n;if(q){if(q.isModel){if(p.indexOf(q)>-1){r=[q];m=1}else{m=0}}else{r=[];for(o=0,m=q.length;o<m;++o){n=q[o];if(n&&n.isEntity){if(!p.contains(n)){continue}}else{if(!(n=p.getAt(n))){continue}}r.push(n)}m=r.length}}if(!m){return[]}k.removeIsMove=i===true;k.removeIsSilent=l;p.remove(r);k.removeIsSilent=false;return r},onCollectionRemove:function(v,B){var q=this,u=q.removed,z=B.items,s=z.length,t=B.at,A=B.replacement,i=q.removeIsMove||(A&&Ext.Array.equals(z,A.items)),r=q.removeIsSilent,p=!B.next,x=q.getDataSource(),y,w;if(q.ignoreCollectionRemove){return}if(A){q.setMoving(A.items,true)}for(y=0;y<s;++y){w=z[y];if(!x.contains(w)){if(u&&!i&&!w.phantom&&!w.erasing){w.removedFrom=t+y;u.push(w);q.needsSync=true}else{w.unjoin(q)}}}if(!r){if(!A||!A.items.length){q.fireEvent("remove",q,z,t,i);if(p){q.fireEvent("datachanged",q)}}}if(A){q.setMoving(A.items,false)}},onFilterEndUpdate:function(){Ext.data.ProxyStore.prototype.onFilterEndUpdate.apply(this,arguments);this.callObservers("Filter")},removeAt:function(e,d){var f=this.getData();e=Math.max(e,0);if(e<f.length){if(arguments.length===1){d=1}else{if(!d){return}}f.removeAt(e,d)}},removeAll:function(f){var j=this,i=j.getData(),h=j.hasListeners.clear,g=i.getRange();if(i.length){j.removeIsSilent=true;j.callObservers("BeforeRemoveAll");i.removeAll();j.removeIsSilent=false;if(!f){j.fireEvent("clear",j,g);j.fireEvent("datachanged",j)}j.callObservers("AfterRemoveAll",[!!f])}return g},setRecords:function(d){var c=this.getCount();++this.loadCount;if(c){this.getData().splice(0,c,d)}else{this.add(d)}},splice:function(e,f,d){return this.getData().splice(e,f,d)},onProxyLoad:function(f){var i=this,j=f.getResultSet(),g=f.getRecords(),h=f.wasSuccessful();if(i.destroyed){return}if(j){i.totalCount=j.getTotal()}if(h){g=i.processAssociation(g);i.loadRecords(g,f.getAddRecords()?{addRecords:true}:undefined)}else{i.loading=false}if(i.hasListeners.load){i.fireEvent("load",i,g,h,f)}i.callObservers("AfterLoad",[g,h,f])},filterDataSource:function(j){var i=this.getDataSource(),g=i.items,h=g.length,l=[],k;for(k=0;k<h;k++){if(j.call(i,g[k])){l.push(g[k])}}return l},getNewRecords:function(){return this.filterDataSource(this.filterNew)},getRejectRecords:function(){return this.filterDataSource(this.filterRejects)},getUpdatedRecords:function(){return this.filterDataSource(this.filterUpdated)},loadData:function(i,h){var j=this,k=i.length,l=[],g;for(g=0;g<k;g++){l.push(j.createModel(i[g]))}l=j.processAssociation(l);j.loadRecords(l,h?j.addRecordsOptions:undefined)},loadRawData:function(l,h){var m=this,k=m.getSession(),i=m.getProxy().getReader().read(l,k?{recordCreator:k.recordCreator}:undefined),n=i.getRecords(),j=i.getSuccess();if(j){m.totalCount=i.getTotal();m.loadRecords(n,h?m.addRecordsOptions:undefined)}return j},loadRecords:function(j,p){var l=this,m=j.length,k=l.getData(),n,o,i;if(p){n=p.addRecords}if(!l.getRemoteSort()&&!l.getSortOnLoad()){i=true;k.setAutoSort(false)}if(!n){l.clearData(true)}l.loading=false;l.ignoreCollectionAdd=true;l.callObservers("BeforePopulate");k.add(j);l.ignoreCollectionAdd=false;if(i){k.setAutoSort(true)}for(o=0;o<m;o++){j[o].join(l)}++l.loadCount;l.complete=true;l.fireEvent("datachanged",l);l.fireEvent("refresh",l);l.callObservers("AfterPopulate")},loadPage:function(g,f){var h=this,e=h.getPageSize();h.currentPage=g;f=Ext.apply({page:g,start:(g-1)*e,limit:e,addRecords:!h.getClearOnPageLoad()},f);h.read(f)},nextPage:function(b){this.loadPage(this.currentPage+1,b)},previousPage:function(b){this.loadPage(this.currentPage-1,b)},clearData:function(r){var l=this,n=l.removed,q=l.getDataSource(),m=l.getClearRemovedOnLoad(),i=n&&r&&!m,t,p,s,o;if(q){t=q.items;for(s=0,o=t.length;s<o;++s){p=t[s];if(i&&Ext.Array.contains(n,p)){continue}p.unjoin(l)}l.ignoreCollectionRemove=true;l.callObservers("BeforeClear");q.removeAll();l.ignoreCollectionRemove=false;l.callObservers("AfterClear")}if(n&&(!r||m)){n.length=0}},onIdChanged:function(f,d,e){this.getData().updateKey(f,d);this.fireEvent("idchanged",this,f,d,e)},commitChanges:function(){var h=this,g=h.getModifiedRecords(),f=g.length,e=0;Ext.suspendLayouts();h.beginUpdate();for(;e<f;e++){g[e].commit()}h.cleanRemoved();h.endUpdate();Ext.resumeLayouts(true)},filterNewOnly:function(b){return b.phantom===true},filterRejects:function(b){return b.phantom||b.dirty},rejectChanges:function(){var k=this,i=k.getRejectRecords(),m=i.length,o,q,r,l,p,n;Ext.suspendLayouts();k.beginUpdate();for(o=0;o<m;o++){q=i[o];if(q.phantom){r=r||[];r.push(q)}else{q.reject()}}if(r){k.remove(r);for(o=0,m=r.length;o<m;++o){r[o].reject()}}i=k.getRawRemovedRecords();if(i){m=i.length;l=!k.getRemoteSort()&&k.isSorted();if(l){p=k.getData();n=p.getAutoSort();p.setAutoSort(false)}for(o=m-1;o>=0;o--){q=i[o];q.reject();if(!l){k.insert(q.removedFrom||0,q)}}if(l){p.setAutoSort(n);k.add(i)}i.length=0}k.endUpdate();Ext.resumeLayouts(true)},onDestroy:function(){var e=this,f=e.loadTask,g=e.getData(),h=g.getSource();e.clearData();Ext.data.ProxyStore.prototype.onDestroy.call(this);e.setSession(null);e.observers=null;if(f){f.cancel();e.loadTask=null}if(h){h.destroy()}},privates:{fetch:function(c){c=Ext.apply({},c);this.setLoadOptions(c);var d=this.createOperation("read",c);d.execute()},onBeforeLoad:function(b){this.callObservers("BeforeLoad",[b])},onRemoteFilterSet:function(d,c){if(d){this.getData().setFilters(c?null:d)}Ext.data.ProxyStore.prototype.onRemoteFilterSet.call(this,d,c)},onRemoteSortSet:function(d,f){var e=this.getData();if(d){e.setSorters(f?null:d)}e.setAutoGroup(!f);Ext.data.ProxyStore.prototype.onRemoteSortSet.call(this,d,f)},isMoving:function(l,j){var i=this.moveMap,g=0,h,k;if(i){if(l){if(Ext.isArray(l)){for(k=0,h=l.length;k<h;++k){g+=i[l[k].id]?1:0}}else{if(i[l.id]){++g}}}else{g=j?i:this.moveMapCount}}return g},setLoadOptions:function(j){var i=this,g=i.getPageSize(),h,f;if(i.getRemoteSort()&&!j.grouper){f=i.getGrouper();if(f){j.grouper=f}}if(g||"start" in j||"limit" in j||"page" in j){j.page=j.page!=null?j.page:i.currentPage;j.start=(j.start!==undefined)?j.start:(j.page-1)*g;j.limit=j.limit!=null?j.limit:g;i.currentPage=j.page}j.addRecords=j.addRecords||false;if(!j.recordCreator){h=i.getSession();if(h){j.recordCreator=h.recordCreator}}Ext.data.ProxyStore.prototype.setLoadOptions.call(this,j)},setMoving:function(h,k){var m=this,l=m.moveMap||(m.moveMap={}),i=h.length,n,j;for(n=0;n<i;++n){j=h[n].id;if(k){if(l[j]){++l[j]}else{l[j]=1;++m.moveMapCount}}else{if(--l[j]===0){delete l[j];--m.moveMapCount}}}if(m.moveMapCount===0){m.moveMap=null}},processAssociation:function(e){var f=this,d=f.getAssociatedEntity();if(d){e=f.getRole().processLoad(f,d,e,f.getSession())}return e}}},1,0,0,0,["store.store"],[[Ext.data.LocalStore.prototype.mixinId||Ext.data.LocalStore.$className,Ext.data.LocalStore]],[Ext.data,"Store"],0));(Ext.cmd.derive("Ext.data.reader.Array",Ext.data.reader.Json,{alternateClassName:"Ext.data.ArrayReader",config:{totalProperty:undefined,successProperty:undefined},createFieldAccessor:function(g){var e=g.mapping,h=g.hasMapping()?e:g.ordinal,f;g.mapping=h;f=Ext.data.reader.Json.prototype.createFieldAccessor.apply(this,arguments);g.mapping=e;return f},getModelData:function(b){return{}}},0,0,0,0,["reader.array"],0,[Ext.data.reader,"Array",Ext.data,"ArrayReader"],0));(Ext.cmd.derive("Ext.data.ArrayStore",Ext.data.Store,{alternateClassName:["Ext.data.SimpleStore"],config:{proxy:{type:"memory",reader:"array"}},loadData:function(h,g){if(this.expandData){var i=[],f=0,j=h.length;for(;f<j;f++){i[i.length]=[h[f]]}h=i}Ext.data.Store.prototype.loadData.call(this,h,g)}},0,0,0,0,["store.array"],0,[Ext.data,"ArrayStore",Ext.data,"SimpleStore"],0));(Ext.cmd.derive("Ext.data.StoreManager",Ext.util.MixedCollection,{alternateClassName:["Ext.StoreMgr","Ext.data.StoreMgr","Ext.StoreManager"],singleton:true,register:function(){for(var d=0,c;(c=arguments[d]);d++){this.add(c)}},unregister:function(){for(var d=0,c;(c=arguments[d]);d++){this.remove(this.lookup(c))}},lookup:function(n,j){if(Ext.isArray(n)){var h=["field1"],l=!Ext.isArray(n[0]),k=n,m,i;if(l){k=[];for(m=0,i=n.length;m<i;++m){k.push([n[m]])}}else{for(m=2,i=n[0].length;m<=i;++m){h.push("field"+m)}}return new Ext.data.ArrayStore({data:k,fields:h,autoDestroy:true,autoCreated:true,expanded:l})}if(Ext.isString(n)){return this.get(n)}else{return Ext.Factory.store(n,j)}},getKey:function(b){return b.storeId}},0,0,0,0,0,0,[Ext.data,"StoreManager",Ext,"StoreMgr",Ext.data,"StoreMgr",Ext,"StoreManager"],function(){Ext.regStore=function(e,f){var a;if(Ext.isObject(e)){f=e}else{if(Ext.data.StoreManager.containsKey(e)){return Ext.data.StoreManager.lookup(e)}f.storeId=e}if(f instanceof Ext.data.Store){a=f}else{a=new Ext.data.Store(f)}Ext.data.StoreManager.register(a);return a};Ext.getStore=function(a){return Ext.data.StoreManager.lookup(a)};var b=Ext.regStore("ext-empty-store",{proxy:"memory",useModelWarning:false});b.isEmptyStore=true}));(Ext.cmd.derive("Ext.app.domain.Store",Ext.app.EventDomain,{singleton:true,type:"store",prefix:"store.",idMatchRe:/^\#/,constructor:function(){var b=this;b.callParent();b.monitor(Ext.data.AbstractStore)},match:function(g,e){var f=false,h=g.alias;if(e==="*"){f=true}else{if(this.idMatchRe.test(e)){f=g.getStoreId()===e.substring(1)}else{if(h){f=Ext.Array.indexOf(h,this.prefix+e)>-1}}}return f}},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(b){Ext.apply(this,b);this.queue=new Ext.util.MixedCollection()},queueAction:function(d,c){this.queue.add({route:d,args:c})},clearQueue:function(){this.queue.removeAll()},runQueue:function(){var e=this.queue,f=e.removeAt(0),d;if(f){d=f&&f.route;d.execute(this.token,f.args,this.onActionExecute,this)}},onActionExecute:function(b){if(b){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(d){var f=this,e;Ext.apply(f,d,{conditions:{}});e=f.url;f.paramMatchingRegex=new RegExp(/:([0-9A-Za-z\_]*)/g);f.paramsInMatchString=e.match(f.paramMatchingRegex)||[];f.matcherRegex=f.createMatcherRegex(e)},recognize:function(j){var i=this,g=i.controller,h,f;if((i.allowInactive||g.isActive())&&i.recognizes(j)){h=i.matchesFor(j);f=j.match(i.matcherRegex);f.shift();return Ext.applyIf(h,{controller:g,action:i.action,historyUrl:j,args:f})}return false},recognizes:function(b){return this.matcherRegex.test(b)},execute:function(p,l,k,o){var i=l.args||[],m=this.before,j=this.controller,n=this.createCallback(l,k,o);if(m){i.push(n);if(Ext.isString(m)){m=this.before=j[m]}if(m){m.apply(j,i)}}else{n.resume()}},matchesFor:function(l){var i={},j=this.paramsInMatchString,g=l.match(this.matcherRegex),k=0,h=j.length;g.shift();for(;k<h;k++){i[j[k].replace(":","")]=g[k]}return i},createMatcherRegex:function(t){var r=this.paramsInMatchString,m=this.conditions,q=0,o=r.length,l=Ext.util.Format.format,i=this.caseInsensitive?"i":"",s,n,p;for(;q<o;q++){s=r[q];n=m[s];p=l("{0}",n||"([%a-zA-Z0-9\\-\\_\\s,]+)");t=t.replace(new RegExp(s),p)}return new RegExp("^"+t+"$",i)},createCallback:function(f,g,e){var h=this;e=e||h;return{resume:function(){var c=h.controller,a=h.action,b;if(Ext.isString(a)){a=c[a]}f=f&&f.args?f.args:[];b=f.pop();if(b&&!Ext.isObject(b)){f.push(b)}if(a){h.action=a;a.apply(c,f)}if(g){g.call(e)}},stop:function(a){if(g){g.call(e,a)}}}}},1,0,0,0,0,0,[Ext.app.route,"Route"],0));(Ext.cmd.derive("Ext.util.History",Ext.Base,{singleton:true,alternateClassName:"Ext.History",useTopWindow:false,constructor:function(){var b=this;b.hiddenField=null;b.ready=false;b.currentToken=null;b.mixins.observable.constructor.call(b)},getHash:function(){return this.win.location.hash.substr(1)},setHash:function(c){try{this.win.location.hash=c;this.currentToken=c}catch(d){}},handleStateChange:function(b){this.currentToken=b;this.fireEvent("change",b)},startUp:function(){var b=this;b.currentToken=b.getHash();if(Ext.supports.Hashchange){Ext.get(b.win).on("hashchange",b.onHashChange,b)}else{Ext.TaskManager.start({fireIdleEvent:false,run:b.onHashChange,interval:50,scope:b})}b.ready=true;b.fireEvent("ready",b)},onHashChange:function(){var c=this,d=c.getHash();if(d!==c.hash){c.hash=d;c.handleStateChange(d)}},init:function(f,e){var d=this;if(d.ready){Ext.callback(f,e,[d]);return}if(!Ext.isReady){Ext.onInternalReady(function(){d.init(f,e)});return}d.win=d.useTopWindow?window.top:window;d.hash=d.getHash();if(f){d.on("ready",f,e,{single:true})}d.startUp()},add:function(f,e){var h=this,g=false;if(e===false||h.getToken()!==f){h.setHash(f);g=true}return g},back:function(){var b=this.useTopWindow?window.top:window;b.history.go(-1)},forward:function(){var b=this.useTopWindow?window.top:window;b.history.go(1)},getToken:function(){return this.ready?this.currentToken:this.getHash()}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.util,"History",Ext,"History"],0));(Ext.cmd.derive("Ext.app.route.Router",Ext.Base,{singleton:true,multipleToken:"|",queueRoutes:true,constructor:function(){var b=Ext.util.History;if(!b.ready){b.init()}b.on("change",this.onStateChange,this);this.clear()},onStateChange:function(y){var s=this,z=s.application,q=s.routes,v=q.length,i=s.queueRoutes,t=y.split(s.multipleToken),p=0,A=t.length,x,w,r,u,B;for(;p<A;p++){y=t[p];B=false;if(i){w=new Ext.app.route.Queue({token:y})}for(x=0;x<v;x++){r=q[x];u=r.recognize(y);if(u){B=true;if(i){w.queueAction(r,u)}else{r.execute(y,u)}}}if(i){w.runQueue()}if(!B&&z){z.fireEvent("unmatchedroute",y)}}},connect:function(h,g,f){var e={url:h,action:g,controller:f};if(Ext.isObject(g)){Ext.merge(e,g)}this.routes.push(new Ext.app.route.Route(e))},disconnectAll:function(l){var g=this.routes,h=g.length,j=[],i,k;for(i=0;i<h;++i){k=g[i];if(k.controller!==l){j.push(k)}}this.routes=j},recognize:function(j){var g=this.routes||[],i=0,h=g.length,l,k;for(;i<h;i++){l=g[i];k=l.recognize(j);if(k){return{route:l,args:k}}}return false},draw:function(b){b.call(this,this)},clear:function(){this.routes=[]}},1,0,0,0,0,0,[Ext.app.route,"Router"],0));(Ext.cmd.derive("Ext.app.Controller",Ext.app.BaseController,{statics:{strings:{model:{getter:"getModel",upper:"Model"},view:{getter:"getView",upper:"View"},controller:{getter:"getController",upper:"Controller"},store:{getter:"getStore",upper:"Store"},profile:{getter:"getProfile",upper:"Profiles"}},controllerRegex:/^(.*)\.controller\./,profileRegex:/^(.*)\.profile\./,createGetter:function(d,c){return function(){return this[d](c)}},getGetterName:function(l,h){var k="get",j=l.split("."),i=j.length,g;for(g=0;g<i;g++){k+=Ext.String.capitalize(j[g])}k+=h;return k},resolveNamespace:function(i,k){var j=Ext.app.Controller,l=i.prototype.isProfile?j.profileRegex:j.controllerRegex,m,n,h;m=Ext.getClassName(i);n=k.$namespace||k.namespace||Ext.app.getNamespace(m)||((h=l.exec(m))&&h[1]);return n},processDependencies:function(o,j,C,B,x,E){if(!x||!x.length){return}var w=this,s=w.strings[B],D,t,u,F,A,z,v,y;if(!Ext.isArray(x)){x=[x]}for(A=0,z=x.length;A<z;A++){F=x[A];D=w.getFullName(F,B,C,E);x[A]=t=D.absoluteName;u=D.shortName;j.push(t);v=w.getGetterName(u,s.upper);if(!o[v]){o[v]=y=w.createGetter(s.getter,F)}if(y&&B!=="controller"){y["Ext.app.getter"]=true}}},getFullName:function(n,k,l,m){var i=n,h,j;if((h=n.indexOf("@"))>0){i=n.substring(0,h);j=n.substring(h+1)+"."+i}else{if(n.indexOf(".")>0&&(Ext.ClassManager.isCreated(n)||this.hasRegisteredPrefix(n))){j=n}else{if(l){j=l+"."+k+"."+(m?m+"."+n:n);i=n}else{j=n}}}return{absoluteName:j,shortName:i}},hasRegisteredPrefix:function(e){var f=Ext.ClassManager,d=f.getPrefix(e);return d&&d!==e}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:true,moduleClassName:null},onClassExtended:function(e,h,f){var g=f.onBeforeCreated;f.onBeforeCreated=function(l,b){var a=Ext.app.Controller,d=[],k,c;c=l.prototype;k=a.resolveNamespace(l,b);if(k){c.$namespace=k}a.processDependencies(c,d,k,"model",b.models);a.processDependencies(c,d,k,"view",b.views);a.processDependencies(c,d,k,"store",b.stores);a.processDependencies(c,d,k,"controller",b.controllers);Ext.require(d,Ext.Function.pass(g,arguments,this))}},constructor:function(b){this.initAutoGetters();Ext.app.BaseController.prototype.constructor.apply(this,arguments)},normalizeRefs:function(d){var f=this,e=[];if(d){if(Ext.isObject(d)){Ext.Object.each(d,function(b,a){if(Ext.isString(a)){a={selector:a}}a.ref=b;e.push(a)})}else{if(Ext.isArray(d)){e=Ext.Array.merge(e,d)}}}d=f.refs;if(d){f.refs=null;d=f.normalizeRefs(d);if(d){e=Ext.Array.merge(e,d)}}return e},getRefMap:function(){var i=this,l=i._refMap,h,j,k,g;if(!l){h=i.getRefs();l=i._refMap={};if(h){for(g=0,k=h.length;g<k;g++){j=h[g];l[j.ref]=j.selector}}}return l},applyRefs:function(b){return this.normalizeRefs(Ext.clone(b))},updateRefs:function(b){if(b){this.ref(b)}},initAutoGetters:function(){var d=this.self.prototype,f,e;for(f in d){e=d[f];if(e&&e["Ext.app.getter"]){e.call(this)}}},doInit:function(c){var d=this;if(!d._initialized){d.init(c);d._initialized=true}},finishInit:function(i){var k=this,j=k.controllers,g,l,h;if(k._initialized&&j&&j.length){for(l=0,h=j.length;l<h;l++){g=k.getController(j[l]);g.finishInit(i)}}},init:Ext.emptyFn,onLaunch:Ext.emptyFn,activate:function(){this.setActive(true)},deactivate:function(){this.setActive(false)},isActive:function(){return this.getActive()},ref:function(i){var k=this,h=0,l=i.length,j,m,n;i=Ext.Array.from(i);k.references=k.references||[];for(;h<l;h++){j=i[h];m=j.ref;n="get"+Ext.String.capitalize(m);if(!k[n]){k[n]=Ext.Function.pass(k.getRef,[m,j],k)}k.references.push(m.toLowerCase())}},addRef:function(b){this.ref(b)},getRef:function(k,i,h){var l=this,j=l.refCache||(l.refCache={}),g=j[k];i=i||{};h=h||{};Ext.apply(i,h);if(i.forceCreate){return Ext.ComponentManager.create(i,"component")}if(!g){if(i.selector){j[k]=g=Ext.ComponentQuery.query(i.selector)[0]}if(!g&&i.autoCreate){j[k]=g=Ext.ComponentManager.create(i,"component")}if(g){g.on("beforedestroy",function(){j[k]=null})}}return g},hasRef:function(c){var d=this.references;return d&&Ext.Array.indexOf(d,c.toLowerCase())!==-1},getController:function(c){var d=this.getApplication();if(c===this.getId()){return this}return d&&d.getController(c)},getStore:function(f){var e,d;e=(f.indexOf("@")===-1)?f:f.split("@")[0];d=Ext.StoreManager.get(e);if(!d){f=Ext.app.Controller.getFullName(f,"store",this.$namespace);if(f){d=Ext.create(f.absoluteName,{id:e})}}return d},getModel:function(f){var d=Ext.app.Controller.getFullName(f,"model",this.$namespace),e=Ext.ClassManager.get(d.absoluteName);if(!e){e=Ext.data.schema.Schema.lookupEntity(f)}return e},getProfile:function(b){b=Ext.app.Controller.getFullName(b,"profile",this.$namespace);return b},getView:function(d){var c=Ext.app.Controller.getFullName(d,"view",this.$namespace);return c&&Ext.ClassManager.get(c.absoluteName)},ensureId:function(){var b=this.getId();if(!b){this.setId(this.getModuleClassName(this.$className,"controller"))}},destroy:function(h,g){var k=this,i=k.application,j,l;if(!g&&i){i.unregister(k)}k.application=null;if(h){j=k.refCache;for(l in j){if(j.hasOwnProperty(l)){Ext.destroy(j[l])}}}Ext.app.BaseController.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.app,"Controller"],0));(Ext.cmd.derive("Ext.app.Application",Ext.app.Controller,{isApplication:true,scope:undefined,namespaces:[],paths:null,config:{name:"",appProperty:"app",profiles:[],currentProfile:null,mainView:{$value:null,lazy:true},defaultToken:null,glyphFontFamily:null},onClassExtended:function(m,r,n){var s=Ext.app.Controller,q=m.prototype,k=[],p,l,t,o;t=r.name||m.superclass.name;if(t){r.$namespace=t;Ext.app.addNamespaces(t)}if(r.namespaces){Ext.app.addNamespaces(r.namespaces)}if(r["paths processed"]){delete r["paths processed"]}else{Ext.app.setupPaths(t,("appFolder" in r)?r.appFolder:m.superclass.appFolder,r.paths)}s.processDependencies(q,k,t,"profile",r.profiles);q.getDependencies(m,r,k);if(k.length){p=n.onBeforeCreated;n.onBeforeCreated=function(c,a){var b=Ext.Array.clone(arguments);Ext.require(k,function(){return p.apply(this,b)})}}},getDependencies:Ext.emptyFn,constructor:function(d){var c=this;Ext.app.route.Router.application=c;Ext.app.Controller.prototype.constructor.apply(this,arguments);c.doInit(c);c.initNamespace();Ext.on("appupdate",c.onAppUpdate,c,{single:true});this.onProfilesReady()},onAppUpdate:Ext.emptyFn,onProfilesReady:function(){var j=this,g=j.getProfiles(),k=g.length,i,l,h;for(l=0;l<k;l++){h=Ext.create(g[l],{application:j});if(h.isActive()&&!i){i=h;j.setCurrentProfile(i)}}if(i){i.init()}j.initControllers();j.onBeforeLaunch();j.finishInitControllers()},initNamespace:function(){var f=this,e=f.getAppProperty(),d;d=Ext.namespace(f.getName());if(d){d.getApplication=function(){return f};if(e){if(!d[e]){d[e]=f}}}},initControllers:function(){var i=this,h=Ext.Array.from(i.controllers),f=i.getCurrentProfile(),g,j;i.controllers=new Ext.util.MixedCollection();for(g=0,j=h.length;g<j;g++){i.getController(h[g])}if(f){h=f.getControllers();for(g=0,j=h.length;g<j;g++){i.getController(h[g])}}},finishInitControllers:function(){var h=this,g,e,f;g=h.controllers.getRange();for(e=0,f=g.length;e<f;e++){g[e].finishInit(h)}},launch:Ext.emptyFn,onBeforeLaunch:function(){var k=this,o=Ext.util.History,r=k.getDefaultToken(),m=k.getCurrentProfile(),q,l,c,n,p;k.initMainView();if(m){m.launch()}k.launch.call(k.scope||k);k.launched=true;k.fireEvent("launch",k);q=k.controllers.items;c=q.length;for(l=0;l<c;l++){n=q[l];n.onLaunch(k)}if(!o.ready){o.init()}p=o.getToken();if(p||p===r){Ext.app.route.Router.onStateChange(p)}else{if(r){o.add(r)}}if(Ext.Microloader&&Ext.Microloader.appUpdate&&Ext.Microloader.appUpdate.updated){Ext.Microloader.fireAppUpdate()}Ext.defer(Ext.ClassManager.clearNamespaceCache,2000,Ext.ClassManager)},getModuleClassName:function(d,c){return Ext.app.Controller.getFullName(d,c,this.getName()).absoluteName},initMainView:function(){var f=this,d=f.getCurrentProfile(),e;if(d){e=d.getMainView()}if(e){f.setMainView(e)}else{f.getMainView()}},applyMainView:function(c){var d=this.getView(c);return d.create()},createController:function(b){return this.getController(b)},destroyController:function(b){if(typeof b==="string"){b=this.getController(b,true)}Ext.destroy(b)},getController:function(s,t){var i=this,r=i.controllers,n,p,o,q,m,c;p=r.get(s);if(!p){c=r.items;for(q=0,o=c.length;q<o;++q){m=c[q];n=m.getModuleClassName();if(n&&n===s){p=m;break}}}if(!p&&!t){n=i.getModuleClassName(s,"controller");p=Ext.create(n,{application:i,moduleClassName:s});r.add(p);if(i._initialized){p.doInit(i)}}return p},unregister:function(b){this.controllers.remove(b)},getApplication:function(){return this},destroy:function(g){var j=this,h=j.controllers,f=Ext.namespace(j.getName()),i=j.getAppProperty();Ext.destroy(j.viewport);if(h){h.each(function(a){a.destroy(g,true)})}j.controllers=null;Ext.app.Controller.prototype.destroy.call(this,g,true);if(f&&f[i]===j){delete f[i]}},updateGlyphFontFamily:function(b){Ext.setGlyphFontFamily(b)},applyProfiles:function(d){var c=this;return Ext.Array.map(d,function(a){return c.getModuleClassName(a,"profile")})}},1,0,0,0,0,0,[Ext.app,"Application"],0));Ext.application=function(d){var c=function(a){Ext.onReady(function(){var b=Ext.viewport;b=b&&b.Viewport;if(b&&b.setup){b.setup(a.prototype.config.viewport)}Ext.app.Application.instance=new a()})};if(typeof d==="string"){Ext.require(d,function(){c(Ext.ClassManager.get(d))})}else{d=Ext.apply({extend:"Ext.app.Application"},d);Ext.app.setupPaths(d.name,d.appFolder,d.paths);d["paths processed"]=true;Ext.define(d.name+".$application",d,function(){c(this)})}};Ext.define("Ext.overrides.app.Application",{override:"Ext.app.Application",autoCreateViewport:false,config:{enableQuickTips:true},applyMainView:function(h){var f,i,j,g;if(typeof h==="string"){f=this.getView(h)}else{f=Ext.ClassManager.getByConfig(h)}i=f.prototype;if(!i.isViewport){g=i.plugins;g=["viewport"].concat(g?Ext.Array.from(g,true):[]);j={plugins:g}}return f.create(j)},getDependencies:function(i,k,m){var j=Ext.app.Controller,l=i.prototype,n=k.$namespace,h=k.autoCreateViewport;if(h){if(h===true){h="Viewport"}else{m.push("Ext.plugin.Viewport")}j.processDependencies(l,m,n,"view",h)}},onBeforeLaunch:function(){var c=this,d=c.autoCreateViewport;if(c.getEnableQuickTips()){c.initQuickTips()}if(d){c.initViewport()}arguments.callee.$previous.apply(this,arguments)},getViewportName:function(){var d=null,c=this.autoCreateViewport;if(c){d=(c===true)?"Viewport":c}return d},initViewport:function(){this.setMainView(this.getViewportName())},initQuickTips:function(){Ext.tip.QuickTipManager.init()}});(Ext.cmd.derive("Ext.app.domain.View",Ext.app.EventDomain,{isInstance:true,constructor:function(b){Ext.app.EventDomain.prototype.constructor.apply(this,arguments);this.controller=b;this.monitoredClasses=[Ext.Component]},match:function(g,f,e){var h=false;if(f==="#"){h=e===g.getController()}else{h=g.is(f)}return h},destroy:function(){this.controller=null;Ext.app.EventDomain.prototype.destroy.call(this)}},1,0,0,0,0,0,[Ext.app.domain,"View"],0));(Ext.cmd.derive("Ext.app.ViewController",Ext.app.BaseController,{isViewController:true,factoryConfig:{type:"controller"},config:{closeViewAction:"destroy"},view:null,constructor:function(){this.compDomain=new Ext.app.domain.View(this);Ext.app.BaseController.prototype.constructor.apply(this,arguments)},beforeInit:Ext.emptyFn,init:Ext.emptyFn,initViewModel:Ext.emptyFn,destroy:function(){var d=this,c=d.compDomain;if(c){c.unlisten(d);c.destroy()}d.compDomain=d.view=null;Ext.app.BaseController.prototype.destroy.call(this)},closeView:function(){var d=this.getView(),c;if(d){c=this.getCloseViewAction();d[c]()}},control:function(e,d){var f=e;if(Ext.isString(e)){f={};f[e]=d}this.compDomain.listen(f,this)},listen:function(f,e){var d=f.component;if(d){f=Ext.apply({},f);delete f.component;this.control(d)}this.callParent([f,e])},getReferences:function(){var b=this.view;return b&&b.getReferences()},getView:function(){return this.view},lookup:function(c){var d=this.view;return d&&d.lookup(c)},lookupReference:function(b){return this.lookup(b)},getSession:function(){var b=this.view;return b&&b.lookupSession()},getViewModel:function(){var b=this.view;return b&&b.lookupViewModel()},getStore:function(c){var d=this.getViewModel();return d?d.getStore(c):null},fireViewEvent:function(i,f){var j=this.view,g=false,h=arguments;if(j){if(j!==f){h=Ext.Array.slice(h);h.splice(1,0,j)}g=j.fireEvent.apply(j,h)}return g},privates:{view:null,ensureId:function(){var b=this.getId();if(!b){this.setId(Ext.id(null,"controller-"))}},attachReference:function(c){var d=this.view;if(d){d.attachReference(c)}},clearReference:function(c){var d=this.view;if(d){d.clearReference(c)}},clearReferences:function(){var b=this.view;if(b){b.clearReferences()}},setView:function(b){this.view=b;if(!this.beforeInit.$nullFn){this.beforeInit(b)}}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.app,"ViewController"],0));(Ext.cmd.derive("Ext.util.Bag",Ext.Base,{isBag:true,constructor:function(){this.items=[];this.map={}},generation:0,length:0,add:function(l){var m=this,j=m.getKey(l),k=m.map,n=m.items,i=k[j],h;if(i===undefined){n.push(l);k[j]=m.length++;h=l}else{h=n[i];n[i]=l}++m.generation;return h},clear:function(){var f=this,d=f.generation||f.length,e=d?f.items:[];if(d){f.items=[];f.length=0;f.map={};++f.generation}return e},clone:function(){var f=this,d=new f.self(),e=f.length;if(e){Ext.apply(d.map,f.map);d.items=f.items.slice();d.length=f.length}return d},contains:function(h){var f=false,g=this.map,e;if(h!=null){e=this.getKey(h);if(e in g){f=this.items[g[e]]===h}}return f},containsKey:function(b){return b in this.map},destroy:function(){this.items=this.map=null;this.callParent()},getAt:function(c){var d=null;if(c<this.length){d=this.items[c]}return d},getByKey:function(d){var f=this.map,e=null;if(d in f){e=this.items[f[d]]}return e},getCount:function(){return this.length},getKey:function(b){return b.id||b.getId()},remove:function(m){var n=this,l=n.map,p=n.items,i=null,j,k,o;if(n.length){j=l[k=n.getKey(m)];if(j!==undefined){delete l[k];i=p[j];o=p.pop();if(j<--n.length){p[j]=o;l[n.getKey(o)]=j}++n.generation}}return i},removeByKey:function(d){var c=this.getByKey(d);if(c){this.remove(c)}return c||null},sort:function(f){var i=this,g=i.items,h=g.length,j;if(h){Ext.Array.sort(g,f);i.map={};while(h-->0){j=g[h];i.map[i.getKey(j)]=h}++i.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(b){this.mixins.observable.constructor.call(this,b);this.items=new Ext.util.Bag()},destroy:function(){var d=this,c=d.timer;if(c){window.clearTimeout(c);d.timer=null}d.items.destroy();d.items=d.orderedItems=null;d.callParent()},add:function(f){var d=this,e=d.items;if(e===d.firing){d.items=e=e.clone()}f.id=f.id||++d.nextId;f.scheduler=d;e.add(f);if(!d.sortMap){d.orderedItems=null}},remove:function(f){var d=this,e=d.items;if(d.destroyed){return}if(e===d.firing){d.items=e=e.clone()}if(f.scheduled){d.unscheduleItem(f);f.scheduled=false}e.remove(f);d.orderedItems=null},sort:function(){var k=this,h=k.items,j={},i=k.getPreSort(),g,l;k.orderedItems=[];k.sortMap=j;if(i){h.sort(i)}h=h.items;for(g=0;g<h.length;++g){l=h[g];if(!j[l.id]){k.sortItem(l)}}k.sortMap=null},sortItem:function(j){var f=this,i=f.sortMap,g=f.orderedItems,h;if(!j.scheduler){f.add(j)}h=j.id;if(!(h in i)){i[h]=0;if(!j.sort.$nullFn){j.sort()}i[h]=1;j.order=f.orderedItems.length;g.push(j)}return f},sortItems:function(e){var d=this,f=d.sortItem;if(e){if(e instanceof Array){Ext.each(e,f,d)}else{Ext.Object.eachValue(e,f,d)}}return d},applyPreSort:function(k){if(typeof k==="function"){return k}var l=k.split(","),m=[],n=l.length,j,i,c;for(i=0;i<n;++i){m[i]=1;c=l[i];if((j=c.charAt(0))==="-"){m[i]=-1}else{if(j!=="+"){j=0}}if(j){l[i]=c.substring(1)}}return function(h,f){var e=0,d,g,a,b;for(d=0;!e&&d<n;++d){g=l[d];a=h[g];b=f[g];e=m[d]*((a<b)?-1:((b<a)?1:0))}return e}},notify:function(){var n=this,u=n.timer,s=n.getCycleLimit(),t=Ext.GlobalEvents,p=n.suspendOnNotify,i,r,m,o,q,v;if(u){window.clearTimeout(u);n.timer=null}if(p){Ext.suspendLayouts()}while(n.scheduledCount){if(s){--s}else{n.firing=null;break}if(!v){v=true;if(t.hasListeners.beforebindnotify){t.fireEvent("beforebindnotify",n)}}++n.passes;if(!(q=n.orderedItems)){n.sort();q=n.orderedItems}o=q.length;if(o){n.firing=n.items;for(r=0;r<o;++r){m=q[r];if(m.scheduled){m.scheduled=false;--n.scheduledCount;n.notifyIndex=r;m.react();if(!n.scheduledCount){break}}}}}n.firing=null;n.notifyIndex=-1;if(p){Ext.resumeLayouts(true)}if((i=n.busyCounter)!==n.lastBusyCounter){if(!(n.lastBusyCounter=i)){n.fireEvent("idle",n)}}},onTick:function(){this.timer=null;this.notify()},scheduleItem:function(c){var d=this;++d.scheduledCount;if(!d.timer&&!d.firing){d.scheduleTick()}},scheduleTick:function(){var b=this;if(!b.destroyed&&!b.timer){b.timer=Ext.Function.defer(b.onTick,b.getTickDelay(),b)}},unscheduleItem:function(b){if(this.scheduledCount){--this.scheduledCount}},adjustBusy:function(e){var d=this,f=d.busyCounter+e;d.busyCounter=f;if(f){if(!d.lastBusyCounter){d.lastBusyCounter=f;d.fireEvent("busy",d)}}else{if(d.lastBusyCounter&&!d.timer){d.scheduleTick()}}},isBusy:function(){return !this.isIdle()},isIdle:function(){return !(this.busyCounter+this.lastBusyCounter)}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable]],[Ext.util,"Scheduler"],0));(Ext.cmd.derive("Ext.data.Batch",Ext.Base,{config:{pauseOnException:false},current:-1,total:0,running:false,complete:false,exception:false,constructor:function(d){var c=this;c.mixins.observable.constructor.call(c,d);c.operations=[];c.exceptions=[]},add:function(e){var g=this,h,f;if(Ext.isArray(e)){for(h=0,f=e.length;h<f;++h){g.add(e[h])}}else{g.total++;e.setBatch(g);g.operations.push(e)}return g},sort:function(){this.operations.sort(this.sortFn)},sortFn:function(l,h){var g=l.order-h.order;if(g){return g}var i=l.entityType,k=h.entityType,j;if(!i||!k){return 0}if(!(j=i.rank)){i.schema.rankEntities();j=i.rank}return(j-k.rank)*l.foreignKeyDirection},start:function(d){var c=this;if(!c.operations.length||c.running){return c}c.exceptions.length=0;c.exception=false;c.running=true;return c.runOperation(Ext.isDefined(d)?d:c.current+1)},retry:function(){return this.start(this.current)},runNextOperation:function(){var b=this;if(b.running){b.runOperation(b.current+1)}return b},pause:function(){this.running=false;return this},getOperations:function(){return this.operations},getExceptions:function(){return this.exceptions},getCurrent:function(){var d=null,c=this.current;if(!(c===-1||this.complete)){d=this.operations[c]}return d},getTotal:function(){return this.total},isRunning:function(){return this.running},isComplete:function(){return this.complete},hasException:function(){return this.exception},runOperation:function(h){var g=this,e=g.operations,f=e[h];if(f===undefined){g.running=false;g.complete=true;g.fireEvent("complete",g,e[e.length-1])}else{g.current=h;f.setInternalCallback(g.onOperationComplete);f.setInternalScope(g);f.execute()}return g},onOperationComplete:function(e){var f=this,d=e.hasException();if(d){f.exception=true;f.exceptions.push(e);f.fireEvent("exception",f,e)}if(d&&f.getPauseOnException()){f.pause()}else{f.fireEvent("operationcomplete",f,e);f.runNextOperation()}}},1,0,0,0,0,[["observable",Ext.mixin.Observable]],[Ext.data,"Batch"],0));(Ext.cmd.derive("Ext.data.matrix.Slice",Ext.Base,{constructor:function(d,c){this.id=c;this.side=d;this.members={}},attach:function(d){var c=this;c.store=d;d.matrix=c;d.on("load",c.onStoreLoad,c,{single:true})},commit:function(){var d=this.members,c;for(c in d){d[c][2]=0}},onStoreLoad:function(b){this.update(b.getData().items,0)},update:function(y,E){var i=this,C=Ext.data.matrix.Slice,H=i.side,B=H.index,F=y.length,z=i.id,t=i.members,I=H.inverse,u=I.slices,D,w,x,v,J,A,G;for(x=0;x<F;++x){w=G=null;v=y[x];J=v.isEntity?(G=v).id:v;D=t[J];if(E<0&&D&&D[2]===1){delete t[J];A=u[J];if(A){delete A.members[z]}w=1}else{if(!D){D=[J,J,E];D[B]=z;t[J]=D;A=u[J];if(!A){u[J]=A=new C(I,J)}A.members[z]=D;w=1}else{if(E!==D[2]&&E!==0){D[2]=E;A=u[J];w=1}}}if(w){if(i.notify){i.notify.call(i.scope,i,J,E)}if(A&&A.notify){A.notify.call(A.scope,A,z,E)}}}},updateId:function(w){var p=this,x=p.id,q=p.side,m=q.slices,n=m[x],v=n.members,s=q.index,u=q.inverse.slices,r,t,o;p.id=w;m[w]=n;delete m[x];for(t in v){r=v[t];r[s]=w;o=u[t].members;o[w]=o[x];delete o[x]}},destroy:function(){var c=this,d=c.store;if(d){d.matrix=null;d.un("load",c.onStoreLoad,c)}c.notify=c.scope=c.store=c.side=c.members=null;c.callParent()}},1,0,0,0,0,0,[Ext.data.matrix,"Slice"],0));(Ext.cmd.derive("Ext.data.matrix.Side",Ext.Base,{constructor:function(f,e,g){var h=this;h.matrix=f;h.index=e;h.role=g;h.slices={}},commit:function(){var d=this.slices,c;for(c in d){d[c].commit()}},get:function(f,g){var j=this,h=j.slices,i=h[f]||(h[f]=new Ext.data.matrix.Slice(j,f));return(g||g===0)?i.members[g]:i},update:function(e,f,h){var g=this.get(e);return g.update(f,h)},updateId:function(f,e){var d=this.get(f);if(d){d.updateId(e)}},destroy:function(){var e=this,d=e.slices,f;for(f in d){d[f].destroy()}e.inverse=e.matrix=e.role=e.slices=null;e.callParent()}},1,0,0,0,0,0,[Ext.data.matrix,"Side"],0));(Ext.cmd.derive("Ext.data.matrix.Matrix",Ext.Base,{constructor:function(j,n){var l=this,h=n.isManyToMany?n:j.getSchema().getAssociation(n),i=Ext.data.matrix.Side,k=new i(l,0,h.left),m=new i(l,1,h.right);l.association=h;l.session=j;l.left=k;l.right=m;k.inverse=m;m.inverse=k},commit:function(){this.left.commit();this.right.commit()},update:function(d,e,f){return this.left.update(d,e,f)},updateId:function(i,j,n){var h=i.self,k=this.left,m=this.right,l;if(h===k.role.cls){l=k}if(h===m.role.cls){l=m}if(l){l.updateId(j,n)}},destroy:function(){var b=this;b.left.destroy();b.right.destroy();b.association=b.session=b.left=b.right=null;b.callParent()}},1,0,0,0,0,0,[Ext.data.matrix,"Matrix"],0));(Ext.cmd.derive("Ext.data.session.ChangesVisitor",Ext.Base,{constructor:function(f){var e=this,d;e.session=f;d=f.getCrudProperties();e.result=null;e.writerOptions={};e.createKey=d.create;e.readKey=d.read;e.updateKey=d.update;e.dropKey=d.drop},onDirtyRecord:function(w){var t=this,q=t.crud,x=w.phantom,z=w.dropped,v=!x&&!z,s=w.$className,A=(x||z)?"allDataOptions":"partialDataOptions",u=t.writerOptions,B=w.entityName,o,y,r,p;if(x&&z){return false}q=x?t.createKey:(z?t.dropKey:t.updateKey);u=u[s]||(u[s]={});if(z){if(!(o=u.drop)){u.drop=o={all:w.getProxy().getWriter().getWriteAllFields()}}if(!o.all){r=w.id}}if(!r){if(!(o=u[A])){o=w.getProxy().getWriter().getConfig(A);u[A]=o=Ext.Object.chain(o);t.setupOptions(o)}r=w.getData(o)}p=t.result||(t.result={});y=p[B]||(p[B]={});y=y[q]||(y[q]=[]);y.push(r)},setupOptions:function(b){b.serialize=true},onMatrixChange:function(q,l,m,t){var n=this,s=q.left.type,o=q.right.role,p=t<0?n.dropKey:n.createKey,r,k;k=n.result||(n.result={});r=k[s]||(k[s]={});r=r[o]||(r[o]={});r=r[p]||(r[p]={});r=r[l]||(r[l]=[]);r.push(m)}},1,0,0,0,0,0,[Ext.data.session,"ChangesVisitor"],0));(Ext.cmd.derive("Ext.data.session.ChildChangesVisitor",Ext.data.session.ChangesVisitor,{constructor:function(){this.seen={};Ext.data.session.ChangesVisitor.prototype.constructor.apply(this,arguments)},setupOptions:function(b){Ext.data.session.ChangesVisitor.prototype.setupOptions.call(this,b);b.serialize=false},onDirtyRecord:function(b){if(Ext.data.session.ChangesVisitor.prototype.onDirtyRecord.apply(this,arguments)!==false){if(!b.$source&&(b.dropped||!b.phantom)){this.readEntity(b)}}},readEntity:function(m){var l=this,n=l.readKey,q=m.entityName,p=m.id,r=l.seen,k=q+p,j,o;if(r[k]){return}r[k]=true;j=l.result||(l.result={});o=j[q]||(j[q]={});o=o[n]||(o[n]=[]);o.push(Ext.apply({},m.modified,m.data))}},1,0,0,0,0,0,[Ext.data.session,"ChildChangesVisitor"],0));(Ext.cmd.derive("Ext.data.session.BatchVisitor",Ext.Base,{map:null,constructor:function(b){this.batch=b},getBatch:function(m){var l=this.map,o=this.batch,k,i,p,j,n;if(l){if(!o){o=new Ext.data.Batch()}for(p in l){k=l[p];i=k.entity;n=i.getProxy();delete k.entity;for(j in k){j=n.createOperation(j,{records:k[j]});j.entityType=i;o.add(j)}}}if(o&&m!==false){o.sort()}return o},onDirtyRecord:function(h){var k=this,g=h.phantom?"create":(h.dropped?"destroy":"update"),l=h.$className,j=(k.map||(k.map={})),i=(j[l]||(j[l]={entity:h.self}));i=i[g]||(i[g]=[]);i.push(h)}},1,0,0,0,0,0,[Ext.data.session,"BatchVisitor"],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"}},destroyed:false,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},constructor:function(d){var c=this;c.data={};c.matrices={};c.identifierCache={};c.recordCreator=c.recordCreator.bind(c);c.initConfig(d)},destroy:function(){var m=this,h=m.matrices,l=m.data,n,k,i,j;for(j in h){h[j].destroy()}for(n in l){k=l[n];for(j in k){i=k[j].record;if(i){i.$source=i.session=null}}}m.recordCreator=m.matrices=m.data=null;m.setSchema(null);m.callParent()},adopt:function(e){var g=this,h=e.associations,f;if(e.session!==g){e.session=g;g.add(e);if(h){for(f in h){h[f].adoptAssociated(e,g)}}}},commit:function(){var k=this.data,g=this.matrices,l,j,i,h;for(l in k){j=k[l];for(i in j){h=j[i].record;if(h){h.commit()}}}for(i in g){g[i].commit()}},createRecord:function(f,j){var i=f.$isClass?f:this.getSchema().getEntity(f),g=this.getParent(),h;if(j&&g){h=i.getIdFromData(j);if(g.peekRecord(i,h)){Ext.raise("A parent session already contains an entry for "+i.entityName+": "+h)}}return new i(j,this)},getChanges:function(){var b=new Ext.data.session.ChangesVisitor(this);this.visitData(b);return b.result},getChangesForParent:function(){var b=new Ext.data.session.ChildChangesVisitor(this);this.visitData(b);return b.result},getRecord:function(k,r,p){var l=this,q=k.isModel,m,o,j,n;if(q){q=k;r=k.id;k=k.self}m=l.peekRecord(k,r);if(!m){o=k.$isClass?k:l.getSchema().getEntity(k);j=l.getParent();if(j){n=j.peekRecord(o,r)}if(n){if(n.isLoading()){q=false}else{m=n.copy(undefined,l);m.$source=n}}if(!m){if(q){m=q;l.adopt(m)}else{m=o.createWithId(r,null,l);if(p!==false){m.load(Ext.isObject(p)?p:undefined)}}}}return m},getSaveBatch:function(d){var c=new Ext.data.session.BatchVisitor();this.visitData(c);return c.getBatch(d)},onInvalidAssociationEntity:function(d,c){Ext.raise("Unable to read association entity: "+this.getModelIdentifier(d,c))},onInvalidEntityCreate:function(d,c){Ext.raise("Cannot create, record already not exists: "+this.getModelIdentifier(d,c))},onInvalidEntityDrop:function(d,c){Ext.raise("Cannot drop, record does not exist: "+this.getModelIdentifier(d,c))},onInvalidEntityRead:function(d,c){Ext.raise("Cannot read, record already not exists: "+this.getModelIdentifier(d,c))},onInvalidEntityUpdate:function(e,f,d){if(d){Ext.raise("Cannot update, record dropped: "+this.getModelIdentifier(e,f))}else{Ext.raise("Cannot update, record does not exist: "+this.getModelIdentifier(e,f))}},peekRecord:function(n,k,j){var l=n.$isClass?n:this.getSchema().getEntity(n),p=l.entityName,m=this.data[p],i,o;m=m&&m[k];i=m&&m.record;if(!i&&j){o=this.getParent();i=o&&o.peekRecord(n,k,j)}return i||null},save:function(){var b=new Ext.data.session.ChildChangesVisitor(this);this.visitData(b);this.getParent().update(b.result)},spawn:function(){return new this.self({schema:this.getSchema(),parent:this})},update:function(x){var v=this,B=v.getSchema(),F=v.crudOperations,w=F.length,u=v.crudKeys,t,A,r,y,C,i,D,s,z,E;v.getSchema().processKeyChecks(true);for(t in x){A=B.getEntity(t);r=x[t];for(y=0;y<w;++y){C=F[y];i=r[C.type];if(i){v[C.entityMethod](A,i)}}}for(t in x){A=B.getEntity(t);D=A.associations;r=x[t];for(s in r){if(u[s]){continue}z=D[s];E=r[z.role];z.processUpdate(v,E)}}},privates:{add:function(g){var j=this,i=g.id,k=j.getEntry(g.self,i),l,h;k.record=g;j.registerReferences(g);l=g.associations;for(h in l){l[h].checkMembership(j,g)}},afterErase:function(b){this.evict(b)},applySchema:function(b){return Ext.data.schema.Schema.get(b)},createEntities:function(m,h){var i=h.length,n,l,k,j;for(n=0;n<i;++n){l=h[n];j=m.getIdFromData(l);k=this.peekRecord(m,j);if(!k){k=this.createRecord(m,l)}else{this.onInvalidEntityCreate(m,j)}k.phantom=true}},dropEntities:function(l,m){var h=m.length,n,k,j,i;if(h){i=Ext.isObject(m[0])}for(n=0;n<h;++n){j=m[n];if(i){j=l.getIdFromData(j)}k=this.peekRecord(l,j);if(k){k.drop()}else{this.onInvalidEntityDrop(l,j)}}},evict:function(g){var f=g.entityName,i=this.data[f],h=g.id,j;if(i){delete i[h]}},getEntityList:function(m,n){var i=n.length,h,j,k,l;for(h=0;h<i;++h){j=n[h];k=this.peekRecord(m,j);if(k){n[h]=k}else{l=true;n[h]=null;this.onInvalidAssociationEntity(m,j)}}if(l){n=Ext.Array.clean(n)}return n},getEntry:function(g,i){if(g.isModel){i=g.getId();g=g.self}var k=g.$isClass?g:this.getSchema().getEntity(g),h=k.entityName,j=this.data,l;l=j[h]||(j[h]={});l=l[i]||(l[i]={});return l},getRefs:function(o,p,k){var m=this.getEntry(o),n=m&&m.refs&&m.refs[p.role],l=k&&this.getParent(),j,r,q;if(l){j=l.getRefs(o,p);if(j){for(r in j){q=j[r];if((!n||!n[r])){this.getRecord(q.self,q.id)}}n=m&&m.refs&&m.refs[p.role]}}return n||null},getIdentifier:function(i){var j=this.getParent(),h,l,k,g;if(j){g=j.getIdentifier(i)}else{h=this.identifierCache;l=i.identifier;k=l.id||i.entityName;g=h[k];if(!g){if(l.clone){g=l.clone({cache:h})}else{g=l}h[k]=g}}return g},getMatrix:function(g,h){var i=g.isManyToMany?g.name:g,j=this.matrices,f;f=j[i];if(!f&&!h){f=j[i]=new Ext.data.matrix.Matrix(this,g)}return f||null},getMatrixSlice:function(g,h){var f=this.getMatrix(g.association),e=f[g.side];return e.get(h)},getModelIdentifier:function(d,c){return c+"@"+d.entityName},onIdChanged:function(I,C,G){var x=this,M=x.matrices,F=I.entityName,B=I.id,u=x.data[F],L=u[C],y=I.associations,K=L.refs,N=x._setNoRefs,H,J,z,E,v,D,A,w;delete u[C];u[G]=L;for(w in M){M[w].updateId(I,C,G)}if(K){for(D in K){A=K[D];v=y[D];H=v.association;if(!H.isManyToMany){J=H.field.name;for(E in A){A[E].set(J,B,N)}}}}x.registerReferences(I,C)},processManyBlock:function(o,n,l,q){var k=this,r,m,p,j;if(l){for(r in l){m=k.peekRecord(o,r);if(m){p=k.getEntityList(n.cls,l[r]);j=n.getAssociatedItem(m);k[q](n,j,m,p)}else{k.onInvalidAssociationEntity(o,r)}}}},processManyCreate:function(g,h,f,e){if(h){h.add(e)}else{f[g.getterName](null,null,e)}},processManyDrop:function(g,h,f,e){if(h){h.remove(e)}},processManyRead:function(g,h,f,e){if(h){h.setRecords(e)}else{f[g.getterName](null,null,e)}},readEntities:function(m,h){var i=h.length,n,l,k,j;for(n=0;n<i;++n){l=h[n];j=m.getIdFromData(l);k=this.peekRecord(m,j);if(!k){k=this.createRecord(m,l)}else{this.onInvalidEntityRead(m,j)}k.phantom=false}},recordCreator:function(j,i){var f=this,h=i.getIdFromData(j),g=f.peekRecord(i,h,true);if(!g){g=new i(j,f)}else{g=f.getRecord(i,h)}return g},registerReferences:function(u,z){var r=u.entityName,A=u.id,B=u.data,v=z||z===0,q,w,i,t,y,p,s,x;t=(p=u.references).length;for(w=0;w<t;++w){y=p[w];i=B[y.name];if(i||i===0){y=y.reference;r=y.type;x=y.inverse.role;q=this.getEntry(y.cls,i);s=q.refs||(q.refs={});s=s[x]||(s[x]={});s[A]=u;if(v){delete s[z]}}}},updateEntities:function(n,i){var j=i.length,o,m,l,k,p;if(Ext.isArray(i)){for(o=0;o<j;++o){m=i[o];k=n.getIdFromData(m);l=this.peekRecord(n,k);if(l){l.set(m)}else{this.onInvalidEntityUpdate(n,k)}}}else{for(k in i){m=i[k];l=this.peekRecord(n,k);if(l&&!l.dropped){p=l.set(m)}else{this.onInvalidEntityUpdate(n,k,!!l)}}}},updateReference:function(o,m,r,t){var q=m.reference,l=q.type,p=q.inverse.role,s=o.id,k,n;if(t||t===0){n=this.getEntry(l,t).refs[p];delete n[s]}if(r||r===0){k=this.getEntry(l,r);n=k.refs||(k.refs={});n=n[p]||(n[p]={});n[s]=o}},visitData:function(x){var v=this,z=v.data,r=v.matrices,s,w,B,p,u,A,C,y,t,q,D;v.getSchema().processKeyChecks(true);for(C in z){s=z[C];for(B in s){y=s[B].record;if(y){if(y.phantom||y.dirty||y.dropped){if(x.onDirtyRecord){x.onDirtyRecord(y)}}else{if(x.onCleanRecord){x.onCleanRecord(y)}}}}}if(x.onMatrixChange){for(C in r){u=r[C].left;q=u.slices;w=u.role.association;for(B in q){t=q[B];A=t.members;for(p in A){D=(y=A[p])[2];if(D){x.onMatrixChange(w,y[0],y[1],D)}}}}}return x},_setNoRefs:{refs:false}}},1,0,0,0,0,0,[Ext.data,"Session"],0));(Ext.cmd.derive("Ext.util.Schedulable",Ext.Base,{"abstract":true,isSchedulable:true,scheduled:false,constructor:function(){this.getScheduler().add(this)},destroy:function(){var c=this,d=c.getScheduler();if(d){d.remove(c)}c.scheduler=null;c.schedule=c.react=Ext.emptyFn;c.callParent()},getFullName:function(){return this.name||this.id},privates:{getScheduler:function(){return this.scheduler},schedule:function(){var c=this,d;if(!c.scheduled){d=c.getScheduler();if(d){c.scheduled=true;if(c.onSchedule){c.onSchedule()}d.scheduleItem(c)}}},unschedule:function(){var c=this,d;if(c.scheduled){d=c.getScheduler();if(d){d.unscheduleItem(c)}c.scheduled=false}},sort:function(){}}},1,0,0,0,0,0,[Ext.util,"Schedulable"],0));(Ext.cmd.derive("Ext.app.bind.BaseBinding",Ext.util.Schedulable,{calls:0,kind:20,defaultOptions:{},lastValue:undefined,constructor:function(g,h,j,f){var i=this;i.options=f;i.owner=g;i.scope=j;i.callback=h;i.lateBound=Ext.isString(h);if(f&&f.deep){i.deep=true}Ext.util.Schedulable.prototype.constructor.call(this)},destroy:function(){var c=this,d=c.owner;Ext.util.Schedulable.prototype.destroy.call(this);if(d){d.onBindDestroy(c)}c.scope=c.callback=c.owner=null},isReadOnly:function(){return true},privates:{getScheduler:function(){var b=this.owner;return b&&b.getScheduler()},getSession:function(){var b=this.owner;return b.isSession?b:b.getSession()},notify:function(g){var h=this,f=h.options||h.defaultOptions,e=h.lastValue;if(!h.calls||h.deep||e!==g||Ext.isArray(g)){++h.calls;h.lastValue=g;if(h.lateBound){h.scope[h.callback](g,e,h)}else{h.callback.call(h.scope,g,e,h)}if(f.single){h.destroy()}}}}},1,0,0,0,0,0,[Ext.app.bind,"BaseBinding"],0));(Ext.cmd.derive("Ext.app.bind.Binding",Ext.app.bind.BaseBinding,{constructor:function(i,h,f,g){var j=this;Ext.app.bind.BaseBinding.prototype.constructor.call(this,i.owner,h,f,g);j.stub=i;j.depth=i.depth;if(!i.isLoading()&&!i.scheduled){j.schedule()}},destroy:function(f){var e=this,d=e.stub;if(d&&!f){d.unbind(e);e.stub=null}Ext.app.bind.BaseBinding.prototype.destroy.call(this)},bindValidation:function(f,e){var d=this.stub;return d&&d.bindValidation(f,e)},bindValidationField:function(f,e){var d=this.stub;return d&&d.bindValidationField(f,e)},getFullName:function(){return this.fullName||(this.fullName="@("+this.stub.getFullName()+")")},getValue:function(){var d=this,f=d.stub,e=f&&f.getValue();if(d.transform){e=d.transform(e)}return e},isLoading:function(){var b=this.stub;return b&&b.isLoading()},isReadOnly:function(){var c=this.stub,d=this.options;if(!(d&&d.twoWay===false)){if(c){return c.isReadOnly()}}return true},refresh:function(){},setValue:function(b){this.stub.set(b)},privates:{getDataObject:function(){var b=this.stub;return b&&b.getDataObject()},getRawValue:function(){var d=this,f=d.stub,e=f&&f.getRawValue();if(d.transform){e=d.transform(e)}return e},isDescendantOf:function(d){var c=this.stub;return c?(d===c)||c.isDescendantOf(d):false},react:function(){this.notify(this.getValue())},schedule:function(){if(!this.stub.scheduled){Ext.app.bind.BaseBinding.prototype.schedule.call(this)}},sort:function(){var b=this.stub;b.scheduler.sortItem(b)}}},1,0,0,0,0,0,[Ext.app.bind,"Binding"],0));(Ext.cmd.derive("Ext.app.bind.AbstractStub",Ext.util.Schedulable,{children:null,depth:0,generation:1,kind:10,parent:null,constructor:function(e,d){var f=this;f.owner=e;f.name=d;Ext.util.Schedulable.prototype.constructor.call(this)},destroy:function(){var j=this,k=j.children,i=j.bindings,h,l,g;if(i){for(l=0,h=i.length;l<h;++l){i[l].destroy(true)}}for(g in k){k[g].destroy()}Ext.util.Schedulable.prototype.destroy.call(this);j.bindings=j.children=j.owner=null},add:function(c){var d=this;(d.children||(d.children={}))[c.name]=c;c.depth=d.depth+1;c.parent=d},getChild:function(c){var d=Ext.isString(c)?c.split("."):c;if(d&&d.length){return this.descend(d,0)}return this},getFullName:function(){var g=this,f=g.fullName,h=g.parent,e;if(!f){f=g.name||g.id;if(h&&(e=h.getFullName())){f=((e.charAt(e.length-1)!==":")?e+".":e)+f}g.fullName=f}return f},getSession:function(){var b=this.owner;return b.isSession?b:b.getSession()},bind:function(i,g,h){var l=this,k=new Ext.app.bind.Binding(l,i,g,h),j=(l.bindings||(l.bindings=[]));k.depth=l.depth;j.push(k);return k},getValue:function(){return this.isLoading()?null:this.getRawValue()},graft:function(j){var i=this,h=i.bindings,g=i.name,f;i.parent=i.bindings=null;i.destroy();j.depth=i.depth;j.bindings=h;j.generation=i.generation+1;j.name=g;j.id=i.id;j.path=i.path;if(h){for(f=h.length;f-->0;){h[f].stub=j}}return j},isDescendantOf:function(c){for(var d=this;d=d.parent;){if(d===c){return true}}return false},onSchedule:function(){for(var f,g,i,h,j=this.parent;j;j=j.parent){h=j.bindings;if(h){for(f=0,g=h.length;f<g;++f){i=h[f];if(i.deep&&!i.scheduled){i.schedule()}}}}},react:function(){var g=this.bindings,h,e,f;if(g){for(e=0,f=g.length;e<f;++e){h=g[e];if(!h.scheduled){h.schedule()}}}},unbind:function(d){var c=this.bindings;if(c&&c.length){Ext.Array.remove(c,d)}},privates:{collect:function(){var l=this.children,i=this.bindings,h=0,k=0,j,g;if(l){for(g in l){j=l[g];k=j.collect();if(k===0){j.destroy();delete l[g]}h+=k}}if(i){h+=i.length}return h},getScheduler:function(){var b=this.owner;return b&&b.getScheduler()},sort:function(){var b=this.parent;if(b){this.scheduler.sortItem(b)}}}},1,0,0,0,0,0,[Ext.app.bind,"AbstractStub"],0));(Ext.cmd.derive("Ext.app.bind.Stub",Ext.app.bind.AbstractStub,{isStub:true,dirty:true,formula:null,validationKey:"validation",statics:{trackHadValue:function(n,j,l,m){var p=m&&m.children,k,i,o;o=n!==undefined;if(!j.hadValue[l]){j.hadValue[l]=o}if(m){m.hadValue=o}if(n&&(n.constructor===Object||n.isModel)){if(n.isModel){n=n.data}for(i in n){Ext.app.bind.Stub.trackHadValue(n[i],j,l+"."+i,p&&p[i])}}}},constructor:function(g,f,j){var i=this,h=f;Ext.app.bind.AbstractStub.prototype.constructor.call(this,g,f);i.boundValue=null;if(j){j.add(i);if(!j.isRootStub){h=j.path+"."+f}}i.hadValue=g.hadValue[h];i.path=h},destroy:function(){var h=this,g=h.formula,f=h.parent,e=h.storeBinding;if(g){g.destroy()}if(e){e.destroy()}h.detachBound();h.parentValue=h.formula=h.storeBinding=null;Ext.app.bind.AbstractStub.prototype.destroy.call(this)},bindValidation:function(f,d){var e=this.parent;return e&&e.descend([this.validationKey,this.name]).bind(f,d)},bindValidationField:function(i,k){var l=this.parent,g=this.name,j=typeof i==="string",h;if(l){h=l.bind(function(b){var a=null;if(b&&b.isModel){a=b.getField(g)}if(j){k[i](a,null,this)}else{i.call(k,a,null,this)}})}return h||null},descend:function(k,n){var l=this,m=l.children||(l.children={}),j=n||0,h=k[j++],i;if(!(i=m[h])){i=new Ext.app.bind.Stub(l.owner,h,l)}if(j<k.length){i=i.descend(k,j)}return i},getChildValue:function(f){var g=this,h=g.name,e;if(!f&&!Ext.isString(f)){e=g.hadValue?null:undefined}else{e=g.inspectValue(f);if(!e){if(f.isEntity){e=f.data[h]}else{e=f[h]}}}return e},getDataObject:function(){var i=this,g=i.parent.getDataObject(),k=i.name,l=g?g[k]:null,j,h;if(!l&&g&&g.isEntity){j=g.associations;if(j&&k in j){l=g[j[k].getterName]()}}if(!l||!(l.$className||Ext.isObject(l))){g[k]=l={};i.hadValue=i.owner.hadValue[i.path]=true;i.invalidate(true,true)}return l},getRawValue:function(){return this.getChildValue(this.getParentValue())},graft:function(j){var i=this,k=i.parent,l=i.children,h=i.name,g;j.parent=k;j.children=l;if(k){k.children[h]=j}if(l){for(g in l){l[g].parent=j}}i.children=null;return Ext.app.bind.AbstractStub.prototype.graft.call(this,j)},isLoading:function(){var m=this,n=m.parent,j=false,h,k,l,i;if(n&&!(j=n.isLoading())){k=m.getParentValue();l=m.inspectValue(k);if(l){j=l.isLoading()}else{if(k&&k.isModel){h=k.associations;if(!(h&&m.name in h)){j=false;i=true}}if(!i){j=!m.hadValue&&m.getRawValue()===undefined}}}return j},invalidate:function(f,g){var h=this,i=h.children,j;h.dirty=true;if(!g&&!h.isLoading()){if(!h.scheduled){h.schedule()}}if(f&&i){for(j in i){i[j].invalidate(f,g)}}},isReadOnly:function(){var b=this.formula;return !!(b&&!b.set)},set:function(k){var l=this,j=l.parent,r=l.name,n=l.formula,m,p,q,o;if(n&&!n.settingValue&&n.set){n.setValue(k);return}else{if(l.isLinkStub){o=l.getLinkFormulaStub();n=o?o.formula:null;if(n){n.setValue(k);return}}}m=j.getDataObject();if(m.isEntity){p=m.associations;if(p&&(r in p)){q=p[r];m[q.setterName](k);l.invalidate(true)}else{m.set(r,k)}}else{if((k&&k.constructor===Object)||k!==m[r]){if(!l.setByLink(k)){if(k===undefined){delete m[r]}else{m[r]=k;Ext.app.bind.Stub.trackHadValue(k,l.owner,l.path,l)}l.inspectValue(m);l.invalidate(true)}}}},onStoreLoad:function(){this.invalidate(true)},afterLoad:function(b){this.invalidate(true)},afterCommit:function(b){this.afterEdit(b,null)},afterEdit:function(l,n){var p=this.children,k=n&&n.length,o=l.associations,i,m,q,r;if(p){if(k){for(m=0;m<k;++m){q=p[n[m]];if(q){q.invalidate()}}}else{for(i in p){if(!(o&&i in o)){p[i].invalidate()}}}}this.invalidate()},afterReject:function(b){this.afterEdit(b,null)},setByLink:function(m){var n=this,j=0,i,h,k,l;for(l=n;l;l=l.parent){if(l.isLinkStub){h=l;if(j){for(k=[],i=0,l=n;l!==h;l=l.parent){++i;k[j-i]=l.name}}break}++j}if(!h||!(l=h.getTargetStub())){return false}if(k){l=l.descend(k)}l.set(m);return true},setFormula:function(f){var e=this,d=e.formula;if(d){d.destroy()}e.formula=new Ext.app.bind.Formula(e,f)},react:function(){var h=this,e=this.boundValue,f=h.children,g;if(e){if(e.isValidation){e.refresh();g=e.generation;if(h.lastValidationGeneration===g){return}h.lastValidationGeneration=g}else{if(e.isModel){if(f&&f[h.validationKey]){e.isValid()}}else{if(e.isStore){if(e.isLoading()&&!e.loadCount){return}}}}}Ext.app.bind.AbstractStub.prototype.react.call(this)},privates:{collect:function(){var h=this,f=Ext.app.bind.AbstractStub.prototype.collect.call(this),e=h.storeBinding?1:0,g=h.formula?1:0;return f+e+g},getLinkFormulaStub:function(){var b=this;while(b.isLinkStub){b=b.binding.stub}return b.formula?b:null},getParentValue:function(){var b=this;if(b.dirty){b.parentValue=b.parent.getValue();b.dirty=false}return b.parentValue},setStore:function(b){this.storeBinding=b},inspectValue:function(l){var k=this,r=k.name,n=k.boundValue,q=null,p,j,o,m;if(l&&l.isEntity){p=l.associations;if(p&&(r in p)){q=l[p[r].getterName]();if(q&&q.isStore){q.$associatedStore=true}}else{if(r===k.validationKey){q=l.getValidation();k.lastValidationGeneration=null}}}else{if(l){j=l[r];if(j&&(j.isModel||j.isStore)){q=j}}}o=n!==q;if(o){if(n){k.detachBound()}if(q){if(q.isModel){q.join(k)}else{m=q.associatedEntity;if(m&&!m.phantom&&!q.complete&&!q.hasPendingLoad()){q.load()}q.on("load",k.onStoreLoad,k,{single:true})}}k.boundValue=q}return q},detachBound:function(){var d=this,c=d.boundValue;if(c){if(c.isModel){c.unjoin(d)}else{c.un("load",d.onStoreLoad,d)}}},sort:function(){var h=this,g=h.formula,f=h.scheduler,e=h.storeBinding;Ext.app.bind.AbstractStub.prototype.sort.call(this);if(e){f.sortItem(e)}if(g){f.sortItem(g)}}}},1,0,0,0,0,0,[Ext.app.bind,"Stub"],0));(Ext.cmd.derive("Ext.app.bind.LinkStub",Ext.app.bind.Stub,{isLinkStub:true,binding:null,destroy:function(){var d=this,f=d.binding,e=d.owner;if(f){d.binding=null;f.destroy();if(e){delete e.linkData[d.name]}}d.target=null;Ext.app.bind.Stub.prototype.destroy.call(this)},getFullName:function(){var b=this;return b.fullName||(b.fullName="("+Ext.app.bind.Stub.prototype.getFullName.call(this)+" -> "+b.binding.getFullName()+")")},getDataObject:function(){var b=this.binding;return b&&b.getDataObject()},getRawValue:function(){var b=this.binding;return b&&b.getRawValue()},getValue:function(){var b=this.binding;return b&&b.getValue()},getTargetStub:function(){var b=this.binding;return b&&b.stub},isLoading:function(){var b=this.binding;return b?b.isLoading():false},link:function(g,e){var f=this,h=f.binding;if(h){h.destroy()}e=f.target=e||f.owner;f.linkDescriptor=g;f.binding=e.bind(g,f.onChange,f);f.binding.deep=true},onChange:function(){this.invalidate(true)},react:function(){var c=this,d=c.owner.linkData;d[c.name]=c.getValue();Ext.app.bind.Stub.prototype.react.call(this)},privates:{collect:function(){var d=this,e=Ext.app.bind.Stub.prototype.collect.call(this),f=d.binding?1:0;return e+f},sort:function(){var b=this.binding;if(b){this.scheduler.sortItem(b)}}}},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(t,p){var l=this,s=l.owner,o=s.getData(),r=l.children,m=r&&r[t],n=m?null:l,k,q;if(p||o.hasOwnProperty(t)||!(k=s.getParent())){q=new Ext.app.bind.Stub(s,t,n)}else{q=new Ext.app.bind.LinkStub(s,t,m?null:n);q.link("{"+t+"}",k)}if(m){m.graft(q)}return q},createStubChild:function(b){return this.createRootChild(b,true)},descend:function(k,n){var l=this,m=l.children,j=n||0,h=k[j++],i=(m&&m[h])||l.createRootChild(h);if(j<k.length){i=i.descend(k,j)}return i},getFullName:function(){return this.fullName||(this.fullName=this.owner.id+":")},getDataObject:function(){return this.owner.data},getRawValue:function(){return this.owner.data},getValue:function(){return this.owner.data},isDescendantOf:function(){return false},isLoading:function(){return false},set:function(n){var o=this,s=o.children||(o.children={}),t=o.owner,q=t.data,k=t.getParent(),p,r,l,m;for(m in n){if((l=n[m])!==undefined){if(!(r=s[m])){r=new Ext.app.bind.Stub(t,m,o)}else{if(r.isLinkStub){if(!r.getLinkFormulaStub()){p=r;r=new Ext.app.bind.Stub(t,m);p.graft(r)}}}r.set(l)}else{if(q.hasOwnProperty(m)){delete q[m];r=s[m];if(r&&!r.isLinkStub&&k){r=o.createRootChild(m)}r.invalidate(true)}}}},schedule:Ext.emptyFn,unschedule:Ext.emptyFn},0,0,0,0,0,0,[Ext.app.bind,"RootStub"],0));(Ext.cmd.derive("Ext.app.bind.Multi",Ext.app.bind.BaseBinding,{isMultiBinding:true,missing:1,deep:true,constructor:function(l,i,j,n,h){var m=this,k=h&&h.trackStatics;Ext.app.bind.BaseBinding.prototype.constructor.call(this,i,j,n,h);m.bindings=[];m.literal=l.$literal;if(l.constructor===Object){if(k){m.staticKeys=[]}m.addObject(l,m.lastValue={},m.staticKeys)}else{m.addArray(l,m.lastValue=[])}if(!--m.missing&&!m.scheduled){m.schedule()}},destroy:function(){var b=this;b.bindings=Ext.destroy(b.bindings);Ext.app.bind.BaseBinding.prototype.destroy.call(this)},add:function(q,m,j){var k=this,o=k.owner,p=k.bindings,r=k.literal?(q.reference?"bindEntity":"bindExpression"):"bind",l,n;++k.missing;l=o[r](q,function(a){m[j]=a;if(l.calls===1){--k.missing}if(!k.missing&&!k.scheduled){k.schedule()}},k,null);n=l.depth;if(!p.length||n<k.depth){k.depth=n}p.push(l);return !this.isBindingStatic(l)},addArray:function(p,i){var m=this,k=p.length,o=false,l,b,n;for(n=0;n<k;++n){b=p[n];if(b&&(b.reference||Ext.isString(b))){l=m.add(b,i,n)}else{if(Ext.isArray(b)){l=m.addArray(b,i[n]=[])}else{if(b&&b.constructor===Object){l=m.addObject(b,i[n]={})}else{i[n]=b;l=false}}}o=o||l}return o},addObject:function(p,m,k){var l=this,n=false,j,b,o;for(o in p){b=p[o];if(b&&(b.reference||Ext.isString(b))){j=l.add(b,m,o)}else{if(Ext.isArray(b)){j=l.addArray(b,m[o]=[])}else{if(b&&b.constructor===Object){j=l.addObject(b,m[o]={})}else{m[o]=b;j=false}}}if(k&&!j){k.push(o)}n=n||j}return n},getFullName:function(){var j=this,i=j.fullName,h=j.bindings,f=h.length,g;if(!i){i="@[";for(g=0;g<f;++g){if(g){i+=","}i+=h[g].getFullName()}i+="]";j.fullName=i}return i},getRawValue:function(){return this.lastValue},isDescendantOf:function(){return false},isLoading:function(){for(var c=this.bindings,d=c.length;d-->0;){if(c[d].isLoading()){return true}}return false},isBindingStatic:function(b){return b.isTemplateBinding&&b.isStatic},isStatic:function(){var g=this.bindings,f=g.length,e,h;for(e=0;e<f;++e){h=g[e];if(!this.isBindingStatic(h)){return false}}return true},pruneStaticKeys:function(){var g=Ext.apply({},this.lastValue),h=this.staticKeys,f=h.length,e;for(e=0;e<f;++e){delete g[h[e]]}return g},react:function(){this.notify(this.lastValue)},refresh:function(){},privates:{sort:function(){this.scheduler.sortItems(this.bindings)}}},1,0,0,0,0,0,[Ext.app.bind,"Multi"],0));(Ext.cmd.derive("Ext.app.bind.Formula",Ext.util.Schedulable,{statics:{getFormulaParser:function(e){var f=this.formulaCache,g,h;if(!f){f=this.formulaCache=new Ext.util.LruCache({maxSize:20})}g=f.get(e);if(!g){h="[^\\.a-z0-9_]"+e+"\\(\\s*(['\"])(.*?)\\1\\s*\\)";g=new RegExp(h,"gi");f.add(e,g)}return g}},isFormula:true,calculation:null,explicit:false,set:null,single:false,argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,constructor:function(l,k){var m=this,i=l.owner,o,n,j,p;m.owner=i;m.stub=l;Ext.util.Schedulable.prototype.constructor.call(this);if(k instanceof Function){m.get=j=k}else{m.get=j=k.get;m.set=k.set;n=k.bind;if(k.single){m.single=k.single}if(n){o=n.bindTo;if(o){p=Ext.apply({},n);delete p.bindTo;n=o}}}if(n){m.explicit=true}else{n=j.$expressions||m.parseFormula(j)}m.binding=i.bind(n,m.onChange,m,p)},destroy:function(){var e=this,f=e.binding,d=e.stub;if(f){f.destroy();e.binding=null}if(d){d.formula=null}Ext.util.Schedulable.prototype.destroy.call(this);e.getterFn=e.owner=null},getFullName:function(){return this.fullName||(this.fullName=this.stub.getFullName()+"="+Ext.util.Schedulable.prototype.getFullName.call(this)+")")},getRawValue:function(){return this.calculation},onChange:function(){if(!this.scheduled){this.schedule()}},parseFormula:function(j){var k=j.toString(),m={$literal:true},n,h,i,l;n=this.argumentNamesRe.exec(k);h=n?n[1]:"get";i=Ext.app.bind.Formula.getFormulaParser(h);while((n=i.exec(k))){l=n[2];m[l]=l}m.$literal=true;j.$expressions=m;return m},react:function(){var j=this,f=j.owner,i=j.binding.lastValue,h=j.getterFn,g;if(j.explicit){g=i}else{g=f.getFormulaFn(i)}j.settingValue=true;j.stub.set(j.calculation=j.get.call(f,g));j.settingValue=false;if(j.single){j.destroy()}},setValue:function(b){this.set.call(this.stub.owner,b)},privates:{getScheduler:function(){var b=this.owner;return b&&b.getScheduler()},sort:function(){var d=this,c=d.binding;if(!c.destroyed){d.scheduler.sortItem(c)}}}},1,0,0,0,0,0,[Ext.app.bind,"Formula"],0));(Ext.cmd.derive("Ext.app.bind.Template",Ext.Base,{numberRe:/^(?:\d+(?:\.\d*)?)$/,stringRe:/^(?:["][^"]*["])$/,tokenRe:/\{[!]?(?:(?:(\d+)|([a-z_][\w\-\.]*))(?::([a-z_\.]+)(?:\(([^\)]*?)?\))?)?)\}/gi,formatRe:/^([a-z_]+)(?:\(([^\)]*?)?\))?$/i,buffer:null,slots:null,tokens:null,constructor:function(g){var h=this,e=h._initters,f;h.text=g;for(f in e){h[f]=e[f]}},_initters:{apply:function(d,c){return this.parse().apply(d,c)},getTokens:function(){return this.parse().getTokens()}},apply:function(k,i){var n=this,o=n.slots,q=n.buffer,r=o.length,p,l,m;for(p=0;p<r;++p){l=o[p];if(l){if((m=k[l.pos])==null){m=""}if(l.not){m=!m}if(l.format){m=l.format(m,i)}q[p]=m}}return q.join("")},getTokens:function(){return this.tokens},parse:function(){var w=this,r=w.text,B=[],y=[],x=[],s={},t=0,C=w.tokenRe,v=0,E,A,F,z,i,u,D;for(A in w._initters){delete w[A]}w.buffer=B;w.slots=y;w.tokens=x;while((z=C.exec(r))){F=z.index-t;if(F){B[v++]=r.substring(t,t+F);t+=F}t+=(i=z[0]).length;u={fmt:(E=z[3]||null),index:z[1]?parseInt(z[1],10):null,not:i.charAt(1)==="!",token:z[2]||null};D=u.token||String(u.index);if(D in s){u.pos=s[D]}else{s[D]=u.pos=x.length;x.push(D)}if(E){if(E.substring(0,5)==="this."){u.fmt=E.substring(5)}else{u.scope=Ext.util.Format}w.parseArgs(z[4],u)}y[v++]=u}if(t<r.length){B[v++]=r.substring(t)}return w},parseArgs:function(m,l){var n=this,q=n.numberRe,k=n.stringRe,i,o,p,r;if(!m){o=[]}else{if(m.indexOf(",")<0){o=[m]}else{o=m.split(",")}}l=l||{};r=o.length;l.args=o;for(p=0;p<r;++p){i=o[p];if(i==="true"){o[p]=true}else{if(i==="false"){o[p]=false}else{if(i==="null"){o[p]=null}else{if(q.test(i)){o[p]=parseFloat(i)}else{if(k.test(i)){o[p]=i.substring(1,i.length-1)}else{l.fn=Ext.functionFactory("return ["+m+"];");l.format=n._formatEval;break}}}}}}if(!l.format){o.unshift(0);l.format=n._formatArgs}return l},parseFormat:function(g){var i=this,j=i.formatRe.exec(g),h={fmt:g,scope:Ext.util.Format},f;f=j[2];if(f){h.fmt=j[1];i.parseArgs(f,h)}else{h.args=[0];h.format=i._formatArgs}return h},_formatArgs:function(c,d){d=this.scope||d;this.args[0]=c;return d[this.fmt].apply(d,this.args)},_formatEval:function(f,d){var e=this.fn();e.unshift(f);d=this.scope||d;return d[this.fmt].apply(d,e)}},1,0,0,0,0,0,[Ext.app.bind,"Template"],0));(Ext.cmd.derive("Ext.app.bind.TemplateBinding",Ext.app.bind.BaseBinding,{isTemplateBinding:true,lastValue:undefined,value:undefined,constructor:function(n,j,k,o,p){var m=this,i=new Ext.app.bind.Template(n),l=i.getTokens();Ext.app.bind.BaseBinding.prototype.constructor.call(this,j,k,o,p);m.tpl=i;m.tokens=l;l.$literal=true;if(l.length){m.multiBinding=new Ext.app.bind.Multi(l,j,m.onBindData,m)}else{m.isStatic=true;m.onData(i.text)}},destroy:function(){var b=this;Ext.destroy(b.multiBinding);b.tpl=b.multiBinding=null;Ext.app.bind.BaseBinding.prototype.destroy.call(this)},getFullName:function(){var b=this.multiBinding;return this.fullName||(this.fullName="$"+(b?b.getFullName():Ext.app.bind.BaseBinding.prototype.getFullName.call(this)))},getRawValue:function(){return this.value},getTemplateScope:function(){return null},isDescendantOf:function(){return false},isLoading:function(){var b=this.multiBinding;return b?b.isLoading():false},onBindData:function(b){this.onData(this.tpl.apply(b,this.getTemplateScope()))},onData:function(f){var d=this,e=d.value;if(e!==(d.value=f)){d.lastValue=e;d.schedule()}},react:function(){this.notify(this.value)},refresh:function(){var b=this.multiBinding;if(b){b.refresh()}},privates:{sort:function(){var b=this.multiBinding;if(b){this.scheduler.sortItem(b)}}}},1,0,0,0,0,0,[Ext.app.bind,"TemplateBinding"],0));(Ext.cmd.derive("Ext.data.ChainedStore",Ext.data.AbstractStore,{config:{source:null,remoteFilter:false,remoteSort:false},constructor:function(){Ext.data.AbstractStore.prototype.constructor.apply(this,arguments);this.getData().addObserver(this)},remove:function(){var b=this.getSource();return b.remove.apply(b,arguments)},removeAll:function(){var b=this.getSource();return b.removeAll()},getData:function(){var d=this,c=d.data;if(!c){d.data=c=d.constructDataCollection()}return c},getSession:function(){return this.getSource().getSession()},applySource:function(b){if(b){b=Ext.data.StoreManager.lookup(b)}return b},updateSource:function(g,e){var f=this,h;if(e){e.removeObserver(f)}if(g){h=f.getData();h.setSource(g.getData());if(!f.isInitializing){f.fireEvent("refresh",f);f.fireEvent("datachanged",f)}g.addObserver(f)}},getModel:function(){return this.getSource().getModel()},getProxy:function(){return null},onCollectionAdd:function(i,j){var f=this,g=j.items,h=!j.next;if(f.ignoreCollectionAdd){return}f.fireEvent("add",f,g,j.at);if(h){f.fireEvent("datachanged",f)}},onCollectionItemChange:function(i,j){var k=this,h=j.item,l=j.modified||null,g=j.meta;k.onUpdate(h,g,l,j);k.fireEvent("update",k,h,g,l,j)},onUpdate:Ext.emptyFn,onCollectionRemove:function(i,j){var f=this,g=j.items,h=!j.next;if(f.ignoreCollectionRemove){return}f.fireEvent("remove",f,g,j.at,false);if(h){f.fireEvent("datachanged",f)}},onSourceBeforeLoad:function(c,d){this.fireEvent("beforeload",this,d)},onSourceAfterLoad:function(h,e,g,f){this.fireEvent("load",this,e,g,f)},onFilterEndUpdate:function(){Ext.data.AbstractStore.prototype.onFilterEndUpdate.apply(this,arguments);this.callObservers("Filter")},onSourceBeforePopulate:function(){this.ignoreCollectionAdd=true;this.callObservers("BeforePopulate")},onSourceAfterPopulate:function(){var b=this;b.ignoreCollectionAdd=false;b.fireEvent("datachanged",b);b.fireEvent("refresh",b);this.callObservers("AfterPopulate")},onSourceBeforeClear:function(){this.ignoreCollectionRemove=true;this.callObservers("BeforeClear")},onSourceAfterClear:function(){this.ignoreCollectionRemove=false;this.callObservers("AfterClear")},onSourceBeforeRemoveAll:function(){this.ignoreCollectionRemove=true;this.callObservers("BeforeRemoveAll")},onSourceAfterRemoveAll:function(f,e){var d=this;d.ignoreCollectionRemove=false;if(!e){d.fireEvent("clear",d);d.fireEvent("datachanged",d)}this.callObservers("AfterRemoveAll",[e])},onSourceFilter:function(){var b=this;b.fireEvent("refresh",b);b.fireEvent("datachanged",b)},hasPendingLoad:function(){return this.getSource().hasPendingLoad()},isLoaded:function(){return this.getSource().isLoaded()},isLoading:function(){return this.getSource().isLoading()},onDestroy:function(){var b=this;b.observers=null;b.setSource(null);b.getData().destroy(true);b.data=null},privates:{isMoving:function(){var b=this.getSource();return b.isMoving?b.isMoving.apply(b,arguments):false},loadsSynchronously:function(){return this.getSource().loadsSynchronously()}}},1,0,0,0,["store.chained"],[[Ext.data.LocalStore.prototype.mixinId||Ext.data.LocalStore.$className,Ext.data.LocalStore]],[Ext.data,"ChainedStore"],0));(Ext.cmd.derive("Ext.app.ViewModel",Ext.Base,{isViewModel:true,factoryConfig:{name:"viewModel"},collectTimeout:100,expressionRe:/^(?:\{[!]?(?:(\d+)|([a-z_][\w\-\.]*))\})$/i,$configStrict:false,config:{data:true,formulas:{$value:null,merge:function(g,f,h,e){return this.mergeNew(g,f,h,e)}},links:null,parent:null,root:true,scheduler:null,schema:"default",session:null,stores:null,view:null},constructor:function(b){this.hadValue={};this.bindings={};this.initConfig(b)},destroy:function(){var o=this,q=o._scheduler,k=o.storeInfo,m=o.getParent(),r=o.collectTask,s=o.children,t=o.bindings,l,n,p;o.destroying=true;if(r){r.cancel();o.collectTask=null}if(s){for(l in s){s[l].destroy()}}if(k){for(l in k){n=k[l];p=n.autoDestroy;if(p||(!n.$wasInstance&&p!==false)){n.destroy()}Ext.destroy(n.$binding)}}if(m){m.unregisterChild(o)}o.getRoot().destroy();for(l in t){t[l].destroy()}if(q&&q.$owner===o){q.$owner=null;q.destroy()}o.hadValue=o.children=o.storeInfo=o._session=o._view=o._scheduler=o.bindings=o._root=o._parent=o.formulaFn=o.$formulaData=null;o.destroying=false;o.callParent()},bind:function(l,j,n,h){var m=this,k,i;n=n||m;if(!h&&l.bindTo!==undefined&&!Ext.isString(l)){h=l;l=h.bindTo}if(!Ext.isString(l)){k=new Ext.app.bind.Multi(l,m,j,n,h);i=true}else{if(m.expressionRe.test(l)){l=l.substring(1,l.length-1);k=m.bindExpression(l,j,n,h)}else{k=new Ext.app.bind.TemplateBinding(l,m,j,n,h);i=true}}if(i){m.bindings[k.id]=k}return k},getSession:function(){var d=this,f=d._session,e;if(!f&&(e=d.getParent())){d.setSession(f=e.getSession())}return f||null},getStore:function(d){var f=this.storeInfo,e;if(f){e=f[d]}return e||null},linkTo:function(j,o){var k=this,p,m,r,q,l,n;if(o.isModel){o={type:o.entityName,id:o.id}}q=o.type||o.reference;m=o.create;if(q){r=o.id;if(m){r=undefined}n=k.getRecord(q,r);if(Ext.isObject(m)){n.set(m);n.commit();n.phantom=true}p=k.getRoot().createStubChild(j);p.set(n)}else{p=k.getStub(j);if(!p.isLinkStub){l=new Ext.app.bind.LinkStub(k,p.name);p.graft(l);p=l}p.link(o)}},notify:function(){this.getScheduler().notify()},get:function(b){return this.getStub(b).getValue()},set:function(h,f){var g=this,i,j;g.getData();if(f===undefined&&h&&h.constructor===Object){j=g.getRoot();f=h}else{if(h&&h.indexOf(".")<0){i={};i[h]=f;f=i;j=g.getRoot()}else{j=g.getStub(h)}}j.set(f)},privates:{registerChild:function(c){var d=this.children;if(!d){this.children=d={}}d[c.getId()]=c},unregisterChild:function(c){var d=this.children;if(!this.destroying&&d){delete d[c.getId()]}},getRecord:function(g,i){var k=this.getSession(),j=g,l=i!==undefined,h;if(k){if(l){h=k.getRecord(g,i)}else{h=k.createRecord(g)}}else{if(!j.$isClass){j=this.getSchema().getEntity(j)}if(l){h=j.createWithId(i);h.load()}else{h=new j()}}return h},notFn:function(b){return !b},bindExpression:function(q,m,l,j){var r=q.charAt(0),o=(r==="!"),k=o?q.substring(1):q,p=this.getStub(k),n;n=p.bind(m,l,j);if(o){n.transform=this.notFn}return n},applyScheduler:function(b){if(b&&!b.isInstance){b=new Ext.util.Scheduler(b);b.$owner=this}return b},getScheduler:function(){var f=this,e=f._scheduler,d;if(!e){if(!(d=f.getParent())){e=new Ext.util.Scheduler({preSort:"kind,-depth"});e.$owner=f}else{e=d.getScheduler()}f.setScheduler(e)}return e},getStub:function(c){var d=this.getRoot();return c?d.getChild(c):d},collect:function(){var f=this,d=f.getParent(),e=f.collectTask;if(d){d.collect();return}if(!e){e=f.collectTask=new Ext.util.DelayedTask(f.doCollect,f)}if(f.collectTimeout===0){f.doCollect()}else{e.delay(f.collectTimeout)}},doCollect:function(){var c=this.children,d;if(c){for(d in c){c[d].doCollect()}}this.getRoot().collect()},onBindDestroy:function(g,f){var h=this,e;if(h.destroying){return}if(!f){delete h.bindings[g.id]}e=h.getParent();if(e){e.onBindDestroy(g,true)}else{h.collect()}},applyData:function(j,h){var i=this,g,f;i.getSession();if(!h){f=i.getParent();i.linkData=g=f?Ext.Object.chain(f.getData()):{};i.data=i._data=Ext.Object.chain(g)}if(j&&j.constructor===Object){i.getRoot().set(j)}},applyParent:function(b){if(b){b.registerChild(this)}return b},applyStores:function(j){var o=this,m=o.getRoot(),k,p,r,q,n,l;o.storeInfo={};o.listenerScopeFn=function(){return o.getView().getInheritedConfig("defaultListenerScope")};for(k in j){p=j[k];if(p.isStore){p.$wasInstance=true;o.setupStore(p,k);continue}else{if(Ext.isString(p)){p={source:p}}else{p=Ext.apply({},p)}}n=p.listeners;delete p.listeners;r=o.bind(p,o.onStoreBind,o,{trackStatics:true});if(r.isStatic()){r.destroy();o.createStore(k,p,n)}else{r.$storeKey=k;r.$listeners=n;q=m.createStubChild(k);q.setStore(r)}}},onStoreBind:function(i,n,j){var k=this.storeInfo,l=j.$storeKey,h=k[l],m;if(!h){this.createStore(l,i,j.$listeners,j)}else{i=Ext.merge({},j.pruneStaticKeys());m=i.proxy;delete i.type;delete i.model;delete i.fields;delete i.proxy;delete i.listeners;if(m){delete m.reader;delete m.writer;h.getProxy().setConfig(m)}h.setConfig(i)}},createStore:function(l,h,k,i){var j=this.getSession(),g;h=Ext.apply({},h);if(h.session){h.session=j}if(h.source){h.type=h.type||"chained"}h.listeners=k;g=Ext.Factory.store(h);g.$binding=i;this.setupStore(g,l)},setupStore:function(d,c){d.resolveListenerScope=this.listenerScopeFn;this.storeInfo[c]=d;this.set(c,d)},applyFormulas:function(j){var i=this,g=i.getRoot(),f,h;i.getData();for(f in j){g.createStubChild(f);h=i.getStub(f);h.setFormula(j[f])}return j},applyLinks:function(d){for(var c in d){this.linkTo(c,d[c])}},applySchema:function(b){return Ext.data.schema.Schema.get(b)},applyRoot:function(){var d=new Ext.app.bind.RootStub(this),c=this.getParent();if(c){d.depth=c.getRoot().depth-1000}return d},getFormulaFn:function(f){var d=this,e=d.formulaFn;if(!e){e=d.formulaFn=function(a){return d.$formulaData[a]}}d.$formulaData=f;return e}}},1,0,0,0,["viewmodel.default"],[[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.app,"ViewModel"],0));(Ext.cmd.derive("Ext.app.domain.Controller",Ext.app.EventDomain,{singleton:true,type:"controller",prefix:"controller.",idMatchRe:/^\#/,constructor:function(){var b=this;b.callParent();b.monitor(Ext.app.BaseController)},match:function(g,e){var f=false,h=g.alias;if(e==="*"){f=true}else{if(e==="#"){f=!!g.isApplication}else{if(this.idMatchRe.test(e)){f=g.getId()===e.substring(1)}else{if(h){f=Ext.Array.indexOf(h,this.prefix+e)>-1}}}}return f}},1,0,0,0,0,0,[Ext.app.domain,"Controller"],0));(Ext.cmd.derive("Ext.data.PageMap",Ext.util.LruCache,{config:{store:null,pageSize:0,rootProperty:""},clear:function(d){var c=this;c.pageMapGeneration=(c.pageMapGeneration||0)+1;c.indexMap={};Ext.util.LruCache.prototype.clear.call(this,d)},forEach:function(n,i){var p=this,s=Ext.Object.getKeys(p.map),v=s.length,o=p.getPageSize(),t,u,j,q,r;for(t=0;t<v;t++){s[t]=+s[t]}Ext.Array.sort(s,Ext.Array.numericSortFn);i=i||p;for(t=0;t<v;t++){j=s[t];q=p.getPage(j);r=q.length;for(u=0;u<r;u++){if(n.call(i,q[u],(j-1)*o+u)===false){return}}}},findBy:function(h,e){var g=this,f=null;e=e||g;g.forEach(function(a,b){if(h.call(e,a,b)){f=a;return false}});return f},findIndexBy:function(h,e){var g=this,f=-1;e=e||g;g.forEach(function(a,b){if(h.call(e,a)){f=b;return false}});return f},find:function(l,m,k,o,p,i){if(Ext.isEmpty(m,false)){return null}var n=Ext.String.createRegex(m,o,p,i),j=this.getRootProperty();return this.findBy(function(a){return a&&n.test((j?a[j]:a)[l])},null,k)},findIndex:function(l,m,k,o,p,i){if(Ext.isEmpty(m,false)){return null}var n=Ext.String.createRegex(m,o,p,i),j=this.getRootProperty();return this.findIndexBy(function(a){return a&&n.test((j?a[j]:a)[l])},null,k)},getPageFromRecordIndex:function(b){return Math.floor(b/this.getPageSize())+1},addAll:function(b){this.addPage(1,b)},addPage:function(i,v){var n=this,m=n.getPageSize(),t=i+Math.floor((v.length-1)/m),o=(i-1)*m,q=n.indexMap,r,u,s,p;for(p=0;i<=t;i++,p+=m){r=Ext.Array.slice(v,p,p+m);for(u=0,s=r.length;u<s;u++){q[r[u].internalId]=o++}n.add(i,r);n.fireEvent("pageadd",n,i,r)}},getCount:function(){var b=Ext.util.LruCache.prototype.getCount.call(this);if(b){b=(b-1)*this.getPageSize()+this.last.value.length}return b},getByInternalId:function(d){var c=this.indexMap[d];if(c!=null){return this.getAt(c)}},indexOf:function(c){var d=-1;if(c){d=this.indexMap[c.internalId];if(d==null){d=-1}}return d},insert:function(){},remove:function(){},removeAt:function(){},removeAtKey:function(i){var j=this,l=j.getPage(i),g,k,h;if(l){if(j.fireEvent("beforepageremove",j,i,l)!==false){g=l.length;for(k=0;k<g;k++){delete j.indexMap[l[k].internalId]}h=Ext.util.LruCache.prototype.removeAtKey.apply(this,arguments);j.fireEvent("pageremove",j,i,l);l.length=0}}return h},getPage:function(b){return this.get(b)},hasRange:function(h,f){var j=this,g=j.getPageFromRecordIndex(h),i=j.getPageFromRecordIndex(f);for(;g<=i;g++){if(!j.hasPage(g)){return false}}return(i-1)*j._pageSize+j.getPage(i).length>f},hasPage:function(b){return !!this.get(b)},peekPage:function(b){return this.map[b]},getAt:function(b){return this.getRange(b,b+1)[0]},getRange:function(B,A){A--;if(!this.hasRange(B,A)){Ext.raise("PageMap asked for range which it does not have")}var v=this,y=Ext.Array,u=v.getPageSize(),r=v.getPageFromRecordIndex(B),x=v.getPageFromRecordIndex(A),z=(r-1)*u,p=(x*u)-1,t=r,o=[],q,w,s;for(;t<=x;t++){if(t===r){q=B-z;s=q>0}else{q=0;s=false}if(t===x){w=u-(p-A);s=s||w<u}if(s){y.push(o,y.slice(v.getPage(t),q,w))}else{y.push(o,v.getPage(t))}}return o},destroy:function(){Ext.util.LruCache.prototype.destroy.call(this);this.indexMap={}}},0,0,0,0,0,0,[Ext.data,"PageMap"],0));(Ext.cmd.derive("Ext.data.BufferedStore",Ext.data.ProxyStore,{isBufferedStore:true,buffered:true,config:{data:0,pageSize:25,remoteSort:true,remoteFilter:true,sortOnLoad:false,purgePageCount:5,trailingBufferZone:25,leadingBufferZone:200,defaultViewSize:100,viewSize:0,trackRemoved:false},applyData:function(c){var d=this.data||(this.data=this.createDataCollection());return d},applyProxy:function(b){b=Ext.data.ProxyStore.prototype.applyProxy.call(this,b);if(b&&b.setEnablePaging){b.setEnablePaging(true)}return b},createFiltersCollection:function(){return new Ext.util.FilterCollection()},createSortersCollection:function(){return new Ext.util.SorterCollection()},updateGroupField:function(b){this.group(b)},getGrouper:function(){return this.grouper},isGrouped:function(){return !!this.grouper},createDataCollection:function(){var c=this,d=new Ext.data.PageMap({store:c,rootProperty:"data",pageSize:c.getPageSize(),maxSize:c.getPurgePageCount(),listeners:{clear:c.onPageMapClear,scope:c}});c.relayEvents(d,["beforepageremove","pageadd","pageremove"]);c.pageRequests={};return d},removeAll:function(e){var d=this,f=d.getData();if(f){if(e){d.suspendEvent("clear")}f.clear();if(e){d.resumeEvent("clear")}}},flushLoad:function(){var c=this,d=c.pendingLoadOptions;c.clearLoadTask();if(!d){return}c.getData().clear();d.page=1;d.start=0;d.limit=c.getViewSize()||c.getDefaultViewSize();d.loadCallback=d.callback;d.callback=null;return c.loadToPrefetch(d)},reload:function(i){var r=this,t=r.getData(),p=Number.MAX_VALUE,q,w,s,n,u,x,o,v;if(!i){i={}}if(r.loading||r.fireEvent("beforeload",r,i)===false){return}x=function(){var b=r.totalCount,a=w-q;if(w>=b){w=b-1;q=Math.max(w-a,0)}if(r.rangeCached(q,Math.min(w,r.totalCount))){r.loading=false;t.un("pageadd",x);v=t.getRange(q,w+1);r.fireEvent("load",r,v,true);r.fireEvent("refresh",r)}};o=Math.ceil((r.getLeadingBufferZone()+r.getTrailingBufferZone())/2);if(r.lastRequestStart&&r.preserveScrollOnReload){q=r.lastRequestStart;w=r.lastRequestEnd;p=r.getTotalCount()}else{q=i.start||0;w=q+(i.count||r.getPageSize())-1}t.clear(true);delete r.totalCount;q=Math.max(q-o,0);w=Math.min(w+o,p);s=r.getPageFromRecordIndex(q);n=r.getPageFromRecordIndex(w);r.loading=true;i.waitForReload=x;t.on("pageadd",x);for(u=s;u<=n;u++){r.prefetchPage(u,i)}},filter:function(){Ext.data.ProxyStore.prototype.filter.apply(this,arguments)},filterBy:function(c,d){},loadData:function(c,d){},loadPage:function(f,e){var d=this;e=e||{};e.page=d.currentPage=f;e.start=(f-1)*d.getPageSize();e.limit=d.getViewSize()||d.getDefaultViewSize();e.loadCallback=e.callback;e.callback=null;return d.loadToPrefetch(e)},clearData:function(f){var e=this,d=e.getData();if(d){d.clear()}},getCount:function(){return this.totalCount||0},getRange:function(w,t,o){var p=this,v=p.totalCount-1,u=p.lastRequestStart,n=[],s=p.getData(),x,q,y,z,r;o=Ext.apply({prefetchStart:w,prefetchEnd:t},o);t=(t>=p.totalCount)?v:t;q=w===0?0:w-1;y=t===v?t:t+1;p.lastRequestStart=w;p.lastRequestEnd=t;if(p.rangeCached(q,y)){p.onRangeAvailable(o);n=s.getRange(w,t+1)}else{p.fireEvent("cachemiss",p,w,t);z=p.getPageFromRecordIndex(q);r=p.getPageFromRecordIndex(y);x=function(c,a,b){if(a>=z&&a<=r&&p.rangeCached(q,y)){p.fireEvent("cachefilled",p,w,t);s.un("pageadd",x);p.onRangeAvailable(o)}};s.on("pageadd",x);p.prefetchRange(w,t)}p.primeCache(w,t,w<u?-1:1);return n},getById:function(c){var d=this.data.findBy(function(a){return a.getId()===c});return d},getAt:function(d){var c=this.getData();if(c.hasRange(d,d)){return c.getAt(d)}},getByInternalId:function(b){return this.data.getByInternalId(b)},contains:function(b){return this.indexOf(b)>-1},indexOf:function(b){return this.getData().indexOf(b)},indexOfId:function(b){return this.indexOf(this.getById(b))},group:function(e,g){var h=this,f;if(e&&typeof e==="string"){f=h.grouper;if(!f){h.grouper=new Ext.util.Grouper({property:e,direction:g||"ASC",root:"data"})}else{if(g===undefined){f.toggle()}else{f.setDirection(g)}}}else{h.grouper=e?h.getSorters().decodeSorter(e,"Ext.util.Grouper"):null}h.getData().clear();h.loadPage(1,{callback:function(){h.fireEvent("groupchange",h,h.getGrouper())}})},getPageFromRecordIndex:function(b){return Math.floor(b/this.getPageSize())+1},calculatePageCacheSize:function(e){var f=this,d=f.getPurgePageCount();return d?Math.max(f.getData().getMaxSize()||0,Math.ceil((e+f.getTrailingBufferZone()+f.getLeadingBufferZone())/f.getPageSize())*2+d):0},loadToPrefetch:function(i){var x=this,F=i,B,G,v,w=i.start,H=i.start+i.limit-1,s=(x.getViewSize()||i.limit),A=Math.min(H,i.start+s-1),z=x.getPageFromRecordIndex(Math.max(w-x.getTrailingBufferZone(),0)),t=x.getPageFromRecordIndex(H+x.getLeadingBufferZone()),C=x.getData(),y=function(){G=G||[];if(i.loadCallback){i.loadCallback.call(i.scope||x,G,D,true)}if(i.callback){i.callback.call(i.scope||x,G,w||0,H||0,i)}},u=function(){x.fireEvent("datachanged",x);x.fireEvent("refresh",x);x.fireEvent("load",x,G,true)},E=function(){if(x.rangeCached(w,A)){x.loading=false;G=C.getRange(w,A+1);C.un("pageadd",E);if(x.hasListeners.guaranteedrange){x.guaranteeRange(w,A,i.callback,i.scope)}y();u()}},D;C.setMaxSize(x.calculatePageCacheSize(s));if(x.fireEvent("beforeload",x,i)!==false){delete x.totalCount;x.loading=true;if(i.callback){F=Ext.apply({},i);delete F.callback}x.on("prefetch",function(d,c,a,b){D=b;if(a){if((v=x.getTotalCount())){C.on("pageadd",E);A=Math.min(A,v-1);t=x.getPageFromRecordIndex(Math.min(A+x.getLeadingBufferZone(),v-1));for(B=z+1;B<=t;++B){x.prefetchPage(B,F)}}else{y();u()}}else{x.loading=false;y();x.fireEvent("load",x,c,false)}},null,{single:true});x.prefetchPage(z,F)}},prefetch:function(k){var j=this,g=j.getPageSize(),i=j.getData(),l,h;if(g){if(j.lastPageSize&&g!=j.lastPageSize){Ext.raise("pageSize cannot be dynamically altered")}if(!i.getPageSize()){i.setPageSize(g)}}else{j.pageSize=i.setPageSize(g=k.limit)}j.lastPageSize=g;if(!k.page){k.page=j.getPageFromRecordIndex(k.start);k.start=(k.page-1)*g;k.limit=Math.ceil(k.limit/g)*g}h=j.pageRequests[k.page];if(!h||h.getOperation().pageMapGeneration!==i.pageMapGeneration){k=Ext.apply({action:"read",filters:j.getFilters().items,sorters:j.getSorters().items,grouper:j.getGrouper(),internalCallback:j.onProxyPrefetch,internalScope:j},k);l=j.createOperation("read",k);l.pageMapGeneration=i.pageMapGeneration;if(j.fireEvent("beforeprefetch",j,l)!==false){j.pageRequests[k.page]=l.execute();if(j.getProxy().isSynchronous){delete j.pageRequests[k.page]}}}return j},onPageMapClear:function(){var j=this,f=j.wasLoading,g=j.pageRequests,h=j.getData(),i;h.clearListeners();h.on("clear",j.onPageMapClear,j);j.relayEvents(h,["beforepageremove","pageadd","pageremove"]);j.loading=true;j.totalCount=0;for(i in g){if(g.hasOwnProperty(i)){g[i].getOperation().abort()}}j.fireEvent("clear",j);j.loading=f},prefetchPage:function(j,g){var k=this,h=k.getPageSize(),i=(j-1)*h,l=k.totalCount;if(l!==undefined&&k.data.getCount()===l){return}k.prefetch(Ext.applyIf({page:j,start:i,limit:h},g))},onProxyPrefetch:function(s){if(this.destroyed){return}var o=this,n=s.getResultSet(),t=s.getRecords(),q=s.wasSuccessful(),p=s.getPage(),u=s.waitForReload,l=o.totalCount,v=o.pageRequests,m,r;if(s.pageMapGeneration===o.getData().pageMapGeneration){if(n){o.totalCount=n.getTotal();if(o.totalCount!==l){o.fireEvent("totalcountchange",o.totalCount)}}if(p!==undefined){delete o.pageRequests[p]}o.loading=false;o.fireEvent("prefetch",o,t,q,s);if(q){if(o.totalCount===0){if(u){for(m in v){r=v[m].getOperation();if(r.waitForReload===u){delete r.waitForReload}}o.getData().un("pageadd",u);o.fireEvent("load",o,[],true);o.fireEvent("refresh",o)}}else{o.cachePage(t,s.getPage())}}Ext.callback(s.getCallback(),s.getScope()||o,[t,s,q])}},cachePage:function(f,h){var i=this,g=f.length,j;if(!Ext.isDefined(i.totalCount)){i.totalCount=f.length;i.fireEvent("totalcountchange",i.totalCount)}for(j=0;j<g;j++){f[j].join(i)}i.getData().addPage(h,f)},rangeCached:function(c,d){return this.getData().hasRange(c,d)},pageCached:function(b){return this.getData().hasPage(b)},pagePending:function(b){return !!this.pageRequests[b]},rangeSatisfied:function(c,d){return this.rangeCached(c,d)},onRangeAvailable:function(k){var j=this,g=j.getTotalCount(),i=k.prefetchStart,h=(k.prefetchEnd>g-1)?g-1:k.prefetchEnd,l;h=Math.max(0,h);l=j.getData().getRange(i,h+1);if(k.fireEvent!==false){j.fireEvent("guaranteedrange",l,i,h,k)}if(k.callback){k.callback.call(k.scope||j,l,i,h,k)}},guaranteeRange:function(h,g,i,j,f){f=Ext.apply({callback:i,scope:j},f);this.getRange(h,g+1,f)},prefetchRange:function(j,h){var m=this,n,i,k,l=m.getData();if(!m.rangeCached(j,h)){n=m.getPageFromRecordIndex(j);i=m.getPageFromRecordIndex(h);l.setMaxSize(m.calculatePageCacheSize(h-j+1));for(k=n;k<=i;k++){if(!m.pageCached(k)){m.prefetchPage(k)}}}},primeCache:function(k,p,l){var m=this,n=m.getLeadingBufferZone(),o=m.getTrailingBufferZone(),i=m.getPageSize(),j=m.totalCount;if(l===-1){k=Math.max(k-n,0);p=Math.min(p+o,j-1)}else{if(l===1){k=Math.max(Math.min(k-o,j-i),0);p=Math.min(p+n,j-1)}else{k=Math.min(Math.max(Math.floor(k-((n+o)/2)),0),j-m.pageSize);p=Math.min(Math.max(Math.ceil(p+((n+o)/2)),0),j-1)}}m.prefetchRange(k,p)},sort:function(d,e,f){if(arguments.length===0){this.clearAndLoad()}else{this.getSorters().addSort(d,e,f)}},onSorterEndUpdate:function(){var d=this,c=d.getSorters().getRange();if(c.length){d.fireEvent("beforesort",d,c);d.clearAndLoad({callback:function(){d.fireEvent("sort",d,c)}})}else{d.fireEvent("sort",d,c)}},clearAndLoad:function(b){this.getData().clear();this.loadPage(1,b)},privates:{isLast:function(b){return this.indexOf(b)===this.getTotalCount()-1},isMoving:function(){return false}}},0,0,0,0,["store.buffered"],0,[Ext.data,"BufferedStore"],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 r=this,w=Ext.isDefined(n.disableCaching)?n.disableCaching:r.disableCaching,t=n.disableCachingParam||r.disableCachingParam,x=++r.requestCount,p=n.callbackName||"callback"+x,s=n.callbackKey||r.callbackKey,o=Ext.isDefined(n.timeout)?n.timeout:r.timeout,v=Ext.apply({},n.params),y=n.url,z=Ext.name,u,q;if(w&&!v[t]){v[t]=Ext.Date.now()}n.params=v;v[s]=z+".data.JsonP."+p;q=r.createScript(y,v,n);r.requests[x]=u={url:y,params:v,script:q,id:x,scope:n.scope,success:n.success,failure:n.failure,callback:n.callback,callbackKey:s,callbackName:p};if(o>0){u.timeout=Ext.defer(r.handleTimeout,o,r,[u])}r.setupErrorHandling(u);r[p]=Ext.bind(r.handleResponse,r,[u],true);r.loadScript(u);return u},abort:function(h){var e=this,g=e.requests,f;if(h){if(!h.id){h=g[h]}e.handleAbort(h)}else{for(f in g){if(g.hasOwnProperty(f)){e.abort(g[f])}}}},setupErrorHandling:function(b){b.script.onerror=Ext.bind(this.handleError,this,[b])},handleAbort:function(b){b.errorType="abort";this.handleResponse(null,b)},handleError:function(b){b.errorType="error";this.handleResponse(null,b)},cleanupErrorHandling:function(b){b.script.onerror=null},handleTimeout:function(b){b.errorType="timeout";this.handleResponse(null,b)},handleResponse:function(e,h){var g=true,f=Ext.GlobalEvents;if(h.timeout){clearTimeout(h.timeout)}delete this[h.callbackName];delete this.requests[h.id];this.cleanupErrorHandling(h);Ext.fly(h.script).destroy();if(h.errorType){g=false;Ext.callback(h.failure,h.scope,[h.errorType])}else{Ext.callback(h.success,h.scope,[e])}Ext.callback(h.callback,h.scope,[g,e,h.errorType]);if(f.hasListeners.idle){f.fireEvent("idle")}},createScript:function(h,g,e){var f=document.createElement("script");f.setAttribute("src",Ext.urlAppend(h,Ext.Object.toQueryString(g)));f.setAttribute("async",true);f.setAttribute("type","text/javascript");return f},loadScript:function(b){Ext.getHead().appendChild(b.script)}},0,0,0,0,0,0,[Ext.data,"JsonP"],0));(Ext.cmd.derive("Ext.data.NodeInterface",Ext.Base,{statics:{decorate:function(g){var k=Ext.data.schema.Schema.lookupEntity(g),i=k.prototype,h,l,j;if(!k.prototype.isObservable){k.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(i.isNode){return}h=i.idProperty;l=k.getField(h);j=l.type;k.override(this.getPrototypeBody());k.addFields([{name:"parentId",type:j,defaultValue:null,allowNull:l.allowNull},{name:"index",type:"int",defaultValue:-1,persist:false,convert:null},{name:"depth",type:"int",defaultValue:0,persist:false,convert:null},{name:"expanded",type:"bool",defaultValue:false,persist:false,convert:null},{name:"expandable",type:"bool",defaultValue:true,persist:false,convert:null},{name:"checked",type:"auto",defaultValue:null,persist:false,convert:null},{name:"leaf",type:"bool",defaultValue:false},{name:"cls",type:"string",defaultValue:"",persist:false,convert:null},{name:"iconCls",type:"string",defaultValue:"",persist:false,convert:null},{name:"icon",type:"string",defaultValue:"",persist:false,convert:null},{name:"root",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"isLast",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"isFirst",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"allowDrop",type:"boolean",defaultValue:true,persist:false,convert:null},{name:"allowDrag",type:"boolean",defaultValue:true,persist:false,convert:null},{name:"loaded",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"loading",type:"boolean",defaultValue:false,persist:false,convert:null},{name:"href",type:"string",defaultValue:"",persist:false,convert:null},{name:"hrefTarget",type:"string",defaultValue:"",persist:false,convert:null},{name:"qtip",type:"string",defaultValue:"",persist:false,convert:null},{name:"qtitle",type:"string",defaultValue:"",persist:false,convert:null},{name:"qshowDelay",type:"int",defaultValue:0,persist:false,convert:null},{name:"children",type:"auto",defaultValue:null,persist:false,convert:null},{name:"visible",type:"boolean",defaultValue:true,persist:false},{name:"text",type:"string",persist:false}])},getPrototypeBody:function(){var d={idchanged:true,append:true,remove:true,move:true,insert:true,beforeappend:true,beforeremove:true,beforemove:true,beforeinsert:true,expand:true,collapse:true,beforeexpand:true,beforecollapse:true,sort:true},c={silent:true};return{isNode:true,firstChild:null,lastChild:null,parentNode:null,previousSibling:null,nextSibling:null,constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.callParent(arguments);a.childNodes=[];return a},createNode:function(t){var n=this,p=n.childType,a,m,r,b,o,q,s=n.self;if(!t.isModel){if(p){s=n.schema.getEntity(p)}else{a=n.getTreeStore();m=a&&a.getProxy().getReader();r=n.getProxy();b=r?r.getReader():null;o=!m||(b&&b.initialConfig.typeProperty)?b:m;if(o){q=o.getTypeProperty();if(q){s=o.getChildType(n.schema,t,q)}}}t=new s(t)}if(!t.childNodes){t.firstChild=t.lastChild=t.parentNode=t.previousSibling=t.nextSibling=null;t.childNodes=[]}return t},isLeaf:function(){return this.get("leaf")===true},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(I,x){var b=this,M=b.data,i=M.depth,K={},L=b.childNodes,y=L.length,H=b.phantom,A=b.fields,J=b.modified||(b.modified={}),C,D,N,G,a,F=x.parentId,E,B,z;for(C in x){N=A[b.fieldOrdinals[C]];D=x[C];B=N&&N.persist;G=M[C];E=B&&(C==="index")&&(G!==-1)&&(F&&F!==J.parentId);if(!E&&b.isEqual(G,D)){continue}M[C]=D;if(B){if(!E&&J.hasOwnProperty(C)){if(b.isEqual(J[C],D)){delete J[C];b.dirty=false;for(a in J){if(J.hasOwnProperty(a)){b.dirty=true;break}}}}else{b.dirty=true;J[C]=G}}}if(I){b.commit();b.phantom=H}if(b.data.depth!==i){K={depth:b.data.depth+1};for(z=0;z<y;z++){L[z].updateInfo(I,K)}}},isLast:function(){return this.get("isLast")},isFirst:function(){return this.get("isFirst")},hasChildNodes:function(){return !this.isLeaf()&&this.childNodes.length>0},isExpandable:function(){var a=this;if(a.get("expandable")){return !(a.isLeaf()||(a.isLoaded()&&!a.phantom&&!a.hasChildNodes()))}return false},triggerUIUpdate:function(){this.callJoined("afterEdit",[])},appendChild:function(w,i,v){var r=this,u,s,t,q,z,a={isLast:true,parentId:r.getId(),depth:(r.data.depth||0)+1},b,x=r.getTreeStore(),y=x&&x.bulkUpdate;Ext.suspendLayouts();if(Ext.isArray(w)){s=w.length;b=new Array(s);r.callTreeStore("beginFill");for(u=0;u<s;u++){b[u]=r.appendChild(w[u],i,v)}r.callTreeStore("endFill",[b])}else{w=r.createNode(w);if(i!==true&&r.fireEventArgs("beforeappend",[r,w])===false){Ext.resumeLayouts(true);return false}t=r.childNodes.length;q=w.parentNode;if(q){if(i!==true&&w.fireEventArgs("beforemove",[w,q,r,t])===false){Ext.resumeLayouts(true);return false}if(q.removeChild(w,false,i,q.getTreeStore()===x)===false){Ext.resumeLayouts(true);return false}}x&&x.beginUpdate();t=r.childNodes.length;if(t===0){r.setFirstChild(w)}r.childNodes[t]=w;w.parentNode=r;w.nextSibling=null;r.setLastChild(w);z=r.childNodes[t-1];if(z){w.previousSibling=z;z.nextSibling=w;z.updateInfo(v,{isLast:false});if(!y){z.triggerUIUpdate()}}else{w.previousSibling=null}a.isFirst=t===0;a.index=t;w.updateInfo(v,a);if(r.isLeaf()){r.set("leaf",false)}if(!r.isLoaded()){if(y){r.data.loaded=true}else{r.set("loaded",true)}}else{if(r.childNodes.length===1&&!y){r.triggerUIUpdate()}}if(t&&r.childNodes[t-1].isExpanded()&&!y){r.childNodes[t-1].cascadeBy(r.triggerUIUpdate)}if(x){x.registerNode(r,!y);if(y){x.registerNode(w)}}if(i!==true){r.fireEventArgs("append",[r,w,t]);if(q){w.fireEventArgs("move",[w,q,r,t])}}r.callTreeStore("onNodeAppend",[w,t]);b=w;if(x){x.endUpdate()}}Ext.resumeLayouts(true);return b},getOwnerTree:function(){var a=this.getTreeStore();if(a){return a.ownerTree}},getTreeStore:function(){var a=this;while(a&&!a.treeStore){a=a.parentNode}return a&&a.treeStore},removeChild:function(t,v,a,b){var i=this,p=i.indexOf(t),r,s,x,u=i.getTreeStore(),w=u&&u.bulkUpdate,q;if(p===-1||(a!==true&&i.fireEventArgs("beforeremove",[i,t,!!b])===false)){return false}Ext.suspendLayouts();u&&u.beginUpdate();Ext.Array.erase(i.childNodes,p,1);if(i.firstChild===t){i.setFirstChild(t.nextSibling)}if(i.lastChild===t){i.setLastChild(t.previousSibling)}x=t.previousSibling;if(x){t.previousSibling.nextSibling=t.nextSibling}if(t.nextSibling){t.nextSibling.previousSibling=t.previousSibling;if(p===0){t.nextSibling.updateInfo(false,{isFirst:true})}for(r=p,s=i.childNodes.length;r<s;r++){i.childNodes[r].updateInfo(false,{index:r})}}else{if(x){x.updateInfo(false,{isLast:true});if(!w){if(x.isExpanded()){x.cascadeBy(i.triggerUIUpdate)}else{x.triggerUIUpdate()}}}}if(!i.childNodes.length&&!w){i.triggerUIUpdate()}Ext.resumeLayouts(true);if(a!==true){q={parentNode:t.parentNode,previousSibling:t.previousSibling,nextSibling:t.nextSibling};i.callTreeStore("beforeNodeRemove",[[t],!!b]);t.previousSibling=t.nextSibling=t.parentNode=null;i.fireEventArgs("remove",[i,t,!!b,q]);i.callTreeStore("onNodeRemove",[[t],!!b])}if(v){t.erase(true)}else{t.clear()}if(!b){t.set({parentId:null,lastParentId:i.getId()},c)}if(u){u.endUpdate()}return t},copy:function(i,j){var a=this,k=a.callParent([i]),l=a.childNodes?a.childNodes.length:0,b;if(j){for(b=0;b<l;b++){k.appendChild(a.childNodes[b].copy(undefined,true))}}return k},clear:function(b){var a=this;a.parentNode=a.previousSibling=a.nextSibling=null;if(b){a.firstChild=a.lastChild=a.childNodes=null}},drop:function(){var i=this,a=i.childNodes,m=i.parentNode,n=a?a.length:0,l,k,b;i.callParent();if(m){b=i.getTreeStore();m.removeChild(i)}else{if(i.get("root")){b=i.getTreeStore();b.setRoot(null)}}b&&b.beginUpdate();for(l=0;l<n;l++){k=a[l];k.clear();k.drop()}b&&b.endUpdate()},erase:function(k){var b=this,a=b.childNodes,l=a&&a.length,j,i;b.remove();b.clear(true);b.callParent([k]);for(j=0;j<l;j++){i=a[j];i.parentNode=null;i.erase(k)}},insertBefore:function(u,q,a){var p=this,r=p.indexOf(q),i=u.parentNode,b=r,t,x,s,v=p.getTreeStore(),w=v&&v.bulkUpdate;if(!q){return p.appendChild(u)}if(u===q){return false}u=p.createNode(u);if(a!==true&&p.fireEventArgs("beforeinsert",[p,u,q])===false){return false}if(i===p&&p.indexOf(u)<r){b--}if(i){if(a!==true&&u.fireEventArgs("beforemove",[u,i,p,r,q])===false){return false}if(i.removeChild(u,false,a,i.getTreeStore()===v)===false){return false}}v&&v.beginUpdate();if(b===0){p.setFirstChild(u)}Ext.Array.splice(p.childNodes,b,0,u);u.parentNode=p;u.nextSibling=q;q.previousSibling=u;x=p.childNodes[b-1];if(x){u.previousSibling=x;x.nextSibling=u}else{u.previousSibling=null}u.updateInfo(false,{parentId:p.getId(),index:b,isFirst:b===0,isLast:false,depth:(p.data.depth||0)+1});for(s=b+1,t=p.childNodes.length;s<t;s++){p.childNodes[s].updateInfo(false,{index:s})}if(!p.isLoaded()){if(w){p.data.loaded=true}else{p.set("loaded",true)}}else{if(p.childNodes.length===1&&!w){p.triggerUIUpdate()}}if(v){v.registerNode(p,!w)}if(a!==true){p.fireEventArgs("insert",[p,u,q]);if(i){u.fireEventArgs("move",[u,i,p,b,q])}}p.callTreeStore("onNodeInsert",[u,b]);if(v){v.endUpdate()}return u},insertChild:function(f,a){var b=this.childNodes[f];if(b){return this.insertBefore(a,b)}else{return this.appendChild(a)}},isLastVisible:function(){var a=this,f=a.data.isLast,b=a.nextSibling;if(!f&&a.getTreeStore().isFiltered()){while(b){if(b.data.visible){return false}b=b.nextSibling}return true}return f},remove:function(g,b){var a=this,h=a.parentNode;if(h){h.removeChild(a,g,b)}else{if(g){a.erase(true)}}return a},removeAll:function(r,a,o){var i=this,b=i.childNodes,m=b.length,p,q,n;if(!m){return}if(!o){q=i.getTreeStore();if(q){q.beginUpdate();q.suspendEvent("remove");i.callTreeStore("beforeNodeRemove",[b,false])}}for(n=0;n<m;++n){p=b[n];p.previousSibling=p.nextSibling=p.parentNode=null;i.fireEventArgs("remove",[i,p,false]);if(r){p.erase(true)}else{p.removeAll(false,a,true)}}if(!o&&q){q.resumeEvent("remove");i.callTreeStore("onNodeRemove",[b,false]);q.endUpdate()}i.firstChild=i.lastChild=null;b.length=0;if(!o){i.triggerUIUpdate()}return i},getChildAt:function(a){return this.childNodes[a]},replaceChild:function(h,a,b){var g=a?a.nextSibling:null;this.removeChild(a,false,b);this.insertBefore(h,g,b);return a},indexOf:function(a){return Ext.Array.indexOf(this.childNodes,a)},indexOfId:function(a){var b=this.childNodes,h=b.length,g=0;for(;g<h;++g){if(b[g].getId()===a){return g}}return -1},getPath:function(a,b){a=a||this.idProperty;b=b||"/";var g=[this.get(a)],h=this.parentNode;while(h){g.unshift(h.get(a));h=h.parentNode}return b+g.join(b)},getDepth:function(){return this.get("depth")},bubble:function(b,g,h){var a=this;while(a){if(b.apply(g||a,h||[a])===false){break}a=a.parentNode}},cascadeBy:function(i,n,p,a){var l=this;if(arguments.length===1&&!Ext.isFunction(i)){a=i.after;n=i.scope;p=i.args;i=i.before}if(!i||i.apply(n||l,p||[l])!==false){var b=l.childNodes,m=b.length,o;for(o=0;o<m;o++){b[o].cascadeBy.call(b[o],i,n,p,a)}if(a){a.apply(n||l,p||[l])}}},eachChild:function(i,j,l){var a=this.childNodes,b=a.length,k;for(k=0;k<b;k++){if(i.apply(j||this,l||[a[k]])===false){break}}},findChild:function(b,a,f){return this.findChildBy(function(){return this.get(b)==a},null,f)},findChildBy:function(b,i,o){var l=this.childNodes,p=l.length,m=0,a,n;for(;m<p;m++){a=l[m];if(b.call(i||a,a)===true){return a}else{if(o){n=a.findChildBy(b,i,o);if(n!==null){return n}}}}return null},contains:function(a){return a.isAncestor(this)},isAncestor:function(b){var a=this.parentNode;while(a){if(a===b){return true}a=a.parentNode}return false},sort:function(a,p,b){var m=this,i=m.childNodes,n=i.length,o,q,r={isFirst:true};if(n>0){if(!a){a=m.getTreeStore().getSortFn()}Ext.Array.sort(i,a);m.setFirstChild(i[0]);m.setLastChild(i[n-1]);for(o=0;o<n;o++){q=i[o];q.previousSibling=i[o-1];q.nextSibling=i[o+1];r.isLast=(o===n-1);r.index=o;q.updateInfo(false,r);r.isFirst=false;if(p&&!q.isLeaf()){q.sort(a,true,true)}}if(b!==true){m.fireEventArgs("sort",[m,i]);m.callTreeStore("onNodeSort",[i])}}},isExpanded:function(){return this.get("expanded")},isLoaded:function(){return this.get("loaded")},isBranchLoaded:function(){var a=!this.isLeaf()&&this.isLoaded();if(a){this.cascadeBy(function(b){if(!b.isLeaf()){a=a||b.isBranchLoaded()}return a})}return a},isLoading:function(){return this.get("loading")},isRoot:function(){return !this.parentNode},isVisible:function(){var a=this.parentNode;while(a){if(!a.isExpanded()){return false}a=a.parentNode}return true},expand:function(l,a,k){var j=this,i,b;if(!j.isLeaf()){if(j.isLoading()){j.on("expand",function(){j.expand(l,a,k)},j,{single:true})}else{if(!j.isExpanded()){if(j.fireEventArgs("beforeexpand",[j])!==false){if(l){if(j.parentNode&&j.parentNode.isSynchronousRecursiveExpand){j.isSynchronousRecursiveExpand=true}else{i=j.getTreeStore();if(i.getProxy().isSynchronous||j.isBranchLoaded()){j.isSynchronousRecursiveExpand=true;i.suspendEvent("add");b=true}}}j.callTreeStore("onBeforeNodeExpand",[j.onChildNodesAvailable,j,[l,a,k]]);if(b){i.resumeEvent("add");i.fireEvent("refresh",i)}j.isSynchronousRecursiveExpand=false}}else{if(l){j.expandChildren(true,a,k)}else{Ext.callback(a,k||j,[j.childNodes])}}}}else{Ext.callback(a,k||j)}},onChildNodesAvailable:function(q,r,b,a){var n=this,s=n.getTreeStore(),t=s&&s.bulkUpdate,o,p,i;Ext.suspendLayouts();for(o=n.parentNode;o;o=o.parentNode){if(!o.isExpanded()){(i||(i=[])).unshift(o)}}if(t){n.data.expanded=true}else{n.set("expanded",true)}if(i){for(p=1;p<i.length;p++){o=i[p];if(t){o.data.expanded=true}else{o.set("expanded",true)}}i[0].expand();for(p=1;p<i.length;p++){o=i[p];o.fireEventArgs("expand",[o,o.childNodes])}}else{n.callTreeStore("onNodeExpand",[q,false])}n.fireEventArgs("expand",[n,q]);if(r){n.expandChildren(true,b,a)}else{Ext.callback(b,a||n,[n.childNodes])}Ext.resumeLayouts(true)},expandChildren:function(t,b,a,s){var p=this,i,r,w,x,q,u,v;if(Ext.isBoolean(b)){i=b;b=a;a=s;s=i}if(s===undefined){v=p.getTreeStore();s=v&&v.singleExpand}w=p.childNodes;x=[];q=s?Math.min(w.length,1):w.length;for(r=0;r<q;++r){u=w[r];if(!u.isLeaf()){x[x.length]=u}}q=x.length;for(r=0;r<q;++r){x[r].expand(t)}if(b){Ext.callback(b,a||p,[p.childNodes])}},collapse:function(r,b,a){var i=this,o=i.isExpanded(),s=i.getTreeStore(),t=s&&s.bulkUpdate,n=i.childNodes.length,q,p;if(!i.isLeaf()&&((!o&&r)||i.fireEventArgs("beforecollapse",[i])!==false)){Ext.suspendLayouts();if(i.isExpanded()){if(r){p=function(){for(q=0;q<n;q++){i.childNodes[q].setCollapsed(true)}};if(b){b=Ext.Function.createSequence(p,Ext.Function.bind(b,a,[i.childNodes]))}else{b=p}}else{if(b){b=Ext.Function.bind(b,a,[i.childNodes])}}if(t){i.data.expanded=false}else{i.set("expanded",false)}i.callTreeStore("onNodeCollapse",[i.childNodes,b,a]);i.fireEventArgs("collapse",[i,i.childNodes]);b=null}else{if(r){for(q=0;q<n;q++){i.childNodes[q].setCollapsed(true)}}}Ext.resumeLayouts(true)}Ext.callback(b,a||i,[i.childNodes])},setCollapsed:function(g){var a=this,h=a.childNodes.length,b;if(!a.isLeaf()&&a.fireEventArgs("beforecollapse",[a])!==false){a.data.expanded=false;a.fireEventArgs("collapse",[a,a.childNodes]);if(g){for(b=0;b<h;b++){a.childNodes[b].setCollapsed(true)}}}},collapseChildren:function(p,b,a){var i=this,n,r=i.childNodes,m=r.length,o=[],q;for(n=0;n<m;++n){q=r[n];if(!q.isLeaf()&&q.isLoaded()&&q.isExpanded()){o.push(q)}}m=o.length;if(m){for(n=0;n<m;++n){q=o[n];if(n===m-1){q.collapse(p,b,a)}else{q.collapse(p)}}}else{Ext.callback(b,a)}},fireEvent:function(a){return this.fireEventArgs(a,Ext.Array.slice(arguments,1))},fireEventArgs:function(k,i){var a=Ext.mixin.Observable.prototype.fireEventArgs,l,b,j;if(d[k]){for(b=this;l!==false&&b;b=(j=b).parentNode){if(b.hasListeners&&b.hasListeners[k]){l=a.call(b,k,i)}}if(l!==false){b=j.getTreeStore();if(b&&b.hasListeners&&b.hasListeners[k="node"+k]){l=b.fireEventArgs(k,i)}}return l}else{return a.apply(this,arguments)}},serialize:function(l){var b=l||new Ext.data.writer.Json({writeAllFields:true}),m=b.getRecordData(this),a=this.childNodes,n=a.length,i,k;if(n>0){m.children=i=[];for(k=0;k<n;k++){i.push(a[k].serialize(b))}}return m},callTreeStore:function(a,j){var h=this,b=h.getTreeStore(),i=b&&b[a];if(b&&i){j=j||[];if(j[0]!==h){j.unshift(h)}i.apply(b,j)}},privates:{join:function(a){if(a.isTreeStore){if(this.isRoot()){this.treeStore=this.store=a}}else{this.callParent([a])}},callJoined:function(a,b){this.callParent([a,b]);this.callTreeStore(a,b)}}}}}},0,0,0,0,0,0,[Ext.data,"NodeInterface"],0));(Ext.cmd.derive("Ext.mixin.Queryable",Ext.Base,{mixinId:"queryable",isQueryable:true,query:function(b){b=b||"*";return Ext.ComponentQuery.query(b,this.getQueryRoot())},queryBy:function(k,l){var n=[],h=this.getQueryRoot().getRefItems(true),m=0,i=h.length,j;for(;m<i;++m){j=h[m];if(k.call(l||j,j)!==false){n.push(j)}}return n},queryById:function(b){return this.down(Ext.makeIdSelector(b))},child:function(d){var c=this.getQueryRoot().getRefItems();if(d&&d.isComponent){return this.matchById(c,d.getItemId())}if(d){c=Ext.ComponentQuery.query(d,c)}if(c.length){return c[0]}return null},down:function(b){if(b&&b.isComponent){return this.matchById(this.getRefItems(true),b.getItemId())}b=b||"";return this.query(b)[0]||null},visitPreOrder:function(f,g,h,e){Ext.ComponentQuery._visit(true,f,this.getQueryRoot(),g,h,e)},visitPostOrder:function(f,g,h,e){Ext.ComponentQuery._visit(false,f,this.getQueryRoot(),g,h,e)},getRefItems:function(){return[]},getQueryRoot:function(){return this},privates:{matchById:function(f,h){var g=f.length,j,i;for(j=0;j<g;++j){i=f[j];if(i.getItemId()===h){return i}}return null}}},0,0,0,0,0,0,[Ext.mixin,"Queryable"],0));(Ext.cmd.derive("Ext.data.TreeModel",Ext.data.Model,{getRefItems:function(){return this.childNodes},getRefOwner:function(){return this.parentNode},statics:{defaultProxy:"memory"}},0,0,0,0,0,[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable]],[Ext.data,"TreeModel"],function(){Ext.data.NodeInterface.decorate(this)}));(Ext.cmd.derive("Ext.data.Request",Ext.Base,{config:{action:undefined,params:undefined,method:"GET",url:null,operation:null,proxy:null,disableCaching:false,headers:{},callbackKey:null,rawRequest:null,jsonData:undefined,xmlData:undefined,withCredentials:false,username:null,password:null,binary:false,callback:null,scope:null,timeout:30000,records:null,directFn:null,args:null,useDefaultXhrHeader:null},constructor:function(b){this.initConfig(b)},getParam:function(e){var f=this.getParams(),d;if(f){return f[e]}return d},setParam:function(e,d){var f=this.getParams()||{};f[e]=d;this.setParams(f)}},1,0,0,0,0,0,[Ext.data,"Request"],0));(Ext.cmd.derive("Ext.data.TreeStore",Ext.data.Store,{isTreeStore:true,config:{root:null,rootVisible:false,defaultRootProperty:"children",parentIdProperty:null,clearOnLoad:true,clearRemovedOnLoad:true,nodeParam:"node",defaultRootId:"root",defaultRootText:"Root",folderSort:false},lazyFill:false,fillCount:0,bulkUpdate:0,_silentOptions:{silent:true},implicitModel:"Ext.data.TreeModel",constructor:function(d){var c=this;c.byIdMap={};Ext.data.Store.prototype.constructor.call(this,d)},applyFields:function(e,f){var d=this;if(e){if(d.defaultRootProperty!==d.self.prototype.config.defaultRootProperty){e=e.concat({name:d.defaultRootProperty,type:"auto",defaultValue:null,persist:false})}}Ext.data.Store.prototype.applyFields.call(this,e,f)},onSorterEndUpdate:function(){var j=this,g=j.getSorters(),i=g.getRange(),f=j.getRoot(),h=j.getFolderSort();j.fireEvent("beforesort",j,i);if(f&&(h||i.length)){if(j.getRemoteSort()){if(i.length){j.load({callback:function(){j.fireEvent("sort",j,i)}})}}else{f.sort(this.getSortFn(),true);j.fireEvent("datachanged",j);j.fireEvent("refresh",j);j.fireEvent("sort",j,i)}}else{j.fireEvent("sort",j,i)}},updateFolderSort:function(b){this.needsFolderSort=b;this.onSorterEndUpdate()},getSortFn:function(){return this._sortFn||(this._sortFn=this.createSortFn())},createSortFn:function(){var d=this,c=this.sorters.getSortFn();return function(h,i){var b,a,j=0;if(d.needsFolderSort){b=h.data.leaf?1:0;a=i.data.leaf?1:0;j=b-a}if(d.needsIndexSort&&j===0){j=h.data.index-i.data.index}return j||c(h,i)}},getTotalCount:function(){return this.getCount()},afterEdit:function(f,d){var e=this;if(e.needsLocalFilter()){e.doFilter(f)}Ext.data.Store.prototype.afterEdit.call(this,f,d)},afterReject:function(d){var c=this;if(c.contains(d)){c.onUpdate(d,Ext.data.Model.REJECT,null);c.fireEvent("update",c,d,Ext.data.Model.REJECT,null)}},afterCommit:function(e,f){var d=this;if(!f){f=null}if(d.contains(e)){d.onUpdate(e,Ext.data.Model.COMMIT,f);d.fireEvent("update",d,e,Ext.data.Model.COMMIT,f)}},fireChangeEvent:function(b){return !!this.byIdMap[b.id]},updateRootVisible:function(d){var e=this.getRoot(),f;if(e){f=this.getData();if(d){f.insert(0,e)}else{f.remove(e)}}},updateTrackRemoved:function(b){Ext.data.Store.prototype.updateTrackRemoved.apply(this,arguments);this.removedNodes=this.removed;this.removed=null},onDestroyRecords:function(d,e,f){if(f){this.removedNodes.length=0}},updateProxy:function(c){var d;if(c){if(c.setIdParam){c.setIdParam(this.getNodeParam())}d=c.getReader();if(Ext.isEmpty(d.getRootProperty())){d.setRootProperty(this.getDefaultRootProperty())}}},setProxy:function(b){this.changingProxy=true;(arguments.callee.$previous||Ext.data.Store.prototype.setProxy).call(this,b);this.changingProxy=false},updateModel:function(d){var c=d.prototype.isNode;Ext.data.NodeInterface.decorate(d);if(!c&&!this.changingProxy){this.getProxy().getReader().buildExtractors(true)}},onFilterEndUpdate:function(m){var n=this,o=m.length,j=n.getRoot(),k,p,l,i;if(!n.getRemoteFilter()){if(o){n.doFilter(j)}else{j.cascadeBy({after:function(a){a.set("visible",true,n._silentOptions)}})}if(o){l=[];k=j.childNodes;for(i=0,o=k.length;i<o;i++){p=k[i];if(p.get("visible")){l.push(p)}}}else{l=j.childNodes}n.onNodeFilter(j,l);j.fireEvent("filterchange",j,l);n.fireEvent("filterchange",n,m);n.suppressNextFilter=true;Ext.data.Store.prototype.onFilterEndUpdate.call(this,m);n.suppressNextFilter=false}else{Ext.data.Store.prototype.onFilterEndUpdate.call(this,m)}},onNodeFilter:function(g,h){var j=this,i=j.getData(),f=[];if(j.getRootVisible()){if(h.length){f.push(g)}else{g.set("visible",false,j._silentOptions)}}j.handleNodeExpand(g,h,f);j.suspendEvents();i.splice(0,i.getCount(),f);j.resumeEvents();if(!j.suppressNextFilter){j.fireEvent("datachanged",j);j.fireEvent("refresh",j)}},onBeforeNodeExpand:function(u,m,l,q){var p=this,o,s,n,r,v,t;if(u.isLoaded()){t=[u.childNodes];if(q){t.push.apply(t,q)}Ext.callback(m,l||u,t)}else{if(u.isLoading()){p.on("load",function(){t=[u.childNodes];if(q){t.push.apply(t,q)}Ext.callback(m,l||u,t)},p,{single:true,priority:1001})}else{o=p.getProxy().getReader();s=u.getProxy();n=s?s.getReader():null;r=n&&n.initialConfig.rootProperty?n:o;v=r.getRoot(u.raw||u.data);if(v||(u.phantom&&!u.isRoot())){if(v){p.fillNode(u,r.extractData(v,{model:u.childType,recordCreator:p.recordCreator}))}t=[u.childNodes];if(q){t.push.apply(t,q)}Ext.callback(m,l||u,t)}else{p.read({node:u,onChildNodesAvailable:function(){delete p.lastOptions.onChildNodesAvailable;t=[u.childNodes];if(q){t.push.apply(t,q)}Ext.callback(m,l||u,t)}});p.flushLoad()}}}},onNodeExpand:function(i,f){var h=this,g=h.indexOf(i)+1,j=[];h.handleNodeExpand(i,f,j);if(!h.refreshCounter&&i.isRoot()&&!i.get("visible")){h.loadRecords(j)}else{h.insert(g,j)}},handleNodeExpand:function(l,h,m){var j=this,k=h?h.length:0,n,i;if(l!==this.getRoot()&&!j.isVisible(l)){return}if(k){for(n=0;n<k;n++){i=h[n];if(i.get("visible")){m.push(i);if(i.isExpanded()){if(i.isLoaded()){j.handleNodeExpand(i,i.childNodes,m)}else{i.set("expanded",false);i.expand()}}}}}},onNodeCollapse:function(m,i,j,n){var l=this,h=l.indexOf(m)+1,k;if(l.needsLocalFilter()){i=Ext.Array.filter(i,l.filterVisible)}if(i.length&&l.data.contains(i[0])){k=l.indexOfNextVisibleNode(m);l.removeAt(h,k-h)}Ext.callback(j,n)},indexOfNextVisibleNode:function(c){var d;while(c.parentNode){for(d=c.nextSibling;d&&!d.get("visible");d=d.nextSibling){}if(d){return this.indexOf(d)}c=c.parentNode}return this.getCount()},filterNew:function(b){return !b.get("root")&&Ext.data.Store.prototype.filterNew.call(this,b)},filterRejects:function(b){return !b.get("root")&&Ext.data.Store.prototype.filterRejects.call(this,b)},getNewRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterNew,this)},getUpdatedRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterUpdated)},beforeNodeRemove:function(g,i){if(!Ext.isArray(i)){i=[i]}var j=this,h=i.length,k,l;for(k=0;!l&&k<h;k++){if(i[k].get("visible")){l=i[k]}}if(l){j.startRemoveIndex=j.indexOf(i[0]);j.lastRemoveIndexPlusOne=j.indexOfNextVisibleNode(i[i.length-1])}else{j.startRemoveIndex=-1;j.lastRemoveIndexPlusOne=0}},afterDrop:Ext.emptyFn,onNodeRemove:function(o,i,k){var l=this,n=l.removedNodes,m=i.length,r=l.startRemoveIndex,q=l.lastRemoveIndexPlusOne,p;l.suspendAutoSync();if(r!==-1){l.removeIsMove=k;l.removeAt(r,q-r);l.removeIsMove=false}for(p=0;p<m;p++){i[p].cascadeBy(function(a){l.unregisterNode(a);if(n&&!k){if(!a.phantom&&!a.erasing&&!l.loading){a.removedFrom=l.indexOf(a);n.push(a);l.needsSync=true}}})}l.resumeAutoSync()},onNodeAppend:function(d,f,e){this.onNodeInsert(d,f,e)},onNodeInsert:function(o,z,u){var r=this,x=z.raw||z.data,v=r.removedNodes,t,n,s,y,q,w,p;if(o&&r.needsLocalFilter()){r.doFilter(o)}r.beginUpdate();if(r.isVisible(z)){if(u===0||!z.previousSibling){t=o}else{for(n=z.previousSibling;n&&!n.get("visible");n=n.previousSibling){}while(n.isExpanded()&&n.lastChild){n=n.lastChild}t=n}r.insert(r.indexOf(t)+1,z);if(!z.isLeaf()&&z.isExpanded()){if(z.isLoaded()){r.onNodeExpand(z,z.childNodes)}else{if(!r.fillCount){z.set("expanded",false);z.expand()}}}}Ext.Array.remove(v,z);r.needsSync=r.needsSync||z.phantom||z.dirty;if(!z.isLeaf()&&!z.isLoaded()&&!r.lazyFill){s=r.getProxy().getReader();y=z.getProxy();q=y?y.getReader():null;w=q&&q.initialConfig.rootProperty?q:s;p=w.getRoot(x);if(p){r.fillNode(z,w.extractData(p,{model:z.childType,recordCreator:r.recordCreator}))}}r.endUpdate()},registerNode:function(i,h){var j=this,l,k,g;j.byIdMap[i.id]=i;if(h===true){l=i.childNodes;k=l.length;for(g=0;g<k;g++){j.registerNode(l[g],true)}}},unregisterNode:function(i,h){var j=this,l,k,g;delete j.byIdMap[i.id];if(h===true){l=i.childNodes;k=l.length;for(g=0;g<k;g++){j.unregisterNode(l[g],true)}}},onNodeSort:function(d,f){var e=this;e.suspendAutoSync();if((e.indexOf(d)!==-1&&d.isExpanded())||(d===e.getRoot()&&!e.getRootVisible())){Ext.suspendLayouts();e.onNodeCollapse(d,f);e.onNodeExpand(d,f);Ext.resumeLayouts(true)}e.resumeAutoSync(e.autoSync)},applyRoot:function(h){var f=this,i=f.getModel(),g=i.prototype.idProperty,j=f.getDefaultRootId();if(h&&!h.isNode){h=Ext.apply({text:f.getDefaultRootText(),root:true,isFirst:true,isLast:true,depth:0,index:0,parentId:null,allowDrag:false},h);if(j&&h[g]===undefined){h[g]=j}h=new i(h)}return h},updateRoot:function(i,g){var k=this,j,h=!g,l;k.byIdMap={};k.getTrackRemoved();k.suspendEvent("add","remove");if(g&&g.isModel){if(k.getRootVisible()){l=[g]}else{l=g.childNodes}k.beforeNodeRemove(null,l);g.set("root",false);k.onNodeRemove(null,l);g.fireEvent("remove",null,g,false);g.fireEvent("rootchange",null);g.clearListeners();g.store=g.treeStore=null}k.getData().clear();if(i){if(i.fireEventArgs("beforeappend",[null,i])===false){i=null}else{j=i.parentNode;if(j){if(!j.removeChild(i,false,false,j.getTreeStore()===k)){return}}else{if((j=i.getTreeStore())&&j!==k&&i===j.getRoot()){j.setRoot(null)}}i.store=i.treeStore=k;i.set("root",true);i.updateInfo(true,{isFirst:true,isLast:true,depth:0,index:0,parentId:null});k.registerNode(i,true);i.fireEvent("append",null,i,false);i.fireEvent("rootchange",i);k.onNodeAppend(null,i,0);i.phantom=true}}k.fireEvent("rootchange",i,g);if(i&&(k.getAutoLoad()||i.isExpanded())){if(i.isLoaded()){k.onNodeExpand(i,i.childNodes);k.fireEvent("datachanged",k);k.fireEvent("refresh",k)}else{i.data.expanded=false;i.expand(false,function(){k.fireEvent("datachanged",k);k.fireEvent("refresh",k)})}}else{if(!h){k.fireEvent("datachanged",k);k.fireEvent("refresh",k)}}k.resumeEvent("add","remove")},getNodeById:function(b){return this.byIdMap[b]||null},findNode:function(j,k,m,n,h){if(Ext.isEmpty(k,false)){return null}if(k===this.model.idProperty&&arguments.length<3){return this.byIdMap[k]}var l=Ext.String.createRegex(k,m,n,h),i=null;Ext.Object.eachValue(this.byIdMap,function(a){if(a&&l.test(a.get(j))){i=a;return false}});return i},load:function(d){var c=d&&d.node;if(!c&!(c=this.getRoot())){c=this.setRoot({expanded:true});return}if(c.isLoading()){return}return Ext.data.Store.prototype.load.call(this,d)},flushLoad:function(){var m=this,j=m.pendingLoadOptions,r,l,k,o=m.getClearOnLoad(),n,q,p;m.clearLoadTask();if(!j){return}r=j.node||m.getRoot();n=r&&r.isRoot()&&r.isLoaded()&&o;l=j.callback;k=j.scope;j.params=j.params||{};if(r.data.expanded&&!n){r.data.loaded=false;if(o){r.data.expanded=false}j.callback=function(b,c,a){if(!o){r.collapse()}r.expand();Ext.callback(l,k,[b,c,a])}}j.id=r.getId();j=Ext.apply({filters:m.getFilters().items,sorters:m.getSorters().items,node:j.node||r,internalScope:m,internalCallback:m.onProxyLoad},j);m.lastOptions=Ext.apply({},j);j.isReload=n;q=m.createOperation("read",j);if(m.fireEvent("beforeload",m,q)!==false){m.loading=true;if(n){if(m.getClearRemovedOnLoad()){m.removedNodes.length=0}m.unregisterNode(r,true);r.childNodes.length=0;p=true}else{if(o){if(m.getTrackRemoved()&&m.getClearRemovedOnLoad()){m.clearRemoved(r)}r.removeAll(false)}}if(m.loading&&r){r.set("loading",true)}if(p){m.clearData(true);if(m.getRootVisible()){m.suspendEvents();m.add(r);m.resumeEvents()}}q.execute()}return m},onProxyLoad:function(p){var l=this,j=p.initialConfig,o=p.wasSuccessful(),q=p.getRecords(),r=j.node,m=j.isReload,k=p.getScope()||l,n=[q,p,o];if(l.destroyed){return}l.loading=false;r.set("loading",false);if(o){++l.loadCount;if(!l.getClearOnLoad()){q=l.cleanRecords(r,q)}if(l.getParentIdProperty()){q=l.treeify(r,q)}if(m){l.suspendEvent("add","update")}q=l.fillNode(r,q)}if(m){l.resumeEvent("add","update");l.callObservers("BeforePopulate");l.fireEvent("datachanged",l);l.fireEvent("refresh",l);l.callObservers("AfterPopulate")}else{Ext.callback(j.onChildNodesAvailable,k,n)}l.fireEvent("load",l,q,o,p,r)},clearRemoved:function(w){var p=this,t=p.removedNodes,x=w.getId(),u=t.length,v=u,i={},r=[],n={},q,s,o;if(w===p.getRoot()){p.removedNodes.length=0;return}for(;v--;){q=t[v];n[q.getId()]=q}for(v=u;v--;){q=t[v];s=q;while(s&&s.getId()!==x){o=s.get("parentId")||s.get("lastParentId");s=s.parentNode||p.getNodeById(o)||n[o]}if(s){i[q.getId()]=q}}for(v=0;v<u;v++){q=t[v];if(!i[q.getId()]){r.push(q)}}p.removedNodes=r},fillNode:function(h,f){var e=this,g=f?f.length:0;++e.bulkUpdate;if(g){e.setupNodes(f)}if(e.bulkUpdate===1){h.set("loaded",true)}else{h.data.loaded=true}if(f.length){h.appendChild(f,undefined,true)}--e.bulkUpdate;return f},setupNodes:function(r){var o=this,p=o.getSorters(),n=false,s=r.length,t=o.sortOnLoad&&s>1&&!o.getRemoteSort()&&o.getFolderSort()||p.length,i,m,q,l;if(o.needsLocalFilter()){l=o.getFilters().getFilterFn();r[0].set("visible",l(r[0]))}for(q=1;q<s;q++){i=r[q];m=r[q-1];if(l){i.set("visible",l(i))}n=i.data.index!==m.data.index}if(t){o.needsIndexSort=true;Ext.Array.sort(r,o.getSortFn());o.needsIndexSort=false}else{if(n){Ext.Array.sort(r,o.sortByIndex)}}},beginFill:function(){var b=this;if(!b.fillCount++){b.beginUpdate();b.suspendEvent("add","update");b.suspendAutoSync();b.fillArray=[]}},endFill:function(l,h){var k=this,j=k.fillArray,m,i,n;j.push(h);if(!--k.fillCount){k.resumeAutoSync();k.resumeEvent("add","update");for(m=0,i=j.length;m<i;m++){n=k.indexOf(j[m][0]);if(n!==-1){k.fireEvent("add",k,j[m],n)}}k.fillArray=null;k.endUpdate()}},sortByIndex:function(c,d){return c.data.index-d.data.index},onIdChanged:function(k,i,g){var j=k.childNodes,h=j&&j.length,l;Ext.data.Store.prototype.onIdChanged.apply(this,arguments);delete this.byIdMap[i];this.byIdMap[g]=k;for(l=0;l<h;l++){j[l].set("parentId",g)}},treeify:function(u,x){var r=this,p=u.getId(),z=r.getParentIdProperty(),t=x.length,i=[],s={},w,y,v,q,B,A;for(w=0;w<t;w++){y=x[w];s[y.id]=y}for(w=0;w<t;w++){y=x[w];v=y.data[z];if(!(v||v===0)||v===p){i.push(y)}else{q=s[v];q.$children=q.$children||[];q.$children.push(y)}}for(B in s){y=s[B];A=y.$children;if(A){delete y.$children;r.setupNodes(A);y.appendChild(A)}r.registerNode(y)}r.setupNodes(i);return i},cleanRecords:function(m,i){var n={},k=m.childNodes,o=0,j=k.length,p=[],l;for(;o<j;++o){n[k[o].getId()]=true}for(o=0,j=i.length;o<j;++o){l=i[o];if(!n[l.getId()]){p.push(l)}}return p},removeAll:function(){this.suspendEvents();this.setRoot(null);this.resumeEvents();Ext.data.Store.prototype.removeAll.call(this)},doSort:function(d){var c=this;if(c.getRemoteSort()){c.load()}else{c.tree.sort(d,true);c.fireEvent("datachanged",c);c.fireEvent("refresh",c)}c.fireEvent("sort",c,c.sorters.getRange())},filterVisible:function(b){return b.get("visible")},isVisible:function(h){var f=h.parentNode,g=h.data.visible,e=this.getRoot();while(g&&f){g=f.data.expanded&&f.data.visible;f=f.parentNode}return g&&!(h===e&&!this.getRootVisible())},commitChanges:function(){var b=this.removedNodes;if(b){b.length=0}Ext.data.Store.prototype.commitChanges.call(this)},getRootNode:function(){return this.getRoot()},setRootNode:function(b){this.setRoot(b);return this.getRoot()},privates:{getRawRemovedRecords:function(){return this.removedNodes},recordCreator:function(d,c){return new c(d)},doFilter:function(d){var e=this.getRoot(),f=this.getFilters().getFilterFn();this.filterNodes(e,d,f)},filterNodes:function(h,l,k){var n=false,j=l.childNodes,i=j&&j.length,m;if(i){for(m=0;m<i;++m){this.filterNodes(h,j[m],k)}}n=l===h||k(l);l.set("visible",n,this._silentOptions);return n},needsLocalFilter:function(){return !this.getRemoteFilter()&&this.getFilters().length},onRemoteFilterSet:function(e,f){var d=this.getData();d.setFilters(null);if(e){e.on("endupdate",this.onFilterEndUpdate,this)}},onRemoteSortSet:function(d,f){var e=this.getData();e.setSorters(null);if(d){d.on("endupdate",this.onSorterEndUpdate,this)}}},deprecated:{5:{properties:{tree:null}}}},1,0,0,0,["store.tree"],0,[Ext.data,"TreeStore"],0));(Ext.cmd.derive("Ext.data.Validation",Ext.data.Model,{isValidation:true,syncGeneration:0,attach:function(b){this.record=b;delete this.data.id},getValidation:function(){return null},isValid:function(){var b=this;if(b.syncGeneration!==b.record.generation){b.refresh()}return !b.dirty},refresh:function(O){var y=this,x=y.data,M=y.record,H=M.fields,E=M.generation,z=M.data,I=M.validationSeparator,N=null,L,J,G,P,B,D,F,A,C,K,i,j;if(O||y.syncGeneration!==E){y.syncGeneration=E;for(D=0,C=H.length;D<C;++D){P=H[D];j=P.name;i=z[j];L=P.defaultInvalidMessage;G=0;if(!(j in x)){x[j]=J=true}else{J=x[j]}if(P.validate!==Ext.emptyFn){K=P.validate(i,I,null,M);if(K!==true){G=K||L}}if(!G){G=true}if(G!==J){(N||(N={}))[j]=G}}if(N){y.set(N)}}}},0,0,0,0,0,0,[Ext.data,"Validation"],0));(Ext.cmd.derive("Ext.dom.Helper",Ext.Base,function(){var j="afterbegin",m="afterend",l="beforebegin",o="beforeend",k=["BeforeBegin","previousSibling"],n=["AfterEnd","nextSibling"],p={beforebegin:k,afterend:n},i={beforebegin:k,afterend:n,afterbegin:["AfterBegin","firstChild"],beforeend:["BeforeEnd","lastChild"]};return{singleton:true,alternateClassName:["Ext.DomHelper","Ext.core.DomHelper"],emptyTags:/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,confRe:/^(?:tag|children|cn|html|tpl|tplData)$/i,endRe:/end/i,attributeTransform:{cls:"class",htmlFor:"for"},closeTags:{},detachedDiv:document.createElement("div"),decamelizeName:function(){var a=/([a-z])([A-Z])/g,b={};function c(e,f,d){return f+"-"+d.toLowerCase()}return function(d){return b[d]||(b[d]=d.replace(a,c))}}(),generateMarkup:function(b,h){var c=this,d=typeof b,e,s,a,f,g;if(d==="string"||d==="number"){h.push(b)}else{if(Ext.isArray(b)){for(f=0;f<b.length;f++){if(b[f]){c.generateMarkup(b[f],h)}}}else{a=b.tag||"div";h.push("<",a);for(e in b){if(b.hasOwnProperty(e)){s=b[e];if(s!==undefined&&!c.confRe.test(e)){if(typeof s==="object"){h.push(" ",e,'="');c.generateStyles(s,h,true).push('"')}else{h.push(" ",c.attributeTransform[e]||e,'="',s,'"')}}}}if(c.emptyTags.test(a)){h.push("/>")}else{h.push(">");if((s=b.tpl)){s.applyOut(b.tplData,h)}if((s=b.html)){h.push(s)}if((s=b.cn||b.children)){c.generateMarkup(s,h)}g=c.closeTags;h.push(g[a]||(g[a]="</"+a+">"))}}}return h},generateStyles:function(a,d,b){var e=d||[],c,f;for(c in a){if(a.hasOwnProperty(c)){f=a[c];c=this.decamelizeName(c);if(b&&Ext.String.hasHtmlCharacters(f)){f=Ext.String.htmlEncode(f)}e.push(c,":",f,";")}}return d||e.join("")},markup:function(b){if(typeof b==="string"){return b}var a=this.generateMarkup(b,[]);return a.join("")},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(d){var a=this.detachedDiv,e=document.createDocumentFragment(),c,b;a.innerHTML=d;b=a.childNodes;c=b.length;while(c--){e.appendChild(b[0])}return e},createDom:function(b,e){var c=this,d=c.markup(b),f=c.detachedDiv,a;f.innerHTML=d;a=f.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(true):a},insertHtml:function(g,t,f){var b=this,s,e,h,c,a;g=g.toLowerCase();if(t.insertAdjacentHTML){if(b.ieInsertHtml){a=b.ieInsertHtml(g,t,f);if(a){return a}}s=i[g];if(s){t.insertAdjacentHTML(s[0],f);return t[s[1]]}}else{if(t.nodeType===3){g=g===j?l:g;g=g===o?m:g}e=Ext.supports.CreateContextualFragment?t.ownerDocument.createRange():undefined;c="setStart"+(this.endRe.test(g)?"After":"Before");if(p[g]){if(e){e[c](t);a=e.createContextualFragment(f)}else{a=this.createContextualFragment(f)}t.parentNode.insertBefore(a,g===l?t:t.nextSibling);return t[(g===l?"previous":"next")+"Sibling"]}else{h=(g===j?"first":"last")+"Child";if(t.firstChild){if(e){try{e[c](t[h]);a=e.createContextualFragment(f)}catch(d){a=this.createContextualFragment(f)}}else{a=this.createContextualFragment(f)}if(g===j){t.insertBefore(a,t.firstChild)}else{t.appendChild(a)}}else{t.innerHTML=f}return t[h]}}},insertBefore:function(c,a,b){return this.doInsert(c,a,b,l)},insertAfter:function(c,a,b){return this.doInsert(c,a,b,m)},insertFirst:function(c,a,b){return this.doInsert(c,a,b,j)},append:function(c,a,b){return this.doInsert(c,a,b,o)},overwrite:function(c,d,a){var b=this,e;c=Ext.getDom(c);d=b.markup(d);if(b.ieOverwrite){e=b.ieOverwrite(c,d)}if(!e){c.innerHTML=d;e=c.firstChild}return a?Ext.get(e):e},doInsert:function(c,f,a,e){var b=this,d;c=c.dom||Ext.getDom(c);if("innerHTML" in c){d=b.insertHtml(e,c,b.markup(f))}else{d=b.createDom(f,null);if(c.nodeType===3){e=e===j?l:e;e=e===o?m:e}if(p[e]){c.parentNode.insertBefore(d,e===l?c:c.nextSibling)}else{if(c.firstChild&&e===j){c.insertBefore(d,c.firstChild)}else{c.appendChild(d)}}}return a?Ext.get(d):d},createTemplate:function(a){var b=this.markup(a);return new Ext.Template(b)},createHtml:function(a){return this.markup(a)}}},0,0,0,0,0,0,[Ext.dom,"Helper",Ext,"DomHelper",Ext.core,"DomHelper"],0));Ext.define("Ext.overrides.dom.Helper",(function(){var p=/^(?:table|thead|tbody|tr|td)$/i,l=/td|tr|tbody|thead/i,m="<table>",k="</table>",i=m+"<tbody>",n="</tbody>"+k,j=i+"<tr>",o="</tr>"+n;return{override:"Ext.dom.Helper",ieInsertHtml:function(d,b,c){var a=null;if(Ext.isIE9m&&p.test(b.tagName)){a=this.insertIntoTable(b.tagName.toLowerCase(),d,b,c)}return a},ieOverwrite:function(a,b){if(Ext.isIE9m&&p.test(a.tagName)){while(a.firstChild){a.removeChild(a.firstChild)}if(b){return this.insertHtml("afterbegin",a,b)}}},ieTable:function(f,c,e,g){var b=-1,h=this.detachedDiv,a,d;h.innerHTML=[c,e,g].join("");while(++b<f){h=h.firstChild}a=h.nextSibling;if(a){a=h;h=document.createDocumentFragment();while(a){d=a.nextSibling;h.appendChild(a);a=d}}return h},insertIntoTable:function(a,h,s,g){var t,d,e=h==="beforebegin",b=h==="afterbegin",f=h==="beforeend",c=h==="afterend";if(a==="td"&&(b||f)||!l.test(a)&&(e||c)){return null}d=e?s:c?s.nextSibling:b?s.firstChild:null;if(e||c){s=s.parentNode}if(a==="td"||(a==="tr"&&(f||b))){t=this.ieTable(4,j,g,o)}else{if(((a==="tbody"||a==="thead")&&(f||b))||(a==="tr"&&(e||c))){t=this.ieTable(3,i,g,n)}else{t=this.ieTable(2,m,g,k)}}s.insertBefore(t,d);return t}}})());(Ext.cmd.derive("Ext.dom.GarbageCollector",Ext.Base,{singleton:true,interval:30000,constructor:function(){var b=this;b.collect=Ext.Function.bind(b.collect,b);b.lastTime=Ext.now();b.resume()},collect:function(){var k=this,r=Ext.cache,q,n,p,e,m,o;for(q in r){if(!r.hasOwnProperty(q)){continue}p=r[q];if(p.skipGarbageCollection){continue}n=p.dom;try{m=Ext.isGarbage(n)}catch(l){delete r[q];continue}if(m){if(p&&p.dom){p.collect()}}}if(Ext.isIE9m){e={};for(q in r){if(r.hasOwnProperty(q)){e[q]=r[q]}}Ext.cache=Ext.dom.Element.cache=e}k.lastTime=Ext.now()},pause:function(){clearTimeout(this.timerId)},resume:function(){var d=this,c=d.lastTime;if(Ext.enableGarbageCollector&&(Ext.now()-c>d.interval)){d.collect()}d.timerId=Ext.interval(d.collect,d.interval)}},1,0,0,0,0,0,[Ext.dom,"GarbageCollector"],0));(Ext.cmd.derive("Ext.event.gesture.Recognizer",Ext.Base,{priority:0,handledEvents:[],config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(b){this.initConfig(b);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:Ext.emptyFn,onTouchCancel:Ext.emptyFn,fail:function(){return false},fire:function(){this.getOnRecognized().apply(this.getCallbackScope(),arguments)},reset:Ext.emptyFn},1,0,0,0,0,[[Ext.mixin.Identifiable.prototype.mixinId||Ext.mixin.Identifiable.$className,Ext.mixin.Identifiable]],[Ext.event.gesture,"Recognizer"],0));(Ext.cmd.derive("Ext.event.gesture.SingleTouch",Ext.event.gesture.Recognizer,{inheritableStatics:{NOT_SINGLE_TOUCH:"Not Single Touch",TOUCH_MOVED:"Touch Moved",EVENT_CANCELED:"Event Canceled"},onTouchStart:function(b){if(b.touches.length>1){return this.fail(this.self.NOT_SINGLE_TOUCH)}},onTouchCancel:function(){return false}},0,0,0,0,0,0,[Ext.event.gesture,"SingleTouch"],0));(Ext.cmd.derive("Ext.event.gesture.DoubleTap",Ext.event.gesture.SingleTouch,{priority:300,inheritableStatics:{DIFFERENT_TARGET:"Different Target"},config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:["singletap","doubletap"],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(f){var d=this,e;if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){return false}e=d.lastStartPoint=f.changedTouches[0].point;d.startPoint=d.startPoint||e;d.startTime=f.time;clearTimeout(d.singleTapTimer)},onTouchMove:function(f){var d=this,e=f.changedTouches[0].point;if(Math.abs(e.getDistanceTo(d.lastStartPoint))>=d.getMoveDistance()){d.startPoint=null;return d.fail(d.self.TOUCH_MOVED)}},onTouchEnd:function(n){var l=this,o=l.getMaxDuration(),r=n.time,m=n.target,k=l.lastTapTime,q=l.lastTarget,e=n.changedTouches[0].point,p;l.lastTapTime=r;l.lastTarget=m;if(k){p=r-k;if(p<=o&&Math.abs(e.getDistanceTo(l.startPoint))<=l.getTapDistance()){if(m!==q){return l.fail(l.self.DIFFERENT_TARGET)}l.lastTarget=null;l.lastTapTime=0;l.fire("doubletap",n,{touch:n.changedTouches[0],duration:p});l.startPoint=null;return}}if(r-l.startTime>o){l.fireSingleTap(n)}else{l.setSingleTapTimer(n)}},setSingleTapTimer:function(c){var d=this;d.singleTapTimer=Ext.defer(function(){d.fireSingleTap(c)},d.getMaxDuration())},fireSingleTap:function(d,c){this.fire("singletap",d,{touch:c});this.startPoint=null},reset:function(){var b=this;b.startTime=b.lastTapTime=0;b.lastStartPoint=b.startPoint=b.singleTapTimer=null}},0,0,0,0,0,0,[Ext.event.gesture,"DoubleTap"],function(d){var c=Ext.manifest.gestures;d.instance=new d(c&&c.doubleTap)}));(Ext.cmd.derive("Ext.event.gesture.Drag",Ext.event.gesture.SingleTouch,{priority:100,isStarted:false,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}}},onTouchStart:function(b){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){if(this.isStarted&&this.lastMoveEvent!==null){this.lastMoveEvent.isStopped=false;this.onTouchEnd(this.lastMoveEvent)}return false}this.startTime=b.time;this.startPoint=b.changedTouches[0].point},tryDragStart:function(k){var e=this.startPoint,i=k.changedTouches[0],h=i.point,j=this.getMinDistance(),l=this.info;if(Math.abs(h.getDistanceTo(e))>=j){this.isStarted=true;this.previousPoint=this.lastPoint=h;this.resetInfo("x",k,i);this.resetInfo("y",k,i);l.time=k.time;this.fire("dragstart",k,l)}},onTouchMove:function(d){if(!this.isStarted){this.tryDragStart(d)}if(!this.isStarted){return}var f=d.changedTouches[0],e=f.point;if(this.lastPoint){this.previousPoint=this.lastPoint}this.lastPoint=e;this.lastMoveEvent=d;this.updateInfo("x",d,f);this.updateInfo("y",d,f);this.info.time=d.time;this.fire("drag",d,this.info)},onAxisDragEnd:function(e,f){var d=f.time-f.previousTime[e];if(d>0){f.flick.velocity[e]=(f[e]-f.previous[e])/d}},resetInfo:function(p,m,k){var o=this.lastPoint[p],e=this.startPoint[p],l=o-e,j=p.toUpperCase(),n=this.info;n.touch=k;n.delta[p]=l;n.absDelta[p]=Math.abs(l);n.previousTime[p]=this.startTime;n.previous[p]=e;n[p]=o;n.direction[p]=0;n["start"+j]=this.startPoint[p];n["previous"+j]=n.previous[p];n["page"+j]=n[p];n["delta"+j]=n.delta[p];n["absDelta"+j]=n.absDelta[p];n["previousDelta"+j]=0;n.startTime=this.startTime},updateInfo:function(u,q,r){var p=this,n=p.lastPoint[u],t=p.previousPoint[u],x=p.startPoint[u],e=n-x,v=p.info,o=v.direction,s=u.toUpperCase(),w=v.previous[u];v.touch=r;v.delta[u]=e;v.absDelta[u]=Math.abs(e);if(n!==w&&n!==v[u]){v.previous[u]=v[u];v.previousTime[u]=v.time}v[u]=n;if(n>t){o[u]=1}else{if(n<t){o[u]=-1}}v["start"+s]=x;v["previous"+s]=v.previous[u];v["page"+s]=v[u];v["delta"+s]=v.delta[u];v["absDelta"+s]=v.absDelta[u];v["previousDelta"+s]=v.previous[u]-x;v.startTime=p.startTime},onTouchEnd:function(b){this.doEnd(b)},onTouchCancel:function(b){this.doEnd(b,true);return false},doEnd:function(i,e){if(!this.isStarted){this.tryDragStart(i)}if(this.isStarted){var h=i.changedTouches[0],g=h.point,j=this.info;this.isStarted=false;this.lastPoint=g;this.updateInfo("x",i,h);this.updateInfo("y",i,h);j.time=i.time;this.onAxisDragEnd("x",j);this.onAxisDragEnd("y",j);this.fire(e?"dragcancel":"dragend",i,j);this.startPoint=null;this.previousPoint=null;this.lastPoint=null;this.lastMoveEvent=null}},reset:function(){var b=this;b.isStarted=b.lastPoint=b.startPoint=b.previousPoint=b.lastPoint=b.lastMoveEvent=null;b.initInfo()}},1,0,0,0,0,0,[Ext.event.gesture,"Drag"],function(d){var c=Ext.manifest.gestures;d.instance=new d(c&&c.drag)}));(Ext.cmd.derive("Ext.event.gesture.Swipe",Ext.event.gesture.SingleTouch,{priority:500,handledEvents:["swipestart","swipe","swipecancel"],inheritableStatics:{MAX_OFFSET_EXCEEDED:"Max Offset Exceeded",MAX_DURATION_EXCEEDED:"Max Duration Exceeded",DISTANCE_NOT_ENOUGH:"Distance Not Enough"},config:{minDistance:80,maxOffset:35,maxDuration:1000},onTouchStart:function(d){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){return false}var c=d.changedTouches[0];this.startTime=d.time;this.isHorizontal=true;this.isVertical=true;this.startX=c.pageX;this.startY=c.pageY},onTouchMove:function(r){var s=r.changedTouches[0],o=s.pageX,q=s.pageY,t=o-this.startX,u=q-this.startY,w=Math.abs(o-this.startX),x=Math.abs(q-this.startY),v=r.time-this.startTime,e=this.getMinDistance(),y=r.time,p,z;if(y-this.startTime>this.getMaxDuration()){return this.fail(this.self.MAX_DURATION_EXCEEDED)}if(this.isHorizontal&&x>this.getMaxOffset()){this.isHorizontal=false}if(this.isVertical&&w>this.getMaxOffset()){this.isVertical=false}if(!this.isVertical||!this.isHorizontal){if(this.isHorizontal&&w<e){p=(t<0)?"left":"right";z=w}else{if(this.isVertical&&x<e){p=(u<0)?"up":"down";z=x}}}if(p&&!this.started){this.started=true;this.fire("swipestart",r,{touch:s,direction:p,distance:z,duration:v})}if(!this.isHorizontal&&!this.isVertical){return this.fail(this.self.MAX_OFFSET_EXCEEDED)}},onTouchEnd:function(q){if(this.onTouchMove(q)===false){return false}var r=q.changedTouches[0],n=r.pageX,p=r.pageY,s=n-this.startX,t=p-this.startY,v=Math.abs(s),w=Math.abs(t),e=this.getMinDistance(),u=q.time-this.startTime,o,x;if(this.isVertical&&w<e){this.isVertical=false}if(this.isHorizontal&&v<e){this.isHorizontal=false}if(this.isHorizontal){o=(s<0)?"left":"right";x=v}else{if(this.isVertical){o=(t<0)?"up":"down";x=w}else{return this.fail(this.self.DISTANCE_NOT_ENOUGH)}}this.started=false;this.fire("swipe",q,{touch:r,direction:o,distance:x,duration:u})},onTouchCancel:function(b){this.fire("swipecancel",b);return false},reset:function(){var b=this;b.startTime=b.isHorizontal=b.isVertical=b.startX=b.startY=null}},0,0,0,0,0,0,[Ext.event.gesture,"Swipe"],function(d){var c=Ext.manifest.gestures;d.instance=new d(c&&c.swipe)}));(Ext.cmd.derive("Ext.event.gesture.EdgeSwipe",Ext.event.gesture.Swipe,{priority:800,handledEvents:["edgeswipe","edgeswipestart","edgeswipeend","edgeswipecancel"],inheritableStatics:{NOT_NEAR_EDGE:"Not Near Edge"},config:{minDistance:60},onTouchStart:function(d){if(Ext.event.gesture.Swipe.prototype.onTouchStart.apply(this,arguments)===false){return false}var c=d.changedTouches[0];this.started=false;this.direction=null;this.isHorizontal=true;this.isVertical=true;this.startX=c.pageX;this.startY=c.pageY},onTouchMove:function(u){var w=u.changedTouches[0],q=w.pageX,t=w.pageY,x=q-this.startX,y=t-this.startY,C=Math.abs(t-this.startY),B=Math.abs(q-this.startX),e=this.getMinDistance(),z=this.getMaxOffset(),A=u.time-this.startTime,r=Ext.Viewport&&Ext.Element.getViewportWidth(),v=Ext.Viewport&&Ext.Element.getViewportHeight(),s,D;if(this.isVertical&&B>z){this.isVertical=false}if(this.isHorizontal&&C>z){this.isHorizontal=false}if(this.isVertical&&this.isHorizontal){if(C>B){this.isHorizontal=false}else{this.isVertical=false}}if(this.isHorizontal){s=(x<0)?"left":"right";D=x}else{if(this.isVertical){s=(y<0)?"up":"down";D=y}}s=this.direction||(this.direction=s);if(s==="up"){D=y*-1}else{if(s==="left"){D=x*-1}}this.distance=D;if(!D){return this.fail(this.self.DISTANCE_NOT_ENOUGH)}if(!this.started){if(s==="right"&&this.startX>e){return this.fail(this.self.NOT_NEAR_EDGE)}else{if(s==="down"&&this.startY>e){return this.fail(this.self.NOT_NEAR_EDGE)}else{if(s==="left"&&(r-this.startX)>e){return this.fail(this.self.NOT_NEAR_EDGE)}else{if(s==="up"&&(v-this.startY)>e){return this.fail(this.self.NOT_NEAR_EDGE)}}}}this.started=true;this.startTime=u.time;this.fire("edgeswipestart",u,{touch:w,direction:s,distance:D,duration:A})}else{this.fire("edgeswipe",u,{touch:w,direction:s,distance:D,duration:A})}},onTouchEnd:function(c){var d;if(this.onTouchMove(c)!==false){d=c.time-this.startTime;this.fire("edgeswipeend",c,{touch:c.changedTouches[0],direction:this.direction,distance:this.distance,duration:d})}},onTouchCancel:function(b){this.fire("edgeswipecancel",b,{touch:b.changedTouches[0]});return false},reset:function(){var b=this;b.started=b.direction=b.isHorizontal=b.isVertical=b.startX=b.startY=b.startTime=b.distance=null}},0,0,0,0,0,0,[Ext.event.gesture,"EdgeSwipe"],function(d){var c=Ext.manifest.gestures;d.instance=new d(c&&c.edgeSwipe)}));(Ext.cmd.derive("Ext.event.gesture.LongPress",Ext.event.gesture.SingleTouch,{priority:400,inheritableStatics:{DURATION_NOT_ENOUGH:"Duration Not Enough"},config:{moveDistance:8,minDuration:1000},handledEvents:["longpress","taphold"],fireLongPress:function(b){this.fire("longpress",b,{touch:b.changedTouches[0],duration:this.getMinDuration()});this.isLongPress=true},onTouchStart:function(b){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.apply(this,arguments)===false){return false}this.startPoint=b.changedTouches[0].point;this.isLongPress=false;this.setLongPressTimer(b)},setLongPressTimer:function(c){var d=this;d.timer=Ext.defer(function(){d.fireLongPress(c)},d.getMinDuration())},onTouchMove:function(c){var d=c.changedTouches[0].point;if(Math.abs(d.getDistanceTo(this.startPoint))>=this.getMoveDistance()){return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(){if(!this.isLongPress){return this.fail(this.self.DURATION_NOT_ENOUGH)}},fail:function(){clearTimeout(this.timer);return Ext.event.gesture.SingleTouch.prototype.fail.apply(this,arguments)},reset:function(){this.isLongPress=this.startPoint=null},fire:function(d){if(d==="longpress"){var c=Array.prototype.slice.call(arguments);c[0]="taphold";this.fire.apply(this,c)}return Ext.event.gesture.SingleTouch.prototype.fire.apply(this,arguments)}},0,0,0,0,0,0,[Ext.event.gesture,"LongPress"],function(d){var c=Ext.manifest.gestures;d.instance=new d(c&&c.longPress)}));(Ext.cmd.derive("Ext.event.gesture.MultiTouch",Ext.event.gesture.Recognizer,{requiredTouchesCount:2,isTracking:false,isStarted:false,onTouchStart:function(g){var f=this.requiredTouchesCount,h=g.touches,e=h.length;if(e===f){this.start(g)}else{if(e>f){this.end(g)}}},onTouchEnd:function(b){this.end(b)},onTouchCancel:function(b){this.end(b,true);return false},start:function(){if(!this.isTracking){this.isTracking=true;this.isStarted=false}},end:function(c,d){if(this.isTracking){this.isTracking=false;if(this.isStarted){this.isStarted=false;this[d?"fireCancel":"fireEnd"](c)}}},reset:function(){this.isTracking=this.isStarted=false}},0,0,0,0,0,0,[Ext.event.gesture,"MultiTouch"],0));(Ext.cmd.derive("Ext.event.gesture.Pinch",Ext.event.gesture.MultiTouch,{priority:600,handledEvents:["pinchstart","pinch","pinchend","pinchcancel"],startDistance:0,lastTouches:null,onTouchMove:function(j){if(!this.isTracking){return}var e=j.touches,i,g,h;i=e[0].point;g=e[1].point;h=i.getDistanceTo(g);if(h===0){return}if(!this.isStarted){this.isStarted=true;this.startDistance=h;this.fire("pinchstart",j,{touches:e,distance:h,scale:1})}else{this.fire("pinch",j,{touches:e,distance:h,scale:h/this.startDistance})}},fireEnd:function(b){this.fire("pinchend",b)},fireCancel:function(b){this.fire("pinchcancel",b)},fail:function(){return Ext.event.gesture.MultiTouch.prototype.fail.apply(this,arguments)},reset:function(){this.lastTouches=null;this.startDistance=0;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"Pinch"],function(d){var c=Ext.manifest.gestures;d.instance=new d(c&&c.pinch)}));(Ext.cmd.derive("Ext.event.gesture.Rotate",Ext.event.gesture.MultiTouch,{priority:700,handledEvents:["rotatestart","rotate","rotateend","rotatecancel"],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(l){if(!this.isTracking){return}var m=l.touches,q=this.lastAngle,o,n,p,r,k,e;o=m[0].point;n=m[1].point;p=o.getAngleTo(n);if(q!==null){e=Math.abs(q-p);r=p+360;k=p-360;if(Math.abs(r-q)<e){p=r}else{if(Math.abs(k-q)<e){p=k}}}this.lastAngle=p;if(!this.isStarted){this.isStarted=true;this.startAngle=p;this.fire("rotatestart",l,{touches:m,angle:p,rotation:0})}else{this.fire("rotate",l,{touches:m,angle:p,rotation:p-this.startAngle})}this.lastTouches=Ext.Array.clone(m)},fireEnd:function(b){this.lastAngle=null;this.fire("rotateend",b)},fireCancel:function(b){this.lastAngle=null;this.fire("rotatecancel",b)},reset:function(){var b=this;b.lastTouches=b.lastAngle=b.startAngle=null;Ext.event.gesture.MultiTouch.prototype.reset.call(this)}},0,0,0,0,0,0,[Ext.event.gesture,"Rotate"],function(d){var c=Ext.manifest.gestures;d.instance=new d(c&&c.rotate)}));(Ext.cmd.derive("Ext.event.gesture.Tap",Ext.event.gesture.SingleTouch,{priority:200,handledEvents:["tap","tapcancel"],config:{moveDistance:8},onTouchStart:function(b){if(Ext.event.gesture.SingleTouch.prototype.onTouchStart.call(this,b)===false){return false}this.startPoint=b.changedTouches[0].point},onTouchMove:function(d){var f=d.changedTouches[0],e=f.point;if(Math.abs(e.getDistanceTo(this.startPoint))>=this.getMoveDistance()){this.fire("tapcancel",d,{touch:f});return this.fail(this.self.TOUCH_MOVED)}},onTouchEnd:function(b){this.fire("tap",b,{touch:b.changedTouches[0]})},onTouchCancel:function(b){this.fire("tapcancel",b,{touch:b.changedTouches[0]});return false},reset:function(){this.startPoint=null}},0,0,0,0,0,0,[Ext.event.gesture,"Tap"],function(c){var d=Ext.manifest.gestures;c.instance=new c(d&&d.tap)}));(Ext.cmd.derive("Ext.event.publisher.Focus",Ext.event.publisher.Dom,{type:"focus",handledEvents:["focusenter","focusleave","focusmove"],handledDomEvents:["focusin","focusout"],doDelegatedEvent:function(g,h){var e=this,f;g=Ext.event.publisher.Dom.prototype.doDelegatedEvent.call(this,g,false);if(g){if(g.type==="focusout"){if(g.relatedTarget==null){e.processFocusIn(g,g.target,document.body,h)}}else{f=g.relatedTarget;e.processFocusIn(g,(f==null||!f.tagName)?document.body:f,g.target,h)}}},processFocusIn:function(q,p,v,n){var o=this,e,w,r=[],x,s,t,u;t=Ext.fly(p);u=Ext.fly(v);if((t&&t.isFocusSuspended())||(u&&u.isFocusSuspended())){return}for(w=p,e=Ext.dom.Element.getCommonAncestor(v,p,true);w&&w!==e;w=w.parentNode){r.push(w)}if(r.length){x=o.createSyntheticEvent("focusleave",q,p,v);o.publish("focusleave",r,x);if(x.isStopped){return}}r.length=0;for(w=v;w!==e;w=w.parentNode){r.push(w)}s=o.createSyntheticEvent("focusenter",q,v,p);if(r.length){o.publish("focusenter",r,s);if(s.isStopped){return}}r=o.getPropagatingTargets(e);if(r.length){x=o.createSyntheticEvent("focusmove",q,v,p);o.publish("focusmove",r,x);if(x.isStopped){return}}if(n){o.afterEvent(q)}Ext.GlobalEvents.fireEvent("focus",{event:s,toElement:v,fromElement:p})},createSyntheticEvent:function(f,h,i,g){var j=new Ext.event.Event(h);j.type=f;j.relatedTarget=g;j.target=i;return j}},0,0,0,0,0,0,[Ext.event.publisher,"Focus"],function(c){var d;c.instance=new c();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:["focus","blur"],doDelegatedEvent:function(a,b){var e=this;a=e.callSuper([a,false]);if(a){clearTimeout(d);d=0;if(a.type==="blur"){var h=a.target===window?document.body:a.target;d=setTimeout(function(){d=0;e.processFocusIn(a,h,document.body,b);c.previousActiveElement=null},0);if(a.target===window||a.target===document){c.previousActiveElement=null}else{c.previousActiveElement=a.target}}else{e.processFocusIn(a,c.previousActiveElement||document.body,a.target===window?document.body:a.target,b)}}}})}}));(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(b){this.data={};this.set(b)},setConfig:function(b){this.set(b);return this},setRaw:function(b){this.data=b;return this},clear:function(){return this.setRaw({})},setTransform:function(n,j){var k=this.data,i=Ext.isArray(j),h=k.transform,l,m;if(!h){h=k.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 n=="string"){switch(n){case"translate":if(i){l=j.length;if(l==0){break}h.translateX=j[0];if(l==1){break}h.translateY=j[1];if(l==2){break}h.translateZ=j[2]}else{h.translateX=j}break;case"rotate":if(i){l=j.length;if(l==0){break}h.rotateX=j[0];if(l==1){break}h.rotateY=j[1];if(l==2){break}h.rotateZ=j[2]}else{h.rotate=j}break;case"scale":if(i){l=j.length;if(l==0){break}h.scaleX=j[0];if(l==1){break}h.scaleY=j[1];if(l==2){break}h.scaleZ=j[2]}else{h.scaleX=j;h.scaleY=j}break;case"skew":if(i){l=j.length;if(l==0){break}h.skewX=j[0];if(l==1){break}h.skewY=j[1]}else{h.skewX=j}break;default:h[n]=j}}else{for(m in n){if(n.hasOwnProperty(m)){j=n[m];this.setTransform(m,j)}}}},set:function(f,g){var h=this.data,e;if(typeof f!="string"){for(e in f){g=f[e];if(e==="transform"){this.setTransform(g)}else{h[e]=g}}}else{if(f==="transform"){this.setTransform(g)}else{h[f]=g}}return this},unset:function(d){var c=this.data;if(c.hasOwnProperty(d)){delete c[d]}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(b){return Ext.get(b)},applyBefore:function(d,c){if(d){return Ext.factory(d,Ext.fx.State,c)}},applyAfter:function(c,d){if(c){return Ext.factory(c,Ext.fx.State,d)}},setFrom:function(b){return this.setState(this.STATE_FROM,b)},setTo:function(b){return this.setState(this.STATE_TO,b)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(e){var f=this.stateNameRegex,d;for(d in e){if(f.test(d)){this.setState(d,e[d])}}return this},getStates:function(){return this.states},updateCallback:function(b){if(b){this.setOnEnd(b)}},end:function(){this.stop()},stop:function(){this.fireEvent("stop",this)},destroy:function(){this.stop();Ext.Evented.prototype.destroy.call(this)},setState:function(e,g){var f=this.getStates(),h;h=Ext.factory(g,Ext.fx.State,f[e]);if(h){f[e]=h}return this},getState:function(b){return this.getStates()[b]},getData:function(){var r=this,m=r.getStates(),t={},q=r.getBefore(),v=r.getAfter(),p=m[r.STATE_FROM],o=m[r.STATE_TO],n=p.getData(),s=o.getData(),u,w,x;for(w in m){if(m.hasOwnProperty(w)){x=m[w];u=x.getData();t[w]=u}}return{before:q?q.getData():{},after:v?v.getData():{},states:t,from:n,to:s,duration:r.getDuration(),iteration:r.getIteration(),direction:r.getDirection(),easing:r.getEasing(),delay:r.getDelay(),onEnd:r.getOnEnd(),onBeforeEnd:r.getOnBeforeEnd(),onBeforeStart:r.getOnBeforeStart(),scope:r.getScope(),preserveEndState:r.getPreserveEndState(),replacePrevious:r.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(b){if(b==="auto"){return"ease-"+((this.getOut())?"in":"out")}return b},getContainerBox:function(){var b=this._containerBox;if(b==="auto"){b=this.getElement().getParent().getBox()}return b},getElementBox:function(){var b=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(b==="auto"){b=this.getElement().getBox()}return b},getData:function(){var q=this.getElementBox(),D=this.getContainerBox(),z=q?q:D,s=this.getFrom(),r=this.getTo(),A=this.getOut(),B=this.getOffset(),t=this.getDirection(),E=this.getUseCssTransform(),y=this.getReverse(),C=0,F=0,u,w,v,x;if(y){t=this.reverseDirectionMap[t]}switch(t){case this.DIRECTION_UP:if(A){F=D.top-z.top-z.height-B}else{F=D.bottom-z.bottom+z.height+B}break;case this.DIRECTION_DOWN:if(A){F=D.bottom-z.bottom+z.height+B}else{F=D.top-z.height-z.top-B}break;case this.DIRECTION_RIGHT:if(A){C=D.right-z.right+z.width+B}else{C=D.left-z.left-z.width-B}break;case this.DIRECTION_LEFT:if(A){C=D.left-z.left-z.width-B}else{C=D.right-z.right+z.width+B}break}u=(A)?0:C;w=(A)?0:F;if(E){s.setTransform({translateX:u,translateY:w})}else{s.set("left",u);s.set("top",w)}v=(A)?C:0;x=(A)?F:0;if(E){r.setTransform({translateX:v,translateY:x})}else{r.set("left",v);r.set("top",x)}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(e){var f=this.getTo(),d=this.getFrom();if(e){d.set("opacity",1);f.set("opacity",0)}else{d.set("opacity",0);f.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 t=this,r=t.getFrom(),q=t.getTo(),s=t.getDirection(),y=t.getOut(),n=t.getHalf(),x=n?90:180,v=1,z=1,o=0,p=0,u=0,w=0;if(y){z=0.8}else{v=0.8}switch(s){case this.DIRECTION_UP:if(y){u=x}else{o=-x}break;case this.DIRECTION_DOWN:if(y){u=-x}else{o=x}break;case this.DIRECTION_RIGHT:if(y){w=x}else{p=-x}break;case this.DIRECTION_LEFT:if(y){w=-x}else{p=x}break}r.setTransform({rotateX:o,rotateY:p,scale:v});q.setTransform({rotateX:u,rotateY:w,scale:z});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 f=this.getTo(),d=this.getFrom(),e=this.getOut();if(e){d.set("opacity",1);d.setTransform({scale:1});f.set("opacity",0);f.setTransform({scale:0})}else{d.set("opacity",0);d.setTransform({scale:0});f.set("opacity",1);f.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(d){var e=Ext.fx.animation.Abstract,f;if(typeof d=="string"){f=d;d={}}else{if(d&&d.type){f=d.type}}if(f){e=Ext.ClassManager.getByAlias("animation."+f)}return Ext.factory(d,e)}},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},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",formattedNameCache:{},transformMethods3d:["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","scaleX","scaleY","scaleZ"],transformMethodsNo3d:["translateX","translateY","rotate","skewX","skewY","scaleX","scaleY"],constructor:function(){var b=this;b.transformMethods=Ext.feature.has.Css3dTransforms?b.transformMethods3d:b.transformMethodsNo3d;b.vendorPrefix=Ext.browser.getStyleDashPrefix();b.ruleStylesCache={};Ext.Evented.prototype.constructor.call(this)},getStyleSheet:function(){var f=this.styleSheet,e,d;if(!f){e=document.createElement("style");e.type="text/css";(document.head||document.getElementsByTagName("head")[0]).appendChild(e);d=document.styleSheets;this.styleSheet=f=d[d.length-1]}return f},applyRules:function(n){var p=this.getStyleSheet(),l=this.ruleStylesCache,m=p.cssRules,t,r,o,u,s,v,q;for(t in n){r=n[t];o=l[t];if(o===undefined){s=m.length;p.insertRule(t+"{}",s);o=l[t]=m.item(s).style}u=o.$cache;if(!u){u=o.$cache={}}for(v in r){q=this.formatValue(r[v],v);v=this.formatName(v);if(u[v]!==q){u[v]=q;if(q===null){o.removeProperty(v)}else{o.setProperty(v,q,"important")}}}}return this},applyStyles:function(m){var j,n,k,h,i,l;for(j in m){if(m.hasOwnProperty(j)){n=document.getElementById(j);if(!n){continue}k=n.style;h=m[j];for(i in h){if(h.hasOwnProperty(i)){l=this.formatValue(h[i],i);i=this.formatName(i);if(l===null){k.removeProperty(i)}else{k.setProperty(i,l,"important")}}}}}return this},formatName:function(d){var e=this.formattedNameCache,f=e[d];if(!f){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[d]){f=this.vendorPrefix+d}else{f=d}e[d]=f}return f},formatValue:function(n,u){var p=typeof n,i=this.DEFAULT_UNIT_LENGTH,r,v,s,q,t,m,o;if(n===null){return""}if(p=="string"){if(this.lengthProperties[u]){o=n.match(this.lengthUnitRegex)[1];if(o.length>0){}else{return n+i}}return n}else{if(p=="number"){if(n==0){return"0"}if(this.lengthProperties[u]){return n+i}if(this.angleProperties[u]){return n+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[u]){return n+this.DEFAULT_UNIT_DURATION}}else{if(u==="transform"){r=this.transformMethods;t=[];for(s=0,q=r.length;s<q;s++){v=r[s];t.push(v+"("+this.formatValue(n[v],v)+")")}return t.join(" ")}else{if(Ext.isArray(n)){m=[];for(s=0,q=n.length;s<q;s++){m.push(this.formatValue(n[s],u))}return(m.length>0)?m.join(", "):"none"}}}}return n}},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(d){var e=d.target,f=e.id;if(f&&this.runningAnimationsData.hasOwnProperty(f)){this.refreshRunningAnimationsData(Ext.get(e),[d.browserEvent.propertyName])}},onAnimationEnd:function(v,w,y,t,p){var z=v.getId(),s=this.runningAnimationsData[z],i={},q={},A,u,x,r,B;y.un("stop","onAnimationStop",this);if(s){A=s.nameMap}i[z]=q;if(w.onBeforeEnd){w.onBeforeEnd.call(w.scope||this,v,t)}y.fireEvent("animationbeforeend",y,v,t);this.fireEvent("animationbeforeend",this,y,v,t);if(p||(!t&&!w.preserveEndState)){u=w.toPropertyNames;for(x=0,r=u.length;x<r;x++){B=u[x];if(A&&!A.hasOwnProperty(B)){q[B]=null}}}if(w.after){Ext.merge(q,w.after)}this.applyStyles(i);if(w.onEnd){w.onEnd.call(w.scope||this,v,t)}y.fireEvent("animationend",y,v,t);this.fireEvent("animationend",this,y,v,t);Ext.AnimationQueue.stop(Ext.emptyFn,y)},onAllAnimationsEnd:function(d){var f=d.getId(),e={};delete this.runningAnimationsData[f];e[f]={"transition-property":null,"transition-duration":null,"transition-timing-function":null,"transition-delay":null};this.applyStyles(e);this.fireEvent("animationallend",this,d)},hasRunningAnimations:function(e){var f=e.getId(),d=this.runningAnimationsData;return d.hasOwnProperty(f)&&d[f].sessions.length>0},refreshRunningAnimationsData:function(I,D,j,y){var F=I.getId(),x=this.runningAnimationsData,L=x[F];if(!L){return}var B=L.nameMap,v=L.nameList,K=L.sessions,G,E,H,i,C,J,w,z,A=false;j=Boolean(j);y=Boolean(y);if(!K){return this}G=K.length;if(G===0){return this}if(y){L.nameMap={};v.length=0;for(C=0;C<G;C++){J=K[C];this.onAnimationEnd(I,J.data,J.animation,j,y)}K.length=0}else{for(C=0;C<G;C++){J=K[C];w=J.map;z=J.list;for(E=0,H=D.length;E<H;E++){i=D[E];if(w[i]){delete w[i];Ext.Array.remove(z,i);J.length--;if(--B[i]==0){delete B[i];Ext.Array.remove(v,i)}}}if(J.length==0){K.splice(C,1);C--;G--;A=true;this.onAnimationEnd(I,J.data,J.animation,j)}}}if(!y&&!j&&K.length==0&&A){this.onAllAnimationsEnd(I)}},getRunningData:function(c){var d=this.runningAnimationsData;if(!d.hasOwnProperty(c)){d[c]={nameMap:{},nameList:[],sessions:[]}}return d[c]},getTestElement:function(){var h=this.testElement,e,g,f;if(!h){e=document.createElement("iframe");e.setAttribute("tabIndex",-1);f=e.style;f.setProperty("visibility","hidden","important");f.setProperty("width","0px","important");f.setProperty("height","0px","important");f.setProperty("position","absolute","important");f.setProperty("border","0px","important");f.setProperty("zIndex","-1000","important");document.body.appendChild(e);g=e.contentDocument;g.open();g.writeln("</body>");g.close();this.testElement=h=g.createElement("div");h.style.setProperty("position","absolute","important");g.body.appendChild(h);this.testElementComputedStyle=window.getComputedStyle(h)}return h},getCssStyleValue:function(f,h){var i=this.getTestElement(),g=this.testElementComputedStyle,j=i.style;j.setProperty(f,h);if(Ext.browser.is.Firefox){i.offsetHeight}h=g.getPropertyValue(f);j.removeProperty(f);return h},run:function(aa){var P=this,ai=P.lengthProperties,K={},S={},N={},am,U,i,al,Q,j,O,Y,W,ap,ae,Z,ac,ab,X,ag,R,aj,V,M,ah,ak,L,ad,an,T,ao,af;if(!P.listenersAttached){P.attachListeners()}aa=Ext.Array.from(aa);for(Z=0,ab=aa.length;Z<ab;Z++){X=aa[Z];X=Ext.factory(X,Ext.fx.Animation);am=X.getElement();Ext.AnimationQueue.start(Ext.emptyFn,X);aj=window.getComputedStyle(am.dom);U=am.getId();N=Ext.merge({},X.getData());if(X.onBeforeStart){X.onBeforeStart.call(X.scope||P,am)}X.fireEvent("animationstart",X);P.fireEvent("animationstart",P,X);N[U]=N;Q=N.before;i=N.from;al=N.to;N.fromPropertyNames=j=[];N.toPropertyNames=O=[];for(M in al){if(al.hasOwnProperty(M)){al[M]=ah=P.formatValue(al[M],M);V=P.formatName(M);ad=ai.hasOwnProperty(M);if(!ad){ah=P.getCssStyleValue(V,ah)}if(i.hasOwnProperty(M)){i[M]=L=P.formatValue(i[M],M);if(!ad){L=P.getCssStyleValue(V,L)}if(ah!==L){j.push(V);O.push(V)}}else{ak=aj.getPropertyValue(V);if(ah!==ak){O.push(V)}}}}ag=O.length;if(ag===0){P.onAnimationEnd(am,N,X);continue}ap=P.getRunningData(U);ao=ap.sessions;if(ao.length>0){P.refreshRunningAnimationsData(am,Ext.Array.merge(j,O),true,N.replacePrevious)}an=ap.nameMap;T=ap.nameList;R={};for(ac=0;ac<ag;ac++){M=O[ac];R[M]=true;if(!an.hasOwnProperty(M)){an[M]=1;T.push(M)}else{an[M]++}}af={element:am,map:R,list:O.slice(),length:ag,data:N,animation:X};ao.push(af);X.on("stop","onAnimationStop",P);ae=Ext.apply({},Q);Ext.apply(ae,i);if(T.length>0){j=Ext.Array.difference(T,j);O=Ext.Array.merge(j,O);ae["transition-property"]=j}K[U]=ae;S[U]=Ext.apply({},al);S[U]["transition-property"]=O;S[U]["transition-duration"]=N.duration;S[U]["transition-timing-function"]=N.easing;S[U]["transition-delay"]=N.delay;X.startTime=Date.now()}W=P.$className;P.applyStyles(K);Y=function(a){if(a.data===W&&a.source===window){window.removeEventListener("message",Y,false);P.applyStyles(S)}};if(window.requestAnimationFrame){window.requestAnimationFrame(function(){window.addEventListener("message",Y,false);window.postMessage(W,"*")})}else{Ext.defer(function(){window.addEventListener("message",Y,false);window.postMessage(W,"*")},1)}},onAnimationStop:function(o){var m=this.runningAnimationsData,k,j,l,i,p,n;for(k in m){if(m.hasOwnProperty(k)){j=m[k];l=j.sessions;for(i=0,p=l.length;i<p;i++){n=l[i];if(n.animation===o){this.refreshRunningAnimationsData(n.element,n.list.slice(),false)}}}}}},1,0,0,0,0,0,[Ext.fx.runner,"CssTransition",Ext,"Animator"],0));(Ext.cmd.derive("Ext.list.AbstractTreeItem",Ext.Widget,{isTreeListItem:true,cachedConfig:{expandable:false,expanded:false,floated:false,iconCls:"",leaf:true,loading:false,selected:false,selectedParent:false},config:{iconClsProperty:"iconCls",indent:null,owner:null,node:null,over:null,parentItem:null,text:{lazy:true,$value:""},textProperty:"text"},updateNode:function(o){if(o){var l=this,r=l.itemMap,k,q,m,n,i,p;l.element.dom.setAttribute("data-recordId",o.internalId);if(!r){k=o.childNodes;q=l.getOwner();l.itemMap=r={};for(n=0,m=k.length;n<m;++n){p=k[n];i=q.createItem(p,l);r[p.internalId]=i;l.insertItem(i,null)}}l.setExpanded(o.isExpanded());l.doNodeUpdate(o)}},updateSelected:function(c){if(!this.isConfiguring){var d=this.getParentItem();while(d&&!d.isRootListItem){d.setSelectedParent(c);d=d.getParentItem()}}},collapse:function(){this.getNode().collapse()},expand:function(){this.getNode().expand()},getToolElement:Ext.emptyFn,insertItem:Ext.emptyFn,isExpanded:function(){return this.getExpanded()},isSelectionEvent:Ext.emptyFn,isToggleEvent:Ext.emptyFn,nodeCollapse:function(j,h){var f=this,g=f.getOwner(),i=f.preventAnimation?null:g.getAnimation();f.nodeCollapseBegin(i,h);if(!i){f.nodeCollapseEnd(h)}},nodeCollapseBegin:function(h,g){var e=this,f=e.getOwner();e.setExpanded(false);f.fireEvent("itemcollapse",f,e)},nodeCollapseEnd:function(b){if(!b){this.getOwner().updateLayout()}},nodeExpand:function(j){var f=this,g=f.getOwner(),h=f.getFloated(),i=!h&&g.getAnimation();f.nodeExpandBegin(i);if(!i){f.nodeExpandEnd()}},nodeExpandBegin:function(f){var d=this,e=d.getOwner();d.setExpanded(true);e.fireEvent("itemexpand",e,d)},nodeExpandEnd:function(){this.getOwner().updateLayout()},nodeInsert:function(o,m){var l=this,p=l.getOwner(),r=l.itemMap,q=o.internalId,j=p.getItem(o),n=null,k;if(j){k=j.getParentItem();k.removeItem(j);if(k!==l){k.doUpdateExpandable();j.setParentItem(l)}}else{j=l.getOwner().createItem(o,l)}r[q]=j;if(m){n=r[m.internalId]}l.insertItem(j,n);l.doUpdateExpandable();p.fireEvent("iteminsert",p,l,j,n);p.updateLayout()},nodeRemove:function(k){var l=this,j=l.itemMap,h=l.getOwner(),i=k.internalId,g=j[i];if(g){delete j[i];l.removeItem(g);g.destroy();l.doUpdateExpandable();h.fireEvent("itemremove",h,l,g);h.updateLayout()}},nodeUpdate:function(c,d){this.doNodeUpdate(c)},removeItem:Ext.emptyFn,updateFloated:function(j){var k=this,g=k.element,i=k.placeholder,l,h;if(j){i=g.clone(false,true);i.id+="-placeholder";k.placeholder=Ext.get(i);k.wasExpanded=k.getExpanded();k.setExpanded(true);g.dom.parentNode.insertBefore(i,g.dom);k.floater=k.createFloater()}else{if(i){h=k.wasExpanded;l=k.getNode();k.setExpanded(h);if(!h&&l.isExpanded()){k.preventAnimation=true;l.collapse();k.preventAnimation=false}k.floater.remove(k,false);i.dom.parentNode.insertBefore(g.dom,i.dom);i.destroy();k.floater.destroy();k.placeholder=k.floater=null;k.floatedByHover=false}}},destroy:function(){var h=this,g=h.itemMap,f=h.getOwner(),e;if(g){for(e in g){g[e].destroy()}h.itemMap=null}if(f){f.removeItem(h.getNode())}h.setNode(null);h.setParentItem(null);h.setOwner(null);Ext.Widget.prototype.destroy.call(this)},privates:{doNodeUpdate:function(g){var h=this,e=this.getTextProperty(),f=this.getIconClsProperty();if(e){h.setText(g.data[e])}if(f){h.setIconCls(g.data[f])}h.setLoading(g.isLoading());h.setLeaf(g.isLeaf());h.doUpdateExpandable()},doUpdateExpandable:function(){var b=this.getNode();this.setExpandable(b.isExpandable())},onClick:function(h){var j=this,g=j.getOwner(),e=j.getNode(),i={event:h,item:j,node:e,tree:g,select:e.get("selectable")!==false&&j.isSelectionEvent(h),toggle:j.isToggleEvent(h)};if(g.fireEvent("itemclick",g,i)!==false){if(i.toggle){j.toggleExpanded()}if(i.select){g.setSelection(j.getNode())}}},toggleExpanded:function(){if(this.isExpanded()){this.collapse()}else{this.expand()}},updateIndent:function(d){var e=this.itemMap,f;for(f in e){e[f].setIndent(d)}}}},0,0,["widget"],{widget:true},0,0,[Ext.list,"AbstractTreeItem"],0));(Ext.cmd.derive("Ext.list.RootTreeItem",Ext.list.AbstractTreeItem,{isRootListItem:true,element:{reference:"element",tag:"ul",cls:"x-treelist-root-container"},insertItem:function(c,d){if(d){c.element.insertBefore(d.element)}else{this.element.appendChild(c.element)}},isToggleEvent:function(b){return false}},0,0,["widget"],{widget:true},0,0,[Ext.list,"RootTreeItem"],0));(Ext.cmd.derive("Ext.list.TreeItem",Ext.list.AbstractTreeItem,{collapsedCls:"x-treelist-item-collapsed",expandedCls:"x-treelist-item-expanded",floatedCls:"x-treelist-item-floated",floatedToolCls:"x-treelist-item-tool-floated",leafCls:"x-treelist-item-leaf",expandableCls:"x-treelist-item-expandable",hideIconCls:"x-treelist-item-hide-icon",loadingCls:"x-treelist-item-loading",selectedCls:"x-treelist-item-selected",selectedParentCls:"x-treelist-item-selected-parent",withIconCls:"x-treelist-item-with-icon",hoverCls:"x-treelist-item-over",rowHoverCls:"x-treelist-row-over",isTreeListItem:true,config:{rowCls:null},rowClsProperty:"rowCls",element:{reference:"element",tag:"li",cls:"x-treelist-item",children:[{reference:"rowElement",cls:"x-treelist-row",children:[{reference:"wrapElement",cls:"x-treelist-item-wrap",children:[{reference:"iconElement",cls:"x-treelist-item-icon"},{reference:"textElement",cls:"x-treelist-item-text"},{reference:"expanderElement",cls:"x-treelist-item-expander"}]}]},{reference:"itemContainer",tag:"ul",cls:"x-treelist-container"},{reference:"toolElement",cls:"x-treelist-item-tool"}]},constructor:function(d){Ext.list.AbstractTreeItem.prototype.constructor.call(this,d);var c=this.toolElement.dom;c.parentNode.removeChild(c)},getToolElement:function(){return this.toolElement},insertItem:function(c,d){if(d){c.element.insertBefore(d.element)}else{this.itemContainer.appendChild(c.element)}},isSelectionEvent:function(c){var d=this.getOwner();return(!this.isToggleEvent(c)||!d.getExpanderOnly()||d.getSelectOnExpander())},isToggleEvent:function(c){var d=false;if(this.getOwner().getExpanderOnly()){d=c.target===this.expanderElement.dom}else{d=!this.itemContainer.contains(c.target)}return d},nodeCollapseBegin:function(i,h){var j=this,f=j.itemContainer,g;if(j.expanding){j.stopAnimation(j.expanding)}g=i&&f.getHeight();Ext.list.AbstractTreeItem.prototype.nodeCollapseBegin.call(this,i,h);if(i){f.dom.style.display="block";j.collapsingForExpand=h;j.collapsing=this.runAnimation(Ext.merge({from:{height:g},to:{height:0},callback:j.nodeCollapseDone,scope:j},i))}},nodeCollapseDone:function(f){var d=this,e=d.itemContainer;d.collapsing=null;e.dom.style.display="";e.setHeight(null);d.nodeCollapseEnd(d.collapsingForExpand)},nodeExpandBegin:function(g){var h=this,e=h.itemContainer,f;if(h.collapsing){h.stopAnimation(h.collapsing)}Ext.list.AbstractTreeItem.prototype.nodeExpandBegin.call(this,g);if(g){f=e.getHeight();e.setHeight(0);h.expanding=h.runAnimation(Ext.merge({to:{height:f},callback:h.nodeExpandDone,scope:h},g))}},nodeExpandDone:function(){this.expanding=null;this.itemContainer.setHeight(null);this.nodeExpandEnd()},removeItem:function(b){this.itemContainer.removeChild(b.element)},updateNode:function(d,c){this.syncIndent();Ext.list.AbstractTreeItem.prototype.updateNode.call(this,d,c)},updateExpandable:function(){this.updateExpandCls()},updateExpanded:function(){this.updateExpandCls()},updateFloated:function(f,e){var d=this;Ext.list.AbstractTreeItem.prototype.updateFloated.call(this,f,e);d.element.toggleCls(d.floatedCls,f);d.toolElement.toggleCls(d.floatedToolCls,f)},updateIconCls:function(e,f){var g=this,h=g.element;g.doIconCls(g.iconElement,e,f);g.doIconCls(g.toolElement,e,f);h.toggleCls(g.withIconCls,!!e);h.toggleCls(g.hideIconCls,e===null)},updateLeaf:function(b){this.element.toggleCls(this.leafCls,b)},updateLoading:function(b){this.element.toggleCls(this.loadingCls,b)},updateOver:function(c){var d=this;d.element.toggleCls(d.hoverCls,!!c);d.rowElement.toggleCls(d.rowHoverCls,c>1)},updateRowCls:function(c,d){this.rowElement.replaceCls(d,c)},updateSelected:function(j,h){var i=this,g=i.selectedCls,f=i.getToolElement();Ext.list.AbstractTreeItem.prototype.updateSelected.call(this,j,h);i.element.toggleCls(g,j);if(f){f.toggleCls(g,j)}},updateSelectedParent:function(d){var f=this;f.element.toggleCls(f.selectedParentCls,d);var e=f.getToolElement();if(e){e.toggleCls(f.selectedCls,d)}},updateText:function(b){this.textElement.update(b)},privates:{doNodeUpdate:function(b){Ext.list.AbstractTreeItem.prototype.doNodeUpdate.call(this,b);this.setRowCls(b&&b.data[this.rowClsProperty])},doIconCls:function(f,d,e){if(e){f.removeCls(e)}if(d){f.addCls(d)}},syncIndent:function(){var h=this,f=h.getIndent(),e=h.getNode(),g;if(e){g=e.data.depth-1;h.wrapElement.dom.style.marginLeft=(g*f)+"px"}},updateExpandCls:function(){if(!this.updatingExpandCls){var j=this,l=j.getExpandable(),k=j.element,g=j.getExpanded(),h=j.expandedCls,i=j.collapsedCls;j.updatingExpandCls=true;k.toggleCls(j.expandableCls,l);if(l){k.toggleCls(h,g);k.toggleCls(i,!g)}else{k.removeCls([h,i])}j.updatingExpandCls=false}},updateIndent:function(c,d){this.syncIndent();Ext.list.AbstractTreeItem.prototype.updateIndent.call(this,c,d)}}},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",createFloater:function(){var i=this,g=i.getOwner(),h=g.getUi(),f="x-treelist",j;if(h){f+=" "+f+"-"+h}i.floater=j=new Ext.container.Container({cls:f+" x-treelist-floater",floating:true,width:200,shadow:false,renderTo:Ext.getBody(),listeners:{element:"el",click:function(a){return g.onClick(a)}}});j.add(i);j.show();j.el.alignTo(i.getToolElement(),"tr?");return j},runAnimation:function(b){return this.itemContainer.addAnimation(b)},stopAnimation:function(b){b.jumpToEnd()}});Ext.define("Ext.theme.triton.list.TreeItem",{override:"Ext.list.TreeItem",compatibility:Ext.isIE8,updateFloated:function(c,d){(arguments.callee.$previous||Ext.list.AbstractTreeItem.prototype.updateFloated).call(this,c,d);this.toolElement.syncRepaint()}});(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:null,overItem:null,selection:null,selectOnExpander:false,singleExpand:null,store:null,ui:null},twoWayBindable:{selection:1},publishes:{selection:1},defaultBindProperty:"store",constructor:function(b){Ext.Widget.prototype.constructor.call(this,b);this.publishState("selection",this.getSelection())},beforeLayout:function(){this.syncIconSize()},destroy:function(){var b=this;b.destroying=true;b.unfloatAll();b.activeFloater=null;b.setSelection(null);b.setStore(null);Ext.Widget.prototype.destroy.call(this)},updateOverItem:function(j,h){var k={},l=2,i,c;for(i=j;i;i=this.getItem(c.parentNode)){c=i.getNode();k[c.internalId]=true;i.setOver(l);l=1}if(h){for(i=h;i;i=this.getItem(c.parentNode)){c=i.getNode();if(k[c.internalId]){break}i.setOver(0)}}},applySelection:function(f,e){var d=this.getStore();if(!d){f=null}if(f&&f.get("selectable")===false){f=e}return f},updateSelection:function(e,f){var g=this,h;if(!g.destroying){h=g.getItem(f);if(h){h.setSelected(false)}h=g.getItem(e);if(h){h.setSelected(true)}g.fireEvent("selectionchange",g,e)}},applyStore:function(b){return b&&Ext.StoreManager.lookup(b,"tree")},updateStore:function(e,g){var h=this,f;if(g){if(g.getAutoDestroy()){g.destroy()}else{h.storeListeners.destroy()}h.removeRoot();h.storeListeners=null}if(e){h.storeListeners=e.on({destroyable:true,scope:h,nodeappend:h.onNodeAppend,nodecollapse:h.onNodeCollapse,nodeexpand:h.onNodeExpand,nodeinsert:h.onNodeInsert,noderemove:h.onNodeRemove,rootchange:h.onRootChange,update:h.onNodeUpdate});f=e.getRoot();if(f){h.createRootItem(f)}}if(!h.destroying){h.updateLayout()}},updateExpanderFirst:function(b){this.element.toggleCls(this.expanderFirstCls,b)},updateExpanderOnly:function(b){this.element.toggleCls(this.expanderOnlyCls,!b)},updateHighlightPath:function(b){this.element.toggleCls(this.highlightPathCls,b)},updateMicro:function(d){var c=this;if(!d){c.unfloatAll();c.activeFloater=null}c.element.toggleCls(c.microCls,d)},updateUi:function(g,f){var h=this.element,e=this.uiPrefix;if(f){h.removeCls(e+f)}if(g){h.addCls(e+g)}delete this.iconSize;this.syncIconSize()},getItem:function(d){var f=this.itemMap,e;if(d&&f){e=f[d.internalId]}return e||null},getItemConfig:function(c,d){return Ext.apply({parentItem:d.isRootListItem?null:d,owner:this,node:c,indent:this.getIndent()},this.getDefaults())},privates:{checkForOutsideClick:function(c){var d=this.activeFloater;if(!d.element.contains(c.target)){this.unfloatAll()}},collapsingForExpand:false,createItem:function(g,e){var h=Ext.create(this.getItemConfig(g,e)),f;if(e.isRootListItem){f=h.getToolElement();if(f){this.toolsElement.appendChild(f);f.dom.setAttribute("data-recordId",g.internalId);f.isTool=true}}return(this.itemMap[g.internalId]=h)},createRootItem:function(e){var f=this,d;f.itemMap={};f.rootItem=d=new Ext.list.RootTreeItem({indent:f.getIndent(),node:e,owner:f});f.element.appendChild(d.element);f.itemMap[e.internalId]=d},floatItem:function(g,e){var h=this,f;if(g.getFloated()){return}h.unfloatAll();h.activeFloater=f=g;h.floatedByHover=e;g.setFloated(true);if(e){g.getToolElement().on("mouseleave",h.checkForMouseLeave,h);f.element.on("mouseleave",h.checkForMouseLeave,h)}else{Ext.on("mousedown",h.checkForOutsideClick,h)}},onClick:function(d){var e=d.getTarget("[data-recordId]"),f;if(e){f=e.getAttribute("data-recordId");e=this.itemMap[f];if(e){e.onClick(d)}}},onMouseEnter:function(b){this.onMouseOver(b)},onMouseLeave:function(){this.setOverItem(null)},onMouseOver:function(c){var d=Ext.Component.fromElement(c.getTarget());this.setOverItem(d&&d.isTreeListItem&&d)},checkForMouseLeave:function(f){var d=this.activeFloater,e=f.getRelatedTarget();if(d){if(e!==d.getToolElement().dom&&!d.element.contains(e)){this.unfloatAll()}}},onNodeAppend:function(e,f){if(e){var d=this.itemMap[e.internalId];if(d){d.nodeInsert(f,null)}}},onNodeCollapse:function(c){var d=this.itemMap[c.internalId];if(d){d.nodeCollapse(c,this.collapsingForExpand)}},onNodeExpand:function(m){var n=this,o=n.itemMap[m.internalId],l,i,p,j,k;if(o){if(!o.isRootItem&&n.getSingleExpand()){n.collapsingForExpand=true;j=(o.getParentItem()||n.rootItem).getNode();l=j.childNodes;for(p=0,i=l.length;p<i;++p){k=l[p];if(k!==m){k.collapse()}}n.collapsing=false}o.nodeExpand(m)}},onNodeInsert:function(f,g,e){var h=this.itemMap[f.internalId];if(h){h.nodeInsert(g,e)}},onNodeRemove:function(f,g,e){if(f&&!e){var h=this.itemMap[f.internalId];if(h){h.nodeRemove(g)}}},onNodeUpdate:function(g,h,f,i){var j=this.itemMap[h.internalId];if(j){j.nodeUpdate(h,i)}},onRootChange:function(b){this.removeRoot();if(b){this.createRootItem(b)}this.updateLayout()},removeItem:function(d){var c=this.itemMap;if(c){delete c[d.internalId]}},removeRoot:function(){var c=this,d=c.rootItem;if(d){c.element.removeChild(d.element);c.rootItem=c.itemMap=Ext.destroy(d)}},onToolStripClick:function(d){var e=d.getTarget("[data-recordId]"),f;if(e){f=e.getAttribute("data-recordId");e=this.itemMap[f];if(e){if(e===this.activeFloater){this.unfloatAll()}else{this.floatItem(e,false)}}}},onToolStripMouseOver:function(d){var e=d.getTarget("[data-recordId]"),f;if(e){f=e.getAttribute("data-recordId");e=this.itemMap[f];if(e){this.floatItem(e,true)}}},syncIconSize:function(){var c=this,d=c.iconSize||(c.iconSize=parseInt(c.element.getStyle("background-position"),10));c.setIconSize(d)},unfloatAll:function(){var c=this,d=c.activeFloater;if(d){d.setFloated(false);c.activeFloater=null;if(c.floatedByHover){d.element.un("mouseleave",c.checkForMouseLeave,c)}else{Ext.un("mousedown",c.checkForOutsideClick,c)}}},defaultIconSize:22,updateIconSize:function(b){this.setIndent(b||this.defaultIconSize)},updateIndent:function(c){var d=this.rootItem;if(d){d.setIndent(c)}}}},1,["treelist"],["widget","treelist"],{widget:true,treelist:true},["widget.treelist"],0,[Ext.list,"Tree"],0));(Ext.cmd.derive("Ext.mixin.Container",Ext.Mixin,{mixinConfig:{id:"container"},isContainer:true,config:{referenceHolder:false},getReferences:function(){Ext.ComponentManager.fixReferences();return this.refs||null},lookup:function(c){var d=this.getReferences();return(d&&d[c])||null},lookupReference:function(b){return this.lookup(b)},privates:{attachReference:function(e){var g=this,h,f;if(g.destroying||g.destroyed){return}f=g.refs||(g.refs={});h=e.referenceKey;f[h]=e},clearReference:function(d){var e=this.refs,f=d.referenceKey;if(e&&f){d.viewModelKey=d.referenceKey=e[f]=null}},containerOnAdded:function(c,d){if(d){Ext.ComponentManager.markReferencesDirty()}},containerOnRemoved:function(d){var c;if(!d){c=this.lookupReferenceHolder();if(c){Ext.ComponentManager.markReferencesDirty();c.clearReferences()}}},clearReferences:function(){this.refs=null},initContainerInheritedState:function(n,p){var l=this,i=l.getController(),k=l.getSession(),o=l.getConfig("viewModel",true),j=l.getReference(),m=l.getReferenceHolder();if(i){n.referenceHolder=i;m=true}else{if(m){n.referenceHolder=l}}if(m){n.referencePath=""}else{if(j&&l.isParentReference){n.referencePath=l.referenceKey+"."}}if(k){n.session=k}if(o){n.viewModelPath=""}else{if(j&&l.isParentReference){n.viewModelPath=l.viewModelKey+"."}}},setupReference:function(c){var d;if(c&&c.charAt(d=c.length-1)===">"){this.isParentReference=true;c=c.substring(0,d)}return c}}},0,0,0,0,0,0,[Ext.mixin,"Container"],0));(Ext.cmd.derive("Ext.mixin.Responsive",Ext.Mixin,function(b){return{mixinConfig:{id:"responsive",after:{destroy:"destroy"}},config:{responsiveConfig:{$value:undefined,merge:function(h,l,i,j){if(!h){return l}var a=l?Ext.Object.chain(l):{},k;for(k in h){if(!j||!(k in a)){a[k]={fn:null,config:h[k]}}}return a}},responsiveFormulas:{$value:0,merge:function(f,a,g,h){return this.mergeNew(f,a,g,h)}}},destroy:function(){b.unregister(this);this.callParent()},privates:{statics:{active:false,all:{},context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){b.active=true;b.updateContext();Ext.on("resize",b.onResize,b)},deactivate:function(){b.active=false;Ext.un("resize",b.onResize,b)},notify:function(){var i=b.all,j=b.context,a=Ext.GlobalEvents,g=b.timer,h;if(g){b.timer=null;Ext.Function.cancelAnimationFrame(g)}b.updateContext();Ext.suspendLayouts();a.fireEvent("beforeresponsiveupdate",j);for(h in i){i[h].setupResponsiveContext()}a.fireEvent("beginresponsiveupdate",j);for(h in i){i[h].updateResponsiveState()}a.fireEvent("responsiveupdate",j);Ext.resumeLayouts(true)},onResize:function(){if(!b.timer){b.timer=Ext.Function.requestAnimationFrame(b.onTimer)}},onTimer:function(){b.timer=null;b.notify()},processConfig:function(a,i,k){var j=i&&i[k],l=a.config,n,m;if(j){m=a.getConfigurator();n=m.configs[k];l[k]=n.merge(j,l[k],a)}},register:function(a){var d=a.$responsiveId;if(!d){a.$responsiveId=d=++b.nextId;b.all[d]=a;if(++b.count===1){b.activate()}}},unregister:function(a){var d=a.$responsiveId;if(d in b.all){a.$responsiveId=null;delete b.all[d];if(--b.count===0){b.deactivate()}}},updateContext:function(){var f=Ext.Element,g=f.getViewportWidth(),a=f.getViewportHeight(),h=b.context;h.width=g;h.height=a;h.tall=g<a;h.wide=!h.tall;h.landscape=h.portrait=false;if(!h.platform){h.platform=Ext.platformTags}h[Ext.dom.Element.getOrientation()]=true}},afterClassMixedIn:function(g){var h=g.prototype,a=h.responsiveConfig,i=h.responsiveFormulas,j;if(a||i){j={};if(a){delete h.responsiveConfig;j.responsiveConfig=a}if(i){delete h.responsiveFormulas;j.responsiveFormulas=i}g.getConfigurator().add(j)}},applyResponsiveConfig:function(d){for(var a in d){d[a].fn=Ext.createRuleFn(a)}return d},applyResponsiveFormulas:function(g){var h={},f,a;if(g){for(a in g){if(Ext.isString(f=g[a])){f=Ext.createRuleFn(f)}h[a]=f}}return h},getResponsiveState:function(){var j=b.context,g=this.getResponsiveConfig(),a={},i,h;if(g){for(h in g){i=g[h];if(i.fn.call(this,j)){Ext.merge(a,i.config)}}}return a},setupResponsiveContext:function(){var f=this.getResponsiveFormulas(),e=b.context,a;if(f){for(a in f){e[a]=f[a].call(this,e)}}},transformInstanceConfig:function(e){var f=this,a;b.register(f);if(e){b.processConfig(f,e,"responsiveConfig");b.processConfig(f,e,"responsiveFormulas")}f.setupResponsiveContext();a=f.getResponsiveState();if(e){a=Ext.merge({},e,a);delete a.responsiveConfig;delete a.responsiveFormulas}return a},updateResponsiveState:function(){var a=this.getResponsiveState();this.setConfig(a)}}}},0,0,0,0,0,0,[Ext.mixin,"Responsive"],0));(Ext.cmd.derive("Ext.perf.Accumulator",Ext.Base,function(){var p=null,l=Ext.global.chrome,o,q=function(){q=Ext.now;var c,b;if(Ext.isChrome&&l&&l.Interval){c=new l.Interval();c.start();q=function(){return c.microseconds()/1000}}else{if(window.ActiveXObject){try{b=new ActiveXObject("SenchaToolbox.Toolbox");Ext.senchaToolbox=b;q=function(){return b.milliseconds}}catch(a){}}}Ext.perf.getTimestamp=Ext.perf.Accumulator.getTimestamp=q;return q()};function k(a,b){a.sum+=b;a.min=Math.min(a.min,b);a.max=Math.max(a.max,b)}function n(a){var c=a?a:(q()-this.time),b=this,d=b.accum;++d.count;if(!--d.depth){k(d.total,c)}k(d.pure,c-b.childTime);p=b.parent;if(p){++p.accum.childCount;p.childTime+=c}}function r(){return{min:Number.MAX_VALUE,max:0,sum:0}}function j(a,b){return function(){var c=a.enter(),d=b.apply(this,arguments);c.leave();return d}}function m(b,c,d,e){var a={avg:0,min:e.min,max:e.max,sum:0};if(b){d=d||0;a.sum=e.sum-c*d;a.avg=a.sum/b}return a}return{constructor:function(b){var a=this;a.count=a.childCount=a.depth=a.maxDepth=0;a.pure=r();a.total=r();a.name=b},statics:{getTimestamp:q},format:function(b){if(!o){o=new Ext.XTemplate(["{name} - {count} call(s)",'<tpl if="count">','<tpl if="childCount">'," ({childCount} children)","</tpl>",'<tpl if="depth - 1">'," ({depth} deep)","</tpl>",'<tpl for="times">',", {type}: {[this.time(values.sum)]} msec (","avg={[this.time(values.sum / parent.count)]}",")","</tpl>","</tpl>"].join(""),{time:function(c){return Math.round(c*100)/100}})}var a=this.getData(b);a.name=this.name;a.pure.type="Pure";a.total.type="Total";a.times=[a.pure,a.total];return o.apply(a)},getData:function(b){var a=this;return{count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:m(a.count,a.childCount,b,a.pure),total:m(a.count,a.childCount,b,a.total)}},enter:function(){var b=this,a={accum:b,leave:n,childTime:0,parent:p};++b.depth;if(b.maxDepth<b.depth){b.maxDepth=b.depth}p=a;a.time=q();return a},monitor:function(b,c,d){var a=this.enter();if(d){b.apply(c,d)}else{b.call(c)}a.leave()},report:function(){Ext.log(this.format())},tap:function(a,w){var x=this,f=typeof w==="string"?[w]:w,b,v,d,e,g,h,i,c;c=function(){if(typeof a==="string"){b=Ext.global;e=a.split(".");for(d=0,g=e.length;d<g;++d){b=b[e[d]]}}else{b=a}for(d=0,g=f.length;d<g;++d){h=f[d];v=h.charAt(0)==="!";if(v){h=h.substring(1)}else{v=!(h in b.prototype)}i=v?b:b.prototype;i[h]=j(x,i[h])}};Ext.ClassManager.onCreated(c,x,a);return x}}},1,0,0,0,0,0,[Ext.perf,"Accumulator"],function(){Ext.perf.getTimestamp=this.getTimestamp}));(Ext.cmd.derive("Ext.perf.Monitor",Ext.Base,{singleton:true,alternateClassName:"Ext.Perf",constructor:function(){this.accumulators=[];this.accumulatorsByName={}},calibrate:function(){var h=new Ext.perf.Accumulator("$"),k=h.total,n=Ext.perf.Accumulator.getTimestamp,l=0,j,i,m;m=n();do{j=h.enter();j.leave();++l}while(k.sum<100);i=n();return(i-m)/l},get:function(d){var f=this,e=f.accumulatorsByName[d];if(!e){f.accumulatorsByName[d]=e=new Ext.perf.Accumulator(d);f.accumulators.push(e)}return e},enter:function(b){return this.get(b).enter()},monitor:function(e,f,d){this.get(e).monitor(f,d)},report:function(){var f=this,d=f.accumulators,e=f.calibrate();d.sort(function(a,b){return(a.name<b.name)?-1:((b.name<a.name)?1:0)});f.updateGC();Ext.log("Calibration: "+Math.round(e*100)/100+" msec/sample");Ext.each(d,function(a){Ext.log(a.format(e))})},getData:function(f){var d={},e=this.accumulators;Ext.each(e,function(a){if(f||a.count){d[a.name]=a.getData()}});return d},reset:function(){Ext.each(this.accumulators,function(d){var c=d;c.count=c.childCount=c.depth=c.maxDepth=0;c.pure={min:Number.MAX_VALUE,max:0,sum:0};c.total={min:Number.MAX_VALUE,max:0,sum:0}})},updateGC:function(){var e=this.accumulatorsByName.GC,d=Ext.senchaToolbox,f;if(e){e.count=d.garbageCollectionCounter||0;if(e.count){f=e.pure;e.total.sum=f.sum=d.garbageCollectionMilliseconds;f.min=f.max=f.sum/e.count;f=e.total;f.min=f.max=f.sum/e.count}}},watchGC:function(){Ext.perf.getTimestamp();var b=Ext.senchaToolbox;if(b){this.get("GC");b.watchGarbageCollector(false)}},setup:function(l){if(!l){l={render:{"Ext.Component":"render"},layout:{"Ext.layout.Context":"run"}}}this.currentConfig=l;var k,i,g,j,h;for(k in l){if(l.hasOwnProperty(k)){i=l[k];g=Ext.Perf.get(k);for(j in i){if(i.hasOwnProperty(j)){h=i[j];g.tap(j,h)}}}}this.watchGC()},setupLog:function(l){var j,h,g,i,k;for(j in l){if(l.hasOwnProperty(j)){h=Ext.ClassManager.get(j);if(h){g=l[j];k={};for(i in g){k[i]=(function(b,a){return function(){var e,d,c,f,n;e=+Date.now();n=this.callParent(arguments);d=+Date.now()-e;if(window.console&&d>0){f=a==="this"?this:typeof a==="string"?this[a]:typeof a==="number"?arguments[a]:null;if(f){c=f.id}if(c!=null){console.log(b+" for "+c+": "+d+"ms")}else{console.log(b+" for unknown: "+d+"ms")}if(console.trace){console.trace()}}return n}})(i,g[i])}Ext.override(h,k)}}}}},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(b){if(b){this.pluginConfig=b;this.initConfig(b)}},clonePlugin:function(b){return new this.self(Ext.apply({},b,this.pluginConfig))},setCmp:function(b){this.cmp=b},getCmp:function(){return this.cmp},init:Ext.emptyFn,destroy:function(){this.cmp=this.pluginConfig=null;this.callParent()},onClassExtended:function(e,g,f){var h=g.alias;if(h&&!g.ptype){if(Ext.isArray(h)){h=h[0]}e.prototype.ptype=h.split("plugin.")[1]}},resolveListenerScope:function(g){var h=this,e=h.getCmp(),f;if(e){f=e.resolveSatelliteListenerScope(h,g)}return f||h.mixins.observable.resolveListenerScope.call(h,g)}},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.util.ItemCollection",Ext.util.MixedCollection,{alternateClassName:"Ext.ItemCollection",getKey:function(b){return b.getItemId&&b.getItemId()},has:function(b){return this.map.hasOwnProperty(b.getId())}},0,0,0,0,0,0,[Ext.util,"ItemCollection",Ext,"ItemCollection"],0));(Ext.cmd.derive("Ext.util.TaskManager",Ext.util.TaskRunner,{alternateClassName:["Ext.TaskManager"],singleton:true},0,0,0,0,0,0,[Ext.util,"TaskManager",Ext,"TaskManager"],0));(Ext.cmd.derive("Ext.util.TextMetrics",Ext.Base,{statics:{shared:null,measure:function(g,i,h){var f=this,j=f.shared;if(!j){j=f.shared=new f(g,h)}j.bind(g);j.setFixedWidth(h||"auto");return j.getSize(i)},destroy:function(){var b=this;Ext.destroy(b.shared);b.shared=null}},constructor:function(f,g){var h=this,e=Ext.getBody().createChild({role:"presentation",cls:"x-textmetrics"});e.setVisibilityMode(1);h.measure=e;if(f){h.bind(f)}e.position("absolute");e.setLocalXY(-1000,-1000);e.hide();if(g){e.setWidth(g)}},getSize:function(f){var d=this.measure,e;d.setHtml(f);e=d.getSize();d.setHtml("");return e},bind:function(d){var c=this;c.el=Ext.get(d);c.measure.setStyle(c.el.getStyle(["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing","word-break"]))},setFixedWidth:function(b){this.measure.setWidth(b)},getWidth:function(b){this.measure.dom.style.width="auto";return this.getSize(b).width},getHeight:function(b){return this.getSize(b).height},destroy:function(){var b=this;b.el=b.measure=Ext.destroy(b.measure);b.callParent()}},1,0,0,0,0,0,[Ext.util,"TextMetrics"],function(){Ext.Element.override({getTextWidth:function(f,d,e){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(f,this.dom.innerHTML,true)).width,d||0,e||1000000)}})}));Ext.define(null,{override:"Ext.event.publisher.Focus",compatibility:Ext.isIE10m,doDelegatedEvent:function(g,h){var f=document.body,e=Ext.synchronouslyFocusing;if(e&&((g.type==="focusout"&&g.srcElement===e&&g.toElement===f)||(g.type==="focusin"&&g.srcElement===f&&g.fromElement===e&&g.toElement===null))){return}return this.callParent([g,h])}});Ext.define(null,{override:"Ext.scroll.DomScroller",compatibility:Ext.isIE8,privates:{doScrollTo:function(m,n,t){var o=this,r=o.getElement(),q,s,l,k,p;if(r&&!r.destroyed){s=this.getElement().dom;k=(m===Infinity);p=(n===Infinity);if(k||p){q=o.getMaxPosition();if(k){m=q.x}if(p){n=q.y}}m=o.convertX(m);if(t){l={};if(n!=null){l.scrollTop=n}if(m!=null){l.scrollLeft=m}r.animate(Ext.mergeIf({to:{scrollTop:n,scrollLeft:m}},t))}else{if(m!=null&&n!=null){o.deferDomScroll=true}if(n!=null){s.scrollTop=n}if(m!=null){s.scrollLeft=m}if(o.deferDomScroll){o.deferDomScroll=false;+s.scrollLeft;s.scrollLeft=m}}o.positionDirty=true}},onDomScroll:function(){var b=this;if(b.deferDomScroll){return}b.callParent()}}});(Ext.cmd.derive("Ext.ElementLoader",Ext.Base,{statics:{Renderer:{Html:function(e,d,f){e.getTarget().setHtml(d.responseText,f.scripts===true,f.rendererScope);return true}}},url:null,params:null,baseParams:null,autoLoad:false,target:null,loadMask:false,ajaxOptions:null,scripts:false,isLoader:true,constructor:function(d){var f=this,e;f.mixins.observable.constructor.call(f,d);f.setTarget(f.target);if(f.autoLoad){e=f.autoLoad;if(e===true){e=null}f.load(e)}},setTarget:function(c){var d=this;c=Ext.get(c);if(d.target&&d.target!==c){d.abort()}d.target=c},getTarget:function(){return this.target||null},abort:function(){var b=this.active;if(b!==undefined){Ext.Ajax.abort(b.request);if(b.mask){this.removeMask()}delete this.active}},removeMask:function(){this.target.unmask()},addMask:function(b){this.target.mask(b===true?null:b)},load:function(n){n=Ext.apply({},n);var l=this,i=Ext.isDefined(n.loadMask)?n.loadMask:l.loadMask,k=Ext.apply({},n.params),h=Ext.apply({},n.ajaxOptions),j=n.callback||l.callback,m=n.scope||l.scope||l;Ext.applyIf(h,l.ajaxOptions);Ext.applyIf(n,h);Ext.applyIf(k,l.params);Ext.apply(k,l.baseParams);Ext.applyIf(n,{url:l.url});Ext.apply(n,{scope:l,params:k,callback:l.onComplete});if(l.fireEvent("beforeload",l,n)===false){return}if(i){l.addMask(i)}l.active={options:n,mask:i,scope:m,callback:j,success:n.success||l.success,failure:n.failure||l.failure,renderer:n.renderer||l.renderer,scripts:Ext.isDefined(n.scripts)?n.scripts:l.scripts};l.active.request=Ext.Ajax.request(n);l.setOptions(l.active,n)},setOptions:function(c,d){c.rendererScope=d.rendererScope||this.rendererScope||this},onComplete:function(h,k,i){var m=this,l=m.active,j,n;if(l){n=l.scope;j=l.rendererScope;if(k){k=m.getRenderer(l.renderer).call(j,m,i,l)!==false}if(k){Ext.callback(l.success,n,[m,i,h]);m.fireEvent("load",m,i,h)}else{Ext.callback(l.failure,n,[m,i,h]);m.fireEvent("exception",m,i,h)}Ext.callback(l.callback,n,[m,k,i,h]);if(l.mask){m.removeMask()}}delete m.active},getRenderer:function(b){if(Ext.isFunction(b)){return b}return this.statics().Renderer.Html},startAutoRefresh:function(e,d){var f=this;f.stopAutoRefresh();f.autoRefresh=Ext.interval(function(){f.load(d)},e)},stopAutoRefresh:function(){clearInterval(this.autoRefresh);delete this.autoRefresh},isAutoRefreshing:function(){return Ext.isDefined(this.autoRefresh)},destroy:function(){var b=this;b.stopAutoRefresh();delete b.target;b.abort();b.callParent()}},1,0,0,0,0,[[Ext.util.Observable.prototype.mixinId||Ext.util.Observable.$className,Ext.util.Observable]],[Ext,"ElementLoader"],0));(Ext.cmd.derive("Ext.ComponentLoader",Ext.ElementLoader,{statics:{Renderer:{Data:function(g,e,i){var h=true;try{g.getTarget().update(Ext.decode(e.responseText))}catch(j){h=false}return h},Component:function(i,n,k){var j=true,l=i.getTarget(),e=[];try{e=Ext.decode(n.responseText)}catch(m){j=false}if(j){l.suspendLayouts();if(k.removeAll){l.removeAll()}l.add(e);l.resumeLayouts(true)}return j}}},target:null,loadOnRender:false,loadMask:false,renderer:"html",setTarget:function(c){var d=this;if(Ext.isString(c)){c=Ext.getCmp(c)}if(d.target&&d.target!==c){d.abort()}d.target=c;if(c&&d.loadOnRender){if(c.rendered){d.doLoadOnRender()}else{d.mon(c,"render",d.doLoadOnRender,d)}}},doLoadOnRender:function(){var b=this.loadOnRender;this.load(Ext.isObject(b)?b:null)},removeMask:function(){this.target.setLoading(false)},addMask:function(b){this.target.setLoading(b)},setOptions:function(c,d){c.removeAll=Ext.isDefined(d.removeAll)?d.removeAll:this.removeAll;c.rendererScope=d.rendererScope||this.rendererScope||this.target},getRenderer:function(c){if(Ext.isFunction(c)){return c}var d=this.statics().Renderer;switch(c){case"component":return d.Component;case"data":return d.Data;default:return Ext.ElementLoader.Renderer.Html}}},0,0,0,0,0,0,[Ext,"ComponentLoader"],0));(Ext.cmd.derive("Ext.layout.SizeModel",Ext.Base,{constructor:function(j){var h=this,i=h.self,g=i.sizeModelsArray,f;Ext.apply(h,j);h[f=h.name]=true;h.fixed=!(h.auto=h.natural||h.shrinkWrap);g[h.ordinal=g.length]=i[f]=i.sizeModels[f]=h},statics:{sizeModelsArray:[],sizeModels:{}},calculated:false,configured:false,constrainedMax:false,constrainedMin:false,natural:false,shrinkWrap:false,calculatedFromConfigured:false,calculatedFromNatural:false,calculatedFromShrinkWrap:false,names:null},1,0,0,0,0,0,[Ext.layout,"SizeModel"],function(){var l=this,i=l.sizeModelsArray,n,h,j,k,m;new l({name:"calculated"});new l({name:"configured",names:{width:"width",height:"height"}});new l({name:"natural"});new l({name:"shrinkWrap"});new l({name:"calculatedFromConfigured",configured:true,calculatedFrom:true,names:{width:"width",height:"height"}});new l({name:"calculatedFromNatural",natural:true,calculatedFrom:true});new l({name:"calculatedFromShrinkWrap",shrinkWrap:true,calculatedFrom:true});new l({name:"constrainedMax",configured:true,constrained:true,names:{width:"maxWidth",height:"maxHeight"}});new l({name:"constrainedMin",configured:true,constrained:true,names:{width:"minWidth",height:"minHeight"}});new l({name:"constrainedDock",configured:true,constrained:true,constrainedByMin:true,names:{width:"dockConstrainedWidth",height:"dockConstrainedHeight"}});for(n=0,j=i.length;n<j;++n){m=i[n];m.pairsByHeightOrdinal=k=[];for(h=0;h<j;++h){k.push({width:m,height:i[h]})}}}));(Ext.cmd.derive("Ext.layout.Layout",Ext.Base,{factoryConfig:{type:"layout"},isLayout:true,initialized:false,running:false,needsItemSize:true,setsItemSize:true,autoSizePolicy:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},$configPrefixed:false,$configStrict:false,constructor:function(d){var c=this;c.id=Ext.id(null,c.type+"-");c.initConfig(d);delete c.type;c.layoutCount=0},beginLayout:Ext.emptyFn,beginLayoutCycle:function(h){var e=this,f=e.context,g;if(e.lastWidthModel!==h.widthModel){if(e.lastWidthModel){g=true}e.lastWidthModel=h.widthModel}if(e.lastHeightModel!==h.heightModel){if(e.lastWidthModel){g=true}e.lastHeightModel=h.heightModel}if(g){(f=h.context).clearTriggers(e,false);f.clearTriggers(e,true);e.triggerCount=0}},finishedLayout:function(b){this.lastWidthModel=b.widthModel;this.lastHeightModel=b.heightModel;this.ownerContext=null},redoLayout:Ext.emptyFn,undoLayout:Ext.emptyFn,getAnimatePolicy:function(){return this.animatePolicy},getItemSizePolicy:function(b){return this.autoSizePolicy},getScrollerEl:Ext.emptyFn,isItemBoxParent:function(b){return false},isItemLayoutRoot:function(g){var h=g.getSizeModel(),e=h.width,f=h.height;if(!g.componentLayout.lastComponentSize&&(e.calculated||f.calculated)){return false}return !e.shrinkWrap&&!f.shrinkWrap},isItemShrinkWrap:function(b){return b.shrinkWrap},isRunning:function(){return !!this.ownerContext},getItemsRenderTree:function(m,h){var j=m.length,l,k,n,i;if(j){i=[];for(l=0;l<j;++l){k=m[l];if(!k.rendered){if(h&&(h[k.id]!==undefined)){n=h[k.id]}else{this.configureItem(k);n=k.getRenderTree();if(h){h[k.id]=n}}if(n){i.push(n)}}}}return i},finishRender:Ext.emptyFn,finishRenderItems:function(h,g){var i=g.length,f,j;for(f=0;f<i;f++){j=g[f];if(j.rendering){j.finishRender(f)}}},renderChildren:function(){var d=this,e=d.getLayoutItems(),f=d.getRenderTarget();d.renderItems(e,f)},renderItems:function(h,i){var j=this,k=h.length,g=0,l;if(k){Ext.suspendLayouts();for(;g<k;g++){l=h[g];if(l&&!l.rendered){j.renderItem(l,i,g)}else{if(!j.isValidParent(l,i,g)){j.moveItem(l,i,g)}else{j.configureItem(l)}}}Ext.resumeLayouts(true)}},isValidParent:function(i,h,g){var j=(h&&h.dom)||h,f=this.getItemLayoutEl(i);if(f&&j){if(typeof g==="number"){g=this.getPositionOffset(g);return f===j.childNodes[g]}return f.parentNode===j}return false},getItemLayoutEl:function(h){var g=h.el?h.el.dom:Ext.getDom(h),f=g.parentNode,e;if(f){e=f.className;if(e&&e.indexOf("x-resizable-wrap")!==-1){g=g.parentNode}}return g},getPositionOffset:function(b){return b},configureItem:function(b){b.ownerLayout=this},renderItem:function(h,g,f){var e=this;if(!h.rendered){e.configureItem(h);h.render(g,f)}},moveItem:function(d,f,e){f=f.dom||f;if(typeof e==="number"){e=f.childNodes[e]}f.insertBefore(d.el.dom,e||null);d.container=Ext.get(f);this.configureItem(d)},onContentChange:function(){this.owner.updateLayout();return true},initLayout:function(){this.initialized=true},setOwner:function(b){this.owner=b},getLayoutItems:function(){return[]},onAdd:function(b){b.ownerLayout=this},onRemove:Ext.emptyFn,onDestroy:Ext.emptyFn,afterRemove:function(h){var i=this,j=h.el,f=i.owner,g;if(h.rendered){g=[].concat(i.itemCls||[]);if(f.itemCls){g=Ext.Array.push(g,f.itemCls)}if(g.length){j.removeCls(g)}}delete h.ownerLayout},afterCollapse:function(d,c){if(c){this.onContentChange(d)}},afterExpand:function(d,c){if(c){this.onContentChange(d)}},destroy:function(){var d=this,c;if(d.targetCls){c=d.getTarget();if(c){c.removeCls(d.targetCls)}}d.onDestroy();d.callParent()},sortWeightedItems:function(f,g){for(var e=0,h=f.length;e<h;++e){f[e].$i=e}Ext.Array.sort(f,function(b,c){var a=c.weight-b.weight;if(!a){a=b.$i-c.$i;if(b[g]){a=-a}}return a});for(e=0;e<h;++e){delete f[e].$i}}},1,0,0,0,0,[[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.layout,"Layout"],function(){var b=this;b.prototype.sizeModels=b.sizeModels=Ext.layout.SizeModel.sizeModels}));(Ext.cmd.derive("Ext.layout.container.Container",Ext.layout.Layout,{alternateClassName:"Ext.layout.ContainerLayout",type:"container",beginCollapse:Ext.emptyFn,beginExpand:Ext.emptyFn,animatePolicy:null,activeItemCount:0,renderTpl:["{%this.renderBody(out,values)%}"],usesContainerHeight:true,usesContainerWidth:true,usesHeight:true,usesWidth:true,constructor:function(){Ext.layout.Layout.prototype.constructor.apply(this,arguments);this.mixins.elementCt.constructor.call(this)},destroy:function(){Ext.layout.Layout.prototype.destroy.call(this);this.mixins.elementCt.destroy.call(this)},beginLayout:function(b){Ext.layout.Layout.prototype.beginLayout.apply(this,arguments);b.targetContext=b.paddingContext=b.getEl("getTarget",this);this.cacheChildItems(b)},beginLayoutCycle:function(f,e){var d=this;Ext.layout.Layout.prototype.beginLayoutCycle.apply(this,arguments);if(e){if(d.usesContainerHeight){++f.consumersContainerHeight}if(d.usesContainerWidth){++f.consumersContainerWidth}}},cacheChildItems:function(k){var l=this,n,j,i,m,h;if(l.needsItemSize||l.setsItemSize){n=k.context;j=k.childItems=[];i=k.visibleItems=l.getVisibleItems();m=i.length;for(h=0;h<m;++h){j.push(n.getCmp(i[h]))}}},cacheElements:function(){var b=this.owner;this.attachChildEls(b.el,b)},calculate:function(f){var d=f.props,e=f.el;if(f.widthModel.shrinkWrap&&isNaN(d.width)){f.setContentWidth(e.getWidth())}if(f.heightModel.shrinkWrap&&isNaN(d.height)){f.setContentHeight(e.getHeight())}},configureItem:function(k){var l=this,j=l.itemCls,g=l.owner.itemCls,h,i;k.ownerLayout=l;if(j){if(typeof j==="string"){i=[j]}else{i=j;h=!!i}}if(g){if(h){i=Ext.Array.clone(i)}i=Ext.Array.push(i||[],g)}if(i){k.addCls(i)}},doRenderBody:function(d,c){this.renderItems(d,c);this.renderContent(d,c)},doRenderContainer:function(f,h){var j=h.$comp.layout,g=j.getRenderTpl(),i=j.getRenderData();g.applyOut(i,f)},doRenderItems:function(e,g){var h=g.$layout,f=h.getRenderTree();if(f){Ext.DomHelper.generateMarkup(f,e)}},finishRender:function(){var d=this,f,e;Ext.layout.Layout.prototype.finishRender.call(this);d.cacheElements();f=d.getRenderTarget();e=d.getLayoutItems();d.finishRenderItems(f,e)},notifyOwner:function(){this.owner.afterLayout(this)},getContainerSize:function(u,q){var t=u.targetContext,r=t.getFrameInfo(),n=u.paddingContext.getPaddingInfo(),o=0,m=0,s,p,v,l;if(!u.widthModel.shrinkWrap){++m;v=q?t.getDomProp("width"):t.getProp("width");s=(typeof v==="number");if(s){++o;v-=r.width+n.width;if(v<0){v=0}}}if(!u.heightModel.shrinkWrap){++m;l=q?t.getDomProp("height"):t.getProp("height");p=(typeof l==="number");if(p){++o;l-=r.height+n.height;if(l<0){l=0}}}return{width:v,height:l,needed:m,got:o,gotAll:o===m,gotWidth:s,gotHeight:p}},getPositionOffset:function(d){if(!this.createsInnerCt){var c=this.owner.itemNodeOffset;if(c){d+=c}}return d},getLayoutItems:function(){var d=this.owner,c=d&&d.items;return(c&&c.items)||[]},getRenderData:function(){var b=this.owner;return{$comp:b,$layout:this,ownerId:b.id}},getRenderedItems:function(){var l=this,j=l.getRenderTarget(),i=l.getLayoutItems(),m=i.length,k=[],h,n;for(h=0;h<m;h++){n=i[h];if(n.rendered&&l.isValidParent(n,j,h)){k.push(n)}}return k},getRenderTarget:function(){return this.owner.getTargetEl()},getElementTarget:function(){return this.getRenderTarget()},getRenderTpl:function(){var d=this,c=Ext.XTemplate.getTpl(this,"renderTpl");if(!c.renderContent){d.owner.setupRenderTpl(c)}return c},getRenderTree:function(){var f,h=this.owner.items,g,e={};do{g=h.generation;f=this.getItemsRenderTree(this.getLayoutItems(),e)}while(h.generation!==g);return f},renderChildren:function(){var f=this,j=f.owner.items,h=f.getRenderTarget(),i,g;do{i=j.generation;g=f.getLayoutItems();f.renderItems(g,h)}while(j.generation!==i)},getScrollbarsNeeded:function(p,k,q,l){var r=Ext.getScrollbarSize(),n=typeof p==="number",j=typeof k==="number",m=0,o=0;if(!r.width){return 0}if(j&&k<l){o=2;p-=r.width}if(n&&p<q){m=1;if(!o&&j){k-=r.height;if(k<l){o=2}}}return o+m},getTarget:function(){return this.owner.getTargetEl()},getVisibleItems:function(){var i=this.getRenderTarget(),g=this.getLayoutItems(),j=g.length,h=[],l,k;for(l=0;l<j;l++){k=g[l];if(k.rendered&&this.isValidParent(k,i,l)&&k.hidden!==true&&!k.floated){h.push(k)}}return h},getMoveAfterIndex:function(b){return this.owner.items.indexOf(b)+1},moveItemBefore:function(k,j){var h=this.owner,g=h.items,l=g.indexOf(k),i;if(k===j){return k}if(j){i=g.indexOf(j);if(l>-1&&l<i){--i}}else{i=g.length}return h.insert(i,k)},setupRenderTpl:function(b){b.renderBody=this.doRenderBody;b.renderContainer=this.doRenderContainer;b.renderItems=this.doRenderItems},getContentTarget:function(){return this.owner.getDefaultContentTarget()},onAdd:function(b){if(!b.liquidLayout){++this.activeItemCount}Ext.layout.Layout.prototype.onAdd.call(this,b)},onRemove:function(c,d){if(!c.liquidLayout){--this.activeItemCount}Ext.layout.Layout.prototype.onRemove.call(this,c,d)}},1,0,0,0,["layout.container"],[[Ext.util.ElementContainer.prototype.mixinId||Ext.util.ElementContainer.$className,Ext.util.ElementContainer]],[Ext.layout.container,"Container",Ext.layout,"ContainerLayout"],0));(Ext.cmd.derive("Ext.layout.container.Auto",Ext.layout.container.Container,{type:"autocontainer",childEls:["outerCt","innerCt"],reserveScrollbar:false,managePadding:true,manageOverflow:false,needsItemSize:false,setsItemSize:false,lastOverflowAdjust:{width:0,height:0},outerCtCls:"x-autocontainer-outerCt",innerCtCls:"x-autocontainer-innerCt",renderTpl:['<div id="{ownerId}-outerCt" data-ref="outerCt" class="{outerCtCls}" role="presentation">','<div id="{ownerId}-innerCt" data-ref="innerCt" style="{%this.renderPadding(out, values)%}" ','<tpl if="!$comp.html">role="presentation"</tpl>','class="{innerCtCls}">',"{%this.renderBody(out,values)%}","</div>","</div>"],beginLayout:function(b){Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);this.initContextItems(b)},beforeLayoutCycle:function(g){var e=this.owner,h=e.inheritedState,f=e.inheritedStateInner;if(!h||h.invalid){h=e.getInherited();f=e.inheritedStateInner}if(g.widthModel.shrinkWrap){f.inShrinkWrapTable=true}else{delete f.inShrinkWrapTable}},beginLayoutCycle:function(u){var p=this,w=p.outerCt,r=p.lastOuterCtWidth||"",s=p.lastOuterCtHeight||"",o=p.lastOuterCtTableLayout||"",x=u.state,n,t,m,v,q;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);t=m=v="";if(!u.widthModel.shrinkWrap){t="100%";q=p.owner.inheritedStateInner;n=p.getOverflowXStyle(u);v=(q.inShrinkWrapTable||n==="auto"||n==="scroll")?"":"fixed"}if(!u.heightModel.shrinkWrap&&!Ext.supports.PercentageHeightOverflowBug){m="100%"}if((t!==r)||p.hasOuterCtPxWidth){w.setStyle("width",t);p.lastOuterCtWidth=t;p.hasOuterCtPxWidth=false}if(v!==o){w.setStyle("table-layout",v);p.lastOuterCtTableLayout=v}if((m!==s)||p.hasOuterCtPxHeight){w.setStyle("height",m);p.lastOuterCtHeight=m;p.hasOuterCtPxHeight=false}if(p.hasInnerCtPxHeight){p.innerCt.setStyle("height","");p.hasInnerCtPxHeight=false}x.overflowAdjust=x.overflowAdjust||p.lastOverflowAdjust},calculate:function(j){var g=this,f=j.state,h=g.getContainerSize(j,true),i=f.calculatedItems||(f.calculatedItems=g.calculateItems?g.calculateItems(j,h):true);g.setCtSizeIfNeeded(j,h);if(i&&j.hasDomProp("containerChildrenSizeDone")){g.calculateContentSize(j);if(h.gotAll){if(g.manageOverflow&&!j.state.secondPass&&!g.reserveScrollbar){g.calculateOverflow(j,h)}return}}g.done=false},calculateContentSize:function(k){var l=this,i=((k.widthModel.shrinkWrap?1:0)|(k.heightModel.shrinkWrap?2:0)),n=(i&1)||undefined,j=(i&2)||undefined,m=0,h=k.props;if(n){if(isNaN(h.contentWidth)){++m}else{n=undefined}}if(j){if(isNaN(h.contentHeight)){++m}else{j=undefined}}if(m){if(n&&!k.setContentWidth(l.measureContentWidth(k))){l.done=false}if(j&&!k.setContentHeight(l.measureContentHeight(k))){l.done=false}}},calculateOverflow:function(p){var l=this,q,j,r,m,n,o,k;n=(l.getOverflowXStyle(p)==="auto");o=(l.getOverflowYStyle(p)==="auto");if(n||o){r=Ext.getScrollbarSize();k=p.overflowContext.el.dom;m=0;if(k.scrollWidth>k.clientWidth){m|=1}if(k.scrollHeight>k.clientHeight){m|=2}q=(o&&(m&2))?r.width:0;j=(n&&(m&1))?r.height:0;if(q!==l.lastOverflowAdjust.width||j!==l.lastOverflowAdjust.height){l.done=false;p.invalidate({state:{overflowAdjust:{width:q,height:j},overflowState:m,secondPass:true}})}}},completeLayout:function(b){this.lastOverflowAdjust=b.state.overflowAdjust},doRenderBody:function(l,j){var k=j.$layout,h=Ext.XTemplate,i=k.beforeBodyTpl,g=k.afterBodyTpl;if(i){h.getTpl(k,"beforeBodyTpl").applyOut(j,l)}this.renderItems(l,j);this.renderContent(l,j);if(g){h.getTpl(k,"afterBodyTpl").applyOut(j,l)}},doRenderPadding:function(f,i){var j=i.$layout,g=i.$layout.owner,h=g[g.contentPaddingProperty];if(j.managePadding&&h){f.push("padding:",g.unitizeBox(h))}},finishedLayout:function(c){var d=this.innerCt;Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments);if(Ext.isIE8){d.repaint()}if(Ext.isOpera){d.setStyle("position","relative");d.dom.scrollWidth;d.setStyle("position","")}},getContainerSize:function(e,h){var f=Ext.layout.container.Container.prototype.getContainerSize.apply(this,arguments),g=e.state.overflowAdjust;if(g){f.width-=g.width;f.height-=g.height}return f},getRenderData:function(){var d=this,c=Ext.layout.container.Container.prototype.getRenderData.call(this);c.innerCtCls=d.innerCtCls;c.outerCtCls=d.outerCtCls;return c},getRenderTarget:function(){return this.innerCt},getElementTarget:function(){return this.innerCt},getOverflowXStyle:function(b){return b.overflowXStyle||(b.overflowXStyle=this.owner.scrollFlags.overflowX||b.overflowContext.getStyle("overflow-x"))},getOverflowYStyle:function(b){return b.overflowYStyle||(b.overflowYStyle=this.owner.scrollFlags.overflowY||b.overflowContext.getStyle("overflow-y"))},initContextItems:function(e){var f=this,g=e.target,h=f.owner.getOverflowEl();e.outerCtContext=e.getEl("outerCt",f);e.innerCtContext=e.getEl("innerCt",f);e.overflowContext=(h===e.el)?e:e.getEl(h);if(g[g.contentPaddingProperty]!==undefined){e.paddingContext=e.innerCtContext}},initLayout:function(){var f=this,d=Ext.getScrollbarSize().width,e=f.owner;Ext.layout.container.Container.prototype.initLayout.call(this);if(d&&f.manageOverflow&&!f.hasOwnProperty("lastOverflowAdjust")){if(e.scrollable||f.reserveScrollbar){f.lastOverflowAdjust={width:d,height:0}}}},measureContentHeight:function(d){var e=this.outerCt.getHeight(),f=d.target;if(this.managePadding&&(f[f.contentPaddingProperty]===undefined)){e+=d.targetContext.getPaddingInfo().height}return e},measureContentWidth:function(k){var i,l,g,h,j;if(this.chromeCellMeasureBug){i=this.innerCt.dom;l=i.style;g=l.display;if(g==="table-cell"){l.display="";i.offsetWidth;l.display=g}}if(Ext.isSafari){i=this.outerCt.dom;l=i.style;l.display="table-cell";i.offsetWidth;i.style.display=""}h=this.outerCt.getWidth();j=k.target;if(this.managePadding&&(j[j.contentPaddingProperty]===undefined)){h+=k.targetContext.getPaddingInfo().width}return h},setCtSizeIfNeeded:function(s,u){var r=this,l=u.height,p=s.paddingContext.getPaddingInfo(),n=r.getTarget(),m=r.getOverflowXStyle(s),t=(m==="auto"||m==="scroll"),v=Ext.getScrollbarSize(),q,o;if(l&&!s.heightModel.shrinkWrap){if(Ext.supports.PercentageHeightOverflowBug){q=true}if(Ext.isIE8){o=true}if((q||o)&&t&&(n.dom.scrollWidth>n.dom.clientWidth)){l=Math.max(l-v.height,0)}if(q){s.outerCtContext.setProp("height",l+p.height);r.hasOuterCtPxHeight=true}if(o){s.innerCtContext.setProp("height",l);r.hasInnerCtPxHeight=true}}},setupRenderTpl:function(b){Ext.layout.container.Container.prototype.setupRenderTpl.apply(this,arguments);b.renderPadding=this.doRenderPadding},getContentTarget:function(){return this.innerCt},getScrollerEl:function(){return this.outerCt}},0,0,0,0,["layout.auto","layout.autocontainer"],0,[Ext.layout.container,"Auto"],function(){this.prototype.chromeCellMeasureBug=Ext.isChrome&&Ext.chromeVersion>=26}));(Ext.cmd.derive("Ext.ZIndexManager",Ext.Base,{alternateClassName:"Ext.WindowGroup",statics:{zBase:9000,activeCounter:0},constructor:function(d){var c=this;c.id=Ext.id(null,"zindex-mgr-");c.zIndexStack=new Ext.util.Collection({sorters:{sorterFn:function(a,b){var f=(a.alwaysOnTop||0)-(b.alwaysOnTop||0);if(!f){f=a.getActiveCounter()-b.getActiveCounter()}return f}},filters:{filterFn:function(a){return a.isVisible()}}});c.zIndexStack.addObserver(c);c.front=null;c.globalListeners=Ext.GlobalEvents.on({beforehide:c.onComponentShowHide,show:c.onComponentShowHide,scope:c,destroyable:true});if(d){if(d.isContainer){d.on("resize",c.onContainerResize,c);c.zseed=Ext.Number.from(c.rendered?d.getEl().getStyle("zIndex"):undefined,c.getNextZSeed());c.targetEl=d.getTargetEl();c.container=d}else{Ext.on("resize",c.onContainerResize,c);c.zseed=c.getNextZSeed();c.targetEl=Ext.get(d)}}else{c.zseed=c.getNextZSeed();Ext.onInternalReady(function(){Ext.on("resize",c.onContainerResize,c);c.targetEl=Ext.getBody()})}},getId:function(){return this.id},getNextZSeed:function(){return(Ext.ZIndexManager.zBase+=10000)},setBase:function(b){this.zseed=b;return this.onCollectionSort()},onCollectionSort:function(){var o=this,s=o.front,p=s&&s.containsFocus,n=o.zseed,i=o.zIndexStack.getRange(),q=i.length,t,r,u,v,a=false;for(t=0;t<q;t++){r=i[t];n=r.setZIndex(n);if(!r.hidden){v=r;if(r.modal){u=r}}}if(v!==s){if(s&&!s.destroying){s.setActive(false)}if(v){a=v.isFocusable(true)&&(v.modal||(v.focusOnToFront&&!v.preventFocusOnActivate));v.setActive(true,a)}}o.front=v;if(u){o.showModalMask(u)}else{o.hideModalMask()}return n},onComponentUpdate:function(b){if(this.zIndexStack.contains(b)){this.zIndexStack.sort()}},onComponentRender:function(b){this.zIndexStack.itemChanged(b,"hidden")},onComponentShowHide:function(d){var c=this.zIndexStack;if(d.isFloating()&&!this.hidingAll&&(c.getSource()||c).contains(d)){c.itemChanged(d,"hidden");c.sort()}},register:function(d){var c=this;if(d.zIndexManager){d.zIndexManager.unregister(d)}d.zIndexManager=c;if(!d.rendered){d.on("render",c.onComponentRender,c,{single:true})}c.zIndexStack.add(d)},unregister:function(d){var c=this;delete d.zIndexManager;d.un("render",c.onComponentRender,c);c.zIndexStack.remove(d);c.onCollectionSort()},get:function(b){return b.isComponent?b:this.zIndexStack.get(b)},bringToFront:function(h,l){var n=this,j=n.zIndexStack,i=j.last(),m,k;h=n.get(h);if(!h||j.find("alwaysOnTop",true)){return false}k=h.preventFocusOnActivate;h.preventFocusOnActivate=l;h.setActiveCounter(++Ext.ZIndexManager.activeCounter);h.preventFocusOnActivate=k;m=j.last();return(m===h&&m!==i)},sendToBack:function(b){b=this.get(b);if(b){b.setActiveCounter(0)}return b||null},hideAll:function(){var f=this.zIndexStack.getRange(),e=f.length,d;this.hidingAll=true;for(d=0;d<e;d++){f[d].hide()}this.hidingAll=false},hide:function(){var i=this,j=Ext.Element.getActiveElement(),k=i.tempHidden=i.zIndexStack.getRange(),h=k.length,l,g;i.focusRestoreElement=null;for(l=0;l<h;l++){g=k[l];if(g.el.contains(j)){i.focusRestoreElement=j}g.el.hide();g.hidden=true}},show:function(){var i=this,j,h=i.tempHidden,g=h?h.length:0,f;for(j=0;j<g;j++){f=h[j];f.el.show();f.hidden=false;f.setPosition(f.x,f.y)}i.tempHidden=null;if(i.focusRestoreElement){i.focusRestoreElement.focus()}},getActive:function(){return this.zIndexStack.last()},getBy:function(c,d){return this.zIndexStack.filterBy(c,d).getRange()},each:function(c,d){this.zIndexStack.each(c,d)},eachBottomUp:function(i,j){var g=this.zIndexStack.getRange(),k,h=g.length,l;for(k=0;k<h;k++){l=g[k];if(l.isComponent&&i.call(j||l,l)===false){return}}},eachTopDown:function(h,i){var g=this.zIndexStack.getRange(),j,f;for(j=g.length;j-->0;){f=g[j];if(f.isComponent&&h.call(i||f,f)===false){return}}},destroy:function(){var g=this,e=g.zIndexStack.getRange(),f=e.length,h;for(h=0;h<f;h++){Ext.destroy(e[h])}if(g.container){g.container.un("resize",g.onContainerResize,g)}else{if(g.targetEl){Ext.un("resize",g.onContainerResize,g)}}Ext.destroy(g.mask,g.maskShim,g.zIndexStack,g.globalListeners);g.zIndexStack=g.container=g.targetEl=g.globalListeners=null;g.callParent()},privates:{getMaskBox:function(){var b=this.mask.maskTarget;if(b.dom===document.body){return{height:Math.max(document.body.scrollHeight,Ext.dom.Element.getDocumentHeight()),width:Math.max(document.body.scrollWidth,document.documentElement.clientWidth),x:0,y:0}}else{return b.getBox()}},onContainerResize:function(){var h=this,e=h.mask,f=h.maskShim,g;if(e&&e.isVisible()){e.hide();if(f){f.hide()}g=h.getMaskBox();if(f){f.setSize(g);f.show()}e.setSize(g);e.show()}},onMaskClick:function(){if(this.front){this.front.focus()}},showModalMask:function(i){var o=this,k=i.el,l=k.getStyle("zIndex")-4,p=i.floatParent?i.floatParent.getTargetEl():i.container,j=o.mask,m=o.maskShim,n;if(!j){o.mask=j=Ext.getBody().createChild({role:"presentation",cls:"x-mask x-border-box",style:"height:0;width:0"});j.setVisibilityMode(Ext.Element.DISPLAY);j.on("click",o.onMaskClick,o)}else{o.hideModalMask()}j.maskTarget=p;n=o.getMaskBox();if(m){m.setStyle("zIndex",l);m.show();m.setBox(n)}j.setStyle("zIndex",l);p.saveTabbableState({excludeRoot:k});j.show();j.setBox(n)},hideModalMask:function(){var c=this.mask,d=this.maskShim;if(c&&c.isVisible()){c.maskTarget.restoreTabbableState();c.maskTarget=undefined;c.hide();if(d){d.hide()}}}}},1,0,0,0,0,0,[Ext,"ZIndexManager",Ext,"WindowGroup"],function(){Ext.WindowManager=Ext.WindowMgr=new this()}));(Ext.cmd.derive("Ext.container.Container",Ext.Component,{alternateClassName:["Ext.Container","Ext.AbstractContainer"],renderTpl:"{%this.renderContainer(out,values)%}",autoDestroy:true,defaultType:"panel",detachOnRemove:true,items:undefined,layout:"auto",suspendLayout:false,_applyDefaultsOptions:{defaults:true,strict:false},ariaRole:"presentation",baseCls:"x-container",layoutCounter:0,add:function(){var q=this,t=Ext.Array.slice(arguments),v=(typeof t[0]==="number")?t.shift():-1,x=q.getLayout(),w=false,o,s,y,z,i,p,u,r;if(t.length===1&&Ext.isArray(t[0])){s=t[0];o=true}else{s=t}if(q.rendered){Ext.suspendLayouts()}u=s=q.prepareItems(s,true);z=s.length;if(!o&&z===1){u=s[0]}for(y=0;y<z;y++){i=s[y];p=(v<0)?q.items.length:(v+y);r=!!i.instancedCmp;delete i.instancedCmp;if(i.floating){(q.floatingItems||(q.floatingItems=new Ext.util.ItemCollection())).add(i);i.onAdded(q,p,r);delete i.$initParent;if(q.hasListeners.add){q.fireEvent("add",q,i,p)}}else{if((!q.hasListeners.beforeadd||q.fireEvent("beforeadd",q,i,p)!==false)&&q.onBeforeAdd(i)!==false){q.items.insert(p,i);i.onAdded(q,p,r);delete i.$initParent;q.onAdd(i,p);x.onAdd(i,p);w=true;if(q.hasListeners.add){q.fireEvent("add",q,i,p)}}}}if(w){q.updateLayout()}if(q.rendered){Ext.resumeLayouts(true)}return u},onAdded:function(d,f,e){Ext.Component.prototype.onAdded.call(this,d,f,e);this.containerOnAdded(d,e)},onRemoved:function(b){this.containerOnRemoved(b);Ext.Component.prototype.onRemoved.apply(this,arguments)},afterComponentLayout:function(){var e=this.floatingItems,f,g,h;Ext.Component.prototype.afterComponentLayout.apply(this,arguments);if(e){e=e.items;f=e.length;for(g=0;g<f;g++){h=e[g];if(!h.rendered&&h.autoShow){h.show()}}}},afterLayout:function(f){var d=this,e=d.getScrollable();++d.layoutCounter;if(e&&d.layoutCounter>1){e.refresh()}if(d.hasListeners.afterlayout){d.fireEvent("afterlayout",d,f)}},beforeDestroy:function(){var c=this,f=c.items,h=c.floatingItems,g;if(f){while((g=f.first())){c.doRemove(g,true)}}if(h){while((g=h.first())){c.doRemove(g,true)}}Ext.destroy(c.layout);Ext.Component.prototype.beforeDestroy.call(this)},destroy:function(){var b=this;Ext.Component.prototype.destroy.call(this);if(b.items){b.items.destroy()}if(b.floatingItems){b.floatingItems.destroy()}b.refs=b.items=b.floatingItems=b.layout=null},beforeRender:function(){var d=this,e=d.getLayout(),f;d.preventChildDisable=true;Ext.Component.prototype.beforeRender.call(this);d.preventChildDisable=false;if(!e.initialized){e.initLayout()}f=e.targetCls;if(f){d.applyTargetCls(f)}},cascade:function(i,c,t){var m=this,q=m.items?m.items.items:[],p=q.length,r=0,n,o=t?t.concat(m):[m],s=o.length-1;if(i.apply(c||m,o)!==false){for(;r<p;r++){n=q[r];if(n.cascade){n.cascade(i,c,t)}else{o[s]=n;i.apply(c||n,o)}}}return this},contains:function(f,d){var e=false;if(d){this.cascade(function(a){if(a.contains&&a.contains(f)){e=true;return false}});return e}else{return this.items.contains(f)||(this.floatingItems&&this.floatingItems.contains(f))}},disable:function(h,j){var l=this,m=l.disabled,k,i,n;Ext.Component.prototype.disable.call(this,h,j);if(!j&&!l.preventChildDisable&&!m){k=l.getChildItemsToDisable();i=k.length;for(n=0;n<i;n++){k[n].disable(h,true)}}return l},enable:function(h,j){var l=this,m=l.disabled,k,i,n;Ext.Component.prototype.enable.call(this,h,j);if(m){k=l.getChildItemsToDisable();i=k.length;for(n=0;n<i;n++){k[n].enable(h,true)}}return l},getChildByElement:function(l,i){var j,n,h=0,m=this.getRefItems(),k=m.length;l=Ext.getDom(l);for(;h<k;h++){j=m[h];n=j.getEl();if(n&&((n.dom===l)||n.contains(l))){return(i&&j.getChildByElement)?j.getChildByElement(l,i):j}}return null},getComponent:function(c){if(Ext.isObject(c)){c=c.getItemId()}var f=this.items.get(c),e=this.floatingItems;if(!f&&e&&typeof c!=="number"){f=e.get(c)}return f},getFocusEl:function(){var b=this.getDefaultFocus();if(b){return b}else{if(this.focusable){return this.getTargetEl()}}return undefined},getLayout:function(){var c=this,d=c.layout;if(!d||!d.isLayout){c.setLayout(d)}return c.layout},getRefItems:function(n){var j=this,m=j.items.items,h=m.length,l=0,k,i=[];for(;l<h;l++){k=m[l];i[i.length]=k;if(n&&k.getRefItems){i.push.apply(i,k.getRefItems(true))}}if(j.floatingItems){m=j.floatingItems.items;h=m.length;for(l=0;l<h;l++){k=m[l];i[i.length]=k;if(n&&k.getRefItems){i.push.apply(i,k.getRefItems(true))}}}return i},getDefaultFocus:function(){var c=this.defaultFocus,d;if(c){d=this.down(c)}return d},initComponent:function(){var b=this;Ext.Component.prototype.initComponent.call(this);b.getLayout();b.constructing=true;b.initItems();if(b.disabled){b.disabled=false;b.disable(true)}delete b.constructing},initItems:function(){var c=this,d=c.items;if(!d||!d.isMixedCollection){c.items=new Ext.util.ItemCollection();if(d){if(!Ext.isArray(d)){d=[d]}c.add(d)}}},initInheritedState:function(k,p){var l=this,o=l.controller,n=l.layout,m=l.session,j=l.viewModel,q=l.reference,r=l.referenceHolder;Ext.Component.prototype.initInheritedState.call(this,k,p);if(l.collapsed){k.collapsed=true}l.initContainerInheritedState(k,p);if(n&&n.initInheritedState){n.initInheritedState(k,p)}},insert:function(f,d){var e;if(d&&d.isComponent){e=this.items.indexOf(d);if(e!==-1){return this.move(e,f)}}return this.add(f,d)},lookupComponent:function(b){if(!b.isComponent){if(typeof b==="string"){b=Ext.ComponentManager.get(b)}else{b=Ext.ComponentManager.create(b,this.defaultType)}}return b},move:function(f,h){var i=this,g=i.items,j;if(f.isComponent){f=g.indexOf(f)}j=g.getAt(f);if(f!==h){j=g.removeAt(f);if(j===false){return false}h=Math.min(h,g.getCount());g.insert(h,j);i.onMove(j,f,h);if(i.hasListeners.childmove){i.fireEvent("childmove",i,j,f,h)}i.updateLayout()}return j},moveBefore:function(d,c){if(d!==c){d=this.layout.moveItemBefore(d,c)}return d},moveAfter:function(h,g){var e=this.layout,f;if(h!==g){f=g?e.getMoveAfterIndex(g):0;h=e.moveItemBefore(h,this.items.getAt(f))}return h},nextChild:function(k,p){var m=this,o=m.items,l=o.indexOf(k),n=0,i=o.length,j;if(l!==-1){if(p){for(;n<i;n++){j=o.getAt(l+n);if(!j||Ext.ComponentQuery.is(j,p)){break}}}else{j=o.getAt(l+1)}}return j||null},onAdd:Ext.emptyFn,onBeforeAdd:function(c){var d=c.ownerCt;if(d&&d!==this){d.remove(c,false)}},onMove:Ext.emptyFn,onRemove:Ext.emptyFn,onPosition:function(){Ext.Component.prototype.onPosition.apply(this,arguments);this.repositionFloatingItems()},onResize:function(){Ext.Component.prototype.onResize.apply(this,arguments);this.repositionFloatingItems()},prevChild:function(k,p){var m=this,o=m.items,l=o.indexOf(k),n=0,i=o.length,j;if(l!==-1){if(p){for(;n<i;n++){j=o.getAt(l-n);if(!j||Ext.ComponentQuery.is(j,p)){break}}}else{j=o.getAt(l-1)}}return j||null},remove:function(c,f){var h=this,g;if(h.destroyed||h.destroying){return}g=h.getComponent(c);if(g&&(!h.hasListeners.beforeremove||h.fireEvent("beforeremove",h,g)!==false)){h.doRemove(g,f);if(h.hasListeners.remove){h.fireEvent("remove",h,g)}if(!h.destroying&&!g.floating){h.updateLayout()}}return g},removeAll:function(o){var k=this,m,i=k.floatingItems,p=[],n=0,j,l;if(i){m=k.items.items.concat(i.items)}else{m=k.items.items.slice()}j=m.length;Ext.suspendLayouts();k.removingAll=true;for(;n<j;n++){l=m[n];k.remove(l,o);if(l.ownerCt!==k){p.push(l)}}k.removingAll=false;Ext.resumeLayouts(!!j);return p},setLayout:function(j){var k=this,g=k.layout,i=g&&g.isLayout,h,l;if(typeof j==="string"){j={type:j}}l=j.type;if(i&&(!l||(l===g.type))){delete j.type;g.setConfig(j)}else{if(i){g.setOwner(null)}h=k.self.prototype.layout;if(typeof h==="string"){j.type=l||h}else{Ext.merge(Ext.merge({},h),j)}j=this.layout=Ext.Factory.layout(j);j.setOwner(this)}if(k.rendered){k.updateLayout()}},setActiveItem:function(b){return this.getLayout().setActiveItem(b)},privates:{applyDefaults:function(e){var d=this,f=d.defaults;if(f){if(Ext.isFunction(f)){f=f.call(d,e)}if(Ext.isString(e)){e=Ext.ComponentManager.get(e)}if(e.isComponent){e.setConfig(f,null,d._applyDefaultsOptions)}else{e=d.getConfigurator().merge(d,Ext.Object.fork(f),e)}}return e},applyReference:function(b){return this.setupReference(b)},applyTargetCls:function(b){this.layoutTargetCls=b},detachComponent:function(b){Ext.getDetachedBody().appendChild(b.getEl())},doRemove:function(n,h){h=h===true||(h!==false&&this.autoDestroy);var k=this,l=k.layout,i=l&&k.rendered,m=n.destroying||h,j=n.floating;if(j){k.floatingItems.remove(n)}else{k.items.remove(n)}if(i&&!j){if(l.running){Ext.Component.cancelLayout(n,m)}l.onRemove(n,m)}n.onRemoved(m);k.onRemove(n,m);if(h){n.destroy()}else{if(i&&!j){l.afterRemove(n)}if(k.detachOnRemove&&n.rendered){k.detachComponent(n)}}},finishRenderChildren:function(){Ext.Component.prototype.finishRenderChildren.call(this);var b=this.getLayout();if(b){b.finishRender()}},getChildItemsToDisable:function(){return this.query("[isFormField],[isFocusableContainer],button")},getContentTarget:function(){return this.getLayout().getContentTarget()},getDefaultContentTarget:function(){return this.el},getScrollerEl:function(){return this.layout.getScrollerEl()||Ext.Component.prototype.getScrollerEl.call(this)},prepareItems:function(g,k){if(Ext.isArray(g)){g=g.slice()}else{g=[g]}var i=this,l=0,h=g.length,j;for(;l<h;l++){j=g[l];if(j==null){Ext.Array.erase(g,l,1);--l;--h}else{if(k){j=this.applyDefaults(j)}j.$initParent=i;if(j.isComponent){j.instancedCmp=true}g[l]=i.lookupComponent(j);delete j.$initParent}}return g},repositionFloatingItems:function(){var e=this.floatingItems,f,g,h;if(e){e=e.items;f=e.length;for(g=0;g<f;g++){h=e[g];if(h.el&&!h.hidden){h.setPosition(h.x,h.y)}}}},_noMargin:{"margin-top":"","margin-right":"","margin-bottom":"","margin-left":""},resetItemMargins:function(){var f=this.items.items,h=f.length,e=this._noMargin,g;while(h--){g=f[h];g.margin$=null;g.el.setStyle(e)}},setupRenderTpl:function(b){Ext.Component.prototype.setupRenderTpl.apply(this,arguments);this.getLayout().setupRenderTpl(b)}}},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.Img",Ext.Component,{autoEl:"img",baseCls:"x-img",config:{src:null},alt:"",title:"",imgCls:"",maskOnDisable:false,initComponent:function(){if(this.glyph){this.autoEl="div"}Ext.Component.prototype.initComponent.call(this)},applySrc:function(b){return b&&Ext.resolveResource(b)},getElConfig:function(){var l=this,j=l.autoEl,h=Ext.Component.prototype.getElConfig.call(this),k=Ext._glyphFontFamily,m=l.glyph,i,n;if(j==="img"||(Ext.isObject(j)&&j.tag==="img")){i=h}else{if(l.glyph){if(typeof m==="string"){n=m.split("@");m=n[0];k=n[1]||k}h.html="&#"+m+";";if(k){h.style=h.style||{};h.style.fontFamily=k}h.role="img"}else{h.cn=[i={tag:"img",id:l.id+"-img"}]}}if(i){if(l.imgCls){i.cls=(i.cls?i.cls+" ":"")+l.imgCls}i.src=l.src||Ext.BLANK_IMAGE_URL}if(l.alt){(i||h).alt=l.alt}else{(i||h).alt=""}if(l.title){(i||h).title=l.title}return h},onRender:function(){var d=this,f=d.autoEl,e;Ext.Component.prototype.onRender.apply(this,arguments);e=d.el;if(f==="img"||(Ext.isObject(f)&&f.tag==="img")){d.imgEl=e}else{d.imgEl=e.getById(d.id+"-img")}},onDestroy:function(){var d=this,c=d.imgEl;if(c&&d.el!==c){c.destroy()}this.imgEl=null;Ext.Component.prototype.onDestroy.call(this)},getTitle:function(){return this.title},setTitle:function(f){var e=this,d=e.imgEl;e.title=f||"";if(d){d.dom.title=f||""}},getAlt:function(){return this.alt},setAlt:function(f){var e=this,d=e.imgEl;e.alt=f||"";if(d){d.dom.alt=f||""}},updateSrc:function(c){var d=this.imgEl;if(d){d.dom.src=c||Ext.BLANK_IMAGE_URL}},setGlyph:function(j){var k=this,i=Ext._glyphFontFamily,h=k.glyph,g=k.el,l;k.glyph=j;if(k.rendered&&j!==h){if(typeof j==="string"){l=j.split("@");j=l[0];i=l[1]||i}g.dom.innerHTML="&#"+j+";";if(i){g.setStyle("font-family",i)}}}},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",bindStore:function(f,j,g){g=g||"store";var i=this,h=j?null:i[g];if(f!==h){if(h){i.onUnbindStore(h,j,g);if(i.isComponent&&g==="store"&&h.autoDestroy){h.destroy()}else{i.unbindStoreListeners(h)}}if(f){i[g]=f=Ext.data.StoreManager.lookup(f);i.bindStoreListeners(f);i.onBindStore(f,h)}else{i[g]=null}}return i},getStore:function(){return this.store},setStore:function(b){this.bindStore(b)},unbindStoreListeners:function(d){var c=this.storeListeners;if(c){d.un(c)}},bindStoreListeners:function(d){var c=this.getStoreListeners(d);if(c){c=Ext.apply({},c);if(!c.scope){c.scope=this}this.storeListeners=c;d.on(c)}},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:"status",focusable:true,tabIndex:0,autoEl:{tag:"div",role:"status"},childEls:["msgWrapEl","msgEl","msgTextEl"],renderTpl:['<div id="{id}-msgWrapEl" data-ref="msgWrapEl" class="{[values.$comp.msgWrapCls]}">','<div id="{id}-msgEl" data-ref="msgEl" class="{[values.$comp.msgCls]} ',"x-",'mask-msg-inner {childElCls}">','<div id="{id}-msgTextEl" data-ref="msgTextEl" class="',"x-","mask-msg-text",'{childElCls}">{msg}</div>',"</div>","</div>"],maskOnDisable:false,skipLayout:true,constructor:function(d){var f=this,e;if(arguments.length===2){e=f.target=d;d=arguments[1]}else{e=d.target}Ext.Component.prototype.constructor.call(this,d);if(e.isComponent){f.ownerCt=e;f.hidden=true;f.renderTo=f.getMaskTarget();f.external=f.renderTo===Ext.getBody();f.bindComponent(e)}else{e=Ext.get(e);f.isElement=true;f.renderTo=f.target}f.render(f.renderTo);if(f.store){f.bindStore(f.store,true)}},initRenderData:function(){var b=Ext.Component.prototype.initRenderData.apply(this,arguments);b.msg=this.msg||"";return b},onRender:function(){Ext.Component.prototype.onRender.apply(this,arguments);this.maskEl=this.el},bindComponent:function(e){var f=this,d={scope:this,resize:f.sizeMask};if(f.external){d.added=f.onComponentAdded;d.removed=f.onComponentRemoved;if(e.floating){d.move=f.sizeMask;f.activeOwner=e}else{if(e.ownerCt){f.onComponentAdded(e.ownerCt)}}}f.mon(e,d);if(f.external){f.mon(Ext.GlobalEvents,{show:f.onContainerShow,hide:f.onContainerHide,expand:f.onContainerExpand,collapse:f.onContainerCollapse,scope:f})}},onComponentAdded:function(d){var c=this;delete c.activeOwner;c.floatParent=d;if(!d.floating){d=d.up("[floating]")}if(d){c.activeOwner=d;c.mon(d,"move",c.sizeMask,c);c.mon(d,"tofront",c.onOwnerToFront,c)}else{c.preventBringToFront=true}d=c.floatParent.ownerCt;if(c.rendered&&c.isVisible()&&d){c.floatOwner=d;c.mon(d,"afterlayout",c.sizeMask,c,{single:true})}},onComponentRemoved:function(f){var h=this,g=h.activeOwner,e=h.floatOwner;if(g){h.mun(g,"move",h.sizeMask,h);h.mun(g,"tofront",h.onOwnerToFront,h)}if(e){h.mun(e,"afterlayout",h.sizeMask,h)}delete h.activeOwner;delete h.floatOwner},afterRender:function(){var b=this;Ext.Component.prototype.afterRender.apply(this,arguments);if(Ext.isIE){b.el.on("mousedown",b.onMouseDown,b)}this.el.skipGarbageCollection=true},onMouseDown:function(c){var d=this.el;if(c.within(d)){c.preventDefault();d.focus()}},onOwnerToFront:function(d,c){this.el.setStyle("zIndex",c+1)},onContainerShow:function(b){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerHide:function(b){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onContainerExpand:function(b){if(!this.isHierarchicallyHidden()){this.onComponentShow()}},onContainerCollapse:function(b){if(this.isHierarchicallyHidden()){this.onComponentHide()}},onComponentHide:function(){var b=this;if(b.rendered&&b.isVisible()){b.hide();b.showNext=true}},onComponentShow:function(){if(this.showNext){this.show()}delete this.showNext},sizeMask:function(){var d=this,f=d.activeOwner||d.target,e=d.external?d.getOwner().el:d.getMaskTarget();if(d.rendered&&d.isVisible()){if(d.external){if(!d.isElement&&f.floating){d.onOwnerToFront(f,f.el.getZIndex())}d.el.setSize(e.getSize()).alignTo(e,"tl-tl")}d.msgWrapEl.center(d.el)}},bindStore:function(e,d){var f=this;Ext.destroy(f.proxyListeners);f.mixins.storeholder.bindStore.apply(f,arguments);e=f.store;if(e){while(e.getSource){e=e.getSource()}if(!e.loadsSynchronously()){f.proxyListeners=e.getProxy().on({exception:f.onLoad,scope:f,destroyable:true})}if(e.isLoading()){f.onBeforeLoad()}}},getStoreListeners:function(e){var g=this.onLoad,h=this.onBeforeLoad,f={cachemiss:h,cachefilled:{fn:g,buffer:100}};if(!e.loadsSynchronously()){f.beforeload=h;f.load=g}return f},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 b=this.getOwner();if(this.isElement){return this.target}return this.useTargetEl?b.getTargetEl():(b.getMaskTarget()||Ext.getBody())},onBeforeLoad:function(){var f=this,e=f.getOwner(),d;if(!f.disabled){f.loading=true;if(e.componentLayoutCounter){f.maybeShow()}else{d=e.afterComponentLayout;e.afterComponentLayout=function(){e.afterComponentLayout=d;d.apply(e,arguments);f.maybeShow()}}}},maybeShow:function(){var c=this,d=c.getOwner();if(!d.isVisible(true)){c.showNext=true}else{if(c.loading&&d.rendered){c.show()}}},hide:function(){var c=this,d=c.ownerCt;if(c.isElement){d.unmask();c.fireEvent("hide",this);return}if(d){d.enableTabbing();d.setMasked(false)}delete c.showNext;return Ext.Component.prototype.hide.apply(this,arguments)},show:function(){var b=this;if(b.isElement){b.ownerCt.mask(this.useMsg?this.msg:"",this.msgCls);b.fireEvent("show",this);return}return Ext.Component.prototype.show.apply(this,arguments)},afterShow:function(){var c=this,d=c.ownerCt;c.loading=true;Ext.Component.prototype.afterShow.apply(this,arguments);d.disableTabbing();d.setMasked(true);c.el.restoreTabbableState();c.syncMaskState()},syncMaskState:function(){var f=this,d=f.ownerCt,e=f.el;if(f.isVisible()){if(f.hasOwnProperty("msgWrapCls")){e.dom.className=f.msgWrapCls}if(f.useMsg){f.msgTextEl.setHtml(f.msg)}else{f.msgEl.hide()}if(f.shim||Ext.useShims){e.enableShim(null,true)}else{e.disableShim()}if(d.el.contains(Ext.Element.getActiveElement())){f.focus()}f.sizeMask()}},onLoad:function(){this.loading=false;this.hide()},beforeDestroy:function(){this.ownerCt=null;this.bindStore(null);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var b=this;if(b.isElement){b.ownerCt.unmask()}Ext.Component.prototype.onDestroy.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(C,q){var v=this,D=v.owner,z=C.ownerCtContext,y=C.heightModel,x=C.widthModel,w=D.el.dom===document.body,A=D.lastBox||v.nullBox,t=D.el.lastBox||v.nullBox,F=!w,B=C.isTopLevel,u,s,E,r;Ext.layout.Layout.prototype.beginLayoutCycle.call(this,C,q);if(q){if(v.usesContentWidth){++C.consumersContentWidth}if(v.usesContentHeight){++C.consumersContentHeight}if(v.usesWidth){++C.consumersWidth}if(v.usesHeight){++C.consumersHeight}if(z&&!z.hasRawContent){u=D.ownerLayout;if(u){if(u.usesWidth){++C.consumersWidth}if(u.usesHeight){++C.consumersHeight}}}}if(x.configured){E=D[x.names.width];if(B&&x.calculatedFrom){E=A.width}if(!w){F=v.setWidthInDom||(q?E!==t.width:x.constrained)}C.setWidth(E,F)}else{if(B){if(x.calculated){s=A.width;C.setWidth(s,s!==t.width)}s=A.x;C.setProp("x",s,s!==t.x)}}if(y.configured){r=D[y.names.height];if(B&&y.calculatedFrom){r=A.height}if(!w){F=q?r!==t.height:y.constrained}C.setHeight(r,F)}else{if(B){if(y.calculated){s=A.height;C.setHeight(s,s!==t.height)}s=A.y;C.setProp("y",s,s!==t.y)}}},finishedLayout:function(q){var l=this,i=q.children,r=l.owner,n,p,k,o,m;if(i){n=i.length;for(p=0;p<n;p++){k=i[p];k.el.lastBox=k.props}}q.previousSize=l.lastComponentSize;l.lastComponentSize=r.el.lastBox=m=q.props;o=r.lastBox||(r.lastBox={});o.x=m.x;o.y=m.y;o.width=m.width;o.height=m.height;o.invalid=false;Ext.layout.Layout.prototype.finishedLayout.call(this,q)},notifyOwner:function(h){var e=this,f=e.lastComponentSize,g=h.previousSize;e.owner.afterComponentLayout(f.width,f.height,g?g.width:undefined,g?g.height:undefined)},getTarget:function(){return this.owner.el},getRenderTarget:function(){return this.owner.el},cacheTargetInfo:function(e){var f=this,g=f.targetInfo,h;if(!g){h=e.getEl("getTarget",f);f.targetInfo=g={padding:h.getPaddingInfo(),border:h.getBorderInfo()}}return g},measureAutoDimensions:function(I,M){var A=this,T=A.owner,D=T.layout,Q=I.heightModel,N=I.widthModel,R=I.boxParent,G=I.isBoxParent,z=I.target,S=I.props,L,y={gotWidth:false,gotHeight:false,isContainer:(L=!I.hasRawContent)},B=M||3,E,P,K=0,O=0,J,F,C,x,H;if(N.shrinkWrap&&I.consumersContentWidth){++K;E=!(B&1);if(L){if(E){y.contentWidth=0;y.gotWidth=true;++O}else{if((y.contentWidth=I.getProp("contentWidth"))!==undefined){y.gotWidth=true;++O}}}else{F=S.contentWidth;if(typeof F==="number"){y.contentWidth=F;y.gotWidth=true;++O}else{if(E){J=true}else{if(!I.hasDomProp("containerChildrenSizeDone")){J=false}else{if(G||!R||R.widthModel.shrinkWrap){J=true}else{J=R.hasDomProp("width")}}}if(J){if(E){C=0}else{if(D&&D.measureContentWidth){C=D.measureContentWidth(I)}else{if(z.cacheWidth){x=z.xtype+"-"+z.ui;H=A.widthCache;C=H[x]||(H[x]=A.measureContentWidth(I))}else{C=A.measureContentWidth(I)}}}if(!isNaN(y.contentWidth=C)){I.setContentWidth(C,true);y.gotWidth=true;++O}}}}}else{if(N.natural&&I.consumersWidth){++K;F=S.width;if(typeof F==="number"){y.width=F;y.gotWidth=true;++O}else{if(G||!R){J=true}else{J=R.hasDomProp("width")}if(J){if(!isNaN(y.width=A.measureOwnerWidth(I))){I.setWidth(y.width,false);y.gotWidth=true;++O}}}}}if(Q.shrinkWrap&&I.consumersContentHeight){++K;P=!(B&2);if(L){if(P){y.contentHeight=0;y.gotHeight=true;++O}else{if((y.contentHeight=I.getProp("contentHeight"))!==undefined){y.gotHeight=true;++O}}}else{F=S.contentHeight;if(typeof F==="number"){y.contentHeight=F;y.gotHeight=true;++O}else{if(P){J=true}else{if(!I.hasDomProp("containerChildrenSizeDone")){J=false}else{if(T.noWrap){J=true}else{if(!N.shrinkWrap){J=(I.bodyContext||I).hasDomProp("width")}else{if(G||!R||R.widthModel.shrinkWrap){J=true}else{J=R.hasDomProp("width")}}}}}if(J){if(P){C=0}else{if(D&&D.measureContentHeight){C=D.measureContentHeight(I)}else{if(z.cacheHeight){x=z.xtype+"-"+z.ui;H=A.heightCache;C=H[x]||(H[x]=A.measureContentHeight(I))}else{C=A.measureContentHeight(I)}}}if(!isNaN(y.contentHeight=C)){I.setContentHeight(C,true);y.gotHeight=true;++O}}}}}else{if(Q.natural&&I.consumersHeight){++K;F=S.height;if(typeof F==="number"){y.height=F;y.gotHeight=true;++O}else{if(G||!R){J=true}else{J=R.hasDomProp("width")}if(J){if(!isNaN(y.height=A.measureOwnerHeight(I))){I.setHeight(y.height,false);y.gotHeight=true;++O}}}}}if(R){I.onBoxMeasured()}y.gotAll=O===K;return y},measureContentWidth:function(b){return b.el.getWidth()-b.getFrameInfo().width},measureContentHeight:function(b){return b.el.getHeight()-b.getFrameInfo().height},measureOwnerHeight:function(b){return b.el.getHeight()},measureOwnerWidth:function(b){return b.el.getWidth()}},0,0,0,0,0,0,[Ext.layout.component,"Component"],0));(Ext.cmd.derive("Ext.layout.component.Auto",Ext.layout.component.Component,{type:"autocomponent",setHeightInDom:false,setWidthInDom:false,waitForOuterHeightInDom:false,waitForOuterWidthInDom:false,beginLayoutCycle:function(k,h){var l=this,i=l.lastWidthModel,j=l.lastHeightModel,g=l.owner.el;Ext.layout.component.Component.prototype.beginLayoutCycle.apply(this,arguments);if(i&&i.fixed&&k.widthModel.shrinkWrap){g.setWidth(null)}if(j&&j.fixed&&k.heightModel.shrinkWrap){g.setHeight(null)}},calculate:function(j){var k=this,l=k.measureAutoDimensions(j),h=j.heightModel,n=j.widthModel,m,i;if(l.gotWidth){if(n.shrinkWrap){k.publishOwnerWidth(j,l.contentWidth)}else{if(k.publishInnerWidth){k.publishInnerWidth(j,l.width)}}}else{if(!n.auto&&k.publishInnerWidth){m=k.waitForOuterWidthInDom?j.getDomProp("width"):j.getProp("width");if(m===undefined){k.done=false}else{k.publishInnerWidth(j,m)}}}if(l.gotHeight){if(h.shrinkWrap){k.publishOwnerHeight(j,l.contentHeight)}else{if(k.publishInnerHeight){k.publishInnerHeight(j,l.height)}}}else{if(!h.auto&&k.publishInnerHeight){i=k.waitForOuterHeightInDom?j.getDomProp("height"):j.getProp("height");if(i===undefined){k.done=false}else{k.publishInnerHeight(j,i)}}}if(!l.gotAll){k.done=false}},calculateOwnerHeightFromContentHeight:function(c,d){return d+c.getFrameInfo().height},calculateOwnerWidthFromContentWidth:function(c,d){return d+c.getFrameInfo().width},publishOwnerHeight:function(k,m){var n=this,i=n.owner,j=n.calculateOwnerHeightFromContentHeight(k,m),l,o,p;if(isNaN(j)){n.done=false}else{l=Ext.Number.constrain(j,i.minHeight,i.maxHeight);if(l===j){o=n.setHeightInDom}else{p=n.sizeModels[(l<j)?"constrainedMax":"constrainedMin"];j=l;if(k.heightModel.calculatedFromShrinkWrap){k.heightModel=p}else{k.invalidate({heightModel:p})}}k.setHeight(j,o)}},publishOwnerWidth:function(l,i){var m=this,j=m.owner,n=m.calculateOwnerWidthFromContentWidth(l,i),k,o,p;if(isNaN(n)){m.done=false}else{k=Ext.Number.constrain(n,j.minWidth,j.maxWidth);if(k===n){o=m.setWidthInDom}else{p=m.sizeModels[(k<n)?"constrainedMax":"constrainedMin"];n=k;if(l.widthModel.calculatedFromShrinkWrap){l.widthModel=p}else{l.invalidate({widthModel:p})}}l.setWidth(n,o)}}},0,0,0,0,["layout.autocomponent"],0,[Ext.layout.component,"Auto"],0));(Ext.cmd.derive("Ext.layout.component.ProgressBar",Ext.layout.component.Auto,{type:"progressbar",beginLayout:function(g){var e=this,f,h;Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);if(!g.textEls){h=e.owner.textEl;if(h.isComposite){g.textEls=[];h=h.elements;for(f=h.length;f--;){g.textEls[f]=g.getEl(Ext.get(h[f]))}}else{g.textEls=[g.getEl("textEl")]}}},calculate:function(h){var j=this,g,i,f;Ext.layout.component.Auto.prototype.calculate.apply(this,arguments);if(Ext.isNumber(f=h.getProp("width"))){f-=h.getBorderInfo().width;i=h.textEls;for(g=i.length;g--;){i[g].setWidth(f)}}else{j.done=false}}},0,0,0,0,["layout.progressbar"],0,[Ext.layout.component,"ProgressBar"],0));(Ext.cmd.derive("Ext.ProgressBar",Ext.Component,{baseCls:"x-progress",animate:false,text:"",waitTimer:null,childEls:["bar"],defaultBindProperty:"value",renderTpl:['<tpl if="internalText">','<div class="{baseCls}-text {baseCls}-text-back">{text}</div>',"</tpl>",'<div id="{id}-bar" data-ref="bar" class="{baseCls}-bar {baseCls}-bar-{ui}" role="presentation" style="width:{percentage}%">','<tpl if="internalText">','<div class="{baseCls}-text">',"<div>{text}</div>","</div>","</tpl>","</div>"],componentLayout:"progressbar",ariaRole:"progressbar",initRenderData:function(){var d=this,c=d.value||0;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{internalText:!d.hasOwnProperty("textEl"),text:d.text||"&#160;",percentage:c*100})},onRender:function(){var b=this;Ext.Component.prototype.onRender.apply(this,arguments);if(b.textEl){b.textEl=Ext.get(b.textEl);b.updateText(b.text)}else{b.textEl=b.el.select("."+b.baseCls+"-text")}},updateValue:function(b){this.updateProgress(b,Math.round(b*100)+"%")},updateProgress:function(j,i,h){j=j||0;var k=this,g=k.value,l=k.getTextTpl();k.value=j||(j=0);if(i!=null){k.updateText(i)}else{if(l){k.updateText(l.apply({value:j,percent:j*100}))}}if(k.rendered&&!k.destroyed){if(h===true||(h!==false&&k.animate)){k.bar.stopAnimation();k.bar.animate(Ext.apply({from:{width:(g*100)+"%"},to:{width:(j*100)+"%"}},k.animate))}else{k.bar.setStyle("width",(j*100)+"%")}}k.fireEvent("update",k,j,i);return k},updateText:function(c){var d=this;d.text=c;if(d.rendered){d.textEl.setHtml(d.text)}return d},applyText:function(b){this.updateText(b)},getText:function(){return this.text},wait:function(f){var d=this,e;if(!d.waitTimer){e=d;f=f||{};d.updateText(f.text);d.waitTimer=Ext.TaskManager.start({run:function(b){var a=f.increment||10;b-=1;d.updateProgress(((((b+a)%a)+1)*(100/a))*0.01,null,f.animate)},interval:f.interval||1000,duration:f.duration,onStop:function(){if(f.fn){f.fn.apply(f.scope||d)}d.reset()},scope:e})}return d},isWaiting:function(){return this.waitTimer!==null},reset:function(d){var c=this;c.updateProgress(0);c.clearTimer();if(d===true){c.hide()}return c},clearTimer:function(){var b=this;if(b.waitTimer){b.waitTimer.onStop=null;Ext.TaskManager.stop(b.waitTimer);b.waitTimer=null}},onDestroy:function(){var c=this,d=c.bar;c.clearTimer();if(c.rendered){if(c.textEl.isComposite){c.textEl.clear()}Ext.destroyMembers(c,"textEl","progressBar");if(d&&c.animate){d.stopAnimation()}}Ext.Component.prototype.onDestroy.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(i,g,f){var h=this,j=h.component;Ext.dom.Element.prototype.setSize.call(this,i,g,f);j.btnWrap.setStyle("table-layout",(!i||i==="auto")?"":"fixed");j.btnEl.setStyle("height",(!g||g==="auto")?"":"auto");return h},setStyle:function(i,j){var k=this,g=k.component,l,h;Ext.dom.Element.prototype.setStyle.call(this,i,j);if(i){if(i==="width"||(typeof i!=="string"&&"width" in i)){l=j||i.width;g.btnWrap.setStyle("table-layout",(!l||l==="auto")?"":"fixed")}if(i==="height"||(typeof i!=="string"&&"height" in i)){h=j||i.height;g.btnEl.setStyle("height",(!h||h==="auto")?"":"auto")}}return k},setHeight:function(d,c){Ext.dom.Element.prototype.setHeight.call(this,d,c);this.component.btnEl.setStyle("height",(!d||d==="auto")?"":"auto");return this},setWidth:function(c,d){Ext.dom.Element.prototype.setWidth.call(this,c,d);this.component.btnWrap.setStyle("table-layout",(!c||c==="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 b=this;if(!b.initialized){Ext.getDoc().on({mouseup:b.onDocumentMouseUp,scope:b});b.initialized=true}},onButtonMousedown:function(e,f){var d=this.pressedButton;if(d){d.onMouseUp(f)}this.pressedButton=e},onDocumentMouseUp:function(c){var d=this.pressedButton;if(d){d.onMouseUp(c);this.pressedButton=null}},toggleGroup:function(f,h){if(h){var i=this.groups[f.toggleGroup],j=i.length,g;for(g=0;g<j;g++){if(i[g]!==f){i[g].toggle(false)}}}},register:function(e){var h=this,f=this.groups,g=f[e.toggleGroup];h.init();if(!e.toggleGroup){return}if(!g){g=f[e.toggleGroup]=[]}g.push(e);e.on("toggle",h.toggleGroup,h)},unregister:function(e){if(!e.toggleGroup){return}var d=this,f=d.groups[e.toggleGroup];if(f){Ext.Array.remove(f,e);e.un("toggle",d.toggleGroup,d)}},getPressed:function(g){var h=this.groups[g],e=0,f;if(h){for(f=h.length;e<f;e++){if(h[e].pressed===true){return h[e]}}}return null}},0,0,0,0,0,0,[Ext.button,"Manager",Ext,"ButtonToggleManager"],0));(Ext.cmd.derive("Ext.menu.Manager",Ext.Base,{singleton:true,alternateClassName:"Ext.menu.MenuMgr",groups:{},visible:[],constructor:function(){var b=this;b.onShow=function(){delete b.onShow;Ext.on("mousedown",b.checkActiveMenus,b);return b.onShow.apply(b,arguments)}},checkActiveMenus:function(k){var i=this.visible,h=i.length,e,j,l=Ext.Component.fromElement(k.target);if(h){i=i.slice();for(e=0;e<h;++e){j=i[e];if(!(j.owns(k)||(l&&l.isMenuCheckItem&&l.menu===j))){j.hide()}}}},onShow:function(b){if(b.floating){Ext.Array.include(this.visible,b)}},onHide:function(b){if(b.floating){Ext.Array.remove(this.visible,b)}},hideAll:function(){var g=this.visible,e=g.length,f=false,h;if(e){g=g.slice();for(h=0;h<e;h++){g[h].hide();f=true}}return f},get:function(f,d){var e;if(typeof f==="string"){e=Ext.getCmp(f);if(e instanceof Ext.menu.Menu){f=e}}else{if(Ext.isArray(f)){d=Ext.apply({items:f},d);f=new Ext.menu.Menu(d)}else{if(!f.isComponent){d=Ext.apply({},f,d);f=Ext.ComponentManager.create(d,"menu")}}}return f},registerCheckable:function(f){var e=this.groups,d=f.group;if(d){if(!e[d]){e[d]=[]}e[d].push(f)}},unregisterCheckable:function(f){var e=this.groups,d=f.group;if(d){Ext.Array.remove(e[d],f)}},onCheckChange:function(o,m){var j=this.groups,p=o.group,i=0,k,n,l;if(p&&m){k=j[p];n=k.length;for(;i<n;i++){l=k[i];if(l!==o){l.setChecked(false)}}}}},1,0,0,0,0,0,[Ext.menu,"Manager",Ext.menu,"MenuMgr"],0));(Ext.cmd.derive("Ext.util.ClickRepeater",Ext.util.Observable,{constructor:function(d,e){var f=this;f.el=Ext.get(d);f.el.unselectable();Ext.apply(f,e);Ext.util.Observable.prototype.constructor.call(this);if(!f.disabled){f.disabled=true;f.enable()}if(f.handler){f.on("click",f.handler,f.scope||f)}},interval:20,delay:250,preventDefault:true,stopDefault:false,timer:0,enable:function(){if(this.disabled){this.el.on("mousedown",this.handleMouseDown,this);if(Ext.isIE8){this.el.on("dblclick",this.handleDblClick,this)}if(this.preventDefault||this.stopDefault){this.el.on("click",this.eventOptions,this)}}this.disabled=false},disable:function(b){if(b||!this.disabled){clearTimeout(this.timer);if(this.pressedCls){this.el.removeCls(this.pressedCls)}Ext.getDoc().un("mouseup",this.handleMouseUp,this);this.el.clearListeners()}this.disabled=true},setDisabled:function(b){this[b?"disable":"enable"]()},eventOptions:function(b){if(this.preventDefault){b.preventDefault()}if(this.stopDefault){b.stopEvent()}},destroy:function(){this.disable(true);Ext.util.Observable.prototype.destroy.call(this)},handleDblClick:function(b){clearTimeout(this.timer);this.fireEvent("mousedown",this,b);this.fireEvent("click",this,b)},handleMouseDown:function(b){clearTimeout(this.timer);if(this.pressedCls){this.el.addCls(this.pressedCls)}this.mousedownTime=new Date();Ext.getDoc().on("mouseup",this.handleMouseUp,this);this.el.on("mouseout",this.handleMouseOut,this);this.fireEvent("mousedown",this,b);this.fireEvent("click",this,b);if(this.accelerate){this.delay=400}this.timer=Ext.defer(this.click,this.delay||this.interval,this,[b]);if(this.mousedownPreventDefault){b.preventDefault()}if(this.mousedownStopEvent){b.stopEvent()}},click:function(b){this.fireEvent("click",this,b);this.timer=Ext.defer(this.click,this.accelerate?this.easeOutExpo(Ext.Date.getElapsed(this.mousedownTime),400,-390,12000):this.interval,this,[b])},easeOutExpo:function(h,b,c,d){return(h===d)?b+c:c*(-Math.pow(2,-10*h/d)+1)+b},handleMouseOut:function(){clearTimeout(this.timer);if(this.pressedCls){this.el.removeCls(this.pressedCls)}this.el.on("mouseover",this.handleMouseReturn,this)},handleMouseReturn:function(b){this.el.un("mouseover",this.handleMouseReturn,this);if(this.pressedCls){this.el.addCls(this.pressedCls)}this.click(b)},handleMouseUp:function(b){clearTimeout(this.timer);this.el.un("mouseover",this.handleMouseReturn,this);this.el.un("mouseout",this.handleMouseOut,this);Ext.getDoc().un("mouseup",this.handleMouseUp,this);if(this.pressedCls){this.el.removeCls(this.pressedCls)}this.fireEvent("mouseup",this,b)}},1,0,0,0,0,0,[Ext.util,"ClickRepeater"],0));(Ext.cmd.derive("Ext.button.Button",Ext.Component,{alternateClassName:"Ext.Button",config:{iconAlign:"left",text:null,textAlign:"center",arrowVisible:true},isButton:true,_syncFrameHeight:true,liquidLayout:true,hidden:false,disabled:false,pressed:false,tabIndex:0,enableToggle:false,menuAlign:"tl-bl?",showEmptyMenu:false,clickEvent:"click",preventDefault:true,handleMouseEvents:true,tooltipType:"qtip",baseCls:"x-btn",hrefTarget:"_blank",destroyMenu:true,focusable:true,ariaRole:"button",keyHandlers:{SPACE:"onEnterKey",ENTER:"onEnterKey",DOWN:"onDownKey"},defaultBindProperty:"text",childEls:["btnEl","btnWrap","btnInnerEl","btnIconEl","arrowEl"],publishes:{pressed:1},_btnWrapCls:"x-btn-wrap",_btnCls:"x-btn-button",_baseIconCls:"x-btn-icon-el",_glyphCls:"x-btn-glyph",_innerCls:"x-btn-inner",_textCls:"x-btn-text",_noTextCls:"x-btn-no-text",_hasIconCls:"x-btn-icon",_pressedCls:"x-btn-pressed",overCls:"x-btn-over",_disabledCls:"x-btn-disabled",_menuActiveCls:"x-btn-menu-active",_arrowElCls:"x-btn-arrow-el",_focusCls:"x-btn-focus",_arrowFocusCls:"x-arrow-focus",renderTpl:'<span id="{id}-btnWrap" data-ref="btnWrap" role="presentation" unselectable="on" style="{btnWrapStyle}" class="{btnWrapCls} {btnWrapCls}-{ui} {splitCls}{childElCls}"><span id="{id}-btnEl" data-ref="btnEl" role="presentation" unselectable="on" style="{btnElStyle}" class="{btnCls} {btnCls}-{ui} {textCls} {noTextCls} {hasIconCls} {iconAlignCls} {textAlignCls} {btnElAutoHeightCls}{childElCls}"><tpl if="iconBeforeText">{[values.$comp.renderIcon(values)]}</tpl><span id="{id}-btnInnerEl" data-ref="btnInnerEl" unselectable="on" class="{innerCls} {innerCls}-{ui}{childElCls}">{text}</span><tpl if="!iconBeforeText">{[values.$comp.renderIcon(values)]}</tpl></span></span>{[values.$comp.getAfterMarkup ? values.$comp.getAfterMarkup(values) : ""]}<tpl if="closable"><span id="{id}-closeEl" data-ref="closeEl" class="{baseCls}-close-btn"><tpl if="closeText"> {closeText}</tpl></span></tpl><tpl if="split"><span id="{id}-arrowEl" class="{arrowElCls}" data-ref="arrowEl" role="button" hidefocus="on" unselectable="on"<tpl if="tabIndex != null"> tabindex="{tabIndex}"</tpl><tpl foreach="arrowElAttributes"> {$}="{.}"</tpl>>{arrowElText}</span></tpl>',iconTpl:'<span id="{id}-btnIconEl" data-ref="btnIconEl" role="presentation" unselectable="on" class="{baseIconCls} {baseIconCls}-{ui} {iconCls} {glyphCls}{childElCls}" style="<tpl if="iconUrl">background-image:url({iconUrl});</tpl><tpl if="glyph && glyphFontFamily">font-family:{glyphFontFamily};</tpl>"><tpl if="glyph">&#{glyph};</tpl></span>',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 b=this;b.addCls("x-unselectable");Ext.Component.prototype.initComponent.call(this);if(b.menu){b.split=true;b.setMenu(b.menu,false,true)}if(b.url){b.href=b.url}b.configuredWithPreventDefault=b.hasOwnProperty("preventDefault");if(b.href&&!b.configuredWithPreventDefault){b.preventDefault=false}if(Ext.isString(b.toggleGroup)&&b.toggleGroup!==""){b.enableToggle=true}if(b.html&&!b.text){b.text=b.html;delete b.html}},getElConfig:function(){var h=this,e=Ext.Component.prototype.getElConfig.call(this),f=h.getHref(),g=h.hrefTarget;if(e.tag==="a"){if(!h.disabled){e.tabIndex=h.tabIndex}if(f){if(!h.disabled){e.href=f;if(g){e.target=g}}}}if(!h.ariaStaticRoles[h.ariaRole]){if(h.menu&&!h.isSplitButton){e["aria-haspopup"]=true}if(h.enableToggle){e["aria-pressed"]=!!h.pressed}}return e},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(k,l,n){var m=this,i=m.menu,j=m.isSplitButton?m.arrowEl&&m.arrowEl.dom:m.ariaEl.dom,p,o;if(i&&!n){if(l!==false&&m.destroyMenu){i.destroy()}i.ownerCmp=null}if(k){p=k.isMenu;k=Ext.menu.Manager.get(k,{ownerCmp:m});k.setOwnerCmp(m,p);k.menuClickBuffer=250;m.mon(k,{scope:m,show:m.onMenuShow,hide:m.onMenuHide});if(!i&&m.getArrowVisible()){m.split=true;if(m.rendered){m._addSplitCls();m.updateLayout()}}m.menu=k;if(j){j.setAttribute("aria-haspopup",true);j.setAttribute("aria-owns",k.id)}else{o=m.isSplitButton?(m.ariaArrowElAttributes||(m.ariaArrowElAttributes={})):(m.ariaRenderAttributes||(m.ariaRenderAttributes={}));o["aria-haspopup"]=true;o["aria-owns"]=k.id}}else{if(m.rendered){j.removeAttribute("aria-haspopup");j.removeAttribute("aria-owns");m._removeSplitCls();m.updateLayout()}else{o=m.isSplitButton?m.ariaArrowElAttributes:m.ariaRenderAttributes;if(o){delete o["aria-haspopup"];delete o["aria-owns"]}}m.split=false;m.menu=null}},onRender:function(){var h=this,g,f,e;Ext.Component.prototype.onRender.apply(this,arguments);f=h.el;if(h.tooltip){h.setTooltip(h.tooltip,true)}if(h.handleMouseEvents){e={scope:h,mouseover:h.onMouseOver,mouseout:h.onMouseOut,mousedown:h.onMouseDown};if(h.split){e.mousemove=h.onMouseMove}}else{e={scope:h}}if(Ext.supports.Touch){e.touchstart=h.onTouchStart}if(h.repeat){h.mon(new Ext.util.ClickRepeater(f,Ext.isObject(h.repeat)?h.repeat:{}),"click",h.onRepeatClick,h)}else{if(e[h.clickEvent]){g=true}else{e[h.clickEvent]=h.onClick}}h.mon(f,e);if(h.hasFrameTable()){h.mon(h.frameTable,"click",h.frameTableListener,h)}if(g){h.mon(f,h.clickEvent,h.onClick,h)}Ext.button.Manager.register(h)},onFocusLeave:function(b){Ext.Component.prototype.onFocusLeave.call(this,b);if(this.menu){this.menu.hide()}},getTemplateArgs:function(){var m=this,r=m._btnCls,p=m._baseIconCls,t=m.getIconAlign(),l=m.glyph,n=Ext._glyphFontFamily,k=m.text,q=m._hasIcon(),o=m._hasIconCls,s;if(typeof l==="string"){s=l.split("@");l=s[0];n=s[1]}return{split:m.isSplitButton,innerCls:m._innerCls,splitCls:m.getArrowVisible()?m.getSplitCls():"",iconUrl:m.icon,iconCls:m.iconCls,glyph:l,glyphCls:l?m._glyphCls:"",glyphFontFamily:n,text:k||"&#160;",closeText:m.closeText,textCls:k?m._textCls:"",noTextCls:k?"":m._noTextCls,hasIconCls:q?o:"",btnWrapCls:m._btnWrapCls,btnWrapStyle:m.width?"table-layout:fixed;":"",btnElStyle:m.height?"height:auto;":"",btnCls:r,baseIconCls:p,iconBeforeText:t==="left"||t==="top",iconAlignCls:q?(o+"-"+t):"",textAlignCls:r+"-"+m.getTextAlign(),arrowElCls:m._arrowElCls,tabIndex:m.tabIndex}},renderIcon:function(b){return this.getTpl("iconTpl").apply(b)},setHref:function(f){var e=this,g=e.hrefTarget,h;e.href=f;if(!e.configuredWithPreventDefault){e.preventDefault=!f}if(e.rendered){h=e.el.dom;if(!f||e.disabled){h.removeAttribute("href");h.removeAttribute("hrefTarget")}else{h.href=e.getHref();if(g){h.target=g}}}},getHref:function(){var c=this,d=c.href;return d?Ext.urlAppend(d,Ext.Object.toQueryString(Ext.apply({},c.params,c.baseParams))):false},setParams:function(f){var e=this,d;e.params=f;if(e.rendered){d=e.el.dom;if(e.disabled){d.removeAttribute("href")}else{d.href=e.getHref()||""}}},getSplitCls:function(){var b=this;return b.split?(b.baseCls+"-"+b.arrowCls)+" "+(b.baseCls+"-"+b.arrowCls+"-"+b.arrowAlign):""},setIcon:function(e){e=e||"";var h=this,f=h.btnIconEl,g=h.icon||"";h.icon=e;if(e!==g){if(f){f.setStyle("background-image",e?"url("+e+")":"");h._syncHasIconCls();if(h.didIconStateChange(g,e)){h.updateLayout()}}h.fireEvent("iconchange",h,g,e)}return h},setIconCls:function(e){e=e||"";var g=this,f=g.btnIconEl,h=g.iconCls||"";g.iconCls=e;if(h!==e){if(f){f.removeCls(h);f.addCls(e);g._syncHasIconCls();if(g.didIconStateChange(h,e)){g.updateLayout()}}g.fireEvent("iconchange",g,h,e)}return g},setGlyph:function(k){k=k||0;var l=this,h=l.btnIconEl,n=l.glyph,j=l._glyphCls,i,m;l.glyph=k;if(h){if(typeof k==="string"){m=k.split("@");k=m[0];i=m[1]||Ext._glyphFontFamily}if(!k){h.dom.innerHTML="";h.removeCls(j)}else{if(n!==k){h.dom.innerHTML="&#"+k+";";h.addCls(j)}}if(i){h.setStyle("font-family",i)}l._syncHasIconCls();if(l.didIconStateChange(n,k)){l.updateLayout()}}l.fireEvent("glyphchange",l,l.glyph,n);return l},setTooltip:function(f,e){var d=this;if(d.rendered){if(!e||!f){d.clearTip()}if(f){if(Ext.quickTipsActive&&Ext.isObject(f)){Ext.tip.QuickTipManager.register(Ext.apply({target:d.el.id},f));d.tooltip=f}else{d.el.dom.setAttribute(d.getTipAttr(),f)}}}else{d.tooltip=f}return d},updateIconAlign:function(i,k){var l=this,g,h,j;if(l.rendered){g=l.btnEl;h=l.btnIconEl;j=l._hasIconCls;if(k){g.removeCls(j+"-"+k)}g.addCls(j+"-"+i);if(i==="top"||i==="left"){g.insertFirst(h)}else{g.appendChild(h)}l.updateLayout()}},updateTextAlign:function(h,i){var j=this,f=j.btnEl,g=j._btnCls;if(j.rendered){f.removeCls(g+"-"+i);f.addCls(g+"-"+h)}},getTipAttr:function(){return this.tooltipType==="qtip"?"data-qtip":"title"},getRefItems:function(e){var f=this.menu,d;if(f){d=f.getRefItems(e);d.unshift(f)}return d||[]},clearTip:function(){var c=this,d=c.el;if(Ext.quickTipsActive&&Ext.isObject(c.tooltip)){Ext.tip.QuickTipManager.unregister(d)}else{d.dom.removeAttribute(c.getTipAttr())}},beforeDestroy:function(){var b=this;if(b.rendered){b.clearTip()}Ext.destroy(b.repeater);Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var d=this,c=d.menu;if(d.rendered){Ext.destroy(d.keyMap);delete d.keyMap}if(c&&d.destroyMenu){d.menu=Ext.destroy(c)}Ext.button.Manager.unregister(d);Ext.Component.prototype.onDestroy.call(this)},setHandler:function(c,d){this.handler=c;if(arguments.length>1){this.scope=d}return this},updateText:function(i,g){i=i==null?"":String(i);g=g||"";var j=this,h=j.btnInnerEl,f=j.btnEl;if(j.rendered){h.setHtml(i||"&#160;");f[i?"addCls":"removeCls"](j._textCls);f[i?"removeCls":"addCls"](j._noTextCls);j.updateLayout()}j.fireEvent("textchange",j,g,i)},didIconStateChange:function(e,f){var d=Ext.isEmpty(f);return Ext.isEmpty(e)?!d:d},click:function(b){return this.onClick(b)},setPressed:function(b){return this.toggle(b!==false)},toggle:function(g,e){var h=this,f=h.ariaEl.dom;g=g===undefined?!h.pressed:!!g;if(h.fireEvent("beforetoggle",h,g)!==false){if(g!==h.pressed){h[g?"addCls":"removeCls"](h._pressedCls);h.pressed=g;if(f){f.setAttribute("aria-pressed",g)}if(!e){h.fireEvent("toggle",h,g);Ext.callback(h.toggleHandler,h.scope,[h,g],0,h);if(h.reference&&h.publishState){h.publishState("pressed",g)}}}}return h},maybeShowMenu:function(b){if(this.menu){this.showMenu(b)}},showMenu:function(f){var h=this,g=h.menu,e=!f||f.pointerType;if(g&&h.rendered){if(h.tooltip&&Ext.quickTipsActive&&h.getTipAttr()!=="title"){Ext.tip.QuickTipManager.getQuickTip().cancelShow(h.el)}if(g.isVisible()){if(e){g.hide()}else{g.focus()}}else{if(!f||h.showEmptyMenu||g.items.getCount()>0){g.autoFocus=!e;g.showBy(h.el,h.menuAlign)}}}return h},hideMenu:function(){if(this.hasVisibleMenu()){this.menu.hide()}return this},hasVisibleMenu:function(){var b=this.menu;return b&&b.rendered&&b.isVisible()},onRepeatClick:function(d,c){this.onClick(c)},onTouchStart:function(b){this.doPreventDefault(b)},onEnterKey:function(b){this.onClick(b);b.stopEvent();return false},onClick:function(c){var d=this;d.doPreventDefault(c);if(c.type!=="keydown"&&c.button){return}if(!d.disabled){d.doToggle();d.maybeShowMenu(c);d.fireHandler(c)}},doPreventDefault:function(b){if(b&&(this.preventDefault||(this.disabled&&this.getHref()))){b.preventDefault()}},fireHandler:function(c){var d=this;if(d.fireEvent("click",d,c)!==false&&!d.destroyed){Ext.callback(d.handler,d.scope,[d,c],0,d)}},doToggle:function(){var b=this;if(b.enableToggle&&(b.allowDepress!==false||!b.pressed)){b.toggle()}},onMouseOver:function(c){var d=this;if(!d.disabled&&!c.within(d.el,true,true)){d.onMouseEnter(c)}},onMouseOut:function(c){var d=this;if(!c.within(d.el,true,true)){if(d.overMenuTrigger){d.onMenuTriggerOut(c)}d.onMouseLeave(c)}},onMouseMove:function(f){var e=this,d=e.overMenuTrigger;if(e.split){if(e.isWithinTrigger(f)){if(!d){e.onMenuTriggerOver(f)}}else{if(d){e.onMenuTriggerOut(f)}}}},isWithinTrigger:function(i){var j=this,e=j.el,h,g;h=(j.arrowAlign==="right")?i.getX()-j.getX():i.getY()-e.getY();g=j.getTriggerRegion();return h>g.begin&&h<g.end},getTriggerRegion:function(){var i=this,h=i._triggerRegion,j=i.arrowAlign==="right",f=j?"getRight":"getBottom",g=j?i.getWidth():i.getHeight();h.begin=g-(i.el[f]()-i.btnEl[f]());h.end=g;return h},onMouseEnter:function(b){this.fireEvent("mouseover",this,b)},onMouseLeave:function(b){this.fireEvent("mouseout",this,b)},onMenuTriggerOver:function(f){var d=this,e=d.arrowTooltip;d.overMenuTrigger=true;if(d.split&&e){d.btnWrap.dom.setAttribute(d.getTipAttr(),e)}d.fireEvent("menutriggerover",d,d.menu,f)},onMenuTriggerOut:function(c){var d=this;delete d.overMenuTrigger;if(d.split&&d.arrowTooltip){d.btnWrap.dom.setAttribute(d.getTipAttr(),"")}d.fireEvent("menutriggerout",d,d.menu,c)},onEnable:function(){var e=this,f=e.href,g=e.hrefTarget,h=e.el.dom;Ext.Component.prototype.onEnable.call(this);e.removeCls(e._disabledCls);h.setAttribute("tabIndex",e.tabIndex);if(f){h.href=f}if(g){h.target=g}},onDisable:function(){var d=this,c=d.el.dom;Ext.Component.prototype.onDisable.call(this);d.addCls(d._disabledCls);d.removeCls(d.overCls);c.removeAttribute("tabIndex");if(d.href){c.removeAttribute("href")}if(d.hrefTarget){c.removeAttribute("target")}},setScale:function(f){var e=this,d=e.ui.replace("-"+e.scale,"");if(!Ext.Array.contains(e.allowedScales,f)){throw ("#setScale: scale must be an allowed scale ("+e.allowedScales.join(", ")+")")}e.scale=f;e.setUI(d)},setUI:function(c){var d=this;if(d.scale&&!c.match(d.scale)){c=c+"-"+d.scale}Ext.Component.prototype.setUI.call(this,c)},onMouseDown:function(c){var d=this;if(Ext.isIE||c.pointerType==="touch"){Ext.defer(function(){var a=d.getFocusEl();if(a&&!c.defaultPrevented){a.focus()}},1)}if(!d.disabled&&c.button===0){Ext.button.Manager.onButtonMousedown(d,c);d.addCls(d._pressedCls)}},onMouseUp:function(c){var d=this;if(!d.destroyed&&c.button===0){if(!d.pressed){d.removeCls(d._pressedCls)}}},onMenuShow:function(){var b=this;b.addCls(b._menuActiveCls);b.fireEvent("menushow",b,b.menu)},onMenuHide:function(c){var d=this;d.removeCls(d._menuActiveCls);d.fireEvent("menuhide",d,d.menu)},onDownKey:function(c){var d=this;if(d.menu&&!d.disabled){d.showMenu(c);c.stopEvent();return false}},updateArrowVisible:function(c){var d=this;if(d.rendered){if(c){if(d.menu||d.isSplitButton){d.split=true;d._addSplitCls()}}else{d._removeSplitCls();d.split=false}}return c},privates:{addOverCls:function(){if(!this.disabled){this.addCls(this.overCls)}},_addSplitCls:function(){var b=this;b.btnWrap.addCls(b.getSplitCls())},getTdCls:function(){return"x-button-"+this.ui+"-"+this.scale+"-cell"},removeOverCls:function(){this.removeCls(this.overCls)},_removeSplitCls:function(){var b=this;b.btnWrap.removeCls(b.getSplitCls())},_syncHasIconCls:function(){var d=this,e=d.btnEl,f=d._hasIconCls;if(e){e[d._hasIcon()?"addCls":"removeCls"]([f,f+"-"+d.iconAlign])}},_hasIcon:function(){return !!(this.icon||this.iconCls||this.glyph)},wrapPrimaryEl:function(b){this.el=new Ext.dom.ButtonElement(b);Ext.Component.prototype.wrapPrimaryEl.call(this,b)}}},0,["button"],["component","box","button"],{component:true,box:true,button:true},["widget.button"],[[Ext.mixin.Queryable.prototype.mixinId||Ext.mixin.Queryable.$className,Ext.mixin.Queryable],[Ext.util.KeyboardInteractive.prototype.mixinId||Ext.util.KeyboardInteractive.$className,Ext.util.KeyboardInteractive]],[Ext.button,"Button",Ext,"Button"],0));(Ext.cmd.derive("Ext.layout.container.SegmentedButton",Ext.layout.container.Container,{needsItemSize:false,setsItemSize:false,_btnRowCls:"x-segmented-button-row",getRenderTree:function(){var g=this,f=Ext.layout.container.Container.prototype.getRenderTree.call(this),e,h;if(g.owner.getVertical()){for(e=0,h=f.length;e<h;e++){f[e]={cls:g._btnRowCls,cn:f[e]}}}return f},getItemLayoutEl:function(d){var c=d.el.dom;return this.owner.getVertical()?c.parentNode:c},onDestroy:function(){if(this.rendered){var c=this.getRenderTarget(),d;while((d=c.last())){d.destroy()}}}},0,0,0,0,["layout.segmentedbutton"],0,[Ext.layout.container,"SegmentedButton"],0));(Ext.cmd.derive("Ext.button.Segmented",Ext.container.Container,{config:{allowDepress:false,allowMultiple:false,forceSelection:false,allowToggle:true,vertical:false,defaultUI:"default"},beforeRenderConfig:{value:undefined},defaultBindProperty:"value",publishes:["value"],twoWayBindable:["value"],layout:"segmentedbutton",defaultType:"button",maskOnDisable:false,isSegmentedButton:true,baseCls:"x-segmented-button",itemCls:"x-segmented-button-item",_firstCls:"x-segmented-button-first",_lastCls:"x-segmented-button-last",_middleCls:"x-segmented-button-middle",applyValue:function(p,x){var q=this,i=q.getAllowMultiple(),u,t,o,n,r,v,s,w;o=(p instanceof Array)?p:(p==null)?[]:[p];n=(x instanceof Array)?x:(x==null)?[]:[x];q._isApplyingValue=true;if(!q.rendered){r=q.items.items;for(v=r.length-1;v>=0;v--){t=r[v];if(q.forceSelection&&!v&&!w){t.pressed=true}if(t.pressed){w=true;u=t.value;if(u==null){u=q.items.indexOf(t)}if(!Ext.Array.contains(o,u)){o.unshift(u)}}}}s=o.length;for(v=0;v<s;v++){p=o[v];t=q._lookupButtonByValue(p);if(t){u=t.value;if((u!=null)&&u!==p){o[v]=u}if(!t.pressed){t.setPressed(true)}}}p=i?o:s?o[0]:null;for(v=0,s=n.length;v<s;v++){x=n[v];if(!Ext.Array.contains(o,x)){q._lookupButtonByValue(x).setPressed(false)}}q._isApplyingValue=false;if(q.hasListeners.change&&!Ext.Array.equals(o,n)){q.fireEvent("change",q,o,n)}return p},beforeRender:function(){var b=this;b.addCls(b.baseCls+b._getClsSuffix());b._syncItemClasses(true);Ext.container.Container.prototype.beforeRender.call(this)},onAdd:function(f){var d=this,e="_syncItemClasses";d.mon(f,{hide:e,show:e,beforetoggle:"_onBeforeItemToggle",toggle:"_onItemToggle",scope:d});if(d.getAllowToggle()){f.enableToggle=true;if(!d.getAllowMultiple()){f.toggleGroup=d.getId();f.allowDepress=d.getAllowDepress()}}f.addCls(d.itemCls+d._getClsSuffix());d._syncItemClasses();Ext.container.Container.prototype.onAdd.call(this,f)},onRemove:function(c){var d=this;c.removeCls(d.itemCls+d._getClsSuffix());d._syncItemClasses();Ext.container.Container.prototype.onRemove.call(this,c)},beforeLayout:function(){if(Ext.isChrome){this.el.dom.offsetWidth}Ext.container.Container.prototype.beforeLayout.call(this)},updateDefaultUI:function(h){var g=this.items,i,f,j;if(this.rendered){Ext.raise("Changing the ui config of a segmented button after render is not supported.")}else{if(g){if(g.items){g=g.items}for(f=0,j=g.length;f<j;f++){i=g[f];if(i.ui==="default"&&h!=="default"&&!i.hasOwnProperty("ui")){g[f].ui=h}}}}},privates:{_getClsSuffix:function(){return this.getVertical()?"-vertical":"-horizontal"},_getFirstCls:function(){return this._firstCls},_getLastCls:function(){return this._lastCls},_lookupButtonByValue:function(j){var h=this.items.items,k=h.length,l=0,m=null,i,n;for(;l<k;l++){n=h[l];i=n.value;if((i!=null)&&i===j){m=n;break}}if(!m&&typeof j==="number"){m=h[j]}return m},_onBeforeItemToggle:function(d,c){if(this.allowMultiple&&this.forceSelection&&!c&&this.getValue().length===1){return false}},_onItemToggle:function(p,l){if(this._isApplyingValue){return}var n=this,o=Ext.Array,i=n.allowMultiple,j=(p.value!=null)?p.value:n.items.indexOf(p),m=n.getValue(),k;if(i){k=o.indexOf(m,j)}if(l){if(i){if(k===-1){m=o.slice(m);m.push(j)}}else{m=j}}else{if(i){if(k>-1){m=o.slice(m);m.splice(k,1)}}else{if(m===j){m=null}}}n.setValue(m);n.fireEvent("toggle",n,p,l)},_syncItemClasses:function(t){var n=this,s,q,l,o,p,i,m,r;if(!t&&!n.rendered){return}s=n._getFirstCls();q=n._middleCls;l=n._getLastCls();o=n.items.items;p=o.length;i=[];for(r=0;r<p;r++){m=o[r];if(!m.hidden){i.push(m)}}p=i.length;for(r=0;r<p;r++){i[r].removeCls([s,q,l])}if(p>1){i[0].addCls(s);for(r=1;r<p-1;r++){i[r].addCls(q)}i[p-1].addCls(l)}}}},0,["segmentedbutton"],["component","box","container","segmentedbutton"],{component:true,box:true,container:true,segmentedbutton:true},["widget.segmentedbutton"],0,[Ext.button,"Segmented"],0));(Ext.cmd.derive("Ext.panel.Bar",Ext.container.Container,{vertical:false,_verticalSides:{left:1,right:1},initComponent:function(){var c=this,d=c.vertical;c.dock=c.dock||(d?"left":"top");c.layout=Ext.apply(d?{type:"vbox",align:"middle",alignRoundingMethod:"ceil"}:{type:"hbox",align:"middle",alignRoundingMethod:"floor"},c.layout);Ext.container.Container.prototype.initComponent.call(this)},onAdded:function(d,f,e){this.initOrientation();Ext.container.Container.prototype.onAdded.call(this,d,f,e)},onRemoved:function(b){this.removeClsWithUI(this.uiCls);Ext.container.Container.prototype.onRemoved.call(this,b)},beforeRender:function(){var b=this;if(b.forceOrientation||!b.ownerCt){b.initOrientation()}Ext.container.Container.prototype.beforeRender.call(this)},setDock:function(g){var h=this,e,f;if(g!==h.dock){Ext.suspendLayouts();h.clearOrientation();Ext.container.Container.prototype.setDock.call(this,g);h.initOrientation();f=h.vertical;e=h.layout;e.setVertical(f);e.setAlignRoundingMethod(f?"ceil":"floor");Ext.resumeLayouts(true)}},privates:{clearOrientation:function(){this.removeClsWithUI([this.vertical?"vertical":"horizontal",this.getDockName()])},getDockName:function(){return this.dock},initOrientation:function(){var f=this,d=f.dock,e=(f.vertical=(d?d in f._verticalSides:f.vertical));f.addClsWithUI([e?"vertical":"horizontal",f.getDockName()])}}},0,0,["component","box","container"],{component:true,box:true,container:true},0,0,[Ext.panel,"Bar"],0));(Ext.cmd.derive("Ext.panel.Title",Ext.Component,{isTitle:true,noWrap:true,textAlign:"left",iconAlign:"left",rotation:0,text:"&#160;",beforeRenderConfig:{textAlign:null,text:null,glyph:null,icon:null,iconAlign:null,iconCls:null,rotation:null},autoEl:{role:"presentation",unselectable:"on"},textElRole:"presentation",tabIndex:0,childEls:["textEl","iconEl","iconWrapEl"],renderTpl:'<tpl if="iconMarkup && iconBeforeTitle">{iconMarkup}</tpl><div id="{id}-textEl" data-ref="textEl" class="{textCls} {textCls}-{ui} {itemCls}{childElCls}" unselectable="on"<tpl if="textElRole"> role="{textElRole}"</tpl>>{text}</div><tpl if="iconMarkup && !iconBeforeTitle">{iconMarkup}</tpl>',iconTpl:'<div id="{id}-iconWrapEl" data-ref="iconWrapEl" role="presentation" class="{iconWrapCls} {iconWrapCls}-{ui} {iconAlignCls} {itemCls}{childElCls}"<tpl if="iconWrapStyle"> style="{iconWrapStyle}"</tpl>><div id="{id}-iconEl" data-ref="iconEl" role="presentation" unselectable="on" class="{baseIconCls} {baseIconCls}-{ui} {iconCls} {glyphCls}" style="<tpl if="iconUrl">background-image:url({iconUrl});</tpl><tpl if="glyph && glyphFontFamily">font-family:{glyphFontFamily};</tpl>"><tpl if="glyph">&#{glyph};</tpl></div></div>',_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 i=this,f=i.getRotation(),g,h,j;if(f&&!Ext.isIE8){j=i.el;g=i.lastBox;h=g.x;j.setStyle(i._getVerticalAdjustDirection(),(h+((f===1)?g.width:-g.height))+"px")}Ext.Component.prototype.afterComponentLayout.call(this)},onRender:function(){var f=this,e=f.getRotation(),d=f.el;Ext.Component.prototype.onRender.call(this);if(e){d.setVertical(f._rotationAngles[e])}if(Ext.supports.FixedTableWidthBug){d._needsTableWidthFix=true}},applyText:function(b){if(!b){b="&#160;"}return b},beforeRender:function(){var b=this;Ext.Component.prototype.beforeRender.call(this);b.addCls(b._rotationClasses[b.getRotation()]);b.addCls(b._textAlignClasses[b.getTextAlign()])},getIconMarkup:function(){return this.getTpl("iconTpl").apply(this.getIconRenderData())},getIconRenderData:function(){var k=this,n=k.getIcon(),h=k.getIconCls(),l=k.getGlyph(),j=Ext._glyphFontFamily,i=k.getIconAlign(),m;if(typeof l==="string"){m=l.split("@");l=m[0];j=m[1]}return{id:k.id,ui:k.ui,itemCls:k._itemCls,iconUrl:n,iconCls:h,iconWrapCls:k._iconWrapCls,baseIconCls:k._baseIconCls,iconAlignCls:k._iconAlignClasses[i],glyph:l,glyphCls:l?k._glyphCls:"",glyphFontFamily:j}},initRenderData:function(){var d=this,e,f;f=Ext.apply({text:d.getText(),textElRole:d.textElRole,id:d.id,ui:d.ui,itemCls:d._itemCls,textCls:d._textCls,iconMarkup:null,iconBeforeTitle:null},Ext.Component.prototype.initRenderData.call(this));if(d._hasIcon()){e=d.getIconAlign();f.iconMarkup=d.getIconMarkup();f.iconBeforeTitle=(e==="top"||e==="left")}return f},onAdded:function(g,i,h){var k=this,j=k._titleSuffix,l=g.baseCls;k.addCls([l+j,l+j+"-"+g.ui]);Ext.Component.prototype.onAdded.call(this,g,i,h)},updateGlyph:function(k,n){k=k||0;var l=this,j=l._glyphCls,h,i,m;l.glyph=k;if(l.rendered){l._syncIconVisibility();h=l.iconEl;if(typeof k==="string"){m=k.split("@");k=m[0];i=m[1]||Ext._glyphFontFamily}if(!k){h.dom.innerHTML="";h.removeCls(j)}else{if(n!==k){h.dom.innerHTML="&#"+k+";";h.addCls(j)}}if(i){h.setStyle("font-family",i)}if(l._didIconStateChange(n,k)){l.updateLayout()}}},updateIcon:function(e,g){e=e||"";var h=this,f;if(h.rendered&&e!==g){h._syncIconVisibility();f=h.iconEl;f.setStyle("background-image",e?"url("+e+")":"");if(h._didIconStateChange(g,e)){h.updateLayout()}}},updateIconAlign:function(i,l){var g=this,j=g.iconWrapEl,h,k;if(g.iconWrapEl){h=g.el;k=g._iconAlignClasses;if(l){j.removeCls(k[l])}j.addCls(k[i]);if(i==="top"||i==="left"){h.insertFirst(j)}else{h.appendChild(j)}g.updateLayout()}},updateIconCls:function(e,h){e=e||"";var g=this,f;if(g.rendered&&h!==e){g._syncIconVisibility();f=g.iconEl;if(h){f.removeCls(h)}f.addCls(e);if(g._didIconStateChange(h,e)){g.updateLayout()}}},updateRotation:function(f,g){var i=this,j,h;if(i.rendered){j=i.el;h=i._rotationClasses;i.removeCls(h[g]);i.addCls(h[f]);j.setHorizontal();if(f){j.setVertical(i._rotationAngles[f])}j.setStyle({right:"",left:"",top:"",height:"",width:""});i.lastBox=null;i.updateLayout()}},updateText:function(b){if(this.rendered){this.textEl.setHtml(b);this.updateLayout()}},updateTextAlign:function(g,e){var f=this,h=f._textAlignClasses;if(f.rendered){if(e){f.removeCls(h[e])}f.addCls(h[g]);f.updateLayout()}},privates:{_getVerticalAdjustDirection:function(){return"left"},_didIconStateChange:function(e,f){var d=Ext.isEmpty(f);return Ext.isEmpty(e)?!d:d},_hasIcon:function(){return !!(this.getIcon()||this.getIconCls()||this.getGlyph())},_syncIconVisibility:function(){var j=this,k=j.el,h=j._hasIcon(),i=j.iconWrapEl,l,g;if(h&&!i){g=j.iconAlign;l=(g==="left"||g==="top");k.dom.insertAdjacentHTML(l?"afterbegin":"beforeend",j.getIconMarkup());i=j.iconWrapEl=k[l?"first":"last"]();j.iconEl=i.first()}if(i){i.setDisplayed(h)}}}},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,{isTool:true,baseCls:"x-tool",disabledCls:"x-tool-disabled",toolPressedCls:"x-tool-pressed",toolOverCls:"x-tool-over",childEls:["toolEl"],renderTpl:['<div id="{id}-toolEl" data-ref="toolEl" class="{baseCls}-img {baseCls}-{type}{childElCls}" role="presentation"></div>'],toolOwner:null,tooltipType:"qtip",stopEvent:true,ariaRole:"button",focusable:true,tabIndex:0,keyHandlers:{SPACE:"onClick",ENTER:"onClick"},cacheHeight:true,cacheWidth:true,initComponent:function(){var b=this;b.type=b.type||b.id;Ext.applyIf(b.renderData,{baseCls:b.baseCls,type:b.type});b.tooltip=b.tooltip||b.qtip;Ext.Component.prototype.initComponent.call(this)},afterRender:function(){var d=this,c;Ext.Component.prototype.afterRender.apply(this,arguments);d.el.on({click:d.onClick,mousedown:d.onMouseDown,mouseover:d.onMouseOver,mouseout:d.onMouseOut,scope:d});c=d.tooltip;if(c){d.setTooltip(c)}},tipAttrs:{qtip:"data-qtip"},setTooltip:function(l,o){var n=this,i=n.tooltip,m=n.tooltipType,k=n.id,p=n.el,j;if(i&&Ext.quickTipsActive&&Ext.isObject(i)){Ext.tip.QuickTipManager.unregister(k)}n.tooltip=l;if(o){n.tooltipType=o}if(l){if(Ext.quickTipsActive&&Ext.isObject(l)){Ext.tip.QuickTipManager.register(Ext.apply({target:k},l))}else{if(p){if(o&&m&&o!==m){j=n.tipAttrs[m]||"title";p.dom.removeAttribute(j)}j=n.tipAttrs[o||m]||"title";p.dom.setAttribute(j,l)}}if(j!=="title"&&n.ariaRole&&n.ariaRole!=="presentation"){if(p){p.dom.setAttribute("aria-label",l)}else{n.ariaRenderAttributes=n.ariaRenderAttributes||{};n.ariaRenderAttributes["aria-label"]=l}}}},setType:function(e){var d=this,f=d.type;d.type=e;if(d.rendered){if(f){d.toolEl.removeCls(d.baseCls+"-"+f)}d.toolEl.addCls(d.baseCls+"-"+e)}else{d.renderData.type=e}return d},onDestroy:function(){var d=this,c=d.keyMap;d.setTooltip(null);delete d.toolOwner;Ext.Component.prototype.onDestroy.call(this)},privates:{onClick:function(f,d){var e=this;if(e.disabled){return false}if(f.type!=="keydown"){e.el.removeCls(e.toolPressedCls+" "+e.toolOverCls)}if(e.stopEvent!==false){f.stopEvent()}if(e.handler){Ext.callback(e.handler,e.scope,[f,d,e.ownerCt,e],0,e)}else{if(e.callback){Ext.callback(e.callback,e.scope,[e.toolOwner||e.ownerCt,e,f],0,e)}}e.fireEvent("click",e,f,e.toolOwner||e.ownerCt);return true},onMouseDown:function(b){b.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)}}},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(d){var c=this;if((arguments.length!==1)||(typeof d==="string")||d.dom||d.tagName||d===document||d.isComponent){c.legacyConstructor.apply(c,arguments);return}Ext.apply(c,d);c.bindings=[];if(!c.target.isComponent){c.target=Ext.get(c.target)}if(c.binding){c.addBinding(c.binding)}else{if(d.key){c.addBinding(d)}}c.enable()},legacyConstructor:function(e,g,f){var h=this;Ext.apply(h,{target:Ext.get(e),eventName:f||h.eventName,bindings:[]});if(g){h.addBinding(g)}h.enable()},addBinding:function(h){var j=this,i=h.key,f,g;if(j.processing){j.bindings=j.bindings.slice(0)}if(Ext.isArray(h)){for(f=0,g=h.length;f<g;f++){j.addBinding(h[f])}return}j.bindings.push(Ext.apply({keyCode:j.processKeys(i)},h))},removeBinding:function(k){var l=this,j=l.bindings,i=j.length,h,m,n;if(l.processing){l.bindings=j.slice(0)}n=l.processKeys(k.key);for(h=0;h<i;++h){m=j[h];if((m.fn||m.handler)===(k.fn||k.handler)&&m.scope===k.scope){if(k.alt===m.alt&&k.crtl===m.crtl&&k.shift===m.shift){if(Ext.Array.equals(m.keyCode,n)){Ext.Array.erase(l.bindings,h,1);return}}}}},processKeys:function(k){var j=false,m,l,h,i,n;if(k.test){return k}if(Ext.isString(k)){l=[];h=k.toUpperCase();for(n=0,i=h.length;n<i;++n){l.push(h.charCodeAt(n))}k=l;j=true}if(!Ext.isArray(k)){k=[k]}if(!j){for(n=0,i=k.length;n<i;++n){m=k[n];if(Ext.isString(m)){k[n]=m.toUpperCase().charCodeAt(0)}}}return k},handleTargetEvent:function(j){var k=this,i,l,g,h;if(k.enabled){i=k.bindings;l=0;g=i.length;j=k.processEvent.apply(k.processEventScope||k,arguments);if(j){k.lastKeyEvent=j;if(k.ignoreInputFields&&Ext.fly(j.target).isInputField()){return}if(!j.getKey){return j}k.processing=true;for(;l<g;++l){h=k.processBinding(i[l],j);if(h===false){k.processing=false;return h}}k.processing=false}}},processEvent:Ext.identityFn,processBinding:function(p,t){if(this.checkModifiers(p,t)){var o=t.getKey(),m=p.fn||p.handler,l=p.scope||this,n=p.keyCode,s=p.defaultEventAction,r,q,i;if(n.test){if(n.test(String.fromCharCode(t.getCharCode()))){i=m.call(l,o,t);if(i!==true&&s){t[s]()}if(i===false){return i}}}else{if(n.length){for(r=0,q=n.length;r<q;++r){if(o===n[r]){i=m.call(l,o,t);if(i!==true&&s){t[s]()}if(i===false){return i}break}}}}}},checkModifiers:function(j,l){var m=["shift","ctrl","alt"],n=0,i=m.length,k,h;for(;n<i;++n){h=m[n];k=j[h];if(!(k===undefined||(k===l[h+"Key"]))){return false}}return true},on:function(h,m,n){var j,i,l,k;if(Ext.isObject(h)&&!Ext.isArray(h)){j=h.key;i=h.shift;l=h.ctrl;k=h.alt}else{j=h}this.addBinding({key:j,shift:i,ctrl:l,alt:k,fn:m,scope:n})},un:function(h,m,n){var j,i,l,k;if(Ext.isObject(h)&&!Ext.isArray(h)){j=h.key;i=h.shift;l=h.ctrl;k=h.alt}else{j=h}this.removeBinding({key:j,shift:i,ctrl:l,alt:k,fn:m,scope:n})},isEnabled:function(){return this.enabled},enable:function(){var b=this;if(!b.enabled){b.target.on(b.eventName,b.handleTargetEvent,b,{capture:b.capture,priority:b.priority});b.enabled=true}},disable:function(){var b=this;if(b.enabled){b.target.removeListener(b.eventName,b.handleTargetEvent,b);b.enabled=false}},setDisabled:function(b){if(b){this.disable()}else{this.enable()}},destroy:function(f){var e=this,d=e.target;e.bindings=[];e.disable();if(f){d.destroy()}delete e.target;e.callParent()}},1,0,0,0,0,0,[Ext.util,"KeyMap",Ext,"KeyMap"],0));(Ext.cmd.derive("Ext.util.KeyNav",Ext.Base,{alternateClassName:"Ext.KeyNav",disabled:false,defaultEventAction:false,forceKeyDown:false,eventName:"keypress",statics:{keyOptions:{left:37,right:39,up:38,down:40,space:32,pageUp:33,pageDown:34,del:46,backspace:8,home:36,end:35,enter:13,esc:27,tab:9}},constructor:function(d){var c=this;if(arguments.length===2){c.legacyConstructor.apply(c,arguments);return}c.doConstruction(d)},legacyConstructor:function(c,d){this.doConstruction(Ext.apply({target:c},d))},doConstruction:function(f){var h=this,e={target:f.target,ignoreInputFields:f.ignoreInputFields,eventName:h.getKeyEvent("forceKeyDown" in f?f.forceKeyDown:h.forceKeyDown,f.eventName),capture:f.capture},g;if(h.map){h.map.destroy()}h.initConfig(f);if(f.processEvent){e.processEvent=f.processEvent;e.processEventScope=f.processEventScope||h}if(f.priority){e.priority=f.priority}if(f.keyMap){g=h.map=f.keyMap}else{g=h.map=new Ext.util.KeyMap(e);h.destroyKeyMap=true}this.addBindings(f);g.disable();if(!f.disabled){g.enable()}},addBindings:function(k){var p=this,i,m,n=p.map,j=Ext.util.KeyNav.keyOptions,o,l=k.scope||p;for(i in k){m=k[i];o=j[i];if(o!=null){i=o}if(m&&(i.length===1||!isNaN(i=parseInt(i,10)))){if(typeof m==="function"){m={handler:m,defaultEventAction:(k.defaultEventAction!==undefined)?k.defaultEventAction:p.defaultEventAction}}n.addBinding({key:i,ctrl:m.ctrl,shift:m.shift,alt:m.alt,handler:Ext.Function.bind(p.handleEvent,m.scope||l,[m.handler||m.fn,p],true),defaultEventAction:(m.defaultEventAction!==undefined)?m.defaultEventAction:p.defaultEventAction})}}},handleEvent:function(g,h,e,f){f.lastKeyEvent=h;return e.call(this,h)},destroy:function(c){var d=this;if(d.destroyKeyMap){d.map.destroy(c)}delete d.map;d.callParent()},enable:function(){if(this.map){this.map.enable();this.disabled=false}},disable:function(){if(this.map){this.map.disable()}this.disabled=true},setDisabled:function(b){this.map.setDisabled(b);this.disabled=b},getKeyEvent:function(c,d){if(c||(Ext.supports.SpecialKeyDownRepeat&&!d)){return"keydown"}else{return d||this.eventName}}},1,0,0,0,0,0,[Ext.util,"KeyNav",Ext,"KeyNav"],0));(Ext.cmd.derive("Ext.util.FocusableContainer",Ext.Mixin,{mixinConfig:{id:"focusablecontainer",before:{onAdd:"onFocusableChildAdd",onRemove:"onFocusableChildRemove",destroy:"destroyFocusableContainer",onFocusEnter:"onFocusEnter"},after:{afterRender:"initFocusableContainer",onFocusLeave:"onFocusLeave",afterShow:"activateFocusableContainerEl"}},isFocusableContainer:true,enableFocusableContainer:true,activeChildTabIndex:0,inactiveChildTabIndex:-1,privates:{initFocusableContainer:function(h){var e,g,f;if(this.enableFocusableContainer){h=h!=null?h:true;this.doInitFocusableContainer(h)}else{e=this.getFocusables();for(g=0,f=e.length;g<f;g++){e[g].focusableContainer=null}}},doInitFocusableContainer:function(f){var h=this,e,g;e=h.getFocusableContainerEl();if(f){h.clearFocusables()}g=h.findNextFocusableChild({step:1,beforeRender:true});if(g){h.activateFocusableContainerEl(e)}h.focusableContainerMouseListener=h.mon(e,"mousedown",h.onFocusableContainerMousedown,h);h.focusableKeyNav=h.createFocusableContainerKeyNav(e)},createFocusableContainerKeyNav:function(d){var c=this;return new Ext.util.KeyNav(d,{eventName:"keydown",ignoreInputFields:true,scope:c,tab:c.onFocusableContainerTabKey,enter:c.onFocusableContainerEnterKey,space:c.onFocusableContainerSpaceKey,up:c.onFocusableContainerUpKey,down:c.onFocusableContainerDownKey,left:c.onFocusableContainerLeftKey,right:c.onFocusableContainerRightKey})},destroyFocusableContainer:function(){if(this.enableFocusableContainer){this.doDestroyFocusableContainer()}},doDestroyFocusableContainer:function(){var b=this;if(b.keyNav){b.keyNav.destroy()}if(b.focusableContainerMouseListener){b.focusableContainerMouseListener.destroy()}b.focusableKeyNav=b.focusableContainerMouseListener=null},getFocusables:function(){return this.items.items},initDefaultFocusable:function(i){var m=this,k=m.activeChildTabIndex,p=false,n,l,q,o,r;n=m.getFocusables();o=n.length;if(!o){return}for(q=0;q<o;q++){l=n[q];if(l.focusable&&!l.disabled){p=true;r=l.getTabIndex();if(r!=null&&r>=k){return l}}}if(!p){return}l=m.findNextFocusableChild({beforeRender:i,items:n,step:true});if(l){m.activateFocusable(l)}return l},clearFocusables:function(){var h=this,f=h.getFocusables(),g=f.length,i,j;for(j=0;j<g;j++){i=f[j];if(i.focusable&&!i.disabled){h.deactivateFocusable(i)}}},activateFocusable:function(f,d){var e=d!=null?d:this.activeChildTabIndex;f.setTabIndex(e)},deactivateFocusable:function(f,d){var e=d!=null?d:this.inactiveChildTabIndex;f.setTabIndex(e)},onFocusableContainerTabKey:function(){return true},onFocusableContainerEnterKey:function(){return true},onFocusableContainerSpaceKey:function(){return true},onFocusableContainerUpKey:function(b){b.preventDefault();return this.moveChildFocus(b,false)},onFocusableContainerDownKey:function(b){b.preventDefault();return this.moveChildFocus(b,true)},onFocusableContainerLeftKey:function(b){b.preventDefault();return this.moveChildFocus(b,false)},onFocusableContainerRightKey:function(b){b.preventDefault();return this.moveChildFocus(b,true)},getFocusableFromEvent:function(d){var c=Ext.Component.fromElement(d.getTarget());return c},moveChildFocus:function(d,e){var f=this.getFocusableFromEvent(d);return this.focusChild(f,e,d)},focusChild:function(f,e){var d=this.findNextFocusableChild({child:f,step:e});if(d){d.focus()}return d},findNextFocusableChild:function(i){var k=i.beforeRender,n,l,r,q,m,p,o;n=i.items||this.getFocusables();q=i.step!=null?i.step:1;r=i.child;m=Ext.Array.indexOf(n,r);q=q===true?1:q===false?-1:q;o=n.length;p=q>0?(m<o?m+q:0):(m>0?m+q:o-1);for(;;p+=q){if(m<0&&(p>=o||p<0)){return null}else{if(p>=o){p=-1;continue}else{if(p<0){p=o;continue}else{if(p===m){return null}}}}l=n[p];if(!l||!l.focusable||l.disabled){continue}if(k||(l.isFocusable&&l.isFocusable())){return l}}return null},getFocusableContainerEl:function(){return this.el},onFocusableChildAdd:function(b){if(this.enableFocusableContainer){return this.doFocusableChildAdd(b)}},activateFocusableContainerEl:function(b){b=b||this.getFocusableContainerEl();if(b){b.set({tabIndex:this.activeChildTabIndex})}},deactivateFocusableContainerEl:function(b){b=b||this.getFocusableContainerEl();if(b){b.set({tabIndex:undefined})}},isFocusableContainerActive:function(){var i=this,j=false,f,h,g;f=i.getFocusableContainerEl();if(f&&f.isTabbable&&f.isTabbable()){j=true}else{h=i.lastFocusedChild;g=h&&h.getFocusEl&&h.getFocusEl();if(g&&g.isTabbable&&g.isTabbable()){j=true}}return j},doFocusableChildAdd:function(b){if(b.focusable){b.focusableContainer=this}},onFocusableChildRemove:function(b){if(this.enableFocusableContainer){return this.doFocusableChildRemove(b)}b.focusableContainer=null},doFocusableChildRemove:function(b){if(b===this.lastFocusedChild){this.lastFocusedChild=null;this.activateFocusableContainerEl()}},onFocusableContainerMousedown:function(f,d){var e=Ext.Component.fromElement(d);this.mousedownTimestamp=e===this?Ext.Date.now():0;if(e===this){f.preventDefault()}},onFocusEnter:function(l){var h=this,e=l.toComponent,k=h.mousedownTimestamp,i=50,j;if(!h.enableFocusableContainer){return null}h.mousedownTimestamp=0;if(e===h){if(!k||Ext.Date.now()-k>i){j=h.initDefaultFocusable();if(j){h.deactivateFocusableContainerEl();j.focus()}}}else{h.deactivateFocusableContainerEl()}return e},onFocusLeave:function(f){var d=this,e=d.lastFocusedChild;if(!d.enableFocusableContainer){return}if(!d.destroyed&&!d.destroying){d.clearFocusables();if(e&&!e.disabled){d.activateFocusable(e)}else{d.activateFocusableContainerEl()}}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(c){var d=this;if(!d.enableFocusableContainer){return}d.clearFocusables();d.activateFocusable(c);if(c.needArrowKeys){d.guardFocusableChild(c)}},guardFocusableChild:function(g){var h=this,f=h.activeChildTabIndex,e;e=h.findNextFocusableChild({child:g,step:-1});if(e){e.setTabIndex(f)}e=h.findNextFocusableChild({child:g,step:1});if(e){e.setTabIndex(f)}},afterFocusableChildFocus:function(b){if(!this.enableFocusableContainer){return}this.lastFocusedChild=b},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(c){var d=this;if(!d.enableFocusableContainer){return}if(c!==d.lastFocusedChild){d.deactivateFocusable(c);if(!d.isFocusableContainerActive()){d.activateFocusableContainerEl()}}},beforeFocusableChildDisable:function(f){var d=this,e;if(!d.enableFocusableContainer||d.destroying||d.destroyed){return}if(f.hasFocus){e=d.findNextFocusableChild({child:f})||f.findFocusTarget();if(e){e.focus()}}},onFocusableChildDisable:function(g){var h=this,f=h.lastFocusedChild,e;if(!h.enableFocusableContainer||h.destroying||h.destroyed){return}if(g===f){h.activateFocusableContainerEl()}e=h.findNextFocusableChild({step:1});if(!e){h.deactivateFocusableContainerEl()}},onFocusableChildShow:Ext.privateFn,onFocusableChildHide:Ext.privateFn,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(c,d){if(typeof c!=="object"){c={text:c}}return Ext.merge(d?Ext.Object.chain(d):{},c)}},titleAlign:null,titlePosition:null,titleRotation:null},headerCls:"x-header",initComponent:function(){var g=this,h=g.items,e=g.itemPosition,f=[g.headerCls];g.tools=g.tools||[];g.items=h=(h?h.slice():[]);if(e!==undefined){g._userItems=h.slice();g.items=h=[]}g.indicateDragCls=g.headerCls+"-draggable";if(g.indicateDrag){f.push(g.indicateDragCls)}g.addCls(f);g.syncNoBorderCls();g.enableFocusableContainer=!g.isAccordionHeader&&g.tools.length>0;if(g.enableFocusableContainer){g.ariaRole="toolbar"}Ext.Array.push(h,g.tools);g.tools.length=0;Ext.panel.Bar.prototype.initComponent.call(this);g.on({dblclick:g.onDblClick,click:g.onClick,element:"el",scope:g})},addTool:function(d){var c=this;c.add(Ext.ComponentManager.create(d,"tool"));if(!c.isAccordionHeader&&c.tools.length>0&&!c.enableFocusableContainer){c.enableFocusableContainer=true;c.ariaRole="toolbar";if(c.rendered){c.ariaEl.dom.setAttribute("role","toolbar");c.initFocusableContainer(true)}}},afterLayout:function(){var f=this,h,g,j,i;if(f.vertical){g=f.frameTR;if(g){h=f.frameBR;j=f.frameTL;i=(f.getWidth()-g.getPadding("r")-((j)?j.getPadding("l"):f.el.getBorderWidth("l")))+"px";h.setStyle("background-position-x",i);g.setStyle("background-position-x",i)}}Ext.panel.Bar.prototype.afterLayout.call(this)},applyTitle:function(h,j){var i=this,g,f;h=h||"";g=typeof h==="string";if(g){h={text:h}}if(j){Ext.suspendLayouts();j.setConfig(h);Ext.resumeLayouts(true);h=j}else{if(g){h.xtype="title"}h.ui=i.ui;f=("rotation" in h);h.id=i.id+"-title";if(i.isAccordionHeader){h.ariaRole="tab";h.textElRole=null;h.focusable=true}h=Ext.create(h);if(!f&&i.vertical&&i.titleRotation==="default"){h.rotation=1}}return h},applyTitlePosition:function(c){var d=this.items.getCount();if(this._titleInItems){--d}return Math.max(Math.min(c,d),0)},beforeLayout:function(){Ext.panel.Bar.prototype.beforeLayout.call(this);this.syncBeforeAfterTitleClasses()},beforeRender:function(){var c=this,d=c.itemPosition;c.protoEl.unselectable();Ext.panel.Bar.prototype.beforeRender.call(this);if(d!==undefined){c.insert(d,c._userItems)}},getTools:function(){return this.tools.slice()},onAdd:function(d,e){var f=this.tools;Ext.panel.Bar.prototype.onAdd.call(this,d,e);if(d.isTool){f.push(d);f[d.type]=d}},onAdded:function(d,f,e){this.syncNoBorderCls();Ext.panel.Bar.prototype.onAdded.call(this,d,f,e)},onRemoved:function(d,f,e){this.syncNoBorderCls();Ext.panel.Bar.prototype.onRemoved.call(this,d,f,e)},setDock:function(j){var f=this,h=f.getTitle(),g=f.getTitleRotation(),i=h.getRotation();Ext.suspendLayouts();Ext.panel.Bar.prototype.setDock.call(this,j);if(g==="default"){g=(f.vertical?1:0);if(g!==i){h.setRotation(g)}if(f.rendered){f.resetItemMargins()}}Ext.resumeLayouts(true)},updateGlyph:function(b){this.getTitle().setGlyph(b)},updateIcon:function(b){this.getTitle().setIcon(b)},updateIconAlign:function(c,d){this.getTitle().setIconAlign(c)},updateIconCls:function(b){this.getTitle().setIconCls(b)},updateTitle:function(c,d){if(!d){this.insert(this.getTitlePosition(),c);this._titleInItems=true}this.titleCmp=c},updateTitleAlign:function(c,d){this.getTitle().setTextAlign(c)},updateTitlePosition:function(b){this.insert(b,this.getTitle())},updateTitleRotation:function(b){if(b==="default"){b=(this.vertical?1:0)}this.getTitle().setRotation(b)},privates:{fireClickEvent:function(e,f){var d="."+Ext.panel.Tool.prototype.baseCls;if(!f.getTarget(d)){this.fireEvent(e,this,f)}},getFramingInfoCls:function(){var f=this,d=Ext.panel.Bar.prototype.getFramingInfoCls.call(this),e=f.ownerCt;if(!f.expanding&&e&&(e.collapsed||f.isCollapsedExpander)){d+="-"+e.collapsedCls}return d+"-"+f.dock},onClick:function(b){this.fireClickEvent("click",b)},onDblClick:function(b){this.fireClickEvent("dblclick",b)},onFocusableContainerMousedown:function(f,d){var e=Ext.Component.fromElement(d);if(e===this){f.preventDefault()}else{this.mixins.focusablecontainer.onFocusableContainerMousedown.apply(this,arguments)}},syncBeforeAfterTitleClasses:function(v){var p=this,q=p.items,s=q.items,w=p.getTitlePosition(),x=s.length,r=q.generation,o=p.syncBeforeAfterGen,i,t,u,n;if(!v&&(o===r)){return}p.syncBeforeAfterGen=r;for(u=0;u<x;++u){n=s[u];i=n.afterTitleCls||(n.afterTitleCls=n.baseCls+"-after-title");t=n.beforeTitleCls||(n.beforeTitleCls=n.baseCls+"-before-title");if(!p.title||u<w){if(o){n.removeCls(i)}n.addCls(t)}else{if(u>w){if(o){n.removeCls(t)}n.addCls(i)}}}},syncNoBorderCls:function(){var d=this,e=this.ownerCt,f=d.headerCls+"-noborder";if(e?(e.border===false&&!e.frame):d.border===false){d.addCls(f)}else{d.removeCls(f)}}}},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(b){this.initConfig(b)},handleOverflow:Ext.emptyFn,clearOverflow:Ext.emptyFn,beginLayout:Ext.emptyFn,beginLayoutCycle:Ext.emptyFn,calculate:function(e){var f=this,h=e.state.boxPlan,g;if(h&&h.tooNarrow){g=f.handleOverflow(e);if(g){if(g.reservedSpace){f.layout.publishInnerCtSize(e,g.reservedSpace)}}}else{f.clearOverflow()}},completeLayout:Ext.emptyFn,finishedLayout:function(i){var j=this,g=j.layout.owner,f,h;if(g.hasListeners.overflowchange){f=g.query(">[hidden]");h=f.length;if(h!==j.lastHiddenCount){g.fireEvent("overflowchange",j.lastHiddenCount,h,f);j.lastHiddenCount=h}}},onRemove:Ext.emptyFn,getItem:function(b){return this.layout.owner.getComponent(b)},getOwnerType:function(d){var c;if(d.isToolbar){c="toolbar"}else{if(d.isTabBar){c="tab-bar"}else{if(d.isMenu){c="menu"}else{if(d.isBreadcrumb){c="breadcrumb"}else{c=d.getXType()}}}}return c},getPrefixConfig:Ext.emptyFn,getSuffixConfig:Ext.emptyFn,getOverflowCls:function(){return""},setVertical:function(){var d=this,e=d.layout,f=e.innerCt;f.removeCls(d.getOverflowCls(e.oppositeDirection));f.addCls(d.getOverflowCls(e.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(d){var c=this;c.mixins.observable.constructor.call(c,d);c.scrollPosition=0;c.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(l){var j=this,k=j.layout,h=k.owner,m=j.getOwnerType(h),i=j.scrollerCls,n=i+" "+i+"-"+k.names[l]+" "+i+"-"+m+" "+i+"-"+m+"-"+h.ui;if(h.plain){n+=" "+i+"-plain"}return n},getOverflowCls:function(b){return this.scrollerCls+"-body-"+b},beginLayout:function(b){b.innerCtScrollPos=this.getScrollPosition();Ext.layout.container.boxOverflow.None.prototype.beginLayout.apply(this,arguments)},finishedLayout:function(m){var n=this,k=m.state.boxPlan,h=n.layout,l=h.names,j=Math.min(n.getMaxScrollPosition(),m.innerCtScrollPos),i;if(k&&k.tooNarrow){i=m.childItems[m.childItems.length-1].props;n.scrollSize=i[l.x]+i[l.width];n.updateScrollButtons();h.innerCt[l.setScrollLeft](j)}Ext.layout.container.boxOverflow.None.prototype.finishedLayout.call(this,m)},handleOverflow:function(q){var l=this,m=l.layout.names,k=m.getWidth,j=m.parallelMargins,p,n,o,r;l.showScrollers();o=l.getBeforeScroller();r=l.getAfterScroller();p=o[k]()+r[k]()+o.getMargin(j)+r.getMargin(j);n=q.targetContext.getPaddingInfo()[m.width];return{reservedSpace:Math.max(p-n,0)}},getBeforeScroller:function(){var b=this;return b._beforeScroller||(b._beforeScroller=b.createScroller(b.beforeSuffix,"beforeRepeater","scrollLeft"))},getAfterScroller:function(){var b=this;return b._afterScroller||(b._afterScroller=b.createScroller(b.afterSuffix,"afterRepeater","scrollRight"))},createScroller:function(k,m,j){var l=this,n=l.layout.owner,h=l.scrollerCls,i;i=n.el.getById(n.id+k);i.addClsOnOver(h+"-hover");i.addClsOnClick(h+"-pressed");i.setVisibilityMode(Ext.Element.DISPLAY);l[m]=new Ext.util.ClickRepeater(i,{interval:l.scrollRepeatInterval,handler:j,scope:l});return i},createWheelListener:function(){var b=this;b.wheelListener=b.layout.innerCt.on("mousewheel",b.onMouseWheel,b,{destroyable:true})},onMouseWheel:function(b){b.stopEvent();this.scrollBy(this.getWheelDelta(b)*this.wheelIncrement*-1,false)},getWheelDelta:function(b){return b.getWheelDelta()},clearOverflow:function(){this.hideScrollers()},showScrollers:function(){var b=this;if(!b.wheelListener){b.createWheelListener()}b.getBeforeScroller().show();b.getAfterScroller().show();b.layout.owner.addClsWithUI(b.layout.direction==="vertical"?"vertical-scroller":"scroller")},hideScrollers:function(){var d=this,f=d.getBeforeScroller(),e=d.getAfterScroller();if(f){f.hide();e.hide();d.layout.owner.removeClsWithUI(d.layout.direction==="vertical"?"vertical-scroller":"scroller")}},destroy:function(){Ext.destroyMembers(this,"beforeRepeater","afterRepeater","_beforeScroller","_afterScroller","wheelListener");this.callParent()},scrollBy:function(c,d){this.scrollTo(this.getScrollPosition()+c,d)},getScrollAnim:function(){return{duration:this.scrollDuration,callback:this.updateScrollButtons,scope:this}},updateScrollButtons:function(){var e=this,g=e.getBeforeScroller(),f=e.getAfterScroller(),h;if(!g||!f){return}h=e.scrollerCls+"-disabled";g[e.atExtremeBefore()?"addCls":"removeCls"](h);f[e.atExtremeAfter()?"addCls":"removeCls"](h);e.scrolling=false},scrollLeft:function(){this.scrollBy(-this.scrollIncrement,false)},scrollRight:function(){this.scrollBy(this.scrollIncrement,false)},getScrollPosition:function(){var f=this,d=f.layout,e;if(isNaN(f.scrollPosition)){e=d.innerCt[d.names.getScrollLeft]()}else{e=f.scrollPosition}return e},getMaxScrollPosition:function(){var d=this,e=d.layout,f=d.scrollSize-e.innerCt.lastBox[e.names.width];return(f<0)?0:f},atExtremeBefore:function(){return !this.getScrollPosition()},atExtremeAfter:function(){return this.getScrollPosition()>=this.getMaxScrollPosition()},setVertical:function(){var j=this,i=j.getBeforeScroller(),f=j.getAfterScroller(),h=j.layout.names,g=j.scrollerCls;i.removeCls(g+"-"+h.beforeY);f.removeCls(g+"-"+h.afterY);i.addCls(g+"-"+h.beforeX);f.addCls(g+"-"+h.afterX);Ext.layout.container.boxOverflow.None.prototype.setVertical.call(this)},scrollTo:function(i,h){var k=this,l=k.layout,j=l.names,m=k.getScrollPosition(),n=Ext.Number.constrain(i,0,k.getMaxScrollPosition());if(n!==m&&!k.scrolling){k.scrollPosition=NaN;if(h===undefined){h=k.animateScroll}l.innerCt[j.scrollTo](j.beforeScrollX,n,h?k.getScrollAnim():false);if(h){k.scrolling=true}else{k.updateScrollButtons()}k.fireEvent("scroll",k,n,h?k.getScrollAnim():false)}},scrollToItem:function(k,r){var l=this,o=l.layout,q=o.owner,m=o.names,s=o.innerCt,t,p,n;k=l.getItem(k);if(k!==undefined){if(k===q.items.first()){n=0}else{if(k===q.items.last()){n=l.getMaxScrollPosition()}else{t=l.getItemVisibility(k);if(!t.fullyVisible){p=k.getBox(false,true);n=p[m.x];if(t.hiddenEnd){n-=(s[m.getWidth]()-p[m.width])}}}}if(n!==undefined){l.scrollTo(n,r)}}},getItemVisibility:function(j){var l=this,q=l.getItem(j).getBox(true,true),p=l.layout,m=p.names,n=q[m.x],o=n+q[m.width],r=l.getScrollPosition(),k=r+p.innerCt[m.getWidth]();return{hiddenStart:n<r,hiddenEnd:o>k,fullyVisible:n>=r&&o<=k}}},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:true,initialized:false,locked:false,init:function(){this.initialized=true},POINT:0,INTERSECT:1,mode:0,notifyOccluded:false,dragCls:"x-dd-drag-current",_execOnAll:function(n,h){var l=this.ids,m,i,j,k;for(m in l){if(l.hasOwnProperty(m)){k=l[m];for(i in k){if(k.hasOwnProperty(i)){j=k[i];if(!this.isTypeOfDD(j)){continue}j[n].apply(j,h)}}}}},addListeners:function(){var b=this;b.init();Ext.getDoc().on({mouseup:b.handleMouseUp,mousemove:{fn:b.handleMouseMove,capture:false},dragstart:b.preventDrag,drag:b.preventDrag,dragend:b.preventDrag,capture:true,scope:b});Ext.getWin().on({unload:b._onUnload,resize:b._onResize,scope:b})},preventDrag:function(b){if(this.isMouseDown){b.stopPropagation()}},_onResize:function(b){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:8,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,regDragDrop:function(c,d){if(!this.initialized){this.init()}if(!this.ids[d]){this.ids[d]={}}this.ids[d][c.id]=c},removeDDFromGroup:function(f,e){if(!this.ids[e]){this.ids[e]={}}var d=this.ids[e];if(d&&d[f.id]){delete d[f.id]}},_remove:function(i,g){var j=this,l=j.ids,h=i.groups,k;if(j.clearingAll){return}if(j.dragCurrent===i){j.dragCurrent=null}for(k in h){if(h.hasOwnProperty(k)){if(g){delete l[k]}else{if(l[k]){delete l[k][i.id]}}}}delete j.handleIds[i.id];delete j.locationCache[i.id]},regHandle:function(c,d){if(!this.handleIds[c]){this.handleIds[c]={}}this.handleIds[c][d]=d},isDragDrop:function(b){return(this.getDDById(b))?true:false},getRelated:function(i,g){var j=[],k,l,h;for(k in i.groups){for(l in this.ids[k]){h=this.ids[k][l];if(!this.isTypeOfDD(h)){continue}if(!g||h.isTarget){j[j.length]=h}}}return j},isLegalTarget:function(h,i){var f=this.getRelated(h,true),j,g;for(j=0,g=f.length;j<g;++j){if(f[j].id===i.id){return true}}return false},isTypeOfDD:function(b){return(b&&b.__ygDragDrop)},isHandle:function(c,d){return(this.handleIds[c]&&this.handleIds[c][d])},getDDById:function(g,h){var e,f;for(e in this.ids){f=this.ids[e][g];if(f instanceof Ext.dd.DDTarget||h){return f}}return null},handleMouseDown:function(h,i){var e=this,j,g;e.isMouseDown=true;if(Ext.quickTipsActive){Ext.tip.QuickTipManager.ddDisable()}e.currentPoint=h.getPoint();if(e.dragCurrent){e.handleMouseUp(h)}e.mousedownEvent=h;e.currentTarget=h.getTarget();e.dragCurrent=i;g=i.getEl();Ext.fly(g).setCapture();j=h.getXY();e.startX=j[0];e.startY=j[1];e.offsetX=e.offsetY=0;e.deltaX=e.startX-g.offsetLeft;e.deltaY=e.startY-g.offsetTop;e.dragThreshMet=false},startDrag:function(f,h){var j=this,i=j.dragCurrent,g;clearTimeout(j.clickTimeout);if(i){i.b4StartDrag(f,h);i.startDrag(f,h);g=i.getDragEl();if(g){Ext.fly(g).addCls(j.dragCls)}}j.dragThreshMet=true},handleMouseUp:function(c){var d=this;d.isMouseDown=false;if(Ext.quickTipsActive){Ext.tip.QuickTipManager.ddEnable()}if(!d.dragCurrent){return}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}clearTimeout(d.clickTimeout);if(d.dragThreshMet){d.fireEvents(c,true)}d.stopDrag(c);d.stopEvent(c);d.mousedownEvent=d.currentTarget=null},stopEvent:function(b){if(this.stopPropagation){b.stopPropagation()}if(this.preventDefault){b.preventDefault()}},stopDrag:function(g){var e=this,h=e.dragCurrent,f;if(h){if(e.dragThreshMet){f=h.getDragEl();if(f){Ext.fly(f).removeCls(e.dragCls)}h.b4EndDrag(g);h.endDrag(g)}e.dragCurrent.onMouseUp(g)}e.dragCurrent=null;e.dragOvers={}},handleMouseMove:function(k){var m=this,l=m.dragCurrent,j=m.currentPoint=k.getPoint(),o=j.x,e=j.y,n,p;m.offsetX=o-m.startX;m.offsetY=e-m.startY;if(!l){return true}if(!m.dragThreshMet){n=Math.abs(m.offsetX);p=Math.abs(m.offsetY);if(n>m.clickPixelThresh||p>m.clickPixelThresh){m.startDrag(m.startX,m.startY)}}if(m.dragThreshMet){l.b4Drag(k);l.onDrag(k);if(!l.moveOnly){m.fireEvents(k,false)}}m.stopEvent(k);return true},fireEvents:function(z,J){var e=this,I=Ext.supports.Touch,O=e.dragCurrent,B=e.currentPoint,F=B.x,G=B.y,H=[],N=[],L=[],S=[],i=[],A=[],T=I?document.documentElement.clientWidth/window.innerWidth:1,Q,P,K,R,D,C,E,M;if(!O||O.isLocked()){return}M=!(O.deltaX<0||O.deltaY<0);if(I||(!e.notifyOccluded&&(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera)&&M)){Q=O.getDragEl();if(M){Q.style.visibility="hidden"}z.target=document.elementFromPoint(F/T,G/T);if(M){Q.style.visibility="visible"}}for(D in e.dragOvers){P=e.dragOvers[D];delete e.dragOvers[D];if(!e.isTypeOfDD(P)||P.destroyed){continue}if(e.notifyOccluded){if(!this.isOverTarget(B,P,e.mode)){L.push(P)}}else{if(!z.within(P.getEl())){L.push(P)}}N[D]=true}for(E in O.groups){if("string"!==typeof E){continue}for(D in e.ids[E]){P=e.ids[E][D];if(e.isTypeOfDD(P)&&(K=P.getEl())&&(P.isTarget)&&(!P.isLocked())&&(Ext.fly(K).isVisible(true))&&((P!==O)||(O.ignoreSelf===false))){if(e.notifyOccluded){if((P.zIndex=e.getZIndex(K))!==-1){R=true}H.push(P)}else{if(z.within(P.getEl())){H.push(P);break}}}}}if(R){Ext.Array.sort(H,e.byZIndex)}for(D=0,C=H.length;D<C;D++){P=H[D];if(e.isOverTarget(B,P,e.mode)){if(J){i.push(P)}else{if(!N[P.id]){A.push(P)}else{S.push(P)}e.dragOvers[P.id]=P}if(!e.notifyOccluded){break}}}if(e.mode){if(L.length){O.b4DragOut(z,L);O.onDragOut(z,L)}if(A.length){O.onDragEnter(z,A)}if(S.length){O.b4DragOver(z,S);O.onDragOver(z,S)}if(i.length){O.b4DragDrop(z,i);O.onDragDrop(z,i)}}else{for(D=0,C=L.length;D<C;++D){O.b4DragOut(z,L[D].id);O.onDragOut(z,L[D].id)}for(D=0,C=A.length;D<C;++D){O.onDragEnter(z,A[D].id)}for(D=0,C=S.length;D<C;++D){O.b4DragOver(z,S[D].id);O.onDragOver(z,S[D].id)}for(D=0,C=i.length;D<C;++D){O.b4DragDrop(z,i[D].id);O.onDragDrop(z,i[D].id)}}if(J&&!i.length){O.onInvalidDrop(z)}},getZIndex:function(e){var f=document.body,h,g=-1;e=Ext.getDom(e);while(e!==f){if(!isNaN(h=Number(Ext.fly(e).getStyle("zIndex")))){g=h}e=e.parentNode}return g},byZIndex:function(c,d){return c.zIndex<d.zIndex},getBestMatch:function(j){var h=null,f=j.length,i,g;if(f===1){h=j[0]}else{for(i=0;i<f;++i){g=j[i];if(g.cursorIsOver){h=g;break}else{if(!h||h.overlap.getArea()<g.overlap.getArea()){h=g}}}}return h},refreshCache:function(f){var g,j,i,h;for(g in f){if("string"!==typeof g){continue}for(j in this.ids[g]){i=this.ids[g][j];if(this.isTypeOfDD(i)){h=this.getLocation(i);if(h){this.locationCache[i.id]=h}else{delete this.locationCache[i.id]}}}}},verifyEl:function(b){return Ext.getBody().contains(b)},getLocation:function(s){if(!this.isTypeOfDD(s)){return null}if(s.getRegion){return s.getRegion()}var u=s.getEl(),p,v,w,e,l,b,x,q,t;try{p=Ext.fly(u).getXY()}catch(r){}if(!p){return null}v=p[0];w=v+u.offsetWidth;e=p[1];l=e+u.offsetHeight;b=e-s.padding[0];x=w+s.padding[1];q=l+s.padding[2];t=v-s.padding[3];return new Ext.util.Region(b,x,q,t)},isOverTarget:function(j,r,p){var n=this.locationCache[r.id],k,m,q,o,l;if(!n||!this.useCache){n=this.getLocation(r);this.locationCache[r.id]=n}if(!n){return false}r.cursorIsOver=n.contains(j);k=this.dragCurrent;if(!k||!k.getTargetCoord||(!p&&!k.constrainX&&!k.constrainY)){return r.cursorIsOver}r.overlap=null;m=k.getTargetCoord(j.x,j.y);q=k.getDragEl();o=new Ext.util.Region(m.y,m.x+q.offsetWidth,m.y+q.offsetHeight,m.x);l=o.intersect(n);if(l){r.overlap=l;return(p)?true:r.cursorIsOver}else{return false}},_onUnload:function(c,d){Ext.dd.DragDropManager.unregAll()},unregAll:function(){var f=this,e=f.elementCache,d;if(f.dragCurrent){f.stopDrag();f.dragCurrent=null}f.clearingAll=true;f._execOnAll("unreg",[]);delete f.clearingAll;for(d in e){delete e[d]}f.elementCache={};f.ids={};f.handleIds={}},elementCache:{},getElWrapper:function(c){var d=this.elementCache[c];if(!d||!d.el){d=this.elementCache[c]=new this.ElementWrapper(Ext.getDom(c))}return d},getElement:function(b){return Ext.getDom(b)},getCss:function(c){var d=Ext.getDom(c);return(d)?d.style:null},ElementWrapper:function(b){this.el=b||null;this.id=this.el&&b.id;this.css=this.el&&b.style},getPosX:function(b){return Ext.fly(b).getX()},getPosY:function(b){return Ext.fly(b).getY()},swapNode:function(h,f){if(h.swapNode){h.swapNode(f)}else{var g=f.parentNode,e=f.nextSibling;if(e===h){g.insertBefore(h,f)}else{if(f===h.nextSibling){g.insertBefore(f,h)}else{h.parentNode.replaceChild(f,h);g.insertBefore(h,e)}}}},getScroll:function(){var i=window.document,h=i.documentElement,g=i.body,j=0,f=0;if(h&&(h.scrollTop||h.scrollLeft)){j=h.scrollTop;f=h.scrollLeft}else{if(g){j=g.scrollTop;f=g.scrollLeft}}return{top:j,left:f}},getStyle:function(c,d){return Ext.fly(c).getStyle(d)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(e,f){var d=Ext.fly(f).getXY();Ext.fly(e).setXY(d)},numericSort:function(a,b){return(a-b)},handleWasClicked:function(e,f){if(this.isHandle(f,e.id)){return true}else{var d=e.parentNode;while(d){if(this.isHandle(f,d.id)){return true}else{d=d.parentNode}}}return false}},0,0,0,0,0,0,[Ext.dd,"DragDropManager",Ext.dd,"DragDropMgr",Ext.dd,"DDM"],function(b){Ext.onInternalReady(function(){b.addListeners()})}));(Ext.cmd.derive("Ext.resizer.Splitter",Ext.Component,{childEls:["collapseEl"],renderTpl:['<tpl if="collapsible===true">','<div id="{id}-collapseEl" data-ref="collapseEl" role="presentation" class="',"x-","collapse-el ","x-",'layout-split-{collapseDir}{childElCls}">',"</div>","</tpl>"],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,size:5,tracker:null,ariaRole:"separator",focusable:true,tabIndex:0,getTrackerConfig:function(){return Ext.apply({xclass:"Ext.resizer.SplitterTracker",el:this.el,splitter:this},this.tracker)},beforeRender:function(){var h=this,g=h.getCollapseTarget(),e=h.collapsible,f;Ext.Component.prototype.beforeRender.call(this);if(g.collapsed){h.addCls(h.collapsedClsInternal)}if(!h.canResize){h.addCls(h.baseCls+"-noresize")}Ext.applyIf(h.renderData,{collapseDir:h.getCollapseDirection(),collapsible:(e!==null)?e:g.collapsible});h.ariaRenderAttributes=h.ariaRenderAttributes||{};h.ariaRenderAttributes["aria-orientation"]=h.orientation;h.protoEl.unselectable()},onRender:function(){var c=this,d;Ext.Component.prototype.onRender.apply(this,arguments);if(c.performCollapse!==false){if(c.renderData.collapsible){c.mon(c.collapseEl,"click",c.toggleTargetCmp,c)}if(c.collapseOnDblClick){c.mon(c.el,"dblclick",c.toggleTargetCmp,c)}}c.getCollapseTarget().on({collapse:c.onTargetCollapse,expand:c.onTargetExpand,beforeexpand:c.onBeforeTargetExpand,beforecollapse:c.onBeforeTargetCollapse,scope:c});if(c.canResize){c.tracker=Ext.create(c.getTrackerConfig());c.relayEvents(c.tracker,["beforedragstart","dragstart","dragend"])}d=c.collapseEl;if(d){d.lastCollapseDirCls=c.collapseDirProps[c.collapseDirection].cls}},getCollapseDirection:function(){var i=this,l=i.collapseDirection,j,h,g,k;if(!l){j=i.collapseTarget;if(j.isComponent){l=j.collapseDirection}if(!l){k=i.ownerCt.layout.type;if(j.isComponent){g=i.ownerCt.items;h=Number(g.indexOf(j)===g.indexOf(i)-1)<<1|Number(k==="hbox")}else{h=Number(i.collapseTarget==="prev")<<1|Number(k==="hbox")}l=["bottom","right","top","left"][h]}i.collapseDirection=l}i.setOrientation((l==="top"||l==="bottom")?"horizontal":"vertical");return l},getCollapseTarget:function(){var b=this;return b.collapseTarget.isComponent?b.collapseTarget:b.collapseTarget==="prev"?b.previousSibling():b.nextSibling()},setCollapseEl:function(c){var d=this.collapseEl;if(d){d.setDisplayed(c)}},onBeforeTargetExpand:function(b){this.setCollapseEl("none")},onBeforeTargetCollapse:function(){this.setCollapseEl("none")},onTargetCollapse:function(c){var d=this;if(c===d.getCollapseTarget()&&c[d.orientation==="vertical"?"collapsedHorizontal":"collapsedVertical"]()){d.el.addCls(d.collapsedClsInternal+" "+(d.collapsedCls||""))}d.setCollapseEl("")},onTargetExpand:function(c){var d=this;d.el.removeCls(d.collapsedClsInternal+" "+(d.collapsedCls||""));d.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 h=this,e=h.collapseEl,g=h.collapseDirProps[h.collapseDirection],f;if(e){f=e.lastCollapseDirCls;if(f){e.removeCls(f)}e.addCls(e.lastCollapseDirCls=g.cls)}},applyOrientation:function(){var l=this,n=l.orientation,m=l.orientationProps[n],k=l.size,h=m.fixedAxis,j=m.stretchedAxis,i=l.baseCls+"-";l[n]=true;l[m.opposite]=false;if(!l.hasOwnProperty(h)||l[h]==="100%"){l[h]=k}if(!l.hasOwnProperty(j)||l[j]===k){l[j]="100%"}l.removeCls(i+m.opposite);l.addCls(i+n)},setOrientation:function(d){var c=this;if(c.orientation!==d){c.orientation=d;c.applyOrientation()}},updateOrientation:function(){delete this.collapseDirection;this.getCollapseDirection();this.applyCollapseDirection()},toggleTargetCmp:function(i,e){var j=this.getCollapseTarget(),h=j.placeholder,g;if(Ext.isFunction(j.expand)&&Ext.isFunction(j.collapse)){if(h&&!h.hidden){g=true}else{g=!j.hidden}if(g){if(j.collapsed){j.expand()}else{if(j.collapseDirection){j.collapse()}else{j.collapse(this.renderData.collapseDir)}}}}},setSize:function(){var b=this;Ext.Component.prototype.setSize.apply(this,arguments);if(Ext.isIE&&b.el){b.el.repaint()}},beforeDestroy:function(){Ext.destroy(this.tracker);Ext.Component.prototype.beforeDestroy.call(this)}},0,["splitter"],["component","box","splitter"],{component:true,box:true,splitter:true},["widget.splitter"],0,[Ext.resizer,"Splitter"],0));Ext.define("Ext.theme.neptune.resizer.Splitter",{override:"Ext.resizer.Splitter",size:8});Ext.define("Ext.theme.triton.resizer.Splitter",{override:"Ext.resizer.Splitter",size:10});(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(c,d){if(typeof c==="string"){c={type:c}}return Ext.merge(d?Ext.Object.chain(d):{},c)}},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)}%}<div id="{ownerId}-innerCt" data-ref="innerCt" role="presentation" class="{[l.innerCls]}{[oh ? (" " + oh.getOverflowCls(l.direction)) : ""]}"><div id="{ownerId}-targetEl" data-ref="targetEl" class="{targetElCls}" role="presentation">{%this.renderBody(out, values)%}</div></div>{%if (oh && oh.getSuffixConfig!==Ext.emptyFn) {if(oc=oh.getSuffixConfig())dh.generateMarkup(oc, out)}%}',{disableFormats:true,definitions:"var dh=Ext.DomHelper;"}],constructor:function(e){var f=this,d;Ext.layout.container.Container.prototype.constructor.apply(this,arguments);f.setVertical(f.vertical);f.flexSortFn=f.flexSort.bind(f);d=typeof f.padding;if(d==="string"||d==="number"){f.padding=Ext.util.Format.parseBox(f.padding);f.padding.height=f.padding.top+f.padding.bottom;f.padding.width=f.padding.left+f.padding.right}},_beginRe:/^(?:begin|left|top)$/,_centerRe:/^(?:center|middle)$/,_endRe:/^(?:end|right|bottom)$/,_percentageRe:/^\s*(\d+(?:\.\d*)?)\s*[%]\s*$/,getItemSizePolicy:function(s,r){var x=this,z=x.sizePolicy,B=x.align,C=s.flex,u=B,y=x.names,A=y.height,v=y.width,G=s[v],t=s[A],E=x._percentageRe,F=E.test(G),D=(B==="stretch"),H=(B==="stretchmax"),w=x.constrainAlign;if(!r&&(D||C||F||(w&&!H))){r=x.owner.getSizeModel()}if(D){if(!E.test(t)&&r[A].shrinkWrap){u="stretchmax"}}else{if(!H){if(E.test(t)){u="stretch"}else{if(w&&!r[A].shrinkWrap){u="stretchmax"}else{u=""}}}}if(C||F){if(!r[v].shrinkWrap){z=z.flex}}return z[u]},flexSort:function(u,v){var x=this.names.maxWidth,D=this.names.minWidth,w=Infinity,y=u.target,b=v.target,A=y.flex,B=b.flex,a=0,F,t,z,E,s,C;z=y[x]||w;E=b[x]||w;F=y[D]||0;t=b[D]||0;s=isFinite(F)||isFinite(t);C=isFinite(z)||isFinite(E);if(s||C){if(C){a=z-E}if(a===0&&s){a=t-F}if(a===0){if(C){a=B-A}else{a=A-B}}}return a},isItemBoxParent:function(b){return true},isItemShrinkWrap:function(b){return true},roundFlex:function(b){return Math.floor(b)},beginCollapse:function(c){var d=this;if(d.direction==="vertical"&&c.collapsedVertical()){c.collapseMemento.capture(["flex"]);delete c.flex}else{if(d.direction==="horizontal"&&c.collapsedHorizontal()){c.collapseMemento.capture(["flex"]);delete c.flex}}},beginExpand:function(b){b.collapseMemento.restore(["flex"])},beginLayout:function(n){var k=this,q=k.owner,o=q.stretchMaxPartner,r=k.innerCt.dom.style,l=k.names,m=k.overflowHandler,j=q.getScrollable(),p;n.boxNames=l;if(m){m.beginLayout(n)}if(typeof o==="string"){o=Ext.getCmp(o)||q.query(o)[0]}n.stretchMaxPartner=o&&n.context.getCmp(o);Ext.layout.container.Container.prototype.beginLayout.apply(this,arguments);n.innerCtContext=n.getEl("innerCt",k);n.targetElContext=n.getEl("targetEl",k);if(j){n.ownerScrollable=j;p=j.getPosition();if(p.x||p.y){n.scrollRestore=p}}r.width=r.height=""},beginLayoutCycle:function(w,n){var q=this,z=w.state,p=w.ownerScrollable,s=q.align,r=w.boxNames,o=q.pack,x=q._centerRe,v=q.overflowHandler,y=w.state.canScroll,t,u;if(v){v.beginLayoutCycle(w,n)}Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);w.parallelSizeModel=t=w[r.widthModel];w.perpendicularSizeModel=u=w[r.heightModel];w.boxOptions={align:s={stretch:s==="stretch",stretchmax:s==="stretchmax",center:x.test(s),bottom:q._endRe.test(s)},pack:o={center:x.test(o),end:o==="end"}};if(p){if(!y){z.canScroll={parallel:!t.shrinkWrap&&p[r.getX](),perpendicular:!u.shrinkWrap&&p[r.getY]()}}if(!z.actualScroll){z.actualScroll={parallel:false,perpendicular:false}}}if(s.stretch&&u.shrinkWrap){s.stretchmax=true;s.stretch=false}s.nostretch=!(s.stretch||s.stretchmax);if(t.shrinkWrap){o.center=o.end=false}q.cacheFlexes(w);q.targetEl.setWidth(20000)},cacheFlexes:function(P){var L=this,O=P.boxNames,Z=O.widthModel,T=O.heightModel,X=P.boxOptions.align.nostretch,H=0,Y=P.childItems,F=Y.length,B=[],N=0,E=0,I=0,Q=O.minWidth,C=O.minHeight,S=L._percentageRe,D=0,i=0,U,K,G,R,W,V,J,M;while(F--){K=Y[F];U=K.target;V=K[Z];if(V.calculated){K.flex=G=U.flex;if(G){H+=G;B.push(K);N+=U[Q]||0}else{R=S.exec(U[O.width]);K.percentageParallel=parseFloat(R[1])/100;++D}}if(V.configured){J=U[O.width]}else{J=U[Q]||0}I+=J;W=K[T];if(X&&W.calculated){R=S.exec(U[O.height]);K.percentagePerpendicular=parseFloat(R[1])/100;++i}if(W.configured){M=U[O.height]}else{M=U[C]||0}if(M>E){E=M}}P.flexedItems=B;P.flexedMinWidth=N;P.smallestWidth=I;P.smallestHeight=E;P.totalFlex=H;P.percentageWidths=D;P.percentageHeights=i;Ext.Array.sort(B,L.flexSortFn)},calculate:function(p){var l=this,m=p.boxNames,r=p.state,n=r.actualScroll,j=r.needsScroll,q=r.canScroll,k=r.boxPlan||(r.boxPlan={}),o=l.overflowHandler;k.targetSize=l.getContainerSize(p);if(q&&!j){r.needsScroll=j={parallel:q.parallel&&k.targetSize[m.width]<p.smallestWidth,perpendicular:q.perpendicular&&k.targetSize[m.height]<p.smallestHeight}}if(!r.parallelDone){r.parallelDone=l.calculateParallel(p,m,k)}if(!r.perpendicularDone){r.perpendicularDone=l.calculatePerpendicular(p,m,k)}if(r.parallelDone&&r.perpendicularDone){if(q&&!r.scrollPass){if(j.parallel!==n.parallel||j.perpendicular!==n.perpendicular){p.invalidate({state:{scrollPass:true,canScroll:q,needsScroll:n}});l.done=false;return}}l.publishInnerCtSize(p);if(l.done&&p.boxOptions.align.stretchmax&&!r.stretchMaxDone){l.calculateStretchMax(p,m,k);r.stretchMaxDone=true}if(o){o.calculate(p)}}else{l.done=false}},calculateParallel:function(aa,M,V){var ag=this,aj=aa.parallelSizeModel.shrinkWrap,U=M.width,ap=aa.childItems,ae=M.beforeX,Q=M.afterX,am=M.setWidth,X=ap.length,ab=aa.flexedItems,R=ab.length,ah=aa.boxOptions.pack,P=ag.padding,av=V.targetSize,ai=av[U],i=aa.state,Y=i.needsScroll,af=i.canScroll,W=0,ao=P[ae],S=ao+P[Q],ad=Ext.getScrollbarSize(),ar=ad[M.width],aw=ad[M.height],O,Z,aq,al,ak,an,au,N,T,ac,at;if(!aj&&!av[M.gotWidth]){return false}for(O=0;O<X;++O){ak=ap[O];Z=ak.marginInfo||ak.getMarginInfo();W+=Z[U];if(!ak[M.widthModel].calculated){T=ak.getProp(U);S+=T;if(isNaN(S)){return false}}}S+=W;if(aa.percentageWidths){ac=ai-W;if(isNaN(ac)){return false}for(O=0;O<X;++O){ak=ap[O];if(ak.percentageParallel){T=Math.ceil(ac*ak.percentageParallel);T=ak.setWidth(T);S+=T}}}if(aj){at=0;V.tooNarrow=false}else{at=ai-S;if(Y&&Y.perpendicular){at-=aw}V.tooNarrow=at<aa.flexedMinWidth;if(V.tooNarrow&&af&&af.parallel){i.actualScroll.parallel=true}}N=S;aq=at;al=aa.totalFlex;for(O=0;O<R;O++){ak=ab[O];an=ak.flex;au=ag.roundFlex((an/al)*aq);au=ak[am](au);N+=au;aq=Math.max(0,aq-au);al-=an}if(ah.center){ao+=aq/2;if(ao<0){ao=0}}else{if(ah.end){ao+=aq}}for(O=0;O<X;++O){ak=ap[O];Z=ak.marginInfo;ao+=Z[ae];ak.setProp(M.x,ao);ao+=Z[Q]+ak.props[U]}N+=aa.targetContext.getPaddingInfo()[U];aa.state.contentWidth=N;if(Y&&Y.perpendicular){if(aj){N+=ar}aa[M.hasOverflowY]=true;aa.target.componentLayout[M.setWidthInDom]=true;aa[M.invalidateScrollY]=Ext.isIE8}aa[M.setContentWidth](N);return true},calculatePerpendicular:function(ak,T,ae){var am=this,i=ak.state,ai=i.needsScroll,al=i.canScroll,aB=ak.perpendicularSizeModel.shrinkWrap,aD=ae.targetSize,ax=ak.childItems,af=ax.length,au=Math.max,av=T.height,at=T.setHeight,ay=T.beforeY,an=T.y,W=am.padding,aw=W[ay],ar=aD[av]-aw-W[T.afterY],Z=ak.boxOptions.align,aq=Z.stretch,ap=Z.stretchmax,Q=Z.center,R=Z.bottom,X=am.constrainAlign,Y=0,ac=0,aa=am.onBeforeConstrainInvalidateChild,ad=am.onAfterConstrainInvalidateChild,aE=Ext.getScrollbarSize().height,ag,V,ab,aj,ah,aC,ao,aA,S,U,az;if(!aB&&!aD[T.gotHeight]){return false}if(aq||((Q||R)&&!aB)){if(isNaN(ar)){return false}}if(ai&&ai.parallel){if(aB){U=true}else{ar-=aE;ae.targetSize[av]-=aE}}if(aq){aC=ar;Y=au(aC,ak.smallestHeight)}else{for(V=0;V<af;V++){ao=ax[V];aj=(ao.marginInfo||ao.getMarginInfo())[av];if(!(az=ao.percentagePerpendicular)){ab=ao.getProp(av)}else{++ac;if(aB){continue}else{ab=az*ar-aj;ab=ao[T.setHeight](ab)}}if(!aB&&X&&ao[T.heightModel].shrinkWrap&&ab>ar){ao.invalidate({before:aa,after:ad,layout:am,childHeight:ar,names:T});ak.state.parallelDone=false}if(isNaN(Y=au(Y,ab+aj,ao.target[T.minHeight]||0))){return false}}}if(U){Y+=aE;ak[T.hasOverflowX]=true;ak.target.componentLayout[T.setHeightInDom]=true;ak[T.invalidateScrollX]=Ext.isIE8}aA=ak.stretchMaxPartner;if(aA){ak.setProp("maxChildHeight",Y);S=aA.childItems;if(S&&S.length){Y=au(Y,aA.getProp("maxChildHeight"));if(isNaN(Y)){return false}}}ak[T.setContentHeight](Y+am.padding[av]+ak.targetContext.getPaddingInfo()[av]);if(U){Y-=aE}if(Y>aD[av]&&al&&al.perpendicular){i.actualScroll.perpendicular=true}ae.maxSize=Y;if(ap){aC=Y}else{if(Q||R||ac){if(X){aC=aB?Y:ar}else{aC=aB?Y:au(ar,Y)}aC-=ak.innerCtContext.getBorderInfo()[av]}}for(V=0;V<af;V++){ao=ax[V];aj=ao.marginInfo||ao.getMarginInfo();ag=aw+aj[ay];if(aq){ao[at](aC-aj[av])}else{az=ao.percentagePerpendicular;if(aB&&az){aj=ao.marginInfo||ao.getMarginInfo();ab=az*aC-aj[av];ab=ao.setHeight(ab)}if(Q){ah=aC-ao.props[av];if(ah>0){ag=aw+Math[am.alignRoundingMethod](ah/2)}}else{if(R){ag=au(0,aC-ag-ao.props[av])}}}ao.setProp(an,ag)}return true},onBeforeConstrainInvalidateChild:function(d,e){var f=e.names.heightModel;if(!d[f].constrainedMin){d[f]=Ext.layout.SizeModel.calculated}},onAfterConstrainInvalidateChild:function(d,e){var f=e.names;d.setProp(f.beforeY,0);if(d[f.heightModel].calculated){d[f.setHeight](e.childHeight)}},calculateStretchMax:function(B,v,t){var u=this,x=v.height,s=v.width,y=B.childItems,D=y.length,q=t.maxSize,r=u.onBeforeStretchMaxInvalidateChild,z=u.onAfterStretchMaxInvalidateChild,i,w,A,C;for(A=0;A<D;++A){i=y[A];w=i.props;C=q-i.getMarginInfo()[x];if(C!==w[x]||i[v.heightModel].constrained){i.invalidate({before:r,after:z,layout:u,childWidth:w[s],childHeight:C,childX:w.x,childY:w.y,names:v})}}},onBeforeStretchMaxInvalidateChild:function(d,e){var f=e.names.heightModel;if(!d[f].constrainedMax){d[f]=Ext.layout.SizeModel.calculated}},onAfterStretchMaxInvalidateChild:function(i,j){var h=j.names,g=j.childHeight,f=j.childWidth;i.setProp("x",j.childX);i.setProp("y",j.childY);if(i[h.heightModel].calculated){i[h.setHeight](g)}if(i[h.widthModel].calculated){i[h.setWidth](f)}},completeLayout:function(u){var n=this,o=u.invalidateScrollX,p=u.invalidateScrollY,t=n.overflowHandler,m=u.scrollRestore,r,v,q,s,l;if(t){t.completeLayout(u)}if(o||p){v=n.getTarget();r=v.dom;l=r.style;if(o){q=v.getStyle("overflowX");if(q==="auto"){q=l.overflowX;l.overflowX="scroll"}else{o=false}}if(p){s=v.getStyle("overflowY");if(s==="auto"){s=l.overflowY;l.overflowY="scroll"}else{p=false}}if(o||p){r.scrollWidth;if(o){l.overflowX=q}if(p){l.overflowY=s}}}if(m){u.ownerScrollable.scrollTo(m.x,m.y)}},finishedLayout:function(c){var d=this.overflowHandler;if(d){d.finishedLayout(c)}Ext.layout.container.Container.prototype.finishedLayout.apply(this,arguments)},getLayoutItems:function(){var k=Ext.layout.container.Container.prototype.getLayoutItems.call(this),q=k.length,n,o,p,i,l,m,r;for(p=0;p<q;++p){if((i=k[p]).isSplitter){continue}r=i.splitter;if(i.hidden){if(r){if(!r.hidden){r.hidden=true;if(r.el){r.el.hide()}}}continue}if(r){m=r.collapseTarget==="next"}else{m=false}o=null;if(n&&l){if(l.hidden){l.hidden=false;if(l.el){l.el.show()}}if(m){o=true}}else{if(m){o=!n}}if(o!==null&&r.hidden!==o){r.hidden=o;if(r.el){r.el.setVisible(!o)}}l=!m&&r;n=i}if(n&&l&&!l.hidden){l.hidden=true;if(l.el){l.el.hide()}}return k},getScrollerEl:function(){return this.innerCt},insertSplitter:function(k,l,i,g){var j={xtype:"splitter",id:k.id+"-splitter",hidden:i,splitterFor:k,synthetic:true},h=l+((g.collapseTarget==="prev")?1:0);j[this.names.height]="100%";if(g){Ext.apply(j,g)}k.splitter=this.owner.add(h,j)},publishInnerCtSize:function(E,C){C=C||0;var x=this,F=E.state,y=E.boxNames,z=y.height,v=y.width,A=E.boxOptions.align,t=x.padding,w=F.boxPlan,B=w.targetSize,r=w.maxSize,u=F.needsScroll,q=E.innerCtContext,D,s;if(E.parallelSizeModel.shrinkWrap||(w.tooNarrow&&F.canScroll)){D=F.contentWidth-E.targetContext.getPaddingInfo()[v]}else{D=B[v];if(u&&u.perpendicular){D-=Ext.getScrollbarSize()[v]}}D-=C;x.owner.tooNarrow=w.tooNarrow;if(A.stretch){s=r}else{s=w.maxSize+t[y.beforeY]+t[y.afterY]+q.getBorderInfo()[z];if(!E.perpendicularSizeModel.shrinkWrap&&(A.center||A.bottom)){s=Math.max(B[z],s)}}q[y.setWidth](D);q[y.setHeight](s);E.targetElContext.setWidth(E.innerCtContext.props.width-(x.vertical?0:(C||0)));if(isNaN(D+s)){x.done=false}},onAdd:function(g,f){var h=this,e=h.enableSplitters&&g.split&&!g.isButton;Ext.layout.container.Container.prototype.onAdd.apply(this,arguments);if(e){if(e===true){e={collapseTarget:"next"}}else{if(Ext.isString(e)){e={collapseTarget:e==="before"?"next":"prev"}}else{e=Ext.apply({collapseTarget:e.side==="before"?"next":"prev"},e)}}h.insertSplitter(g,f,!!g.hidden,e)}},onRemove:function(i,n){var m=this,k=m.names,j=m.owner,l=i.splitter,p=m.overflowHandler,o;Ext.layout.container.Container.prototype.onRemove.apply(this,arguments);if(l&&j.contains(l)){j.doRemove(l,true);i.splitter=null}if(p){p.onRemove(i)}if(i.layoutMarginCap===m.id){delete i.layoutMarginCap}if(!j.destroying&&!n&&i.rendered){o=i.getEl();if(o){o.setStyle(k.beforeY,"");o.setStyle(k.beforeX,"");o.setStyle("margin","")}}},applyOverflowHandler:function(d,e){var f;if(typeof d==="string"){d={type:d}}f=d.type;if(e&&e.type===d.type){delete d.type;e.setConfig(d);return e}d.layout=this;return Ext.Factory.boxOverflow(d)},getRenderTarget:function(){return this.targetEl},getElementTarget:function(){return this.innerCt},destroy:function(){var b=this;Ext.destroy(b.innerCt,b.overflowHandler);b.flexSortFn=b.innerCt=null;Ext.layout.container.Container.prototype.destroy.call(this)},getRenderData:function(){var b=Ext.layout.container.Container.prototype.getRenderData.call(this);b.targetElCls=this.targetElCls;return b},updateVertical:function(f){var h=this,j=h.overflowHandler,g=h.owner,i=h._props;Ext.apply(h,f?i.vbox:i.hbox);if(j&&g&&g.rendered){j.setVertical(f)}},_props:{hbox:{direction:"horizontal",oppositeDirection:"vertical",horizontal:true,vertical:false,names:{beforeX:"left",beforeScrollX:"left",leftCap:"Left",afterX:"right",width:"width",contentWidth:"contentWidth",minWidth:"minWidth",maxWidth:"maxWidth",widthCap:"Width",widthModel:"widthModel",widthIndex:0,x:"x",getX:"getX",setX:"setX",scrollLeft:"scrollLeft",overflowX:"overflowX",hasOverflowX:"hasOverflowX",invalidateScrollX:"invalidateScrollX",parallelMargins:"lr",center:"middle",beforeY:"top",afterY:"bottom",height:"height",contentHeight:"contentHeight",minHeight:"minHeight",maxHeight:"maxHeight",heightCap:"Height",heightModel:"heightModel",heightIndex:1,y:"y",getY:"getY",setY:"setY",overflowY:"overflowY",hasOverflowY:"hasOverflowY",invalidateScrollY:"invalidateScrollY",perpendicularMargins:"tb",getWidth:"getWidth",getHeight:"getHeight",setWidth:"setWidth",setHeight:"setHeight",gotWidth:"gotWidth",gotHeight:"gotHeight",setContentWidth:"setContentWidth",setContentHeight:"setContentHeight",setWidthInDom:"setWidthInDom",setHeightInDom:"setHeightInDom",getScrollLeft:"getScrollLeft",setScrollLeft:"setScrollLeft",scrollTo:"scrollTo"},sizePolicy:{flex:{"":{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},stretch:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1},stretchmax:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:1}},"":{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},stretch:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},stretchmax:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:1}}},vbox:{direction:"vertical",oppositeDirection:"horizontal",horizontal:false,vertical:true,names:{beforeX:"top",beforeScrollX:"top",leftCap:"Top",afterX:"bottom",width:"height",contentWidth:"contentHeight",minWidth:"minHeight",maxWidth:"maxHeight",widthCap:"Height",widthModel:"heightModel",widthIndex:1,x:"y",getX:"getY",setX:"setY",scrollLeft:"scrollTop",overflowX:"overflowY",hasOverflowX:"hasOverflowY",invalidateScrollX:"invalidateScrollY",parallelMargins:"tb",center:"center",beforeY:"left",afterY:"right",height:"width",contentHeight:"contentWidth",minHeight:"minWidth",maxHeight:"maxWidth",heightCap:"Width",heightModel:"widthModel",heightIndex:0,y:"x",getY:"getX",setY:"setX",overflowY:"overflowX",hasOverflowY:"hasOverflowX",invalidateScrollY:"invalidateScrollX",perpendicularMargins:"lr",getWidth:"getHeight",getHeight:"getWidth",setWidth:"setHeight",setHeight:"setWidth",gotWidth:"gotHeight",gotHeight:"gotWidth",setContentWidth:"setContentHeight",setContentHeight:"setContentWidth",setWidthInDom:"setHeightInDom",setHeightInDom:"setWidthInDom",getScrollLeft:"getScrollTop",setScrollLeft:"setScrollTop",scrollTo:"scrollTo"},sizePolicy:{flex:{"":{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},stretch:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1},stretchmax:{readsWidth:1,readsHeight:0,setsWidth:1,setsHeight:1}},"":{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},stretch:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},stretchmax:{readsWidth:1,readsHeight:1,setsWidth:1,setsHeight:0}}}}},1,0,0,0,["layout.box"],0,[Ext.layout.container,"Box",Ext.layout,"BoxLayout"],0));(Ext.cmd.derive("Ext.layout.container.HBox",Ext.layout.container.Box,{alternateClassName:"Ext.layout.HBoxLayout",type:"hbox",vertical:false},0,0,0,0,["layout.hbox"],0,[Ext.layout.container,"HBox",Ext.layout,"HBoxLayout"],0));(Ext.cmd.derive("Ext.layout.container.VBox",Ext.layout.container.Box,{alternateClassName:"Ext.layout.VBoxLayout",type:"vbox",vertical:true},0,0,0,0,["layout.vbox"],0,[Ext.layout.container,"VBox",Ext.layout,"VBoxLayout"],0));(Ext.cmd.derive("Ext.toolbar.Toolbar",Ext.container.Container,{alternateClassName:"Ext.Toolbar",isToolbar:true,baseCls:"x-toolbar",ariaRole:"toolbar",defaultType:"button",layout:undefined,vertical:undefined,enableOverflow:false,overflowHandler:null,defaultButtonUI:"default-toolbar",defaultFieldUI:"default",defaultFooterButtonUI:"default",defaultFooterFieldUI:"default",trackMenus:true,itemCls:"x-toolbar-item",statics:{shortcuts:{"-":"tbseparator"," ":"tbspacer"},shortcutsHV:{0:{"->":{xtype:"tbfill",height:0}},1:{"->":{xtype:"tbfill",width:0}}}},initComponent:function(){var f=this,d=f.layout,e=f.vertical;if(e===undefined){f.vertical=e=f.dock==="right"||f.dock==="left"}f.layout=d=Ext.applyIf(Ext.isString(d)?{type:d}:d||{},{type:e?"vbox":"hbox",align:e?"stretchmax":"middle"});if(f.overflowHandler){d.overflowHandler=f.overflowHandler}else{if(f.enableOverflow){d.overflowHandler="menu"}}if(e){f.addClsWithUI("vertical")}if(f.ui==="footer"){f.ignoreBorderManagement=true}Ext.container.Container.prototype.initComponent.call(this)},getRefItems:function(g){var h=this,f=Ext.container.Container.prototype.getRefItems.apply(this,arguments),i=h.layout,j;if(g&&(h.enableOverflow||(h.overflowHandler==="menu"))){j=i.overflowHandler;if(j&&j.menu){f=f.concat(j.menu.getRefItems(g))}}return f},lookupComponent:function(g){var h=arguments,f,c;if(typeof g==="string"){c=Ext.toolbar.Toolbar;f=c.shortcutsHV[this.vertical?1:0][g]||c.shortcuts[g];if(typeof f==="string"){g={xtype:f}}else{if(f){g=Ext.apply({},f)}else{g={xtype:"tbtext",text:g}}}this.applyDefaults(g);h=[g]}return Ext.container.Container.prototype.lookupComponent.apply(this,h)},onBeforeAdd:function(e){var h=this,g=h.ui==="footer",f=g?h.defaultFooterButtonUI:h.defaultButtonUI;if(e.isSegmentedButton){if(e.getDefaultUI()==="default"&&!e.config.hasOwnProperty("defaultUI")){e.setDefaultUI(f)}}else{if(e.ui==="default"&&!e.hasOwnProperty("ui")){if(e.isButton){e.ui=f}else{if(e.isFormField){e.ui=g?h.defaultFooterFieldUI:h.defaultFieldUI}}}}if(e instanceof Ext.toolbar.Separator){e.setUI(h.vertical?"vertical":"horizontal")}Ext.container.Container.prototype.onBeforeAdd.apply(this,arguments)},onAdd:function(b){if(b.needArrowKeys&&this.enableFocusableContainer){this.enableFocusableContainer=false}Ext.container.Container.prototype.onAdd.apply(this,arguments);this.trackMenu(b)},onRemove:function(b){Ext.container.Container.prototype.onRemove.apply(this,arguments);this.trackMenu(b,true)},privates:{applyDefaults:function(b){if(!Ext.isString(b)){b=Ext.container.Container.prototype.applyDefaults.apply(this,arguments)}return b},trackMenu:function(f,e){var d=this;if(d.trackMenus&&f.menu){f[e?"un":"on"]({mouseover:d.onButtonOver,menushow:d.onButtonMenuShow,menuhide:d.onButtonMenuHide,scope:d})}},getChildItemsToDisable:function(){return this.items.getRange()},onButtonOver:function(d,f){var e=this.activeMenuBtn;if(e&&e!==d){e.hideMenu();d.focus();d.showMenu(f);this.activeMenuBtn=d}},onButtonMenuShow:function(b){this.activeMenuBtn=b},onButtonMenuHide:function(b){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.define("Ext.theme.neptune.toolbar.Toolbar",{override:"Ext.toolbar.Toolbar",usePlainButtons:false,border:false});(Ext.cmd.derive("Ext.dd.DragDrop",Ext.Base,{constructor:function(f,e,d){if(f){this.init(f,e,d)}},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(d,c){},startDrag:function(d,c){},b4Drag:function(b){},onDrag:function(b){},onDragEnter:function(d,c){},b4DragOver:function(b){},onDragOver:function(d,c){},b4DragOut:function(b){},onDragOut:function(d,c){},b4DragDrop:function(b){},onDragDrop:function(d,c){},onInvalidDrop:function(b){},b4EndDrag:function(b){},endDrag:function(b){},b4MouseDown:function(b){},onMouseDown:function(b){},onMouseUp:function(b){},onAvailable:function(){},defaultPadding:{left:0,right:0,top:0,bottom:0},constrainTo:function(s,u,m){if(Ext.isNumber(u)){u={left:u,right:u,top:u,bottom:u}}u=u||this.defaultPadding;var q=Ext.get(this.getEl()).getBox(),c=Ext.get(s),n=c.getScroll(),r,p=c.dom,o,t,v;if(p===document.body){r={x:n.left,y:n.top,width:Ext.Element.getViewportWidth(),height:Ext.Element.getViewportHeight()}}else{o=c.getXY();r={x:o[0],y:o[1],width:p.clientWidth,height:p.clientHeight}}t=q.y-r.y;v=q.x-r.x;this.resetConstraints();this.setXConstraint(v-(u.left||0),r.width-v-q.width-(u.right||0),this.xTickSize);this.setYConstraint(t-(u.top||0),r.height-t-q.height-(u.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(g,f,e){var h=this;h.el=h.el||Ext.get(g);h.initTarget(g,f,e);Ext.get(h.id).on(h.triggerEvent,h.handleMouseDown,h)},initTarget:function(f,e,d){this.config=d||{};this.DDMInstance=Ext.dd.DragDropManager;this.groups={};if(typeof f!=="string"){f=Ext.id(f)}this.id=f;this.addToGroup((e)?e:"default");this.handleElId=f;this.setDragElId(f);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(h,f,g,e){if(!f&&0!==f){this.padding=[h,h,h,h]}else{if(!g&&0!==g){this.padding=[h,f,h,f]}else{this.padding=[h,f,g,e]}}},setInitPosition:function(k,l){var j=this.getEl(),g,h,i;if(!this.DDMInstance.verifyEl(j)){return}g=k||0;h=l||0;i=Ext.fly(j).getXY();this.initPageX=i[0]-g;this.initPageY=i[1]-h;this.lastPageX=i[0];this.lastPageY=i[1];this.setStartPosition(i)},setStartPosition:function(c){var d=c||Ext.fly(this.getEl()).getXY();this.deltaSetXY=null;this.startPageX=d[0];this.startPageY=d[1]},addToGroup:function(b){this.groups[b]=true;this.DDMInstance.regDragDrop(this,b)},removeFromGroup:function(b){if(this.groups[b]){delete this.groups[b]}this.DDMInstance.removeDDFromGroup(this,b)},setDragElId:function(b){this.dragElId=b},setHandleElId:function(b){if(typeof b!=="string"){b=Ext.id(b)}this.handleElId=b;this.DDMInstance.regHandle(this.id,b)},setOuterHandleElId:function(b){if(typeof b!=="string"){b=Ext.id(b)}Ext.get(b).on(this.triggerEvent,this.handleMouseDown,this);this.setHandleElId(b);this.hasOuterHandles=true},unreg:function(){var c=this,d;if(c._domRef){d=Ext.fly(c.id);if(d){d.un(c.triggerEvent,c.handleMouseDown,c)}}c._domRef=null;c.DDMInstance._remove(c,c.autoGroup)},destroy:function(){this.unreg();this.callParent()},isLocked:function(){return(this.DDMInstance.isLocked()||this.locked)},handleMouseDown:function(f,d){var e=this;if((e.primaryButtonOnly&&f.button)||e.isLocked()){return}e.DDMInstance.refreshCache(e.groups);if(e.hasOuterHandles||e.DDMInstance.isOverTarget(f.getPoint(),e)){if(e.clickValidator(f)){e.setStartPosition();e.b4MouseDown(f);e.onMouseDown(f);e.DDMInstance.handleMouseDown(f,e);e.DDMInstance.stopEvent(f)}}},clickValidator:function(c){var d=c.getTarget();return(this.isValidHandleChild(d)&&(this.id===this.handleElId||this.DDMInstance.handleWasClicked(d,this.id)))},addInvalidHandleType:function(d){var c=d.toUpperCase();this.invalidHandleTypes[c]=c},addInvalidHandleId:function(b){if(typeof b!=="string"){b=Ext.id(b)}this.invalidHandleIds[b]=b},addInvalidHandleClass:function(b){this.invalidHandleClasses.push(b)},removeInvalidHandleType:function(d){var c=d.toUpperCase();delete this.invalidHandleTypes[c]},removeInvalidHandleId:function(b){if(typeof b!=="string"){b=Ext.id(b)}delete this.invalidHandleIds[b]},removeInvalidHandleClass:function(e){var g=this.invalidHandleClasses,f=g.length,h;for(h=0;h<f;++h){if(g[h]===e){delete g[h]}}},isValidHandleChild:function(k){var l=true,i,e,h;try{i=k.nodeName.toUpperCase()}catch(j){i=k.nodeName}l=l&&!this.invalidHandleTypes[i];l=l&&!this.invalidHandleIds[k.id];for(e=0,h=this.invalidHandleClasses.length;l&&e<h;++e){l=!Ext.fly(k).hasCls(this.invalidHandleClasses[e])}return l},setXTicks:function(g,f){this.xTicks=[];this.xTickSize=f;var h={},e;for(e=this.initPageX;e>=this.minX;e=e-f){if(!h[e]){this.xTicks[this.xTicks.length]=e;h[e]=true}}for(e=this.initPageX;e<=this.maxX;e=e+f){if(!h[e]){this.xTicks[this.xTicks.length]=e;h[e]=true}}Ext.Array.sort(this.xTicks,this.DDMInstance.numericSort)},setYTicks:function(g,f){this.yTicks=[];this.yTickSize=f;var h={},e;for(e=this.initPageY;e>=this.minY;e=e-f){if(!h[e]){this.yTicks[this.yTicks.length]=e;h[e]=true}}for(e=this.initPageY;e<=this.maxY;e=e+f){if(!h[e]){this.yTicks[this.yTicks.length]=e;h[e]=true}}Ext.Array.sort(this.yTicks,this.DDMInstance.numericSort)},setXConstraint:function(f,d,e){this.leftConstraint=f;this.rightConstraint=d;this.minX=this.initPageX-f;this.maxX=this.initPageX+d;if(e){this.setXTicks(this.initPageX,e)}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(e,f,d){this.topConstraint=e;this.bottomConstraint=f;this.minY=this.initPageY-e;this.maxY=this.initPageY+f;if(d){this.setYTicks(this.initPageY,d)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var c=(this.maintainOffset)?this.lastPageX-this.initPageX:0,d=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(c,d)}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(j,m){if(!m){return j}else{if(m[0]>=j){return m[0]}else{var h,i,n,k,l;for(h=0,i=m.length;h<i;++h){n=h+1;if(m[n]&&m[n]>=j){k=j-m[h];l=m[n]-j;return(l>k)?m[h]:m[n]}}return m[m.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(f,e,d){if(f){this.init(f,e,d)}},scroll:true,autoOffset:function(h,e){var f=h-this.startPageX,g=e-this.startPageY;this.setDelta(f,g)},setDelta:function(c,d){this.deltaX=c;this.deltaY=d},setDragElPos:function(f,d){var e=this.getDragEl();this.alignElWithMouse(e,f,d)},alignElWithMouse:function(u,r,t){var q=this.getTargetCoord(r,t),s=u.dom?u:Ext.fly(u,"_dd"),l=s.getSize(),o=Ext.Element,n,v,m,p;if(!this.deltaSetXY){n=this.cachedViewportSize={width:o.getDocumentWidth(),height:o.getDocumentHeight()};v=[Math.max(0,Math.min(q.x,n.width-l.width)),Math.max(0,Math.min(q.y,n.height-l.height))];s.setXY(v);m=this.getLocalX(s);p=s.getLocalY();this.deltaSetXY=[m-q.x,p-q.y]}else{n=this.cachedViewportSize;this.setLocalXY(s,Math.max(0,Math.min(q.x+this.deltaSetXY[0],n.width-l.width)),Math.max(0,Math.min(q.y+this.deltaSetXY[1],n.height-l.height)))}this.cachePosition(q.x,q.y);this.autoScroll(q.x,q.y,u.offsetHeight,u.offsetWidth);return q},cachePosition:function(d,e){if(d){this.lastPageX=d;this.lastPageY=e}else{var f=Ext.fly(this.getEl()).getXY();this.lastPageX=f[0];this.lastPageY=f[1]}},autoScroll:function(s,t,x,r){if(this.scroll){var q=Ext.Element.getViewportHeight(),A=Ext.Element.getViewportWidth(),h=this.DDMInstance.getScrollTop(),y=this.DDMInstance.getScrollLeft(),u=x+t,p=r+s,v=(q+h-t-this.deltaY),w=(A+y-s-this.deltaX),z=40,B=(document.all)?80:30;if(u>q&&v<z){window.scrollTo(y,h+B)}if(t<h&&h>0&&t-h<z){window.scrollTo(y,h-B)}if(p>A&&w<z){window.scrollTo(y+B,h)}if(s<y&&y>0&&s-y<z){window.scrollTo(y-B,h)}}},getTargetCoord:function(h,e){var f=h-this.deltaX,g=e-this.deltaY;if(this.constrainX){if(f<this.minX){f=this.minX}if(f>this.maxX){f=this.maxX}}if(this.constrainY){if(g<this.minY){g=this.minY}if(g>this.maxY){g=this.maxY}}f=this.getTick(f,this.xTicks);g=this.getTick(g,this.yTicks);return{x:f,y:g}},applyConfig:function(){Ext.dd.DragDrop.prototype.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(c){var d=c.getXY();this.autoOffset(d[0],d[1])},b4Drag:function(c){var d=c.getXY();this.setDragElPos(d[0],d[1])},toString:function(){return("DD "+this.id)},getLocalX:function(b){return b.getLocalX()},setLocalXY:function(d,e,f){d.setLocalXY(e,f)}},3,0,0,0,0,0,[Ext.dd,"DD"],0));(Ext.cmd.derive("Ext.dd.DDProxy",Ext.dd.DD,{statics:{dragElId:"ygddfdiv"},constructor:function(f,e,d){if(f){this.init(f,e,d);this.initFrame()}},resizeFrame:true,centerFrame:false,createFrame:function(){var e=this,f=document.body,g,h;if(!f||!f.firstChild){Ext.defer(function(){e.createFrame()},50);return}g=this.getDragEl();if(!g){g=document.createElement("div");g.id=this.dragElId;g.setAttribute("role","presentation");h=g.style;h.position="absolute";h.visibility="hidden";h.cursor="move";h.border="2px solid #aaa";h.zIndex=999;f.insertBefore(g,f.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(h,i){var j=this,g=j.getDragEl(),f=g.style;j._resizeProxy();if(j.centerFrame){j.setDelta(Math.round(parseInt(f.width,10)/2),Math.round(parseInt(f.height,10)/2))}j.setDragElPos(h,i);Ext.fly(g).show()},_resizeProxy:function(){if(this.resizeFrame){var b=this.getEl();Ext.fly(this.getDragEl()).setSize(b.offsetWidth,b.offsetHeight)}},b4MouseDown:function(h){var e=h.getXY(),f=e[0],g=e[1];this.autoOffset(f,g);this.setDragElPos(f,g)},b4StartDrag:function(d,c){this.showFrame(d,c)},b4EndDrag:function(b){Ext.fly(this.getDragEl()).hide()},endDrag:function(f){var d=this.getEl(),e=this.getDragEl();e.style.visibility="";this.beforeMove();d.style.visibility="hidden";Ext.dd.DDM.moveToEl(d,e);e.style.visibility="hidden";d.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:['<div class="x-dd-drop-icon" role="presentation"></div><div id="{id}-ghost" data-ref="ghost" class="x-dd-drag-ghost" role="presentation"></div>'],repairCls:"x-dd-drag-repair",ariaRole:"presentation",skipLayout:true,constructor:function(d){var c=this;d=d||{};Ext.apply(c,{hideMode:"visibility",hidden:true,floating:true,id:c.id||Ext.id(),cls:"x-dd-drag-proxy "+this.dropNotAllowed,shadow:d.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(b){b=b||this.dropNotAllowed;if(this.dropStatus!==b){this.el.replaceCls(this.dropStatus,b);this.dropStatus=b}},reset:function(d){var f=this,e="x-dd-drag-proxy ";f.el.replaceCls(e+f.dropAllowed,e+f.dropNotAllowed);f.dropStatus=f.dropNotAllowed;if(d){f.ghost.setHtml("")}},update:function(d){if(typeof d==="string"){this.ghost.setHtml(d)}else{this.ghost.setHtml("");d.style.margin="0";this.ghost.dom.appendChild(d)}var c=this.ghost.dom.firstChild;if(c){Ext.fly(c).setStyle("float","none")}},getGhost:function(){return this.ghost},hide:function(b){Ext.Component.prototype.hide.call(this);if(b){this.reset(true)}},stop:function(){if(this.anim&&this.anim.isAnimated&&this.anim.isAnimated()){this.anim.stop()}},sync:function(){this.el.syncUnderlays()},repair:function(h,g,f){var e=this;e.callback=g;e.scope=f;if(h&&e.animRepair!==false){e.el.addCls(e.repairCls);e.el.setUnderlaysVisible(false);e.anim=e.el.animate({duration:e.repairDuration||500,easing:"ease-out",to:{x:h[0],y:h[1]},stopAnimation:true,callback:e.afterRepair,scope:e})}else{e.afterRepair()}},afterRepair:function(){var b=this;b.hide(true);b.el.removeCls(b.repairCls);if(typeof b.callback==="function"){b.callback.call(b.scope||b)}delete b.callback;delete b.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(c,d){this.el=Ext.get(c);if(!this.dragData){this.dragData={}}Ext.apply(this,d);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(b){return this.dragData},onDragEnter:function(h,g){var e=Ext.dd.DragDropManager.getDDById(g),f;this.cachedTarget=e;if(this.beforeDragEnter(e,h,g)!==false){if(e.isNotifyTarget){f=e.notifyEnter(this,h,this.dragData);this.proxy.setStatus(f)}else{this.proxy.setStatus(this.dropAllowed)}if(this.afterDragEnter){this.afterDragEnter(e,h,g)}}},beforeDragEnter:function(d,e,f){return true},onDragOver:function(h,g){var e=this.cachedTarget||Ext.dd.DragDropManager.getDDById(g),f;if(this.beforeDragOver(e,h,g)!==false){if(e.isNotifyTarget){f=e.notifyOver(this,h,this.dragData);this.proxy.setStatus(f)}if(this.afterDragOver){this.afterDragOver(e,h,g)}}},beforeDragOver:function(d,e,f){return true},onDragOut:function(d,f){var e=this.cachedTarget||Ext.dd.DragDropManager.getDDById(f);if(this.beforeDragOut(e,d,f)!==false){if(e.isNotifyTarget){e.notifyOut(this,d,this.dragData)}this.proxy.reset();if(this.afterDragOut){this.afterDragOut(e,d,f)}}this.cachedTarget=null},beforeDragOut:function(d,e,f){return true},onDragDrop:function(d,f){var e=this.cachedTarget||Ext.dd.DragDropManager.getDDById(f);if(this.beforeDragDrop(e,d,f)!==false){if(e.isNotifyTarget){if(e.notifyDrop(this,d,this.dragData)!==false){this.onValidDrop(e,d,f)}else{this.onInvalidDrop(e,d,f)}}else{this.onValidDrop(e,d,f)}if(this.afterDragDrop){this.afterDragDrop(e,d,f)}}delete this.cachedTarget},beforeDragDrop:function(d,e,f){return true},onValidDrop:function(d,e,f){this.hideProxy();if(this.afterValidDrop){this.afterValidDrop(d,e,f)}},getRepairXY:function(c,d){return this.el.getXY()},onInvalidDrop:function(h,e,g){var f=this;if(!e){e=h;h=null;g=e.getTarget().id}if(f.beforeInvalidDrop(h,e,g)!==false){if(f.cachedTarget){if(f.cachedTarget.isNotifyTarget){f.cachedTarget.notifyOut(f,e,f.dragData)}f.cacheTarget=null}f.proxy.repair(f.getRepairXY(e,f.dragData),f.afterRepair,f);if(f.afterInvalidDrop){f.afterInvalidDrop(e,g)}}},afterRepair:function(){var b=this;if(Ext.enableFx){b.el.highlight(b.repairHighlightColor)}b.dragging=false},beforeInvalidDrop:function(d,e,f){return true},handleMouseDown:function(c){if(this.dragging){return}var d=this.getDragData(c);if(d&&this.onBeforeDrag(d,c)!==false){this.dragData=d;this.proxy.stop();Ext.dd.DDProxy.prototype.handleMouseDown.apply(this,arguments)}},onBeforeDrag:function(d,c){return true},onStartDrag:Ext.emptyFn,alignElWithMouse:function(){this.proxy.ensureAttachedToBody(true);return Ext.dd.DDProxy.prototype.alignElWithMouse.apply(this,arguments)},startDrag:function(d,c){this.proxy.reset();this.proxy.hidden=false;this.dragging=true;this.proxy.update("");this.onInitDrag(d,c);this.proxy.show()},onInitDrag:function(e,f){var d=this.el.dom.cloneNode(true);d.id=Ext.id();this.proxy.update(d);this.onStartDrag(e,f);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(b){},endDrag:function(b){this.onEndDrag(this.dragData,b)},onEndDrag:function(d,c){},autoOffset:function(d,c){this.setDelta(-12,-20)},destroy:function(){Ext.dd.DDProxy.prototype.destroy.call(this);Ext.destroy(this.proxy)}},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(e,d){var f=this;f.panel=e;f.id=f.panel.id+"-ddproxy";Ext.apply(f,d)},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 b=this;if(b.ghost){if(b.proxy){b.proxy.destroy();delete b.proxy}b.panel.unghost(null,b.moveOnDrag);delete b.ghost}},show:function(){var c=this,d;if(!c.ghost){d=c.panel.getSize();c.panel.el.setVisibilityMode(Ext.Element.DISPLAY);c.ghost=c.panel.ghost();if(c.insertProxy){c.proxy=c.panel.el.insertSibling({role:"presentation",cls:"x-panel-dd-spacer"});c.proxy.setSize(d)}}},repair:function(d,f,e){this.hide();Ext.callback(f,e||this)},moveProxy:function(d,c){if(this.proxy){d.insertBefore(this.proxy.dom,c)}}},1,0,0,0,0,0,[Ext.panel,"Proxy",Ext.dd,"PanelProxy"],0));(Ext.cmd.derive("Ext.panel.DD",Ext.dd.DragSource,{constructor:function(d,e){var f=this;f.panel=d;f.dragData={panel:d};f.panelProxy=new Ext.panel.Proxy(d,e);f.proxy=f.panelProxy.proxy;Ext.dd.DragSource.prototype.constructor.call(this,d.el,e);f.setupEl(d)},setupEl:function(f){var h=this,g=f.header,e=f.body;if(g){h.setHandleElId(g.id);e=g.el}if(e){e.setStyle("cursor","move");h.scroll=false}else{f.on("boxready",h.setupEl,h,{single:true})}},showFrame:Ext.emptyFn,startDrag:Ext.emptyFn,b4StartDrag:function(d,c){this.panelProxy.show()},b4MouseDown:function(h){var e=h.getXY(),f=e[0],g=e[1];this.autoOffset(f,g)},onInitDrag:function(d,c){this.onStartDrag(d,c);return true},createFrame:Ext.emptyFn,getDragEl:function(c){var d=this.panelProxy.ghost;if(d){return d.el.dom}},endDrag:function(b){this.panelProxy.hide();this.panel.saveState()},autoOffset:function(d,c){d-=this.startPageX;c-=this.startPageY;this.setDelta(d,c)},onInvalidDrop:function(h,e,g){var f=this;if(f.beforeInvalidDrop(h,e,g)!==false){if(f.cachedTarget){if(f.cachedTarget.isNotifyTarget){f.cachedTarget.notifyOut(f,e,f.dragData)}f.cacheTarget=null}if(f.afterInvalidDrop){f.afterInvalidDrop(e,g)}}}},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 d=this,f,e;Ext.layout.component.Component.prototype.finishRender.call(this);f=d.getRenderTarget();e=d.getDockedItems();d.finishRenderItems(f,e)},isItemBoxParent:function(b){return true},isItemShrinkWrap:function(b){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 t=this,D=t.owner,u,i,x=t.lastDockedItems,y=t.borders,C=D.dockedItems.generation,B=t.noBorderClassesSides,s=t.borderWidthProps,z,v,q,r,w,A=t.collapsed;if(t.initializedBorders===C||(D.border&&!D.manageBodyBorders)||(D.collapsed&&D.collapseMode==="mini")){return}t.initializedBorders=C;t.collapsed=false;t.lastDockedItems=i=t.getLayoutItems();t.collapsed=A;u={top:[],right:[],bottom:[],left:[]};for(z=0,v=i.length;z<v;z++){q=i[z];r=q.dock;if(q.ignoreBorderManagement){continue}if(!u[r].satisfied){u[r].push(q);u[r].satisfied=true}if(!u.top.satisfied&&r!=="bottom"){u.top.push(q)}if(!u.right.satisfied&&r!=="left"){u.right.push(q)}if(!u.bottom.satisfied&&r!=="top"){u.bottom.push(q)}if(!u.left.satisfied&&r!=="right"){u.left.push(q)}}if(x){for(z=0,v=x.length;z<v;z++){q=x[z];if(!q.destroyed&&!q.ignoreBorderManagement&&!D.manageBodyBorders){q.removeCls(t.noBorderClasses)}}}if(y){for(w in y){if(D.manageBodyBorders&&y[w].satisfied){D.setBodyStyle(s[w],"")}}}for(w in u){v=u[w].length;if(!D.manageBodyBorders){for(z=0;z<v;z++){u[w][z].addCls(B[w])}if((!u[w].satisfied&&!D.bodyBorder)||D.bodyBorder===false){D.addBodyCls(B[w])}else{D.removeBodyCls(B[w])}}else{if(u[w].satisfied){D.setBodyStyle(s[w],"1px")}}}t.borders=u},beforeLayoutCycle:function(k){var n=this,h=n.owner,j=n.sizeModels.shrinkWrap,l=h.shrinkWrapDock,m,i;if(h.collapsed){if(h.collapsedVertical()){i=true;k.measureDimensions=1}else{m=true;k.measureDimensions=2}}k.collapsedVert=i;k.collapsedHorz=m;if(i){k.heightModel=j}else{if(m){k.widthModel=j}}l=l===true?3:(l||0);k.shrinkWrapDockHeight=(l&1)&&k.heightModel.shrinkWrap;k.shrinkWrapDockWidth=(l&2)&&k.widthModel.shrinkWrap},beginLayout:function(y){var s=this,z=s.owner,i=s.getLayoutItems(),A=y.context,w=i.length,t=s.lastCollapsedState,r,u,p,B,x,v,q;Ext.layout.component.Component.prototype.beginLayout.apply(this,arguments);v=z.getCollapsed();if(v!==t&&t!==undefined){if(s.owner.collapsed){y.isCollapsingOrExpanding=1;z.addClsWithUI(z.collapsedCls)}else{y.isCollapsingOrExpanding=2;z.removeClsWithUI(z.collapsedCls);y.lastCollapsedState=s.lastCollapsedState}}s.lastCollapsedState=v;y.dockedItems=r=[];for(u=0;u<w;u++){p=i[u];if(p.rendered){q=p.dock;B=A.getCmp(p);B.dockedAt={x:0,y:0};B.offsets=x=Ext.Element.parseBox(p.offsets||0);B.horizontal=q==="top"||q==="bottom";x.width=x.left+x.right;x.height=x.top+x.bottom;r.push(B)}}y.bodyContext=y.getEl("body")},beginLayoutCycle:function(s){var p=this,i=s.dockedItems,q=i.length,t=p.owner,o=t.frameBody,l=p.lastHeightModel,r,m,n;Ext.layout.component.Component.prototype.beginLayoutCycle.apply(this,arguments);if(p.owner.manageHeight){if(p.lastBodyDisplay){t.body.dom.style.display=p.lastBodyDisplay=""}}else{if(p.lastBodyDisplay!=="inline-block"){t.body.dom.style.display=p.lastBodyDisplay="inline-block"}if(l&&l.shrinkWrap&&!s.heightModel.shrinkWrap){t.body.dom.style.marginBottom=""}}if(s.widthModel.auto){if(s.widthModel.shrinkWrap){t.el.setWidth(null)}t.body.setWidth(null);if(o){o.setWidth(null)}}if(s.heightModel.auto){t.body.setHeight(null);if(o){o.setHeight(null)}}if(s.collapsedVert){s.setContentHeight(0)}else{if(s.collapsedHorz){s.setContentWidth(0)}}for(r=0;r<q;r++){m=i[r].target;n=m.dock;if(n==="right"){m.setLocalX(0)}else{if(n!=="left"){continue}}}},calculate:function(u){var n=this,v=n.measureAutoDimensions(u,u.measureDimensions),w=u.state,o=w.horzDone,t=w.vertDone,s=u.bodyContext,p,x,q,r,m;u.borderInfo||u.getBorderInfo();u.paddingInfo||u.getPaddingInfo();u.frameInfo||u.getFrameInfo();s.borderInfo||s.getBorderInfo();s.paddingInfo||s.getPaddingInfo();if(!u.frameBorder){if(!(p=u.framing)){u.frameBorder=u.borderInfo;u.framePadding=u.paddingInfo}else{u.frameBorder=p.border;u.framePadding=p.padding}}x=!o&&n.createAxis(u,v.contentWidth,u.widthModel,n.horzAxisProps,u.collapsedHorz);q=!t&&n.createAxis(u,v.contentHeight,u.heightModel,n.vertAxisProps,u.collapsedVert);for(r=0,m=u.dockedItems.length;m--;++r){if(x){n.dockChild(u,x,m,r)}if(q){n.dockChild(u,q,m,r)}}if(x&&n.finishAxis(u,x)){w.horzDone=o=x}if(q&&n.finishAxis(u,q)){w.vertDone=t=q}if(o&&t&&n.finishConstraints(u,o,t)){n.finishPositions(u,o,t)}else{n.done=false}},createAxis:function(z,F,J,C,K){var u=this,v=0,M=u.owner,I=M[C.maxSize],L=M[C.minSize]||0,B=C.dockBegin,G=C.dockEnd,x=C.pos,D=C.size,E=I!=null,A=J.shrinkWrap,N,w,y,H;if(A){if(K){H=0}else{N=z.bodyContext;H=F+N.borderInfo[D]}}else{w=z.frameBorder;y=z.framePadding;v=w[B]+y[B];H=z.getProp(D)-(w[G]+y[G])}return{shrinkWrap:J.shrinkWrap,sizeModel:J,initialBegin:v,begin:v,end:H,collapsed:K,horizontal:C.horizontal,ignoreFrameBegin:null,ignoreFrameEnd:null,initialSize:H-v,maxChildSize:0,hasMinMaxConstraints:(L||E)&&J.shrinkWrap,minSize:L,maxSize:E?I:1000000000,bodyPosProp:u.owner.manageHeight?x:C.marginBegin,dockBegin:B,dockEnd:G,posProp:x,sizeProp:D,setSize:C.setSize,shrinkWrapDock:z[C.shrinkWrapDock],sizeModelName:C.sizeModel,dockedPixelsEnd:0}},dockChild:function(u,t,l,r){var q=this,v=u.dockedItems[t.shrinkWrap?l:r],o=v.target,n=o.dock,s=t.sizeProp,p,m;if(o.ignoreParentFrame&&u.isCollapsingOrExpanding){v.clearMarginCache()}if(!v.marginInfo){v.getMarginInfo()}if(n===t.dockBegin){if(t.shrinkWrap){p=q.dockOutwardBegin(u,v,o,t)}else{p=q.dockInwardBegin(u,v,o,t)}}else{if(n===t.dockEnd){if(t.shrinkWrap){p=q.dockOutwardEnd(u,v,o,t)}else{p=q.dockInwardEnd(u,v,o,t)}}else{if(t.shrinkWrapDock){m=v.getProp(s)+v.marginInfo[s];t.maxChildSize=Math.max(t.maxChildSize,m);p=0}else{p=q.dockStretch(u,v,o,t)}}}v.dockedAt[t.posProp]=p},dockInwardBegin:function(s,t,l,q){var o=q.begin,p=q.sizeProp,r=l.ignoreParentFrame,n,k,m;if(r){q.ignoreFrameBegin=t;m=l.dock;n=s.frameBorder[m];o-=n+s.framePadding[m]}if(!l.overlay){k=t.getProp(p)+t.marginInfo[p];q.begin+=k;if(r){q.begin-=n}}return o},dockInwardEnd:function(n,o,p,i){var k=i.sizeProp,j=o.getProp(k)+o.marginInfo[k],l=i.end-j,m;if(!p.overlay){i.end=l}if(p.ignoreParentFrame){i.ignoreFrameEnd=o;m=n.frameBorder[p.dock];l+=m+n.framePadding[p.dock];i.end+=m}return l},dockOutwardBegin:function(l,m,n,h){var j=h.begin,k=h.sizeProp,i;if(h.collapsed){h.ignoreFrameBegin=h.ignoreFrameEnd=m}else{if(n.ignoreParentFrame){h.ignoreFrameBegin=m}}if(!n.overlay){i=m.getProp(k)+m.marginInfo[k];j-=i;h.begin=j}return j},dockOutwardEnd:function(l,m,n,h){var j=h.end,k=h.sizeProp,i;i=m.getProp(k)+m.marginInfo[k];if(h.collapsed){h.ignoreFrameBegin=h.ignoreFrameEnd=m}else{if(n.ignoreParentFrame){h.ignoreFrameEnd=m}}if(!n.overlay){h.end=j+i;h.dockedPixelsEnd+=i}return j},dockStretch:function(B,C,s,A){var r=s.dock,v=A.sizeProp,D=r==="top"||r==="bottom",w=B.frameBorder,z=C.offsets,t=B.framePadding,x=D?"right":"bottom",p=D?"left":"top",u=A.begin+z[p],y,q;if(s.stretch!==false){q=A.end-u-z[x];if(s.ignoreParentFrame){u-=t[p]+w[p];q+=t[v]+w[v]}y=C.marginInfo;q-=y[v];C[A.setSize](q)}return u},finishAxis:function(I,P){if(isNaN(P.maxChildSize)){return false}var Q=P.begin,F=P.end-Q,N=P.collapsed,y=P.setSize,K=P.dockBegin,A=P.dockEnd,G=I.framePadding,D=I.frameBorder,O=D[K],C=I.framing,H=C&&C[K],S=N?0:G[K],L=P.sizeProp,B=P.ignoreFrameBegin,E=P.ignoreFrameEnd,T=I.bodyContext,J=Math.max(O+S-H,0),R,x,z,M;if(P.shrinkWrap){x=P.initialSize;if(C){z=-Q+O+S;R=z-H-J}else{R=-Q;z=R+S}if(!N){F+=G[L]}if(B){z-=O;R-=O;B.dockedAt[P.posProp]-=S}else{F+=O}if(N){}else{if(E){E.dockedAt[P.posProp]+=G[A]}else{F+=D[A]}}P.size=F;if(!P.horizontal&&!this.owner.manageHeight){M=false}}else{if(C){z=0;R=Q-H-J}else{z=-O;R=Q-S-O}x=F}P.delta=z;T[y](x,M);T.setProp(P.bodyPosProp,R);return !isNaN(F)},beforeInvalidateShrinkWrapDock:function(f,d){var e=d.axis.sizeModelName;if(!f[e].constrainedMin){f[e]=Ext.layout.SizeModel.calculated}},afterInvalidateShrinkWrapDock:function(i,g){var f=g.axis,j=g.layout,h;if(i[f.sizeModelName].calculated){h=j.dockStretch(g.ownerContext,i,i.target,f);i.setProp(f.posProp,f.delta+h)}},finishConstraints:function(A,H,v){var s=this,t=s.sizeModels,w=H.shrinkWrap,u=v.shrinkWrap,J=s.owner,C,y,x,E,D,z,I,G,F,B;if(w){z=H.size;I=H.collapsed?0:H.minSize;G=H.maxSize;F=H.maxChildSize;B=Math.max(z,F);if(B>G){D=t.constrainedMax;x=G}else{if(B<I){D=t.constrainedMin;x=I}else{if(z<F){D=t.constrainedDock;J.dockConstrainedWidth=x=F}else{x=z}}}}if(u){z=v.size;I=v.collapsed?0:v.minSize;G=v.maxSize;F=v.maxChildSize;B=Math.max(z,F+z-v.initialSize);if(B>G){E=t.constrainedMax;y=G}else{if(B<I){E=t.constrainedMin;y=I}else{if(z<F){E=t.constrainedDock;J.dockConstrainedHeight=y=F}else{if(!A.collapsedVert&&!J.manageHeight){C=false;A.bodyContext.setProp("margin-bottom",v.dockedPixelsEnd)}y=z}}}}if(D||E){if(D&&E&&D.constrainedMax&&E.constrainedByMin){A.invalidate({widthModel:D});return false}if(!A.widthModel.calculatedFromShrinkWrap&&!A.heightModel.calculatedFromShrinkWrap){A.invalidate({widthModel:D,heightModel:E});return false}}else{s.invalidateAxes(A,H,v)}if(w){A.setWidth(x);if(D){A.widthModel=D}}if(u){A.setHeight(y,C);if(E){A.heightModel=E}}return true},invalidateAxes:function(C,H,y){var u=this.beforeInvalidateShrinkWrapDock,G=this.afterInvalidateShrinkWrapDock,D=H.end-H.begin,i=y.initialSize,F=H.shrinkWrapDock&&H.maxChildSize<=D,x=y.shrinkWrapDock&&y.maxChildSize<=i,t,w,z,E,s,v,B,A;if(F||x){if(x){y.begin=y.initialBegin;y.end=y.begin+y.initialSize}t=C.dockedItems;for(z=0,w=t.length;z<w;++z){E=t[z];v=E.horizontal;B=null;if(F&&v){A=H.sizeProp;s=D;B=H}else{if(x&&!v){A=y.sizeProp;s=i;B=y}}if(B){s-=E.getMarginInfo()[A];if(s!==E.props[A]){E.invalidate({before:u,after:G,axis:B,ownerContext:C,layout:this})}}}}},finishPositions:function(o,r,l){var j=o.dockedItems,p=j.length,m=r.delta,n=l.delta,k,q;for(k=0;k<p;++k){q=j[k];q.setProp("x",m+q.dockedAt.x);q.setProp("y",n+q.dockedAt.y)}},finishedLayout:function(d){var e=this,f=d.target;Ext.layout.component.Component.prototype.finishedLayout.apply(this,arguments);if(!d.animatePolicy){if(d.isCollapsingOrExpanding===1){f.afterCollapse(false)}else{if(d.isCollapsingOrExpanding===2){f.afterExpand(false)}}}},getAnimatePolicy:function(h){var e=this,f,g;if(h.isCollapsingOrExpanding===1){f=e.lastCollapsedState}else{if(h.isCollapsingOrExpanding===2){f=h.lastCollapsedState}}if(f==="left"||f==="right"){g=e.horizontalCollapsePolicy}else{if(f==="top"||f==="bottom"){g=e.verticalCollapsePolicy}}return g},getDockedItems:function(v,i){var q=this,t=(v==="visual"),p=t?Ext.ComponentQuery.query("[rendered]",q.owner.dockedItems.items):q.owner.dockedItems.items,r=p&&p.length&&v!==false,w,n,o,s,u,x;if(i==null){o=r&&!t?p.slice():p}else{o=[];for(s=0,x=p.length;s<x;++s){n=p[s].dock;u=(n==="top"||n==="left");if(i?u:!u){o.push(p[s])}}r=r&&o.length}if(r){w=(v=v||"render")==="render";Ext.Array.sort(o,function(d,a){var c,b;if(w&&((c=q.owner.dockOrder[d.dock])!==(b=q.owner.dockOrder[a.dock]))){if(!(c+b)){return c-b}}c=q.getItemWeight(d,v);b=q.getItemWeight(a,v);if((c!==undefined)&&(b!==undefined)){return c-b}return 0})}return o||[]},getItemWeight:function(d,e){var f=d.weight||this.owner.defaultDockWeights[d.dock];return f[e]||f},getLayoutItems:function(){var j=this,g,i,k,l,h;if(j.owner.collapsed){h=j.owner.getCollapsedDockedItems()}else{g=j.getDockedItems("visual");i=g.length;h=[];for(l=0;l<i;l++){k=g[l];if(!k.hidden){h.push(k)}}}return h},measureContentWidth:function(d){var c=d.bodyContext;return c.el.getWidth()-c.getBorderInfo().width},measureContentHeight:function(d){var c=d.bodyContext;return c.el.getHeight()-c.getBorderInfo().height},redoLayout:function(f){var d=this,e=d.owner;if(f.isCollapsingOrExpanding===1){if(e.reExpander){e.reExpander.el.show()}e.addClsWithUI(e.collapsedCls);f.redo(true)}else{if(f.isCollapsingOrExpanding===2){e.removeClsWithUI(e.collapsedCls);f.bodyContext.redo()}}},renderChildren:function(){var d=this,e=d.getDockedItems(),f=d.getRenderTarget();d.handleItemBorders();d.renderItems(e,f)},renderItems:function(D,t){var u=this,J=u.owner,G={},w=D.length,F=J.body,I=!!J.frameSize,x=J.bodyContainer,E,H,B,y,C,z,v,i,A;if(w){for(z=0;z<w;z++){v=D[z];G[v.id]=v}H=u.getRenderTarget().dom.childNodes;B=H.length;C=0;for(z=0;z<B;++z){y=H[z];if(I){A=y===F.dom||y===x;if(!A&&Ext.fly(y).contains(F)){A=true;J.bodyContainer=y}}else{A=y===F.dom}if(A){E=z;break}if(G[y.id]){++C}}E-=C;for(z=0;z<w;++z){v=D[z];i=E+z;if(v.dock==="right"||v.dock==="bottom"){++i}if(!v.rendered){u.renderItem(v,t,i)}else{if(!u.isValidParent(v,t,i)){u.moveItem(v,t,i)}}}}},undoLayout:function(f){var d=this,e=d.owner;if(f.isCollapsingOrExpanding===1){if(e.reExpander){e.reExpander.el.hide()}e.removeClsWithUI(e.collapsedCls);f.undo(true)}else{if(f.isCollapsingOrExpanding===2){e.addClsWithUI(e.collapsedCls);f.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(m,k){var n=this,j=n.sizePolicy,l=n.owner.shrinkWrapDock,h,i;if(m.stretch===false){return j.nostretch}h=m.dock;i=(h==="left"||h==="right");l=l===true?3:(l||0);if(i){j=j.vert;l=l&1}else{j=j.horz;l=l&2}if(l){if(!k){k=n.owner.getSizeModel()}if(k[i?"height":"width"].shrinkWrap){return j.shrinkWrap}}return j.stretch},configureItem:function(d,c){Ext.layout.component.Component.prototype.configureItem.apply(this,arguments);d.addCls(this._itemCls);if(!d.ignoreBorderManagement){d.addClsWithUI(this.getDockCls(d.dock))}},getDockCls:function(b){return"docked-"+b},afterRemove:function(d){var c;Ext.layout.component.Component.prototype.afterRemove.apply(this,arguments);d.removeCls(this._itemCls);if(!d.ignoreBorderManagement){d.removeClsWithUI(this.getDockCls(d.dock))}c=d.el.dom;if(!d.destroying&&c){c.parentNode.removeChild(c)}this.childrenChanged=true},borderCollapseMap:{},getBorderCollapseTable:function(){var k=this,i=k.borderCollapseMap,h=k.owner,g=h.baseCls,j=h.ui,l;i=i[g]||(i[g]={});l=i[j];if(!l){g+="-"+j+"-outer-border-";i[j]=l=[0,g+"l",g+"b",g+"bl",g+"r",g+"rl",g+"rb",g+"rbl",g+"t",g+"tl",g+"tb",g+"tbl",g+"tr",g+"trl",g+"trb",g+"trbl"]}return l}},0,0,0,0,["layout.dock"],0,[Ext.layout.component,"Dock",Ext.layout.component,"AbstractDock"],0));Ext.define("Ext.theme.neptune.layout.component.Dock",{override:"Ext.layout.component.Dock",noBorderClassTable:[0,"x-noborder-l","x-noborder-b","x-noborder-bl","x-noborder-r","x-noborder-rl","x-noborder-rb","x-noborder-rbl","x-noborder-t","x-noborder-tl","x-noborder-tb","x-noborder-tbl","x-noborder-tr","x-noborder-trl","x-noborder-trb","x-noborder-trbl"],edgeMasks:{top:8,right:4,bottom:2,left:1},handleItemBorders:function(){var i=this,T=0,b=8,J=4,O=2,U=1,X=i.owner,G=X.bodyBorder,M=X.border,Q=i.collapsed,K=i.edgeMasks,P=i.noBorderClassTable,B=X.dockedItems.generation,C,V,D,R,H,N,E,L,S,I,F,W;if(i.initializedBorders===B){return}F=[];W=[];V=i.getBorderCollapseTable();P=i.getBorderClassTable?i.getBorderClassTable():P;i.initializedBorders=B;i.collapsed=false;D=i.getDockedItems("visual");i.collapsed=Q;for(H=0,N=D.length;H<N;H++){E=D[H];if(E.ignoreBorderManagement){continue}L=E.dock;I=R=0;F.length=0;W.length=0;if(L!=="bottom"){if(T&b){C=E.border}else{C=M;if(C!==false){R+=b}}if(C===false){I+=b}}if(L!=="left"){if(T&J){C=E.border}else{C=M;if(C!==false){R+=J}}if(C===false){I+=J}}if(L!=="top"){if(T&O){C=E.border}else{C=M;if(C!==false){R+=O}}if(C===false){I+=O}}if(L!=="right"){if(T&U){C=E.border}else{C=M;if(C!==false){R+=U}}if(C===false){I+=U}}if((S=E.lastBorderMask)!==I){E.lastBorderMask=I;if(S){W[0]=P[S]}if(I){F[0]=P[I]}}if((S=E.lastBorderCollapse)!==R){E.lastBorderCollapse=R;if(S){W[W.length]=V[S]}if(R){F[F.length]=V[R]}}if(W.length){E.removeCls(W)}if(F.length){E.addCls(F)}T|=K[L]}I=R=0;F.length=0;W.length=0;if(T&b){C=G}else{C=M;if(C!==false){R+=b}}if(C===false){I+=b}if(T&J){C=G}else{C=M;if(C!==false){R+=J}}if(C===false){I+=J}if(T&O){C=G}else{C=M;if(C!==false){R+=O}}if(C===false){I+=O}if(T&U){C=G}else{C=M;if(C!==false){R+=U}}if(C===false){I+=U}if((S=i.lastBodyBorderMask)!==I){i.lastBodyBorderMask=I;if(S){W[0]=P[S]}if(I){F[0]=P[I]}}if((S=i.lastBodyBorderCollapse)!==R){i.lastBodyBorderCollapse=R;if(S){W[W.length]=V[S]}if(R){F[F.length]=V[R]}}if(W.length){X.removeBodyCls(W)}if(F.length){X.addBodyCls(F)}},onRemove:function(g){var h=this,e=g.lastBorderMask,f=g.lastBorderCollapse;if(!g.destroyed&&!g.ignoreBorderManagement){if(e){g.lastBorderMask=0;g.removeCls(h.noBorderClassTable[e])}if(f){g.lastBorderCollapse=0;g.removeCls(h.getBorderCollapseTable()[f])}}(arguments.callee.$previous||Ext.layout.component.Component.prototype.onRemove).call(this,g)}});(Ext.cmd.derive("Ext.util.Memento",Ext.Base,(function(){function i(b,c,a,d){b[d?d+a:a]=c[a]}function j(b,c,a){delete b[a]}function h(b,c,a,d){var l=d?d+a:a,e=b[l];if(e||b.hasOwnProperty(l)){g(c,a,e)}}function g(b,a,c){if(Ext.isDefined(c)){b[a]=c}else{delete b[a]}}function f(m,a,b,e,d){if(a){if(Ext.isArray(e)){var c,n=e.length;for(c=0;c<n;c++){m(a,b,e[c],d)}}else{m(a,b,e,d)}}}return{data:null,target:null,constructor:function(a,b){this.data={};if(a){this.target=a;if(b){this.capture(b)}}},capture:function(d,a,b){var c=this;f(i,c.data||(c.data={}),a||c.target,d,b)},remove:function(a){f(j,this.data,null,a)},restore:function(c,d,a,b){f(h,this.data,a||this.target,c,b);if(d!==false){this.remove(c)}},restoreAll:function(l,b){var d=this,e=b||this.target,c=d.data,a;l=l!==false;for(a in c){if(c.hasOwnProperty(a)){g(e,a,c[a]);if(l){delete c[a]}}}}}}()),1,0,0,0,0,0,[Ext.util,"Memento"],0));(Ext.cmd.derive("Ext.container.DockingContainer",Ext.Base,{isDockingContainer:true,defaultDockWeights:{top:{render:1,visual:1},left:{render:3,visual:5},right:{render:5,visual:7},bottom:{render:7,visual:3}},dockOrder:{top:-1,left:-1,right:1,bottom:1},horizontalDocks:0,tabGuard:false,tabGuardTpl:'<div id="{id}-{tabGuardEl}" data-ref="{tabGuardEl}" tabIndex="0" class="x-tab-guard x-tab-guard-{tabGuard}" ></div>',addDocked:function(q,n){var o=this,u=o.rendered,t=0,m=o.dockedItems,s=m.getCount(),r,p,i,v;q=o.prepareItems(q);v=q.length;if(u){Ext.suspendLayouts()}if(n===undefined){n=s}else{n=Math.min(n,s)}for(;t<v;t++){i=q[t];i.dock=i.dock||"top";if(i.dock==="left"||i.dock==="right"){o.horizontalDocks++}r=n+t;m.insert(r,i);p=!!i.instancedCmp;delete i.instancedCmp;i.onAdded(o,r,p);delete i.$initParent;if(o.onDockedAdd!==Ext.emptyFn){o.onDockedAdd(i)}if(o.hasListeners.dockedadd){o.fireEvent("dockedadd",o,i,r)}}if(o.rendered){o.updateLayout();Ext.resumeLayouts(true)}return q},destroyDockedItems:function(){var d=this.dockedItems,c;if(d){while((c=d.first())){this.removeDocked(c,true)}}},doRenderDockedItems:function(o,l,k){var m=l.$comp,n=m.componentLayout,p=m.tabGuard&&m.getTpl("tabGuardTpl"),i,j;if(n.getDockedItems&&!l.$skipDockedItems){if(p&&!k){l.tabGuard="before";m.addChildEl(l.tabGuardEl="tabGuardBeforeEl");p.applyOut(l,o)}i=n.getDockedItems("render",!k);j=i&&n.getItemsRenderTree(i);if(j){Ext.DomHelper.generateMarkup(j,o)}if(p&&k){l.tabGuard="after";m.addChildEl(l.tabGuardEl="tabGuardAfterEl");p.applyOut(l,o)}}},getDockedComponent:function(b){if(Ext.isObject(b)){b=b.getItemId()}return this.dockedItems.get(b)},getDockedItems:function(e,f){var d=this.getComponentLayout().getDockedItems("render",f);if(e&&d.length){d=Ext.ComponentQuery.query(e,d)}return d},getDockingRefItems:function(f,h){var g=f&&"*,* *",i=this.getDockedItems(g,true),j;i.push.apply(i,h);j=this.getDockedItems(g,false);i.push.apply(i,j);return i},initDockingItems:function(){var c=this,d=c.dockedItems;if(!d||!d.isMixedCollection){c.dockedItems=new Ext.util.ItemCollection();if(d){c.addDocked(d)}}},insertDocked:function(c,d){this.addDocked(d,c)},onDockedAdd:Ext.emptyFn,onDockedRemove:Ext.emptyFn,removeDocked:function(h,f){var i=this,j,g;f=f===true||(f!==false&&i.autoDestroy);if(!i.dockedItems.contains(h)){return h}if(h.dock==="left"||h.dock==="right"){i.horizontalDocks--}j=i.componentLayout;g=j&&i.rendered;if(g){j.onRemove(h)}i.dockedItems.remove(h);h.onRemoved(h.destroying||f);i.onDockedRemove(h);if(f){h.destroy()}else{if(g){j.afterRemove(h)}}if(i.hasListeners.dockedremove){i.fireEvent("dockedremove",i,h)}if(!i.destroying){i.updateLayout()}return h},moveDocked:function(f,e){var d=this;if(d.rendered){Ext.suspendLayouts()}d.removeDocked(f,false);f.dock=e;d.addDocked(f);if(d.rendered){if(f.frame){Ext.getDetachedBody().appendChild(f.el);f.updateFrame()}Ext.resumeLayouts(true)}},setupDockingRenderTpl:function(b){b.renderDockedItems=this.doRenderDockedItems}},0,0,0,0,0,0,[Ext.container,"DockingContainer"],0));(Ext.cmd.derive("Ext.panel.Panel",Ext.container.Container,{alternateClassName:"Ext.Panel",childEls:["body"],renderTpl:['<tpl if="headingText">','<div id="{id}-headingEl" data-ref="headingEl" role="heading"',' class="',"x-",'hidden-clip" style="height:0">',"{headingText}","</div>","</tpl>","{% this.renderDockedItems(out,values,0); %}",'<div id="{id}-body" data-ref="body" class="{baseCls}-body<tpl if="bodyCls"> {bodyCls}</tpl>',' {baseCls}-body-{ui}<tpl if="uiCls">','<tpl for="uiCls"> {parent.baseCls}-body-{parent.ui}-{.}</tpl>','</tpl>{childElCls}"','<tpl if="bodyAriaAttributes">','<tpl foreach="bodyAriaAttributes"> {$}="{.}"</tpl>',"<tpl else>",' role="presentation"',"</tpl>",'<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>',"{%this.renderContainer(out,values);%}","</div>","{% this.renderDockedItems(out,values,1); %}"],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(d){var f=this,e=f.rendered?f.body:f.getProtoBody();e.addCls(d);return f},addTool:function(l){if(!Ext.isArray(l)){l=[l]}var m=this,j=m.header,i=l.length,k=m.tools,n,h;if(!j||!j.isHeader){j=null;if(!k){m.tools=k=[]}}for(n=0;n<i;n++){h=l[n];h.toolOwner=m;if(j){j.addTool(h)}else{k.push(h)}}m.updateHeader()},addTools:Ext.emptyFn,setCollapsible:function(h){var e=this,g=e.collapsible,f=e.collapseTool;e.collapsible=h;if(h&&!g){e.updateCollapseTool();f=e.collapseTool;if(f){f.show()}}else{if(!h&&g){if(f){f.hide()}}}},addUIClsToElement:function(d){var f=this,e=Ext.container.Container.prototype.addUIClsToElement.apply(this,arguments);f.addBodyCls(["x-"+d,f.baseCls+"-body-"+d,f.baseCls+"-body-"+f.ui+"-"+d]);return e},afterCollapse:function(h){var e=this,f=e.ariaEl.dom,g=e.ownerLayout;e.isCollapsingOrExpanding=0;e.updateCollapseTool();if(h){e.removeCls("x-animating-size")}if(g){g.afterCollapse(e,h)}if(f){f.setAttribute("aria-expanded",false)}if(e.isAccordionPanel){e.body.dom.setAttribute("aria-hidden",true)}e.setHiddenDocked();e.fireEvent("collapse",e)},afterExpand:function(h){var e=this,f=e.ariaEl.dom,g=e.ownerLayout;e.isCollapsingOrExpanding=0;e.updateCollapseTool();if(h){e.removeCls("x-animating-size")}if(g){g.afterExpand(e,h)}if(f){f.setAttribute("aria-expanded",true)}if(e.isAccordionPanel){e.body.dom.setAttribute("aria-hidden",false)}e.fireEvent("expand",e);e.fireHierarchyEvent("expand")},beforeDestroy:function(){var b=this;Ext.destroy(b.placeholder,b.ghostPanel,b.dd,b.accordionKeyNav,b.defaultButtonKeyNav);b.destroyDockedItems();Ext.container.Container.prototype.beforeDestroy.call(this)},destroy:function(){Ext.container.Container.prototype.destroy.call(this);this.dockedItems=this.bodyContainer=null},beforeRender:function(){var c=this,d;c.getProtoBody();Ext.container.Container.prototype.beforeRender.call(this);c.initTools();if(!(c.preventHeader||(c.header===false))||c.isViewportBorderChild){c.updateHeader()}c.afterHeaderInit=true;if(c.collapsed){if(c.isPlaceHolderCollapse()){if(!c.hidden){c.setHiddenState(true);c.preventCollapseFire=true;c.placeholderCollapse();delete c.preventCollapseFire;d=c.collapsed;c.collapsed=false}}else{c.beginCollapse();c.addClsWithUI(c.collapsedCls)}}if(d){c.collapsed=d}},getMemento:function(d){var c=this;if(d&&typeof d==="string"){d+="Memento";return c[d]||(c[d]=new Ext.util.Memento(c))}},beginCollapse:function(){var l=this,n=l.lastBox,j=l.rendered,h=l.getMemento("collapse"),m=l.getSizeModel(),k=l.header,i;h.capture(["height","minHeight","width","minWidth"]);if(n){h.capture(l.restoreDimension(),n,"last.")}if(l.collapsedVertical()){if(m.width.shrinkWrap){l.width=j?l.getWidth():l.width||l.minWidth||100}delete l.height;l.minHeight=0}else{if(l.collapsedHorizontal()){if(m.height.shrinkWrap){l.height=j?l.getHeight():l.height||l.minHeight||100}delete l.width;l.minWidth=0}}if(l.ownerCt){l.ownerCt.getLayout().beginCollapse(l)}if(!l.isPlaceHolderCollapse()&&k!==false){if(k===(i=l.getReExpander())){k.collapseImmune=true;k.getInherited().collapseImmune=true;k.addClsWithUI(l.getHeaderCollapsedClasses(k));if(k.rendered){k.updateFrame()}}else{if(i.el){i.el.show();i.hidden=false}}}if(l.resizer){l.resizer.disable()}},beginDrag:function(){if(this.floatingDescendants){this.floatingDescendants.hide()}},beginExpand:function(){var j=this,k=j.lastBox,l=j.getMemento("collapse"),h=j.restoreDimension(),i=j.header,g;if(l){l.restore(["minHeight","minWidth",h]);if(k){l.restore(h,true,k,"last.")}}if(j.ownerCt){j.ownerCt.getLayout().beginExpand(j)}if(!j.isPlaceHolderCollapse()&&i!==false){if(i===(g=j.getReExpander())){delete i.collapseImmune;delete i.getInherited().collapseImmune;i.removeClsWithUI(j.getHeaderCollapsedClasses(i));if(i.rendered){i.expanding=true;i.updateFrame();delete i.expanding}}else{g.hidden=true;g.el.hide()}}if(j.resizer){j.resizer.enable()}},bridgeToolbars:function(){var h=this,i=[],j=h.minButtonWidth,l,g;function k(c,a,b){if(Ext.isArray(c)){c={xtype:"toolbar",items:c}}else{if(!c.xtype){c.xtype="toolbar"}}c.dock=a;if(b){c.layout=Ext.applyIf(c.layout||{},{pack:{left:"start",center:"center"}[h.buttonAlign]||"end"})}return c}if(h.tbar){i.push(k(h.tbar,"top"));h.tbar=null}if(h.bbar){i.push(k(h.bbar,"bottom"));h.bbar=null}if(h.buttons){h.fbar=h.buttons;h.buttons=null}if(h.fbar){l=k(h.fbar,"bottom",true);l.ui="footer";if(j){g=l.defaults;l.defaults=function(b){var a=g||{},c=!b.xtype||b.isButton,d;if(!c){d=Ext.ClassManager.getByAlias("widget."+b.xtype);if(d){c=d.prototype.isButton}}if(c&&!("minWidth" in a)){a=Ext.apply({minWidth:j},a)}return a}}i.push(l);h.fbar=null}if(h.lbar){i.push(k(h.lbar,"left"));h.lbar=null}if(h.rbar){i.push(k(h.rbar,"right"));h.rbar=null}if(h.dockedItems){if(h.dockedItems.isMixedCollection){h.addDocked(i)}else{if(!Ext.isArray(h.dockedItems)){h.dockedItems=[h.dockedItems]}h.dockedItems=h.dockedItems.concat(i)}}else{h.dockedItems=i}},close:function(){if(this.fireEvent("beforeclose",this)!==false){this.doClose()}},collapse:function(l,i){var m=this,k=l||m.collapseDirection,h=m.ownerCt,n=m.ownerLayout,j=m.rendered;if(m.isCollapsingOrExpanding){return m}if(arguments.length<2){i=m.animCollapse}if(m.collapsed||m.fireEvent("beforecollapse",m,l,i)===false){return m}if(n&&n.onBeforeComponentCollapse){if(n.onBeforeComponentCollapse(m)===false){return m}}if(j&&h&&m.isPlaceHolderCollapse()){return m.placeholderCollapse(l,i)}m.collapsed=k;if(j){m.beginCollapse()}m.getInherited().collapsed=true;m.fireHierarchyEvent("collapse");if(j){m.doCollapseExpand(1,i)}return m},collapsedHorizontal:function(){var b=this.getCollapsed();return b==="left"||b==="right"},collapsedVertical:function(){var b=this.getCollapsed();return b==="top"||b==="bottom"},convertCollapseDir:function(b){return b.substr(0,1)},createGhost:function(f){var e=this,g=e.header,h=e.frame&&!e.alwaysFramed;return{xtype:"panel",hidden:false,header:g?{titleAlign:g.getTitleAlign()}:null,ui:h?e.ui.replace(/-framed$/,""):e.ui,id:e.id+"-ghost",renderTo:Ext.getBody(),resizable:false,draggable:false,closable:false,focusable:false,floating:true,shadow:false,frame:h,shim:e.shim,alwaysFramed:e.alwaysFramed,overlapHeader:e.overlapHeader,headerPosition:e.getHeaderPosition(),titleRotation:e.getTitleRotation(),baseCls:e.baseCls,getRefOwner:function(){return e.getRefOwner()},cls:e.baseCls+"-ghost "+(f||"")}},createReExpander:function(m,n){var o=this,k=m==="left",p=m==="right",l=k||p,i=o.ownerCt,j=Ext.apply({hideMode:"offsets",title:o.getTitle(),titleAlign:o.getTitleAlign(),vertical:l,textCls:o.headerTextCls,icon:o.getIcon(),iconCls:o.getIconCls(),iconAlign:o.getIconAlign(),glyph:o.getGlyph(),baseCls:o.self.prototype.baseCls+"-header",ui:o.ui,frame:o.frame&&o.frameHeader,ignoreParentFrame:o.frame||o.overlapHeader,ignoreBorderManagement:o.frame||o.ignoreHeaderBorderManagement,indicateDrag:o.draggable,collapseImmune:true,ariaRole:o.ariaRole,preventRefocus:true,ownerCt:(i&&o.collapseMode==="placeholder")?i:o,ownerLayout:o.componentLayout,forceOrientation:true,margin:o.margin},n);if(o.collapseMode==="mini"){if(l){j.width=1}else{j.height=1}}if(!o.hideCollapseTool){if(k||(p&&o.isPlaceHolderCollapse())){j.titlePosition=1}j.tools=[{xtype:"tool",type:"expand-"+o.getOppositeDirection(m),isDefaultExpandTool:true,uiCls:["top"],handler:o.toggleCollapse,scope:o,tooltip:o.expandToolText}]}j=new Ext.panel.Header(j);j.addClsWithUI(o.getHeaderCollapsedClasses(j));j.expandTool=j.down("tool[isDefaultExpandTool=true]");return j},doClose:function(){this.fireEvent("close",this);this[this.closeAction]()},doCollapseExpand:function(g,f){var i=this,j=i.animCollapse,h=i.ownerLayout;i.animCollapse=f;i.isCollapsingOrExpanding=g;if(f){i.addCls("x-animating-size")}if(h&&!f){h.onContentChange(i)}else{i.updateLayout({isRoot:true})}i.animCollapse=j;return i},endDrag:function(){if(this.floatingDescendants){this.floatingDescendants.show()}},expand:function(f){var h=this,e=h.ownerLayout,g=h.rendered;if(h.isCollapsingOrExpanding){return h}if(!arguments.length){f=h.animCollapse}if(!h.collapsed&&!h.floatedFromCollapse){return h}if(h.fireEvent("beforeexpand",h,f)===false){return h}if(e&&e.onBeforeComponentExpand){if(e.onBeforeComponentExpand(h)===false){return h}}delete h.getInherited().collapsed;if(g&&h.isPlaceHolderCollapse()){return h.placeholderExpand(f)}h.restoreHiddenDocked();if(g){h.beginExpand()}h.collapsed=false;if(h.rendered){h.doCollapseExpand(2,f)}return h},findReExpander:function(k){var l=this,j=Ext.Component,m=l.dockedItems.items,i=m.length,c,n;if(l.collapseMode==="mini"){return}switch(k){case j.DIRECTION_TOP:case j.DIRECTION_BOTTOM:for(n=0;n<i;n++){c=m[n];if(!c.hidden){if(c.isHeader&&(!c.dock||c.dock==="top"||c.dock==="bottom")){return c}}}break;case j.DIRECTION_LEFT:case j.DIRECTION_RIGHT:for(n=0;n<i;n++){c=m[n];if(!c.hidden){if(c.isHeader&&(c.dock==="left"||c.dock==="right")){return c}}}break;default:throw ("Panel#findReExpander must be passed a valid collapseDirection")}},floatCollapsedPanel:function(){var l=this,k=l.placeholder,r=k.getSize(),m=Ext.panel.Panel.floatCls,o=l.collapsed,j=l.ownerCt||l,q,p,n;if(l.isSliding){return}if(l.el.hasCls(m)){l.slideOutFloatedPanel();return}l.isSliding=true;k.el.hide();k.hidden=true;l.el.show();l.setHiddenState(false);l.collapsed=false;j.updateLayout();k.el.show();k.hidden=false;l.el.hide();l.setHiddenState(true);l.collapsed=o;j.updateLayout();n=l.getBox(false,true);l.slideOutTask=l.slideOutTask||new Ext.util.DelayedTask(l.slideOutFloatedPanel,l);if(Ext.supports.Touch){Ext.on("mousedown",p=function(a){if(!a.within(l.el)){Ext.un("mousedown",p);l.slideOutFloatedPanel()}})}if(!l.placeholderListener){l.placeholderListener=k.on({resize:l.onPlaceholderResize,scope:l,destroyable:true})}k.el.on("mouseleave",l.onMouseLeaveFloated,l);l.el.on("mouseleave",l.onMouseLeaveFloated,l);k.el.on("mouseenter",l.onMouseEnterFloated,l);l.el.on("mouseenter",l.onMouseEnterFloated,l);l.el.addCls(m);l.floated=o;if(l.collapseTool){l.collapseTool.el.hide()}switch(l.collapsed){case"top":l.width=r.width;l.setLocalXY(n.x,n.y+r.height);break;case"right":l.height=r.height;l.setLocalXY(n.x-r.width,n.y);break;case"bottom":l.width=r.width;l.setLocalXY(n.x,n.y-r.height);break;case"left":l.height=r.height;l.setLocalXY(n.x+r.width,n.y);break}q=l.convertCollapseDir(l.collapsed);l.floatedFromCollapse=l.collapsed;l.collapsed=false;l.setHiddenState(false);l.el.slideIn(q,{preserveScroll:true,duration:Ext.Number.from(l.animCollapse,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:function(){l.isSliding=false;l.fireEvent("float",l)}}})},onPlaceholderResize:function(j,l,h){var g=this,k=g.getBox(false,true),i=j.getBox(false,true);switch(g.floated){case"top":g.width=l;g.setLocalY(i.y+i.height);break;case"right":g.height=h;g.setLocalX(i.x-k.width);break;case"bottom":g.width=l;g.setLocalY(i.y-k.height);break;case"left":g.height=h;g.setLocalX(i.x+i.width);break}g.updateLayout({isRoot:true})},getAnimationProps:function(){var d=this,f=d.animCollapse,e;e=Ext.container.Container.prototype.getAnimationProps.call(this);if(typeof f==="number"){e.duration=f}return e},getCollapsed:function(){var b=this;if(b.collapsed===true){return b.collapseDirection}return b.collapsed},getCollapsedDockedItems:function(){var b=this;return b.header===false||b.collapseMode==="placeholder"?b.emptyArray:[b.getReExpander()]},getComponent:function(d){var c=Ext.container.Container.prototype.getComponent.apply(this,arguments);if(c===undefined&&!Ext.isNumber(d)){c=this.getDockedComponent(d)}return c},getHeader:function(){return this.header},getHeaderCollapsedClasses:function(g){var e=this,h=e.collapsedCls,f;f=[h,h+"-"+g.getDockName()];if(e.border&&(!e.frame||(e.frame&&Ext.supports.CSS3BorderRadius))){f.push(h+"-border-"+g.getDockName())}return f},getKeyMap:function(){return this.keyMap||(this.keyMap=new Ext.util.KeyMap(Ext.apply({target:this.el},this.keys)))},getOppositeDirection:function(d){var c=Ext.Component;switch(d){case c.DIRECTION_TOP:return c.DIRECTION_BOTTOM;case c.DIRECTION_RIGHT:return c.DIRECTION_LEFT;case c.DIRECTION_BOTTOM:return c.DIRECTION_TOP;case c.DIRECTION_LEFT:return c.DIRECTION_RIGHT}},getPlaceholder:function(l){var m=this,j=l||m.collapseDirection,n=null,k=m.placeholder,h=m.floatable,i=m.titleCollapse;if(!k){if(h||(m.collapsible&&i)){n={click:{fn:(!i&&h)?m.floatCollapsedPanel:m.toggleCollapse,element:"el",scope:m}}}m.placeholder=k=Ext.widget(m.createReExpander(j,{id:m.id+"-placeholder",listeners:n}))}if(!k.placeholderFor){if(!k.isComponent){m.placeholder=k=m.lookupComponent(k)}Ext.applyIf(k,{margin:m.margin,placeholderFor:m,synthetic:true});k.addCls(["x-region-collapsed-placeholder","x-region-collapsed-"+j+"-placeholder",m.collapsedCls])}return k},getProtoBody:function(){var c=this,d=c.protoBody;if(!d){c.protoBody=d=new Ext.util.ProtoElement({cls:c.bodyCls,style:c.bodyStyle,clsProp:"bodyCls",styleProp:"bodyStyle",styleIsText:true})}return d},getReExpander:function(h){var e=this,g=h||e.collapseDirection,f=e.reExpander||e.findReExpander(g);e.expandDirection=e.getOppositeDirection(g);if(!f){e.reExpander=f=e.createReExpander(g,{dock:g,cls:"x-docked "+e.baseCls+"-"+e.ui+"-collapsed",isCollapsedExpander:true});e.dockedItems.insert(0,f)}return f},getRefItems:function(d){var c=Ext.container.Container.prototype.getRefItems.apply(this,arguments);return this.getDockingRefItems(d,c)},getState:function(){var g=this,j=Ext.container.Container.prototype.getState.call(this)||{},h=g.collapsed,f=g.floated,i;if(f){g.collapsed=f}j=g.addPropertyToState(j,"collapsed");if(f){g.collapsed=h}if(g.getCollapsed()){i=g.getMemento("collapse").data;j=g.addPropertyToState(j,"collapsed",i);if(g.collapsedVertical()){delete j.height;if(i){j=g.addPropertyToState(j,"height",i.height)}}else{delete j.width;if(i){j=g.addPropertyToState(j,"width",i.width)}}}return j},applyState:function(h){var e=this,f={},g;if(h){g=h.collapsed;if(g){f=e.getMemento("collapse");Ext.Object.merge(f.data,g);h.collapsed=true}Ext.container.Container.prototype.applyState.apply(this,arguments)}},ghost:function(i){var p=this,v=p.ghostPanel,s=p.getBox(),t=p.header,n,r,o,m,q,u;if(!v){p.ghostPanel=v=Ext.widget(p.createGhost(i));v.el.dom.removeAttribute("tabIndex")}else{v.el.show()}v.setHiddenState(false);v.floatParent=p.floatParent;v.toFront();if(t&&!p.preventHeader){n=v.header;n.suspendLayouts();r=n.query("tool");for(u=r.length;u--;){n.remove(r[u])}n.setTitlePosition(0);v.addTool(p.ghostTools());v.setTitle(p.getTitle());n.setTitlePosition(t.titlePosition);m=p.getIconCls();if(m){v.setIconCls(m)}else{o=p.getIcon();if(o){v.setIcon(o)}else{q=p.getGlyph();if(q){v.setGlyph(q)}}}n.addCls("x-header-ghost");n.resumeLayouts()}v.setPagePosition(s.x,s.y);v.setSize(s.width,s.height);p.el.hide();return v},ghostTools:function(){var j=[],i=this.header,k=i?i.query("tool[hidden=false]"):[],l,h,g;if(k.length){l=0;h=k.length;for(;l<h;l++){g=k[l];j.push({type:g.type,tooltip:g.tooltip})}}else{j=[{type:"placeholder"}]}return j},initBodyBorder:function(){var b=this;if(b.frame&&b.bodyBorder){if(!Ext.isNumber(b.bodyBorder)){b.bodyBorder=1}b.getProtoBody().setStyle("border-width",this.unitizeBox(b.bodyBorder))}},initBodyStyles:function(){var c=this,d=c.getProtoBody();if(c.bodyPadding!==undefined){if(c.layout.managePadding){d.setStyle("padding",0)}else{d.setStyle("padding",this.unitizeBox((c.bodyPadding===true)?5:c.bodyPadding))}}c.initBodyBorder()},initBorderProps:function(){var b=this;if(b.frame&&b.border&&b.bodyBorder===undefined){b.bodyBorder=false}if(b.frame&&b.border&&(b.bodyBorder===false||b.bodyBorder===0)){b.manageBodyBorders=true}},initComponent:function(){var b=this;if(b.collapsible){b.addStateEvents(["expand","collapse"])}if(b.unstyled){b.setUI("plain")}if(b.frame){b.setUI(b.ui+"-framed")}b.bridgeToolbars();b.initBorderProps();Ext.container.Container.prototype.initComponent.call(this);b.collapseDirection=b.collapseDirection||b.getHeaderPosition()||Ext.Component.DIRECTION_TOP;b.hiddenOnCollapse=new Ext.dom.CompositeElement()},initItems:function(){Ext.container.Container.prototype.initItems.call(this);this.initDockingItems()},initRenderData:function(){var d=this,c=Ext.container.Container.prototype.initRenderData.call(this);d.initBodyStyles();d.protoBody.writeTo(c);delete d.protoBody;if(d.headingText){c.headingText=d.headingText;d.addChildEl("headingEl")}if(d.bodyAriaRole){c.bodyAriaAttributes={role:d.bodyAriaRole};if(!d.ariaStaticRoles[d.bodyAriaRole]&&d.bodyAriaRenderAttributes){Ext.apply(c.bodyAriaAttributes,d.bodyAriaRenderAttributes)}}return c},calculateConstrainedPosition:function(m,i,n,j){var l=this,k=l.header,o,p;if(l.constrainHeader){o=k.lastBox;if(j){if(!k.vertical){j=[j[0],o?o.height:j[1]]}else{j=[o?o.width:j[0],j[1]]}}else{if(o){j=[o.width,o.height]}}p=l.floatParent;m=m||l.constrainTo||(p?p.getTargetEl():null)||l.container||l.el.parent()}return Ext.container.Container.prototype.calculateConstrainedPosition.call(this,m,i,n,j)},initTools:function(){var j=this,h=j.tools,f,i,g;j.tools=[];for(f=h&&h.length;f;){--f;j.tools[f]=g=h[f];g.toolOwner=j}if(j.collapsible&&!(j.hideCollapseTool||j.header===false||j.preventHeader)){j.updateCollapseTool();if(j.collapseFirst){j.tools.unshift(j.collapseTool)}}j.addTools();if(j.pinnable){j.initPinnable()}if(j.closable){j.addClsWithUI("closable");i={xtype:"tool",type:"close",scope:j,handler:j.close,tooltip:j.closeToolText};if(j.isAccordionPanel){i.focusable=false;i.ariaRole="presentation"}j.addTool(i)}if(j.collapseTool&&!j.collapseFirst){j.addTool(j.collapseTool)}},isLayoutRoot:function(){if(this.floatedFromCollapse){return true}return Ext.container.Container.prototype.isLayoutRoot.call(this)},isPlaceHolderCollapse:function(){return this.collapseMode==="placeholder"},isVisible:function(d){var c=this;if(c.collapsed&&c.placeholder){return c.placeholder.isVisible(d)}return Ext.container.Container.prototype.isVisible.apply(this,arguments)},onBoxReady:function(){var d=this,c;Ext.container.Container.prototype.onBoxReady.apply(this,arguments);if(d.collapsed){d.setHiddenDocked()}if(d.isAccordionPanel){d.ariaEl=d.header.titleCmp.el;d.ariaEl.dom.setAttribute("aria-expanded",!d.collapsed);d.body.dom.setAttribute("aria-labelledby",d.header.titleCmp.id);d.body.dom.setAttribute("aria-hidden",!!d.collapsed);d.accordionKeyNav=new Ext.util.KeyNav({target:d.header.titleCmp.el,scope:d,left:d.navigateAccordion,right:d.navigateAccordion,left:d.navigateAccordion,up:d.navigateAccordion,down:d.navigateAccordion,home:d.navigateAccordion,end:d.navigateAccordion,space:d.toggleCollapse,enter:d.toggleCollapse,del:{alt:true,fn:d.maybeClose}})}if(d.defaultButton){c=d.defaultButtonTarget?d[d.defaultButtonTarget]:d.body;d.defaultButtonKeyNav=new Ext.util.KeyNav({target:c,scope:d,defaultEventAction:"stopEvent",enter:d.fireDefaultButton})}},onHide:function(h,f,j){var i=this,g=i.dd;if(i.floatedFromCollapse){i.slideOutFloatedPanel(true)}if(i.draggable&&g){g.endDrag()}if(i.collapsed&&i.placeholder){if(i.splitter){Ext.suspendLayouts();i.splitter.hide();Ext.resumeLayouts()}i.placeholder.hide()}else{Ext.container.Container.prototype.onHide.call(this,h,f,j)}},onMouseEnterFloated:function(b){this.slideOutTask.cancel()},onMouseLeaveFloated:function(b){this.slideOutTask.delay(500)},onRemoved:function(c){var d=this;if(d.placeholder&&!c){d.ownerCt.remove(d.placeholder,false)}Ext.container.Container.prototype.onRemoved.apply(this,arguments)},onShow:function(){var b=this;if(b.collapsed&&b.isPlaceHolderCollapse()){if(b.splitter){Ext.suspendLayouts();b.splitter.show();Ext.resumeLayouts()}b.setHiddenState(true);b.placeholderCollapse()}else{Ext.container.Container.prototype.onShow.apply(this,arguments)}},placeholderCollapse:function(m,r){var n=this,q=n.ownerCt,j=m||n.collapseDirection,o=Ext.panel.Panel.floatCls,p=n.collapseTool,l=n.getPlaceholder(j),k;n.isCollapsingOrExpanding=1;n.setHiddenState(true);n.collapsed=j;if(l.rendered){if(l.el.dom.parentNode!==n.el.dom.parentNode){n.el.dom.parentNode.insertBefore(l.el.dom,n.el.dom)}l.hidden=false;l.setHiddenState(false);l.el.show();q.updateLayout()}else{q.insert(q.items.indexOf(n),l)}if(n.rendered){if(p&&Ext.ComponentManager.getActiveComponent()===p){n.focusPlaceholderExpandTool=true}n.el.setVisibilityMode(n.placeholderCollapseHideMode);if(r){n.el.addCls(o);l.el.hide();k=n.convertCollapseDir(j);n.el.slideOut(k,{preserveScroll:true,duration:Ext.Number.from(r,Ext.fx.Anim.prototype.duration),listeners:{scope:n,afteranimate:function(){var a=this;a.el.removeCls(o);a.placeholder.el.show().setStyle("display","none").slideIn(k,{easing:"linear",duration:100,listeners:{afteranimate:a.doPlaceholderCollapse,scope:a}})}}})}else{n.el.hide();n.doPlaceholderCollapse()}}else{n.isCollapsingOrExpanding=0;if(!n.preventCollapseFire){n.fireEvent("collapse",n)}}return n},doPlaceholderCollapse:function(){var e=this,d=e.placeholder,f=d.expandTool;if(e.focusPlaceholderExpandTool&&f){f.focus()}else{d.focus()}e.focusPlaceholderExpandTool=false;d.setHiddenState(false);d.ariaEl.dom.setAttribute("aria-hidden",false);d.ariaEl.dom.setAttribute("aria-expanded",false);e.ariaEl.dom.setAttribute("aria-hidden",true);e.ariaEl.dom.setAttribute("aria-expanded",false);e.isCollapsingOrExpanding=0;e.fireEvent("collapse",e)},placeholderExpand:function(p){var n=this,l=n.collapsed,k=n.placeholder.expandTool,o=Ext.panel.Panel.floatCls,i=n.ownerLayout?n.ownerLayout.centerRegion:null,m,j;if(Ext.Component.layoutSuspendCount){p=false}if(n.floatedFromCollapse){j=n.getPosition(true);n.slideOutFloatedPanelBegin();n.slideOutFloatedPanelEnd();n.floated=false}if(k&&Ext.ComponentManager.getActiveComponent()===k){n.focusHeaderCollapseTool=true;k._ariaRole=k.ariaEl.dom.getAttribute("role");k._ariaLabel=k.ariaEl.dom.getAttribute("aria-label");k.ariaEl.dom.setAttribute("role","presentation");k.ariaEl.dom.removeAttribute("aria-label")}if(p){Ext.suspendLayouts();n.placeholder.hide();n.el.show();n.collapsed=false;n.setHiddenState(false);if(i&&!j){i.hidden=true}Ext.resumeLayouts(true);i.hidden=false;n.el.addCls(o);n.isCollapsingOrExpanding=2;if(j){m=n.getXY();n.setLocalXY(j[0],j[1]);n.setXY([m[0],m[1]],{duration:Ext.Number.from(p,Ext.fx.Anim.prototype.duration),listeners:{scope:n,afteranimate:function(){var a=this;a.el.removeCls(o);a.isCollapsingOrExpanding=0;a.fireEvent("expand",a)}}})}else{n.el.hide();n.placeholder.el.show();n.placeholder.hidden=false;n.setHiddenState(false);n.el.slideIn(n.convertCollapseDir(l),{preserveScroll:true,duration:Ext.Number.from(p,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:n.doPlaceholderExpand,scope:n}})}}else{n.floated=n.collapsed=false;n.doPlaceholderExpand(true)}return n},doPlaceholderExpand:function(f){var j=this,i=j.placeholder,g=j.collapseTool,h=i.expandTool;if(f){Ext.suspendLayouts();j.show()}j.el.removeCls(Ext.panel.Panel.floatCls);i.hide();if(f){Ext.resumeLayouts(true)}else{j.updateLayout()}if(j.focusHeaderCollapseTool&&g){g.focus()}j.focusHeaderCollapseTool=false;i.ariaEl.dom.setAttribute("aria-expanded",true);j.ariaEl.dom.setAttribute("aria-expanded",true);if(h&&h._ariaRole){h.ariaEl.dom.setAttribute("role",h._ariaRole);h.ariaEl.dom.setAttribute("aria-label",h._ariaLabel);h._ariaRole=h._ariaLabel=null}j.isCollapsingOrExpanding=0;j.fireEvent("expand",j)},remove:function(d,e){var f=this.dockedItems;if(f&&f.contains(d)){this.removeDocked(d,e)}else{Ext.container.Container.prototype.remove.call(this,d,e)}return d},removeBodyCls:function(d){var f=this,e=f.rendered?f.body:f.getProtoBody();e.removeCls(d);return f},removeUIClsFromElement:function(d){var f=this,e=Ext.container.Container.prototype.removeUIClsFromElement.apply(this,arguments);f.removeBodyCls(["x-"+d,f.baseCls+"-body-"+d,f.baseCls+"-body-"+f.ui+"-"+d]);return e},restoreDimension:function(){var b=this.collapseDirection;return(b==="top"||b==="bottom")?"height":"width"},restoreHiddenDocked:function(){this.setDockedItemsVisibility(this.hiddenOnCollapse,true)},setBodyStyle:function(e,g){var h=this,f=h.rendered?h.body:h.getProtoBody();if(Ext.isFunction(e)){e=e()}if(arguments.length===1){if(Ext.isString(e)){e=Ext.Element.parseStyles(e)}f.setStyle(e)}else{f.setStyle(e,g)}return h},setBorder:function(f,h){if(h){return}var e=this,g=e.header;if(!f){f=0}else{if(f===true){f="1px"}else{f=e.unitizeBox(f)}}if(g){if(g.isHeader){g.setBorder(f)}else{g.border=f}}if(e.rendered&&e.bodyBorder!==false){e.body.setStyle("border-width",f)}e.updateLayout();e.border=f},setCollapsed:function(b){this[b?"collapse":"expand"]()},setDockedItemsVisibility:function(m,p){var k=this,o=k.getDockedItems(),j=o.length,n=0,l,i;if(k.header!==false){i=k.getReExpander()}for(;n<j;n++){l=o[n];if(l&&l!==i&&l.el){m.add(l.el)}}m.setStyle("visibility",p?"":"hidden");m.clear()},setGlyph:function(j){var f=this,g=f.glyph,h=f.header,i=f.placeholder;if(j!==g){f.glyph=j;if(h){if(h.isHeader){h.setGlyph(j)}else{h.glyph=j}}else{if(f.rendered||f.afterHeaderInit){f.updateHeader()}}if(i&&i.setGlyph){i.setGlyph(j)}f.fireEvent("glyphchange",f,j,g)}},setIcon:function(g){var f=this,j=f.icon,h=f.header,i=f.placeholder;if(g!==j){f.icon=g;if(h){if(h.isHeader){h.setIcon(g)}else{h.icon=g}}else{if(f.rendered||f.afterHeaderInit){f.updateHeader()}}if(i&&i.setIcon){i.setIcon(g)}f.fireEvent("iconchange",f,g,j)}},setIconCls:function(f){var j=this,g=j.iconCls,h=j.header,i=j.placeholder;if(f!==g){j.iconCls=f;if(h){if(h.isHeader){h.setIconCls(f)}else{h.iconCls=f}}else{if(j.rendered||j.afterHeaderInit){j.updateHeader()}}if(i&&i.setIconCls){i.setIconCls(f)}j.fireEvent("iconclschange",j,f,g)}},setTitle:function(j){var l=this,g=l.title,i=l.header,h=l.reExpander,k=l.placeholder;if(j!==g){l.title=j;if(i){if(i.isHeader){i.setTitle(j)}}else{if(l.rendered||l.afterHeaderInit){l.updateHeader()}}if(l.headingEl){l.headingEl.setHtml(j)}if(h){h.setTitle(j)}if(k&&k.setTitle){k.setTitle(j)}l.fireEvent("titlechange",l,j,g)}},setHiddenDocked:function(){var c=this,d=new Ext.dom.CompositeElement();c.hiddenOnCollapse.add(c.body);d.add(c.body);c.setDockedItemsVisibility(d,false)},setUI:function(c){var d=this;Ext.container.Container.prototype.setUI.apply(this,arguments);if(d.header&&d.header.rendered){d.header.setUI(c)}},toggleCollapse:function(){return(this.collapsed||this.floatedFromCollapse)?this.expand():this.collapse()},updateCollapseTool:function(){var d=this,e=d.collapseTool,f;if(!e&&d.collapsible){d.collapseDirection=d.collapseDirection||d.getHeaderPosition()||"top";f={xtype:"tool",handler:d.toggleCollapse,scope:d};if(d.isAccordionPanel){f.focusable=false;f.ariaRole="presentation"}d.collapseTool=d.expandTool=e=Ext.widget(f)}if(e){if(d.collapsed&&!d.isPlaceHolderCollapse()){e.setType("expand-"+d.getOppositeDirection(d.collapseDirection));e.setTooltip(d.expandToolText)}else{e.setType("collapse-"+d.collapseDirection);e.setTooltip(d.collapseToolText)}}},navigateAccordion:function(l){var n=this,e=n.accordionWrapOver,j="[isAccordionPanel]",k=j+":first",m=j+":last",p,o;p=l.getKey();switch(p){case l.UP:case l.LEFT:o=n.prev(j);if(!o&&e){o=n.ownerCt.child(m)}break;case l.DOWN:case l.RIGHT:o=n.next(j);if(!o&&e){o=n.ownerCt.child(k)}break;case l.HOME:o=n.ownerCt.child(k);break;case l.END:o=n.ownerCt.child(m);break;case l.DELETE:o=n.prev(j)||n.next(j);if(!o){l.doNotClose=true}break}if(o&&o!==n){o.header.titleCmp.focus()}},fireDefaultButton:function(h){var e=this,g,f;g=e.lookupReferenceHolder(false)||e;f=g.lookupReference(e.defaultButton);if(f&&f.click){f.click(h);h.stopEvent();return false}},maybeClose:function(c){var d=this;if(d.closable){d.navigateAccordion(c);if(!c.doNotClose){d.close()}}},onFocusEnter:function(f){var d=this,e=d.ariaEl.dom;Ext.container.Container.prototype.onFocusEnter.call(this,f);if(d.isAccordionPanel&&e){e.setAttribute("aria-selected",true)}},onFocusLeave:function(f){var d=this,e=d.ariaEl.dom;Ext.container.Container.prototype.onFocusLeave.call(this,f);if(d.isAccordionPanel&&e){e.removeAttribute("aria-selected")}},updateHeaderPosition:function(d){var c=this.header;if(c&&c.isHeader){c.setDock(d)}},updateIconAlign:function(c){var d=this.header;if(d&&d.isHeader){d.setIconAlign(c)}},updateTitleAlign:function(c){var d=this.header;if(d&&d.isHeader){d.setTitleAlign(c)}},updateTitleRotation:function(d){var c=this.header;if(c&&c.isHeader){c.setTitleRotation(d)}},unghost:function(j,g,f){var h=this,i=h.ghostPanel;if(!i){return}if(j!==false){h.el.show();if(g!==false){h.setPagePosition(i.getXY());if(h.hideMode==="offsets"){delete h.el.hideModeStyles}}if(f){h.focus(false,10)}}i.el.hide();i.setHiddenState(true)},updateHeader:function(B){var t=this,x=t.header,q=t.getTitle(),v=t.tools,r=t.getIcon(),s=t.getGlyph(),o=t.getIconCls(),y=s||r||o,u=t.ariaEl.dom,w=t.getHeaderPosition(),z=w==="left"||w==="right",p,A;if(Ext.isObject(x)||(x!==false&&(B||(q||y)||(v&&v.length)||(t.collapsible&&!t.titleCollapse)))){if(x&&x.isHeader){x.show()}else{x=t.header=Ext.widget(Ext.merge({xtype:"header",title:q,titleAlign:t.getTitleAlign(),vertical:z,dock:t.getHeaderPosition()||"top",titleRotation:t.getTitleRotation(),textCls:t.headerTextCls,iconCls:o,iconAlign:t.getIconAlign(),icon:r,glyph:s,baseCls:t.baseCls+"-header",tools:v,ui:t.ui,id:t.id+"_header",overCls:t.headerOverCls,indicateDrag:t.draggable,frame:(t.frame||t.alwaysFramed)&&t.frameHeader,ignoreParentFrame:t.frame||t.overlapHeader,ignoreBorderManagement:t.frame||t.ignoreHeaderBorderManagement,isAccordionHeader:t.isAccordionPanel,ownerCt:t,synthetic:true,listeners:t.collapsible&&t.titleCollapse?{click:t.toggleCollapse,scope:t}:null},t.header));t.addDocked(x,0)}if(t.isAccordionPanel){if(u){u.setAttribute("aria-labelledby",x.id+"-title");u.removeAttribute("aria-label")}else{A=t.ariaRenderAttributes||(t.ariaRenderAttributes={});A["aria-labelledby"]=x.id+"-title";delete A["aria-label"]}}else{if(q){if(t.ariaRole!=="tabpanel"){if(u){u.setAttribute("aria-labelledby",x.id+"-title-textEl");u.removeAttribute("aria-label")}else{A=t.ariaRenderAttributes||(t.ariaRenderAttributes={});A["aria-labelledby"]=x.id+"-title-textEl";delete A["aria-label"]}}}else{if(t.ariaRenderAttributes){delete t.ariaRenderAttributes["aria-label"]}}}}else{if(x){x.hide()}q=Ext.util.Format.stripTags(q);if(u){if(!u.hasAttribute("aria-labelledby")){if(q){u.setAttribute("aria-label",q)}else{u.removeAttribute("aria-label")}}}else{A=t.ariaRenderAttributes||(t.ariaRenderAttributes={});if(!A["aria-labelledby"]){if(q){A["aria-label"]=q}else{delete A["aria-label"]}}}}if(t.isViewportBorderChild&&!t.hasOwnProperty("ariaRole")){t.ariaRole="region"}if(q&&t.ariaRole==="region"){p=t.headingEl;if(p){p.setHtml(q)}else{if(t.rendered){t.headingEl=Ext.dom.Helper.insertFirst(t.el,{tag:"div",id:t.id+"-headingEl",role:"heading","class":"x-hidden-clip",style:"height:0",html:q},true);u.removeAttribute("aria-label");u.setAttribute("aria-labelledby",t.id+"-headingEl")}else{t.headingText=t.title;A=t.ariaRenderAttributes||(t.ariaRenderAttributes={});A["aria-labelledby"]=t.id+"-headingEl";delete A["aria-label"]}}}else{if(t.headingEl){t.headingEl.destroy();t.headingEl=null}}},statics:{floatCls:"x-border-region-slide-in"},privates:{addUIToElement:function(){var b=this;Ext.container.Container.prototype.addUIToElement.apply(this,arguments);b.addBodyCls(b.baseCls+"-body-"+b.ui)},applyTargetCls:function(b){this.getProtoBody().addCls(b)},getDefaultContentTarget:function(){return this.body},getTargetEl:function(){var b=this;return b.body||b.protoBody||b.frameBody||b.el},initDraggable:function(){var b=this;if(b.simpleDrag){b.initSimpleDraggable()}else{b.dd=new Ext.panel.DD(b,Ext.isBoolean(b.draggable)?null:b.draggable)}},initResizable:function(){Ext.container.Container.prototype.initResizable.apply(this,arguments);if(this.collapsed){this.resizer.disable()}},initSimpleDraggable:function(){var f=this,d,e;if(!f.header){f.updateHeader(true)}if(f.header){d=Ext.applyIf({el:f.el,delegate:"#"+f.header.id},f.draggable);if(f.constrain||f.constrainHeader){d.constrain=f.constrain;d.constrainDelegate=f.constrainHeader;d.constrainTo=f.constrainTo||f.container}e=f.dd=new Ext.util.ComponentDragger(f,d);f.relayEvents(e,["dragstart","drag","dragend"]);if(f.maximized){e.disable()}}},removeUIFromElement:function(){var b=this;Ext.container.Container.prototype.removeUIFromElement.apply(this,arguments);b.removeBodyCls(b.baseCls+"-body-"+b.ui)},setupRenderTpl:function(b){Ext.container.Container.prototype.setupRenderTpl.apply(this,arguments);this.setupDockingRenderTpl(b)},slideOutFloatedPanel:function(g){var j=this,h=j.el,i,f=function(){j.slideOutFloatedPanelEnd();j.el.removeCls("x-border-region-slide-in")};if(j.isSliding||j.destroyed){return}j.isSliding=true;j.floated=false;j.slideOutFloatedPanelBegin();if(g){h.hide();return f()}if(typeof j.collapsed==="string"){i=j.convertCollapseDir(j.collapsed)}h.slideOut(i,{preserveScroll:true,duration:Ext.Number.from(j.animCollapse,Ext.fx.Anim.prototype.duration),listeners:{afteranimate:f}})},slideOutFloatedPanelBegin:function(){var d=this,f=d.placeholder.el,e=d.el;d.collapsed=d.floatedFromCollapse;d.setHiddenState(true);d.floatedFromCollapse=null;f.un("mouseleave",d.onMouseLeaveFloated,d);e.un("mouseleave",d.onMouseLeaveFloated,d);f.un("mouseenter",d.onMouseEnterFloated,d);e.un("mouseenter",d.onMouseEnterFloated,d)},slideOutFloatedPanelEnd:function(d){var c=this;if(c.collapseTool){c.collapseTool.el.show()}c.slideOutTask.cancel();c.isSliding=false;if(!d){c.fireEvent("unfloat",c)}}}},0,["panel"],["component","box","container","panel"],{component:true,box:true,container:true,panel:true},["widget.panel"],[["docking",Ext.container.DockingContainer]],[Ext.panel,"Panel",Ext,"Panel"],function(){var b=this.prototype;b.animCollapse=Ext.enableFx;b.placeholderCollapseHideMode=Ext.Element.VISIBILITY}));Ext.define("Ext.theme.neptune.panel.Panel",{override:"Ext.panel.Panel",border:false,bodyBorder:false,initBorderProps:Ext.emptyFn,initBodyBorder:function(){if(this.bodyBorder!==true){arguments.callee.$previous.call(this)}}});(Ext.cmd.derive("Ext.container.Monitor",Ext.Base,{target:null,selector:"",scope:null,addHandler:null,removeHandler:null,invalidateHandler:null,disabled:0,constructor:function(b){Ext.apply(this,b)},bind:function(c){var d=this;d.target=c;c.on("beforedestroy",d.disable,d);d.onContainerAdd(c)},unbind:function(){var d=this,c=d.target;if(c){c.un("beforedestroy",d.disable,d)}d.items=null},disable:function(){++this.disabled},enable:function(){if(this.disabled>0){--this.disabled}},handleAdd:function(c,d){if(!this.disabled){if(d.is(this.selector)){this.onItemAdd(d.ownerCt,d)}if(d.isQueryable){this.onContainerAdd(d)}}},onItemAdd:function(j,f){var h=this,g=h.items,i=h.addHandler;if(!h.disabled){if(i){i.call(h.scope||f,f)}if(g){g.add(f)}}},onItemRemove:function(j,f){var h=this,g=h.items,i=h.removeHandler;if(!h.disabled){if(i){i.call(h.scope||f,f)}if(g){g.remove(f)}}},onContainerAdd:function(m,q){var i=this,k,l,p=i.handleAdd,r=i.handleRemove,o,n;if(m.isContainer){m.on("add",p,i);m.on("dockedadd",p,i);m.on("remove",r,i);m.on("dockedremove",r,i)}if(q!==true){k=m.query(i.selector);for(o=0,l=k.length;o<l;++o){n=k[o];i.onItemAdd(n.ownerCt,n)}}k=m.query(">container");for(o=0,l=k.length;o<l;++o){i.onContainerAdd(k[o],true)}},handleRemove:function(d,e){var f=this;if(!f.disabled){if(e.is(f.selector)){f.onItemRemove(d,e)}if(e.isQueryable){f.onContainerRemove(d,e)}}},onContainerRemove:function(l,n){var j=this,h,m,i,k;if(!n.destroyed&&!n.destroying&&n.isContainer){j.removeCtListeners(n);h=n.query(j.selector);for(m=0,i=h.length;m<i;++m){k=h[m];j.onItemRemove(k.ownerCt,k)}h=n.query("container");for(m=0,i=h.length;m<i;++m){j.removeCtListeners(h[m])}}else{j.invalidateItems(true)}},removeCtListeners:function(d){var c=this;d.un("add",c.handleAdd,c);d.un("dockedadd",c.handleAdd,c);d.un("remove",c.handleRemove,c);d.un("dockedremove",c.handleRemove,c)},getItems:function(){var c=this,d=c.items;if(!d){d=c.items=new Ext.util.MixedCollection();d.addAll(c.target.query(c.selector))}return d},invalidateItems:function(f){var d=this,e=d.invalidateHandler;if(f&&e){e.call(d.scope||d,d)}d.items=null}},1,0,0,0,0,0,[Ext.container,"Monitor"],0));(Ext.cmd.derive("Ext.plugin.Responsive",Ext.mixin.Responsive,{pluginId:"responsive",isPlugin:true,constructor:function(f){var h=this,c=f.cmp,g=Ext.apply({responsiveConfig:c.responsiveConfig,responsiveFormulas:c.responsiveFormulas},f);delete g.cmp;h.cmp=c;h.initConfig(g);if(h.transformed){c.setConfig(h.transformed);h.transformed=null}},init:Ext.emptyFn,privates:{transformInstanceConfig:function(f){var d=Ext.mixin.Responsive.prototype.transformInstanceConfig.call(this,f);if(d.ptype){d=Ext.apply({},d);delete d.ptype}this.transformed=d;var e=Ext.apply({},f);delete e.ptype;delete e.responsiveConfig;delete e.responsiveFormulas;return e},updateResponsiveState:function(){var b=this.getResponsiveState();this.cmp.setConfig(b)}}},1,0,0,0,["plugin.responsive"],0,[Ext.plugin,"Responsive"],0));(Ext.cmd.derive("Ext.plugin.Viewport",Ext.plugin.Responsive,{setCmp:function(b){this.cmp=b;if(b&&!b.isViewport){this.decorate(b);if(b.renderConfigs){b.flushRenderConfigs()}b.setupViewport()}},statics:{decorate:function(b){Ext.applyIf(b.prototype||b,{ariaRole:"application",viewportCls:"x-viewport"});Ext.override(b,{isViewport:true,preserveElOnDestroy:true,initComponent:function(){this.callParent();this.setupViewport()},getSizeModel:function(){var a=Ext.layout.SizeModel.configured;return a.pairsByHeightOrdinal[a.ordinal]},handleViewportResize:function(){var f=this,h=Ext.dom.Element,g=h.getViewportWidth(),a=h.getViewportHeight();if(g!==f.width||a!==f.height){f.setSize(g,a)}},setupViewport:function(){var e=this,f=document.body,a=Ext.scroll.DomScroller;if(a.document){a.document=a.document.destroy()}if(!f.id){f.id=e.id}f.setAttribute("data-componentid",e.id);if(!e.ariaStaticRoles[e.ariaRole]){f.setAttribute("role",e.ariaRole)}f=e.el=Ext.getBody();Ext.fly(document.documentElement).addCls(e.viewportCls);f.setHeight=f.setWidth=Ext.emptyFn;f.dom.scroll="no";e.allowDomMove=false;e.renderTo=f;if(Ext.supports.Touch){e.addMeta("apple-mobile-web-app-capable","yes")}Ext.getScrollbarSize();e.width=e.height=undefined;e.initialViewportHeight=Ext.Element.getViewportHeight();e.initialViewportWidth=Ext.Element.getViewportWidth()},afterLayout:function(a){if(Ext.supports.Touch){document.body.scrollTop=0}this.callParent([a])},onRender:function(){var a=this;a.callParent(arguments);a.width=a.initialViewportWidth;a.height=a.initialViewportHeight;a.initialViewportWidth=a.initialViewportHeight=null;if(Ext.supports.TouchEvents){a.mon(Ext.getDoc(),{touchmove:function(d){d.preventDefault()},translate:false,delegated:false})}},initInheritedState:function(g,h){var f=this,a=Ext.rootInheritedState;if(g!==a){f.initInheritedState(f.inheritedState=a,f.inheritedStateInner=Ext.Object.chain(a))}else{f.callParent([g,h])}},beforeDestroy:function(){var e=this,a=Ext.rootInheritedState,f;for(f in a){if(f!=="rtl"){delete a[f]}}e.removeUIFromElement();e.el.removeCls(e.baseCls);Ext.fly(document.body.parentNode).removeCls(e.viewportCls);e.callParent()},addMeta:function(a,f){var e=document.createElement("meta");e.setAttribute("name",a);e.setAttribute("content",f);Ext.getHead().appendChild(e)},privates:{applyTargetCls:function(a){this.el.addCls(a)},disableTabbing:function(){var a=this.el;if(a){a.saveTabbableState({skipSelf:true})}},enableTabbing:function(){var a=this.el;if(a){a.restoreTabbableState(true)}}}})}},privates:{updateResponsiveState:function(){this.cmp.handleViewportResize();Ext.plugin.Responsive.prototype.updateResponsiveState.call(this)}}},0,0,0,0,["plugin.viewport"],0,[Ext.plugin,"Viewport"],function(b){b.prototype.decorate=b.decorate}));(Ext.cmd.derive("Ext.container.Viewport",Ext.container.Container,{alternateClassName:"Ext.Viewport",ariaRole:"application",privates:{updateResponsiveState:function(){this.handleViewportResize();this.mixins.responsive.updateResponsiveState.call(this)}}},0,["viewport"],["component","box","container","viewport"],{component:true,box:true,container:true,viewport:true},["widget.viewport"],[[Ext.mixin.Responsive.prototype.mixinId||Ext.mixin.Responsive.$className,Ext.mixin.Responsive]],[Ext.container,"Viewport",Ext,"Viewport"],function(){Ext.plugin.Viewport.decorate(this)}));(Ext.cmd.derive("Ext.layout.container.Anchor",Ext.layout.container.Auto,{alternateClassName:"Ext.layout.AnchorLayout",type:"anchor",defaultAnchor:"100%",parseAnchorRE:/^(r|right|b|bottom)$/i,manageOverflow:true,setsItemSize:true,beginLayoutCycle:function(m){var n=this,o=0,k,j,l,i,p;Ext.layout.container.Auto.prototype.beginLayoutCycle.apply(this,arguments);l=m.childItems;p=l.length;for(i=0;i<p;++i){j=l[i];k=j.target.anchorSpec;if(k){if(j.widthModel.calculated&&k.right){o|=1}if(j.heightModel.calculated&&k.bottom){o|=2}if(o===3){break}}}m.anchorDimensions=o},calculateItems:function(B,H){var t=this,y=B.childItems,C=y.length,v=H.gotHeight,A=H.gotWidth,D=H.height,F=H.width,G=(A?1:0)|(v?2:0),u=B.anchorDimensions,x,i,w,s,z,E;if(!u){return true}for(z=0;z<C;z++){i=y[z];w=i.getMarginInfo();x=i.target.anchorSpec;if(A&&i.widthModel.calculated){E=x.right(F)-w.width;E=t.adjustWidthAnchor(E,i);i.setWidth(E)}if(v&&i.heightModel.calculated){s=x.bottom(D)-w.height;s=t.adjustHeightAnchor(s,i);i.setHeight(s)}}return(G&u)===u},anchorFactory:{offset:function(b){return function(a){return a+b}},ratio:function(b){return function(a){return Math.floor(a*b)}},standard:function(b){return function(a){return a-b}}},parseAnchor:function(j,g,a){if(j&&j!=="none"){var i=this.anchorFactory,h;if(this.parseAnchorRE.test(j)){return i.standard(a-g)}if(j.indexOf("%")!==-1){return i.ratio(parseFloat(j.replace("%",""))*0.01)}h=parseInt(j,10);if(!isNaN(h)){return i.offset(h)}}return null},adjustWidthAnchor:function(c,d){return c},adjustHeightAnchor:function(c,d){return c},configureItem:function(k){var l=this,i=l.owner,m=k.anchor,h,n,j;Ext.layout.container.Auto.prototype.configureItem.apply(this,arguments);if(!k.anchor&&k.items&&!Ext.isNumber(k.width)){k.anchor=m=l.defaultAnchor}if(i.anchorSize){if(typeof i.anchorSize==="number"){n=i.anchorSize}else{n=i.anchorSize.width;j=i.anchorSize.height}}else{n=i.initialConfig.width;j=i.initialConfig.height}if(m){h=m.split(" ");k.anchorSpec={right:l.parseAnchor(h[0],k.initialConfig.width,n),bottom:l.parseAnchor(h[1],k.initialConfig.height,j)}}},sizePolicy:{$:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},b:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},r:{$:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},b:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}}},getItemSizePolicy:function(j){var h=j.anchorSpec,g="$",i=this.sizePolicy,f;if(h){f=this.owner.getSizeModel();if(h.right&&!f.width.shrinkWrap){i=i.r}if(h.bottom&&!f.height.shrinkWrap){g="b"}}return i[g]}},0,0,0,0,["layout.anchor"],0,[Ext.layout.container,"Anchor",Ext.layout,"AnchorLayout"],0));(Ext.cmd.derive("Ext.dd.DragTracker",Ext.Base,{active:false,trackOver:false,tolerance:5,autoStart:false,constructor:function(d){var c=this;Ext.apply(c,d);c.dragRegion=new Ext.util.Region(0,0,0,0);if(c.el){c.initEl(c.el)}c.mixins.observable.constructor.call(c);if(c.disabled){c.disable()}},initEl:function(d){var f=this,e=f.delegate;f.el=d=Ext.get(d);if(e&&e.isElement){f.handle=e}f.delegate=f.handle?undefined:f.delegate;if(!f.handle){f.handle=d}f.handleListeners={scope:f,delegate:f.delegate,mousedown:f.onMouseDown,dragstart:f.onDragStart};if(!Ext.supports.TouchEvents&&(f.trackOver||f.overCls)){Ext.apply(f.handleListeners,{mouseover:f.onMouseOver,mouseout:f.onMouseOut})}f.mon(f.handle,f.handleListeners);f.keyNav=new Ext.util.KeyNav({target:d,up:f.onResizeKeyDown,left:f.onResizeKeyDown,right:f.onResizeKeyDown,down:f.onResizeKeyDown,scope:f})},disable:function(){this.disabled=true},enable:function(){this.disabled=false},destroy:function(){var b=this;b.endDrag({});b.el=b.handle=b.onBeforeStart=b.onStart=b.onDrag=b.onEnd=null;b.callParent()},onMouseOver:function(k,l){var n=this,m,o,p,i,e;if(!n.disabled){if(k.within(k.target,true,true)||n.delegate){m=n.handleCls;n.mouseIsOut=false;if(m){for(p=0,i=n.handleEls.length;p<i;p++){o=n.handleEls[p];e=o.delegateCls;if(!e){e=o.delegateCls=[m,"-",o.region,"-over"].join("")}o.addCls([e,n.overCls])}}n.fireEvent("mouseover",n,k,n.delegate?k.getTarget(n.delegate,l):n.handle)}}},onMouseOut:function(h){var i=this,j,e,g;if(i.mouseIsDown){i.mouseIsOut=true}else{if(i.handleCls){for(e=0,g=i.handleEls.length;e<g;e++){j=i.handleEls[e];j.removeCls([j.delegateCls,i.overCls])}}i.fireEvent("mouseout",i,h)}},onMouseDown:function(f,d){var e=this;if(e.disabled||f.dragTracked){return}e.dragTarget=e.delegate?d:e.handle.dom;e.startXY=e.lastXY=f.getXY();e.startRegion=Ext.fly(e.dragTarget).getRegion();if(e.fireEvent("mousedown",e,f)===false||e.fireEvent("beforedragstart",e,f)===false||e.onBeforeStart(f)===false){return}e.mouseIsDown=true;f.dragTracked=true;e.el.setCapture();f.stopPropagation();if(e.preventDefault!==false){f.preventDefault()}Ext.getDoc().on({scope:e,capture:true,mouseup:e.onMouseUp,mousemove:e.onMouseMove,selectstart:e.stopSelect});e.dragEnded=false;if(!e.tolerance){e.triggerStart()}else{if(e.autoStart){e.timer=Ext.defer(e.triggerStart,e.autoStart===true?1000:e.autoStart,e,[f])}}},onMouseMove:function(h,i){var e=this,j=h.getXY(),g=e.startXY;h.stopPropagation();if(e.preventDefault!==false){h.preventDefault()}if(e.dragEnded){return}e.lastXY=j;if(!e.active){if(Math.max(Math.abs(g[0]-j[0]),Math.abs(g[1]-j[1]))>e.tolerance){e.triggerStart(h)}else{return}}if(e.fireEvent("mousemove",e,h)===false){e.onMouseUp(h)}else{e.onDrag(h);e.fireEvent("drag",e,h)}},onMouseUp:function(c){var d=this;d.mouseIsDown=false;if(d.mouseIsOut){d.mouseIsOut=false;d.onMouseOut(c)}if(d.preventDefault!==false){c.preventDefault()}if(Ext.isIE&&document.releaseCapture){document.releaseCapture()}d.fireEvent("mouseup",d,c);d.endDrag(c)},endDrag:function(f){var d=this,e=d.active;Ext.getDoc().un({mousemove:d.onMouseMove,mouseup:d.onMouseUp,selectstart:d.stopSelect,capture:true,scope:d});d.clearStart();d.active=false;if(e){d.dragEnded=true;d.onEnd(f);d.fireEvent("dragend",d,f)}d._constrainRegion=null},triggerStart:function(c){var d=this;d.clearStart();d.active=true;d.onStart(c);d.fireEvent("dragstart",d,c)},clearStart:function(){var b=this.timer;if(b){clearTimeout(b);this.timer=null}},stopSelect:function(b){b.stopEvent();return false},onBeforeStart:function(b){},onStart:function(b){},onDrag:function(b){},onEnd:function(b){},getDragTarget:function(){return this.dragTarget},getDragCt:function(){return this.el},getConstrainRegion:function(){var b=this;if(b.constrainTo){if(b.constrainTo instanceof Ext.util.Region){return b.constrainTo}if(!b._constrainRegion){b._constrainRegion=Ext.fly(b.constrainTo).getViewRegion()}}else{if(!b._constrainRegion){b._constrainRegion=b.getDragCt().getViewRegion()}}return b._constrainRegion},getXY:function(b){return b?this.constrainModes[b](this,this.lastXY):this.lastXY},getOffset:function(f){var d=this.getXY(f),e=this.startXY;return[d[0]-e[0],d[1]-e[1]]},onDragStart:function(b){b.stopPropagation()},constrainModes:{point:function(e,g){var h=e.dragRegion,f=e.getConstrainRegion();if(!f){return g}h.x=h.left=h[0]=h.right=g[0];h.y=h.top=h[1]=h.bottom=g[1];h.constrainTo(f);return[h.left,h.top]},dragTarget:function(l,i){var g=l.startXY,j=l.startRegion.copy(),h=l.getConstrainRegion(),k;if(!h){return i}j.translateBy(i[0]-g[0],i[1]-g[1]);if(j.right>h.right){i[0]+=k=(h.right-j.right);j.left+=k}if(j.left<h.left){i[0]+=(h.left-j.left)}if(j.bottom>h.bottom){i[1]+=k=(h.bottom-j.bottom);j.top+=k}if(j.top<h.top){i[1]+=(h.top-j.top)}return i}}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.dd,"DragTracker"],0));(Ext.cmd.derive("Ext.resizer.SplitterTracker",Ext.dd.DragTracker,{enabled:true,overlayCls:"x-resizable-overlay",createDragOverlay:function(){var d,c=Ext.dom.Element;d=this.overlay=Ext.getBody().createChild({role:"presentation",cls:this.overlayCls,html:"&#160;"});d.unselectable();d.setSize(c.getDocumentWidth(),c.getDocumentHeight());d.show()},getPrevCmp:function(){var b=this.getSplitter();return b.previousSibling(":not([hidden])")},getNextCmp:function(){var b=this.getSplitter();return b.nextSibling(":not([hidden])")},onBeforeStart:function(j){var m=this,l=m.getPrevCmp(),i=m.getNextCmp(),n=m.getSplitter().collapseEl,k=j.getTarget(),e;if(!l||!i){return false}if(n&&k===n.dom){return false}if(i.collapsed||l.collapsed){return false}m.prevBox=l.getEl().getBox();m.nextBox=i.getEl().getBox();m.constrainTo=e=m.calculateConstrainRegion();if(!e){return false}return e},onStart:function(c){var d=this.getSplitter();this.createDragOverlay();d.addCls(d.baseCls+"-active")},onResizeKeyDown:function(l){var e=this,m=e.getSplitter(),i=l.getKey(),n=m.orientation==="vertical"?0:1,j=i===l.UP||i===l.LEFT?-1:1,k;if(!e.active&&e.onBeforeStart(l)){Ext.fly(l.target).on("keyup",e.onResizeKeyUp,e);e.triggerStart(l);e.onMouseDown(l);e.startXY=m.getXY();e.lastKeyDownXY=Ext.Array.slice(e.startXY);k=e.easing=new Ext.fx.easing.Linear();k.setStartTime(Ext.Date.now());k.setStartValue(1);k.setEndValue(4);k.setDuration(2000)}if(e.active){e.lastKeyDownXY[n]=Math.round(e.lastKeyDownXY[n]+(j*e.easing.getValue()));e.lastXY=e.lastKeyDownXY;m.setXY(e.getXY("dragTarget"))}},onResizeKeyUp:function(b){this.onMouseUp(b)},calculateConstrainRegion:function(){var r=this,x=r.getSplitter(),q=x.getWidth(),p=x.defaultSplitMin,w=x.orientation,t=r.prevBox,o=r.getPrevCmp(),v=r.nextBox,s=r.getNextCmp(),m,n,u;if(w==="vertical"){u={prevCmp:o,nextCmp:s,prevBox:t,nextBox:v,defaultMin:p,splitWidth:q};m=new Ext.util.Region(t.y,r.getVertPrevConstrainRight(u),t.bottom,r.getVertPrevConstrainLeft(u));n=new Ext.util.Region(v.y,r.getVertNextConstrainRight(u),v.bottom,r.getVertNextConstrainLeft(u))}else{m=new Ext.util.Region(t.y+(o.minHeight||p),t.right,(o.maxHeight?t.y+o.maxHeight:v.bottom-(s.minHeight||p))+q,t.x);n=new Ext.util.Region((s.maxHeight?v.bottom-s.maxHeight:t.y+(o.minHeight||p))-q,v.right,v.bottom-(s.minHeight||p),v.x)}return m.intersect(n)},performResize:function(v,A){var t=this,F=t.getSplitter(),z=F.orientation,s=t.getPrevCmp(),u=t.getNextCmp(),E=F.ownerCt,x=E.query(">[flex]"),w=x.length,D=z==="vertical",y=0,B=D?"width":"height",C=0,i,e;for(;y<w;y++){i=x[y];e=D?i.getWidth():i.getHeight();C+=e;i.flex=e}A=D?A[0]:A[1];if(s){e=t.prevBox[B]+A;if(s.flex){s.flex=e}else{s[B]=e}}if(u){e=t.nextBox[B]-A;if(u.flex){u.flex=e}else{u[B]=e}}E.updateLayout()},endDrag:function(){var b=this;if(b.overlay){b.overlay.destroy();delete b.overlay}Ext.dd.DragTracker.prototype.endDrag.apply(this,arguments)},onEnd:function(f){var e=this,d=e.getSplitter();d.removeCls(d.baseCls+"-active");e.performResize(f,e.getResizeOffset())},onDrag:function(j){var l=this,i=l.getOffset("dragTarget"),k=l.getSplitter(),e=k.getEl(),h=k.orientation;if(h==="vertical"){e.setX(l.startRegion.left+i[0])}else{e.setY(l.startRegion.top+i[1])}},getSplitter:function(){return this.splitter},getVertPrevConstrainRight:function(b){return(b.prevCmp.maxWidth?b.prevBox.x+b.prevCmp.maxWidth:b.nextBox.right-(b.nextCmp.minWidth||b.defaultMin))+b.splitWidth},getVertPrevConstrainLeft:function(b){return b.prevBox.x+(b.prevCmp.minWidth||b.defaultMin)},getVertNextConstrainRight:function(b){return b.nextBox.right-(b.nextCmp.minWidth||b.defaultMin)},getVertNextConstrainLeft:function(b){return(b.nextCmp.maxWidth?b.nextBox.right-b.nextCmp.maxWidth:b.prevBox.x+(b.prevBox.minWidth||b.defaultMin))-b.splitWidth},getResizeOffset:function(){return this.getOffset("dragTarget")}},0,0,0,0,0,0,[Ext.resizer,"SplitterTracker"],0));(Ext.cmd.derive("Ext.dd.DDTarget",Ext.dd.DragDrop,{constructor:function(f,e,d){if(f){this.initTarget(f,e,d)}},getDragEl:Ext.emptyFn,isValidHandleChild:Ext.emptyFn,startDrag:Ext.emptyFn,endDrag:Ext.emptyFn,onDrag:Ext.emptyFn,onDragDrop:Ext.emptyFn,onDragEnter:Ext.emptyFn,onDragOut:Ext.emptyFn,onDragOver:Ext.emptyFn,onInvalidDrop:Ext.emptyFn,onMouseDown:Ext.emptyFn,onMouseUp:Ext.emptyFn,setXConstraint:Ext.emptyFn,setYConstraint:Ext.emptyFn,resetConstraints:Ext.emptyFn,clearConstraints:Ext.emptyFn,clearTicks:Ext.emptyFn,setInitPosition:Ext.emptyFn,setDragElId:Ext.emptyFn,setHandleElId:Ext.emptyFn,setOuterHandleElId:Ext.emptyFn,addInvalidHandleClass:Ext.emptyFn,addInvalidHandleId:Ext.emptyFn,addInvalidHandleType:Ext.emptyFn,removeInvalidHandleClass:Ext.emptyFn,removeInvalidHandleId:Ext.emptyFn,removeInvalidHandleType:Ext.emptyFn,toString:function(){return("DDTarget "+this.id)}},3,0,0,0,0,0,[Ext.dd,"DDTarget"],0));(Ext.cmd.derive("Ext.dd.ScrollManager",Ext.Base,{singleton:true,dirTrans:{up:-1,left:-1,down:1,right:1},constructor:function(){var b=Ext.dd.DragDropManager;b.fireEvents=Ext.Function.createSequence(b.fireEvents,this.onFire,this);b.stopDrag=Ext.Function.createSequence(b.stopDrag,this.onStop,this);this.doScroll=this.doScroll.bind(this);this.ddmInstance=b;this.els={};this.dragEl=null;this.proc={}},onStop:function(d){var c=Ext.dd.ScrollManager;c.dragEl=null;c.clearProc()},triggerRefresh:function(){if(this.ddmInstance.dragCurrent){this.ddmInstance.refreshCache(this.ddmInstance.dragCurrent.groups)}},doScroll:function(){var m=this;if(m.ddmInstance.dragCurrent){var j=m.proc,n=j.el,p=j.component,l=j.el.ddScrollConfig,k=l&&l.increment?l.increment:m.increment,i=l&&"animate" in l?l.animate:m.animate,o=function(){m.triggerRefresh()};if(i){if(i===true){i={callback:o}}else{i.callback=i.callback?Ext.Function.createSequence(i.callback,o):o}}if(p){k=k*m.dirTrans[j.dir];if(j.dir==="up"||j.dir==="down"){p.scrollBy(0,k,i)}else{p.scrollBy(k,0,i)}}else{n.scroll(j.dir,k,i)}if(!i){o()}}},clearProc:function(){var b=this.proc;if(b.id){clearInterval(b.id)}b.id=0;b.el=null;b.dir=""},startProc:function(l,g){var k=this,h=k.proc,i,j;k.clearProc();h.el=l;h.dir=g;i=l.ddScrollConfig?l.ddScrollConfig.ddGroup:undefined;j=(l.ddScrollConfig&&l.ddScrollConfig.frequency)?l.ddScrollConfig.frequency:k.frequency;if(i===undefined||k.ddmInstance.dragCurrent.ddGroup===i){h.id=Ext.interval(k.doScroll,j)}},onFire:function(o,l){var m=this,e,n,q,t,s,p,r;if(l||!m.ddmInstance.dragCurrent){return}if(!m.dragEl||m.dragEl!==m.ddmInstance.dragCurrent){m.dragEl=m.ddmInstance.dragCurrent;m.refreshCache()}e=o.getPoint();n=m.proc;q=m.els;for(t in q){s=q[t];p=s._region;r=s.ddScrollConfig||m;if(p&&p.contains(e)&&s.isScrollable()){if(p.bottom-e.y<=r.vthresh){if(n.el!==s){m.startProc(s,"down")}return}else{if(p.right-e.x<=r.hthresh){if(n.el!==s){m.startProc(s,"right")}return}else{if(e.y-p.top<=r.vthresh){if(n.el!==s){m.startProc(s,"up")}return}else{if(e.x-p.left<=r.hthresh){if(n.el!==s){m.startProc(s,"left")}return}}}}}}m.clearProc()},register:function(f){if(Ext.isArray(f)){for(var d=0,e=f.length;d<e;d++){this.register(f[d])}}else{f=Ext.get(f);this.els[f.id]=f}},unregister:function(f){if(Ext.isArray(f)){for(var d=0,e=f.length;d<e;d++){this.unregister(f[d])}}else{f=Ext.get(f);delete this.els[f.id]}},vthresh:25*(window.devicePixelRatio||1),hthresh:25*(window.devicePixelRatio||1),increment:100,frequency:500,animate:true,animDuration:0.4,ddGroup:undefined,refreshCache:function(){var d=this.els,c;for(c in d){if(typeof d[c]==="object"){d[c]._region=d[c].getRegion()}}}},1,0,0,0,0,0,[Ext.dd,"ScrollManager"],0));(Ext.cmd.derive("Ext.dd.DropTarget",Ext.dd.DDTarget,{constructor:function(c,d){this.el=Ext.get(c);Ext.apply(this,d);if(this.containerScroll){Ext.dd.ScrollManager.register(this.el)}Ext.dd.DDTarget.prototype.constructor.call(this,this.el.dom,this.ddGroup||this.group,{isTarget:true})},containerScroll:false,dropAllowed:"x-dd-drop-ok",dropNotAllowed:"x-dd-drop-nodrop",isTarget:true,isNotifyTarget:true,notifyEnter:function(e,f,d){if(this.overClass){this.el.addCls(this.overClass)}return this.dropAllowed},notifyOver:function(e,f,d){return this.dropAllowed},notifyOut:function(e,f,d){if(this.overClass){this.el.removeCls(this.overClass)}},notifyDrop:function(e,f,d){if(this.overClass){this.el.removeCls(this.overClass)}return false},destroy:function(){Ext.dd.DDTarget.prototype.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.el)}}},1,0,0,0,0,0,[Ext.dd,"DropTarget"],0));(Ext.cmd.derive("Ext.dd.DragZone",Ext.dd.DragSource,{constructor:function(h,e){var g=this,f=g.containerScroll;Ext.dd.DragSource.prototype.constructor.call(this,h,e);if(f){h=g.scrollEl||h;h=Ext.get(h);if(Ext.isObject(f)){h.ddScrollConfig=f}Ext.dd.ScrollManager.register(h)}},getDragData:function(b){return Ext.dd.Registry.getHandleFromEvent(b)},onInitDrag:function(d,c){this.proxy.update(this.dragData.ddel.cloneNode(true));this.onStartDrag(d,c);return true},getRepairXY:function(b){return Ext.fly(this.dragData.ddel).getXY()},destroy:function(){Ext.dd.DragSource.prototype.destroy.call(this);if(this.containerScroll){Ext.dd.ScrollManager.unregister(this.scrollEl||this.el)}}},1,0,0,0,0,0,[Ext.dd,"DragZone"],0));(Ext.cmd.derive("Ext.dd.Registry",Ext.Base,{singleton:true,constructor:function(){this.elements={};this.handles={};this.autoIdSeed=0},getId:function(d,e){if(typeof d==="string"){return d}var f=d.id;if(!f&&e!==false){f="extdd-"+(++this.autoIdSeed);d.id=f}return f},register:function(i,h){h=h||{};if(typeof i==="string"){i=document.getElementById(i)}h.ddel=i;this.elements[this.getId(i)]=h;if(h.isHandle!==false){this.handles[h.ddel.id]=h}if(h.handles){var j=h.handles,f,g;for(f=0,g=j.length;f<g;f++){this.handles[this.getId(j[f])]=h}}},unregister:function(k){var i=this.getId(k,false),j=this.elements[i],l,g,h;if(j){delete this.elements[i];if(j.handles){l=j.handles;for(g=0,h=l.length;g<h;g++){delete this.handles[this.getId(l[g],false)]}}}},getHandle:function(b){if(typeof b!=="string"){b=b.id}return this.handles[b]},getHandleFromEvent:function(c){var d=c.getTarget();return d?this.handles[d.id]:null},getTarget:function(b){if(typeof b!=="string"){b=b.id}return this.elements[b]},getTargetFromEvent:function(c){var d=c.getTarget();return d?this.elements[d.id]||this.handles[d.id]:null}},1,0,0,0,0,0,[Ext.dd,"Registry"],0));(Ext.cmd.derive("Ext.dd.DropZone",Ext.dd.DropTarget,{getTargetFromEvent:function(b){return Ext.dd.Registry.getTargetFromEvent(b)},onNodeEnter:function(g,f,h,e){},onNodeOver:function(g,f,h,e){return this.dropAllowed},onNodeOut:function(g,f,h,e){},onNodeDrop:function(g,f,h,e){return false},onContainerOver:function(e,f,d){return this.dropNotAllowed},onContainerDrop:function(e,f,d){return false},notifyEnter:function(e,f,d){return this.dropNotAllowed},notifyOver:function(g,i,j){var e=this,h=e.getTargetFromEvent(i);if(!h){if(e.lastOverNode){e.onNodeOut(e.lastOverNode,g,i,j);e.lastOverNode=null}return e.onContainerOver(g,i,j)}if(e.lastOverNode!==h){if(e.lastOverNode){e.onNodeOut(e.lastOverNode,g,i,j)}e.onNodeEnter(h,g,i,j);e.lastOverNode=h}return e.onNodeOver(h,g,i,j)},notifyOut:function(e,f,d){if(this.lastOverNode){this.onNodeOut(this.lastOverNode,e,f,d);this.lastOverNode=null}},notifyDrop:function(e,j,k){var l=this,i=l.getTargetFromEvent(j),h=i?l.onNodeDrop(i,e,j,k):l.onContainerDrop(e,j,k);if(l.lastOverNode){l.onNodeOut(l.lastOverNode,e,j,k);l.lastOverNode=null}return h},triggerCacheRefresh:function(){Ext.dd.DDM.refreshCache(this.groups)}},0,0,0,0,0,0,[Ext.dd,"DropZone"],0));(Ext.cmd.derive("Ext.event.publisher.MouseEnterLeave",Ext.event.publisher.Dom,{type:"mouseEnterLeave"},0,0,0,0,0,0,[Ext.event.publisher,"MouseEnterLeave"],function(d){var c={mouseover:"mouseenter",mouseout:"mouseleave"};if(!Ext.supports.MouseEnterLeave){d.override({handledDomEvents:["mouseover","mouseout"],handledEvents:["mouseenter","mouseleave"],doDelegatedEvent:function(b){var e,n,a,l,m,k;b=this.callParent([b]);e=b.getTarget();n=b.getRelatedTarget();if(n&&Ext.fly(e).contains(n)){return}a=e.id;if(a){l=Ext.cache[a];if(l){m=c[b.type];b=b.chain({type:m});if(l.hasListeners[m]){k=l.events[m];if(k){k=k.directs;if(k){b.setCurrentTarget(l.dom);k.fire(b,b.target)}}}}}}})}d.instance=new d()}));(Ext.cmd.derive("Ext.form.action.Action",Ext.Base,{alternateClassName:"Ext.form.Action",submitEmptyText:true,constructor:function(d){if(d){Ext.apply(this,d)}var c=d.params;if(Ext.isString(c)){this.params=Ext.Object.fromQueryString(c)}},run:Ext.emptyFn,onFailure:function(e){var f=this.form,d=f&&!f.destroying&&!f.destroyed;this.response=e;this.failureType=Ext.form.action.Action.CONNECT_FAILURE;if(d){f.afterAction(this,false)}},processResponse:function(b){this.response=b;if(!b.responseText&&!b.responseXML){return true}return(this.result=this.handleResponse(b))},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 b=this;return{success:b.onSuccess,failure:b.onFailure,scope:b,timeout:(b.timeout||b.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(e){var f=this.processResponse(e),g=this.form,h=g&&!g.destroying&&!g.destroyed;if(f===true||!f.success||!f.data){this.failureType=Ext.form.action.Action.LOAD_FAILURE;if(h){g.afterAction(this,false)}return}if(h){g.clearInvalid();g.setValues(f.data);g.afterAction(this,true)}},handleResponse:function(h){var f=this.form.reader,e,g;if(f){e=f.read(h);g=e.records&&e.records[0]?e.records[0].data:null;return{success:e.success,data:g}}return Ext.decode(h.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 c=this,d=c.form;if(c.clientValidation===false||d.isValid()){c.doSubmit()}else{c.failureType=Ext.form.action.Action.CLIENT_INVALID;d.afterAction(c,false)}},doSubmit:function(){var k=this,g=Ext.apply(k.createCallback(),{url:k.getUrl(),method:k.getMethod(),headers:k.headers}),l=k.form,j=k.jsonSubmit||l.jsonSubmit,h=j?"jsonData":"params",i;if(l.hasUpload()){i=k.buildForm();g.form=i.formEl;g.isUpload=true}else{g[h]=k.getParams(j)}Ext.Ajax.request(g);if(i){k.cleanup(i)}},cleanup:function(j){var l=j.formEl,m=j.uploadEls,h=j.uploadFields,i=h.length,n,k;for(n=0;n<i;++n){k=h[n];if(!k.clearOnSubmit){k.restoreInput(m[n])}}if(l){Ext.removeNode(l)}},getParams:function(g){var h=false,e=Ext.form.action.Action.prototype.getParams.call(this),f=this.form.getValues(h,h,this.submitEmptyText!==h,g,true);return Ext.apply({},f,e)},buildForm:function(){var z=this,w=[],y,i,B=z.form,E=z.getParams(),F=[],H=[],C=B.getFields().items,D,A=C.length,x,s,u,t,v,G;for(D=0;D<A;++D){x=C[D];if(x.isFileUpload()){F.push(x)}}for(s in E){if(E.hasOwnProperty(s)){u=E[s];if(Ext.isArray(u)){v=u.length;for(t=0;t<v;t++){w.push(z.getFieldConfig(s,u[t]))}}else{w.push(z.getFieldConfig(s,u))}}}y={tag:"form",role:"presentation",action:z.getUrl(),method:z.getMethod(),target:z.target?(Ext.isString(z.target)?z.target:Ext.fly(z.target).dom.name):"_self",style:"display:none",cn:w};if(F.length){y.encoding=y.enctype="multipart/form-data"}i=Ext.DomHelper.append(Ext.getBody(),y);A=F.length;for(D=0;D<A;++D){G=F[D].extractFileInput();i.appendChild(G);H.push(G)}return{formEl:i,uploadFields:F,uploadEls:H}},getFieldConfig:function(d,c){return{tag:"input",type:"hidden",name:d,value:Ext.String.htmlEncode(c)}},onSuccess:function(f){var i=this.form,j=i&&!i.destroying&&!i.destroyed,h=true,g=this.processResponse(f);if(g!==true&&!g.success){if(g.errors&&j){i.markInvalid(g.errors)}this.failureType=Ext.form.action.Action.SERVER_INVALID;h=false}if(j){i.afterAction(this,h)}},handleResponse:function(q){var t=this.form,r=t.errorReader,p,i,o,n,s,e;if(r){p=r.read(q);s=p.records;i=[];if(s){for(o=0,n=s.length;o<n;o++){i[o]=s[o].data}}if(i.length<1){i=null}e={success:p.success,errors:i}}else{try{e=Ext.decode(q.responseText)}catch(m){e={success:false,errors:[]}}}return e}},0,0,0,0,["formaction.submit"],0,[Ext.form.action,"Submit",Ext.form.Action,"Submit"],0));(Ext.cmd.derive("Ext.util.ComponentDragger",Ext.dd.DragTracker,{autoStart:500,constructor:function(d,c){this.comp=d;this.initialConstrainTo=c.constrainTo;Ext.dd.DragTracker.prototype.constructor.call(this,c)},onStart:function(f){var d=this,e=d.comp;d.startPosition=e.getXY();if(e.ghost&&!e.liveDrag){d.proxy=e.ghost();d.dragTarget=d.proxy.header.el}if(d.constrain||d.constrainDelegate){d.constrainTo=d.calculateConstrainRegion()}if(e.beginDrag){e.beginDrag()}if(e.el.shim){e.el.maskIframes()}},calculateConstrainRegion:function(){var m=this,o=m.comp,n=m.initialConstrainTo,p=o.constraintInsets,k,s,q,r=m.proxy?m.proxy.el:o.el,l=r.shadow,t=(l&&!m.constrainDelegate&&o.constrainShadow&&!l.disabled)?l.getShadowSize():0;if(!(n instanceof Ext.util.Region)){k=Ext.fly(n);n=k.getConstrainRegion()}else{n=n.copy()}if(p){p=Ext.isObject(p)?p:Ext.Element.parseBox(p);n.adjust(p.top,p.right,p.bottom,p.left)}if(t){n.adjust(t[0],-t[1],-t[2],t[3])}if(!m.constrainDelegate){s=Ext.fly(m.dragTarget).getRegion();q=r.getRegion();n.adjust(s.top-q.top,s.right-q.right,s.bottom-q.bottom,s.left-q.left)}return n},onDrag:function(h){var e=this,f=(e.proxy&&!e.comp.liveDrag)?e.proxy:e.comp,g=e.getOffset(e.constrain||e.constrainDelegate?"dragTarget":null);f.setPagePosition(e.startPosition[0]+g[0],e.startPosition[1]+g[1])},onEnd:function(c){var d=this.comp;if(d.destroyed||d.destroying){return}if(this.proxy&&!d.liveDrag){d.unghost()}if(d.endDrag){d.endDrag()}if(d.el.shim){d.el.unmaskIframes()}}},1,0,0,0,0,0,[Ext.util,"ComponentDragger"],0));(Ext.cmd.derive("Ext.util.FocusTrap",Ext.Mixin,{mixinConfig:{id:"focustrap",after:{afterRender:"initTabGuards",addTool:"initTabGuards",add:"initTabGuards",remove:"initTabGuards",addDocked:"initTabGuards",removeDocked:"initTabGuards",onShow:"initTabGuards",afterHide:"initTabGuards"}},config:{tabGuard:true,tabGuardTpl:'<div id="{id}-{tabGuardEl}" data-ref="{tabGuardEl}" role="button" data-tabguardposition="{tabGuard}" aria-busy="true" style="height:0"class="x-hidden-clip"></div>',tabGuardIndex:0},tabGuardPositionAttribute:"data-tabguardposition",privates:{initTabGuards:function(){var j=this,l=j.tabGuardPositionAttribute,k=j.tabGuardBeforeEl,i=j.tabGuardAfterEl,h=j.tabGuardIndex,g;if(!j.rendered||!j.tabGuard){return}g=j.el.findTabbableElements({skipSelf:true});if(g[0]&&g[0].hasAttribute(l)){g.shift()}if(g.length&&g[g.length-1].hasAttribute(l)){g.pop()}if(g.length){k.dom.setAttribute("tabIndex",h);k.on("focusenter",j.onTabGuardFocusEnter,j);i.dom.setAttribute("tabIndex",h);i.on("focusenter",j.onTabGuardFocusEnter,j)}else{k.dom.removeAttribute("tabIndex");k.un("focusenter",j.onTabGuardFocusEnter,j);i.dom.removeAttribute("tabIndex");i.un("focusenter",j.onTabGuardFocusEnter,j)}},onTabGuardFocusEnter:function(p,o){var n=this,s=n.el,m=n.tabGuardPositionAttribute,q=o.getAttribute(m),l=p.relatedTarget,t,r,e;if(!l.hasAttribute(m)&&l!==s.dom&&s.contains(l)){r=q==="before"?false:true}else{r=q==="before"?true:false}t=s.findTabbableElements({skipSelf:true});t.shift();t.pop();e=r?t[0]:t[t.length-1];if(e){e.focus()}}}},0,0,0,0,0,0,[Ext.util,"FocusTrap"],0));(Ext.cmd.derive("Ext.window.Window",Ext.panel.Panel,{alternateClassName:"Ext.Window",baseCls:"x-window",resizable:true,draggable:true,constrain:false,constrainHeader:false,plain:false,minimizable:false,maximizable:false,minHeight:50,minWidth:50,expandOnShow:true,collapsible:false,closable:true,hidden:true,autoRender:true,hideMode:"offsets",floating:true,itemCls:"x-window-item",overlapHeader:true,ignoreHeaderBorderManagement:true,alwaysFramed:true,isRootCfg:{isRoot:true},isWindow:true,ariaRole:"dialog",initComponent:function(){var b=this;b.frame=false;Ext.panel.Panel.prototype.initComponent.call(this);if(b.plain){b.addClsWithUI("plain")}b.addStateEvents(["maximize","restore","resize","dragend"])},getElConfig:function(){var c=this,d;d=Ext.panel.Panel.prototype.getElConfig.call(this);d.tabIndex=-1;return d},getFocusEl:function(){return this.getDefaultFocus()||this.el},getState:function(){var f=this,i=Ext.panel.Panel.prototype.getState.call(this)||{},g=!!f.maximized,j=f.ghostBox,h;i.maximized=g;if(g){h=f.restorePos}else{if(j){h=[j.x,j.y]}else{h=f.getPosition()}}Ext.apply(i,{size:g?f.restoreSize:f.getSize(),pos:h});return i},applyState:function(c){var d=this;if(c){d.maximized=c.maximized;if(d.maximized){d.hasSavedRestore=true;d.restoreSize=c.size;d.restorePos=c.pos}else{Ext.apply(d,{width:c.size.width,height:c.size.height,x:c.pos[0],y:c.pos[1]})}}},onRender:function(d,e){var f=this;Ext.panel.Panel.prototype.onRender.apply(this,arguments);if(f.header){f.header.on({scope:f,click:f.onHeaderClick})}if(f.maximizable){f.header.on({scope:f,dblclick:f.toggleMaximize})}},afterRender:function(){var e=this,f=e.header,d;if(e.maximized){e.maximized=false;e.maximize();if(f){f.removeCls(f.indicateDragCls)}}Ext.panel.Panel.prototype.afterRender.call(this);if(e.closable){d=e.getKeyMap();d.on(27,e.onEsc,e)}else{d=e.keyMap}if(d&&e.hidden){d.disable()}},onEsc:function(d,c){c.stopEvent();this.close()},beforeDestroy:function(){var b=this;if(b.rendered){Ext.un("resize",b.onWindowResize,b);delete b.animateTarget;b.hide();Ext.destroy(b.keyMap)}Ext.panel.Panel.prototype.beforeDestroy.call(this)},addTools:function(){var d=this,c=[];Ext.panel.Panel.prototype.addTools.call(this);if(d.minimizable){c.push({type:"minimize",handler:"minimize",scope:d})}if(d.maximizable){c.push({type:d.maximized?"restore":"maximize",handler:"toggleMaximize",scope:d})}if(c.length){d.addTool(c)}},onShow:function(){var b=this;Ext.panel.Panel.prototype.onShow.apply(this,arguments);if(b.expandOnShow){b.expand(false)}b.syncMonitorWindowResize();if(b.keyMap){b.keyMap.enable()}},doClose:function(){var b=this;if(b.hidden){b.fireEvent("close",b);if(b.closeAction==="destroy"){b.destroy()}}else{b.hide(b.animateTarget,b.doClose,b)}},afterHide:function(){var b=this;b.syncMonitorWindowResize();if(b.keyMap){b.keyMap.disable()}Ext.panel.Panel.prototype.afterHide.apply(this,arguments)},onWindowResize:function(){var c=this,d;if(!c.destroyed){if(c.maximized){c.fitContainer()}else{d=c.getSizeModel();if(d.width.natural||d.height.natural){c.updateLayout()}c.doConstrain()}}},minimize:function(){this.fireEvent("minimize",this);return this},resumeHeaderLayout:function(b){this.header.resumeLayouts(b?this.isRootCfg:null)},afterCollapse:function(){var e=this,f=e.header,d=e.tools;if(f&&e.maximizable){f.suspendLayouts();d.maximize.hide();this.resumeHeaderLayout(true)}if(e.resizer){e.resizer.disable()}Ext.panel.Panel.prototype.afterCollapse.apply(this,arguments)},afterExpand:function(){var f=this,g=f.header,e=f.tools,h;if(g){g.suspendLayouts();if(f.maximizable){e.maximize.show();h=true}this.resumeHeaderLayout(h)}if(f.resizer){f.resizer.enable()}Ext.panel.Panel.prototype.afterExpand.apply(this,arguments)},maximize:function(i){var n=this,k=n.header,m=n.tools,o=n.width,j=n.height,p,l;if(!n.maximized){n.expand(false);if(!n.hasSavedRestore){p=n.restoreSize={width:o?o:null,height:j?j:null};n.restorePos=n.getPosition()}if(k){k.suspendLayouts();if(m.maximize){m.maximize.setType("restore")}if(n.collapseTool){n.collapseTool.hide();l=true}n.resumeHeaderLayout(l)}n.el.disableShadow();if(n.dd){n.dd.disable();if(k){k.removeCls(k.indicateDragCls)}}if(n.resizer){n.resizer.disable()}n.el.addCls("x-window-maximized");n.container.addCls("x-window-maximized-ct");n.syncMonitorWindowResize();n.fitContainer(i=(i||!!n.animateTarget)?{callback:function(){n.maximized=true;n.fireEvent("maximize",n)}}:null);if(!i){n.maximized=true;n.fireEvent("maximize",n)}}return n},restore:function(g){var l=this,k=l.tools,i=l.header,h=l.restoreSize,j;if(l.maximized){l.hasSavedRestore=null;l.removeCls("x-window-maximized");if(i){i.suspendLayouts();if(k.maximize){k.maximize.setType("maximize")}if(l.collapseTool){l.collapseTool.show();j=true}l.resumeHeaderLayout(j)}h.x=l.restorePos[0];h.y=l.restorePos[1];l.setBox(h,g=(g||!!l.animateTarget)?{callback:function(){l.el.enableShadow(null,true);l.maximized=false;l.fireEvent("restore",l)}}:null);l.restorePos=l.restoreSize=null;if(l.dd){l.dd.enable();if(i){i.addCls(i.indicateDragCls)}}if(l.resizer){l.resizer.enable()}l.container.removeCls("x-window-maximized-ct");l.syncMonitorWindowResize();if(!g){l.el.enableShadow(null,true);l.maximized=false;l.fireEvent("restore",l)}}return l},syncMonitorWindowResize:function(){var e=this,h=e._monitoringResize,g=e.monitorResize||e.constrain||e.constrainHeader||e.maximized,f=e.hidden||e.destroying||e.destroyed;if(g&&!f){if(!h){Ext.on("resize",e.onWindowResize,e,{buffer:1});e._monitoringResize=true}}else{if(h){Ext.un("resize",e.onWindowResize,e);e._monitoringResize=false}}},toggleMaximize:function(){return this[this.maximized?"restore":"maximize"]()},createGhost:function(){var b=Ext.panel.Panel.prototype.createGhost.apply(this,arguments);b.xtype="window";b.focusOnToFront=false;return b},getDefaultFocus:function(){var h=this,e,g=h.defaultFocus,f;if(g!==undefined){if(Ext.isNumber(g)){e=h.query("button")[g]}else{if(Ext.isString(g)){f=g;if(Ext.validIdRe.test(f)){e=h.down(Ext.makeIdSelector(f))}if(!e){e=h.down(f)}}else{if(g.focus){e=g}}}}return e},privates:{initDraggable:function(){this.initSimpleDraggable()},onHeaderClick:function(f,d){var e;if(f.el.contains(d.getTarget())){e=this.getDefaultFocus();if(e){e.focus()}}},initResizable:function(){Ext.panel.Panel.prototype.initResizable.apply(this,arguments);if(this.maximized){this.resizer.disable()}}}},0,["window"],["component","box","container","panel","window"],{component:true,box:true,container:true,panel:true,window:true},["widget.window"],[[Ext.util.FocusTrap.prototype.mixinId||Ext.util.FocusTrap.$className,Ext.util.FocusTrap]],[Ext.window,"Window",Ext,"Window"],0));(Ext.cmd.derive("Ext.form.Labelable",Ext.Mixin,{isLabelable:true,mixinConfig:{id:"labelable",on:{beforeRender:"beforeLabelRender",onRender:"onLabelRender"}},config:{childEls:["labelEl","bodyEl","errorEl","errorWrapEl","ariaErrorEl"]},labelableRenderTpl:["{beforeLabelTpl}",'<label id="{id}-labelEl" data-ref="labelEl" class="{labelCls} {labelCls}-{ui} {labelClsExtra} ','{childElCls} {unselectableCls}" style="{labelStyle}"<tpl if="inputId">',' for="{inputId}"</tpl> {labelAttrTpl}>','<span class="{labelInnerCls} {labelInnerCls}-{ui}" style="{labelInnerStyle}">',"{beforeLabelTextTpl}",'<tpl if="fieldLabel">{fieldLabel}','<tpl if="labelSeparator">{labelSeparator}</tpl>',"</tpl>","{afterLabelTextTpl}","</span>","</label>","{afterLabelTpl}",'<div id="{id}-bodyEl" data-ref="bodyEl" role="presentation"',' class="{baseBodyCls} {baseBodyCls}-{ui}<tpl if="fieldBodyCls">',' {fieldBodyCls} {fieldBodyCls}-{ui}</tpl> {growCls} {extraFieldBodyCls}"','<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>',"{beforeBodyEl}","{beforeSubTpl}","{[values.$comp.getSubTplMarkup(values)]}","{afterSubTpl}","{afterBodyEl}",'<div id="{id}-ariaErrorEl" data-ref="ariaErrorEl" role="alert" aria-live="polite"',' class="x-hidden-clip">',"</div>","</div>",'<tpl if="renderError">','<div id="{id}-errorWrapEl" data-ref="errorWrapEl" class="{errorWrapCls} {errorWrapCls}-{ui}',' {errorWrapExtraCls}" style="{errorWrapStyle}">','<div role="presentation" id="{id}-errorEl" data-ref="errorEl" ','class="{errorMsgCls} {invalidMsgCls} {invalidMsgCls}-{ui}" ','data-anchorTarget="{tipAnchorTarget}">',"</div>","</div>","</tpl>",{disableFormats:true}],activeErrorsTpl:undefined,htmlActiveErrorsTpl:['<tpl if="errors && errors.length">','<ul class="{listCls}">','<tpl for="errors"><li>{.}</li></tpl>',"</ul>","</tpl>"],plaintextActiveErrorsTpl:['<tpl if="errors && errors.length">','<tpl for="errors"><tpl if="xindex &gt; 1">\n</tpl>{.}</tpl>',"</tpl>"],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",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:"",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,labelableInsertions:["beforeBodyEl","afterBodyEl","beforeLabelTpl","afterLabelTpl","beforeSubTpl","afterSubTpl","beforeLabelTextTpl","afterLabelTextTpl","labelAttrTpl"],statics:{initTip:function(){var d=this.tip,e,f;if(d){return}e={id:"ext-form-error-tip",ui:"form-invalid"};if(Ext.supports.Touch){e.dismissDelay=0;e.anchor="top";e.showDelay=0;e.listeners={beforeshow:function(){this.minWidth=Ext.fly(this.anchorTarget).getWidth()}}}d=this.tip=Ext.create("Ext.tip.QuickTip",e);f=Ext.apply({},d.tagConfig);f.attribute="errorqtip";d.setTagConfig(f)},destroyTip:function(){this.tip=Ext.destroy(this.tip)}},initLabelable:function(){var d=this,c=d.padding;if(c){d.padding=undefined;d.extraMargins=Ext.Element.parseBox(c)}if(Ext.isIE8){d.restoreDisplay=Ext.Function.createDelayed(d.doRestoreDisplay,0,d)}if(!d.activeErrorsTpl){if(d.msgTarget==="title"){d.activeErrorsTpl=d.plaintextActiveErrorsTpl}else{d.activeErrorsTpl=d.htmlActiveErrorsTpl}}d.addCls([d.formItemCls,d.formItemCls+"-"+d.ui]);d.lastActiveError="";d.enableBubble("errorchange")},trimLabelSeparator:function(){var h=this,g=h.labelSeparator,f=h.fieldLabel||"",e=f.substr(f.length-1);return e===g?f.slice(0,-1):f},getFieldLabel:function(){return this.trimLabelSeparator()},setFieldLabel:function(o){o=o||"";var n=this,m=n.labelSeparator,p=n.labelEl,i=n.errorWrapEl,k=(n.labelAlign!=="top"),j=n.noLabelCls,l=n.errorWrapUnderSideLabelCls;n.fieldLabel=o;if(n.rendered){if(Ext.isEmpty(o)&&n.hideEmptyLabel){n.addCls(j);if(k&&i){i.removeCls(l)}}else{if(m){o=n.trimLabelSeparator()+m}p.dom.firstChild.innerHTML=o;n.removeCls(j);if(k&&i){i.addCls(l)}}n.updateLayout()}},setHideLabel:function(d){var c=this;if(d!==c.hideLabel){c.hideLabel=d;if(c.rendered){c[d?"addCls":"removeCls"](c.noLabelCls);c.updateLayout()}}},setHideEmptyLabel:function(e){var f=this,d;if(e!==f.hideEmptyLabel){f.hideEmptyLabel=e;if(f.rendered&&!f.hideLabel){d=e&&!f.getFieldLabel();f[d?"addCls":"removeCls"](f.noLabelCls);f.updateLayout()}}},getInsertionRenderData:function(i,h){var f=h.length,g,j;while(f--){g=h[f];j=this[g];if(j){if(typeof j!=="string"){if(!j.isTemplate){j=Ext.XTemplate.getTpl(this,g)}j=j.apply(i)}}i[g]=j||""}return i},getLabelableRenderData:function(){var v=this,s=v.labelAlign,F=(s==="top"),y=(s==="right"),B=(v.msgTarget==="side"),E=(v.msgTarget==="under"),t=v.errorMsgCls,D=v.labelPad,w=v.labelWidth,I=v.labelClsExtra||"",C=B?v.errorWrapSideCls:v.errorWrapUnderCls,J="",z="",G=v.hasVisibleLabel(),x=v.autoFitErrors,A=v.defaultBodyWidth,H,u;if(F){I+=" "+v.topLabelCls;if(D){z="padding-bottom:"+D+"px;"}if(B&&!x){I+=" "+v.topLabelSideErrorCls}}else{if(y){I+=" "+v.rightLabelCls}if(D){J+=v.getHorizontalPaddingStyle()+D+"px;"}J+="width:"+(w+(D?D:0))+"px;";z="width:"+w+"px"}if(G){if(!F&&E){C+=" "+v.errorWrapUnderSideLabelCls}}if(A){H="min-width:"+A+"px;max-width:"+A+"px;"}u={id:v.id,inputId:v.getInputId(),labelCls:v.labelCls,labelClsExtra:I,labelStyle:J+(v.labelStyle||""),labelInnerStyle:z,labelInnerCls:v.labelInnerCls,unselectableCls:Ext.Element.unselectableCls,bodyStyle:H,baseBodyCls:v.baseBodyCls,fieldBodyCls:v.fieldBodyCls,extraFieldBodyCls:v.extraFieldBodyCls,errorWrapCls:v.errorWrapCls,errorWrapExtraCls:C,renderError:B||E,invalidMsgCls:B?v.invalidIconCls:E?v.invalidUnderCls:"",errorMsgCls:t,growCls:v.grow?v.growCls:"",tipAnchorTarget:v.id+"-inputEl",errorWrapStyle:(B&&!x)?"visibility:hidden":"display:none",fieldLabel:v.getFieldLabel(),labelSeparator:v.labelSeparator};v.getInsertionRenderData(u,v.labelableInsertions);return u},getHorizontalPaddingStyle:function(){return"padding-right:"},beforeLabelRender:function(){var b=this;b.setFieldDefaults(b.getInherited().fieldDefaults);if(b.ownerLayout){b.addCls("x-"+b.ownerLayout.type+"-form-item")}if(!b.hasVisibleLabel()){b.addCls(b.noLabelCls)}},onLabelRender:function(){var k=this,l={},i=Ext.Element,h=k.errorWrapEl,j,g;if(h){h.setVisibilityMode((k.msgTarget==="side"&&!k.autoFitErrors)?i.VISIBILITY:i.DISPLAY)}if(k.extraMargins){j=k.el.getMargin();for(g in j){if(j.hasOwnProperty(g)){l["margin-"+g]=(j[g]+k.extraMargins[g])+"px"}}k.el.setStyle(l)}},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(b){this.setActiveErrors(b)},getActiveErrors:function(){return this.activeErrors||[]},setActiveErrors:function(m){var o=this,n=o.errorWrapEl,q=o.msgTarget,r=q==="side",k=q==="qtip",t,s,p,l;m=Ext.Array.from(m);p=o.getTpl("activeErrorsTpl");o.activeErrors=m;s=o.activeError=p.apply({fieldLabel:o.fieldLabel,errors:m,listCls:"x-list-plain"});o.renderActiveError();if(o.rendered){t=o.getActionEl();if(r){o.errorEl.dom.setAttribute("data-errorqtip",s)}else{if(k){t.dom.setAttribute("data-errorqtip",s)}else{if(q==="title"){t.dom.setAttribute("title",s)}}}if(q!=="title"){o.ariaErrorEl.dom.innerHTML=m.join(". ");t.dom.setAttribute("aria-describedby",o.ariaErrorEl.id)}if(r||k){Ext.form.Labelable.initTip()}if(!o.msgTargets[q]){l=Ext.get(q);if(l){l.dom.innerHTML=s}}}if(n){n.setVisible(m.length>0);if(r&&o.autoFitErrors){o.labelEl.addCls(o.topLabelSideErrorCls)}o.updateLayout()}},unsetActiveError:function(){var j=this,g=j.errorWrapEl,l=j.msgTarget,h=j.restoreDisplay,k,i;if(j.hasActiveError()){delete j.activeError;delete j.activeErrors;j.renderActiveError();if(j.rendered){k=j.getActionEl();if(l==="qtip"){k.dom.removeAttribute("data-errorqtip")}else{if(l==="title"){k.dom.removeAttribute("title")}}if(l!=="title"){j.ariaErrorEl.dom.innerHTML="";k.dom.removeAttribute("aria-describedby")}if(!j.msgTargets[l]){i=Ext.get(l);if(i){i.dom.innerHTML=""}}if(g){g.hide();if(l==="side"&&j.autoFitErrors){j.labelEl.removeCls(j.topLabelSideErrorCls)}j.updateLayout();if(h){j.el.dom.style.display="block";j.restoreDisplay()}}}}},doRestoreDisplay:function(){var b=this.el;if(b&&b.dom){b.dom.style.display=""}},renderActiveError:function(){var f=this,d=f.getActiveError(),e=!!d;if(d!==f.lastActiveError){f.lastActiveError=d;f.fireEvent("errorchange",f,d)}if(f.rendered&&!f.destroyed&&!f.preventMark){f.toggleInvalidCls(e);if(f.errorEl){f.errorEl.dom.innerHTML=d}}},toggleInvalidCls:function(b){this.el[b?"addCls":"removeCls"](this.invalidCls)},setFieldDefaults:function(c){var d;for(d in c){if(!this.hasOwnProperty(d)){this[d]=c[d]}}}},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 g=this,h=g.valuePublishEvent,f,e;g.initValue();if(Ext.isString(h)){g.on(h,g.publishValue,g)}else{for(e=0,f=h.length;e<f;++e){g.on(h[e],g.publishValue,g)}}},initValue:function(){var b=this;if("value" in b){b.suspendCheckChange++;b.setValue(b.value);b.suspendCheckChange--}b.initialValue=b.originalValue=b.lastValue=b.getValue()},getFieldIdentifier:function(){return this.isEditorComponent?this.dataIndex:this.name},getName:function(){return this.name},getValue:function(){return this.value},setValue:function(c){var d=this;d.value=c;d.checkChange();return d},isEqual:function(c,d){return String(c)===String(d)},isEqualAsString:function(c,d){return String(Ext.valueFrom(c,""))===String(Ext.valueFrom(d,""))},getSubmitData:function(){var d=this,c=null;if(!d.disabled&&d.submitValue){c={};c[d.getName()]=""+d.getValue()}return c},getModelData:function(f,e){var h=this,g=null;if(!h.disabled&&(h.submitValue||!e)){g={};g[h.getFieldIdentifier()]=h.getValue()}return g},reset:function(){var b=this;b.beforeReset();b.setValue(b.originalValue);b.clearInvalid();delete b.wasValid},beforeReset:Ext.emptyFn,resetOriginalValue:function(){this.originalValue=this.getValue();this.checkDirty()},checkChange:function(){var f=this,d,e;if(!f.suspendCheckChange){d=f.getValue();e=f.lastValue;if(!f.destroyed&&f.didValueChange(d,e)){f.lastValue=d;f.fireEvent("change",f,d,e);f.onChange(d,e)}}},didValueChange:function(c,d){return !this.isEqual(c,d)},onChange:function(d){var c=this;if(c.validateOnChange){c.validate()}c.checkDirty()},publishValue:function(){var b=this;if(b.rendered&&!b.getErrors().length){b.publishState("value",b.getValue())}},isDirty:function(){var b=this;return !b.disabled&&!b.isEqual(b.getValue(),b.originalValue)},checkDirty:function(){var d=this,c=d.isDirty();if(c!==d.wasDirty){d.dirty=c;d.fireEvent("dirtychange",d,c);d.onDirtyChange(c);d.wasDirty=c}},onDirtyChange:Ext.emptyFn,getErrors:function(i){var h=[],j=this.getValidationField(),f=this.getValidation(),g;if(j){g=j.validate(i);if(g!==true){h.push(g)}}if(f&&f!==true){h.push(f)}return h},isValid:function(){var b=this;return b.disabled||Ext.isEmpty(b.getErrors())},validate:function(){return this.checkValidityChange(this.isValid())},checkValidityChange:function(c){var d=this;if(c!==d.wasValid){d.wasValid=c;d.fireEvent("validitychange",d,c)}return c},batchChanges:function(d){try{this.suspendCheckChange++;d()}catch(c){throw c}finally{this.suspendCheckChange--}this.checkChange()},isFileUpload:function(){return false},extractFileInput:function(){return null},markInvalid:Ext.emptyFn,clearInvalid:Ext.emptyFn,updateValidation:function(d,c){if(c){this.validate()}},privates:{resetToInitialValue:function(){var c=this,d=c.originalValue;c.originalValue=c.initialValue;c.reset();c.originalValue=d}}},0,0,0,0,0,0,[Ext.form.field,"Field"],0));(Ext.cmd.derive("Ext.form.field.Base",Ext.Component,{alternateClassName:["Ext.form.Field","Ext.form.BaseField"],focusable:true,shrinkWrap:true,fieldSubTpl:['<input id="{id}" data-ref="inputEl" type="{type}" {inputAttrTpl}',' size="1"','<tpl if="name"> name="{name}"</tpl>','<tpl if="value"> value="{[Ext.util.Format.htmlEncode(values.value)]}"</tpl>','<tpl if="placeholder"> placeholder="{placeholder}"</tpl>','{%if (values.maxLength !== undefined){%} maxlength="{maxLength}"{%}%}','<tpl if="readOnly"> readonly="readonly"</tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>',' 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",initComponent:function(){var b=this;Ext.Component.prototype.initComponent.call(this);b.subTplData=b.subTplData||{};b.initLabelable();b.initField();b.initDefaultName();if(b.readOnly){b.addCls(b.readOnlyCls)}b.addCls("x-form-type-"+b.inputType)},initDefaultName:function(){var b=this;if(!b.name){b.name=b.getInputId()}},getInputId:function(){return this.inputId||(this.inputId=this.id+"-inputEl")},getSubTplData:function(l){var j=this,k=j.inputType,h=j.getInputId(),i,g;i=Ext.apply({ui:j.ui,id:h,cmpId:j.id,name:j.name||h,disabled:j.disabled,readOnly:j.readOnly,value:j.getRawValue(),type:k,fieldCls:j.fieldCls,fieldStyle:j.getFieldStyle(),childElCls:l.childElCls,tabIdx:j.tabIndex,inputCls:j.inputCls,typeCls:"x-form-"+(j.isTextInput?"text":k)},j.subTplData);if(j.ariaRole){g={role:j.ariaRole,"aria-hidden":!!j.hidden,"aria-disabled":!!j.disabled,"aria-readonly":!!j.readOnly,"aria-invalid":false};if(j.ariaLabel){g["aria-label"]=j.ariaLabel}if(j.format&&j.formatText&&!i.title){g.title=Ext.String.formatEncode(j.formatText,j.format)}i.inputElAriaAttributes=Ext.apply(g,j.getAriaAttributes())}j.getInsertionRenderData(i,j.subTplInsertions);return i},getSubTplMarkup:function(g){var l=this,k=l.getSubTplData(g),j=l.getTpl("preSubTpl"),i=l.getTpl("postSubTpl"),h="";if(j){h+=j.apply(k)}h+=l.getTpl("fieldSubTpl").apply(k);if(i){h+=i.apply(k)}return h},initRenderData:function(){return Ext.applyIf(Ext.Component.prototype.initRenderData.call(this),this.getLabelableRenderData())},setFieldStyle:function(e){var d=this,f=d.inputEl;if(f){f.applyStyles(e)}d.fieldStyle=e},getFieldStyle:function(){var b=this.fieldStyle;return Ext.isObject(b)?Ext.DomHelper.generateStyles(b,null,true):b||""},onRender:function(){this.callParent(arguments);this.mixins.labelable.self.initTip();this.renderActiveError()},onFocusLeave:function(b){Ext.Component.prototype.onFocusLeave.call(this,b);this.completeEdit()},completeEdit:Ext.emptyFn,isFileUpload:function(){return this.inputType==="file"},getSubmitData:function(){var e=this,d=null,f;if(!e.disabled&&e.submitValue){f=e.getSubmitValue();if(f!==null){d={};d[e.getName()]=f}}return d},getSubmitValue:function(){return this.processRawValue(this.getRawValue())},getRawValue:function(){var c=this,d=(c.inputEl?c.inputEl.getValue():Ext.valueFrom(c.rawValue,""));c.rawValue=d;return d},setRawValue:function(f){var e=this,d=e.rawValue;if(!e.transformRawValue.$nullFn){f=e.transformRawValue(f)}f=Ext.valueFrom(f,"");if(d===undefined||d!==f||e.valueContainsPlaceholder){e.rawValue=f;if(e.inputEl){e.bindChangeEvents(false);e.inputEl.dom.value=f;e.bindChangeEvents(true)}if(e.rendered&&e.reference){e.publishState("rawValue",f)}}return f},transformRawValue:Ext.identityFn,valueToRaw:function(b){return""+Ext.valueFrom(b,"")},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,getValue:function(){var d=this,c=d.rawToValue(d.processRawValue(d.getRawValue()));d.value=c;return c},setValue:function(c){var d=this;d.setRawValue(d.valueToRaw(c));return d.mixins.field.setValue.call(d,c)},onBoxReady:function(){var b=this;Ext.Component.prototype.onBoxReady.apply(this,arguments);if(b.setReadOnlyOnBoxReady){b.setReadOnly(b.readOnly)}},onDisable:function(){var d=this,c=d.inputEl;Ext.Component.prototype.onDisable.call(this);if(c){c.dom.disabled=true;if(d.hasActiveError()){d.clearInvalid();d.hadErrorOnDisable=true}}if(d.wasValid===false){d.checkValidityChange(true)}},onEnable:function(){var e=this,h=e.inputEl,g=e.preventMark,f;Ext.Component.prototype.onEnable.call(this);if(h){h.dom.disabled=false}if(e.wasValid!==undefined){e.forceValidation=true;e.preventMark=!e.hadErrorOnDisable;f=e.isValid();e.forceValidation=false;e.preventMark=g;e.checkValidityChange(f)}delete e.hadErrorOnDisable},setReadOnly:function(g){var e=this,h=e.inputEl,f=e.readOnly;g=!!g;e[g?"addCls":"removeCls"](e.readOnlyCls);e.readOnly=g;if(h){h.dom.readOnly=g;e.ariaEl.dom.setAttribute("aria-readonly",g)}else{if(e.rendering){e.setReadOnlyOnBoxReady=true}}if(g!==f){e.fireEvent("writeablechange",e,g)}},fireKey:function(b){if(b.isSpecialKey()){this.fireEvent("specialkey",this,b)}},initEvents:function(){var l=this,j=l.inputEl,k=l.onFieldMutation,n=l.checkChangeEvents,i=n.length,h,m;if(j){l.mon(j,Ext.supports.SpecialKeyDownRepeat?"keydown":"keypress",l.fireKey,l);for(h=0;h<i;++h){m=n[h];if(m==="propertychange"){l.usesPropertychange=true}if(m==="textInput"){l.usesTextInput=true}l.mon(j,m,k,l)}}Ext.Component.prototype.initEvents.call(this)},onFieldMutation:function(b){if(!this.readOnly&&!(b.type==="propertychange"&&this.ignoreChangeRe.test(b.browserEvent.propertyName))){this.startCheckChangeTask()}},startCheckChangeTask:function(){var c=this,d=c.checkChangeTask;if(!d){c.checkChangeTask=d=new Ext.util.DelayedTask(c.doCheckChangeTask,c)}if(!c.bindNotifyListener){c.bindNotifyListener=Ext.on("beforebindnotify",c.onBeforeNotify,c,{destroyable:true})}d.delay(c.checkChangeBuffer)},doCheckChangeTask:function(){var b=this.bindNotifyListener;if(b){b.destroy();this.bindNotifyListener=null}this.checkChange()},publishValue:function(){var b=this;if(b.rendered&&!b.getErrors().length){b.publishState("value",b.getValue())}},onDirtyChange:function(c){var d=this;d[c?"addCls":"removeCls"](d.dirtyCls);if(d.rendered&&d.reference){d.publishState("dirty",c)}},isValid:function(){var d=this,e=d.disabled,f=d.forceValidation||!e;return f?d.validateValue(d.processRawValue(d.getRawValue())):e},validateValue:function(e){var f=this,g=f.getErrors(e),h=Ext.isEmpty(g);if(!f.preventMark){if(h){f.clearInvalid()}else{f.markInvalid(g)}}return h},markInvalid:function(h){var j=this,g=j.ariaEl.dom,f=j.getActiveError(),i;j.setActiveErrors(Ext.Array.from(h));i=j.getActiveError();if(f!==i){j.setError(i);if(!j.ariaStaticRoles[j.ariaRole]&&g){g.setAttribute("aria-invalid",true)}}},clearInvalid:function(){var f=this,e=f.ariaEl.dom,d=f.hasActiveError();delete f.hadErrorOnDisable;f.unsetActiveError();if(d){f.setError("");if(!f.ariaStaticRoles[f.ariaRole]&&e){e.setAttribute("aria-invalid",false)}}},setError:function(f){var h=this,e=h.msgTarget,g;if(h.rendered){if(e==="title"||e==="qtip"){g=e==="qtip"?"data-errorqtip":"title";h.getActionEl().dom.setAttribute(g,f||"")}else{h.updateLayout()}}},renderActiveError:function(){var f=this,d=f.hasActiveError(),e=f.invalidCls+"-field";if(f.inputEl){f.inputEl[d?"addCls":"removeCls"]([e,e+"-"+f.ui])}f.mixins.labelable.renderActiveError.call(f)},beforeDestroy:function(){var c=this,d=c.checkChangeTask;if(d){d.cancel()}c.checkChangeTask=c.bindNotifyListener=Ext.destroy(c.bindNotifyListener);Ext.Component.prototype.beforeDestroy.call(this)},privates:{applyBind:function(i,l){var g=this,h=l&&l.value,j,k;j=Ext.Component.prototype.applyBind.call(this,i,l);if(j){k=j.value;g.hasBindingValue=!!k;if(k!==h&&g.getInherited().modelValidation){g.updateValueBinding(j)}}return j},applyRenderSelectors:function(){var b=this;Ext.Component.prototype.applyRenderSelectors.call(this);if(!b.inputEl){b.inputEl=b.el.getById(b.getInputId())}},bindChangeEvents:function(d){var f=d?"resumeEvent":"suspendEvent",e=this.inputEl;if(this.usesPropertychange){e[f]("propertychange")}if(this.usesTextInput){e[f]("textInput")}},getActionEl:function(){return this.inputEl||this.el},getFocusEl:function(){return this.inputEl},initRenderTpl:function(){var b=this;if(!b.hasOwnProperty("renderTpl")){b.renderTpl=b.getTpl("labelableRenderTpl")}return Ext.Component.prototype.initRenderTpl.call(this)},onBeforeNotify:function(){this.checkChangeTask.cancel();this.checkChange()},updateValueBinding:function(g){var h=this,e=g.value,f=g.$fieldBinding;if(f){f.destroy();g.$fieldBinding=null}if(e&&e.bindValidationField){h.fieldBinding=e.bindValidationField("setValidationField",h)}}},deprecated:{"5":{methods:{doComponentLayout:function(){this.bindChangeEvents(false);this.callParent(arguments);this.bindChangeEvents(true)}}}}},0,["field"],["component","box","field"],{component:true,box:true,field:true},["widget.field"],[[Ext.form.Labelable.prototype.mixinId||Ext.form.Labelable.$className,Ext.form.Labelable],[Ext.form.field.Field.prototype.mixinId||Ext.form.field.Field.$className,Ext.form.field.Field]],[Ext.form.field,"Base",Ext.form,"Field",Ext.form,"BaseField"],0));(Ext.cmd.derive("Ext.form.field.VTypes",Ext.Base,(function(){var h=/^[a-zA-Z_]+$/,g=/^[a-zA-Z0-9_]+$/,e=/^(")?(?:[^\."\s])(?:(?:[\.])?(?:[\w\-!#$%&'*+/=?^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/,f=/(((^https?)|(^ftp)):\/\/((([\-\w]+\.)+\w{2,3}(\/[%\-\w]+(\.\w{2,})?)*(([\w\-\.\?\\\/+@&#;`~=%!]*)(\.\w{2,})?)*)|(localhost|LOCALHOST))\/?)/i;return{singleton:true,alternateClassName:"Ext.form.VTypes",email:function(a){return e.test(a)},emailText:'This field should be an e-mail address in the format "user@example.com"',emailMask:/[\w.\-@'"!#$%&'*+/=?^_`{|}~]/i,url:function(a){return f.test(a)},urlText:'This field should be a URL in the format "http://www.example.com"',alpha:function(a){return h.test(a)},alphaText:"This field should only contain letters and _",alphaMask:/[a-z_]/i,alphanum:function(a){return g.test(a)},alphanumText:"This field should only contain letters, numbers and _",alphanumMask:/[a-z0-9_]/i}}()),0,0,0,0,0,0,[Ext.form.field,"VTypes",Ext.form,"VTypes"],0));(Ext.cmd.derive("Ext.form.trigger.Trigger",Ext.Base,{factoryConfig:{defaultType:"trigger"},repeatClick:false,hidden:false,hideOnReadOnly:undefined,weight:0,preventMouseDown:true,baseCls:"x-form-trigger",focusCls:"x-form-trigger-focus",overCls:"x-form-trigger-over",clickCls:"x-form-trigger-click",validIdRe:Ext.validIdRe,renderTpl:['<div id="{triggerId}" class="{baseCls} {baseCls}-{ui} {cls} {cls}-{ui} {extraCls} ','{childElCls}"<tpl if="triggerStyle"> style="{triggerStyle}"</tpl>>',"{[values.$trigger.renderBody(values)]}","</div>"],statics:{weightComparator:function(d,c){return d.weight-c.weight}},constructor:function(d){var f=this,e;Ext.apply(f,d);if(f.compat4Mode){e=f.cls;f.focusCls=[f.focusCls,e+"-focus"];f.overCls=[f.overCls,e+"-over"];f.clickCls=[f.clickCls,e+"-click"]}},afterFieldRender:function(){this.initEvents()},destroy:function(){var b=this;b.clickRepeater=b.el=Ext.destroy(b.clickRepeater,b.el);b.callParent()},getBodyRenderData:Ext.emptyFn,getEl:function(){return this.el||null},getStateEl:function(){return this.el},hide:function(){var c=this,d=c.el;c.hidden=true;if(d){d.hide()}},initEvents:function(){var g=this,f=g.isFieldEnabled,h=g.getStateEl(),e=g.el;h.addClsOnOver(g.overCls,f,g);h.addClsOnClick(g.clickCls,f,g);if(g.repeatClick){g.clickRepeater=new Ext.util.ClickRepeater(e,{preventDefault:true,handler:g.onClick,listeners:{mousedown:g.onClickRepeaterMouseDown,scope:g},scope:g})}else{g.field.mon(e,{click:g.onClick,mousedown:g.onMouseDown,scope:g})}},isFieldEnabled:function(){return !this.field.disabled},isVisible:function(){var e=this,f=e.field,d=false;if(e.hidden||!f||!e.rendered||e.destroyed){d=true}return !d},onClick:function(){var j=this,g=arguments,h=j.clickRepeater?g[1]:g[0],e=j.handler,i=j.field;if(e&&!i.readOnly&&j.isFieldEnabled()){Ext.callback(j.handler,j.scope,[i,j,h],0,i)}},resolveListenerScope:function(b){return this.field.resolveSatelliteListenerScope(this,b)},onMouseDown:function(b){if(b.pointerType!=="touch"&&!this.field.owns(Ext.Element.getActiveElement())){this.field.inputEl.focus()}if(this.preventMouseDown){b.preventDefault()}},onClickRepeaterMouseDown:function(c,d){if(!d.parentEvent||d.parentEvent.type==="mousedown"){this.field.inputEl.focus()}d.preventDefault()},onFieldBlur:function(){this.getStateEl().removeCls(this.focusCls)},onFieldFocus:function(){this.getStateEl().addCls(this.focusCls)},onFieldRender:function(){var c=this,d=c.el=c.field.triggerWrap.selectNode("#"+c.domId,false);d.setVisibilityMode(Ext.Element.DISPLAY);c.rendered=true},renderBody:function(d){var e=this,f=e.bodyTpl;Ext.apply(d,e.getBodyRenderData());return f?Ext.XTemplate.getTpl(e,"bodyTpl").apply(d):""},renderTrigger:function(f){var h=this,e=h.width,g=h.hidden?"display:none;":"";if(e){g+="width:"+e}return Ext.XTemplate.getTpl(h,"renderTpl").apply({$trigger:h,fieldData:f,ui:f.ui,childElCls:f.childElCls,triggerId:h.domId=h.field.id+"-trigger-"+h.id,cls:h.cls,triggerStyle:g,extraCls:h.extraCls,baseCls:h.baseCls})},setHidden:function(b){if(b!==this.hidden){this[b?"hide":"show"]()}},setVisible:function(b){this.setHidden(!b)},show:function(){var c=this,d=c.el;c.hidden=false;if(d){d.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",requiredCls:"x-form-required-field",valueContainsPlaceholder:false,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",needArrowKeys:true,squashMouseUp:{mouseup:function(){},translate:false,single:true,preventDefault:true},childEls:["triggerWrap","inputWrap"],preSubTpl:['<div id="{cmpId}-triggerWrap" data-ref="triggerWrap"',' role="presentation" class="{triggerWrapCls} {triggerWrapCls}-{ui}">','<div id={cmpId}-inputWrap data-ref="inputWrap"',' role="presentation" class="{inputWrapCls} {inputWrapCls}-{ui}">'],postSubTpl:["</div>",'<tpl for="triggers">{[values.renderTrigger(parent)]}</tpl>',"</div>"],initComponent:function(){var c=this,d=c.emptyCls;if(c.allowOnlyWhitespace===false){c.allowBlank=false}if(c.size){c.defaultBodyWidth=c.size*6.5+20}if(!c.onTrigger1Click){c.onTrigger1Click=c.onTriggerClick}Ext.form.field.Base.prototype.initComponent.call(this);if(c.readOnly){c.setReadOnly(c.readOnly)}c.fieldFocusCls=c.baseCls+"-focus";c.emptyUICls=d+" "+d+"-"+c.ui;c.addStateEvents("change")},initEvents:function(){var c=this,d=c.inputEl;Ext.form.field.Base.prototype.initEvents.call(this);if(c.selectOnFocus||c.emptyText){c.mon(d,"mousedown",c.onMouseDown,c)}if(c.maskRe||(c.vtype&&c.disableKeyFilter!==true&&(c.maskRe=Ext.form.field.VTypes[c.vtype+"Mask"]))){c.mon(d,"keypress",c.filterKeys,c)}if(c.enableKeyEvents){c.mon(d,{scope:c,keyup:c.onKeyUp,keydown:c.onKeyDown,keypress:c.onKeyPress})}},isEqual:function(c,d){return this.isEqualAsString(c,d)},onChange:function(c,d){Ext.form.field.Base.prototype.onChange.apply(this,arguments);this.autoSize()},getSubTplData:function(p){var o=this,m=o.getRawValue(),k=o.emptyText&&m.length<1,j=o.maxLength,l,n,i;if(o.enforceMaxLength){if(j===Number.MAX_VALUE){j=undefined}}else{j=undefined}if(k){if(Ext.supports.Placeholder){l=o.emptyText}else{m=o.emptyText;o.valueContainsPlaceholder=true}}n=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,p),{triggerWrapCls:o.triggerWrapCls,inputWrapCls:o.inputWrapCls,triggers:o.orderedTriggers,maxLength:j,readOnly:!o.editable||o.readOnly,placeholder:l,value:m,fieldCls:o.fieldCls+((k&&(l||m))?" "+o.emptyUICls:"")+(o.allowBlank?"":" "+o.requiredCls)});i=n.inputElAriaAttributes;if(i){i["aria-required"]=!o.allowBlank}return n},onRender:function(){var j=this,f=j.getTriggers(),i=[],h,g;if(Ext.supports.FixedTableWidthBug){j.el._needsTableWidthFix=true}(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).call(this);if(f){this.invokeTriggers("onFieldRender");for(h in f){i.push(f[h].el)}g=j.triggerEl=j.triggerCell=new Ext.CompositeElement(i,true)}j.inputCell=j.inputWrap},afterRender:function(){var b=this;b.autoSize();Ext.form.field.Base.prototype.afterRender.call(this);b.invokeTriggers("afterFieldRender")},onMouseDown:function(){if(!this.hasFocus){Ext.getDoc().on(this.squashMouseUp)}},applyTriggers:function(p){var o=this,t=o.getHideTrigger(),m=o.readOnly,i=o.orderedTriggers=[],n=o.repeatTriggerClick,u,q,s,v,r;if(!p){p={};if(o.triggerCls&&!o.trigger1Cls){o.trigger1Cls=o.triggerCls}for(r=1;v=o["trigger"+r+"Cls"];r++){p["trigger"+r]={cls:v,extraCls:"x-trigger-index-"+r,handler:"onTrigger"+r+"Click",compat4Mode:true,scope:o}}}for(u in p){if(p.hasOwnProperty(u)){q=p[u];q.field=o;q.id=u;if((m&&q.hideOnReadOnly!==false)||(t&&q.hidden!==false)){q.hidden=true}if(n&&(q.repeatClick!==false)){q.repeatClick=true}s=p[u]=Ext.form.trigger.Trigger.create(q);i.push(s)}}Ext.Array.sort(i,Ext.form.trigger.Trigger.weightComparator);return p},invokeTriggers:function(h,l){var j=this,k=j.getTriggers(),i,g;if(k){for(i in k){if(k.hasOwnProperty(i)){g=k[i];g[h].apply(g,l||[])}}}},getTrigger:function(b){return this.getTriggers()[b]},updateHideTrigger:function(b){this.invokeTriggers(b?"hide":"show")},updateEditable:function(d,c){this.setReadOnlyAttr(!d||this.readOnly)},setReadOnly:function(i){var k=this,l=k.getTriggers(),g=k.getHideTrigger(),h,j;i=!!i;Ext.form.field.Base.prototype.setReadOnly.call(this,i);if(k.rendered){k.setReadOnlyAttr(i||!k.editable)}if(l){for(j in l){h=l[j];if(h.hideOnReadOnly===true||(h.hideOnReadOnly!==false&&!g)){h.setVisible(!i)}}}},setReadOnlyAttr:function(g){var e=this,f="readonly",h=e.inputEl.dom;if(g){h.setAttribute(f,f)}else{h.removeAttribute(f)}if(e.ariaRole){e.ariaEl.dom.setAttribute("aria-readonly",!!g)}},processRawValue:function(j){var f=this,h=f.stripCharsRe,g,i;if(h){if(!h.global){g="g";g+=(h.ignoreCase)?"i":"";g+=(h.multiline)?"m":"";h=new RegExp(h.source,g)}i=j.replace(h,"");if(i!==j){f.setRawValue(i);j=i}}return j},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(b){this.fireEvent("keydown",this,b)},onKeyUp:function(b){this.fireEvent("keyup",this,b)},onKeyPress:function(b){this.fireEvent("keypress",this,b)},reset:function(){Ext.form.field.Base.prototype.reset.call(this);this.applyEmptyText()},applyEmptyText:function(){var d=this,e=d.emptyText,f;if(d.rendered&&e){f=d.getRawValue().length<1&&!d.hasFocus;if(Ext.supports.Placeholder){d.inputEl.dom.placeholder=e}else{if(f){d.setRawValue(e);d.valueContainsPlaceholder=true}}if(f){d.inputEl.addCls(d.emptyUICls)}else{d.inputEl.removeCls(d.emptyUICls)}d.autoSize()}},getEmptyText:function(){return this.emptyText},setEmptyText:function(i){var j=this,h=j.inputEl,f=h&&h.dom,g=i||"";if(i){j.emptyText=g;j.applyEmptyText()}else{if(f){if(Ext.supports.Placeholder){f.removeAttribute("placeholder")}else{if(f.value!==j.getRawValue()){f.value="";h.removeCls(j.emptyUICls)}}j.valueContainsPlaceholder=false}}j.emptyText=g;return j},afterFirstLayout:function(){Ext.form.field.Base.prototype.afterFirstLayout.call(this);if(Ext.isIE&&this.disabled){var b=this.inputEl;if(b){b.dom.unselectable="on"}}},toggleInvalidCls:function(d){var c=d?"addCls":"removeCls";Ext.form.field.Base.prototype.toggleInvalidCls.call(this);this.triggerWrap[c](this.triggerWrapInvalidCls);this.inputWrap[c](this.inputWrapInvalidCls)},beforeFocus:function(){var e=this,h=e.inputEl,f=e.emptyText,g;Ext.form.field.Base.prototype.beforeFocus.apply(this,arguments);if((f&&!Ext.supports.Placeholder)&&(h.dom.value===e.emptyText&&e.valueContainsPlaceholder)){e.setRawValue("");g=true;h.removeCls(e.emptyUICls);e.valueContainsPlaceholder=false}else{if(Ext.supports.Placeholder){h.removeCls(e.emptyUICls)}}},onFocus:function(c){var d=this;Ext.form.field.Base.prototype.onFocus.apply(this,arguments);if(d.selectOnFocus){d.inputEl.dom.select()}if(d.emptyText){d.autoSize()}d.addCls(d.fieldFocusCls);d.triggerWrap.addCls(d.triggerWrapFocusCls);d.inputWrap.addCls(d.inputWrapFocusCls);d.invokeTriggers("onFieldFocus",[c])},onBlur:function(c){var d=this;Ext.form.field.Base.prototype.onBlur.apply(this,arguments);d.removeCls(d.fieldFocusCls);d.triggerWrap.removeCls(d.triggerWrapFocusCls);d.inputWrap.removeCls(d.inputWrapFocusCls);d.invokeTriggers("onFieldBlur",[c])},completeEdit:function(b){Ext.form.field.Base.prototype.completeEdit.call(this,b);this.applyEmptyText()},filterKeys:function(c){if((c.ctrlKey&&!c.altKey)||c.isSpecialKey()){return}var d=String.fromCharCode(c.getCharCode());if(!this.maskRe.test(d)){c.stopEvent()}},getState:function(){return this.addPropertyToState(Ext.form.field.Base.prototype.getState.call(this),"value")},applyState:function(b){Ext.form.field.Base.prototype.applyState.apply(this,arguments);if(b.hasOwnProperty("value")){this.setValue(b.value)}},getRawValue:function(){var c=this,d=Ext.form.field.Base.prototype.getRawValue.call(this);if(d===c.emptyText&&c.valueContainsPlaceholder){d=""}return d},setValue:function(d){var e=this,f=e.inputEl;if(f&&e.emptyText&&!Ext.isEmpty(d)){f.removeCls(e.emptyUICls);e.valueContainsPlaceholder=false}Ext.form.field.Base.prototype.setValue.apply(this,arguments);e.applyEmptyText();return e},getErrors:function(l){l=arguments.length?(l==null?"":l):this.processRawValue(this.getRawValue());var q=this,n=Ext.form.field.Base.prototype.getErrors.call(this,l),v=q.validator,s=q.vtype,p=Ext.form.field.VTypes,o=q.regex,m=Ext.String.format,u,r,t;if(Ext.isFunction(v)){u=v.call(q,l);if(u!==true){n.push(u)}}r=q.allowOnlyWhitespace?l:Ext.String.trim(l);if(r.length<1||(l===q.emptyText&&q.valueContainsPlaceholder)){if(!q.allowBlank){n.push(q.blankText)}if(!q.validateBlank){return n}t=true}if(!t&&l.length<q.minLength){n.push(m(q.minLengthText,q.minLength))}if(l.length>q.maxLength){n.push(m(q.maxLengthText,q.maxLength))}if(s){if(!p[s](l,q)){n.push(q.vtypeText||p[s+"Text"])}}if(o&&!o.test(l)){n.push(q.regexText||q.invalidText)}return n},selectText:function(j,h){var k=this,m=k.getRawValue(),i=m.length,l=k.inputEl.dom,n;if(i>0){j=j===undefined?0:Math.min(j,i);h=h===undefined?i:Math.min(h,i);if(l.setSelectionRange){l.setSelectionRange(j,h)}else{if(l.createTextRange){n=l.createTextRange();n.moveStart("character",j);n.moveEnd("character",h-i);n.select()}}}},getGrowWidth:function(){return this.inputEl.dom.value},autoSize:function(){var n=this,h,j,l,k,i,m;if(n.grow&&n.rendered&&n.getSizeModel().width.auto){k=n.inputEl;h=n.getTriggers();l=0;m=Ext.util.Format.htmlEncode(n.getGrowWidth()||(n.hasFocus?"":n.emptyText)||"");m+=n.growAppend;for(j in h){l+=h[j].el.getWidth()}i=k.getTextWidth(m)+l+n.inputWrap.getBorderWidth("lr")+n.triggerWrap.getBorderWidth("lr");i=Math.min(Math.max(i,n.growMin),n.growMax);n.bodyEl.setWidth(i);n.updateLayout();n.fireEvent("autosize",n,i)}},onDestroy:function(){var b=this;b.invokeTriggers("destroy");Ext.destroy(b.triggerRepeater);Ext.form.field.Base.prototype.onDestroy.call(this)},onTriggerClick:Ext.emptyFn,privates:{getTdType:function(){return"textfield"}},deprecated:{5:{methods:{getTriggerWidth:function(){var d=this.getTriggers(),e=0,f;if(d&&this.rendered){for(f in d){if(d.hasOwnProperty(f)){e+=d[f].el.getWidth()}}}return e}}}}},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:['<textarea id="{id}" data-ref="inputEl" {inputAttrTpl}','<tpl if="name"> name="{name}"</tpl>','<tpl if="placeholder"> placeholder="{placeholder}"</tpl>','<tpl if="maxLength !== undefined"> maxlength="{maxLength}"</tpl>','<tpl if="readOnly"> readonly="readonly"</tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>',' class="{fieldCls} {typeCls} {typeCls}-{ui} {inputCls}" ','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>',' autocomplete="off">\n','<tpl if="value">{[Ext.util.Format.htmlEncode(values.value)]}</tpl>',"</textarea>",{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(e){var g=this,h=g.getFieldStyle(),f=Ext.form.field.Text.prototype.getSubTplData.apply(this,arguments);if(g.grow){if(g.preventScrollbars){f.fieldStyle=(h||"")+";overflow:hidden;height:"+g.growMin+"px"}}return f},afterRender:function(){var b=this;Ext.form.field.Text.prototype.afterRender.apply(this,arguments);b.needsMaxCheck=b.enforceMaxLength&&b.maxLength!==Number.MAX_VALUE&&!Ext.supports.TextAreaMaxLength;if(b.needsMaxCheck){b.inputEl.on("paste",b.onPaste,b)}},transformRawValue:function(b){return this.stripReturns(b)},getValue:function(){return this.stripReturns(Ext.form.field.Text.prototype.getValue.call(this))},valueToRaw:function(b){b=this.stripReturns(b);return Ext.form.field.Text.prototype.valueToRaw.call(this,b)},stripReturns:function(b){if(b&&typeof b==="string"){b=b.replace(this.returnRe,"")}return b},onPaste:function(){var b=this;if(!b.pasteTask){b.pasteTask=new Ext.util.DelayedTask(b.pasteCheck,b)}b.pasteTask.delay(1)},pasteCheck:function(){var d=this,f=d.getValue(),e=d.maxLength;if(f.length>e){f=f.substr(0,e);d.setValue(f)}},fireKey:function(g){var e=this,f=g.getKey(),h;if(g.isSpecialKey()&&(e.enterIsSpecial||(f!==g.ENTER||g.hasModifier()))){e.fireEvent("specialkey",e,g)}if(e.needsMaxCheck&&f!==g.BACKSPACE&&f!==g.DELETE&&!g.isNavKeyPress()&&!e.isCutCopyPasteSelectAll(g,f)){h=e.getValue();if(h.length>=e.maxLength){g.stopEvent()}}},isCutCopyPasteSelectAll:function(c,d){if(c.ctrlKey){return d===c.A||d===c.C||d===c.V||d===c.X}return false},autoSize:function(){var j=this,h,g,f,i;if(j.grow&&j.rendered&&j.getSizeModel().height.auto){h=j.inputEl;f=h.getWidth(true);i=Ext.util.Format.htmlEncode(h.dom.value)||"&#160;";i+=j.growAppend;i=i.replace(/\n/g,"<br/>");g=Ext.util.TextMetrics.measure(h,i,f).height+h.getPadding("tb")+j.inputWrap.getBorderWidth("tb")+j.triggerWrap.getBorderWidth("tb");g=Math.min(Math.max(g,j.growMin),j.growMax);j.bodyEl.setHeight(g);j.updateLayout();j.fireEvent("autosize",j,g)}},beforeDestroy:function(){var b=this.pasteTask;if(b){b.cancel();this.pasteTask=null}Ext.form.field.Text.prototype.beforeDestroy.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:"&#160;",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(d){var c=this.buttonIds[d];return new Ext.button.Button({handler:this.btnCallback,itemId:c,scope:this,text:this.buttonText[c],minWidth:75})},btnCallback:function(g,j){var f=this,i,h;if(j&&j.type==="keydown"&&!j.isSpecialKey()){j.getTarget(null,null,true).on({keyup:function(a){f.btnCallback(g,a)},single:true});return}if(f.cfg.prompt||f.cfg.multiline){if(f.cfg.multiline){h=f.textArea}else{h=f.textField}i=h.getValue();h.reset()}f.hide();f.userCallback(g.itemId,i,f.cfg)},hide:function(){var c=this,d=c.cfg?c.cfg.cls:"";c.progressBar.reset();if(d){c.removeCls(d)}Ext.window.Window.prototype.hide.apply(this,arguments)},constructor:function(d){var c=this;Ext.window.Window.prototype.constructor.apply(this,arguments);c.minWidth=c.defaultMinWidth=(c.minWidth||c.defaultMinWidth);c.maxWidth=c.defaultMaxWidth=(c.maxWidth||c.defaultMaxWidth);c.minHeight=c.defaultMinHeight=(c.minHeight||c.defaultMinHeight);c.maxHeight=c.defaultMaxHeight=(c.maxHeight||c.defaultMaxHeight)},initComponent:function(g){var h=this,f=h.id,i,j;h.title=h.title||"&#160;";h.iconCls=h.iconCls||"";h.topContainer=new Ext.container.Container({layout:"hbox",padding:10,style:{overflow:"hidden"},items:[h.iconComponent=new Ext.Component({cls:h.baseIconCls}),h.promptContainer=new Ext.container.Container({flex:1,layout:{type:"vbox",align:"stretch"},items:[h.msg=new Ext.Component({id:f+"-msg",cls:h.baseCls+"-text"}),h.textField=new Ext.form.field.Text({id:f+"-textfield",enableKeyEvents:true,listeners:{keydown:h.onPromptKey,scope:h}}),h.textArea=new Ext.form.field.TextArea({id:f+"-textarea",height:75})]})]});h.progressBar=new Ext.ProgressBar({id:f+"-progressbar",margin:"0 10 10 10"});h.items=[h.topContainer,h.progressBar];h.msgButtons=[];for(i=0;i<4;i++){j=h.makeButton(i);h.msgButtons[j.itemId]=j;h.msgButtons.push(j)}h.bottomTb=new Ext.toolbar.Toolbar({id:f+"-toolbar",ui:"footer",dock:"bottom",layout:{pack:"center"},items:[h.msgButtons[0],h.msgButtons[1],h.msgButtons[2],h.msgButtons[3]]});h.dockedItems=[h.bottomTb];h.on("close",h.onClose,h);Ext.window.Window.prototype.initComponent.call(this)},onClose:function(){var b=this.header.child("[type=close]");if(b){b.itemId="cancel";this.btnCallback(b);delete b.itemId}},onPromptKey:function(e,f){var d=this;if(f.keyCode===f.RETURN||f.keyCode===10){if(d.msgButtons.ok.isVisible()){d.msgButtons.ok.handler.call(d,d.msgButtons.ok)}else{if(d.msgButtons.yes.isVisible()){d.msgButtons.yes.handler.call(d,d.msgButtons.yes)}}}},reconfigure:function(L){var w=this,z=0,I=true,v=w.buttonText,J=w.resizer,B=w.header,x=B&&!B.isHeader,K=L&&(L.message||L.msg),i,D,G,A,y,H,M,F,C,E,N;w.updateButtonText();w.cfg=L=L||{};E=L.wait;if(L.width){D=L.width}if(L.height){G=L.height}w.minWidth=L.minWidth||w.defaultMinWidth;w.maxWidth=L.maxWidth||w.defaultMaxWidth;w.minHeight=L.minHeight||w.defaultMinHeight;w.maxHeight=L.maxHeight||w.defaultMaxHeight;if(J){i=J.resizeTracker;J.minWidth=i.minWidth=w.minWidth;J.maxWidth=i.maxWidth=w.maxWidth;J.minHeight=i.minHeight=w.minHeight;J.maxHeight=i.maxHeight=w.maxHeight}delete w.defaultFocus;if(L.defaultFocus){w.defaultFocus=L.defaultFocus}w.animateTarget=L.animateTarget||undefined;w.modal=L.modal!==false;w.setTitle(L.title||(x&&B.title)||w.title);w.setIconCls(L.iconCls||(x&&B.iconCls)||w.iconCls);if(Ext.isObject(L.buttons)){w.buttonText=L.buttons;z=0}else{w.buttonText=L.buttonText||w.buttonText;z=Ext.isNumber(L.buttons)?L.buttons:0}z=z|w.updateButtonText();w.buttonText=v;Ext.suspendLayouts();w.width=w.height=null;if(D||G){if(D){w.setWidth(D)}if(G){w.setHeight(G)}}w.hidden=false;if(!w.rendered){w.render(Ext.getBody())}w.closable=L.closable!==false&&!E;B=w.header;if(B){N=B.child("[type=close]");if(N){N.setVisible(w.closable)}if(!L.title&&!w.closable&&!L.iconCls){B.hide()}else{B.show()}}w.liveDrag=!L.proxyDrag;w.userCallback=Ext.Function.bindCallback(L.callback||L.fn||Ext.emptyFn,L.scope||Ext.global);w.setIcon(L.icon);M=w.msg;if(K){M.setHtml(K);M.show()}else{M.hide()}y=w.textArea;H=w.textField;if(L.prompt||L.multiline){w.multiline=L.multiline;if(L.multiline){y.setValue(L.value);y.setHeight(L.defaultTextHeight||w.defaultTextHeight);y.show();H.hide();w.defaultFocus=y}else{H.setValue(L.value);y.hide();H.show();w.defaultFocus=H}}else{y.hide();H.hide()}F=w.progressBar;if(L.progress||E){F.show();w.updateProgress(0,L.progressText);if(E){F.wait(E===true?L.waitConfig:E)}}else{F.hide()}C=w.msgButtons;for(A=0;A<4;A++){if(z&Math.pow(2,A)){if(!w.defaultFocus){w.defaultFocus=C[A]}C[A].show();I=false}else{C[A].hide()}}if(I){w.bottomTb.hide()}else{w.bottomTb.show()}Ext.resumeLayouts(true)},updateButtonText:function(){var i=this,j=i.buttonText,f=0,h,g;for(h in j){if(j.hasOwnProperty(h)){g=i.msgButtons[h];if(g){if(i.cfg&&i.cfg.buttonText){f=f|Math.pow(2,Ext.Array.indexOf(i.buttonIds,h))}if(g.text!==j[h]){g.setText(j[h])}}}}return f},show:function(e){var f=this,d;e=e||{};if(Ext.Component.layoutSuspendCount){Ext.on({resumelayouts:function(){f.show(e)},single:true});return f}f.reconfigure(e);if(e.cls){f.addCls(e.cls)}d=f.query("textfield:not([hidden]),textarea:not([hidden]),button:not([hidden])");f.preventFocusOnActivate=!d.length;f.hidden=true;Ext.window.Window.prototype.show.call(this);return f},onShow:function(){Ext.window.Window.prototype.onShow.apply(this,arguments);this.center()},updateText:function(b){this.msg.setHtml(b)},setIcon:function(k,l,h){var j=this,i=j.iconComponent,g=j.messageIconCls;if(g){i.removeCls(g)}if(k){i.show();if(l||h){i.setSize(l||i.getWidth(),h||i.getHeight())}i.addCls("x-dlg-icon");i.addCls(j.messageIconCls=k)}else{i.removeCls("x-dlg-icon");i.hide()}return j},updateProgress:function(f,e,d){this.progressBar.updateProgress(f,e);if(d){this.updateText(d)}return this},onEsc:function(){if(this.closable!==false){Ext.window.Window.prototype.onEsc.apply(this,arguments)}},confirm:function(f,g,h,e){if(Ext.isString(f)){f={title:f,icon:this.QUESTION,message:g,buttons:this.YESNO,callback:h,scope:e}}return this.show(f)},prompt:function(i,k,l,g,h,j){if(Ext.isString(i)){i={prompt:true,title:i,minWidth:this.minPromptWidth,message:k,buttons:this.OKCANCEL,callback:l,scope:g,multiline:h,value:j}}return this.show(i)},wait:function(d,f,e){if(Ext.isString(d)){d={title:f,message:d,closable:false,wait:true,modal:true,minWidth:this.minProgressWidth,waitConfig:e}}return this.show(d)},alert:function(g,h,e,f){if(Ext.isString(g)){g={title:g,message:h,buttons:this.OK,fn:e,scope:f,minWidth:this.minWidth}}return this.show(g)},progress:function(f,d,e){if(Ext.isString(f)){f={title:f,message:d,progress:true,progressText:e}}return this.show(f)}},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(b){Ext.onInternalReady(function(){Ext.MessageBox=Ext.Msg=new b()})}));(Ext.cmd.derive("Ext.form.Basic",Ext.util.Observable,{alternateClassName:"Ext.form.BasicForm",taskDelay:10,constructor:function(e,h){var g=this,f;g.owner=e;g.fieldMonitors={validitychange:g.checkValidityDelay,enable:g.checkValidityDelay,disable:g.checkValidityDelay,dirtychange:g.checkDirtyDelay,errorchange:g.checkErrorDelay,scope:g};g.checkValidityTask=new Ext.util.DelayedTask(g.checkValidity,g);g.checkDirtyTask=new Ext.util.DelayedTask(g.checkDirty,g);g.checkErrorTask=new Ext.util.DelayedTask(g.checkError,g);g.monitor=new Ext.container.Monitor({selector:"[isFormField]:not([excludeForm])",scope:g,addHandler:g.onFieldAdd,removeHandler:g.onFieldRemove,invalidateHandler:g.onMonitorInvalidate});g.monitor.bind(e);Ext.apply(g,h);if(Ext.isString(g.paramOrder)){g.paramOrder=g.paramOrder.split(/[\s,|]/)}f=g.reader;if(f&&!f.isReader){if(typeof f==="string"){f={type:f}}g.reader=Ext.createByAlias("reader."+f.type,f)}f=g.errorReader;if(f&&!f.isReader){if(typeof f==="string"){f={type:f}}g.errorReader=Ext.createByAlias("reader."+f.type,f)}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 c=this,d=c.monitor;if(d){d.unbind();c.monitor=null}c.clearListeners();c.checkValidityTask.cancel();c.checkDirtyTask.cancel();c.checkErrorTask.cancel();c.checkValidityTask=c.checkDirtyTask=c.checkErrorTask=null;Ext.util.Observable.prototype.destroy.call(this)},onFieldAdd:function(b){b.on(this.fieldMonitors);this.onMonitorInvalidate()},onFieldRemove:function(b){b.un(this.fieldMonitors);this.onMonitorInvalidate()},onMonitorInvalidate:function(){if(this.initialized){this.checkValidityDelay()}},getFields:function(){return this.monitor.getItems()},getBoundItems:function(){var b=this._boundItems;if(!b||b.getCount()===0){b=this._boundItems=new Ext.util.MixedCollection();b.addAll(this.owner.query("[formBind]"))}return b},hasInvalidField:function(){return !!this.getFields().findBy(function(f){var e=f.preventMark,d;f.preventMark=true;d=f.isValid();f.preventMark=e;return !d})},isValid:function(){var d=this,c;Ext.suspendLayouts();c=d.getFields().filterBy(function(a){return !a.validate()});Ext.resumeLayouts(true);return c.length<1},checkValidity:function(){var c=this,d;if(c.destroyed){return}d=!c.hasInvalidField();if(d!==c.wasValid){c.onValidityChange(d);c.fireEvent("validitychange",c,d);c.wasValid=d}},checkValidityDelay:function(){var b=this.taskDelay;if(b){this.checkValidityTask.delay(b)}else{this.checkValidity()}},checkError:function(){this.fireEvent("errorchange",this)},checkErrorDelay:function(){var b=this.taskDelay;if(b){this.checkErrorTask.delay(b)}else{this.checkError()}},onValidityChange:function(i){var k=this.getBoundItems(),g,l,h,j;if(k){g=k.items;h=g.length;for(l=0;l<h;l++){j=g[l];if(j.disabled===i){j.setDisabled(!i)}}}},isDirty:function(){return !!this.getFields().findBy(function(b){return b.isDirty()})},checkDirtyDelay:function(){var b=this.taskDelay;if(b){this.checkDirtyTask.delay(b)}else{this.checkDirty()}},checkDirty:function(){var c=this,d;if(c.destroyed){return}d=this.isDirty();if(d!==this.wasDirty){this.fireEvent("dirtychange",this,d);this.wasDirty=d}},hasUpload:function(){return !!this.getFields().findBy(function(b){return b.isFileUpload()})},doAction:function(c,d){if(Ext.isString(c)){c=Ext.ClassManager.instantiateByAlias("formaction."+c,Ext.apply({},d,{form:this}))}if(this.fireEvent("beforeaction",this,c)!==false){this.beforeAction(c);Ext.defer(c.run,100,c)}return this},submit:function(e){e=e||{};var d=this,f;if(e.standardSubmit||d.standardSubmit){f="standardsubmit"}else{f=d.api?"directsubmit":"submit"}return d.doAction(f,e)},load:function(b){return this.doAction(this.api?"directload":"load",b)},updateRecord:function(n){n=n||this._record;if(!n){return this}var h=n.self.fields,m=this.getFieldValues(),j={},k=0,i=h.length,l;for(;k<i;++k){l=h[k].name;if(m.hasOwnProperty(l)){j[l]=m[l]}}n.beginEdit();n.set(j);n.endEdit();return this},loadRecord:function(b){this._record=b;return this.setValues(b.getData())},getRecord:function(){return this._record},beforeAction:function(p){var m=this,q=p.waitMsg,f="x-mask-loading",o=m.getFields().items,n,k=o.length,l,r;for(n=0;n<k;n++){l=o[n];if(l.isFormField&&l.syncValue){l.syncValue()}}if(q){r=m.waitMsgTarget;if(r===true){m.owner.el.mask(q,f)}else{if(r){r=m.waitMsgTarget=Ext.get(r);r.mask(q,f)}else{m.floatingAncestor=m.owner.up("[floating]");if(m.floatingAncestor){m.savePreventFocusOnActivate=m.floatingAncestor.preventFocusOnActivate;m.floatingAncestor.preventFocusOnActivate=true}Ext.MessageBox.wait(q,p.waitTitle||m.waitTitle)}}}},afterAction:function(j,h){var g=this;if(j.waitMsg){var f=Ext.MessageBox,i=g.waitMsgTarget;if(i===true){g.owner.el.unmask()}else{if(i){i.unmask()}else{f.hide()}}}if(g.floatingAncestor){g.floatingAncestor.preventFocusOnActivate=g.savePreventFocusOnActivate}if(h){if(j.reset){g.reset()}Ext.callback(j.success,j.scope||j,[g,j]);g.fireEvent("actioncomplete",g,j)}else{Ext.callback(j.failure,j.scope||j,[g,j]);g.fireEvent("actionfailed",g,j)}},findField:function(b){return this.getFields().findBy(function(a){return a.id===b||a.name===b||a.dataIndex===b})},markInvalid:function(k){var o=this,m,j,e,n,p;function l(c,a){var b=o.findField(c);if(b){b.markInvalid(a)}}if(Ext.isArray(k)){j=k.length;for(m=0;m<j;m++){e=k[m];l(e.id||e.field,e.msg||e.message)}}else{if(k instanceof Ext.data.ErrorCollection){j=k.items.length;for(m=0;m<j;m++){e=k.items[m];l(e.field,e.message)}}else{for(p in k){if(k.hasOwnProperty(p)){n=k[p];l(p,n,k)}}}}return this},setValues:function(g){var k=this,h,l,i;function j(c,a){var b=k.findField(c);if(b){b.setValue(a);if(k.trackResetOnLoad){b.resetOriginalValue()}}}Ext.suspendLayouts();if(Ext.isArray(g)){l=g.length;for(h=0;h<l;h++){i=g[h];j(i.id,i.value)}}else{Ext.iterate(g,j)}Ext.resumeLayouts(true);return this},getValues:function(v,u,q,s,B){var r={},x=this.getFields().items,f=x.length,y=Ext.isArray,t,z,A,C,D,w;for(w=0;w<f;w++){t=x[w];if(!u||t.isDirty()){z=t[s?"getModelData":"getSubmitData"](q,B);if(Ext.isObject(z)){for(D in z){if(z.hasOwnProperty(D)){A=z[D];if(q&&A===""){A=t.emptyText||""}if(!t.isRadio){if(r.hasOwnProperty(D)){C=r[D];if(!y(C)){C=r[D]=[C]}if(y(A)){r[D]=C.concat(A)}else{C.push(A)}}else{r[D]=A}}else{r[D]=r[D]||A}}}}}}if(v){r=Ext.Object.toQueryString(r)}return r},getFieldValues:function(b){return this.getValues(false,b,false,true)},clearInvalid:function(){Ext.suspendLayouts();var e=this,f=e.getFields().items,h,g=f.length;for(h=0;h<g;h++){f[h].clearInvalid()}Ext.resumeLayouts(true);return e},reset:function(f){Ext.suspendLayouts();var j=this,g=j.getFields().items,i,h=g.length;for(i=0;i<h;i++){g[i].reset()}Ext.resumeLayouts(true);if(f===true){delete j._record}return j},applyToFields:function(h){var f=this.getFields().items,e,g=f.length;for(e=0;e<g;e++){Ext.apply(f[e],h)}return this},applyIfToFields:function(h){var f=this.getFields().items,e,g=f.length;for(e=0;e<g;e++){Ext.applyIf(f[e],h)}return this}},1,0,0,0,0,0,[Ext.form,"Basic",Ext.form,"BasicForm"],0));(Ext.cmd.derive("Ext.form.FieldAncestor",Ext.Mixin,{mixinConfig:{id:"fieldAncestor",after:{initInheritedState:"initFieldInheritedState"},before:{destroy:"onBeforeDestroy"}},initFieldAncestor:function(){var b=this;b.monitor=new Ext.container.Monitor({scope:b,selector:"[isFormField]:not([excludeForm])",addHandler:b.onChildFieldAdd,removeHandler:b.onChildFieldRemove});b.initFieldDefaults()},initMonitor:function(){this.monitor.bind(this)},initFieldInheritedState:function(d){var e=d.fieldDefaults,f=this.fieldDefaults;if(f){if(e){d.fieldDefaults=Ext.apply(Ext.Object.chain(e),f)}else{d.fieldDefaults=f}}},onChildFieldAdd:function(c){var d=this;d.mon(c,"errorchange",d.handleFieldErrorChange,d);d.mon(c,"validitychange",d.handleFieldValidityChange,d)},onChildFieldRemove:function(c){var d=this;d.mun(c,"errorchange",d.handleFieldErrorChange,d);d.mun(c,"validitychange",d.handleFieldValidityChange,d)},initFieldDefaults:function(){if(!this.fieldDefaults){this.fieldDefaults={}}},handleFieldValidityChange:function(f,d){var e=this;if(f!==e){e.fireEvent("fieldvaliditychange",e,f,d);e.onFieldValidityChange(f,d)}},handleFieldErrorChange:function(d,e){var f=this;if(d!==f){f.fireEvent("fielderrorchange",f,d,e);f.onFieldErrorChange(d,e)}},onFieldValidityChange:Ext.emptyFn,onFieldErrorChange:Ext.emptyFn,onBeforeDestroy:function(){this.monitor.unbind()}},0,0,0,0,0,0,[Ext.form,"FieldAncestor"],0));(Ext.cmd.derive("Ext.layout.component.field.FieldContainer",Ext.layout.component.Auto,{type:"fieldcontainer",waitForOuterHeightInDom:true,waitForOuterWidthInDom:true,beginLayout:function(c){var d=this.owner.containerEl;Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);c.hasRawContent=true;d.setStyle("width","");d.setStyle("height","");c.containerElContext=c.getEl("containerEl")},measureContentHeight:function(b){return b.hasDomProp("containerLayoutDone")?Ext.layout.component.Auto.prototype.measureContentHeight.apply(this,arguments):NaN},measureContentWidth:function(b){return b.hasDomProp("containerLayoutDone")?Ext.layout.component.Auto.prototype.measureContentWidth.apply(this,arguments):NaN},publishInnerHeight:function(f,d){var e=this.owner;if(e.labelAlign==="top"&&e.hasVisibleLabel()){d-=e.labelEl.getHeight()}if(e.msgTarget==="under"&&e.hasActiveError()){d-=e.errorWrapEl.getHeight()}d-=e.bodyEl.getPadding("tb");f.containerElContext.setHeight(d)},publishInnerWidth:function(f,d){var e=this.owner;if(e.labelAlign!=="top"&&e.hasVisibleLabel()){d-=(e.labelWidth+(e.labelPad||0))}if(e.msgTarget==="side"&&e.hasActiveError()){d-=e.errorWrapEl.getWidth()}d-=e.bodyEl.getPadding("lr");f.containerElContext.setWidth(d)}},0,0,0,0,["layout.fieldcontainer"],0,[Ext.layout.component.field,"FieldContainer"],0));(Ext.cmd.derive("Ext.form.FieldContainer",Ext.container.Container,{componentLayout:"fieldcontainer",componentCls:"x-form-fieldcontainer",shrinkWrap:true,autoEl:{tag:"div",role:"presentation"},childEls:["containerEl"],combineLabels:false,labelConnector:", ",combineErrors:false,maskOnDisable:false,invalidCls:"",fieldSubTpl:['<div id="{id}-containerEl" data-ref="containerEl" class="{containerElCls}"','<tpl if="ariaAttributes">','<tpl foreach="ariaAttributes"> {$}="{.}"</tpl>',"<tpl else>",' role="presentation"',"</tpl>",">","{%this.renderContainer(out,values)%}","</div>"],initComponent:function(){var b=this;b.initLabelable();b.initFieldAncestor();Ext.container.Container.prototype.initComponent.call(this);b.initMonitor()},onAdd:function(d){var c=this;if(d.isLabelable&&Ext.isGecko&&Ext.firefoxVersion<37&&c.layout.type==="absolute"&&!c.hideLabel&&c.labelAlign!=="top"){d.x+=(c.labelWidth+c.labelPad)}Ext.container.Container.prototype.onAdd.apply(this,arguments);if(d.isLabelable&&c.combineLabels){d.oldHideLabel=d.hideLabel;d.hideLabel=true}c.updateLabel()},onRemove:function(e,d){var f=this;Ext.container.Container.prototype.onRemove.apply(this,arguments);if(!d){if(e.isLabelable&&f.combineLabels){e.hideLabel=e.oldHideLabel}f.updateLabel()}},initRenderData:function(){var d=this,c=Ext.container.Container.prototype.initRenderData.call(this);c.containerElCls=d.containerElCls;c=Ext.applyIf(c,d.getLabelableRenderData());c.tipAnchorTarget=d.id+"-containerEl";return c},getFieldLabel:function(){var b=this.fieldLabel||"";if(!b&&this.combineLabels){b=Ext.Array.map(this.query("[isFieldLabelable]"),function(a){return a.getFieldLabel()}).join(this.labelConnector)}return b},getSubTplData:function(){var b=this.initRenderData();Ext.apply(b,this.subTplData);return b},getSubTplMarkup:function(e){var g=this,f=g.getTpl("fieldSubTpl"),h;if(!f.renderContent){g.setupRenderTpl(f)}h=f.apply(g.getSubTplData(e));return h},updateLabel:function(){var c=this,d=c.labelEl;if(d){c.setFieldLabel(c.getFieldLabel())}},onFieldErrorChange:function(){if(this.combineErrors){var h=this,g=h.getActiveError(),e=Ext.Array.filter(h.query("[isFormField]"),function(a){return a.hasActiveError()}),f=h.getCombinedErrors(e);if(f){h.setActiveErrors(f)}else{h.unsetActiveError()}if(g!==h.getActiveError()){h.updateLayout()}}},getCombinedErrors:function(q){var f=[],s,a=q.length,n,r,m,t,p,o;for(s=0;s<a;s++){n=q[s];r=n.getActiveErrors();t=r.length;for(m=0;m<t;m++){p=r[m];o=n.getFieldLabel();f.push((o?o+": ":"")+p)}}return f},privates:{applyTargetCls:function(c){var d=this.containerElCls;this.containerElCls=d?d+" "+c:c},getTargetEl:function(){return this.containerEl},initRenderTpl:function(){var b=this;if(!b.hasOwnProperty("renderTpl")){b.renderTpl=b.getTpl("labelableRenderTpl")}return Ext.container.Container.prototype.initRenderTpl.call(this)}}},0,["fieldcontainer"],["component","box","container","fieldcontainer"],{component:true,box:true,container:true,fieldcontainer:true},["widget.fieldcontainer"],[["labelable",Ext.form.Labelable],["fieldAncestor",Ext.form.FieldAncestor]],[Ext.form,"FieldContainer"],0));(Ext.cmd.derive("Ext.form.CheckboxManager",Ext.util.MixedCollection,{singleton:true,getByName:function(d,c){return this.filterBy(function(a){return a.name===d&&a.getFormId()===c})}},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:['<div id="{cmpId}-innerWrapEl" data-ref="innerWrapEl" role="presentation"',' class="{wrapInnerCls}">','<tpl if="labelAlignedBefore">',"{beforeBoxLabelTpl}",'<label id="{cmpId}-boxLabelEl" data-ref="boxLabelEl" {boxLabelAttrTpl} class="{boxLabelCls} ','{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {noBoxLabelCls} {childElCls}" for="{id}">',"{beforeBoxLabelTextTpl}","{boxLabel}","{afterBoxLabelTextTpl}","</label>","{afterBoxLabelTpl}","</tpl>",'<input type="button" id="{id}" name="{inputName}" data-ref="inputEl" {inputAttrTpl}','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl if="disabled"> disabled="disabled"</tpl>','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' class="{checkboxCls} {clipCls}" autocomplete="off" hidefocus="true" ','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>',"/>",'<span id="{cmpId}-displayEl" data-ref="displayEl" class="{fieldCls} {typeCls} ','{typeCls}-{ui} {inputCls} {inputCls}-{ui} {childElCls} {afterLabelCls}"></span>','<tpl if="!labelAlignedBefore">',"{beforeBoxLabelTpl}",'<label id="{cmpId}-boxLabelEl" data-ref="boxLabelEl" {boxLabelAttrTpl} class="{boxLabelCls} ','{boxLabelCls}-{ui} {boxLabelCls}-{boxLabelAlign} {noBoxLabelCls} {childElCls}" for="{id}">',"{beforeBoxLabelTextTpl}","{boxLabel}","{afterBoxLabelTextTpl}","</label>","{afterBoxLabelTpl}","</tpl>","</div>",{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:[],inputType:"checkbox",isTextInput:false,ariaRole:"checkbox",onRe:/^on$/i,inputCls:"x-form-cb",_checkboxCls:"x-form-cb-input",_clipCls:"x-hidden-clip",initComponent:function(){var d=this,c=d.value;if(c!==undefined){d.checked=d.isChecked(c,d.inputValue)}Ext.form.field.Base.prototype.initComponent.call(this);d.getManager().add(d)},initDefaultName:Ext.emptyFn,initValue:function(){var c=this,d=!!c.checked;c.originalValue=c.lastValue=d;c.setValue(d)},getElConfig:function(){var b=this;if(b.isChecked(b.rawValue,b.inputValue)){b.addCls(b.checkedCls)}return Ext.form.field.Base.prototype.getElConfig.call(this)},getSubTplData:function(h){var m=this,n=m.boxLabel,j=m.boxLabelAlign,k=j==="before",l,i;l=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,h),{clipCls:m._clipCls,checkboxCls:m._checkboxCls,disabled:m.readOnly||m.disabled,wrapInnerCls:m.wrapInnerCls,boxLabel:n,boxLabelCls:m.boxLabelCls,boxLabelAlign:j,labelAlignedBefore:k,afterLabelCls:k?m.afterLabelCls:"",noBoxLabelCls:!n?m.noBoxLabelCls:"",inputName:m.name||m.id});i=l.inputElAriaAttributes;if(i){i["aria-checked"]=!!m.checked;i["aria-labelledby"]=m.id+"-boxLabelEl"}return l},initEvents:function(){var b=this;Ext.form.field.Base.prototype.initEvents.call(this);b.inputEl.on({click:"onBoxClick",scope:b,translate:false});b.displayEl.on({click:"onBoxClick",mousedown:"_onDisplayElMouseDown",scope:b})},setBoxLabel:function(d){var c=this;c.boxLabel=d;if(c.rendered){c.boxLabelEl.setHtml(d);c.boxLabelEl[d?"removeCls":"addCls"](c.noBoxLabelCls);c.updateLayout()}},onBoxClick:function(){var b=this;if(!b.disabled&&!b.readOnly){b.setValue(!b.checked)}},getRawValue:function(){return this.checked},getValue:function(){return this.checked},getSubmitValue:function(){var d=this.uncheckedValue,c=Ext.isDefined(d)?d:null;return this.checked?this.inputValue:c},isChecked:function(c,d){return(c===true||c==="true"||c==="1"||c===1||(((Ext.isString(c)||Ext.isNumber(c))&&d)?c==d:this.onRe.test(c)))},setRawValue:function(j){var f=this,i=f.inputEl,h=f.displayEl,g=f.isChecked(j,f.inputValue);if(i){f[g?"addCls":"removeCls"](f.checkedCls);if(f.ariaRole){f.ariaEl.dom.setAttribute("aria-checked",g)}}if(Ext.isIE8&&h&&g!==f.lastValue){h.repaint()}f.checked=f.rawValue=g;if(!f.duringSetValue){f.lastValue=g}return g},setValue:function(i){var j=this,l,g,h,k;if(Ext.isArray(i)){l=j.getManager().getByName(j.name,j.getFormId()).items;h=l.length;for(g=0;g<h;++g){k=l[g];k.setValue(Ext.Array.contains(i,k.inputValue))}}else{j.duringSetValue=true;Ext.form.field.Base.prototype.setValue.apply(this,arguments);delete j.duringSetValue}return j},valueToRaw:Ext.identityFn,onChange:function(e,f){var g=this,h=g.handler;if(h){Ext.callback(h,g.scope,[g,e],0,g)}Ext.form.field.Base.prototype.onChange.apply(this,arguments);if(g.reference&&g.publishState){g.publishState("checked",e)}},resetOriginalValue:function(g){var i=this,k,j,h,l;if(!g){k=i.getManager().getByName(i.name,i.getFormId()).items;h=k.length;for(l=0;l<h;++l){j=k[l];if(j!==i){k[l].resetOriginalValue(true)}}}Ext.form.field.Base.prototype.resetOriginalValue.call(this)},beforeDestroy:function(){Ext.form.field.Base.prototype.beforeDestroy.call(this);this.getManager().removeAtKey(this.id)},getManager:function(){return Ext.form.CheckboxManager},onEnable:function(){var d=this,c=d.inputEl;Ext.form.field.Base.prototype.onEnable.call(this);if(c){c.dom.disabled=d.readOnly}},setReadOnly:function(f){var e=this,d=e.inputEl;if(d){d.dom.disabled=!!f||e.disabled}Ext.form.field.Base.prototype.setReadOnly.apply(this,arguments)},getFormId:function(){var c=this,d;if(!c.formId){d=c.up("form");if(d){c.formId=d.id}}return c.formId},getFocusClsEl:function(){return this.displayEl},privates:{_onDisplayElMouseDown:function(b){b.preventDefault();this.inputEl.focus(1)}}},0,["checkbox","checkboxfield"],["component","box","field","checkboxfield","checkbox"],{component:true,box:true,field:true,checkboxfield:true,checkbox:true},["widget.checkbox","widget.checkboxfield"],0,[Ext.form.field,"Checkbox",Ext.form,"Checkbox"],0));Ext.define("Ext.theme.triton.form.field.Checkbox",{override:"Ext.form.field.Checkbox",compatibility:Ext.isIE8,initComponent:function(){(arguments.callee.$previous||Ext.form.field.Base.prototype.initComponent).call(this);Ext.on({show:"onGlobalShow",scope:this})},onFocus:function(c){var d;(arguments.callee.$previous||Ext.form.field.Base.prototype.onFocus).call(this,c);d=this.getFocusClsEl();if(d){d.syncRepaint()}},onBlur:function(c){var d;(arguments.callee.$previous||Ext.form.field.Base.prototype.onBlur).call(this,c);d=this.getFocusClsEl();if(d){d.syncRepaint()}},onGlobalShow:function(b){if(b.isAncestor(this)){this.getFocusClsEl().syncRepaint()}}});(Ext.cmd.derive("Ext.form.Label",Ext.Component,{autoEl:"label",maskOnDisable:false,getElConfig:function(){var b=this;b.html=b.text?Ext.util.Format.htmlEncode(b.text):(b.html||"");return Ext.apply(Ext.Component.prototype.getElConfig.call(this),{htmlFor:b.forId||""})},setText:function(f,d){var e=this;d=d!==false;if(d){e.text=f;delete e.html}else{e.html=f;delete e.text}if(e.rendered){e.el.dom.innerHTML=d!==false?Ext.util.Format.htmlEncode(f):f;e.updateLayout()}return e}},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 b=this;if(b.frame){b.border=false}b.initFieldAncestor();Ext.panel.Panel.prototype.initComponent.call(this);b.relayEvents(b.form,["beforeaction","actionfailed","actioncomplete","validitychange","dirtychange"]);if(b.pollForChanges){b.startPolling(b.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 f={},i=this.basicFormConfigs,g=i.length,j=0,h;for(;j<g;++j){h=i[j];f[h]=this[h]}return new Ext.form.Basic(this,f)},getForm:function(){return this.form},loadRecord:function(b){return this.getForm().loadRecord(b)},getRecord:function(){return this.getForm().getRecord()},updateRecord:function(b){return this.getForm().updateRecord(b)},getValues:function(g,e,h,f){return this.getForm().getValues(g,e,h,f)},isDirty:function(){return this.form.isDirty()},isValid:function(){return this.form.isValid()},reset:function(){this.form.reset()},hasInvalidField:function(){return this.form.hasInvalidField()},beforeDestroy:function(){this.stopPolling();this.form.destroy();Ext.panel.Panel.prototype.beforeDestroy.call(this)},load:function(b){this.form.load(b)},submit:function(b){this.form.submit(b)},startPolling:function(c){this.stopPolling();var d=new Ext.util.TaskRunner(c);d.start({interval:0,run:this.checkChange,scope:this});this.pollTask=d},stopPolling:function(){var b=this.pollTask;if(b){b.stopAll();delete this.pollTask}},checkChange:function(){var e=this.form.getFields().items,d,f=e.length;for(d=0;d<f;d++){e[d].checkChange()}}},0,["form"],["component","box","container","panel","form"],{component:true,box:true,container:true,panel:true,form:true},["widget.form"],[["fieldAncestor",Ext.form.FieldAncestor]],[Ext.form,"Panel",Ext,"FormPanel",Ext.form,"FormPanel"],0));(Ext.cmd.derive("Ext.form.RadioManager",Ext.util.MixedCollection,{singleton:true,getByName:function(d,c){return this.filterBy(function(a){return a.name===d&&a.getFormId()===c})},getWithValue:function(e,d,f){return this.filterBy(function(a){return a.name===e&&a.inputValue==d&&a.getFormId()===f})},getChecked:function(d,c){return this.findBy(function(a){return a.name===d&&a.checked&&a.getFormId()===c})}},0,0,0,0,0,0,[Ext.form,"RadioManager"],0));(Ext.cmd.derive("Ext.form.field.Radio",Ext.form.field.Checkbox,{alternateClassName:"Ext.form.Radio",isRadio:true,inputType:"radio",ariaRole:"radio",tabIndex:0,formId:null,getGroupValue:function(){var b=this.getManager().getChecked(this.name,this.getFormId());return b?b.inputValue:null},onBoxClick:function(){var b=this;if(!b.disabled&&!b.readOnly){this.setValue(true)}},onRemoved:function(){Ext.form.field.Checkbox.prototype.onRemoved.apply(this,arguments);this.formId=null},setValue:function(d){var e=this,f;if(Ext.isBoolean(d)){Ext.form.field.Checkbox.prototype.setValue.apply(this,arguments)}else{f=e.getManager().getWithValue(e.name,d,e.getFormId()).getAt(0);if(f){f.setValue(true)}}return e},getSubmitValue:function(){return this.checked?this.inputValue:null},getModelData:function(){var b=Ext.form.field.Checkbox.prototype.getModelData.apply(this,arguments);if(b){b[this.getName()]=this.getSubmitValue()}return b},onChange:function(n,i){var k=this,l,m,h,j;Ext.form.field.Checkbox.prototype.onChange.apply(this,arguments);if(n){j=k.getManager().getByName(k.name,k.getFormId()).items;m=j.length;for(l=0;l<m;l++){h=j[l];if(h!==k){h.setValue(false)}}}},getManager:function(){return Ext.form.RadioManager}},0,["radiofield","radio"],["component","box","field","checkboxfield","checkbox","radiofield","radio"],{component:true,box:true,field:true,checkboxfield:true,checkbox:true,radiofield:true,radio:true},["widget.radio","widget.radiofield"],0,[Ext.form.field,"Radio",Ext.form,"Radio"],0));(Ext.cmd.derive("Ext.selection.Model",Ext.mixin.Observable,{alternateClassName:"Ext.AbstractSelectionModel",factoryConfig:{defaultType:"dataviewmodel"},$configPrefixed:false,$configStrict:false,config:{store:null,selected:{}},isSelectionModel:true,allowDeselect:undefined,toggleOnClick:true,selected:null,pruneRemoved:true,suspendChange:0,ignoreRightMouseSelection:false,constructor:function(d){var c=this;c.modes={SINGLE:true,SIMPLE:true,MULTI:true};Ext.mixin.Observable.prototype.constructor.call(this,d);c.setSelectionMode(c.mode);if(c.selectionMode!=="SINGLE"){c.allowDeselect=true}},updateStore:function(d,c){this.bindStore(d,!c)},applySelected:function(b){if(!b.isCollection){b=new Ext.util.Collection(Ext.apply({rootProperty:"data"},b))}return b},getStoreListeners:function(){var b=this;return{add:b.onStoreAdd,clear:b.onStoreClear,remove:b.onStoreRemove,update:b.onStoreUpdate,idchanged:b.onIdChanged,load:b.onStoreLoad,refresh:b.onStoreRefresh,pageadd:b.onPageAdd,pageremove:b.onPageRemove}},suspendChanges:function(){++this.suspendChange},resumeChanges:function(){if(this.suspendChange){--this.suspendChange}},selectAll:function(f){var h=this,e=h.store.getRange(),g=h.getSelection().length;h.suspendChanges();h.doSelect(e,true,f);h.resumeChanges();if(!f&&!h.destroyed){h.maybeFireSelectionChange(h.getSelection().length!==g)}},deselectAll:function(i){var m=this,q=m.getSelection(),l={},k=m.store,r=q.length,n,p,o;for(n=0,p=q.length;n<p;n++){o=q[n];l[o.id]=k.indexOf(o)}q=Ext.Array.sort(q,function(b,d){var a=l[b.id],c=l[d.id];return a<c?-1:1});m.suspendChanges();m.doDeselect(q,i);m.resumeChanges();if(!i&&!m.destroyed){m.maybeFireSelectionChange(m.getSelection().length!==r)}},getSelectionStart:function(){return this.selectionStart},setSelectionStart:function(b){this.selectionStart=b},selectWithEvent:function(e,h){var i=this,j=i.isSelected(e),g=h.shiftKey;switch(i.selectionMode){case"MULTI":i.selectWithEventMulti(e,h,j);break;case"SIMPLE":i.selectWithEventSimple(e,h,j);break;case"SINGLE":i.selectWithEventSingle(e,h,j);break}if(!g){if(i.isSelected(e)){i.selectionStart=e}else{i.selectionStart=null}}},vetoSelection:function(b){if(b.stopSelection){return true}else{if(b.type!=="keydown"&&b.button!==0){if(this.ignoreRightMouseSelection||this.isSelected(b.record)){return true}}else{return b.type==="mousedown"}}},onNavigate:function(u){if(!u.record||this.vetoSelection(u.keyEvent)){return}this.onBeforeNavigate(u);var s=this,t=u.keyEvent,y=t.ctrlKey||u.ctrlKey,w=u.recordIndex,v=u.record,o=u.previousRecord,x=s.isSelected(v),q=(s.selectionStart&&s.isSelected(u.previousRecord))?s.selectionStart:(s.selectionStart=u.previousRecord),z=u.previousRecordIndex,p=t.getCharCode(),e=p===t.SPACE,r=p===t.UP||p===t.PAGE_UP||p===t.HOME?"up":(p===t.DOWN||p===t.PAGE_DOWN||p===t.END?"down":null);switch(s.selectionMode){case"MULTI":s.setSelectionStart(u.selectionStart);if(p===t.A&&y){s.selected.beginUpdate();s.selectRange(0,s.store.getCount()-1);s.selected.endUpdate()}else{if(e){if(t.shiftKey){s.selectRange(q,v,y)}else{if(x){if(s.allowDeselect){s.doDeselect(v)}}else{s.doSelect(v,y)}}}else{if(t.shiftKey&&q){if(r==="up"&&z<=w){s.deselectRange(o,w+1)}else{if(r==="down"&&z>=w){s.deselectRange(o,w-1)}else{if(q!==v){s.selectRange(q,v,y)}}}s.lastSelected=v}else{if(p){if(!y){s.doSelect(v,false)}}else{s.selectWithEvent(v,t)}}}}break;case"SIMPLE":if(p===t.A&&y){s.selected.beginUpdate();s.selectRange(0,s.store.getCount()-1);s.selected.endUpdate()}else{if(x){s.doDeselect(v)}else{s.doSelect(v,true)}}break;case"SINGLE":if(!y){if(r){s.doSelect(v,false)}else{if(e||!p){s.selectWithEvent(v,t)}}}}if(!t.shiftKey&&!s.destroyed&&s.isSelected(v)){s.selectionStart=v;s.selectionStartIdx=w}},selectRange:function(p,w,o){var s=this,q=s.store,x=s.selected.items,i,u,t,v,z,r,y;if(s.isLocked()){return}i=s.normalizeRowRange(p,w);p=i[0];w=i[1];v=[];for(u=p;u<=w;u++){if(!s.isSelected(q.getAt(u))){v.push(q.getAt(u))}}if(!o){z=[];s.suspendChanges();for(u=0,t=x.length;u<t;++u){y=x[u];r=q.indexOf(y);if(r<p||r>w){z.push(y)}}for(u=0,t=z.length;u<t;++u){s.doDeselect(z[u])}s.resumeChanges()}if(!s.destroyed){if(v.length){s.doMultiSelect(v,true)}else{if(z){s.maybeFireSelectionChange(z.length>0)}}}},deselectRange:function(n,o){var k=this,p=k.store,j,l,m,i;if(k.isLocked()){return}j=k.normalizeRowRange(n,o);n=j[0];o=j[1];m=[];for(l=n;l<=o;l++){i=p.getAt(l);if(k.isSelected(i)){m.push(i)}}if(m.length){k.doDeselect(m)}},normalizeRowRange:function(h,e){var f=this.store,g;if(!Ext.isNumber(h)){h=f.indexOf(h)}h=Math.max(0,h);if(!Ext.isNumber(e)){e=f.indexOf(e)}e=Math.min(e,f.getCount()-1);if(h>e){g=e;e=h;h=g}return[h,e]},select:function(d,f,e){if(Ext.isDefined(d)&&!(Ext.isArray(d)&&!d.length)){this.doSelect(d,f,e)}},deselect:function(c,d){this.doDeselect(c,d)},doSelect:function(j,h,f){var i=this,g;if(i.locked||j==null){return}if(typeof j==="number"){g=i.store.getAt(j);if(!g){return}j=[g]}if(i.selectionMode==="SINGLE"){if(j.isModel){j=[j]}if(j.length){i.doSingleSelect(j[0],f)}}else{i.doMultiSelect(j,h,f)}},doMultiSelect:function(v,m,n){var p=this,u=p.selected,o=false,i,s,q,r,t;if(p.locked){return}v=!Ext.isArray(v)?[v]:v;q=v.length;if(!m&&u.getCount()>0){i=p.deselectDuringSelect(v,n);if(p.destroyed){return}if(i[0]){p.maybeFireSelectionChange(i[1]>0&&!n);return}else{o=i[1]>0}}t=function(){if(!u.getCount()){p.selectionStart=r}u.add(r);o=true};for(s=0;s<q;s++){r=v[s];if(p.isSelected(r)){continue}p.onSelectChange(r,true,n,t);if(p.destroyed){return}}p.lastSelected=r;p.maybeFireSelectionChange(o&&!n)},deselectDuringSelect:function(o,k){var l=this,r=l.selected.getRange(),m=r.length,p=0,n=false,i,q;l.suspendChanges();l.deselectingDuringSelect=true;for(q=0;q<m;++q){i=r[q];if(!Ext.Array.contains(o,i)){if(l.doDeselect(i,k)){++p}else{n=true}}if(l.destroyed){n=true;p=0;break}}l.deselectingDuringSelect=false;l.resumeChanges();return[n,p]},doDeselect:function(t,l){var m=this,s=m.selected,q=0,n,p,i=0,o=0,r;if(m.locked||!m.store){return false}if(typeof t==="number"){p=m.store.getAt(t);if(!p){return false}t=[p]}else{if(!Ext.isArray(t)){t=[t]}}r=function(){++o;s.remove(p);if(p===m.selectionStart){m.selectionStart=null}};n=t.length;m.suspendChanges();for(;q<n;q++){p=t[q];if(m.isSelected(p)){if(m.lastSelected===p){m.lastSelected=s.last()}++i;m.onSelectChange(p,false,l,r);if(m.destroyed){return false}}}m.resumeChanges();m.maybeFireSelectionChange(o>0&&!l);return o===i},doSingleSelect:function(h,g){var k=this,i=false,l=k.selected,j;if(k.locked){return}if(k.isSelected(h)){return}j=function(){if(l.getCount()){k.suspendChanges();var a=k.deselectDuringSelect([h],g);if(k.destroyed){return}k.resumeChanges();if(a[0]){return false}}k.lastSelected=h;if(!l.getCount()){k.selectionStart=h}l.add(h);i=true};k.onSelectChange(h,true,g,j);if(i&&!k.destroyed){k.maybeFireSelectionChange(!g)}},maybeFireSelectionChange:function(d){var c=this;if(d&&!c.suspendChange){c.fireEvent("selectionchange",c,c.getSelection())}},getLastSelected:function(){return this.lastSelected},getSelection:function(){return this.selected.getRange()},getSelectionMode:function(){return this.selectionMode},setSelectionMode:function(b){b=b?b.toUpperCase():"SINGLE";this.selectionMode=this.modes[b]?b:"SINGLE"},isLocked:function(){return this.locked},setLocked:function(b){this.locked=!!b},isRangeSelected:function(k,l){var i=this,g=i.store,j,h;h=i.normalizeRowRange(k,l);k=h[0];l=h[1];for(j=k;j<=l;j++){if(!i.isSelected(g.getAt(j))){return false}}return true},isSelected:function(b){b=Ext.isNumber(b)?this.store.getAt(b):b;return this.selected.contains(b)},hasSelection:function(){var b=this.getSelected();return !!(b&&b.getCount())},refresh:function(){var q=this,d=q.store,u=[],r=[],v=q.getSelection(),t=v.length,x=q.getSelected(),p,s,z,i,y,w;if(!d||!(x.isCollection||x.isRows)||!x.getCount()){return}z=d.getData();if(z.getSource){s=z.getSource();if(s){z=s}}q.refreshing=true;x.beginUpdate();q.suspendChanges();for(w=0;w<t;w++){i=v[w];y=z.get(i.getId());if(y){u.push(y)}else{if(!q.pruneRemoved){r.push(i)}}if(q.mode==="SINGLE"&&r.length){break}}if(x.getCount()!==(u.length+r.length)){p=true}q.clearSelections();if(u.length){q.doSelect(u,false,true)}if(r.length){x.add(r);if(!q.lastSelected){q.lastSelected=r[r.length-1]}}q.resumeChanges();if(p){x.endUpdate()}else{x.updating--}q.refreshing=false;q.maybeFireSelectionChange(p)},clearSelections:function(){var b=this.getSelected();if(b){b.clear()}this.lastSelected=null},onStoreAdd:Ext.emptyFn,onStoreClear:function(){if(!this.store.isLoading()&&this.hasSelection()){this.clearSelections();this.maybeFireSelectionChange(true)}},onStoreRemove:function(l,s,p,i){var m=this,t=s,q,o,r,n;if(m.selectionStart&&Ext.Array.contains(s,m.selectionStart)){m.selectionStart=null}if(i||m.locked||!m.pruneRemoved){return}n=l.isMoving(null,true);if(n){t=null;for(q=0,o=s.length;q<o;++q){r=s[q];if(!n[r.id]){(t||(t=[])).push(r)}}}if(t){m.deselect(t)}},onPageRemove:function(d,e,f){this.onStoreRemove(this.store,f)},onPageAdd:function(k,l,j){var h=j.length,i,g;for(i=0;i<h;i++){g=j[i];if(this.selected.get(g.id)){this.selected.replace(g)}}},getCount:function(){return this.selected.getCount()},onUpdate:Ext.emptyFn,destroy:function(){var b=this;b.clearSelections();b.bindStore(null);b.selected=Ext.destroy(b.selected);Ext.mixin.Observable.prototype.destroy.call(this)},onStoreUpdate:Ext.emptyFn,onIdChanged:function(f,g,h,e){this.selected.updateKey(g,h)},onStoreRefresh:function(){this.updateSelectedInstances(this.selected)},updateSelectedInstances:function(t){var p=this,n=p.getStore(),o=p.lastSelected,x=0,v=p.pruneRemovedOnRefresh(),q,w,s,i,u,r;if(n.isBufferedStore){return}q=t.getRange();w=q.length;if(o){p.lastSelected=n.getById(o.id);r=p.lastSelected!==o}p.refreshing=true;for(s=0;s<w;++s){i=q[s];u=n.getById(i.id);if(u){if(u!==i){t.replace(u)}}else{if(v){t.remove(i);++x}}}p.refreshing=false;p.maybeFireSelectionChange(x>0);if(r){p.fireEvent("lastselectedchanged",p,p.getSelection(),p.lastSelected)}},pruneRemovedOnRefresh:function(){return this.pruneRemoved},onStoreLoad:Ext.emptyFn,onSelectChange:function(h,k,l,i){var j=this,g=k?"select":"deselect";if((l||j.fireEvent("before"+g,j,h))!==false&&i()!==false){if(!l){j.fireEvent(g,j,h)}}},onEditorKey:Ext.emptyFn,beforeViewRender:function(b){Ext.Array.include(this.views||(this.views=[]),b)},onHeaderClick:Ext.emptyFn,resolveListenerScope:function(f){var e=this.view,d;if(e){d=e.resolveSatelliteListenerScope(this,f)}return d||Ext.mixin.Observable.prototype.resolveListenerScope.call(this,f)},bindComponent:Ext.emptyFn,privates:{onBeforeNavigate:Ext.privateFn,selectWithEventMulti:function(q,o,u){var i=this,t=o.shiftKey,x=o.ctrlKey,v=t?(i.getSelectionStart()):null,s=i.getSelection(),p=s.length,w,r,e;if(t&&v){i.selectRange(v,q,x)}else{if(x&&u){if(i.allowDeselect){i.doDeselect(q,false)}}else{if(x){i.doSelect(q,true,false)}else{if(u&&!t&&!x&&p>1){if(i.allowDeselect){w=[];for(r=0;r<p;++r){e=s[r];if(e!==q){w.push(e)}}i.doDeselect(w)}}else{if(!u){i.doSelect(q,false)}}}}}},selectWithEventSimple:function(e,f,d){if(d){this.doDeselect(e)}else{this.doSelect(e,true)}},selectWithEventSingle:function(e,h,j){var i=this,g=i.allowDeselect;if(g&&!h.ctrlKey){g=i.toggleOnClick}if(g&&j){i.doDeselect(e)}else{i.doSelect(e,false)}}}},1,0,0,0,["selection.abstract"],[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder],[Ext.mixin.Factoryable.prototype.mixinId||Ext.mixin.Factoryable.$className,Ext.mixin.Factoryable]],[Ext.selection,"Model",Ext,"AbstractSelectionModel"],0));(Ext.cmd.derive("Ext.selection.DataViewModel",Ext.selection.Model,{deselectOnContainerClick:true,bindComponent:function(e){var f=this,d;if(f.view!==e){if(f.view){f.navigationModel=null;Ext.destroy(f.viewListeners,f.navigationListeners)}f.view=e;if(e){d=f.getViewListeners();d.scope=f;d.destroyable=true;f.navigationModel=e.getNavigationModel();f.viewListeners=e.on(d);f.navigationListeners=f.navigationModel.on({navigate:f.onNavigate,scope:f,destroyable:true})}}},getViewListeners:function(){var d=this,c={};c[d.view.triggerCtEvent]=d.onContainerClick;return c},onUpdate:function(c){var d=this.view;if(d&&this.isSelected(c)){d.onItemSelect(c)}},onContainerClick:function(){if(this.deselectOnContainerClick){this.deselectAll()}},onSelectChange:function(i,m,n,k){var l=this,j=l.view,o=m?"select":"deselect",p=l.store.indexOf(i);if((n||l.fireEvent("before"+o,l,i,p))!==false&&k()!==false){if(j){if(m){j.onItemSelect(i)}else{j.onItemDeselect(i)}}if(!n){l.fireEvent(o,l,i,p)}}},destroy:function(){this.bindComponent();Ext.destroy(this.keyNav);Ext.selection.Model.prototype.destroy.call(this)}},0,0,0,0,["selection.dataviewmodel"],0,[Ext.selection,"DataViewModel"],0));(Ext.cmd.derive("Ext.view.NavigationModel",Ext.Base,{config:{store:null},focusCls:"x-view-item-focused",constructor:function(){this.mixins.observable.constructor.call(this)},bindComponent:function(b){if(this.view!==b){this.view=b;this.bindView(b)}},bindView:function(f){var h=this,g=f.dataSource,e;h.initKeyNav(f);if(!g.isEmptyStore){h.setStore(g)}e=h.getViewListeners();e.destroyable=true;h.viewListeners=h.viewListeners||[];h.viewListeners.push(f.on(e))},updateStore:function(b){this.mixins.storeholder.bindStore.apply(this,[b])},getViewListeners:function(){var b=this;return{containermousedown:b.onContainerMouseDown,itemmousedown:b.onItemMouseDown,itemclick:b.onItemClick,itemcontextmenu:b.onItemMouseDown,scope:b}},initKeyNav:function(d){var c=this;c.keyNav=new Ext.util.KeyNav({target:d,ignoreInputFields:true,eventName:"itemkeydown",defaultEventAction:"stopEvent",processEvent:c.processViewEvent,up:c.onKeyUp,down:c.onKeyDown,right:c.onKeyRight,left:c.onKeyLeft,pageDown:c.onKeyPageDown,pageUp:c.onKeyPageUp,home:c.onKeyHome,end:c.onKeyEnd,space:c.onKeySpace,enter:c.onKeyEnter,A:{ctrl:true,handler:c.onSelectAllKeyPress},scope:c})},processViewEvent:function(f,g,h,j,i){return i},addKeyBindings:function(b){this.keyNav.addBindings(b)},enable:function(){this.keyNav.enable();this.disabled=false},disable:function(){this.keyNav.disable();this.disabled=true},onContainerMouseDown:function(d,c){if(c.pointerType==="mouse"&&Ext.getScrollbarSize().width){if(!d.el.getClientRegion().contains(c.getPoint())){c.preventDefault()}}},onItemMouseDown:function(f,g,h,i,j){if(j.pointerType!=="touch"){this.setPosition(i)}},onItemClick:function(j,f,h,i,g){if(this.record===f){this.fireNavigateEvent(g)}else{this.setPosition(i,g)}},setPosition:function(r,n,k,q){var m=this,l=m.view,p=l.getSelectionModel(),t=l.dataSource,o,s;if(r==null||!l.all.getCount()){m.record=m.recordIndex=null}else{if(typeof r==="number"){s=Math.max(Math.min(r,t.getCount()-1),0);o=t.getAt(r)}else{if(r.isEntity){o=t.getById(r.id);s=t.indexOf(o);if(s===-1){o=t.getAt(0);s=0}}else{if(r.tagName){o=l.getRecord(r);s=t.indexOf(o)}else{o=s=null}}}}if(o===m.record){m.recordIndex=s;return m.focusPosition(s)}if(m.item){m.item.removeCls(m.focusCls)}m.previousRecordIndex=m.recordIndex;m.previousRecord=m.record;m.previousItem=m.item;m.recordIndex=s;m.record=o;q=q||m.record===m.lastFocused;if(o){m.focusPosition(m.recordIndex)}else{m.item=null}if(!k){p.fireEvent("focuschange",p,m.previousRecord,m.record)}if(!q&&n){m.fireNavigateEvent(n)}},focusPosition:function(d){var c=this;if(d!=null&&d!==-1){if(d.isEntity){d=c.view.dataSource.indexOf(d)}c.item=c.view.all.item(d);if(c.item){c.lastFocused=c.record;c.lastFocusedIndex=c.recordIndex;c.focusItem(c.item)}else{c.record=null}}else{c.item=null}},focusItem:function(b){b.addCls(this.focusCls);b.focus()},getPosition:function(){return this.record?this.recordIndex:null},getRecordIndex:function(){return this.recordIndex},getItem:function(){return this.item},getRecord:function(){return this.record},getLastFocused:function(){if(this.view.dataSource.indexOf(this.lastFocused)===-1){return null}return this.lastFocused},onKeyUp:function(c){var d=this.recordIndex-1;if(d<0){d=this.view.all.getCount()-1}this.setPosition(d,c)},onKeyDown:function(c){var d=this.recordIndex+1;if(d>this.view.all.getCount()-1){d=0}this.setPosition(d,c)},onKeyRight:function(c){var d=this.recordIndex+1;if(d>this.view.all.getCount()-1){d=0}this.setPosition(d,c)},onKeyLeft:function(c){var d=this.recordIndex-1;if(d<0){d=this.view.all.getCount()-1}this.setPosition(d,c)},onKeyPageDown:Ext.emptyFn,onKeyPageUp:Ext.emptyFn,onKeyHome:function(b){this.setPosition(0,b)},onKeyEnd:function(b){this.setPosition(this.view.all.getCount()-1,b)},onKeySpace:function(b){this.fireNavigateEvent(b)},onKeyEnter:function(b){b.stopEvent();b.view.fireEvent("itemclick",b.view,b.record,b.item,b.recordIndex,b)},onSelectAllKeyPress:function(b){this.fireNavigateEvent(b)},fireNavigateEvent:function(c){var d=this;d.fireEvent("navigate",{navigationModel:d,keyEvent:c,previousRecordIndex:d.previousRecordIndex,previousRecord:d.previousRecord,previousItem:d.previousItem,recordIndex:d.recordIndex,record:d.record,item:d.item})},destroy:function(){var b=this;b.setStore(null);Ext.destroy(b.viewListeners,b.keyNav);b.keyNav=b.viewListeners=b.dataSource=b.lastFocused=null;b.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,{inheritableStatics:{getRecord:function(b){return this.getBoundView(b).getRecord(b)},getBoundView:function(b){return Ext.getCmp(b.getAttribute("data-boundView"))}},defaultBindProperty:"store",renderBuffer:document.createElement("div"),statics:{updateDelay:200,queueRecordChange:function(s,q,x,C,B){var t=this,D=t.changeQueue||(t.changeQueue={}),w=x.internalId,u,y,v,A,i,r,z;u=D[w]||(D[w]={operation:C,record:x,data:{},views:[]});y=u.data;Ext.Array.include(u.views,s);if(B&&(v=B.length)){for(A=0;A<v;A++){i=B[A];r=x.data[i];if(y.hasOwnProperty(i)){if(x.isEqual(y[i],r)){delete y[i];z=true}}else{y[i]=r}}if(z&&!Ext.Object.getKeys(y).length){delete D[w]}}else{Ext.apply(y,x.data)}if(!t.flushQueueTask){t.flushQueueTask=Ext.util.TaskManager.newTask({run:Ext.global.requestAnimationFrame?Ext.Function.createAnimationFrame(t.onFlushTick,t):Ext.Function.bind(t.onFlushTick,t),interval:Ext.view.AbstractView.updateDelay,repeat:1})}t.flushQueueTask.start()},onFlushTick:function(){Ext.AnimationQueue.start(this.flushChangeQueue,this)},flushChangeQueue:function(){var n=this,m,j,k,o,l,p,i;if(Ext.isScrolling){n.flushQueueTask.start();return}k=n.changeQueue;this.changeQueue={};for(l in k){o=k[l];m=o.views;j=m.length;for(p=0;p<j;p++){i=m[p];if(!i.destroyed){i.handleUpdate(i.dataSource,o.record,o.operation,Ext.Object.getKeys(o.data))}}}Ext.AnimationQueue.stop(n.flushChangeQueue,n)}},config:{selection:null,store:"ext-empty-store",navigationModel:{type:"default"},selectionModel:{type:"dataviewmodel"}},publishes:["selection"],twoWayBindable:["selection"],throttledUpdate:false,deferInitialRefresh:false,itemCls:"x-dataview-item",loadingText:"Loading...",loadMask:true,loadingUseMsg:true,selectedItemCls:"x-item-selected",emptyText:"",deferEmptyText:true,trackOver:false,blockRefresh:false,preserveScrollOnRefresh:false,preserveScrollOnReload:false,ariaRole:"listbox",itemAriaRole:"option",last:false,focusable:true,tabIndex:0,triggerEvent:"itemclick",triggerCtEvent:"containerclick",refreshNeeded:true,updateSuspendCounter:0,addCmpEvents:Ext.emptyFn,constructor:function(b){if(b&&b.selModel){b.selectionModel=b.selModel}Ext.Component.prototype.constructor.call(this,b)},initComponent:function(){var i=this,f=Ext.isDefined,h=i.itemTpl,j={},g;if(h){if(Ext.isArray(h)){if(typeof h[h.length-1]!=="string"){h=h.slice(0);j=h.pop()}h=h.join("")}else{if(Ext.isObject(h)){j=Ext.apply(j,h.initialConfig);h=h.html}}if(!i.itemSelector){i.itemSelector="."+i.itemCls}h=Ext.String.format('<tpl for="."><div class="{0}" role="{2}">{1}</div></tpl>',i.itemCls,h,i.itemAriaRole);i.tpl=new Ext.XTemplate(h,j)}Ext.Component.prototype.initComponent.call(this);i.tpl=i.getTpl("tpl");if(i.overItemCls){i.trackOver=true}i.addCmpEvents();g=i.store=Ext.data.StoreManager.lookup(i.store||"ext-empty-store");if(!i.dataSource){i.dataSource=g}i.bindStore(g,true);i.getNavigationModel().bindComponent(this);if(!i.all){i.all=new Ext.CompositeElementLite()}i.scrollState={top:0,left:0};i.savedTabIndexAttribute="data-savedtabindex-"+i.id},getElConfig:function(){var b=this.mixins.renderable.getElConfig.call(this);if(this.focusable){b.tabIndex=0}return b},onRender:function(){var b=this.loadMask;Ext.Component.prototype.onRender.apply(this,arguments);if(b){this.createMask(b)}},beforeLayout:function(){var b=this;Ext.Component.prototype.beforeLayout.apply(this,arguments);if(b.refreshNeeded&&!b.pendingRefresh){if(b.refreshCounter){b.refresh()}else{b.doFirstRefresh(b.dataSource)}}},onMaskBeforeShow:function(){var c=this,d=c.loadingHeight;if(d&&d>c.getHeight()){c.hasLoadingHeight=true;c.oldMinHeight=c.minHeight;c.minHeight=d;c.updateLayout()}},onMaskHide:function(){var b=this;if(!b.destroying&&b.hasLoadingHeight){b.minHeight=b.oldMinHeight;b.updateLayout();delete b.hasLoadingHeight}},beforeRender:function(){Ext.Component.prototype.beforeRender.apply(this,arguments);this.getSelectionModel().beforeViewRender(this)},afterRender:function(){Ext.Component.prototype.afterRender.apply(this,arguments);if(this.focusable){this.focusEl=this.el}},getRefItems:function(){var c=this.loadMask,d=[];if(c&&c.isComponent){d.push(c)}return d},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(e){var d=this,f;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;f=d.getSelectionModel();if(e){f.select(e)}else{f.deselectAll()}d.ignoreNextSelection=false}},updateBindSelection:function(f,h){var g=this,e=null;if(!g.ignoreNextSelection){g.ignoreNextSelection=true;if(h.length){e=f.getLastSelected();g.hasHadSelection=true}if(g.hasHadSelection){g.setSelection(e)}g.ignoreNextSelection=false}},applySelectionModel:function(h,k){var l=this,m=l.grid,j,n,i;if(k){k.un({scope:l,selectionchange:l.updateBindSelection,lastselectedchanged:l.updateBindSelection,select:l.ariaSelect,deselect:l.ariaDeselect});Ext.destroy(l.selModelRelayer);h=Ext.Factory.selection(h)}else{if(h&&h.isSelectionModel){h.locked=l.disableSelection}else{if(l.simpleSelect){j="SIMPLE"}else{if(l.multiSelect){j="MULTI"}else{j="SINGLE"}}if(typeof h==="string"){h={type:h}}h=Ext.Factory.selection(Ext.apply({allowDeselect:l.allowDeselect||l.multiSelect,mode:j,locked:l.disableSelection},h))}}if(h.mode!=="SINGLE"){i=(m||l).ariaEl.dom;if(i){i.setAttribute("aria-multiselectable",true)}else{if(!m){n=l.ariaRenderAttributes||(l.ariaRenderAttributes={});n["aria-multiselectable"]=true}}}l.selModelRelayer=l.relayEvents(h,["selectionchange","beforeselect","beforedeselect","select","deselect","focuschange"]);h.on({scope:l,lastselectedchanged:l.updateBindSelection,selectionchange:l.updateBindSelection,select:l.ariaSelect,deselect:l.ariaDeselect});return h},updateSelectionModel:function(b){this.selModel=b},applyNavigationModel:function(b){return Ext.Factory.viewNavigation(b)},onFocusEnter:function(g){var h=this,e=h.getNavigationModel(),f;h.toggleChildrenTabbability(false);if(!h.itemFocused&&h.all.getCount()){f=e.getLastFocused();e.setPosition(f||0,g.event,null,!f);h.itemFocused=e.getPosition()!=null}if(h.itemFocused){this.el.dom.setAttribute("tabIndex","-1")}Ext.Component.prototype.onFocusEnter.call(this,g)},onFocusLeave:function(c){var d=this;if(d.itemFocused&&!d.refreshing){d.getNavigationModel().setPosition(null,c.event,null,true);d.itemFocused=false;d.el.dom.setAttribute("tabIndex",0)}Ext.Component.prototype.onFocusLeave.call(this,c)},ariaSelect:function(d,e){var f=this.getNode(e);if(f){f.setAttribute("aria-selected",true)}},ariaDeselect:function(d,e){var f=this.getNode(e);if(f){f.removeAttribute("aria-selected")}},onRemoved:function(b){Ext.Component.prototype.onRemoved.call(this,b);if(!b){this.onFocusLeave({})}},refresh:function(){var n=this,o=n.all,l=o.getCount(),p=n.refreshCounter,m,t,u,q=n.getSelectionModel(),r,s=p&&o.getCount()&&n.preserveScrollOnRefresh&&n.getScrollable(),v;if(!n.rendered||n.destroyed){return}if(!n.hasListeners.beforerefresh||n.fireEvent("beforerefresh",n)!==false){n.refreshing=true;r=n.saveFocusState();m=n.getTargetEl();u=n.getViewRange();t=m.dom;if(s){v=s.getPosition();if(!(v.x||v.y)){v=null}}if(p){n.clearViewEl();n.refreshCounter++}else{n.refreshCounter=1}n.tpl.append(m,n.collectData(u,o.startIndex||0));if(u.length<1){n.addEmptyText();o.clear()}else{n.collectNodes(m.dom);n.updateIndexes(0)}r();if(n.refreshSelmodelOnRefresh!==false){q.refresh()}n.refreshNeeded=false;n.refreshSize(o.getCount()!==l);n.fireEvent("refresh",n,u);if(s){s.scrollTo(v)}if(!n.viewReady){n.viewReady=true;n.fireEvent("viewready",n)}n.refreshing=false;n.refreshScroll();n.cleanupData()}},addEmptyText:function(){var c=this,d=c.getStore();if(c.emptyText&&!d.isLoading()&&(!c.deferEmptyText||c.refreshCounter>1||d.isLoaded())){c.emptyEl=Ext.core.DomHelper.insertHtml("beforeEnd",c.getTargetEl().dom,c.emptyText)}},getViewRange:function(){return this.dataSource.getRange()},refreshSize:function(g){var h=this,e=h.getSizeModel(),f=h.getScrollable();if(e.height.shrinkWrap||e.width.shrinkWrap||g){h.updateLayout()}else{if(h.touchScroll&&!h.bufferedRenderer){if(f){f.refresh()}else{h.on({boxready:h.refreshScroll,scope:h,single:true})}}}},afterFirstLayout:function(h,e){var g=this,f=g.getScrollable();if(f){f.on({scroll:g.onViewScroll,scrollend:g.onViewScrollEnd,scope:g,onFrame:!!Ext.global.requestAnimationFrame})}Ext.Component.prototype.afterFirstLayout.call(this,h,e)},clearViewEl:function(){var d=this,f=d.getTargetEl(),e=d.getNodeContainer()===f;d.clearEmptyEl();d.all.clear(!e);if(e){f.dom.innerHTML=""}},clearEmptyEl:function(){var b=this.emptyEl;if(b){Ext.removeNode(b)}this.emptyEl=null},onViewScroll:function(d,e,f){this.fireEvent("scroll",this,e,f)},onViewScrollEnd:function(d,e,f){this.fireEvent("scrollend",this,e,f)},saveScrollState:function(){var d=this,c=d.scrollState;if(d.rendered){c.left=d.getScrollX();c.top=d.getScrollY()}},restoreScrollState:function(){var d=this,c=d.scrollState;if(d.rendered){d.setScrollX(c.left);d.setScrollY(c.top)}},prepareData:function(j,k,l){var g,h,i;if(l){g=l.getAssociatedData();for(h in g){if(g.hasOwnProperty(h)){if(!i){j=Ext.Object.chain(j);i=true}j[h]=g[h]}}}return j},collectData:function(l,i){var j=[],k=0,h=l.length,g;for(;k<h;k++){g=l[k];j[k]=this.prepareData(g.data,i+k,g)}return j},cleanupData:Ext.emptyFn,bufferRender:function(o,n){var l=this,k=l.renderBuffer,i=document.createDocumentFragment(),p,j,m;l.tpl.overwrite(k,l.collectData(o,n));p=Ext.fly(k).query(l.getItemSelector());for(m=0,j=p.length;m<j;m++){i.appendChild(p[m])}return{fragment:i,children:p}},nodeContainerSelector:null,getNodeContainer:function(){var c=this.getTargetEl(),d=this.nodeContainerSelector;return d?c.down(d,true):c},getNodeContainerSelector:function(){return this.nodeContainerSelector},onUpdate:function(m,h,n,j,l){var k=this,i=l&&l.filtered;if(!i&&k.getNode(h)){if(k.throttledUpdate){k.statics().queueRecordChange(k,m,h,n,j)}else{k.handleUpdate.apply(k,arguments)}}},handleUpdate:function(l,h){var i=this,k,j,g=i.getSelectionModel();if(i.viewReady){k=i.dataSource.indexOf(h);if(k>-1){if(i.getNode(h)){j=i.bufferRender([h],k).children[0];i.all.replaceElement(k,j,true);i.updateIndexes(k,k);g.onUpdate(h);i.refreshSizePending=true;if(g.isSelected(h)){i.onItemSelect(h)}if(i.hasListeners.itemupdate){i.fireEvent("itemupdate",h,k,j)}return j}}}},onReplace:function(u,s,C,B){var w=this,v=w.all,y=w.getSelectionModel(),r=s,p,q,x,D,t,A,z;if(w.rendered){p=w.bufferRender(B,s,true);x=p.fragment;D=p.children;q=v.item(s);if(q){v.item(s).insertSibling(x,"before",true)}else{w.appendNodes(x)}v.insert(s,D);if(C.length){z=w.saveFocusState()}s+=B.length;A=s+C.length-1;t=v.removeRange(s,A,true);if(w.refreshSelmodelOnRefresh!==false){y.refresh()}w.updateIndexes(s);if(w.hasListeners.itemremove){w.fireEvent("itemremove",C,r,t,w)}if(w.hasListeners.itemadd){w.fireEvent("itemadd",B,r,D)}z();w.refreshSize()}},onAdd:function(k,l,j){var i=this,g,h=i.getSelectionModel();if(i.rendered){if(i.all.getCount()===0){i.refresh();g=i.all.slice()}else{g=i.doAdd(l,j);if(i.refreshSelmodelOnRefresh!==false){h.refresh()}i.updateIndexes(j);i.refreshSizePending=true}if(i.hasListeners.itemadd){i.fireEvent("itemadd",l,j,g)}}},appendNodes:function(e){var d=this.all,f=d.getCount();if(this.nodeContainerSelector){this.getNodeContainer().appendChild(e)}else{d.item(f-1).insertSibling(e,"after")}},doAdd:function(r,p){var n=this,k=n.bufferRender(r,p,true),o=k.fragment,s=k.children,m=n.all,q=m.getCount(),l=m.startIndex||0,t=m.endIndex||q-1;if(q===0||p>t){n.appendNodes(o)}else{if(p<=l){m.item(l).insertSibling(o,"before",true)}else{m.item(p).insertSibling(s,"before",true)}}m.insert(p,s);return s},onRemove:function(n,u,q){var p=this,i=p.all,w=p.hasListeners.itemremove,o,t,s,x,v,r;if(i.getCount()){if(p.dataSource.getCount()===0){if(w){p.fireEvent("itemremove",u,q,p.getNodes(q,q+u.length-1))}p.refresh()}else{r=p.saveFocusState();if(w){x=[]}for(t=u.length-1;t>=0;--t){s=u[t];o=q+t;if(x){v=i.item(o);x[t]=v?v.dom:undefined}if(i.item(o)){p.doRemove(s,o)}}if(w){p.fireEvent("itemremove",u,q,x,p)}r();p.updateIndexes(q)}p.refreshSizePending=true}},doRemove:function(d,c){this.all.removeElement(c,true)},saveFocusState:function(){var i=this,g=i.dataSource||i.store,f=i.getNavigationModel(),j=f.recordIndex,h=f.record;if(i.el.contains(Ext.Element.getActiveElement())){i.el.dom.focus();return function(){if(g.getCount()){j=Math.min(j,i.all.getCount()-1);f.setPosition(g.contains(h)?h:j,null,null,true)}}}return Ext.emptyFn},refreshNode:function(b){if(Ext.isNumber(b)){b=this.store.getAt(b)}this.onUpdate(this.dataSource,b)},updateIndexes:function(j,k){var h=this.all.elements,l,i=this.getViewRange(),m,n=this.id;j=j||0;k=k||((k===0)?0:(h.length-1));for(m=j;m<=k;m++){l=h[m];l.setAttribute("data-recordIndex",m);l.setAttribute("data-recordId",i[m].internalId);l.setAttribute("data-boundView",n)}},bindStore:function(f,j){var h=this,g=h.getSelectionModel(),i=h.getNavigationModel();g.bindStore(f);g.bindComponent(f?h:null);h.mixins.storeholder.bindStore.apply(h,arguments);i.setStore(f);if(f&&h.componentLayoutCounter){h.doFirstRefresh(f,!j)}},doFirstRefresh:function(e,f){var d=this;if(d.deferInitialRefresh&&!f){Ext.defer(d.doFirstRefresh,1,d,[e,true])}else{if(e&&!e.isLoading()){d.refresh()}}},onUnbindStore:function(b){this.setMaskBind(null);if(this.dataSource===b){this.dataSource=null}},onBindStore:function(e,f){var d=this;if(d.store.isBufferedStore){d.store.preserveScrollOnReload=d.preserveScrollOnReload}if(f&&f.isBufferedStore){delete f.preserveScrollOnReload}d.setMaskBind(e);if(!d.dataSource){d.dataSource=e}},setMaskBind:function(c){var d=this.loadMask;if(this.rendered&&d&&c&&!d.bindStore){d=this.createMask()}if(d&&d.bindStore){d.bindStore(c)}},getStoreListeners:function(){var b=this;return{refresh:b.onDataRefresh,replace:b.onReplace,add:b.onAdd,remove:b.onRemove,update:b.onUpdate,clear:b.onDataRefresh,beginupdate:b.onBeginUpdate,endupdate:b.onEndUpdate}},onBeginUpdate:function(){++this.updateSuspendCounter;Ext.suspendLayouts()},onEndUpdate:function(){var b=this;if(b.updateSuspendCounter){--b.updateSuspendCounter}Ext.resumeLayouts(true);if(b.refreshSizePending){b.refreshSize(true);b.refreshSizePending=false}},onDataRefresh:function(e){var f=this,d=f.preserveScrollOnRefresh;if(e.loadCount>f.lastRefreshLoadCount){f.preserveScrollOnRefresh=f.preserveScrollOnReLoad}f.refreshView();f.preserveScrollOnRefresh=d;f.lastRefreshLoadCount=e.loadCount},refreshView:function(){var c=this,d=c.blockRefresh||!c.rendered||c.up("[collapsed],[isCollapsingOrExpanding],[hidden]");if(d){c.refreshNeeded=true}else{if(c.bufferedRenderer){c.bufferedRenderer.refreshView()}else{c.refresh()}}},findItemByChild:function(b){return Ext.fly(b).findParent(this.getItemSelector(),this.getTargetEl())},findTargetByEvent:function(b){return b.getTarget(this.getItemSelector(),this.getTargetEl())},getSelectedNodes:function(){var e=[],f=this.getSelectionModel().getSelection(),g=f.length,h=0;for(;h<g;h++){e.push(this.getNode(f[h]))}return e},getRecords:function(j){var f=[],i=0,g=j.length,h=this.dataSource.data;for(;i<g;i++){f[f.length]=h.getByKey(j[i].getAttribute("data-recordId"))}return f},getRecord:function(b){return this.dataSource.getByInternalId(Ext.getDom(b).getAttribute("data-recordId"))},isSelected:function(c){var d=this.getRecord(c);return this.getSelectionModel().isSelected(d)},select:function(d,f,e){this.getSelectionModel().select(d,f,e)},deselect:function(c,d){this.getSelectionModel().deselect(c,d)},getNode:function(d){var f=this,e;if(f.rendered&&(d||d===0)){if(Ext.isString(d)){e=document.getElementById(d)}else{if(d.isModel){e=f.getNodeByRecord(d)}else{if(Ext.isNumber(d)){e=f.all.elements[d]}else{if(d.target&&d.target.nodeType){d=d.target}e=Ext.fly(d).findParent(f.itemSelector,f.getTargetEl())}}}}return e||null},getNodeByRecord:function(d){var c=this.store.indexOf(d);return this.all.elements[c]||null},getNodes:function(f,e){var d=this.all;if(e!==undefined){e++}return d.slice(f,e)},indexOf:function(b){b=this.getNode(b);if(!b&&b!==0){return -1}if(b.getAttribute("data-recordIndex")){return Number(b.getAttribute("data-recordIndex"))}return this.all.indexOf(b)},onDestroy:function(){var c=this,d=c.updateSuspendCounter;c.all.clear();c.emptyEl=null;Ext.Component.prototype.onDestroy.call(this);c.bindStore(null);c.store=c.dataSource=c.storeListeners=null;if(c.selModelRelayer){c.selModelRelayer.destroy();c.selModelRelayer=null}Ext.destroy(c.navigationModel,c.selectionModel);c.navigationModel=c.selectionModel=c.selModel=null;c.loadMask=null;while(d--){Ext.resumeLayouts(true)}},onItemSelect:function(d){var c=this.getNode(d);if(c){Ext.fly(c).addCls(this.selectedItemCls)}},onItemDeselect:function(d){var c=this.getNode(d);if(c){Ext.fly(c).removeCls(this.selectedItemCls)}},getItemSelector:function(){return this.itemSelector},addItemCls:function(d,e){var f=this.getNode(d);if(f){Ext.fly(f).addCls(e)}},removeItemCls:function(d,e){var f=this.getNode(d);if(f){Ext.fly(f).removeCls(e)}},setStore:function(d){var c=this;if(c.store!==d){if(c.isConfiguring){c.store=d}else{c.bindStore(d,false)}}},privates:{toggleChildrenTabbability:function(c){var d=this.getTargetEl();if(c){d.restoreTabbableState(true)}else{d.saveTabbableState({skipSelf:true,includeSaved:false})}},collectNodes:function(f){var d=this.all,e={role:this.itemAriaRole};d.fill(Ext.fly(f).query(this.getItemSelector()),d.startIndex||0);if(this.focusable){e.tabindex="-1"}d.set(e)},createMask:function(e){var g=this,h=g.getStore(),f;if(h&&!h.isEmptyStore&&!h.loadsSynchronously()){f={target:g,msg:g.loadingText,useMsg:g.loadingUseMsg,store:h};if(g.loadingCls){f.msgCls=g.loadingCls}if(Ext.isObject(e)){f=Ext.apply(f,e)}g.loadMask=new Ext.LoadMask(f);g.loadMask.on({scope:g,beforeshow:g.onMaskBeforeShow,hide:g.onMaskHide})}return g.loadMask},getOverflowEl:function(){return Ext.Component.prototype.getTargetEl.call(this)},getTargetEl:function(){return this.touchScroll?this.getScrollerEl():Ext.Component.prototype.getTargetEl.call(this)}}},1,0,["component","box"],{component:true,box:true},0,[[Ext.util.StoreHolder.prototype.mixinId||Ext.util.StoreHolder.$className,Ext.util.StoreHolder]],[Ext.view,"AbstractView"],function(){Ext.deprecate("extjs","4.0",function(){Ext.view.AbstractView.override({getSelectionCount:function(){if(Ext.global.console){Ext.global.console.warn("DataView: getSelectionCount will be removed, please interact with the Ext.selection.DataViewModel")}return this.selModel.getSelection().length},getSelectedRecords:function(){if(Ext.global.console){Ext.global.console.warn("DataView: getSelectedRecords will be removed, please interact with the Ext.selection.DataViewModel")}return this.selModel.getSelection()},select:function(f,e,g){if(Ext.global.console){Ext.global.console.warn("DataView: select will be removed, please access select through a DataView's SelectionModel, ie: view.getSelectionModel().select()")}var h=this.getSelectionModel();return h.select.apply(h,arguments)},clearSelections:function(){if(Ext.global.console){Ext.global.console.warn("DataView: clearSelections will be removed, please access deselectAll through DataView's SelectionModel, ie: view.getSelectionModel().deselectAll()")}var b=this.getSelectionModel();return b.deselectAll()}})})}));(Ext.cmd.derive("Ext.view.View",Ext.view.AbstractView,{alternateClassName:"Ext.DataView",inputTagRe:/^textarea$|^input$/i,keyEventRe:/^key/,inheritableStatics:{EventMap:{longpress:"LongPress",mousedown:"MouseDown",mouseup:"MouseUp",click:"Click",dblclick:"DblClick",contextmenu:"ContextMenu",mouseover:"MouseOver",mouseout:"MouseOut",mouseenter:"MouseEnter",mouseleave:"MouseLeave",keydown:"KeyDown",keyup:"KeyUp",keypress:"KeyPress",focus:"Focus"},TouchEventMap:{touchstart:"mousedown",touchend:"mouseup",tap:"click",doubletap:"dblclick"}},afterRender:function(){var b=this;Ext.view.AbstractView.prototype.afterRender.call(this);b.mon(b.el,{scope:b,click:b.handleEvent,longpress:b.handleEvent,mousedown:b.handleEvent,mouseup:b.handleEvent,dblclick:b.handleEvent,contextmenu:b.handleEvent,keydown:b.handleEvent,keyup:b.handleEvent,keypress:b.handleEvent,mouseover:b.handleMouseOver,mouseout:b.handleMouseOut})},getTargetSelector:function(){return this.dataRowSelector||this.itemSelector},handleMouseOver:function(g){var h=this,f=h.getTargetSelector(),e=g.getTarget(f);if(!h.destroyed){if(e){if(h.mouseOverItem!==e&&h.el.contains(e)){h.mouseOverItem=g.item=e;g.newType="mouseenter";h.handleEvent(g)}}else{h.handleEvent(g)}}},handleMouseOut:function(i){var k=this,e=k.getTargetSelector(),l=i.getTarget(e),j=i.getRelatedTarget(e),h;if((l===j)&&!(l===null&&j===null)){return}if(!k.destroyed){if(l&&(h=k.self.getBoundView(l))){i.item=l;i.newType="mouseleave";h.handleEvent(i);h.mouseOverItem=null}else{k.handleEvent(i)}}},handleEvent:function(f){var d=this,e=d.keyEventRe.test(f.type);f.view=d;f.item=f.getTarget(d.itemSelector);if(f.item){f.record=d.getRecord(f.item)}if(d.processUIEvent(f)!==false){d.processSpecialEvent(f)}if(e&&!Ext.fly(f.target).isInputField()){if(f.getKey()===f.SPACE||f.isNavKeyPress(true)){f.preventDefault()}}f.view=null},processItemEvent:Ext.emptyFn,processContainerEvent:Ext.emptyFn,processSpecialEvent:Ext.emptyFn,processUIEvent:function(p){if(!Ext.getBody().isAncestor(p.target)){return}var m=this,l=p.item,e=m.self,t=e.EventMap,o=e.TouchEventMap,q,r=p.record,n=p.type,s=n;if(p.newType){s=p.newType}if(l){s=o[s]||s;q=p.recordIndex=m.indexInStore?m.indexInStore(r):m.indexOf(l);if(!r||m.processItemEvent(r,l,q,p)===false){return false}if((m["onBeforeItem"+t[s]](r,l,q,p)===false)||(m.fireEvent("beforeitem"+s,m,r,l,q,p)===false)||(m["onItem"+t[s]](r,l,q,p)===false)){return false}m.fireEvent("item"+s,m,r,l,q,p)}else{n=o[n]||n;if((m.processContainerEvent(p)===false)||(m["onBeforeContainer"+t[n]](p)===false)||(m.fireEvent("beforecontainer"+n,m,p)===false)||(m["onContainer"+t[n]](p)===false)){return false}m.fireEvent("container"+n,m,p)}return true},onItemMouseEnter:function(f,h,e,g){if(this.trackOver){this.highlightItem(h)}},onItemMouseLeave:function(f,h,e,g){if(this.trackOver){this.clearHighlight()}},onItemMouseDown:Ext.emptyFn,onItemLongPress:Ext.emptyFn,onItemMouseUp:Ext.emptyFn,onItemFocus:Ext.emptyFn,onItemClick:Ext.emptyFn,onItemDblClick:Ext.emptyFn,onItemContextMenu:Ext.emptyFn,onItemKeyDown:Ext.emptyFn,onItemKeyUp:Ext.emptyFn,onItemKeyPress:Ext.emptyFn,onBeforeItemLongPress:Ext.emptyFn,onBeforeItemMouseDown:Ext.emptyFn,onBeforeItemMouseUp:Ext.emptyFn,onBeforeItemFocus:Ext.emptyFn,onBeforeItemMouseEnter:Ext.emptyFn,onBeforeItemMouseLeave:Ext.emptyFn,onBeforeItemClick:Ext.emptyFn,onBeforeItemDblClick:Ext.emptyFn,onBeforeItemContextMenu:Ext.emptyFn,onBeforeItemKeyDown:Ext.emptyFn,onBeforeItemKeyUp:Ext.emptyFn,onBeforeItemKeyPress:Ext.emptyFn,onContainerMouseDown:Ext.emptyFn,onContainerLongPress:Ext.emptyFn,onContainerMouseUp:Ext.emptyFn,onContainerMouseOver:Ext.emptyFn,onContainerMouseOut:Ext.emptyFn,onContainerClick:Ext.emptyFn,onContainerDblClick:Ext.emptyFn,onContainerContextMenu:Ext.emptyFn,onContainerKeyDown:Ext.emptyFn,onContainerKeyUp:Ext.emptyFn,onContainerKeyPress:Ext.emptyFn,onBeforeContainerMouseDown:Ext.emptyFn,onBeforeContainerLongPress:Ext.emptyFn,onBeforeContainerMouseUp:Ext.emptyFn,onBeforeContainerMouseOver:Ext.emptyFn,onBeforeContainerMouseOut:Ext.emptyFn,onBeforeContainerClick:Ext.emptyFn,onBeforeContainerDblClick:Ext.emptyFn,onBeforeContainerContextMenu:Ext.emptyFn,onBeforeContainerKeyDown:Ext.emptyFn,onBeforeContainerKeyUp:Ext.emptyFn,onBeforeContainerKeyPress:Ext.emptyFn,setHighlightedItem:function(h){var e=this,f=e.highlightedItem,g=e.overItemCls;if(f!==h){if(f){Ext.fly(f).removeCls(g);if(Ext.isIE8){e.repaintBorder(f);e.repaintBorder(f.nextSibling)}if(e.hasListeners.unhighlightitem){e.fireEvent("unhighlightitem",e,f)}}e.highlightedItem=h;if(h){Ext.fly(h).addCls(e.overItemCls);if(Ext.isIE8){e.repaintBorder(h.nextSibling)}if(e.hasListeners.highlightitem){e.fireEvent("highlightitem",e,h)}}}},highlightItem:function(b){this.setHighlightedItem(b)},clearHighlight:function(){this.setHighlightedItem(undefined)},handleUpdate:function(g,h){var i=this,j,l,k;if(i.viewReady){j=i.getNode(h);l=Ext.view.AbstractView.prototype.handleUpdate.apply(this,arguments);k=i.highlightedItem;if(k&&k===j){delete i.highlightedItem;if(l){i.highlightItem(l)}}}},refresh:function(){this.clearHighlight();Ext.view.AbstractView.prototype.refresh.apply(this,arguments)},focusNode:function(k){var m=this,n=Ext.fly(m.getNode(k)),o=m.el,j=0,i=0,l=o.getRegion(),p;l.bottom=l.top+o.dom.clientHeight;l.right=l.left+o.dom.clientWidth;if(n){p=n.getRegion();if(p.top<l.top){j=p.top-l.top}else{if(p.bottom>l.bottom){j=p.bottom-l.bottom}}if(p.left<l.left){i=p.left-l.left}else{if(p.right>l.right){i=p.right-l.right}}if(i||j){m.scrollBy(i,j,false)}n.set({tabIndex:-1});n.focus()}},privates:{repaintBorder:function(c){var d=this.getNode(c);if(d){d.className=d.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.toolbar.Item",Ext.Component,{alternateClassName:"Ext.Toolbar.Item",enable:Ext.emptyFn,disable:Ext.emptyFn,focus:Ext.emptyFn},0,["tbitem"],["component","box","tbitem"],{component:true,box:true,tbitem:true},["widget.tbitem"],0,[Ext.toolbar,"Item",Ext.Toolbar,"Item"],0));(Ext.cmd.derive("Ext.toolbar.TextItem",Ext.toolbar.Item,{alternateClassName:"Ext.Toolbar.TextItem",text:"",baseCls:"x-toolbar-text",ariaRole:null,beforeRender:function(){var b=this.text;Ext.toolbar.Item.prototype.beforeRender.call(this);if(b){this.html=b}},setText:function(b){this.update(b)}},0,["tbtext"],["component","box","tbitem","tbtext"],{component:true,box:true,tbitem:true,tbtext:true},["widget.tbtext"],0,[Ext.toolbar,"TextItem",Ext.Toolbar,"TextItem"],0));(Ext.cmd.derive("Ext.form.trigger.Spinner",Ext.form.trigger.Trigger,{cls:"x-form-trigger-spinner",spinnerCls:"x-form-spinner",spinnerUpCls:"x-form-spinner-up",spinnerDownCls:"x-form-spinner-down",focusCls:"x-form-spinner-focus",overCls:"x-form-spinner-over",clickCls:"x-form-spinner-click",focusFieldOnClick:true,vertical:true,bodyTpl:'<tpl if="vertical"><div class="{spinnerCls} {spinnerCls}-{ui} {spinnerUpCls} {spinnerUpCls}-{ui} {childElCls} {upDisabledCls}"></div></tpl><div class="{spinnerCls} {spinnerCls}-{ui} {spinnerDownCls} {spinnerDownCls}-{ui} {childElCls} {downDisabledCls}"></div><tpl if="!vertical"><div class="{spinnerCls} {spinnerCls}-{ui} {spinnerUpCls} {spinnerUpCls}-{ui} {childElCls} {upDisabledCls}"></div></tpl>',destroy:function(){var b=this;if(b.spinnerEl){b.spinnerEl.destroy();b.spinnerEl=b.upEl=b.downEl=null}Ext.form.trigger.Trigger.prototype.destroy.call(this)},getBodyRenderData:function(){var b=this;return{vertical:b.vertical,upDisabledCls:b.upEnabled?"":(b.spinnerUpCls+"-disabled"),downDisabledCls:b.downEnabled?"":(b.spinnerDownCls+"-disabled"),spinnerCls:b.spinnerCls,spinnerUpCls:b.spinnerUpCls,spinnerDownCls:b.spinnerDownCls}},getStateEl:function(){return this.spinnerEl},onClick:function(){var e=this,f=arguments,g=e.clickRepeater?f[1]:f[0],h=e.field;if(!h.readOnly&&!h.disabled){if(e.upEl.contains(g.target)){Ext.callback(e.upHandler,e.scope,[h,e,g],0,h)}else{if(e.downEl.contains(g.target)){Ext.callback(e.downHandler,e.scope,[h,e,g],0,h)}}}h.inputEl.focus()},onFieldRender:function(){var e=this,f=e.vertical,g,h;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);g=e.spinnerEl=e.el.select("."+e.spinnerCls,true);h=g.elements;e.upEl=f?h[0]:h[1];e.downEl=f?h[1]:h[0]},setUpEnabled:function(b){this.upEl[b?"removeCls":"addCls"](this.spinnerUpCls+"-disabled")},setDownEnabled:function(b){this.downEl[b?"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",scope:"this"}}},spinUpEnabled:true,spinDownEnabled:true,keyNavEnabled:true,mouseWheelEnabled:true,repeatTriggerClick:true,onSpinUp:Ext.emptyFn,onSpinDown:Ext.emptyFn,ariaRole:"spinbutton",applyTriggers:function(d){var f=this,e=d.spinner;e.upEnabled=f.spinUpEnabled;e.downEnabled=f.spinDownEnabled;return Ext.form.field.Text.prototype.applyTriggers.call(this,d)},onRender:function(){var c=this,d=c.getTrigger("spinner");(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).call(this);if(c.keyNavEnabled){c.spinnerKeyNav=new Ext.util.KeyNav(c.inputEl,{scope:c,up:c.spinUp,down:c.spinDown})}if(c.mouseWheelEnabled){c.mon(c.bodyEl,"mousewheel",c.onMouseWheel,c)}c.spinUpEl=d.upEl;c.spinDownEl=d.downEl},onSpinnerUpClick:function(){this.spinUp()},onSpinnerDownClick:function(){this.spinDown()},spinUp:function(){var b=this;if(b.spinUpEnabled&&!b.disabled){b.fireEvent("spin",b,"up");b.fireEvent("spinup",b);b.onSpinUp()}},spinDown:function(){var b=this;if(b.spinDownEnabled&&!b.disabled){b.fireEvent("spin",b,"down");b.fireEvent("spindown",b);b.onSpinDown()}},setSpinUpEnabled:function(e){var d=this,f=d.spinUpEnabled;d.spinUpEnabled=e;if(f!==e&&d.rendered){d.getTrigger("spinner").setUpEnabled(e)}},setSpinDownEnabled:function(e){var d=this,f=d.spinDownEnabled;d.spinDownEnabled=e;if(f!==e&&d.rendered){d.getTrigger("spinner").setDownEnabled(e)}},onMouseWheel:function(d){var e=this,f;if(e.hasFocus){f=d.getWheelDelta();if(f>0){e.spinUp()}else{if(f<0){e.spinDown()}}d.stopEvent()}},onDestroy:function(){Ext.destroyMembers(this,"spinnerKeyNav");Ext.form.field.Text.prototype.onDestroy.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"],0));(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 b=this;if(b.decimalSeparator===null){b.decimalSeparator=Ext.util.Format.decimalSeparator}Ext.form.field.Spinner.prototype.initComponent.call(this);b.setMinValue(b.minValue);b.setMaxValue(b.maxValue)},getSubTplData:function(n){var l=this,m=l.minValue,i=l.maxValue,j,h,k;j=Ext.form.field.Spinner.prototype.getSubTplData.call(this,n);h=j.inputElAriaAttributes;if(h){if(m>Number.NEGATIVE_INFINITY){h["aria-valuemin"]=m}if(i<Number.MAX_VALUE){h["aria-valuemax"]=i}k=l.getValue();if(k!=null&&k>=m&&k<=i){h["aria-valuenow"]=k}}return j},setValue:function(h){var e=this,g,f;if(e.hasFocus){g=e.getBind();f=g&&g.value;if(f&&f.syncing&&h===e.value){return e}}return Ext.form.field.Spinner.prototype.setValue.call(this,h)},getErrors:function(j){j=arguments.length>0?j:this.processRawValue(this.getRawValue());var f=this,h=Ext.form.field.Spinner.prototype.getErrors.call(this,j),i=Ext.String.format,g;if(j.length<1){return h}j=String(j).replace(f.decimalSeparator,".");if(isNaN(j)){h.push(i(f.nanText,j))}g=f.parseValue(j);if(f.minValue===0&&g<0){h.push(this.negativeText)}else{if(g<f.minValue){h.push(i(f.minText,f.minValue))}}if(g>f.maxValue){h.push(i(f.maxText,f.maxValue))}return h},rawToValue:function(c){var d=this.fixPrecision(this.parseValue(c));if(d===null){d=c||null}return d},valueToRaw:function(f){var d=this,e=d.decimalSeparator;f=d.parseValue(f);f=d.fixPrecision(f);f=Ext.isNumber(f)?f:parseFloat(String(f).replace(e,"."));f=isNaN(f)?"":String(f).replace(".",e);return f},getSubmitValue:function(){var d=this,c=Ext.form.field.Spinner.prototype.getSubmitValue.call(this);if(!d.submitLocaleSeparator){c=c.replace(d.decimalSeparator,".")}return c},onChange:function(c){var d=this.ariaEl.dom;this.toggleSpinners();Ext.form.field.Spinner.prototype.onChange.apply(this,arguments);if(d){if(Ext.isNumber(c)&&isFinite(c)){d.setAttribute("aria-valuenow",c)}else{d.removeAttribute("aria-valuenow")}}},toggleSpinners:function(){var h=this,g=h.getValue(),e=g===null,f;if(h.spinUpEnabled||h.spinUpDisabledByToggle){f=e||g<h.maxValue;h.setSpinUpEnabled(f,true)}if(h.spinDownEnabled||h.spinDownDisabledByToggle){f=e||g>h.minValue;h.setSpinDownEnabled(f,true)}},setMinValue:function(i){var f=this,g=f.ariaEl.dom,j,h,g;f.minValue=j=Ext.Number.from(i,Number.NEGATIVE_INFINITY);f.toggleSpinners();if(g){if(j>Number.NEGATIVE_INFINITY){g.setAttribute("aria-valuemin",j)}else{g.removeAttribute("aria-valuemin")}}if(f.disableKeyFilter!==true){h=f.baseChars+"";if(f.allowExponential){h+=f.decimalSeparator+"e+-"}else{if(f.allowDecimals){h+=f.decimalSeparator}if(f.minValue<0){h+="-"}}h=Ext.String.escapeRegex(h);f.maskRe=new RegExp("["+h+"]");if(f.autoStripChars){f.stripCharsRe=new RegExp("[^"+h+"]","gi")}}},setMaxValue:function(d){var e=this.ariaEl.dom,f;this.maxValue=f=Ext.Number.from(d,Number.MAX_VALUE);if(e){if(f<Number.MAX_VALUE){e.setAttribute("aria-valuemax",f)}else{e.removeAttribute("aria-valuemax")}}this.toggleSpinners()},parseValue:function(b){b=parseFloat(String(b).replace(this.decimalSeparator,"."));return isNaN(b)?null:b},fixPrecision:function(g){var h=this,e=isNaN(g),f=h.decimalPrecision;if(e||!g){return e?"":g}else{if(!h.allowDecimals||f<=0){f=0}}return parseFloat(Ext.Number.toFixed(parseFloat(g),f))},onBlur:function(f){var d=this,e=d.rawToValue(d.getRawValue());if(!Ext.isEmpty(e)){d.setValue(e)}Ext.form.field.Spinner.prototype.onBlur.call(this,f)},setSpinUpEnabled:function(c,d){Ext.form.field.Spinner.prototype.setSpinUpEnabled.apply(this,arguments);if(!d){delete this.spinUpDisabledByToggle}else{this.spinUpDisabledByToggle=!c}},onSpinUp:function(){var b=this;if(!b.readOnly){b.setSpinValue(Ext.Number.constrain(b.getValue()+b.step,b.minValue,b.maxValue))}},setSpinDownEnabled:function(c,d){Ext.form.field.Spinner.prototype.setSpinDownEnabled.apply(this,arguments);if(!d){delete this.spinDownDisabledByToggle}else{this.spinDownDisabledByToggle=!c}},onSpinDown:function(){var b=this;if(!b.readOnly){b.setSpinValue(Ext.Number.constrain(b.getValue()-b.step,b.minValue,b.maxValue))}},setSpinValue:function(c){var d=this;if(d.enforceMaxLength){if(d.fixPrecision(c).toString().length>d.maxLength){return}}d.setValue(c)}},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 c=this,d={scope:c,blur:c.onPagingBlur};d[Ext.supports.SpecialKeyDownRepeat?"keydown":"keypress"]=c.onPagingKeyDown;return[{itemId:"first",tooltip:c.firstText,overflowText:c.firstText,iconCls:"x-tbar-page-first",disabled:true,handler:c.moveFirst,scope:c},{itemId:"prev",tooltip:c.prevText,overflowText:c.prevText,iconCls:"x-tbar-page-prev",disabled:true,handler:c.movePrevious,scope:c},"-",c.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:c.inputItemWidth,margin:"-1 2 3 2",listeners:d},{xtype:"tbtext",itemId:"afterTextItem",html:Ext.String.format(c.afterPageText,1)},"-",{itemId:"next",tooltip:c.nextText,overflowText:c.nextText,iconCls:"x-tbar-page-next",disabled:true,handler:c.moveNext,scope:c},{itemId:"last",tooltip:c.lastText,overflowText:c.lastText,iconCls:"x-tbar-page-last",disabled:true,handler:c.moveLast,scope:c},"-",{itemId:"refresh",tooltip:c.refreshText,overflowText:c.refreshText,iconCls:"x-tbar-loading",disabled:c.store.isLoading(),handler:c.doRefresh,scope:c}]},initComponent:function(){var d=this,e=d.items||d.buttons||[],f;d.bindStore(d.store||"ext-empty-store",true);f=d.getPagingItems();if(d.prependButtons){d.items=e.concat(f)}else{d.items=f.concat(e)}delete d.buttons;if(d.displayInfo){d.items.push("->");d.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()},updateBarInfo:function(){var b=this;if(!b.store.isLoading()){b.calledInternal=true;b.onLoad();b.calledInternal=false}},updateInfo:function(){var j=this,l=j.child("#displayItem"),h=j.store,g=j.getPageData(),k,i;if(l){k=h.getCount();if(k===0){i=j.emptyMsg}else{i=Ext.String.format(j.displayMsg,g.fromRecord,g.toRecord,g.total)}l.setText(i)}},onLoad:function(){var l=this,o,i,p,j,m,k,n;m=l.store.getCount();k=m===0;if(!k){o=l.getPageData();i=o.currentPage;p=o.pageCount;if(i>p){if(p>0){l.store.loadPage(p)}else{l.getInputItem().reset()}return}j=Ext.String.format(l.afterPageText,isNaN(p)?1:p)}else{i=0;p=0;j=Ext.String.format(l.afterPageText,0)}Ext.suspendLayouts();n=l.child("#afterTextItem");if(n){n.update(j)}n=l.getInputItem();if(n){n.setDisabled(k).setValue(i)}l.setChildDisabled("#first",i===1||k);l.setChildDisabled("#prev",i===1||k);l.setChildDisabled("#next",i===p||k);l.setChildDisabled("#last",i===p||k);l.setChildDisabled("#refresh",false);l.updateInfo();Ext.resumeLayouts(true);if(!l.calledInternal){l.fireEvent("change",l,o||l.emptyPageData)}},setChildDisabled:function(e,d){var f=this.child(e);if(f){f.setDisabled(d)}},getPageData:function(){var c=this.store,d=c.getTotalCount();return{total:d,currentPage:c.currentPage,pageCount:Math.ceil(d/c.pageSize),fromRecord:((c.currentPage-1)*c.pageSize)+1,toRecord:Math.min(c.currentPage*c.pageSize,d)}},onLoadError:function(){this.setChildDisabled("#refresh",false)},getInputItem:function(){return this.child("#inputItem")},readPageFromInput:function(e){var h=this.getInputItem(),g=false,f;if(h){f=h.getValue();g=parseInt(f,10);if(!f||isNaN(g)){h.setValue(e.currentPage);return false}}return g},onPagingBlur:function(f){var d=this.getInputItem(),e;if(d){e=this.getPageData().currentPage;d.setValue(e)}},onPagingKeyDown:function(c,d){this.processKeyEvent(c,d)},processKeyEvent:function(j,k){var m=this,n=k.getKey(),e=m.getPageData(),i=k.shiftKey?10:1,l;if(n===k.RETURN){k.stopEvent();l=m.readPageFromInput(e);if(l!==false){l=Math.min(Math.max(1,l),e.pageCount);if(l!==e.currentPage&&m.fireEvent("beforechange",m,l)!==false){m.store.loadPage(l)}}}else{if(n===k.HOME||n===k.END){k.stopEvent();l=n===k.HOME?1:e.pageCount;j.setValue(l)}else{if(n===k.UP||n===k.PAGE_UP||n===k.DOWN||n===k.PAGE_DOWN){k.stopEvent();l=m.readPageFromInput(e);if(l){if(n===k.DOWN||n===k.PAGE_DOWN){i*=-1}l+=i;if(l>=1&&l<=e.pageCount){j.setValue(l)}}}}}},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 f=this,e=f.store,d=e.currentPage-1;if(d>0){if(f.fireEvent("beforechange",f,d)!==false){e.previousPage();return true}}return false},moveNext:function(){var g=this,f=g.store,h=g.getPageData().pageCount,e=f.currentPage+1;if(e<=h){if(g.fireEvent("beforechange",g,e)!==false){f.nextPage();return true}}return false},moveLast:function(){var c=this,d=c.getPageData().pageCount;if(c.fireEvent("beforechange",c,d)!==false){c.store.loadPage(d);return true}return false},doRefresh:function(){var d=this,e=d.store,f=e.currentPage;if(d.fireEvent("beforechange",d,f)!==false){e.loadPage(f);return true}return false},getStoreListeners:function(){return{beforeload:this.beforeLoad,load:this.onLoad,exception:this.onLoadError}},onBindStore:function(){if(this.rendered){this.updateBarInfo()}},onDestroy:function(){this.bindStore(null);Ext.toolbar.Toolbar.prototype.onDestroy.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.define("Ext.theme.neptune.toolbar.Paging",{override:"Ext.toolbar.Paging",defaultButtonUI:"plain-toolbar",inputItemWidth:40});Ext.define("Ext.theme.triton.toolbar.Paging",{override:"Ext.toolbar.Paging",inputItemWidth:50});(Ext.cmd.derive("Ext.form.field.Display",Ext.form.field.Base,{alternateClassName:["Ext.form.DisplayField","Ext.form.Display"],fieldSubTpl:['<div id="{id}" data-ref="inputEl" tabindex="-1" role="textbox" aria-readonly="true"',' aria-labelledby="{cmpId}-labelEl" {inputAttrTpl}','<tpl if="fieldStyle"> style="{fieldStyle}"</tpl>',' class="{fieldCls} {fieldCls}-{ui}">{value}</div>',{compiled:true,disableFormats:true}],ariaRole:undefined,focusable:false,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(b){if(b||b===0||b===false){return b}else{return""}},isDirty:function(){return false},isValid:Ext.returnTrue,validate:Ext.returnTrue,getRawValue:function(){return this.rawValue},setRawValue:function(c){var d=this;c=Ext.valueFrom(c,"");d.rawValue=c;if(d.rendered){d.inputEl.dom.innerHTML=d.getDisplayValue();d.updateLayout()}return c},getDisplayValue:function(){var e=this,d=this.getRawValue(),f;if(e.renderer){f=e.renderer.call(e.scope||e,d,e)}else{f=e.htmlEncode?Ext.util.Format.htmlEncode(d):d}return f},getSubTplData:function(c){var d=Ext.form.field.Base.prototype.getSubTplData.apply(this,arguments);d.value=this.getDisplayValue();return d}},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,autoEl:{tag:"div",unselectable:"on"},afterTpl:['<input id="{id}-fileInputEl" data-ref="fileInputEl" class="{childElCls} {inputCls}" ','type="file" size="1" name="{inputName}" role="{role}" ','<tpl if="tabIndex != null">tabindex="{tabIndex}"</tpl>',">"],keyHandlers:null,ariaEl:"fileInputEl",getAfterMarkup:function(b){return this.getTpl("afterTpl").apply(b)},getTemplateArgs:function(){var c=this,d;d=Ext.button.Button.prototype.getTemplateArgs.call(this);d.inputCls=c.inputCls;d.inputName=c.inputName||c.id;d.tabIndex=c.tabIndex||null;d.role=c.ariaRole;return d},afterRender:function(){var b=this;Ext.button.Button.prototype.afterRender.apply(this,arguments);b.fileInputEl.on({scope:b,change:b.fireChange,focus:b.onFileFocus,blur:b.onFileBlur})},fireChange:function(b){this.fireEvent("change",this,b,this.fileInputEl.dom.value)},createFileInput:function(d){var f=this,e=f.fileInputEl=f.el.createChild({name:f.inputName,id:!d?f.id+"-fileInputEl":undefined,cls:f.inputCls,tag:"input",type:"file",size:1,role:"button"});e.dom.setAttribute("data-componentid",f.id);e.on({scope:f,change:f.fireChange,focus:f.onFileFocus,blur:f.onFileBlur})},onFileFocus:function(c){var d=this.ownerCt;if(!this.hasFocus){this.onFocus(c)}if(d&&!d.hasFocus){d.onFocus(c)}},onFileBlur:function(c){var d=this.ownerCt;if(this.hasFocus){this.onBlur(c)}if(d&&d.hasFocus){d.onBlur(c)}},reset:function(d){var c=this;if(d){c.fileInputEl.destroy()}c.createFileInput(!d)},restoreInput:function(d){var c=this;c.fileInputEl.destroy();d=Ext.get(d);c.el.appendChild(d);c.fileInputEl=d},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}}},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 c=this,d=c.component;Ext.form.trigger.Trigger.prototype.onFieldRender.call(this);if(!d.isComponent&&!d.isWidget){d=Ext.widget(d)}c.component=d;d.render(c.el)},destroy:function(){var b=this.component;if(b.isComponent||b.isWidget){b.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(e){var d=this,f=(e||{}).filebutton;if(f){f.component=Ext.apply({xtype:"filebutton",ownerCt:d,id:d.id+"-button",ui:d.ui,disabled:d.disabled,text:d.buttonText,style:d.buttonOnly?"":d.getButtonMarginProp()+d.buttonMargin+"px",inputName:d.getName(),listeners:{scope:d,change:d.onFileChange}},d.buttonConfig);return Ext.form.field.Text.prototype.applyTriggers.call(this,e)}},getSubTplData:function(d){var c=Ext.form.field.Text.prototype.getSubTplData.call(this,d);c.tabIdx=-1;return c},onRender:function(){var i=this,h,j,g,f;(arguments.callee.$previous||Ext.form.field.Text.prototype.onRender).apply(this,arguments);h=i.inputEl;h.dom.name="";h.on("focus",i.onInputFocus,i);h.on("mousedown",i.onInputMouseDown,i);f=i.getTrigger("filebutton");j=i.button=f.component;i.fileInputEl=j.fileInputEl;g=j.el;if(i.buttonOnly){i.inputWrap.setDisplayed(false);i.shrinkWrap=3}f.el.setWidth(g.getWidth()+g.getMargin("lr"));if(Ext.isIE){i.button.getEl().repaint()}},getTriggerMarkup:function(){return'<td id="'+this.id+'-browseButtonWrap" data-ref="browseButtonWrap" role="presentation"></td>'},onFileChange:function(e,f,d){this.duringFileSelect=true;Ext.form.field.File.superclass.setValue.call(this,d);delete this.duringFileSelect},didValueChange:function(){return !!this.duringFileSelect},setEmptyText:Ext.emptyFn,setValue:Ext.emptyFn,reset:function(){var c=this,d=c.clearOnSubmit;if(c.rendered){c.button.reset(d);c.fileInputEl=c.button.fileInputEl;if(d){c.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 c=this,d;if(c.rendered){d=c.button.fileInputEl.dom;c.reset()}else{d=document.createElement("input");d.type="file";d.className="x-hidden-display";d.name=c.getName()}return d},restoreInput:function(c){if(this.rendered){var d=this.button;d.restoreInput(c);this.fileInputEl=d.fileInputEl}},onDestroy:function(){this.fileInputEl=this.button=null;Ext.form.field.Text.prototype.onDestroy.call(this)},getButtonMarginProp:function(){return"margin-left:"},onInputFocus:function(b){this.focus();if(Ext.isIE9m){this.fileInputEl.addCls("x-position-relative");this.fileInputEl.removeCls("x-position-relative")}},onInputMouseDown:function(b){b.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.tip.Tip",Ext.panel.Panel,{alternateClassName:"Ext.Tip",minWidth:40,maxWidth:500,shadow:"sides",defaultAlign:"tl-bl?",constrainPosition:true,autoRender:true,hidden:true,baseCls:"x-tip",focusOnToFront:false,maskOnDisable:false,closeAction:"hide",alwaysFramed:true,frameHeader:false,initComponent:function(){var b=this;b.floating=Ext.apply({},{shadow:b.shadow,constrain:b.constrainPosition},b.self.prototype.floating);Ext.panel.Panel.prototype.initComponent.apply(this,arguments);b.constrain=b.constrain||b.constrainPosition},showAt:function(c){var d=this;Ext.panel.Panel.prototype.showAt.apply(this,arguments);if(d.isVisible()){d.setPagePosition(c[0],c[1]);if(d.constrainPosition||d.constrain){d.doConstrain()}d.toFront(true)}},privates:{initDraggable:function(){var b=this;b.draggable={el:b.getDragEl(),delegate:b.header.el,constrain:b,constrainTo:b.el.dom.parentNode};Ext.Component.prototype.initDraggable.call(b)}},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,trackMouse:false,anchorToTarget:true,anchorOffset:0,targetCounter:0,quickShowInterval:250,hideAction:"hide",fadeOutDuration:1000,ariaRole:"tooltip",initComponent:function(){var b=this;Ext.tip.Tip.prototype.initComponent.apply(this,arguments);b.lastActive=new Date();b.setTarget(b.target);b.origAnchor=b.anchor},onRender:function(d,e){var f=this;Ext.tip.Tip.prototype.onRender.apply(this,arguments);f.anchorCls="x-tip-anchor-"+f.getAnchorPosition();f.anchorEl=f.el.createChild({role:"presentation",cls:"x-tip-anchor "+f.anchorCls})},setTarget:function(g){var e=this,f=Ext.get(g),h;if(e.target){h=Ext.get(e.target);if(Ext.supports.Touch){e.mun(h,"tap",e.onTargetOver,e)}else{e.mun(h,{mouseover:e.onTargetOver,mouseout:e.onTargetOut,mousemove:e.onMouseMove,scope:e})}}e.target=f;if(f){if(Ext.supports.Touch){e.mon(f,{tap:e.onTargetOver,scope:e})}else{e.mon(f,{mouseover:e.onTargetOver,mouseout:e.onTargetOut,mousemove:e.onMouseMove,scope:e})}}if(e.anchor){e.anchorTarget=e.target}},onMouseMove:function(g){var e=this,f,h;if(!e.target||e.target.contains(g.target)){f=e.delegate?g.getTarget(e.delegate):(e.triggerElement=true);if(f){e.targetXY=g.getXY();if(f===e.triggerElement){if(!e.hidden&&e.trackMouse){h=e.getTargetXY();if(e.constrainPosition){h=e.el.adjustForConstraints(h,e.el.parent())}e.setPagePosition(h)}}else{e.hide();e.lastActive=new Date(0);e.onTargetOver(g)}}else{if((!e.closable&&e.isVisible())&&e.autoHide!==false){e.delayHide()}}}},getTargetXY:function(){var r=this,w,x,n,z,s,p,v,o,q,y,t,u;if(r.delegate){r.anchorTarget=r.triggerElement}if(r.anchor){r.targetCounter++;x=r.getOffsets();n=(r.anchorToTarget&&!r.trackMouse)?r.getAlignToXY(r.anchorTarget,r.getAnchorAlign()):r.targetXY;z=Ext.Element.getViewportWidth()-5;s=Ext.Element.getViewportHeight()-5;p=document.documentElement;v=document.body;o=(p.scrollLeft||v.scrollLeft||0)+5;q=(p.scrollTop||v.scrollTop||0)+5;y=[n[0]+x[0],n[1]+x[1]];t=r.getSize();u=r.constrainPosition;r.anchorEl.removeCls(r.anchorCls);if(r.targetCounter<2&&u){if(y[0]<o){if(r.anchorToTarget){r.defaultAlign="l-r";if(r.mouseOffset){r.mouseOffset[0]*=-1}}r.anchor="left";return r.getTargetXY()}if(y[0]+t.width>z){if(r.anchorToTarget){r.defaultAlign="r-l";if(r.mouseOffset){r.mouseOffset[0]*=-1}}r.anchor="right";return r.getTargetXY()}if(y[1]<q){if(r.anchorToTarget){r.defaultAlign="t-b";if(r.mouseOffset){r.mouseOffset[1]*=-1}}r.anchor="top";return r.getTargetXY()}if(y[1]+t.height>s){if(r.anchorToTarget){r.defaultAlign="b-t";if(r.mouseOffset){r.mouseOffset[1]*=-1}}r.anchor="bottom";return r.getTargetXY()}}r.anchorCls="x-tip-anchor-"+r.getAnchorPosition();r.anchorEl.addCls(r.anchorCls);r.targetCounter=0;return y}else{w=r.getMouseOffset();return(r.targetXY)?[r.targetXY[0]+w[0],r.targetXY[1]+w[1]]:w}},calculateConstrainedPosition:function(f){var j=this,h,g,i;if(!f&&j.isContainedFloater()){h=j.isVisible();if(!h){j.el.show()}g=j.getTargetXY();if(!h){j.el.hide()}i=j.floatParent.getTargetEl().getViewRegion();g[0]-=i.left;g[1]-=i.top}else{g=j.callOverridden(arguments)}return g},getMouseOffset:function(){var d=this,c=d.anchor?[0,0]:[15,18];if(d.mouseOffset){c[0]+=d.mouseOffset[0];c[1]+=d.mouseOffset[1]}return c},fadeOut:function(){var b=this;b.el.fadeOut({duration:b.fadeOutDuration,callback:function(){b.hide();b.el.setOpacity("")}})},getAnchorPosition:function(){var c=this,d;if(c.anchor){c.tipAnchor=c.anchor.charAt(0)}else{d=c.defaultAlign.match(/^([a-z]+)-([a-z]+)(\?)?$/);c.tipAnchor=d[1].charAt(0)}switch(c.tipAnchor){case"t":return"top";case"b":return"bottom";case"r":return"right"}return"left"},getAnchorAlign:function(){switch(this.anchor){case"top":return"tl-bl";case"left":return"tl-tr";case"right":return"tr-tl";default:return"bl-tl"}},getOffsets:function(){var h=this,g,e,f=h.getAnchorPosition().charAt(0);if(h.anchorToTarget&&!h.trackMouse){switch(f){case"t":e=[0,9];break;case"b":e=[0,-13];break;case"r":e=[-13,0];break;default:e=[9,0];break}}else{switch(f){case"t":e=[-15-h.anchorOffset,30];break;case"b":e=[-19-h.anchorOffset,-13-h.el.dom.offsetHeight];break;case"r":e=[-15-h.el.dom.offsetWidth,-13-h.anchorOffset];break;default:e=[25,-13-h.anchorOffset];break}}g=h.getMouseOffset();e[0]+=g[0];e[1]+=g[1];return e},onTargetOver:function(g){var h=this,e=h.delegate,f;if(h.disabled||g.within(h.target.dom,true)){return}f=e?g.getTarget(e):true;if(f){h.triggerElement=f;h.triggerEvent=g;h.clearTimer("hide");h.targetXY=g.getXY();h.delayShow()}},delayShow:function(f){var e=this,d=e.el&&(f===false||!e.trackMouse)&&e.getTargetXY();if(e.hidden&&!e.showTimer){if(Ext.Date.getElapsed(e.lastActive)<e.quickShowInterval){e.show()}else{e.showTimer=Ext.defer(e.showFromDelay,e.showDelay,e,[d])}}else{if(!e.hidden&&e.autoHide!==false){e.show(d)}}},showFromDelay:function(c){var d=this;if(d.disabled){return}d.fromDelayShow=true;d.show(c);delete d.fromDelayShow},onShowVeto:function(){Ext.tip.Tip.prototype.onShowVeto.call(this);delete this.triggerElement;this.clearTimer("show")},onTargetOut:function(g){var e=this,f=e.triggerElement,h=f===true?e.target:f;if(e.disabled||!f||g.within(h,true)){return}if(e.showTimer){e.clearTimer("show");e.triggerElement=null}if(e.autoHide!==false){e.delayHide()}},delayHide:function(){var b=this;if(!b.hidden&&!b.hideTimer){b.hideTimer=Ext.defer(b[b.hideAction],b.hideDelay,b)}},hide:function(){var b=this;b.clearTimer("dismiss");b.lastActive=new Date();if(b.anchorEl){b.anchorEl.hide()}Ext.tip.Tip.prototype.hide.apply(this,arguments);delete b.triggerElement},show:function(c){var d=this;Ext.tip.Tip.prototype.show.call(this);if(this.hidden===false){if(d.anchor){d.anchor=d.origAnchor}if(!d.calledFromShowAt){d.showAt(c||d.getTargetXY())}}},showAt:function(c){var d=this;d.lastActive=new Date();d.clearTimers();d.calledFromShowAt=true;if(!d.isVisible()){Ext.tip.Tip.prototype.showAt.apply(this,arguments)}if(d.isVisible()){d.setPagePosition(c[0],c[1]);if(d.constrainPosition||d.constrain){d.doConstrain()}d.toFront(true);d.el.syncUnderlays();if(d.dismissDelay&&d.autoHide!==false){d.dismissTimer=Ext.defer(d.hide,d.dismissDelay,d)}}delete d.calledFromShowAt},syncAnchor:function(){var h=this,f,e,g;switch(h.tipAnchor.charAt(0)){case"t":f="b";e="tl";g=[20+h.anchorOffset,1];break;case"r":f="l";e="tr";g=[-1,12+h.anchorOffset];break;case"b":f="t";e="bl";g=[20+h.anchorOffset,-1];break;default:f="r";e="tl";g=[1,12+h.anchorOffset];break}h.anchorEl.alignTo(h.el,f+"-"+e,g);h.anchorEl.setStyle("z-index",parseInt(h.el.getZIndex(),10)||0+1).setVisibilityMode(Ext.Element.DISPLAY)},afterSetPosition:function(e,f){var d=this;Ext.tip.Tip.prototype.afterSetPosition.apply(this,arguments);if(d.anchor){d.syncAnchor();if(!d.anchorEl.isVisible()){d.anchorEl.show()}}else{d.anchorEl.hide()}},_timerNames:{},clearTimer:function(g){var f=this,i=f._timerNames,j=i[g]||(i[g]=g+"Timer"),h=f[j];if(h){clearTimeout(h);f[j]=null}},clearTimers:function(){var b=this;b.clearTimer("show");b.clearTimer("dismiss");b.clearTimer("hide")},onShow:function(){var b=this;Ext.tip.Tip.prototype.onShow.call(this);b.mon(Ext.getDoc(),"mousedown",b.onDocMouseDown,b)},onHide:function(){var b=this;Ext.tip.Tip.prototype.onHide.call(this);b.mun(Ext.getDoc(),"mousedown",b.onDocMouseDown,b)},onDocMouseDown:function(c){var d=this;if(!d.closable&&!c.within(d.el.dom)){d.disable();Ext.defer(d.doEnable,100,d)}},doEnable:function(){if(!this.destroyed){this.enable()}},onDisable:function(){Ext.tip.Tip.prototype.onDisable.call(this);this.clearTimers();this.hide()},beforeDestroy:function(){var b=this;b.clearTimers();Ext.destroy(b.anchorEl);delete b.anchorEl;delete b.target;delete b.anchorTarget;delete b.triggerElement;Ext.tip.Tip.prototype.beforeDestroy.call(this)},onDestroy:function(){Ext.getDoc().un("mousedown",this.onDocMouseDown,this);Ext.tip.Tip.prototype.onDestroy.call(this)}},0,["tooltip"],["component","box","container","panel","tip","tooltip"],{component:true,box:true,container:true,panel:true,tip:true,tooltip:true},["widget.tooltip"],0,[Ext.tip,"ToolTip",Ext,"ToolTip"],0));(Ext.cmd.derive("Ext.tip.QuickTip",Ext.tip.ToolTip,{alternateClassName:"Ext.QuickTip",interceptTitles:false,title:"&#160;",tagConfig:{namespace:"data-",attribute:"qtip",width:"qwidth",target:"target",title:"qtitle",hide:"hide",cls:"qclass",align:"qalign",anchor:"anchor",showDelay:"qshowDelay",hideAction:"hideAction",anchorTarget:"anchorTarget"},isQuickTip:true,shrinkWrapDock:true,initComponent:function(){var b=this;b.target=b.target||Ext.getDoc();b.targets=b.targets||{};Ext.tip.ToolTip.prototype.initComponent.call(this)},setTagConfig:function(b){this.tagConfig=Ext.apply({},b);delete this.tagConfig.attr},text:null,register:function(n){var j=Ext.isArray(n)?n:arguments,m=0,i=j.length,k,h,l;for(;m<i;m++){n=j[m];k=n.target;if(k){if(Ext.isArray(k)){for(h=0,l=k.length;h<l;h++){this.targets[Ext.id(k[h])]=n}}else{this.targets[Ext.id(k)]=n}}}},unregister:function(b){delete this.targets[Ext.id(b)]},cancelShow:function(e){var d=this,f=d.activeTarget;e=Ext.get(e).dom;if(d.isVisible()){if(f&&f.el===e){d.hide()}}else{if(f&&f.el===e){d.clearTimer("show")}}},getTipCfg:function(j,k){var l=j.title,g=this.tagConfig,h=g.attr||(g.attr=g.namespace+g.attribute),i;if(this.interceptTitles&&l&&Ext.isString(l)){j.setAttribute(h,l);j.removeAttribute("title");return{text:l}}else{j=Ext.fly(j).findParent(function(a){return(i=a.getAttribute(h))});if(j){return{target:j,text:i}}}},onTargetOver:function(b){this.doTargetOver(b.getTarget(this.delegate),null,b)},doTargetOver:function(x,q,E){var w=this,F,B,A,D,y,v,C,t,z,r,u,s;if(w.disabled){return}if(typeof x==="string"){x=Ext.getDom(x)}w.targetXY=q||(E?E.getXY():Ext.fly(x).getXY());if(!x||x.nodeType!==1||x===document.documentElement||x===document.body){return}if(w.activeTarget&&((x===w.activeTarget.el)||Ext.fly(w.activeTarget.el).contains(x))){if(w.targetTextEmpty()){w.onShowVeto();delete w.activeTarget}else{w.clearTimer("hide");w.show()}return}if(x){z=w.targets;for(s in z){if(z.hasOwnProperty(s)){u=z[s];r=Ext.fly(u.target);if(r&&(r.dom===x||r.contains(x))){D=r.dom;break}}}if(D){w.activeTarget=w.targets[D.id];w.activeTarget.el=x;w.anchor=w.activeTarget.anchor;if(w.anchor){w.anchorTarget=x}F=parseInt(w.activeTarget.showDelay,10);if(F){A=w.showDelay;w.showDelay=F}w.delayShow();if(F){w.showDelay=A}if(!(B=w.activeTarget.hideAction)){delete w.hideAction}else{w.hideAction=B}return}}D=Ext.fly(x,"_quicktip-target");y=w.tagConfig;v=y.namespace;C=w.getTipCfg(x,E);if(C){if(C.target){x=C.target;D=Ext.fly(x,"_quicktip-target")}t=D.getAttribute(v+y.hide);w.activeTarget={el:x,text:C.text,width:+D.getAttribute(v+y.width)||null,autoHide:t!=="user"&&t!=="false",title:D.getAttribute(v+y.title),cls:D.getAttribute(v+y.cls),align:D.getAttribute(v+y.align),showDelay:parseInt(D.getAttribute(v+y.showDelay)||0,10),hideAction:D.getAttribute(v+y.hideAction),anchorTarget:D.getAttribute(v+y.anchorTarget)};if(!w.initialConfig.hasOwnProperty("anchor")){w.anchor=D.getAttribute(v+y.anchor)}if(w.anchor&&!w.initialConfig.hasOwnProperty("anchorTarget")){w.anchorTarget=w.activeTarget.anchorTarget||x}F=parseInt(w.activeTarget.showDelay,10);if(F){A=w.showDelay;w.showDelay=F}w.delayShow();if(F){w.showDelay=A}}},onTargetOut:function(h){var j=this,i=j.activeTarget,g,e;if(i&&h.within(j.activeTarget.el)&&!j.getTipCfg(h.getTarget(),h)){return}j.clearTimer("show");delete j.activeTarget;if(j.autoHide!==false){g=i&&parseInt(i.hideDelay,10);if(g){e=j.hideDelay;j.hideDelay=g}j.delayHide();if(g){j.hideDelay=e}}},targetTextEmpty:function(){var j=this,i=j.activeTarget,g=j.tagConfig,f,h;if(i){f=i.el;if(f){h=f.getAttribute(g.namespace+g.attribute);if(!h&&!j.targets[Ext.id(i.target)]){return true}}}return false},show:function(){var c=this,d=c.fromDelayShow;if(d&&c.targetTextEmpty()){c.onShowVeto();delete c.activeTarget;return}Ext.tip.ToolTip.prototype.show.apply(this,arguments)},showAt:function(j){var l=this,k=l.activeTarget,i=l.header,g,h;if(k){if(!l.rendered){l.render(Ext.getBody());l.activeTarget=k}l.suspendLayouts();if(k.title){l.setTitle(k.title);i.show()}else{if(i){i.hide()}}l.update(k.text);l.autoHide=k.autoHide;g=k.dismissDelay;l.dismissDelay=Ext.isNumber(g)?g:l.dismissDelay;if(k.mouseOffset){j[0]+=k.mouseOffset[0];j[1]+=k.mouseOffset[1]}h=l.lastCls;if(h){l.removeCls(h);delete l.lastCls}h=k.cls;if(h){l.addCls(h);l.lastCls=h}l.setWidth(k.width);if(l.anchor){l.constrainPosition=false}else{if(k.align){j=l.getAlignToXY(k.el,k.align);l.constrainPosition=false}else{l.constrainPosition=true}}l.resumeLayouts(true)}Ext.tip.ToolTip.prototype.showAt.call(this,j)},showByTarget:function(k){var n=this,l,h,m,i,j;l=n.targets[k.id];if(l){n.activeTarget=l;n.activeTarget.el=Ext.get(k).dom;n.anchor=n.activeTarget.anchor;h=k.getSize();m=k.getXY();n.showAt([m[0],m[1]+h.height])}},hide:function(){delete this.activeTarget;Ext.tip.ToolTip.prototype.hide.call(this)}},0,["quicktip"],["component","box","container","panel","tip","tooltip","quicktip"],{component:true,box:true,container:true,panel:true,tip:true,tooltip:true,quicktip:true},["widget.quicktip"],0,[Ext.tip,"QuickTip",Ext,"QuickTip"],0));(Ext.cmd.derive("Ext.tip.QuickTipManager",Ext.Base,{singleton:true,alternateClassName:"Ext.QuickTips",disabled:false,init:function(j,g){var k=this;if(!k.tip){if(!Ext.isReady){Ext.onInternalReady(function(){Ext.tip.QuickTipManager.init(j,g)});return false}var h=Ext.apply({disabled:k.disabled,id:"ext-quicktips-tip"},g),l=h.className,i=h.xtype;if(l){delete h.className}else{if(i){l="widget."+i;delete h.xtype}}if(j!==false){h.renderTo=document.body}k.tip=Ext.create(l||"Ext.tip.QuickTip",h);Ext.quickTipsActive=true}},destroy:function(){Ext.destroy(this.tip);this.tip=undefined},ddDisable:function(){var d=this,c=d.tip;if(c&&!d.disabled){c.disable()}},ddEnable:function(){var d=this,c=d.tip;if(c&&!d.disabled){c.enable()}},enable:function(){var d=this,c=d.tip;if(c){c.enable()}d.disabled=false},disable:function(){var d=this,c=d.tip;if(c){c.disable()}d.disabled=true},isEnabled:function(){var b=this.tip;return b!==undefined&&!b.disabled},getQuickTip:function(){return this.tip},register:function(){var b=this.tip;b.register.apply(b,arguments)},unregister:function(){var b=this.tip;b.unregister.apply(b,arguments)},tips:function(){var b=this.tip;b.register.apply(b,arguments)}},0,0,0,0,0,0,[Ext.tip,"QuickTipManager",Ext,"QuickTips"],0));(Ext.cmd.derive("Ext.picker.Color",Ext.Component,{alternateClassName:"Ext.ColorPalette",focusable:true,componentCls:"x-color-picker",selectedCls:"x-color-picker-selected",itemCls:"x-color-picker-item",value:null,clickEvent:"click",allowReselect:false,colors:["000000","993300","333300","003300","003366","000080","333399","333333","800000","FF6600","808000","008000","008080","0000FF","666699","808080","FF0000","FF9900","99CC00","339966","33CCCC","3366FF","800080","969696","FF00FF","FFCC00","FFFF00","00FF00","00FFFF","00CCFF","993366","C0C0C0","FF99CC","FFCC99","FFFF99","CCFFCC","CCFFFF","99CCFF","CC99FF","FFFFFF"],colorRe:/(?:^|\s)color-(.{6})(?:\s|$)/,renderTpl:['<tpl for="colors">','<a href="#" role="button" class="color-{.} {parent.itemCls}" hidefocus="on">','<span class="{parent.itemCls}-inner" style="background:#{.}">&#160;</span>',"</a>","</tpl>"],initComponent:function(){var b=this;Ext.Component.prototype.initComponent.apply(this,arguments);if(b.handler){b.on("select",b.handler,b.scope,true)}},initRenderData:function(){var b=this;return Ext.apply(Ext.Component.prototype.initRenderData.call(this),{itemCls:b.itemCls,colors:b.colors})},onRender:function(){var c=this,d=c.clickEvent;Ext.Component.prototype.onRender.apply(this,arguments);c.mon(c.el,d,c.handleClick,c,{delegate:"a"});if(d!=="click"){c.mon(c.el,"click",Ext.emptyFn,c,{delegate:"a",stopEvent:true})}},afterRender:function(){var d=this,c;Ext.Component.prototype.afterRender.apply(this,arguments);if(d.value){c=d.value;d.value=null;d.select(c,true)}},handleClick:function(f){var d=this,e;f.stopEvent();if(!d.disabled){e=f.currentTarget.className.match(d.colorRe)[1];d.select(e.toUpperCase())}},select:function(h,i){var l=this,j=l.selectedCls,k=l.value,n,m;h=h.replace("#","");if(!l.rendered){l.value=h;return}if(h!==k||l.allowReselect){n=l.el;if(l.value){m=n.down("a.color-"+k,true);Ext.fly(m).removeCls(j)}m=n.down("a.color-"+h,true);Ext.fly(m).addCls(j);l.value=h;if(i!==true){l.fireEvent("select",l,h)}}},clear:function(){var d=this,f=d.value,e;if(f&&d.rendered){e=d.el.down("a.color-"+f,true);Ext.fly(e).removeCls(d.selectedCls)}d.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(d){var e=this.owner,f;if(Ext.isGecko){f=e.textareaEl.dom;this.lastValue=f.value;f.value=""}Ext.layout.component.field.FieldContainer.prototype.beginLayout.apply(this,arguments);d.toolbarContext=d.context.getCmp(e.toolbar);d.inputCmpContext=d.context.getCmp(e.inputCmp);d.bodyCellContext=d.getEl("bodyEl");d.textAreaContext=d.getEl("textareaEl");d.iframeContext=d.getEl("iframeEl")},beginLayoutCycle:function(k){var l=this,o=k.widthModel,p=k.heightModel,i=l.owner,m=i.iframeEl,n=i.textareaEl,j=(p.natural||p.shrinkWrap)?l.naturalHeight:"";Ext.layout.component.field.FieldContainer.prototype.beginLayoutCycle.apply(this,arguments);if(o.shrinkWrap){m.setStyle("width","");n.setStyle("width","")}else{if(o.natural){k.bodyCellContext.setWidth(l.naturalWidth)}}m.setStyle("height",j);n.setStyle("height",j)},finishedLayout:function(){var b=this.owner;Ext.layout.component.field.FieldContainer.prototype.finishedLayout.apply(this,arguments);if(Ext.isGecko){b.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:'<div class="x-toolbar-no-items" role="menuitem">(None)</div>',menuCls:"x-box-menu",constructor:function(d){var c=this;Ext.layout.container.boxOverflow.None.prototype.constructor.call(this,d);c.menuItems=[]},beginLayout:function(b){Ext.layout.container.boxOverflow.None.prototype.beginLayout.call(this,b);this.clearOverflow(b)},beginLayoutCycle:function(c,d){Ext.layout.container.boxOverflow.None.prototype.beginLayoutCycle.call(this,c,d);if(!d){this.clearOverflow(c);this.layout.cacheChildItems(c)}},onRemove:function(b){Ext.Array.remove(this.menuItems,b)},clearItem:function(d){var c=d.menu;if(d.isButton&&c){d.setMenu(c,false)}},getSuffixConfig:function(){var g=this,h=g.layout,f=h.owner,e=f.id;g.menu=new Ext.menu.Menu({listeners:{scope:g,beforeshow:g.beforeMenuShow}});g.menuTrigger=new Ext.button.Button({id:e+"-menu-trigger",cls:g.menuCls+"-after x-toolbar-item",plain:f.usePlainButtons,ownerCt:f,ownerLayout:h,iconCls:"x-"+g.getOwnerType(f)+"-more-icon",ui:f.defaultButtonUI||"default",menu:g.menu,showEmptyMenu:true,getSplitCls:function(){return""}});return g.menuTrigger.getRenderTree()},getOverflowCls:function(b){return this.menuCls+"-body-"+b},handleOverflow:function(f){var d=this,e=d.layout;d.showTrigger(f);if(e.direction!=="vertical"){d.menuTrigger.setLocalY((f.state.boxPlan.maxSize-d.menuTrigger[e.names.getHeight]())/2)}return{reservedSpace:d.triggerTotalWidth}},captureChildElements:function(){var e=this,f=e.menuTrigger,d=e.layout.names;if(f.rendering){f.finishRender();e.triggerTotalWidth=f[d.getWidth]()+f.el.getMargin(d.parallelMargins)}},clearOverflow:function(l){var m=this,i=m.menuItems,n=i.length,j=m.layout.owner,k=j._asLayoutRoot,o,p;j.suspendLayouts();m.captureChildElements();m.hideTrigger();j.resumeLayouts();for(p=0;p<n;p++){o=i[p];o.suspendLayouts();o.show();m.clearItem(o);o.resumeLayouts(k)}i.length=0},showTrigger:function(E){var u=this,y=u.layout,G=y.owner,v=y.names,i=v.x,C=v.width,t=E.state.boxPlan,F=t.targetSize[C],A=E.childItems,B=u.menuTrigger,H=u.menuItems,s,z,D,w,x;B.suspendLayouts();B.show();B.resumeLayouts(u._asLayoutRoot);F-=u.triggerTotalWidth;G.suspendLayouts();for(D=0,x=H.length;D<x;++D){u.clearItem(H[D])}H.length=0;for(D=0,x=A.length;D<x;D++){s=A[D];w=s.props;if(w[i]+w[C]>F){z=s.target;u.menuItems.push(z);z.hide()}}G.resumeLayouts()},hideTrigger:function(){var b=this.menuTrigger;if(b){b.hide()}},beforeMenuShow:function(k){var l=this,i=l.menuItems,o=0,j=i.length,m,n,p=function(a,b){return a.isXType("buttongroup")&&!(b instanceof Ext.toolbar.Separator)};k.suspendLayouts();k.removeAll(false);for(;o<j;o++){m=i[o];if(!o&&(m instanceof Ext.toolbar.Separator)){continue}if(n&&(p(m,n)||p(n,m))){k.add("-")}l.addComponentToMenu(k,m);n=m}if(k.items.length<1){k.add(l.noItemsMenuText)}k.resumeLayouts()},createMenuConfig:function(h,f){var e=Ext.apply({},h.initialConfig),g=h.toggleGroup;Ext.copy(e,h,["iconCls","icon","itemId","disabled","handler","scope","menu","tabIndex"]);Ext.applyIf(e,{text:h.overflowText||h.text,hideOnClick:f,destroyMenu:false,listeners:null});e.masterComponent=h;if(h.isFormField){e.value=h.getValue();e.listeners={change:function(a,b,c){a.masterComponent.setValue(b)}};h.on("change",function(a,b,c){a.overflowClone.setValue(b)})}else{if(g||h.enableToggle){Ext.apply(e,{hideOnClick:false,group:g,checked:h.pressed,handler:function(b,a){b.masterComponent.onClick(a)}})}}if(h.isButton&&!h.changeListenersAdded){h.on({textchange:this.onButtonAttrChange,iconchange:this.onButtonAttrChange,toggle:this.onButtonToggle});h.changeListenersAdded=true}delete e.margin;delete e.ownerCt;delete e.xtype;delete e.id;delete e.itemId;return e},onButtonAttrChange:function(d){var c=d.overflowClone;c.suspendLayouts();c.setText(d.text);c.setIcon(d.icon);c.setIconCls(d.iconCls);c.resumeLayouts(true)},onButtonToggle:function(d,c){if(d.overflowClone.checked!==c){d.overflowClone.setChecked(c)}},addComponentToMenu:function(i,l){var j=this,k,g,h;if(l instanceof Ext.toolbar.Fill){return}else{if(l instanceof Ext.toolbar.Separator){i.add("-")}else{if(l.overflowClone){i.add(l.overflowClone)}else{if(l.isComponent){if(l.isXType("splitbutton")){l.overflowClone=i.add(j.createMenuConfig(l,true))}else{if(l.isXType("button")){l.overflowClone=i.add(j.createMenuConfig(l,!l.menu))}else{if(l.isXType("buttongroup")){g=l.items.items;h=g.length;for(k=0;k<h;k++){j.addComponentToMenu(i,g[k])}}else{l.overflowClone=i.add(Ext.create(Ext.getClassName(l),j.createMenuConfig(l)))}}}}}}}},destroy:function(){var c=this,d=c.menuTrigger;if(d&&!c.layout.owner.items.contains(d)){delete d.ownerCt}c.menu=c.menuTrigger=Ext.destroy(c.menu,d);c.callParent()}},1,0,0,0,["box.overflow.Menu","box.overflow.menu"],0,[Ext.layout.container.boxOverflow,"Menu",Ext.layout.boxOverflow,"Menu"],0));(Ext.cmd.derive("Ext.form.field.HtmlEditor",Ext.form.FieldContainer,{alternateClassName:"Ext.form.HtmlEditor",focusable:true,componentLayout:"htmleditor",textareaCls:"x-htmleditor-textarea",componentTpl:["{beforeTextAreaTpl}",'<textarea id="{id}-textareaEl" data-ref="textareaEl" name="{name}" tabindex="-1" {inputAttrTpl}',' class="{textareaCls}" autocomplete="off">',"{[Ext.util.Format.htmlEncode(values.value)]}","</textarea>","{afterTextAreaTpl}","{beforeIFrameTpl}",'<iframe id="{id}-iframeEl" data-ref="iframeEl" name="{iframeName}" frameBorder="0" {iframeAttrTpl}',' src="{iframeSrc}" class="{iframeCls}"></iframe>',"{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?"&#160;":"&#8203;",extraFieldBodyCls:"x-html-editor-wrap",defaultButtonUI:"default-toolbar",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 b=this;b.items=[b.createToolbar(),b.createInputCmp()];b.layout={type:"vbox",align:"stretch"};if(b.value==null){b.value=""}Ext.form.FieldContainer.prototype.initComponent.apply(this,arguments);b.initField()},createInputCmp:function(){this.inputCmp=Ext.widget(this.getInputCmpCfg());return this.inputCmp},getInputCmpCfg:function(){var e=this,f=e.id+"-inputCmp",d={id:f,name:e.name,textareaCls:e.textareaCls+" x-hidden",value:e.value,iframeName:Ext.id(),iframeSrc:Ext.SSL_SECURE_URL,iframeCls:"x-htmleditor-iframe"};e.getInsertionRenderData(d,e.subTplInsertions);return{flex:1,xtype:"component",tpl:e.getTpl("componentTpl"),childEls:["iframeEl","textareaEl"],id:f,cls:"x-html-editor-input",data:d}},createToolbar:function(){this.toolbar=Ext.widget(this.getToolbarCfg());return this.toolbar},getToolbarCfg:function(){var l=this,i=[],n,j=Ext.quickTipsActive&&Ext.tip.QuickTipManager.isEnabled(),o="x-",k,m;function p(a,c,b){return{itemId:a,cls:o+"btn-icon",iconCls:o+"edit-"+a,enableToggle:c!==false,scope:l,handler:b||l.relayBtnCmd,clickEvent:"mousedown",tooltip:j?l.buttonTips[a]||m:m,overflowText:l.buttonTips[a].title||m,tabIndex:-1}}if(l.enableFont&&!Ext.isSafari2){k=Ext.widget("component",{itemId:"fontSelect",renderTpl:['<select id="{id}-selectEl" data-ref="selectEl" class="'+o+'font-select">',"</select>"],childEls:["selectEl"],afterRender:function(){l.fontSelect=this.selectEl;Ext.Component.prototype.afterRender.apply(this,arguments)},onDisable:function(){var a=this.selectEl;if(a){a.dom.disabled=true}Ext.Component.prototype.onDisable.apply(this,arguments)},onEnable:function(){var a=this.selectEl;if(a){a.dom.disabled=false}Ext.Component.prototype.onEnable.apply(this,arguments)},listeners:{change:function(){l.win.focus();l.relayCmd("fontName",l.fontSelect.dom.value);l.deferFocus()},element:"selectEl"}});i.push(k,"-")}if(l.enableFormat){i.push(p("bold"),p("italic"),p("underline"))}if(l.enableFontSize){i.push("-",p("increasefontsize",false,l.adjustFont),p("decreasefontsize",false,l.adjustFont))}if(l.enableColors){i.push("-",{itemId:"forecolor",cls:o+"btn-icon",iconCls:o+"edit-forecolor",overflowText:l.buttonTips.forecolor.title,tooltip:j?l.buttonTips.forecolor||m:m,tabIndex:-1,menu:Ext.widget("menu",{plain:true,items:[{xtype:"colorpicker",allowReselect:true,focus:Ext.emptyFn,value:"000000",plain:true,clickEvent:"mousedown",handler:function(a,b){l.relayCmd("forecolor",Ext.isWebKit||Ext.isIE?"#"+b:b);this.up("menu").hide()}}]})},{itemId:"backcolor",cls:o+"btn-icon",iconCls:o+"edit-backcolor",overflowText:l.buttonTips.backcolor.title,tooltip:j?l.buttonTips.backcolor||m:m,tabIndex:-1,menu:Ext.widget("menu",{plain:true,items:[{xtype:"colorpicker",focus:Ext.emptyFn,value:"FFFFFF",plain:true,allowReselect:true,clickEvent:"mousedown",handler:function(a,b){if(Ext.isGecko){l.execCmd("useCSS",false);l.execCmd("hilitecolor","#"+b);l.execCmd("useCSS",true);l.deferFocus()}else{l.relayCmd(Ext.isOpera?"hilitecolor":"backcolor",Ext.isWebKit||Ext.isIE||Ext.isOpera?"#"+b:b)}this.up("menu").hide()}}]})})}if(l.enableAlignments){i.push("-",p("justifyleft"),p("justifycenter"),p("justifyright"))}if(!Ext.isSafari2){if(l.enableLinks){i.push("-",p("createlink",false,l.createLink))}if(l.enableLists){i.push("-",p("insertorderedlist"),p("insertunorderedlist"))}if(l.enableSourceEdit){i.push("-",p("sourceedit",true,function(){l.toggleSourceEdit(!l.sourceEditMode)}))}}for(n=0;n<i.length;n++){if(i[n].itemId!=="sourceedit"){i[n].disabled=true}}return{xtype:"toolbar",defaultButtonUI:l.defaultButtonUI,cls:"x-html-editor-tb",enableOverflow:true,items:i,listeners:{click:function(a){a.preventDefault()},element:"el"}}},getMaskTarget:function(){return Ext.isGecko?this.inputCmp.el:this.bodyEl},setReadOnly:function(h){var i=this,j=i.textareaEl,f=i.iframeEl,g;i.readOnly=h;if(j){j.dom.readOnly=h}if(i.initialized){g=i.getEditorBody();if(Ext.isIE){f.setDisplayed(false);g.contentEditable=!h;f.setDisplayed(true)}else{i.setDesignMode(!h)}if(g){g.style.cursor=h?"default":"text"}i.disableItems(h)}},getDocMarkup:function(){var c=this,d=c.iframeEl.getHeight()-c.iframePad*2;return Ext.String.format('<!DOCTYPE html><html><head><style type="text/css">'+(Ext.isOpera||Ext.isIE?"p{margin:0;}":"")+"body{border:0;margin:0;padding:{0}px;direction:"+(c.rtl?"rtl;":"ltr;")+(Ext.isIE8?Ext.emptyString:"min-")+"height:{1}px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;cursor:text;background-color:white;"+(Ext.isIE?"":"font-size:12px;font-family:{2}")+"}</style></head><body></body></html>",c.iframePad,d,c.defaultFont)},getEditorBody:function(){var b=this.getDoc();return b.body||b.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 l=this,r=0,k,q,i,n,o,m,p;if(!l.defaultFont){q=l.textareaEl.getStyle("font-family");q=Ext.String.capitalize(q.split(",")[0]);k=Ext.Array.clone(l.fontFamilies);Ext.Array.include(k,q);k.sort();l.defaultFont=q;i=l.down("#fontSelect").selectEl.dom;for(o=0,m=k.length;o<m;++o){q=k[o];p=q.toLowerCase();n=new Option(q,p);if(q===l.defaultFont){r=o}n.style.fontFamily=p;if(Ext.isIE){i.add(n)}else{i.options.add(n)}}i.options[r].selected=true}},isEqual:function(c,d){return this.isEqualAsString(c,d)},afterRender:function(){var c=this,d=c.inputCmp;Ext.form.FieldContainer.prototype.afterRender.apply(this,arguments);c.iframeEl=d.iframeEl;c.textareaEl=d.textareaEl;c.inputEl=c.iframeEl;if(c.enableFont){c.initDefaultFont()}c.monitorTask=Ext.TaskManager.start({run:c.checkDesignMode,scope:c,interval:100})},initFrameDoc:function(){var d=this,f,e;Ext.TaskManager.stop(d.monitorTask);f=d.getDoc();d.win=d.getWin();f.open();f.write(d.getDocMarkup());f.close();e={run:function(){var a=d.getDoc();if(a.body||a.readyState==="complete"){Ext.TaskManager.stop(e);d.setDesignMode(true);Ext.defer(d.initEditor,10,d)}},interval:10,duration:10000,scope:d};Ext.TaskManager.start(e)},checkDesignMode:function(){var d=this,c=d.getDoc();if(c&&(!c.editorInitialized||d.getDesignMode()!=="on")){d.initFrameDoc()}},setDesignMode:function(f){var e=this,d=e.getDoc();if(d){if(e.readOnly){f=false}d.designMode=(/on|true/i).test(String(f).toLowerCase())?"on":"off"}},getDesignMode:function(){var b=this.getDoc();return !b?"":String(b.designMode).toLowerCase()},disableItems:function(i){var f=this.getToolbar().items.items,j,g=f.length,h;for(j=0;j<g;j++){h=f[j];if(h.getItemId()!=="sourceedit"){h.setDisabled(i)}}},toggleSourceEdit:function(g){var i=this,k=i.iframeEl,h=i.textareaEl,j="x-hidden",l=i.getToolbar().getComponent("sourceedit");if(!Ext.isBoolean(g)){g=!i.sourceEditMode}i.sourceEditMode=g;if(l.pressed!==g){l.toggle(g)}if(g){i.disableItems(true);i.syncValue();k.addCls(j);h.removeCls(j);h.dom.removeAttribute("tabIndex");h.focus();i.inputEl=h}else{if(i.initialized){i.disableItems(i.readOnly)}i.pushValue();k.removeCls(j);h.addCls(j);h.dom.setAttribute("tabIndex",-1);i.deferFocus();i.inputEl=k}i.fireEvent("editmodechange",i,g);i.updateLayout()},createLink:function(){var b=prompt(this.createLinkText,this.defaultLinkValue);if(b&&b!=="http://"){this.relayCmd("createlink",b)}},clearInvalid:Ext.emptyFn,setValue:function(f){var d=this,e=d.textareaEl;if(f===null||f===undefined){f=""}if(d.value!==f){if(e){e.dom.value=f}d.pushValue();if(!d.rendered&&d.inputCmp){d.inputCmp.data.value=f}d.mixins.field.setValue.call(d,f)}return d},cleanHtml:function(b){b=String(b);if(Ext.isWebKit){b=b.replace(this.safariNonsenseRE,"")}if(b.charCodeAt(0)===parseInt(this.defaultValue.replace(this.nonDigitsRE,""),10)){b=b.substring(1)}return b},syncValue:function(){var k=this,h,j,m,i,n,l;if(k.initialized){h=k.getEditorBody();m=h.innerHTML;l=k.textareaEl.dom;if(Ext.isWebKit){i=h.getAttribute("style");n=i.match(k.textAlignRE);if(n&&n[1]){m='<div style="'+n[0]+'">'+m+"</div>"}}m=k.cleanHtml(m);if(k.fireEvent("beforesync",k,m)!==false){if(Ext.isGecko&&l.value===""&&m==="<br>"){m=""}if(l.value!==m){l.value=m;j=true}k.fireEvent("sync",k,m);if(j){k.checkChange()}}}},getValue:function(){var d=this,c;if(!d.sourceEditMode){d.syncValue()}c=d.rendered?d.textareaEl.dom.value:d.value;d.value=c;return c},pushValue:function(){var c=this,d;if(c.initialized){d=c.textareaEl.dom.value||"";if(!c.activated&&d.length<1){d=c.defaultValue}if(c.fireEvent("beforepush",c,d)!==false){c.getEditorBody().innerHTML=d;if(Ext.isGecko){c.setDesignMode(false);c.setDesignMode(true)}c.fireEvent("push",c,d)}}},focus:function(i,f){var j=this,h,g;if(f){if(!j.focusTask){j.focusTask=new Ext.util.DelayedTask(j.focus)}j.focusTask.delay(Ext.isNumber(f)?f:10,null,j,[i,false])}else{if(i){if(j.textareaEl&&j.textareaEl.dom){h=j.textareaEl.dom.value}if(h&&h.length){j.execCmd("selectall",true)}}g=j.getFocusEl();if(g&&g.focus){g.focus()}}return j},initEditor:function(){var m=this,n,i,k,j,e;if(m.destroying||m.destroyed){return}n=m.getEditorBody();if(!n){setTimeout(function(){m.initEditor()},10);return}i=m.textareaEl.getStyle(["font-size","font-family","background-image","background-repeat","background-color","color"]);i["background-attachment"]="fixed";n.bgProperties="fixed";Ext.DomHelper.applyStyles(n,i);k=m.getDoc();j=Ext.get(k);if(j){try{j.clearListeners()}catch(l){}e=m.onEditorEvent.bind(m);j.on({mousedown:e,dblclick:e,click:e,keyup:e,delegated:false,buffer:100});e=m.onRelayedEvent;j.on({mousedown:e,mousemove:e,mouseup:e,click:e,dblclick:e,delegated:false,scope:m});if(Ext.isGecko){j.on("keypress",m.applyCommand,m)}if(m.fixKeys){j.on("keydown",m.fixKeys,m,{delegated:false})}if(m.fixKeysAfter){j.on("keyup",m.fixKeysAfter,m,{delegated:false})}if(Ext.isIE9){Ext.get(k.documentElement).on("focus",m.focus,m)}if(Ext.isIE8){j.on("focusout",function(){m.savedSelection=k.selection.type!=="None"?k.selection.createRange():null},m);j.on("focusin",function(){if(m.savedSelection){m.savedSelection.select()}},m)}Ext.getWin().on("beforeunload",m.beforeDestroy,m);k.editorInitialized=true;m.initialized=true;m.pushValue();m.setReadOnly(m.readOnly);m.fireEvent("initialize",m)}},beforeDestroy:function(){var g=this,i=g.monitorTask,j,h;if(i){Ext.TaskManager.stop(i)}if(g.rendered){Ext.getWin().un(g.beforeDestroy,g);j=g.getDoc();if(j){Ext.get(j).destroy();if(j.hasOwnProperty){for(h in j){try{if(j.hasOwnProperty(h)){delete j[h]}}catch(e){}}}}delete g.iframeEl;delete g.textareaEl;delete g.toolbar;delete g.inputCmp}Ext.form.FieldContainer.prototype.beforeDestroy.call(this)},onRelayedEvent:function(j){var f=this.iframeEl,i=Ext.fly(f).getTrueXY(),h=j.getXY(),g=j.getXY();j.xy=[i[0]+g[0],i[1]+g[1]];j.injectEvent(f);j.xy=h},onFirstFocus:function(){var h=this,e,f;h.activated=true;h.disableItems(h.readOnly);if(Ext.isGecko){h.win.focus();e=h.win.getSelection();if(e.focusNode&&!h.getValue().length){f=e.getRangeAt(0);f.selectNodeContents(h.getEditorBody());f.collapse(true);h.deferFocus()}try{h.execCmd("useCSS",true);h.execCmd("styleWithCSS",false)}catch(g){}}h.fireEvent("activate",h)},adjustFont:function(i){var h=i.getItemId()==="increasefontsize"?1:-1,j=this.getDoc().queryCommandValue("FontSize")||"2",g=Ext.isString(j)&&j.indexOf("px")!==-1,f;j=parseInt(j,10);if(g){if(j<=10){j=1+h}else{if(j<=13){j=2+h}else{if(j<=16){j=3+h}else{if(j<=18){j=4+h}else{if(j<=24){j=5+h}else{j=6+h}}}}}j=Ext.Number.constrain(j,1,6)}else{f=Ext.isSafari;if(f){h*=2}j=Math.max(1,j+h)+(f?"px":0)}this.relayCmd("FontSize",j)},onEditorEvent:function(){this.updateToolbar()},updateToolbar:function(){var m=this,p,r,q,l,s,o,t,n;if(m.readOnly){return}if(!m.activated){m.onFirstFocus();return}q=m.getToolbar().items.map;l=m.getDoc();if(m.enableFont&&!Ext.isSafari2){o=l.queryCommandValue("fontName");s=(o?o.split(",")[0].replace(m.reStripQuotes,""):m.defaultFont).toLowerCase();t=m.fontSelect.dom;if(s!==t.value||s!==o){t.value=s}}function i(){var b;for(p=0,r=arguments.length,s;p<r;p++){s=arguments[p];try{b=l.queryCommandState(s)}catch(a){b=false}q[s].toggle(b)}}if(m.enableFormat){i("bold","italic","underline")}if(m.enableAlignments){i("justifyleft","justifycenter","justifyright")}if(!Ext.isSafari2&&m.enableLists){i("insertorderedlist","insertunorderedlist")}n=m.toolbar.query("menu");for(p=0;p<n.length;p++){n[p].hide()}m.syncValue()},relayBtnCmd:function(b){this.relayCmd(b.getItemId())},relayCmd:function(c,d){Ext.defer(function(){var a=this;if(!this.destroyed){a.win.focus();a.execCmd(c,d);a.updateToolbar()}},10,this)},execCmd:function(h,e){var f=this,g=f.getDoc();g.execCommand(h,false,(e===undefined?null:e));f.syncValue()},applyCommand:function(h){if(h.ctrlKey){var e=this,g=h.getCharCode(),c;if(g>0){g=String.fromCharCode(g);switch(g){case"b":c="bold";break;case"i":c="italic";break;case"u":c="underline";break}if(c){e.win.focus();e.execCmd(c);e.deferFocus();h.preventDefault()}}}},insertAtCursor:function(m){var o=this,p=o.getWin(),n=o.getDoc(),t,q,s,l,r,u,v;if(o.activated){p.focus();if(p.getSelection){t=p.getSelection();if(t.getRangeAt&&t.rangeCount){q=t.getRangeAt(0);q.deleteContents();s=n.createElement("div");s.innerHTML=m;l=n.createDocumentFragment();while((r=s.firstChild)){u=l.appendChild(r)}v=l.firstChild;q.insertNode(l);if(u){q=q.cloneRange();q.setStartAfter(u);q.collapse(true);t.removeAllRanges();t.addRange(q)}}}else{if(n.selection&&t.type!=="Control"){t=n.selection;q=t.createRange();q.collapse(true);t.createRange().pasteHTML(m)}}o.deferFocus()}},fixKeys:(function(){var b;if(Ext.isIE10m){return function(j){var m=this,n=j.getKey(),k=m.getDoc(),e=m.readOnly,a,l;if(n===j.TAB){j.stopEvent();if(!e){a=k.selection.createRange();if(a){if(a.collapse){a.collapse(true);a.pasteHTML("&#160;&#160;&#160;&#160;")}m.deferFocus()}}}}}if(Ext.isOpera){return function(g){var h=this,a=g.getKey(),e=h.readOnly;if(a===g.TAB){g.stopEvent();if(!e){h.win.focus();h.execCmd("InsertHTML","&#160;&#160;&#160;&#160;");h.deferFocus()}}}}return null}()),fixKeysAfter:(function(){if(Ext.isIE){return function(k){var e=this,h=k.getKey(),l=e.getDoc(),i=e.readOnly,j;if(!i&&(h===k.BACKSPACE||h===k.DELETE)){j=l.body.innerHTML;if(j==="<p>&nbsp;</p>"||j==="<P>&nbsp;</P>"){l.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.define("Ext.theme.neptune.form.field.HtmlEditor",{override:"Ext.form.field.HtmlEditor",defaultButtonUI:"plain-toolbar"});(Ext.cmd.derive("Ext.grid.CellContext",Ext.Base,{isCellContext:true,constructor:function(b){this.view=b},setPosition:function(f,e){var d=this;if(arguments.length===1){if(f.length){e=f[0];f=f[1]}else{if(f.isCellContext){return d.setAll(f.view,f.rowIdx,f.colIdx,f.record,f.columnHeader)}else{if(f.view){d.view=f.view}e=f.column;f=f.row}}}d.setRow(f);d.setColumn(e);return d},setAll:function(g,l,k,h,i){var j=this;j.view=g;j.rowIdx=l;j.colIdx=k;j.record=h;j.column=i;return j},setRow:function(f){var e=this,d=e.view.dataSource;if(f!==undefined){if(typeof f==="number"){e.rowIdx=Math.max(Math.min(f,d.getCount()-1),0);e.record=d.getAt(f)}else{if(f.isModel){e.record=f;e.rowIdx=d.indexOf(f)}else{if(f.tagName||f.isElement){e.record=e.view.getRecord(f);e.rowIdx=d.indexOf(e.record)}}}}return e},setColumn:function(e){var f=this,d=f.view.getVisibleColumnManager();if(e!==undefined){if(typeof e==="number"){f.colIdx=e;f.column=d.getHeaderAtIndex(e)}else{if(e.isHeader){f.column=e;f.colIdx=d.indexOf(e)}}}return f},getCell:function(b){return this.view.getCellByPosition(this,b)},getRow:function(c){var d=this.view.getRow(this.record);return c?d:Ext.get(d)},getNode:function(c){var d=this.view.getNode(this.record);return c?d:Ext.get(d)},isEqual:function(b){return(b&&b.isCellContext&&b.record===this.record&&b.column===this.column)},clone:function(){var c=this,d=new c.self(c.view);d.rowIdx=c.rowIdx;d.colIdx=c.colIdx;d.record=c.record;d.column=c.column;return d},privates:{isFirstColumn:function(){var b=this.getCell(true);if(b){return !b.previousSibling}},isLastColumn:function(){var b=this.getCell(true);if(b){return !b.nextSibling}},getLastColumnIndex:function(){var b=this.getRow(true);if(b){return b.lastChild.cellIndex}return -1},navigate:function(f){var d=this,e=d.view.getVisibleColumnManager().getColumns();switch(f){case -1:do{if(!d.colIdx){d.colIdx=e.length-1}else{d.colIdx--}d.setColumn(d.colIdx)}while(!d.getCell(true));break;case 1:do{if(d.colIdx>=e.length){d.colIdx=0}else{d.colIdx++}d.setColumn(d.colIdx)}while(!d.getCell(true));break}}},statics:{compare:function(c,d){return c.rowIdx-d.rowIdx||c.colIdx-d.colIdx}}},1,0,0,0,0,0,[Ext.grid,"CellContext"],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(b){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);b.titleContext=b.getEl("titleEl")},beginLayoutCycle:function(h){var e=this,f=e.owner,g=h.widthModel.shrinkWrap;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(g){f.el.setWidth("")}f.textContainerEl[g&&!f.isGroupHeader?"addCls":"removeCls"](e.columnAutoCls);f.titleEl.setStyle(e._paddingReset)},publishInnerHeight:function(i,j){var f=this,g=f.owner,h;if(g.getRootHeaderCt().hiddenHeaders){i.setProp("innerHeight",0);return}if(!i.hasRawContent){if(g.headerWrap&&!i.hasDomProp("width")){f.done=false;return}h=j-i.getBorderInfo().height;i.setProp("innerHeight",h-g.titleEl.getHeight(),false)}},measureContentHeight:function(b){return b.el.dom.offsetHeight},publishInnerWidth:function(d,c){if(!d.hasRawContent){d.setProp("innerWidth",c-d.getBorderInfo().width,false)}},calculateOwnerHeightFromContentHeight:function(g,h){var e=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments),f=this.owner;if(!g.hasRawContent){if(!f.headerWrap||g.hasDomProp("width")){return h+f.titleEl.getHeight()+g.getBorderInfo().height}return null}return e},calculateOwnerWidthFromContentWidth:function(i,g){var h=this.owner,j=i.getPaddingInfo().width,k=this.getTriggerOffset(h,i),l;if(h.isGroupHeader){l=g}else{l=Math.max(g,h.textEl.getWidth()+i.titleContext.getPaddingInfo().width)}return l+j+k},getTriggerOffset:function(e,f){var d=0;if(f.widthModel.shrinkWrap&&!e.menuDisabled){if(e.query(">:not([hidden])").length===0){d=e.getTriggerElWidth()}}return d}},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:{0:{readsWidth:1,readsHeight:1,setsWidth:0,setsHeight:0},1:{readsWidth:0,readsHeight:1,setsWidth:1,setsHeight:0},2:{readsWidth:1,readsHeight:0,setsWidth:0,setsHeight:1},3:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:1}},getItemSizePolicy:function(e,h){var f=h||this.owner.getSizeModel(),g=(f.width.shrinkWrap?0:1)|(f.height.shrinkWrap?0:2);return this.sizePolicies[g]},beginLayoutCycle:function(C,F){var i=this,c=i.lastHeightModel&&i.lastHeightModel.calculated,E=i.lastWidthModel&&i.lastWidthModel.calculated,y=E||c,B=0,A=0,u,I,x,v,G,J,D,z,w,H;Ext.layout.container.Container.prototype.beginLayoutCycle.apply(this,arguments);if(y&&C.targetContext.el.dom.tagName.toUpperCase()!=="TD"){y=E=c=false}I=C.childItems;G=I.length;for(x=0;x<G;++x){v=I[x];if(F){u=v.target;D=u.minHeight;z=u.minWidth;if(z||D){J=v.marginInfo||v.getMarginInfo();D+=J.height;z+=J.height;if(B<D){B=D}if(A<z){A=z}}}if(y){w=v.el.dom.style;if(c){w.height=""}if(E){w.width=""}}}if(F){C.maxChildMinHeight=B;C.maxChildMinWidth=A}u=C.target;C.overflowX=(!C.widthModel.shrinkWrap&&C.maxChildMinWidth&&u.scrollFlags.x)||H;C.overflowY=(!C.heightModel.shrinkWrap&&C.maxChildMinHeight&&u.scrollFlags.y)||H},calculate:function(A){var t=this,w=A.childItems,C=w.length,D=t.getContainerSize(A),B={length:C,ownerContext:A,targetSize:D},i=A.widthModel.shrinkWrap,v=A.heightModel.shrinkWrap,x=A.overflowX,z=A.overflowY,u,E,s,y,F,r;A.state.info=B;if(x||z){u=t.getScrollbarsNeeded(x&&D.width,z&&D.height,A.maxChildMinWidth,A.maxChildMinHeight);if(u){E=Ext.getScrollbarSize();if(u&1){D.height-=E.height}if(u&2){D.width-=E.width}}}if(C>0){for(y=0;y<C;++y){B.index=y;t.fitItem(w[y],B)}}else{B.contentWidth=B.contentHeight=0}if(v||i){s=A.targetContext.getPaddingInfo();if(i){if(z&&!D.gotHeight){t.done=false}else{F=B.contentWidth+s.width;if(u&2){F+=E.width}if(!A.setContentWidth(F)){t.done=false}}}if(v){if(x&&!D.gotWidth){t.done=false}else{r=B.contentHeight+s.height;if(u&1){r+=E.height}if(!A.setContentHeight(r)){t.done=false}}}}},fitItem:function(d,f){var e=this;if(d.invalid){e.done=false;return}f.margins=d.getMarginInfo();f.needed=f.got=0;e.fitItemWidth(d,f);e.fitItemHeight(d,f);if(f.got!==f.needed){e.done=false}},fitItemWidth:function(h,g){var f,e;if(g.ownerContext.widthModel.shrinkWrap){e=h.getProp("width")+g.margins.width;f=g.contentWidth;if(f===undefined){g.contentWidth=e}else{g.contentWidth=Math.max(f,e)}}else{if(h.widthModel.calculated){++g.needed;if(g.targetSize.gotWidth){++g.got;this.setItemWidth(h,g)}else{return}}}this.positionItemX(h,g)},fitItemHeight:function(h,g){var e,f;if(g.ownerContext.heightModel.shrinkWrap){f=h.getProp("height")+g.margins.height;e=g.contentHeight;if(e===undefined){g.contentHeight=f}else{g.contentHeight=Math.max(e,f)}}else{if(h.heightModel.calculated){++g.needed;if(g.targetSize.gotHeight){++g.got;this.setItemHeight(h,g)}else{return}}}this.positionItemY(h,g)},positionItemX:function(e,f){var d=f.margins;if(f.index||d.left){e.setProp("x",d.left)}if(d.width&&f.ownerContext.widthModel.shrinkWrap){e.setProp("margin-right",d.width)}},positionItemY:function(e,f){var d=f.margins;if(f.index||d.top){e.setProp("y",d.top)}if(d.height&&f.ownerContext.heightModel.shrinkWrap){e.setProp("margin-bottom",d.height)}},setItemHeight:function(d,c){d.setHeight(c.targetSize.height-c.margins.height)},setItemWidth:function(d,c){d.setWidth(c.targetSize.width-c.margins.width)}},0,0,0,0,["layout.fit"],0,[Ext.layout.container,"Fit",Ext.layout,"FitLayout"],0));(Ext.cmd.derive("Ext.panel.Table",Ext.panel.Panel,{extraBaseCls:"x-grid",extraBodyCls:"x-grid-body",actionableModeCls:"x-grid-actionable",noHeaderBordersCls:"x-no-header-borders",defaultBindProperty:"store",layout:"fit",ariaRole:"grid",config:{selection:null,headerBorders:true},publishes:["selection"],twoWayBindable:["selection"],autoLoad:false,variableRowHeight:false,numFromEdge:2,trailingBufferZone:10,leadingBufferZone:20,hasView:false,viewType:null,deferRowRender:false,sortableColumns:true,multiColumnSort:false,enableLocking:false,scrollerOwner:true,enableColumnMove:true,sealedColumns:false,enableColumnResize:true,rowLines:true,bufferedRenderer:true,ownerGrid:null,colLinesCls:"x-grid-with-col-lines",rowLinesCls:"x-grid-with-row-lines",noRowLinesCls:"x-grid-no-row-lines",hiddenHeaderCtCls:"x-grid-header-ct-hidden",hiddenHeaderCls:"x-grid-header-hidden",resizeMarkerCls:"x-grid-resize-marker",emptyCls:"x-grid-empty",focusable:true,constructor:function(h){var g=this,f=h&&h.ownerGrid,e;g.ownerGrid=f||g;g.actionables=f?f.actionables:[];Ext.panel.Panel.prototype.constructor.call(this,h);e=g.store;e.trackStateChanges=true;if(g.autoLoad){if(!e.isEmptyStore){e.load()}}},registerActionable:function(b){Ext.Array.include(this.actionables,b)},initComponent:function(){var n=this,p=n.columns||n.colModel||[],l,m,q,o,i,r,s,t;l=n.store=Ext.data.StoreManager.lookup(n.store||"ext-empty-store");n.enableLocking=n.enableLocking||n.hasLockedColumns(p);if(n.plugins){n.plugins=n.constructPlugins()}if(n.columnLines){n.addBodyCls(n.colLinesCls)}n.addBodyCls(n.rowLines?n.rowLinesCls:n.noRowLinesCls);n.addBodyCls(n.extraBodyCls);if(n.enableLocking){n.self.mixin("lockable",Ext.grid.locking.Lockable);n.injectLockable();t=n.headerCt}else{if(p.isRootHeader){if(n.hideHeaders){p.setHeight(0);p.hiddenHeaders=true}else{p.setScrollable({x:false,y:false})}n.headerCt=t=p;t.grid=n;t.forceFit=!!n.forceFit;t.$initParent=n;n.columnManager=p.columnManager;n.visibleColumnManager=p.visibleColumnManager}else{if(Ext.isArray(p)){p={items:p}}Ext.apply(p,{grid:n,$initParent:n,forceFit:n.forceFit,sortable:n.sortableColumns,enableColumnMove:n.enableColumnMove,enableColumnResize:n.enableColumnResize,columnLines:n.columnLines,sealed:n.sealedColumns,scrollable:n.hideHeaders?undefined:{x:false,y:false}});if(n.hideHeaders){p.height=0;p.hiddenHeaders=true}if(Ext.isDefined(n.enableColumnHide)){p.enableColumnHide=n.enableColumnHide}n.headerCt=t=new Ext.grid.header.Container(p)}}n.columns=r=t.getGridColumns();n.scrollTask=new Ext.util.DelayedTask(n.syncHorizontalScroll,n);n.cls=(n.cls||"")+(" "+n.extraBaseCls);delete n.autoScroll;i=n.plugins&&Ext.Array.findBy(n.plugins,function(a){return a.isBufferedRenderer});if(i){n.bufferedRenderer=i}if(!n.hasView){if(l.isBufferedStore&&!l.getRemoteSort()){for(q=0,o=r.length;q<o;q++){r[q].sortable=false}}if(n.hideHeaders){n.headerCt.addCls(n.hiddenHeaderCtCls);n.addCls(n.hiddenHeaderCls)}n.relayHeaderCtEvents(t);n.features=n.features||[];if(!Ext.isArray(n.features)){n.features=[n.features]}n.dockedItems=[].concat(n.dockedItems||[]);n.dockedItems.unshift(t);n.viewConfig=n.viewConfig||{};m=n.getView();n.items=[m];n.hasView=true;if(!n.hideHeaders){s=m.getScrollable();if(s){t.getScrollable().addPartner(s,"x")}}n.bindStore(l,true);n.mon(m,{viewready:n.onViewReady,refresh:n.onRestoreHorzScroll,scope:n})}n.selModel=n.view.getSelectionModel();if(n.selModel.isRowModel){n.selModel.on({scope:n,lastselectedchanged:n.updateBindSelection,selectionchange:n.updateBindSelection})}n.relayEvents(n.view,["beforeitemmousedown","beforeitemmouseup","beforeitemmouseenter","beforeitemmouseleave","beforeitemclick","beforeitemdblclick","beforeitemcontextmenu","itemmousedown","itemmouseup","itemmouseenter","itemmouseleave","itemclick","itemdblclick","itemcontextmenu","beforecellclick","cellclick","beforecelldblclick","celldblclick","beforecellcontextmenu","cellcontextmenu","beforecellmousedown","cellmousedown","beforecellmouseup","cellmouseup","beforecellkeydown","cellkeydown","rowclick","rowdblclick","rowcontextmenu","rowmousedown","rowmouseup","rowkeydown","beforeitemkeydown","itemkeydown","beforeitemkeyup","itemkeyup","beforeitemkeypress","itemkeypress","beforecontainermousedown","beforecontainermouseup","beforecontainermouseover","beforecontainermouseout","beforecontainerclick","beforecontainerdblclick","beforecontainercontextmenu","beforecontainerkeydown","beforecontainerkeyup","beforecontainerkeypress","containermouseup","containermousedown","containermouseover","containermouseout","containerclick","containerdblclick","containercontextmenu","containerkeydown","containerkeyup","containerkeypress","selectionchange","beforeselect","select","beforedeselect","deselect"]);Ext.panel.Panel.prototype.initComponent.call(this);if(n.enableLocking){n.afterInjectLockable()}else{delete t.$initParent}n.addStateEvents(["columnresize","columnmove","columnhide","columnshow","sortchange","filterchange","groupchange"])},beforeRender:function(){var d=this,f=d.bufferedRenderer,e;if(d.lockable){d.getProtoBody().addCls(d.lockingBodyCls)}else{if(f&&d.getSizeModel().height.auto){d.bufferedRenderer=f=false}if(f&&!f.isBufferedRenderer){f={xclass:"Ext.grid.plugin.BufferedRenderer"};Ext.copy(f,d,"variableRowHeight,numFromEdge,trailingBufferZone,leadingBufferZone,scrollToLoadBuffer");d.bufferedRenderer=d.addPlugin(f)}e=d.ariaRenderAttributes||(d.ariaRenderAttributes={});e["aria-readonly"]=!d.isEditable;e["aria-multiselectable"]=d.selModel.selectionMode!=="SINGLE"}Ext.panel.Panel.prototype.beforeRender.apply(this,arguments)},onRender:function(){var d=this,e,f;if(d.isLocked&&d.getSizeModel().width.shrinkWrap){d.shrinkWrapColumns=true;f=d.headerCt.getTableWidth();e=d.gridPanelBorderWidth||(d.gridPanelBorderWidth=d.el.getBorderWidth("lr"));d.width=f+e}Ext.panel.Panel.prototype.onRender.call(this)},getHeaderContainer:function(){return this.getView().getHeaderCt()},getColumns:function(){return this.getColumnManager().getColumns()},getVisibleColumns:function(){return this.getVisibleColumnManager().getColumns()},focus:function(){this.getView().focus()},disableColumnHeaders:function(){this.headerCt.disable()},enableColumnHeaders:function(){this.headerCt.enable()},hasLockedColumns:function(h){var e,f,g;if(h.isRootHeader){h=h.items.items}else{if(Ext.isObject(h)){h=h.items}}for(e=0,f=h.length;e<f;e++){g=h[e];if(!g.processed&&g.locked){return true}}},relayHeaderCtEvents:function(b){this.relayEvents(b,["columnresize","columnmove","columnhide","columnshow","columnschanged","sortchange","headerclick","headercontextmenu","headertriggerclick"])},getState:function(){var d=this,f=Ext.panel.Panel.prototype.getState.call(this),e=d.store.getState();f=d.addPropertyToState(f,"columns",d.headerCt.getColumnsState());if(e){f.storeState=e}return f},applyState:function(j){var k=this,i=j.sort,h=j.storeState,g=k.store,l=j.columns;delete j.columns;Ext.panel.Panel.prototype.applyState.apply(this,arguments);if(l){k.headerCt.applyColumnsState(l,h)}if(i){if(g.getRemoteSort()){g.sort({property:i.property,direction:i.direction,root:i.root},null,false)}else{g.sort(i.property,i.direction)}}else{if(h){g.applyState(h)}}},getStore:function(){return this.store},getView:function(){var h=this,f,g,e;if(!h.view){e=h.viewConfig;f=e.scroll||h.scroll;g=h.scrollable;if(g==null&&e.scrollable==null&&f!==null){if(f===true||f==="both"){g=true}else{if(f===false||f==="none"){g=false}else{if(f==="vertical"){g={x:false,y:true}}else{if(f==="horizontal"){g={x:true,y:false}}}}}}e=Ext.apply({grid:h,ownerGrid:h.ownerGrid,deferInitialRefresh:h.deferRowRender,variableRowHeight:h.variableRowHeight,preserveScrollOnRefresh:true,trackOver:h.trackMouseOver!==false,throttledUpdate:h.throttledUpdate===true,xtype:h.viewType,store:h.store,headerCt:h.headerCt,columnLines:h.columnLines,rowLines:h.rowLines,navigationModel:"grid",features:h.features,panel:h,emptyText:h.emptyText||""},h.viewConfig);if(g!=null){e.scrollable=g;h.scrollable=null}Ext.create(e);if(h.view.emptyText){h.view.emptyText='<div class="'+h.emptyCls+'">'+h.view.emptyText+"</div>"}h.view.getComponentLayout().headerCt=h.headerCt;h.mon(h.view,{uievent:h.processEvent,scope:h});h.headerCt.view=h.view;if(h.hasListeners.viewcreated){h.fireEvent("viewcreated",h,h.view)}}return h.view},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){if(this.view){this.view.setScrollable(b)}return b},getScrollable:function(){return null},processEvent:function(n,l,k,r,m,o,p,e){var q=o.position.column;if(q){return q.processEvent.apply(q,arguments)}},ensureVisible:function(d,c){this.doEnsureVisible(d,c)},scrollByDeltaY:function(c,d){this.getView().scrollBy(0,c,d)},scrollByDeltaX:function(c,d){this.getView().scrollBy(c,0,d)},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:function(){var d=this.view.getScrollable(),c;if(d&&d.isTouchScroller){c=d.getSize();if(c){d.setSize({x:this.headerCt.getTableWidth(),y:c.y})}}},onHeaderMove:function(j,i,h,g,k){var l=this;if(l.optimizedColumnMove===false){l.view.refreshView()}else{l.view.moveColumn(g,k,h)}l.delayScroll()},onHeaderHide:function(d,f){var e=this.view;if(!d.childHideCount&&e.refreshCounter){e.refreshView()}},onHeaderShow:function(d,f){var e=this.view;if(e.refreshCounter){e.refreshView()}},onHeadersChanged:function(d,f){var e=this;if(e.rendered&&!e.reconfiguring){e.view.refreshView();e.delayScroll()}},delayScroll:function(){var b=this.view;if(b){this.scrollTask.delay(10,null,null,[b])}},onViewReady:function(){this.fireEvent("viewready",this)},onRestoreHorzScroll:function(){var c=this,d=c.scrollXPos;if(d){c.syncHorizontalScroll(c,true)}},getScrollerOwner:function(){var b=this;if(!this.scrollerOwner){b=this.up("[scrollerOwner]")}return b},getLhsMarker:function(){var b=this;return b.lhsMarker||(b.lhsMarker=Ext.DomHelper.append(b.el,{role:"presentation",cls:b.resizeMarkerCls},true))},getRhsMarker:function(){var b=this;return b.rhsMarker||(b.rhsMarker=Ext.DomHelper.append(b.el,{role:"presentation",cls:b.resizeMarkerCls},true))},getSelection:function(){return this.getSelectionModel().getSelection()},updateSelection:function(e){var d=this,f;if(!d.ignoreNextSelection){d.ignoreNextSelection=true;f=d.getSelectionModel();if(e){f.select(e)}else{f.deselectAll()}d.ignoreNextSelection=false}},updateBindSelection:function(f,h){var g=this,e=null;if(!g.ignoreNextSelection){g.ignoreNextSelection=true;if(h.length){e=f.getLastSelected();g.hasHadSelection=true}if(g.hasHadSelection){g.setSelection(e)}g.ignoreNextSelection=false}},updateHeaderBorders:function(b){this[b?"removeCls":"addCls"](this.noHeaderBordersCls)},getNavigationModel:function(){return this.getView().getNavigationModel()},getSelectionModel:function(){return this.getView().getSelectionModel()},getScrollTarget:function(){var b=this.getScrollerOwner().query("tableview");return b[b.length-1]},syncHorizontalScroll:function(h,j){var i=this,g=i.view.getScrollX(),f;j=j===true;if(i.rendered&&(j||g!==i.scrollXPos)){if(j){f=i.getScrollTarget();f.setScrollX(g)}i.headerCt.setScrollX(g);i.scrollXPos=g}},onStoreLoad:Ext.emptyFn,getEditorParent:function(){return this.body},bindStore:function(e,h){var g=this,f=g.getView();if(e){g.store=e;if(f.store!==e){f.bindStore(e,false)}g.mon(e,{load:g.onStoreLoad,scope:g});g.storeRelayers=g.relayEvents(e,["filterchange","groupchange"])}else{g.unbindStore()}},unbindStore:function(){var f=this,d=f.store,e;if(d){d.trackStateChanges=false;f.store=null;f.mun(d,{load:f.onStoreLoad,scope:f});Ext.destroy(f.storeRelayers);e=f.view;if(e.store){e.bindStore(null)}}},setColumns:function(b){if(b.length||this.getColumnManager().getColumns().length){this.reconfigure(undefined,b)}},setStore:function(b){this.reconfigure(b);if(this.autoLoad&&!b.isEmptyStore&&!(b.loading||b.isLoaded())){b.load()}},reconfigure:function(k,r){var n=this,t=n.store,s=n.headerCt,l=n.lockable,p=s?s.items.getRange():n.columns,m=n.getView(),q,o;if(arguments.length===1&&Ext.isArray(k)){r=k;k=null}if(r){r=Ext.Array.slice(r)}n.reconfiguring=true;if(k){k=Ext.StoreManager.lookup(k)}n.fireEvent("beforereconfigure",n,k,r,t,p);Ext.suspendLayouts();if(l){n.reconfigureLockable(k,r)}else{q=m.blockRefresh;m.blockRefresh=true;if(k&&k!==t){n.unbindStore();n.bindStore(k)}if(r){delete n.scrollXPos;s.removeAll();s.add(r)}m.blockRefresh=q;o=m.refreshCounter}Ext.resumeLayouts(true);if(l){n.afterReconfigureLockable()}else{if(m.refreshCounter===o){m.refreshView()}}n.fireEvent("reconfigure",n,k,r,t,p);delete n.reconfiguring},beforeDestroy:function(){var c=this,d=c.scrollTask;if(d){d.cancel();c.scrollTask=null}Ext.destroy(c.focusEnterLeaveListeners);Ext.panel.Panel.prototype.beforeDestroy.call(this)},onDestroy:function(){var b=this;if(b.lockable){b.destroyLockable()}b.unbindStore();Ext.panel.Panel.prototype.onDestroy.call(this);b.columns=b.storeRelayers=b.columnManager=b.visibleColumnManager=null},destroy:function(){var b=this;Ext.panel.Panel.prototype.destroy.call(this);if(b.destroyed){b.view=b.selModel=b.headerCt=null}},privates:{initFocusableElement:function(){},doEnsureVisible:function(x,o){if(this.lockable){return this.ensureLockedVisible(x,o)}if(typeof x!=="number"&&!x.isEntity){x=this.store.getById(x)}var w=this,u=w.getView(),y=u.getNode(x),r,q,B,A,t,p,v,z,s;if(o){r=o.callback;q=o.scope;B=o.animate;A=o.highlight;t=o.select;p=o.focus;z=o.column}if(w.deferredEnsureVisible){w.deferredEnsureVisible.destroy()}if(!u.componentLayoutCounter){w.deferredEnsureVisible=u.on({resize:w.doEnsureVisible,args:Ext.Array.slice(arguments),scope:w,single:true,destroyable:true});return}if(typeof z==="number"){z=w.ownerGrid.getVisibleColumnManager().getColumns()[z]}if(y){v=u.getScrollable();if(z){s=Ext.fly(y).selectNode(z.getCellSelector())}if(v){v.scrollIntoView(s||y,!!z,B,A)}if(!x.isEntity){x=u.getRecord(y)}if(t){u.getSelectionModel().select(x)}if(p){u.getNavigationModel().setPosition(x,0)}Ext.callback(r,q||w,[true,x,y])}else{if(u.bufferedRenderer){u.bufferedRenderer.scrollTo(x,{animate:B,highlight:A,select:t,focus:p,column:z,callback:function(a,c,b){Ext.callback(r,q||w,[true,c,b])}})}else{Ext.callback(r,q||w,[false,null])}}},getFocusEl:function(){return this.getView().getFocusEl()},setActionableMode:function(d,e){var f=this.ownerGrid;if(!f.destroying&&f.view.setActionableMode(d,e)!==false){f.fireEvent("actionablemodechange",d);f[d?"addCls":"removeCls"](f.actionableModeCls);return true}}}},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.define("Ext.theme.neptune.panel.Table",{override:"Ext.panel.Table",lockableBodyBorder:true,initComponent:function(){var b=this;(arguments.callee.$previous||Ext.panel.Panel.prototype.initComponent).call(this);if(!b.hasOwnProperty("bodyBorder")&&!b.hideHeaders&&(b.lockableBodyBorder||!b.lockable)){b.bodyBorder=true}}});(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(r){var m=this,t=m.owner,q=m.firstHeaderCls,i=m.lastHeaderCls,s=[q,i],n=m.getVisibleItems(),o=n.length,p,l;Ext.layout.container.HBox.prototype.beginLayout.call(this,r);for(p=0;p<o;p++){l=n[p];if(o===1){l.addCls(s)}else{if(p===0){l.addCls(q);l.removeCls(i)}else{if(p===o-1){l.removeCls(q);l.addCls(i)}else{l.removeCls(s)}}}}m.scrollbarWidth=0;if(t.isRootHeader){m.determineScrollbarWidth(r)}if(!m.scrollbarWidth){r.manageScrollbar=false}},moveItemBefore:function(d,f){var e=d.ownerCt;if(d!==f&&e){e.remove(d,false)}return Ext.layout.container.HBox.prototype.moveItemBefore.call(this,d,f)},determineScrollbarWidth:function(j){var k=this,i=k.owner,l=i.grid,n=i.reserveScrollbar===false,h=l.reserveScrollbar&&!n,m=!h&&!n&&l.view.scrollFlags.y;j.manageScrollbar=m;if(!l.ownerGrid.collapsed&&(h||m)){delete k.scrollbarWidth}},calculate:function(A){var q=this,D=q.owner.grid,u=A.viewContext,C=A.state,B=A.context,v,i,t,x,r,s,y,w,z;Ext.layout.container.HBox.prototype.calculate.call(this,A);if(D&&C.parallelDone){v=u.lockingPartnerContext;i=D.ownerGrid;if(i.forceFit&&!C.reflexed){if(q.convertWidthsToFlexes(A)){q.cacheFlexes(A);q.done=false;A.invalidate({state:{reflexed:true,scrollbarAdjustment:q.getScrollbarAdjustment(A)}});return}}if((t=C.columnsChanged)===undefined){x=A.target.getVisibleGridColumns();t=false;for(s=0,r=x.length;s<r;s++){y=B.getCmp(x[s]);if(!y.lastBox||y.props.width!==y.lastBox.width){(t||(t=[]))[s]=y}}C.columnsChanged=t;A.setProp("columnsChanged",t)}if(A.manageScrollbar){w=q.getScrollbarAdjustment(A);if(w){z=u.getProp("viewOverflowY");if(z===undefined){q.done=false;return}if(!z){if(v){v.invalidate();v.headerContext.invalidate()}u.invalidate();A.invalidate({state:{scrollbarAdjustment:0}})}}}}},finishedLayout:function(b){Ext.layout.container.HBox.prototype.finishedLayout.call(this,b);if(this.owner.ariaRole==="rowgroup"){this.innerCt.dom.setAttribute("role","row")}b.props.columnsChanged=null},convertWidthsToFlexes:function(r){var m=this,o=0,l=m.sizeModels.calculated,p,n,q,i,k;p=r.childItems;n=p.length;for(q=0;q<n;q++){i=p[q];k=i.target;o+=i.props.width;if(!(k.fixed||k.resizable===false)){k.flex=r.childItems[q].flex=i.props.width;k.width=null;i.widthModel=l}}return o!==r.props.width},getScrollbarAdjustment:function(i){var f=this,j=i.state,g=f.owner.grid,h=j.scrollbarAdjustment;if(h===undefined){h=0;if(g.reserveScrollbar||(i.manageScrollbar&&!g.ownerGrid.layout.ownerContext.heightModel.shrinkWrap)){h=f.scrollbarWidth}j.scrollbarAdjustment=h}return h},getContainerSize:function(s){var p=this,o,m,n,r,q,t,l,k;if(p.owner.isRootHeader){k=Ext.layout.container.HBox.prototype.getContainerSize.call(this,s);if(k.gotWidth){k.width-=p.getScrollbarAdjustment(s)}}else{n=s.paddingContext.getPaddingInfo();o=m=0;if(!s.widthModel.shrinkWrap){++m;t=s.getProp("innerWidth");r=(typeof t==="number");if(r){++o;t-=n.width;if(t<0){t=0}}}if(!s.heightModel.shrinkWrap){++m;l=s.getProp("innerHeight");q=(typeof l==="number");if(q){++o;l-=n.height;if(l<0){l=0}}}return{width:t,height:l,needed:m,got:o,gotAll:o===m,gotWidth:r,gotHeight:q}}return k},publishInnerCtSize:function(h){var i=this,g=i.owner,f=h.peek("contentWidth"),j=0;if(f!=null&&g.isRootHeader){j=-h.state.scrollbarAdjustment}return Ext.layout.container.HBox.prototype.publishInnerCtSize.call(this,h,j)}},0,0,0,0,["layout.gridcolumn"],0,[Ext.grid,"ColumnLayout"],0));(Ext.cmd.derive("Ext.grid.ColumnManager",Ext.Base,{alternateClassName:["Ext.grid.ColumnModel"],columns:null,constructor:function(d,f,e){this.headerCt=f;if(e){this.secondHeaderCt=e}this.visibleOnly=!!d},getColumns:function(){if(!this.columns){this.cacheColumns()}return this.columns},hasVariableRowHeight:function(){var g=this,h=g.getColumns(),f=h.length,e;if(g.variableRowHeight==null){g.variableRowHeight=false;for(e=0;!g.variableRowHeight&&e<f;e++){g.variableRowHeight=!!h[e].variableRowHeight}}return g.variableRowHeight},getHeaderIndex:function(b){if(b.isGroupHeader){b=this.getHeaderColumns(b)[0]}return Ext.Array.indexOf(this.getColumns(),b)},getHeaderAtIndex:function(d){var f=this.getColumns(),e=f[d];return e||null},getPreviousSibling:function(f){var d=this.getHeaderIndex(f),e=null;if(d>0){e=this.getColumns()[d-1]}return e},getNextSibling:function(f){var d=this.getHeaderIndex(f),e;if(d!==-1){e=this.getColumns()[d+1]}return e||null},getFirst:function(){var b=this.getColumns();return b.length>0?b[0]:null},getLast:function(){var c=this.getColumns(),d=c.length;return d>0?c[d-1]:null},getHeaderByDataIndex:function(i){var j=this.getColumns(),g=j.length,f,h;for(f=0;f<g;++f){h=j[f];if(h.dataIndex===i){return h}}return null},getHeaderById:function(h){var j=this.getColumns(),g=j.length,f,i;for(f=0;f<g;++f){i=j[f];if(i.getItemId()===h){return i}}return null},getVisibleHeaderClosestToIndex:function(c){var d=this.getHeaderAtIndex(c);if(d&&d.hidden){d=d.next(":not([hidden])")||d.prev(":not([hidden])")}return d},cacheColumns:function(){var c=this.getHeaderColumns(this.headerCt),d=this.secondHeaderCt;if(d){c=c.concat(this.getHeaderColumns(d))}this.columns=c},getHeaderColumns:function(c){var d=this.visibleOnly?c.getVisibleGridColumns():c.getGridColumns();return Ext.Array.clone(d)},invalidate:function(){var b=this.rootColumns;this.columns=this.variableRowHeight=null;if(b){b.invalidate()}},destroy:function(){this.columns=this.rootColumns=null;this.callParent()}},1,0,0,0,0,0,[Ext.grid,"ColumnManager",Ext.grid,"ColumnModel"],function(){this.createAlias("indexOf","getHeaderIndex")}));(Ext.cmd.derive("Ext.grid.NavigationModel",Ext.view.NavigationModel,{focusCls:"x-grid-item-focused",getViewListeners:function(){var b=this;return{focusmove:{element:"el",fn:b.onFocusMove},containermousedown:b.onContainerMouseDown,cellmousedown:b.onCellMouseDown,cellclick:b.onCellClick,itemmousedown:b.onItemMouseDown,itemclick:b.onItemClick,itemcontextmenu:b.onItemClick,scope:b}},initKeyNav:function(d){var c=this;if(!c.keyNav){c.keyNav=[];c.position=new Ext.grid.CellContext(d)}c.keyNav.push(new Ext.util.KeyNav({target:d,ignoreInputFields:true,eventName:"itemkeydown",defaultEventAction:"stopEvent",processEvent:c.processViewEvent,up:c.onKeyUp,down:c.onKeyDown,right:c.onKeyRight,left:c.onKeyLeft,pageDown:c.onKeyPageDown,pageUp:c.onKeyPageUp,home:c.onKeyHome,end:c.onKeyEnd,space:c.onKeySpace,enter:c.onKeyEnter,esc:c.onKeyEsc,113:c.onKeyF2,tab:c.onKeyTab,A:{ctrl:true,handler:c.onSelectAllKeyPress},scope:c}))},addKeyBindings:function(f){var e=this.keyNav.length,d;for(d=0;d<e;d++){this.keyNav[d].addBindings(f)}},enable:function(){var d=this.keyNav.length,c;for(c=0;c<d;c++){this.keyNav[c].enable()}this.disabled=false},disable:function(){var d=this.keyNav.length,c;for(c=0;c<d;c++){this.keyNav[c].disable()}this.disabled=true},processViewEvent:function(g,h,i,l,j){var k=j.getKey();if(g.actionableMode){this.map.ignoreInputFields=false;if(k===j.TAB||k===j.ESC||k===j.F2){return j}}else{this.map.ignoreInputFields=true;return k===j.TAB?null:j}},onCellMouseDown:function(m,l,n,o,j,p,q){var r=Ext.Component.fromElement(q.target,l),k;if(m.actionableMode&&(q.getTarget(null,null,true).isTabbable()||((k=Ext.ComponentManager.getActiveComponent())&&k.owns(q)))){return}if(q.pointerType!=="touch"){this.setPosition(q.position,null,q)}if(r&&r.isFocusable&&r.isFocusable()){m.setActionableMode(true,q.position);r.focus()}},onCellClick:function(o,n,p,r,k,s,m){var q=this,t=Ext.Component.fromElement(m.target,n),l=t&&t.isFocusable&&t.isFocusable();if(o.actionableMode){if(!m.position.isEqual(o.actionPosition)){if(!l){q.setPosition(m.position,null,m)}}q.fireEvent("navigate",{view:o,navigationModel:q,keyEvent:m,previousPosition:q.previousPosition,previousRecordIndex:q.previousRecordIndex,previousRecord:q.previousRecord,previousItem:q.previousItem,previousCell:q.previousCell,previousColumnIndex:q.previousColumnIndex,previousColumn:q.previousColumn,position:m.position,recordIndex:m.position.rowIdx,record:m.position.record,item:m.item,cell:m.position.cellElement,columnIndex:m.position.colIdx,column:m.position.column})}else{if(q.position.isEqual(m.position)||l){q.fireNavigateEvent(m)}else{q.setPosition(m.position,null,m)}}},onFocusMove:function(i){var h=i.target,l=Ext.Component.fromElement(i.delegatedTarget,null,"tableview"),h=i.target,e,j,k;if(l&&Ext.fly(h).is(l.cellSelector)){if(l.actionableModeTabbing){return}l.ownerGrid.setActionableMode(false);e=l.getRecord(h);j=l.getHeaderByCell(h);if(e&&j){k=new Ext.grid.CellContext(l).setPosition(e,j);if(!k.isEqual(this.position)){this.setPosition(k)}}}},onItemMouseDown:function(g,h,i,k,l){var j=this;if(!l.position.cellElement&&(l.pointerType!=="touch")){j.getClosestCell(l);j.setPosition(l.position,null,l)}},onItemClick:function(j,f,h,i,g){if(!g.position.cellElement){this.getClosestCell(g);if(g.pointerType==="touch"){this.setPosition(g.position,null,g)}this.fireNavigateEvent(g)}},getClosestCell:function(r){var m=r.position,q=m.cellElement,b,o,l,n,p,i;if(!q){b=r.getX();o=m.view.getVisibleColumnManager().getColumns();l=o.length;for(n=0;n<l;n++){p=o[n];i=o[n].getBox();if(b>=i.left&&b<i.right){m.setColumn(o[n]);m.rowElement=m.getRow(true);m.cellElement=m.getCell(true);return}}}},deferSetPosition:function(n,h,m,k,i,j){var l=this.view.getFocusTask();l.delay(n,this.setPosition,this,[h,m,k,i,j]);return l},setPosition:function(C,w,v,r,A){var u=this,s,y,z,H,F,G,E,x,B,t=C==null&&w==null,D=u.record==null&&u.recordIndex==null&&u.item==null;if(C&&C.isCellContext){s=C.view}else{if(v&&v.view){s=v.view}else{if(u.lastFocused){s=u.lastFocused.view}else{s=u.view}}}s.getFocusTask().cancel();if(s.destroyed||!s.refreshCounter||!s.ownerCt||t&&D||!s.all.getCount()){return}z=s.getSelectionModel();H=s.dataSource;F=s.getVisibleColumnManager();if(C&&C.isCellContext){x=C.record;G=C.rowIdx;E=C.colIdx;B=C.column;if(H.indexOf(x)===-1){y=s.getScrollable();u.recordIndex=-1;if(y.getPosition().y>=y.getMaxPosition().y-s.all.last(true).offsetHeight){C.rowIdx--}G=Math.min(C.rowIdx,H.getCount()-1);E=Math.min(E,F.getColumns().length);x=H.getAt(G);B=F.getColumns()[E]}}else{if(t){x=G=null}else{if(w==null){w=u.lastFocused?u.lastFocused.column:0}if(typeof C==="number"){G=Math.max(Math.min(C,H.getCount()-1),0);x=H.getAt(C)}else{if(C.isEntity){x=C;G=H.indexOf(x)}else{if(C.tagName){x=s.getRecord(C);G=H.indexOf(x);if(G===-1){x=null}}else{if(D){return}t=true;x=G=null}}}}if(x){if(G===-1){u.recordIndex=-1;x=H.getAt(0);G=0;w=null}if(w==null){if(!(B=u.column)){E=0;B=F.getColumns()[0]}}else{if(typeof w==="number"){B=F.getColumns()[w];E=w}else{B=w;E=F.indexOf(w)}}}else{t=true;B=E=null}}if(G===u.recordIndex&&E===u.columnIndex&&s===u.position.view){return u.focusPosition(u.position)}if(u.cell){u.cell.removeCls(u.focusCls)}u.previousRecordIndex=u.recordIndex;u.previousRecord=u.record;u.previousItem=u.item;u.previousCell=u.cell;u.previousColumn=u.column;u.previousColumnIndex=u.columnIndex;u.previousPosition=u.position.clone();u.selectionStart=z.selectionStart;u.position.setAll(s,u.recordIndex=G,u.columnIndex=E,u.record=x,u.column=B);if(t){u.item=u.cell=null}else{u.focusPosition(u.position,A)}if(!r){z.fireEvent("focuschange",z,u.previousRecord,u.record);s.fireEvent("rowfocus",u.record,u.item,u.recordIndex);s.fireEvent("cellfocus",u.record,u.cell,u.position)}if(v&&!A&&u.cell!==u.previousCell){u.fireNavigateEvent(v)}},focusPosition:function(f){var h=this,e,g;h.item=h.cell=null;if(f&&f.record&&f.column){e=f.view;if(f.rowElement){g=h.item=f.rowElement}else{g=e.getRowByRecord(f.record)}if(g){h.cell=f.cellElement||Ext.fly(g).down(f.column.getCellSelector(),true);if(h.cell){h.cell=new Ext.dom.Fly(h.cell);e.lastFocused=h.lastFocused=h.position.clone();h.focusItem(h.cell);e.focusEl=h.cell}else{h.position.setAll();h.record=h.column=h.recordIndex=h.columnIndex=null}}else{g=e.dataSource.indexOf(f.record);h.position.setAll();h.record=h.column=h.recordIndex=h.columnIndex=null;if(g!==-1&&e.bufferedRenderer){h.lastKeyEvent=null;e.bufferedRenderer.scrollTo(g,false,h.afterBufferedScrollTo,h)}}}},focusItem:function(b){b.addCls(this.focusCls);b.focus()},getCell:function(){return this.cell},getPosition:function(l){var j=this,h=j.position,k,g,i;if(h.record&&h.column){if(l){return h}g=h.view;i=g.dataSource;k=i.indexOf(h.record);if(k===-1){k=h.rowIdx;if(!(h.record=i.getAt(k))){k=-1}}if(k===-1||g.getVisibleColumnManager().indexOf(h.column)===-1){h.setAll();j.record=j.column=j.recordIndex=j.columnIndex=null}else{return h}}return null},getLastFocused:function(){var f=this,e,d=f.lastFocused;if(d&&d.record&&d.column){e=d.view;if(e.dataSource.indexOf(d.record)!==-1&&e.getVisibleColumnManager().indexOf(d.column)!==-1){return d}}},onKeyTab:function(p){var s=!p.shiftKey,r=p.position.clone(),o=r.view,i=p.position.cellElement,n=Ext.fly(i).findTabbableElements(),m,l=o.ownerGrid.actionables,q=l.length,t;p.preventDefault();m=n[Ext.Array.indexOf(n,p.target)+(s?1:-1)];while(!m&&(i=i[s?"nextSibling":"previousSibling"])){r.setColumn(o.getHeaderByCell(i));for(t=0;t<q;t++){l[t].activateCell(r)}if((n=Ext.fly(i).findTabbableElements()).length){m=n[s?0:n.length-1]}}if(m){this.actionPosition=r.view.actionPosition=r;Ext.fly(m).focus();return}if(Ext.isIE){o.el.focus()}o.onRowExit(p.item,p.item[s?"nextSibling":"previousSibling"],s)},onKeyUp:function(d){var e=d.view.walkRecs(d.record,-1),f=this.getPosition();if(e){f.setRow(e);if(!f.getCell(true)){f.navigate(-1)}this.setPosition(f,null,d)}},onKeyDown:function(d){var e=d.record.isExpandingOrCollapsing?null:d.view.walkRecs(d.record,1),f=this.getPosition();if(e){f.setRow(e);if(!f.getCell(true)){f.navigate(-1)}this.setPosition(f,null,d)}},onKeyRight:function(c){var d=this.move("right",c);if(d){this.setPosition(d,null,c)}},onKeyLeft:function(c){var d=this.move("left",c);if(d){this.setPosition(d,null,c)}},onKeyEnter:function(d){var e=["cellclick",d.view,d.position.cellElement,d.position.colIdx,d.record,d.position.rowElement,d.recordIndex,d],f=d.position.getCell();if(f){if(!f.query('[tabIndex="-1"]').length){d.stopEvent();d.view.fireEvent.apply(d.view,e);e[0]="celldblclick";d.view.fireEvent.apply(d.view,e)}if(!this.view.actionableMode){this.view.ownerGrid.setActionableMode(true,this.getPosition())}}},onKeyF2:function(d){var e=this.view.ownerGrid,f=e.actionableMode;e.setActionableMode(!f,f?null:this.getPosition())},onKeyEsc:function(b){this.view.ownerGrid.setActionableMode(false)},move:function(e,g){var h=this,f=h.getPosition();if(f&&f.record){return f.view.walkCells(f,e,g.shiftKey&&(e==="right"||e==="left")?h.vetoRowChange:null,h)}},vetoRowChange:function(b){return this.getPosition().record===b.record},onKeyPageDown:function(j){var k=this,h=j.view,i=k.getRowsVisible(),l,g;if(i){if(h.bufferedRenderer){l=Math.min(j.recordIndex+i,h.dataSource.getCount()-1);k.lastKeyEvent=j;h.bufferedRenderer.scrollTo(l,false,k.afterBufferedScrollTo,k)}else{g=h.walkRecs(j.record,i);k.setPosition(g,null,j)}}},onKeyPageUp:function(j){var k=this,h=j.view,i=k.getRowsVisible(),l,g;if(i){if(h.bufferedRenderer){l=Math.max(j.recordIndex-i,0);k.lastKeyEvent=j;h.bufferedRenderer.scrollTo(l,false,k.afterBufferedScrollTo,k)}else{g=h.walkRecs(j.record,-i);k.setPosition(g,null,j)}}},onKeyHome:function(f){var d=this,e=f.view;if(f.altKey){if(e.bufferedRenderer){d.lastKeyEvent=f;e.bufferedRenderer.scrollTo(0,false,d.afterBufferedScrollTo,d)}else{d.setPosition(e.walkRecs(f.record,-e.dataSource.indexOf(f.record)),null,f)}}else{d.setPosition(f.record,0,f)}},afterBufferedScrollTo:function(c,d){this.setPosition(d,null,this.lastKeyEvent,null,!this.lastKeyEvent)},onKeyEnd:function(f){var d=this,e=f.view;if(f.altKey){if(e.bufferedRenderer){d.lastKeyEvent=f;e.bufferedRenderer.scrollTo(e.store.getCount()-1,false,d.afterBufferedScrollTo,d)}else{d.setPosition(e.walkRecs(f.record,e.dataSource.getCount()-1-e.dataSource.indexOf(f.record)),null,f)}}else{d.setPosition(f.record,f.view.getVisibleColumnManager().getColumns().length-1,f)}},getRowsVisible:function(){var h=false,g=this.view,i=g.all.first(),f,j;if(i){f=i.getHeight();j=g.el.getHeight();h=Math.floor(j/f)}return h},fireNavigateEvent:function(c){var d=this;d.fireEvent("navigate",{view:d.position.view,navigationModel:d,keyEvent:c||new Ext.event.Event({}),previousPosition:d.previousPosition,previousRecordIndex:d.previousRecordIndex,previousRecord:d.previousRecord,previousItem:d.previousItem,previousCell:d.previousCell,previousColumnIndex:d.previousColumnIndex,previousColumn:d.previousColumn,position:d.position,recordIndex:d.recordIndex,record:d.record,selectionStart:d.selectionStart,item:d.item,cell:d.cell,columnIndex:d.columnIndex,column:d.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(i){var k=this,h=k.owner,j=h.ownerGrid,l=h.lockingPartner,g=i.context;i.doSyncRowHeights=l&&l.grid.isVisible()&&j.syncRowHeight;if(!k.columnFlusherId){k.columnFlusherId=k.id+"-columns";k.rowHeightFlusherId=k.id+"-rows"}if(k.owner.bufferedRenderer){k.owner.bufferedRenderer.beforeTableLayout(i)}Ext.layout.component.Auto.prototype.beginLayout.call(this,i);if(i.doSyncRowHeights){if(!i.lockingPartnerContext){(i.lockingPartnerContext=g.getCmp(l)).lockingPartnerContext=i}i.rowHeightSynchronizer=k.owner.syncRowHeightBegin()}(i.headerContext=g.getCmp(k.headerCt)).viewContext=i},beginLayoutCycle:function(c,d){Ext.layout.component.Auto.prototype.beginLayoutCycle.call(this,c,d);if(c.syncRowHeights){c.target.syncRowHeightClear(c.rowHeightSynchronizer);c.syncRowHeights=false}},calculate:function(D){var v=this,G=D.context,B=D.lockingPartnerContext,E=D.headerContext,y=D.ownerCtContext,F=v.owner,z=E.getProp("columnsChanged"),H=D.state,u,C,s,t,x=F.body.dom,r,w,A;if(!F.all.getCount()&&(!x||!F.body.child("table"))){D.setProp("viewOverflowY",false);Ext.layout.component.Auto.prototype.calculate.call(this,D);return}if(z===undefined){v.done=false;return}if(z){if(!(u=H.columnFlusher)){G.queueFlush(H.columnFlusher=u={ownerContext:D,columnsChanged:z,layout:v,id:v.columnFlusherId,flush:v.flushColumnWidths})}if(!u.flushed){v.done=false;return}}if(D.doSyncRowHeights){if(!(t=H.rowHeightFlusher)){if(!(s=H.rowHeights)){H.rowHeights=s=D.rowHeightSynchronizer;v.owner.syncRowHeightMeasure(s);D.setProp("rowHeights",s)}if(!(C=B.getProp("rowHeights"))){v.done=false;return}G.queueFlush(H.rowHeightFlusher=t={ownerContext:D,synchronizer:s,otherSynchronizer:C,layout:v,id:v.rowHeightFlusherId,flush:v.flushRowHeights})}if(!t.flushed){v.done=false;return}}Ext.layout.component.Auto.prototype.calculate.call(this,D);if(!D.heightModel.shrinkWrap){A=false;if(!y.heightModel.shrinkWrap){w=y.target.layout.getContainerSize(y);if(!w.gotHeight){v.done=false;return}r=x.offsetHeight;A=r>w.height}D.setProp("viewOverflowY",A)}},measureContentHeight:function(i){var g=this.owner,j=g.body.dom,f=g.emptyEl,h=0;if(f){h+=f.offsetHeight}if(j){h+=j.offsetHeight}if(i.headerContext.state.boxPlan.tooNarrow){h+=Ext.getScrollbarSize().height}return h},flushColumnWidths:function(){var i=this,l=i.layout,s=i.ownerContext,q=i.columnsChanged,t=s.target,m=q.length,r,o,p,n;if(s.state.columnFlusher!==i){return}for(o=0;o<m;o++){if(!(r=q[o])){continue}p=r.props.width;t.body.select(t.getColumnSizerSelector(r.target)).setWidth(p);n=r.lastBox;if(n){n.width=p}}i.flushed=true;if(!l.pending){s.context.queueLayout(l)}},flushRowHeights:function(){var e=this,d=e.layout,f=e.ownerContext;if(f.state.rowHeightFlusher!==e){return}f.target.syncRowHeightFinish(e.synchronizer,e.otherSynchronizer);e.flushed=true;f.syncRowHeights=true;if(!d.pending){f.context.queueLayout(d)}},finishedLayout:function(d){var e=this,f=Ext.fly(e.owner.getNodeContainer());Ext.layout.component.Auto.prototype.finishedLayout.call(this,d);if(f){f.setWidth(d.headerContext.props.contentWidth)}if(e.owner.bufferedRenderer){e.owner.bufferedRenderer.afterTableLayout(d)}}},0,0,0,0,["layout.tableview"],0,[Ext.view,"TableLayout"],0));(Ext.cmd.derive("Ext.grid.locking.RowSynchronizer",Ext.Base,{constructor:function(f,e){var h=this,g;h.view=f;h.rowEl=e;h.els={};h.add("data",f.rowSelector);for(g=f.rowTpl;g;g=g.nextTpl){if(g.beginRowSync){g.beginRowSync(h)}}},add:function(d,e){var f=Ext.fly(this.rowEl).down(e,true);if(f){this.els[d]={el:f}}},finish:function(o){var n=this,r=n.els,l=o.els,p,m=0,s=0,k,t,q;for(t in r){p=l[t];q=p?p.height:0;k=q-r[t].height;if(k>0){m+=k;Ext.fly(r[t].el).setHeight(q)}else{s-=k}}q=o.rowHeight+s;if(Ext.isIE9&&n.view.ownerGrid.rowLines){q--}if(n.rowHeight+m<q){Ext.fly(n.rowEl).setHeight(q)}},measure:function(){var f=this,d=f.els,e;f.rowHeight=f.rowEl.offsetHeight;for(e in d){d[e].height=d[e].el.offsetHeight}},reset:function(){var c=this.els,d;this.rowEl.style.height="";for(d in c){c[d].el.style.height=""}}},1,0,0,0,0,0,[Ext.grid.locking,"RowSynchronizer"],0));(Ext.cmd.derive("Ext.view.NodeCache",Ext.Base,{statics:{range:document.createRange&&document.createRange()},constructor:function(b){this.view=b;this.clear();this.el=new Ext.dom.Fly()},destroy:function(){var b=this;if(!b.destroyed){b.el.destroy();b.el=b.view=null;b.destroyed=true}b.callParent()},clear:function(h){var j=this,i=j.elements,g=j.statics().range,f;if(j.count&&h){if(g){g.setStartBefore(i[j.startIndex]);g.setEndAfter(i[j.endIndex]);g.deleteContents()}else{for(f in i){Ext.removeNode(i[f])}}}j.elements={};j.count=j.startIndex=0;j.endIndex=-1},fill:function(h,j,k){k=k||0;var m=this,l=m.elements={},n,i=h.length-k;if(!j){j=0}for(n=0;n<i;n++){l[j+n]=h[n+k]}m.startIndex=j;m.endIndex=j+i-1;m.count=i;return this},insert:function(i,g){var k=this,j=k.elements,l,h=g.length;if(k.count){if(i<k.count){for(l=k.endIndex+h;l>=i+h;l--){j[l]=j[l-h];j[l].setAttribute("data-recordIndex",l)}}k.endIndex=k.endIndex+h}else{k.startIndex=i;k.endIndex=i+h-1}for(l=0;l<h;l++,i++){j[i]=g[l];j[i].setAttribute("data-recordIndex",i)}k.count+=h},invoke:function(i,g){var h=this,j,f;i=Ext.dom.Element.prototype[i];for(f=h.startIndex;f<=h.endIndex;f++){j=h.item(f);if(j){i.apply(j,g)}}return h},item:function(h,e){var g=this.elements[h],f=null;if(g){f=e?this.elements[h]:this.el.attach(this.elements[h])}return f},first:function(b){return this.item(this.startIndex,b)},last:function(b){return this.item(this.endIndex,b)},moveBlock:function(i){var k=this,j=k.elements,l,h,m,n;if(!i){return}if(i<0){n=k.startIndex-1;h=k.endIndex;m=1}else{n=k.endIndex+1;h=k.startIndex;m=-1}k.startIndex+=i;k.endIndex+=i;do{n+=m;l=j[n+i]=j[n];l.setAttribute("data-recordIndex",n+i);if(n<k.startIndex||n>k.endIndex){delete j[n]}}while(n!==h);delete j[n]},getCount:function(){return this.count},slice:function(h,f){var i=this.elements,g=[],j;if(!f){f=this.endIndex}else{f=Math.min(this.endIndex,f-1)}for(j=h||this.startIndex;j<=f;j++){g.push(i[j])}return g},replaceElement:function(i,j,g){var h=this.elements,f=(typeof i==="number")?i:this.indexOf(i);if(f>-1){j=Ext.getDom(j);if(g){i=h[f];i.parentNode.insertBefore(j,i);Ext.removeNode(i);j.setAttribute("data-recordIndex",f)}this.elements[f]=j}return this},indexOf:function(d){var f=this.elements,e;d=Ext.getDom(d);for(e=this.startIndex;e<=this.endIndex;e++){if(f[e]===d){return e}}return -1},removeRange:function(r,o,q){var l=this,t=l.elements,m=[],p,n,s,i;if(o==null){o=l.endIndex+1}else{o=Math.min(l.endIndex+1,o+1)}if(r==null){r=l.startIndex}s=o-r;for(n=r,i=o;n<=l.endIndex;n++,i++){p=t[n];if(n<o){m.push(p);if(q){Ext.removeNode(p)}}if(i<=l.endIndex){p=t[n]=t[i];p.setAttribute("data-recordIndex",n)}else{delete t[n]}}l.count-=s;l.endIndex-=s;return m},removeElement:function(l,t){var p=this,m,n,v=p.elements,s,r,u=0,q,o;if(Ext.isArray(l)){m=l;l=[];r=m.length;for(u=0;u<r;u++){n=m[u];if(typeof n!=="number"){n=p.indexOf(n)}if(n>=p.startIndex&&n<=p.endIndex){l[l.length]=n}}Ext.Array.sort(l);r=l.length}else{if(l<p.startIndex||l>p.endIndex){return}r=1;l=[l]}for(q=o=l[0],u=0;q<=p.endIndex;q++,o++){if(u<r&&q===l[u]){o++;u++;if(t){Ext.removeNode(v[q])}}if(o<=p.endIndex&&o>=p.startIndex){s=v[q]=v[o];s.setAttribute("data-recordIndex",q)}else{delete v[q]}}p.endIndex-=r;p.count-=r},scroll:function(x,w,G){var v=this,E=v.view,I=E.store,D=v.elements,N=x.length,A=E.getNodeContainer(),H=E.hasListeners.itemremove,y=E.hasListeners.itemadd,C=v.statics().range,z,M,L,K,F,J,B,i;if(!x.length){return}if(w===-1){if(G){if(H){B=[];i=[]}J=(v.endIndex-G)+1;if(C){C.setStartBefore(D[J]);C.setEndAfter(D[v.endIndex]);C.deleteContents();for(z=J;z<=v.endIndex;z++){M=D[z];delete D[z];if(H){B.push(I.getByInternalId(M.getAttribute("data-recordId")));i.push(M)}}}else{for(z=J;z<=v.endIndex;z++){M=D[z];delete D[z];Ext.removeNode(M);if(H){B.push(I.getByInternalId(M.getAttribute("data-recordId")));i.push(M)}}}E.fireEvent("itemremove",B,J,i,E);v.endIndex-=G}if(x.length){F=E.bufferRender(x,v.startIndex-=N);K=F.children;for(z=0;z<N;z++){D[v.startIndex+z]=K[z]}A.insertBefore(F.fragment,A.firstChild);if(y){E.fireEvent("itemadd",x,v.startIndex,K)}}}else{if(G){if(H){B=[];i=[]}L=v.startIndex+G;if(C){C.setStartBefore(D[v.startIndex]);C.setEndAfter(D[L-1]);C.deleteContents();for(z=v.startIndex;z<L;z++){M=D[z];delete D[z];if(H){B.push(I.getByInternalId(M.getAttribute("data-recordId")));i.push(M)}}}else{for(z=v.startIndex;z<L;z++){M=D[z];delete D[z];Ext.removeNode(M);if(H){B.push(I.getByInternalId(M.getAttribute("data-recordId")));i.push(M)}}}E.fireEvent("itemremove",B,v.startIndex,i,E);v.startIndex=L}F=E.bufferRender(x,v.endIndex+1);K=F.children;for(z=0;z<N;z++){D[v.endIndex+=1]=K[z]}A.appendChild(F.fragment);if(y){E.fireEvent("itemadd",x,v.endIndex+1,K)}}v.count=v.endIndex-v.startIndex+1;return K},sumHeights:function(){var e=0,f=this.elements,d;for(d=this.startIndex;d<=this.endIndex;d++){e+=f[d].offsetHeight}return e}},1,0,0,0,0,0,[Ext.view,"NodeCache"],function(){Ext.dom.CompositeElementLite.importElementMethods.call(this)}));(Ext.cmd.derive("Ext.view.Table",Ext.view.View,{alternateClassName:"Ext.grid.View",isTableView:true,config:{selectionModel:{type:"rowmodel"}},inheritableStatics:{normalSideEvents:["deselect","select","beforedeselect","beforeselect","selectionchange"],events:["blur","focus","move","resize","destroy","beforedestroy","boxready","afterrender","render","beforerender","removed","hide","beforehide","show","beforeshow","enable","disable","added","deactivate","beforedeactivate","activate","beforeactivate","cellkeydown","beforecellkeydown","cellmouseup","beforecellmouseup","cellmousedown","beforecellmousedown","cellcontextmenu","beforecellcontextmenu","celldblclick","beforecelldblclick","cellclick","beforecellclick","refresh","itemremove","itemadd","beforeitemupdate","itemupdate","viewready","beforerefresh","unhighlightitem","highlightitem","focuschange","containerkeydown","containercontextmenu","containerdblclick","containerclick","containermouseout","containermouseover","containermouseup","containermousedown","beforecontainerkeydown","beforecontainercontextmenu","beforecontainerdblclick","beforecontainerclick","beforecontainermouseout","beforecontainermouseover","beforecontainermouseup","beforecontainermousedown","itemkeydown","itemcontextmenu","itemdblclick","itemclick","itemmouseleave","itemmouseenter","itemmouseup","itemmousedown","rowclick","rowcontextmenu","rowdblclick","rowkeydown","rowmouseup","rowmousedown","rowkeydown","beforeitemkeydown","beforeitemcontextmenu","beforeitemdblclick","beforeitemclick","beforeitemmouseleave","beforeitemmouseenter","beforeitemmouseup","beforeitemmousedown","statesave","beforestatesave","staterestore","beforestaterestore","uievent","groupcollapse","groupexpand","scroll"]},scrollable:true,componentLayout:"tableview",baseCls:"x-grid-view",unselectableCls:"x-unselectable",firstCls:"x-grid-cell-first",lastCls:"x-grid-cell-last",itemCls:"x-grid-item",selectedItemCls:"x-grid-item-selected",selectedCellCls:"x-grid-cell-selected",focusedItemCls:"x-grid-item-focused",overItemCls:"x-grid-item-over",altRowCls:"x-grid-item-alt",dirtyCls:"x-grid-dirty-cell",rowClsRe:new RegExp("(?:^|\\s*)x-grid-item-alt(?:\\s+|$)","g"),cellRe:new RegExp("x-grid-cell-([^\\s]+)(?:\\s|$)",""),positionBody:true,positionCells:false,stripeOnUpdate:null,actionableMode:false,trackOver:true,getRowClass:null,stripeRows:true,markDirty:true,ariaRole:"rowgroup",rowAriaRole:"row",cellAriaRole:"gridcell",tpl:["{%","view = values.view;","if (!(columns = values.columns)) {","columns = values.columns = view.ownerCt.getVisibleColumnManager().getColumns();","}","values.fullWidth = 0;","for (i = 0, len = columns.length; i < len; i++) {","column = columns[i];","values.fullWidth += (column.cellWidth = column.lastBox ? column.lastBox.width : column.width || column.minWidth);","}","tableCls=values.tableCls=[];","%}",'<div class="x-grid-item-container" role="presentation" style="width:{fullWidth}px">',"{[view.renderTHead(values, out, parent)]}","{%","view.renderRows(values.rows, values.columns, values.viewStartIndex, out);","%}","{[view.renderTFoot(values, out, parent)]}","</div>","{% ","view = columns = column = null;","%}",{definitions:"var view, tableCls, columns, i, len, column;",priority:0}],outerRowTpl:['<table id="{rowId}" role="presentation" ','data-boundView="{view.id}" ','data-recordId="{record.internalId}" ','data-recordIndex="{recordIndex}" ','class="{[values.itemClasses.join(" ")]}" cellpadding="0" cellspacing="0" style="{itemStyle};width:0">',"{%","this.nextTpl.applyOut(values, out, parent)","%}","</table>",{priority:9999}],rowTpl:["{%",'var dataRowCls = values.recordIndex === -1 ? "" : " x-grid-row";',"%}",'<tr class="{[values.rowClasses.join(" ")]} {[dataRowCls]}"',' role="{rowRole}" {rowAttr:attributes}>','<tpl for="columns">{%',"parent.view.renderCell(values, parent.record, parent.recordIndex, parent.rowIndex, xindex - 1, out, parent)","%}","</tpl>","</tr>",{priority:0}],cellTpl:['<td class="{tdCls}" role="{cellRole}" {tdAttr} {cellAttr:attributes}',' style="width:{column.cellWidth}px;<tpl if="tdStyle">{tdStyle}</tpl>"',' tabindex="-1" data-columnid="{[values.column.getItemId()]}">','<div {unselectableAttr} class="x-grid-cell-inner {innerCls}" ','style="text-align:{align};<tpl if="style">{style}</tpl>" ',"{cellInnerAttr:attributes}>{value}</div>","</td>",{priority:0}],refreshSelmodelOnRefresh:false,tableValues:{},rowValues:{itemClasses:[],rowClasses:[]},cellValues:{classes:["x-grid-cell x-grid-td"]},constructor:function(b){if(b.grid.isTree){b.baseCls="x-tree-view"}Ext.view.View.prototype.constructor.call(this,b)},hasVariableRowHeight:function(d){var c=this;return c.variableRowHeight||c.store.isGrouped()||c.getVisibleColumnManager().hasVariableRowHeight()||(!d&&c.lockingPartner&&c.lockingPartner.hasVariableRowHeight(true))},initComponent:function(){var b=this;if(b.columnLines){b.addCls(b.grid.colLinesCls)}if(b.rowLines){b.addCls(b.grid.rowLinesCls)}b.body=new Ext.dom.Fly();b.body.id=b.id+"gridBody";if(!b.trackOver){b.overItemCls=null}b.headerCt.view=b;b.grid.view=b;b.initFeatures(b.grid);b.itemSelector=b.getItemSelector();b.all=new Ext.view.NodeCache(b);Ext.view.View.prototype.initComponent.call(this)},applySelectionModel:function(g,j){var k=this,l=k.ownerGrid,i=g.type,h=k.disableSelection||l.disableSelection;if(!j){if(!(g&&g.isSelectionModel)){g=l.selModel||g}}if(g){if(g.isSelectionModel){g.allowDeselect=l.allowDeselect||g.selectionMode!=="SINGLE";g.locked=h}else{if(typeof g==="string"){g={type:g}}else{g.type=l.selType||g.selType||g.type||i}if(!g.mode){if(l.simpleSelect){g.mode="SIMPLE"}else{if(l.multiSelect){g.mode="MULTI"}}}g=Ext.Factory.selection(Ext.apply({allowDeselect:l.allowDeselect,locked:h},g))}}return g},updateSelectionModel:function(e,f){var d=this;if(f){f.un({scope:d,lastselectedchanged:d.updateBindSelection,selectionchange:d.updateBindSelection});Ext.destroy(d.selModelRelayer)}d.selModelRelayer=d.relayEvents(e,["selectionchange","beforeselect","beforedeselect","select","deselect","focuschange"]);e.on({scope:d,lastselectedchanged:d.updateBindSelection,selectionchange:d.updateBindSelection});d.selModel=e},getVisibleColumnManager:function(){return this.ownerCt.getVisibleColumnManager()},getColumnManager:function(){return this.ownerCt.getColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},moveColumn:function(J,i,C){var j=this,v=C>1,A=v&&document.createRange?document.createRange():null,I=v&&!A?document.createDocumentFragment():null,B=i,z=j.getGridColumns().length,u=z-1,F=(j.firstCls||j.lastCls)&&(i===0||i===z||J===0||J===u),x,y,D,w,H,G,E;if(j.rendered&&i!==J){D=j.el.query(j.rowSelector);for(x=0,w=D.length;x<w;x++){H=D[x];G=H.childNodes;if(F){if(G.length===1){Ext.fly(G[0]).addCls(j.firstCls);Ext.fly(G[0]).addCls(j.lastCls);continue}if(J===0){Ext.fly(G[0]).removeCls(j.firstCls);Ext.fly(G[1]).addCls(j.firstCls)}else{if(J===u){Ext.fly(G[u]).removeCls(j.lastCls);Ext.fly(G[u-1]).addCls(j.lastCls)}}if(i===0){Ext.fly(G[0]).removeCls(j.firstCls);Ext.fly(G[J]).addCls(j.firstCls)}else{if(i===z){Ext.fly(G[u]).removeCls(j.lastCls);Ext.fly(G[J]).addCls(j.lastCls)}}}if(v){if(A){A.setStartBefore(G[J]);A.setEndAfter(G[J+C-1]);I=A.extractContents()}else{for(y=0;y<C;y++){I.appendChild(G[J])}}H.insertBefore(I,G[B]||null)}else{H.insertBefore(G[J],G[B]||null)}}E=j.el.query("colgroup");for(x=0,w=E.length;x<w;x++){H=E[x];if(v){if(A){A.setStartBefore(H.childNodes[J]);A.setEndAfter(H.childNodes[J+C-1]);I=A.extractContents()}else{for(y=0;y<C;y++){I.appendChild(H.childNodes[J])}}H.insertBefore(I,H.childNodes[B]||null)}else{H.insertBefore(H.childNodes[J],H.childNodes[B]||null)}}}},scrollToTop:Ext.emptyFn,addElListener:function(e,f,d){this.mon(this,e,f,d,{element:"el"})},getGridColumns:function(){return this.ownerCt.getVisibleColumnManager().getColumns()},getHeaderAtIndex:function(b){return this.ownerCt.getVisibleColumnManager().getHeaderAtIndex(b)},getCell:function(e,d){var f=this.getRow(e);if(typeof d==="number"){d=this.getHeaderAtIndex(d)}return Ext.fly(f).down(d.getCellSelector())},getFeature:function(c){var d=this.featuresMC;if(d){return d.get(c)}},findFeature:function(b){if(this.features){return Ext.Array.findBy(this.features,function(a){if(a.ftype===b){return true}})}},initFeatures:function(k){var i=this,l,j,g,h;i.tpl=Ext.XTemplate.getTpl(this,"tpl");i.rowTpl=Ext.XTemplate.getTpl(this,"rowTpl");i.addRowTpl(Ext.XTemplate.getTpl(this,"outerRowTpl"));i.cellTpl=Ext.XTemplate.getTpl(this,"cellTpl");i.featuresMC=new Ext.util.MixedCollection();j=i.features=i.constructFeatures();h=j?j.length:0;for(l=0;l<h;l++){g=j[l];g.view=i;g.grid=k;i.featuresMC.add(g);g.init(k)}},renderTHead:function(g,l,j){var i=g.view.headerFns,h,k;if(i){for(k=0,h=i.length;k<h;++k){i[k].call(this,g,l,j)}}},addHeaderFn:function(d){var c=this.headerFns;if(!c){c=this.headerFns=[]}c.push(d)},renderTFoot:function(g,l,j){var i=g.view.footerFns,h,k;if(i){for(k=0,h=i.length;k<h;++k){i[k].call(this,g,l,j)}}},addFooterFn:function(d){var c=this.footerFns;if(!c){c=this.footerFns=[]}c.push(d)},addTpl:function(b){return this.insertTpl("tpl",b)},addRowTpl:function(b){return this.insertTpl("rowTpl",b)},addCellTpl:function(b){return this.insertTpl("cellTpl",b)},insertTpl:function(h,i){var j=this,g,f;if(i.isTemplate){i=Ext.Object.chain(i)}else{i=new Ext.XTemplate("{%this.nextTpl.applyOut(values, out, parent);%}",i)}for(g=j[h];i.priority<g.priority;g=g.nextTpl){f=g}if(f){f.nextTpl=i}else{j[h]=i}i.nextTpl=g;return i},tplApplyOut:function(e,d,f){if(this.before){if(this.before(e,d,f)===false){return}}this.nextTpl.applyOut(e,d,f);if(this.after){this.after(e,d,f)}},constructFeatures:function(){var i=this,j=i.features,k,g,l=0,h;if(j){g=[];h=j.length;for(;l<h;l++){k=j[l];if(!k.isFeature){k=Ext.create("feature."+k.ftype,k)}g[l]=k}}return g},beforeRender:function(){Ext.view.View.prototype.beforeRender.call(this);if(!this.enableTextSelection){this.protoEl.unselectable()}},getElConfig:function(){var b=Ext.view.View.prototype.getElConfig.call(this);delete b["aria-hidden"];delete b["aria-disabled"];return b},onBindStore:function(e){var d=this,f=d.bufferedRenderer;if(f&&f.store!==e){f.bindStore(e)}if(d.all&&d.all.getCount()){if(f){f.setBodyTop(0)}d.clearViewEl()}Ext.view.View.prototype.onBindStore.apply(this,arguments)},getStoreListeners:function(){var b=Ext.view.View.prototype.getStoreListeners.call(this);if(this.bufferedRenderer){delete b.clear}b.beforepageremove=this.beforePageRemove;return b},beforePageRemove:function(h,e){var g=this.all,f=h.getPageSize();if(g.startIndex>=(e-1)*f&&g.endIndex<=(e*f-1)){h.get(e);return false}},onViewScroll:function(d,e,f){if(!this.ignoreScroll){Ext.view.View.prototype.onViewScroll.call(this,d,e,f)}},createRowElement:function(g,l,k){var j=this,i=j.renderBuffer,h=j.collectData([g],l);h.columns=k;j.tpl.overwrite(i,h);j.cleanupData();return Ext.fly(i).down(j.getNodeContainerSelector(),true).firstChild},bufferRender:function(l,k){var j=this,i=j.renderBuffer,h,g=document.createRange?document.createRange():null;j.tpl.overwrite(i,j.collectData(l,k));j.cleanupData();Ext.fly(i).saveTabbableState({skipSelf:true,includeHidden:true});i=Ext.fly(i).down(j.getNodeContainerSelector(),true);if(g){g.selectNodeContents(i);h=g.extractContents()}else{h=document.createDocumentFragment();while(i.firstChild){h.appendChild(i.firstChild)}}return{fragment:h,children:Ext.Array.toArray(h.childNodes)}},collectData:function(e,f){var d=this;d.rowValues.view=d;d.tableValues.view=d;d.tableValues.rows=e;d.tableValues.columns=null;d.tableValues.viewStartIndex=f;d.tableValues.touchScroll=d.touchScroll;d.tableValues.tableStyle="width:"+d.headerCt.getTableWidth()+"px";return d.tableValues},cleanupData:function(){var b=this.tableValues;b.view=b.columns=b.rows=this.rowValues.view=null},refreshSize:function(f){var d=this,e=d.getBodySelector();if(e){d.body.attach(d.el.down(e,true))}if(!d.hasLoadingHeight){Ext.suspendLayouts();Ext.view.View.prototype.refreshSize.apply(this,arguments);if(f||(d.hasVariableRowHeight()&&d.dataSource.getCount())){d.grid.updateLayout()}Ext.resumeLayouts(true)}},clearViewEl:function(r){var n=this,m=n.all,l=n.getStore(),p,o,k,i=m.slice(),q=[];if(n.hasListeners.itemremove){for(p=m.startIndex;p<=m.endIndex;p++){q.push(l.getByInternalId(m.item(p,true).getAttribute("data-recordId")))}}n.fireEvent("itemremove",q,m.startIndex,i,n);Ext.view.View.prototype.clearViewEl.call(this);o=Ext.fly(n.getNodeContainer());if(o&&!r){k=n.getTargetEl();if(k.dom!==o.dom){o.destroy()}}},getMaskTarget:function(){return this.ownerCt.body},statics:{getBoundView:function(b){return Ext.getCmp(b.getAttribute("data-boundView"))}},getRecord:function(b){if(this.store.destroyed){return}if(b.isModel){return b}b=this.getNode(b);if(b){return this.dataSource.getByInternalId(b.getAttribute("data-recordId"))}},indexOf:function(b){b=this.getNode(b);if(!b&&b!==0){return -1}return this.all.indexOf(b)},indexInStore:function(b){return b?this.dataSource.indexOf(this.getRecord(b)):-1},indexOfRow:function(d){var f=this.dataSource,e;if(d.isCollapsedPlaceholder){e=f.indexOfPlaceholder(d)}else{e=f.indexOf(d)}return e},renderRows:function(l,n,o,i){var m=this,k=m.rowValues,j=l.length,p;k.view=m;k.columns=n;k.rowRole=m.rowAriaRole;m.cellValues.cellRole=m.cellAriaRole;for(p=0;p<j;p++,o++){k.itemClasses.length=k.rowClasses.length=0;m.renderRow(l[p],o,i)}k.view=k.columns=k.record=null},renderColumnSizer:function(h,n){var l=h.columns||this.getGridColumns(),i=l.length,m,j,k;n.push('<colgroup role="presentation">');for(m=0;m<i;m++){j=l[m];k=j.cellWidth?j.cellWidth:Ext.grid.header.Container.prototype.defaultWidth;n.push('<col role="presentation" class="',"x-","grid-cell-",l[m].getItemId(),'" style="width:'+k+'px">')}n.push("</colgroup>")},renderRow:function(r,x,s){var p=this,t=x===-1,q=p.selectionModel,m=p.rowValues,u=m.itemClasses,v=m.rowClasses,w=p.itemCls,n,o=p.rowTpl;m.rowAttr={};m.record=r;m.recordId=r.internalId;m.recordIndex=p.store.indexOf(r);m.rowIndex=x;m.rowId=p.getRowId(r);m.itemCls=m.rowCls="";if(!m.columns){m.columns=p.ownerCt.getVisibleColumnManager().getColumns()}u.length=v.length=0;if(!t){u[0]=w;if(!p.ownerCt.disableSelection&&q.isRowSelected){if(q.isRowSelected(r)){u.push(p.selectedItemCls)}}if(p.stripeRows&&x%2!==0){u.push(p.altRowCls)}if(p.getRowClass){n=p.getRowClass(r,x,null,p.dataSource);if(n){v.push(n)}}}if(s){o.applyOut(m,s,p.tableValues)}else{return o.apply(m,p.tableValues)}},renderCell:function(C,z,A,t,x,B){var v=this,E,y=v.selectionModel,w=v.cellValues,D=w.classes,F=z.data[C.dataIndex],s=v.cellTpl,r,u,q=v.navigationModel.getPosition();w.record=z;w.column=C;w.recordIndex=A;w.rowIndex=t;w.columnIndex=w.cellIndex=x;w.align=C.align;w.innerCls=C.innerCls;w.tdCls=w.tdStyle=w.tdAttr=w.style="";w.unselectableAttr=v.enableTextSelection?"":'unselectable="on"';D[1]=C.getCellId();u=2;if(C.renderer&&C.renderer.call){E=v.ownerCt.columnManager.getHeaderIndex(C);r=C.renderer.call(C.usingDefaultRenderer?C:C.scope||v.ownerCt,F,w,z,A,E,v.dataSource,v);if(w.css){z.cssWarning=true;w.tdCls+=" "+w.css;w.css=null}if(w.tdCls){D[u++]=w.tdCls}}else{r=F}w.value=(r==null||r==="")?C.emptyCellText:r;if(C.tdCls){D[u++]=C.tdCls}if(v.markDirty&&z.dirty&&z.isModified(C.dataIndex)){D[u++]=v.dirtyCls}if(C.isFirstVisible){D[u++]=v.firstCls}if(C.isLastVisible){D[u++]=v.lastCls}if(!v.enableTextSelection){D[u++]=v.unselectableCls}if(y&&(y.isCellModel||y.isSpreadsheetModel)&&y.isCellSelected(v,A,C)){D[u++]=v.selectedCellCls}if(q&&q.record.id===z.id&&q.column===C){D[u++]=v.focusedItemCls}D.length=u;w.tdCls=D.join(" ");s.applyOut(w,B);w.column=w.record=null},getRow:function(d){var c;if((!d&&d!==0)||!this.rendered){return null}if(d.target){d=d.target}if(Ext.isString(d)){return Ext.fly(d).down(this.rowSelector,true)}if(Ext.isNumber(d)){c=this.all.item(d);return c&&c.down(this.rowSelector,true)}if(d.isModel){return this.getRowByRecord(d)}c=Ext.fly(d);if(c.is(this.itemSelector)){return this.getRowFromItem(c)}return c.findParent(this.rowSelector,this.getTargetEl())},getRowId:function(b){return this.id+"-record-"+b.internalId},constructRowId:function(b){return this.id+"-record-"+b},getNodeById:function(b){b=this.constructRowId(b);return this.retrieveNode(b,false)},getRowById:function(b){b=this.constructRowId(b);return this.retrieveNode(b,true)},getNodeByRecord:function(b){return this.retrieveNode(this.getRowId(b),false)},getRowByRecord:function(b){return this.retrieveNode(this.getRowId(b),true)},getRowFromItem:function(h){var g=Ext.getDom(h).tBodies[0].childNodes,f=g.length,e;for(e=0;e<f;e++){if(Ext.fly(g[e]).is(this.rowSelector)){return g[e]}}},retrieveNode:function(f,d){var e=this.el.getById(f,true);if(d&&e){return Ext.fly(e).down(this.rowSelector,true)}return e},updateIndexes:Ext.emptyFn,bodySelector:"div.x-grid-item-container",nodeContainerSelector:"div.x-grid-item-container",itemSelector:"table.x-grid-item",rowSelector:"tr.x-grid-row",cellSelector:"td.x-grid-cell",sizerSelector:".x-grid-cell",innerSelector:"div.x-grid-cell-inner",getBodySelector:function(){return this.bodySelector},getColumnSizerSelector:function(c){var d=this.sizerSelector+"-"+c.getItemId();return"td"+d+",col"+d},getItemSelector:function(){return this.itemSelector},getCellSelector:function(b){return b?b.getCellSelector():this.cellSelector},getCellInnerSelector:function(b){return this.getCellSelector(b)+" "+this.innerSelector},addRowCls:function(d,e){var f=this.getRow(d);if(f){Ext.fly(f).addCls(e)}},removeRowCls:function(d,e){var f=this.getRow(d);if(f){Ext.fly(f).removeCls(e)}},onRowSelect:function(f){var d=this,e;d.addItemCls(f,d.selectedItemCls);e=d.getRow(f);if(e){e.setAttribute("aria-selected",true)}if(Ext.isIE8){d.repaintBorder(f+1)}},onRowDeselect:function(f){var d=this,e;d.removeItemCls(f,d.selectedItemCls);e=d.getRow(f);if(e){e.removeAttribute("aria-selected")}if(Ext.isIE8){d.repaintBorder(f+1)}},onCellSelect:function(c){var d=this.getCellByPosition(c);if(d){d.addCls(this.selectedCellCls);d.dom.setAttribute("aria-selected",true)}},onCellDeselect:function(c){var d=this.getCellByPosition(c,true);if(d){Ext.fly(d).removeCls(this.selectedCellCls);d.removeAttribute("aria-selected")}},getCellInclusive:function(f,e){if(f){var h=this.getRow(f.row),g=this.ownerCt.getColumnManager().getHeaderAtIndex(f.column);if(g&&h){return Ext.fly(h).down(this.getCellSelector(g),e)}}return false},getCellByPosition:function(g,j){if(g){var f=g.view||this,i=f.getRow(g.record||g.row),h=g.column.isColumn?g.column:f.getVisibleColumnManager().getHeaderAtIndex(g.column);if(h&&i){return Ext.fly(i).down(f.getCellSelector(h),j)}}return false},onFocusEnter:function(q){var p=this,n=q.fromComponent,l=p.getNavigationModel(),s,e=p.bufferedRenderer,o,t,m,r;if(p.actionableMode){return}q=q.event;if(!p.cellFocused&&p.all.getCount()&&p.dataSource.getCount()){m=q.getTarget();if(Ext.fly(m).is(p.getCellSelector())){s=new Ext.grid.CellContext(p).setPosition(p.getRecord(m),p.getHeaderByCell(m))}else{if(m&&Ext.fly(m).isFocusable()&&p.el.contains(m)&&m!==p.el.dom){p.ownerGrid.setActionableMode(true,new Ext.grid.CellContext(p).setPosition(p.getRecord(m),p.getHeaderByCell(Ext.fly(m).up(p.getCellSelector()))));Ext.fly(m).focus()}else{s=p.lastFocused;if(s){r=p.getScrollable();if(!r||r.isInView(s.getRow()).y){o=s.record}}else{s=new Ext.grid.CellContext((p.isNormalView&&p.lockingPartner.grid.isVisible())?p.lockingPartner:p).setColumn(0)}if(n&&n.isColumn&&n.getView()===p){s.view=p;s.setColumn(n)}if(!o){t=e?e.getFirstVisibleRowIndex():0;o=p.dataSource.getAt(t);while(o&&o.isNonData){t++;o=p.dataSource.getAt(t)}if(o){s.setRow(o)}else{s=null}}if(!s){q.stopEvent();p.el.focus();return}}}}if(s){l.setPosition(s,null,q,null,true);p.cellFocused=!!l.getPosition();if(p.cellFocused){p.el.dom.setAttribute("tabIndex","-1");p.toggleChildrenTabbability(false)}}Ext.Component.prototype.onFocusEnter.call(p,q)},onFocusLeave:function(f){var d=this,e=!d.lockingPartner||!f.toComponent||(f.toComponent!==d.lockingPartner&&!d.lockingPartner.isAncestor(f.toComponent));if(!d.refreshing){if(d.cellFocused){if(e){d.getNavigationModel().setPosition(null,null,f.event,null,true)}d.cellFocused=false;d.focusEl=d.el;d.focusEl.dom.setAttribute("tabIndex",0)}if(e){if(d.ownerGrid.actionableMode){d.ownerGrid.setActionableMode(false)}}Ext.Component.prototype.onFocusLeave.call(d,f)}},onRowFocus:function(g,e,f){var h=this;if(e){h.addItemCls(g,h.focusedItemCls);if(!f){h.focusRow(g)}}else{h.removeItemCls(g,h.focusedItemCls)}if(Ext.isIE8){h.repaintBorder(g+1)}},focusRow:function(g,f){var h=this,e=h.getFocusTask();if(f){e.delay(Ext.isNumber(f)?f:10,h.focusRow,h,[g,false]);return}e.cancel();if(h.isVisible(true)){h.getNavigationModel().setPosition(h.getRecord(g))}},focusNode:function(c,d){this.focusRow(c,d)},scrollRowIntoView:function(c,d){c=this.getRow(c);if(c){this.scrollElIntoView(c,false,d)}},focusCell:function(f,j){var h=this,g,i=h.getFocusTask();if(j){i.delay(Ext.isNumber(j)?j:10,h.focusCell,h,[f,false]);return}i.cancel();if(h.isVisible(true)&&(g=h.getCellByPosition(f))){h.getNavigationModel().setPosition(f)}},getLastFocused:function(){var c=this,d=c.lastFocused;if(d&&d.record&&d.column){if(c.dataSource.indexOf(d.record)!==-1&&c.getVisibleColumnManager().indexOf(d.column)!==-1&&c.getNode(d.record)){return d}}},scrollCellIntoView:function(d,c){if(d.isCellContext){d=this.getCellByPosition(d)}if(d){this.scrollElIntoView(d,null,c)}},scrollElIntoView:function(h,g,e){var f=this.getScrollable();if(f){f.scrollIntoView(h,g,e)}},syncRowHeightBegin:function(){var m=this,k=m.all,n=k.count,p=[],l=Ext.grid.locking.RowSynchronizer,i,j,o;for(i=0,j=k.startIndex;i<n;i++,j++){p[i]=o=new l(m,k.elements[j]);o.reset()}return p},syncRowHeightClear:function(f){var i=this,h=i.all,j=h.count,g;for(g=0;g<j;g++){f[g].reset()}},syncRowHeightMeasure:function(d){var f=d.length,e;for(e=0;e<f;e++){d[e].measure()}},syncRowHeightFinish:function(f,i){var j=f.length,h=this.bufferedRenderer,g;for(g=0;g<j;g++){f[g].finish(i[g])}if(h){h.syncRowHeightsFinish()}},handleUpdate:function(ae,al,Z,ab){Z=Z||Ext.data.Model.EDIT;var K=this,ak=K.store.indexOf(al),T=K.rowTpl,ag=K.markDirty,L=K.dirtyCls,Y=Z!==Ext.data.Model.EDIT,N=[],i=K.variableRowHeight,R=0,Q=K.ownerCt,ao=K.cellFly||(K.self.prototype.cellFly=new Ext.dom.Fly()),X,ad,aj,aa,V,P,ah,O,ap,am,S,W,af,aq,an,ac,M,ar,ai,U;if(K.viewReady){X=K.getNodeByRecord(al);if(X){if(al.isCollapsedPlaceholder){Ext.fly(X).syncContent(K.createRowElement(al,K.indexOfRow(al)));return}O=K.overItemCls;ap=K.ownerCt.getVisibleColumnManager().getColumns();for(W=0,S=ap.length;W<S;W++){am=ap[W];if(am.preventUpdate){aq=Ext.fly(X).down(am.getCellSelector(),true);if(aq&&!Y&&ag){ao.attach(aq);if(al.isModified(am.dataIndex)){ao.addCls(L)}else{ao.removeCls(L)}}}else{af=K.shouldUpdateCell(al,am,ab);if(af){R=R|af;N[N.length]=am;i=i||am.variableRowHeight}}}K.fireEvent("beforeitemupdate",al,ak,X,N);if(K.getRowClass||!K.getRowFromItem(X)||(R&1)||(X.tBodies[0].childNodes.length>1)){ai=X._extData;aj=K.createRowElement(al,K.indexOfRow(al),N);if(Ext.fly(X,"_internal").hasCls(O)){Ext.fly(aj).addCls(O)}if(Ext.isIE9m&&X.mergeAttributes){X.mergeAttributes(aj,true)}else{aa=aj.attributes;V=aa.length;for(ah=0;ah<V;ah++){P=aa[ah].name;if(P!=="id"){X.setAttribute(P,aa[ah].value)}}}if(ai){ai.isSynchronized=false}if(ap.length&&(ad=K.getRow(X))){K.updateColumns(ad,Ext.fly(aj).down(K.rowSelector,true),N)}while(T){if(T.syncContent){if(T.syncContent(X,aj,ab?N:null)===false){break}}T=T.nextTpl}}else{for(W=0,S=N.length;W<S;W++){am=N[W];an=am.dataIndex;ac=al.get(an);aq=Ext.fly(X).down(am.getCellSelector(),true);ao.attach(aq);if(!Y&&ag){if(al.isModified(am.dataIndex)){ao.addCls(L)}else{ao.removeCls(L)}}M=am.usingDefaultRenderer;ar=M?am:am.scope;if(am.updater){Ext.callback(am.updater,ar,[aq,ac,al,K,K.dataSource],0,am,Q)}else{if(am.renderer){ac=Ext.callback(am.renderer,ar,[ac,null,al,0,0,K.dataSource,K],0,am,Q)}U=ac==null||ac==="";ac=U?am.emptyCellText:ac;if(am.producesHTML||U){ao.down(K.innerSelector,true).innerHTML=ac}else{ao.down(K.innerSelector,true).childNodes[0].data=ac}}if(K.highlightClass){Ext.fly(aq).addCls(K.highlightClass);if(!K.changedCells){K.self.prototype.changedCells=[];K.prototype.clearChangedTask=new Ext.util.DelayedTask(K.clearChangedCells,K.prototype);K.clearChangedTask.delay(K.unhighlightDelay)}K.changedCells.push({cell:aq,cls:K.highlightClass,expires:Ext.Date.now()+1000})}}}if(Y&&ag&&!al.dirty){Ext.fly(X,"_internal").select("."+L).removeCls(L)}if(i){Ext.suspendLayouts()}K.fireEvent("itemupdate",al,ak,X);if(i){K.ownerGrid.updateLayout();Ext.resumeLayouts(true)}}}},afterComponentLayout:function(){var b;Ext.view.View.prototype.afterComponentLayout.apply(this,arguments);if(this.touchScroll&&!this.bufferedRenderer&&(b=this.getScrollable())){b.refresh()}},clearChangedCells:function(){var i=this,f=Ext.Date.now(),h;for(var j=0,g=i.changedCells.length;j<g;){h=i.changedCells[j];if(h.expires<=f){Ext.fly(h.cell).removeCls(h.highlightClass);Ext.Array.erase(i.changedCells,j,1);g--}else{break}}if(g){i.clearChangedTask.delay(i.unhighlightDelay)}},updateColumns:function(t,s,r){var u=this,A,B,v,z,p=r.length,q,y,o,w,x=u.getCellSelector();if(t.mergeAttributes){t.mergeAttributes(s,true)}else{A=s.attributes;B=A.length;for(z=0;z<B;z++){v=A[z].name;if(v!=="id"){t.setAttribute(v,A[z].value)}}}for(q=0;q<p;q++){y=r[q];x=u.getCellSelector(y);o=Ext.fly(t).selectNode(x);w=Ext.fly(s).selectNode(x);Ext.fly(o).syncContent(w)}},shouldUpdateCell:function(e,f,d){return f.shouldUpdateCell(e,d)},refresh:function(){var d=this,e,f=d.saveFocusState();if(d.destroying){return}Ext.view.View.prototype.refresh.apply(this,arguments);f();d.headerCt.setSortState();if(d.touchScroll&&d.el&&!d.all.getCount()&&d.headerCt&&d.headerCt.tooNarrow){e=d.getScrollable();if(e&&e.isTouchScroller){e.setSize({x:d.headerCt.getTableWidth(),y:e.getSize().y})}}},processContainerEvent:function(c){var d=Ext.Component.fromElement(c.target.parentNode);if(d&&d.up(this.ownerCt)){return false}},processItemEvent:function(I,v,B,w){var e=this,z=e.self,i=z.EventMap,G=w.type,E=e.features,x=E.length,y,C,A,F,H,u=w.position=e.eventPosition||(e.eventPosition=new Ext.grid.CellContext()),D,J;if(Ext.isIE&&G==="mouseup"&&!w.within(e.el)){return false}if(e.indexInStore(v)!==-1){D=u.rowElement=Ext.fly(v).down(e.rowSelector,true);J=w.getTarget(e.getCellSelector(),D);G=z.TouchEventMap[G]||G;if(J){if(!J.parentNode){return false}H=e.getHeaderByCell(J);C=e.ownerCt.getColumnManager().getHeaderIndex(H)}else{C=-1}u.setAll(e,B,H?e.getVisibleColumnManager().getHeaderIndex(H):-1,I,H);u.cellElement=J;A=e.fireEvent("uievent",G,e,J,B,C,w,I,D);if((A===false||Ext.view.View.prototype.processItemEvent.apply(this,arguments)===false)){return false}for(y=0;y<x;++y){F=E[y];if(F.wrapsItem){if(F.vetoEvent(I,D,B,w)===false){e.processSpecialEvent(w);return false}}}if(J&&G!=="mouseover"&&G!=="mouseout"){A=!((e["onBeforeCell"+i[G]](J,C,I,D,B,w)===false)||(e.fireEvent("beforecell"+G,e,J,C,I,D,B,w)===false)||(e["onCell"+i[G]](J,C,I,D,B,w)===false)||(e.fireEvent("cell"+G,e,J,C,I,D,B,w)===false))}if(A!==false){A=e.fireEvent("row"+G,e,I,D,B,w)}return A}else{this.processSpecialEvent(w);w.preventDefault();return false}},processSpecialEvent:function(r){var o=this,v=o.features,p=v.length,i=r.type,u,e,t,s,w,q,x=o.ownerCt;Ext.view.View.prototype.processSpecialEvent.apply(this,arguments);if(i==="mouseover"||i==="mouseout"){return}i=o.self.TouchEventMap[i]||i;for(u=0;u<p;u++){e=v[u];if(e.hasFeatureEvent){s=r.getTarget(e.eventSelector,o.getTargetEl());if(s){t=e.eventPrefix;w=e.getFireEventArgs("before"+t+i,o,s,r);q=e.getFireEventArgs(t+i,o,s,r);if((o.fireEvent.apply(o,w)===false)||(x.fireEvent.apply(x,w)===false)||(o.fireEvent.apply(o,q)===false)||(x.fireEvent.apply(x,q)===false)){return false}}}}return true},onCellMouseDown:Ext.emptyFn,onCellLongPress:Ext.emptyFn,onCellMouseUp:Ext.emptyFn,onCellClick:Ext.emptyFn,onCellDblClick:Ext.emptyFn,onCellContextMenu:Ext.emptyFn,onCellKeyDown:Ext.emptyFn,onCellKeyUp:Ext.emptyFn,onCellKeyPress:Ext.emptyFn,onBeforeCellMouseDown:Ext.emptyFn,onBeforeCellLongPress:Ext.emptyFn,onBeforeCellMouseUp:Ext.emptyFn,onBeforeCellClick:Ext.emptyFn,onBeforeCellDblClick:Ext.emptyFn,onBeforeCellContextMenu:Ext.emptyFn,onBeforeCellKeyDown:Ext.emptyFn,onBeforeCellKeyUp:Ext.emptyFn,onBeforeCellKeyPress:Ext.emptyFn,expandToFit:function(b){this.autoSizeColumn(b)},autoSizeColumn:function(b){if(Ext.isNumber(b)){b=this.getGridColumns()[b]}if(b){if(b.isGroupHeader){b.autoSize();return}delete b.flex;b.setWidth(this.getMaxContentWidth(b))}},getMaxContentWidth:function(q){var o=this,i=o.el.query(q.getCellInnerSelector()),s=q.getWidth(),r=0,p=i.length,t=o.body.select(o.getColumnSizerSelector(q)),m=Math.max,n=0,l;if(p>0){if(Ext.supports.ScrollWidthInlinePaddingBug){n+=o.getCellPaddingAfter(i[0])}if(o.columnLines){n+=Ext.fly(i[0].parentNode).getBorderWidth("lr")}}t.setWidth(1);q.textEl.setStyle({"text-overflow":"clip",display:"table-cell"});l=q.textEl.dom.offsetWidth+q.titleEl.getPadding("lr");q.textEl.setStyle({"text-overflow":"",display:""});for(;r<p;r++){l=m(l,i[r].scrollWidth)}l+=n;l=m(l+1,40);t.setWidth(s);return l},getPositionByEvent:function(j){var k=this,e=j.getTarget(k.cellSelector),l=j.getTarget(k.itemSelector),h=k.getRecord(l),i=k.getHeaderByCell(e);return k.getPosition(h,i)},getHeaderByCell:function(b){if(b){return this.ownerCt.getVisibleColumnManager().getHeaderById(Ext.getDom(b).getAttribute("data-columnId"))}return false},walkCells:function(n,m,r,l){var o=this,k=n.clone(),p=o.lockingPartner&&o.lockingPartner.grid.isVisible()?o.lockingPartner:null,s=n.rowIdx,t=o.dataSource.getCount()-1,q=o.ownerCt.getVisibleColumnManager().getColumns();switch(m.toLowerCase()){case"right":if(n.isLastColumn()){s=p&&o.isLockedView?s:s+1;if(s>t){return false}if(p){k.view=p}k.setPosition(s,0)}else{k.navigate(+1)}break;case"left":if(n.isFirstColumn()){s=p&&o.isNormalView?s:s-1;if(s<0){return false}if(p){k.view=p;q=p.getVisibleColumnManager().getColumns()}k.setPosition(s,q[q.length-1])}else{k.navigate(-1)}break;case"up":if(s===0){return false}else{k.setRow(s-1)}break;case"down":if(s===t){return false}else{k.setRow(s+1)}break}if(r&&r.call(l||o,k)!==true){return false}return k},walkRows:function(m,t){var q=this,n=q.dataSource,p=0,k=m,s,r=(t<0)?0:n.getCount()-1,o=r?1:-1,l=m;do{if(r?l>=r:l<=r){return k||r}l+=o;if((s=Ext.fly(q.getRow(l)))&&s.isVisible(true)){p+=o;k=l}}while(p!==t);return l},walkRecs:function(u,v){var p=this,m=p.dataSource,o=0,l=u,t,r=(v<0)?0:(m.isBufferedStore?m.getTotalCount():m.getCount())-1,n=r?1:-1,q=m.indexOf(u),s;do{if(r?q>=r:q<=r){return l}q+=n;s=m.getAt(q);if(!s.isCollapsedPlaceholder&&(t=Ext.fly(p.getNodeByRecord(s)))&&t.isVisible(true)){o+=n;l=s}}while(o!==v);return l},getFirstVisibleRowIndex:function(){var f=this,d=(f.dataSource.isBufferedStore?f.dataSource.getTotalCount():f.dataSource.getCount()),e=f.indexOf(f.all.first())-1;do{e+=1;if(e===d){return}}while(!Ext.fly(f.getRow(e)).isVisible(true));return e},getLastVisibleRowIndex:function(){var c=this,d=c.indexOf(c.all.last());do{d-=1;if(d===-1){return}}while(!Ext.fly(c.getRow(d)).isVisible(true));return d},getHeaderCt:function(){return this.headerCt},getPosition:function(d,c){return new Ext.grid.CellContext(this).setPosition(d,c)},onDestroy:function(){var g=this,h=g.featuresMC,f,e;if(h){for(e=0,f=h.getCount();e<f;++e){h.getAt(e).destroy()}}g.cellFly=g.featuresMC=null;Ext.view.View.prototype.onDestroy.apply(this,arguments);g.all.destroy();g.body.destroy();g.all=g.body=g.body.el=null;g.grid=g.ownerGrid=g.headerCt=g.panel=null;g.selection=g.actionPosition=g.eventPosition=g.lastFocused=null;g.actionRow=g.cellTpl=g.rowTpl=g.bufferedRenderer=null},onReplace:function(h,k,i,l){var n=this,j=n.bufferedRenderer,m;if(n.rendered&&j){m=n.saveFocusState();j.onReplace(h,k,i,l);m()}else{Ext.view.View.prototype.onReplace.apply(this,arguments)}n.setPendingStripe(k)},onResize:function(l,h,g,i){var k=this,j=k.bufferedRenderer;if(j){j.onViewResize(k,l,h,g,i)}Ext.view.View.prototype.onResize.call(this,l,h)},onAdd:function(f,g,j){var i=this,h=i.bufferedRenderer;if(i.rendered&&h&&(h.bodyTop||i.dataSource.getCount()+g.length>=h.viewSize)){h.onReplace(f,j,[],g)}else{Ext.view.View.prototype.onAdd.apply(this,arguments)}i.setPendingStripe(j)},onRemove:function(g,h,l){var k=this,i=k.bufferedRenderer,j;if(k.rendered&&i&&k.dataSource.getCount()+h.length>=i.viewSize){j=k.saveFocusState();i.onReplace(g,l,h,[]);j()}else{Ext.view.View.prototype.onRemove.apply(this,arguments)}k.setPendingStripe(l)},saveFocusState:function(){var l=this,i=l.dataSource,j=l.actionableMode,n=l.getNavigationModel(),m=j?l.actionPosition:n.getPosition(true),h,k;if(m){m=m.clone();if(j){l.ownerGrid.setActionableMode(false)}l.el.dom.focus();n.setPosition();return function(){if(i.getCount()){h=Math.min(m.rowIdx,l.all.getCount()-1);k=Math.min(m.colIdx,l.getVisibleColumnManager().getColumns().length-1);m=new Ext.grid.CellContext(l).setPosition(i.contains(m.record)?m.record:h,k);if(j){l.ownerGrid.setActionableMode(true,m)}else{l.cellFocused=true;n.setPosition(m,null,null,null,true)}}else{m.column.focus()}}}return Ext.emptyFn},onDataRefresh:function(d){var f=this,e=f.ownerCt;if(e&&e.isCollapsingOrExpanding===2){e.on("expand",f.onDataRefresh,f,{single:true});return}Ext.view.View.prototype.onDataRefresh.call(this,d)},getViewRange:function(){var b=this;if(b.bufferedRenderer){return b.bufferedRenderer.getViewRange()}return Ext.view.View.prototype.getViewRange.call(this)},setPendingStripe:function(d){var c=this.stripeOnUpdate;if(c===null){c=d}else{c=Math.min(c,d)}this.stripeOnUpdate=c},onEndUpdate:function(){var e=this,f=e.stripeOnUpdate,d=e.all.startIndex;if(e.rendered&&(f||f===0)){if(f<d){f=d}e.doStripeRows(f);e.stripeOnUpdate=null}Ext.view.View.prototype.onEndUpdate.apply(this,arguments)},doStripeRows:function(h,i){var m=this,l,j,n,k;if(m.rendered&&m.stripeRows){l=m.getNodes(h,i);for(n=0,j=l.length;n<j;n++){k=l[n];k.className=k.className.replace(m.rowClsRe," ");h++;if(h%2===0){k.className+=(" "+m.altRowCls)}}}},hasActiveFeature:function(){return(this.isGrouping&&this.store.isGrouped())||this.isRowWrapped},getCellPaddingAfter:function(b){return Ext.fly(b).getPadding("r")},privates:{refreshScroll:function(){var d=this,c=d.bufferedRenderer;if(c){c.refreshSize()}else{Ext.view.View.prototype.refreshScroll.call(this)}},collectNodes:function(b){this.all.fill(this.getNodeContainer().childNodes,this.all.startIndex)},setActionableMode:function(v,y){var t=this,D=t.getNavigationModel(),C,i,s,B,r=t.grid.actionables,x=r.length,A,z,q,u,w;if(t.actionableMode===v){if(!v||y.isEqual(t.actionPosition)){return false}}if(v){if(y&&(y.view===t||(y.view===(u=t.lockingPartner)&&u.actionableMode))){y=y.clone();z=y.record;t.grid.ensureVisible(z,{column:y.column});C=t.all.item(y.rowIdx);if(!u){i=Ext.fly(C).down(y.column.getCellSelector());for(A=0;A<x;A++){q=q||r[A].activateCell(y)}}if(u||i.restoreTabbableState(true).length||q){for(A=0;A<x;A++){if(r[A].activateRow){r[A].activateRow(C)}}if(u||(s=i.findTabbableElements()).length){C.restoreTabbableState(true);if(u){t.actionableMode=true;t.actionPosition=null;return true}if(s){t.actionRow=C;t.actionableMode=t.ownerGrid.actionableMode=true;D.setPosition();D.actionPosition=t.actionPosition=y;Ext.fly(s[0]).focus();return true}}}}return false}else{B=Ext.fly(Ext.Element.getActiveElement());w=t.el.contains(B);if(w){z=t.actionPosition&&t.actionPosition.record}for(A=0;A<x;A++){if(r[A].deactivate){r[A].deactivate()}}if(t.actionRow){t.actionRow.saveTabbableState({skipSelf:true,includeSaved:false})}t.actionableMode=t.ownerGrid.actionableMode=false;t.actionPosition=D.actionPosition=t.actionRow=null;if(w){D.setPosition(new Ext.grid.CellContext(t).setPosition(z||0,t.getHeaderByCell(B.findParent(t.getCellSelector()))||0))}}},onRowExit:function(t,i,r){var o=this,n=r?"nextSibling":"previousSibling",p=o.lockingPartner,m=o.grid.actionables,q=m.length,s,u,v;o.refreshing=o.actionableModeTabbing=true;for(s=0;s<q;s++){if(m[s].deactivate){m[s].deactivate()}}if(p&&p.grid.isVisible()){u=o.all.indexOf(t);if(r){v=0;if(o.isNormalView){u++}}else{v=p.getVisibleColumnManager().getColumns().length-1;if(o.isLockedView){u--}}o.actionPosition=null;o=p;i=o.all.item(u,true)}o.findFirstActionableElement(i,n,r);o.refreshing=o.actionableModeTabbing=false;Ext.fly(t).saveTabbableState({skipSelf:true,includeSaved:false})},findFirstActionableElement:function(F,w,z){var x=this,D=x.getVisibleColumnManager().getColumns(),y=D.length,i,t,s=x.grid.actionables,u=s.length,B,C,E,A=new Ext.grid.CellContext(x),j,v;if(F){A.setRow(F);for(B=0;B<u;B++){if(s[B].activateRow){s[B].activateRow(F)}}for(B=(z?0:y-1);(z?B<y:B>-1)&&!t;B=B+(z?1:-1)){E=D[B];A.setColumn(E);i=Ext.fly(F).down(A.column.getCellSelector());for(C=0;C<u;C++){j=j||s[C].activateCell(A)}if(i.restoreTabbableState(true).length||j){v=i.findTabbableElements();x.actionRow=Ext.get(F);x.actionRow.restoreTabbableState(true);t=v[z?0:v.length-1]}}if(t){x.actionPosition=x.getNavigationModel().actionPosition=A;Ext.fly(t).focus()}else{x.onRowExit(F,x.all.item(A.rowIdx+(z?1:-1)),z)}}else{x.grid.ensureVisible(z?0:x.dataSource.getCount()-1,{callback:function(c,b,a){if(c){x.findFirstActionableElement(a,w,z)}else{x.ownerGrid.setActionableMode(false)}}})}}}},1,["tableview","gridview"],["component","box","dataview","tableview","gridview"],{component:true,box:true,dataview:true,tableview:true,gridview:true},["widget.gridview","widget.tableview"],0,[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",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.plugin.HeaderResizer",Ext.plugin.Abstract,{disabled:false,config:{dynamic:false},colHeaderCls:"x-column-header",minColWidth:40,maxColWidth:1000,eResizeCursor:"col-resize",init:function(c){var d=this;d.headerCt=c;c.on("render",d.afterHeaderRender,d,{single:d});if(!d.minColWidth){d.self.prototype.minColWidth=Ext.grid.column.Column.prototype.minWidth}},destroy:function(){var c=this,d=c.tracker;if(d){d.destroy();c.tracker=null}c.headerCt.un("render",c.afterHeaderRender,c);c.headerCt=null;Ext.plugin.Abstract.prototype.destroy.call(this)},afterHeaderRender:function(){var d=this,f=d.headerCt,e=f.el;f.mon(e,"mousemove",d.onHeaderCtMouseMove,d);d.markerOwner=d.ownerGrid=d.headerCt.up("tablepanel").ownerGrid;d.tracker=new Ext.dd.DragTracker({disabled:d.disabled,onBeforeStart:d.onBeforeStart.bind(d),onStart:d.onStart.bind(d),onDrag:d.onDrag.bind(d),onEnd:d.onEnd.bind(d),tolerance:3,autoStart:300,el:e})},onHeaderCtMouseMove:function(c){var d=this;if(d.headerCt.dragging||d.disabled){if(d.activeHd){d.activeHd.el.dom.style.cursor="";delete d.activeHd}}else{if(c.pointerType!=="touch"){d.findActiveHeader(c)}}},findActiveHeader:function(p){var o=this,r=o.headerCt,m=p.getTarget("."+o.colHeaderCls,r.el,true),l=o.ownerGrid,t=l.ownerLockable,e,n,s,q;o.activeHd=null;if(m){e=Ext.getCmp(m.id);if(e.isAtEndEdge(p)){if(r.visibleColumnManager.getColumns().length===1&&r.forceFit){return}n=e}else{if(e.isAtStartEdge(p)){s=r.visibleColumnManager.getColumns();q=e.isGroupHeader?e.getGridColumns()[0]:e;n=s[Ext.Array.indexOf(s,q)-1];if(!n&&t&&!l.isLocked){s=t.lockedGrid.headerCt.visibleColumnManager.getColumns();n=s[s.length-1]}}}if(n){if(n.isGroupHeader){s=n.getGridColumns();n=s[s.length-1]}if(n&&!(n.fixed||(n.resizable===false))){o.activeHd=n;e.el.dom.style.cursor=o.eResizeCursor;if(e.triggerEl){e.triggerEl.dom.style.cursor=o.eResizeCursor}}}else{e.el.dom.style.cursor="";if(e.triggerEl){e.triggerEl.dom.style.cursor=""}}}return o.activeHd},onBeforeStart:function(c){var d=this;d.dragHd=d.activeHd||c.pointerType==="touch"&&d.findActiveHeader(c);if(d.dragHd&&!d.headerCt.dragging){d.xDelta=d.dragHd.getX()+d.dragHd.getWidth()-d.tracker.getXY()[0];d.tracker.constrainTo=d.getConstrainRegion();return true}else{d.headerCt.dragging=false;return false}},getConstrainRegion:function(){var k=this,h=k.dragHd.el,l,j=k.ownerGrid,m=j.getSizeModel().width,n=m.shrinkWrap?k.headerCt.getWidth()-k.headerCt.visibleColumnManager.getColumns().length*k.minColWidth:k.maxColWidth,i;if(k.headerCt.forceFit){l=k.dragHd.nextNode("gridcolumn:not([hidden]):not([isGroupHeader])");if(l&&k.headerInSameGrid(l)){n=h.getWidth()+(l.getWidth()-k.minColWidth)}}else{if(j.isLocked&&m.shrinkWrap){n=k.dragHd.up("[scrollerOwner]").getTargetEl().getWidth(true)-j.getWidth()-(j.ownerLockable.normalGrid.visibleColumnManager.getColumns().length*k.minColWidth+Ext.getScrollbarSize().width)}}i=k.adjustConstrainRegion(h.getRegion(),0,0,0,k.minColWidth);i.right=h.getX()+n;return i},onStart:function(q){var p=this,r=p.dragHd,u=r.el.getWidth(),s=r.getRootHeaderCt(),m,n,t,v,o,e;p.headerCt.dragging=true;p.origWidth=u;if(!p.dynamic){t=p.markerOwner;if(t.frame&&t.resizable){p.gridOverflowSetting=t.el.dom.style.overflow;t.el.dom.style.overflow="hidden"}m=p.getLeftMarkerX(t);v=t.getLhsMarker();o=t.getRhsMarker();e=p.ownerGrid.body.getHeight()+s.getHeight();n=s.getOffsetsTo(t)[1]-t.el.getBorderWidth("t");v.dom.style.cursor=p.eResizeCursor;o.dom.style.cursor=p.eResizeCursor;v.setLocalY(n);o.setLocalY(n);v.setHeight(e);o.setHeight(e);p.setMarkerX(v,m);p.setMarkerX(o,m+u)}},onDrag:function(c){var d=this;if(d.dynamic){d.doResize()}else{d.setMarkerX(d.getMovingMarker(d.markerOwner),d.calculateDragX(d.markerOwner))}},getMovingMarker:function(b){return b.getRhsMarker()},onEnd:function(d){var e=this,f=e.markerOwner;e.headerCt.dragging=false;if(e.dragHd){if(!e.dynamic){if("gridOverflowSetting" in e){f.el.dom.style.overflow=e.gridOverflowSetting}e.setMarkerX(f.getLhsMarker(),-9999);e.setMarkerX(f.getRhsMarker(),-9999)}e.doResize();if(d.pointerType!=="touch"){e.dragHd=null;e.activeHd.el.dom.style.cursor=e.eResizeCursor}else{e.dragHd=e.activeHd=null}}e.headerCt.blockNextEvent()},doResize:function(){var h=this,e=h.dragHd,f,g=h.tracker.getOffset("point");if(e&&g[0]){if(e.flex){delete e.flex}Ext.suspendLayouts();h.adjustColumnWidth(g[0]-h.xDelta);if(h.headerCt.forceFit){f=e.nextNode("gridcolumn:not([hidden]):not([isGroupHeader])");if(f&&!h.headerInSameGrid(f)){f=null}if(f){delete f.flex;f.setWidth(f.getWidth()-g[0])}}Ext.resumeLayouts(true)}},headerInSameGrid:function(c){var d=this.dragHd.up("tablepanel");return !!c.up(d)},disable:function(){var b=this.tracker;this.disabled=true;if(b){b.disable()}},enable:function(){var b=this.tracker;this.disabled=false;if(b){b.enable()}},calculateDragX:function(b){return this.tracker.getXY("point")[0]+this.xDelta-b.getX()-b.el.getBorderWidth("l")},getLeftMarkerX:function(b){return this.dragHd.getX()-b.getX()-b.el.getBorderWidth("l")-1},setMarkerX:function(c,d){c.setLocalX(d)},adjustConstrainRegion:function(g,i,h,b,j){return g.adjust(i,h,b,j)},adjustColumnWidth:function(b){this.dragHd.setWidth(this.origWidth+b)}},0,0,0,0,["plugin.gridheaderresizer"],0,[Ext.grid.plugin,"HeaderResizer"],0));(Ext.cmd.derive("Ext.grid.header.DragZone",Ext.dd.DragZone,{colHeaderSelector:".x-column-header",colInnerSelector:".x-column-header-inner",maxProxyWidth:120,constructor:function(c){var d=this;d.headerCt=c;d.ddGroup=d.getDDGroup();d.autoGroup=true;Ext.dd.DragZone.prototype.constructor.call(this,c.el);d.proxy.el.addCls("x-grid-col-dd")},getDDGroup:function(){return"header-dd-zone-"+this.headerCt.up("[scrollerOwner]").id},getDragData:function(e){if(e.getTarget(this.colInnerSelector)){var g=e.getTarget(this.colHeaderSelector),f,h;if(g){f=Ext.getCmp(g.id);if(!this.headerCt.dragging&&f.draggable&&!(f.isAtStartEdge(e)||f.isAtEndEdge(e))){h=document.createElement("div");h.role="presentation";h.innerHTML=f.text;return{ddel:h,header:f}}}}return false},onBeforeDrag:function(){return !(this.headerCt.dragging||this.disabled)},onInitDrag:function(){this.headerCt.dragging=true;this.headerCt.hideMenu();Ext.dd.DragZone.prototype.onInitDrag.apply(this,arguments)},onDragDrop:function(){this.headerCt.dragging=false;Ext.dd.DragZone.prototype.onDragDrop.apply(this,arguments)},afterRepair:function(){Ext.dd.DragZone.prototype.afterRepair.call(this);this.headerCt.dragging=false},getRepairXY:function(){return this.dragData.header.el.getXY()},disable:function(){this.disabled=true},enable:function(){this.disabled=false}},1,0,0,0,0,0,[Ext.grid.header,"DragZone"],0));(Ext.cmd.derive("Ext.grid.header.DropZone",Ext.dd.DropZone,{colHeaderCls:"x-column-header",proxyOffsets:[-4,-9],constructor:function(c){var d=this;d.headerCt=c;d.ddGroup=d.getDDGroup();d.autoGroup=true;Ext.dd.DropZone.prototype.constructor.call(this,c.el)},destroy:function(){Ext.dd.DropZone.prototype.destroy.call(this);Ext.destroy(this.topIndicator,this.bottomIndicator)},getDDGroup:function(){return"header-dd-zone-"+this.headerCt.up("[scrollerOwner]").id},getTargetFromEvent:function(b){return b.getTarget("."+this.colHeaderCls)},getTopIndicator:function(){if(!this.topIndicator){this.topIndicator=Ext.getBody().createChild({role:"presentation",cls:"x-col-move-top",html:"&#160;"});this.indicatorXOffset=Math.floor((this.topIndicator.dom.offsetWidth+1)/2)}return this.topIndicator},getBottomIndicator:function(){if(!this.bottomIndicator){this.bottomIndicator=Ext.getBody().createChild({role:"presentation",cls:"x-col-move-bottom",html:"&#160;"})}return this.bottomIndicator},getLocation:function(i,e){var g=i.getXY()[0],j=Ext.fly(e).getRegion(),h;if((j.right-g)<=(j.right-j.left)/2){h="after"}else{h="before"}return{pos:h,header:Ext.getCmp(e.id),node:e}},positionIndicator:function(e,H,B){var i=this,G=e.header,P=i.getLocation(B,H),M=P.header,Q=P.pos,R,C,K,E,D,T,S,L,J,z,A,I,N,F,O;if(M===i.lastTargetHeader&&Q===i.lastDropPos){return}R=G.nextSibling("gridcolumn:not([hidden])");C=G.previousSibling("gridcolumn:not([hidden])");i.lastTargetHeader=M;i.lastDropPos=Q;if(!M.draggable&&Q==="before"&&M.getIndex()===0){return false}e.dropLocation=P;if((G!==M)&&((Q==="before"&&R!==M)||(Q==="after"&&C!==M))&&!M.isDescendantOf(G)){I=Ext.dd.DragDropManager.getRelated(i);N=I.length;F=0;for(;F<N;F++){O=I[F];if(O!==i&&O.invalidateDrop){O.invalidateDrop()}}i.valid=true;K=i.getTopIndicator();E=i.getBottomIndicator();if(Q==="before"){D="bc-tl";T="tc-bl"}else{D="bc-tr";T="tc-br"}S=K.getAlignToXY(M.el,D);L=E.getAlignToXY(M.el,T);J=i.headerCt.el;z=J.getX()-i.indicatorXOffset;A=J.getX()+J.getWidth();S[0]=Ext.Number.constrain(S[0],z,A);L[0]=Ext.Number.constrain(L[0],z,A);K.setXY(S);E.setXY(L);K.show();E.show()}else{i.invalidateDrop()}},invalidateDrop:function(){this.valid=false;this.hideIndicators()},onNodeOver:function(r,o,p,q){var n=this,l=q.header,t,e,s,m;if(q.header.el.dom===r){t=false}else{q.isLock=q.isUnlock=q.crossPanel=false;e=n.getLocation(p,r).header;t=(l.ownerCt===e.ownerCt);if(!t&&(!l.ownerCt.sealed&&!e.ownerCt.sealed)){t=true;s=l.up("tablepanel");m=e.up("tablepanel");if(s!==m){q.crossPanel=true;q.isLock=m.isLocked&&!s.isLocked;q.isUnlock=!m.isLocked&&s.isLocked;if((q.isUnlock&&l.lockable===false)||(q.isLock&&!l.isLockable())){t=false}}}}if(t){n.positionIndicator(q,r,p)}else{n.valid=false}return n.valid?n.dropAllowed:n.dropNotAllowed},hideIndicators:function(){var b=this;b.getTopIndicator().hide();b.getBottomIndicator().hide();b.lastTargetHeader=b.lastDropPos=null},onNodeOut:function(){this.hideIndicators()},getNestedHeader:function(g,e){var f=g.items,h;if(g.isGroupHeader&&f.length){h=!e?"first":"last";g=this.getNestedHeader(f[h](),e)}return g},onNodeDrop:function(B,J,x,e){this.headerCt.blockNextEvent();if(!this.valid){return}var w=this,A=e.header,F=e.dropLocation,y=F.pos,E=F.header,u=A.ownerCt,C=u.getRootHeaderCt(),L=E.ownerCt,I=w.headerCt.visibleColumnManager,z=I.getHeaderIndex(A),K,D,v,G,H;if(e.isLock||e.isUnlock){G=u.up("[scrollerOwner]");K=L.items.indexOf(E);if(y==="after"){K++}if(e.isLock){G.lock(A,K,L)}else{G.unlock(A,K,L)}}else{K=y==="after"?I.getHeaderIndex(w.getNestedHeader(E,1))+1:I.getHeaderIndex(w.getNestedHeader(E,0));w.invalidateDrop();H=A.getWidth();Ext.suspendLayouts();u.isDDMoveInGrid=L.isDDMoveInGrid=!e.crossPanel;if(A.isGroupHeader&&E.isGroupHeader){A.setNestedParent(E)}if(y==="before"){E.insertNestedHeader(A)}else{v="move"+y.charAt(0).toUpperCase()+y.substr(1);L[v](A,E)}if(K>=0&&!(E.isGroupHeader&&(!E.items||!E.items.length))&&z!==K){D=A.isGroupHeader?A.query(":not([hidden]):not([isGroupHeader])").length:1;if((z<=K)&&D>1){K-=D}L.getRootHeaderCt().grid.view.moveColumn(z,K,D)}C.fireEvent("columnmove",u,A,z,K);u.isDDMoveInGrid=L.isDDMoveInGrid=false;if(L.isGroupHeader&&!u.isGroupHeader){if(u!==L){A.savedFlex=A.flex;delete A.flex;A.width=H}}else{if(!u.isGroupHeader){if(A.savedFlex){A.flex=A.savedFlex;delete A.width}}}Ext.resumeLayouts(true)}}},1,0,0,0,0,0,[Ext.grid.header,"DropZone"],0));(Ext.cmd.derive("Ext.grid.plugin.HeaderReorderer",Ext.plugin.Abstract,{init:function(b){this.headerCt=b;b.on({boxready:this.onHeaderCtRender,single:true,scope:this})},destroy:function(){var b=this;b.headerCt.un("boxready",b.onHeaderCtRender,b);Ext.destroy(b.dragZone,b.dropZone);b.headerCt=b.dragZone=b.dropZone=null;Ext.plugin.Abstract.prototype.destroy.call(this)},onHeaderCtRender:function(){var b=this;b.dragZone=new Ext.grid.header.DragZone(b.headerCt);b.dropZone=new Ext.grid.header.DropZone(b.headerCt);if(b.disabled){b.dragZone.disable()}},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",detachOnRemove:false,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 b=this;b.plugins=b.plugins||[];b.defaults=b.defaults||{};if(!b.isColumn){if(b.enableColumnResize){b.resizer=new Ext.grid.plugin.HeaderResizer();b.plugins.push(b.resizer)}if(b.enableColumnMove){b.reorderer=new Ext.grid.plugin.HeaderReorderer();b.plugins.push(b.reorderer)}}if(b.isColumn&&!b.isGroupHeader){if(!b.items||b.items.length===0){b.isContainer=b.isFocusableContainer=false;b.focusable=true;b.layout={type:"container",calculate:Ext.emptyFn}}}else{b.layout=Ext.apply({type:"gridcolumn",align:"stretch"},b.initialConfig.layout);b.defaults.columnLines=b.columnLines;if(!b.isGroupHeader){b.isRootHeader=true;if(!b.hiddenHeaders){b.enableFocusableContainer=true;b.ariaRole="rowgroup"}b.columnManager=new Ext.grid.ColumnManager(false,b);b.visibleColumnManager=new Ext.grid.ColumnManager(true,b);if(b.grid){b.grid.columnManager=b.columnManager;b.grid.visibleColumnManager=b.visibleColumnManager}}else{b.visibleColumnManager=new Ext.grid.ColumnManager(true,b);b.columnManager=new Ext.grid.ColumnManager(false,b)}}b.menuTask=new Ext.util.DelayedTask(b.updateMenuDisabledState,b);Ext.container.Container.prototype.initComponent.call(this)},insertNestedHeader:function(i){var g=this,j=i.ownerCt,h=g.ownerCt,k=h.layout.owner,l;if(j){if(g.isGroupHeader&&!h.isNestedParent){l=k.items.indexOf(g)}j.remove(i,false)}if(l===undefined){l=k.items.indexOf(g)}k.insert(l,i)},isNested:function(){return !!this.getRootHeaderCt().down("[isNestedParent]")},isNestedGroupHeader:function(){var c=this,d=c.getRefOwner().query(">:not([hidden])");return(d.length===1&&d[0]===c)},maybeShowNestedGroupHeader:function(){var d=this.items,c;if(d&&d.length===1&&(c=d.getAt(0))&&c.hidden){c.show()}},setNestedParent:function(b){b.isNestedParent=false;b.ownerCt.isNestedParent=!!(this.ownerCt.items.length===1&&b.ownerCt.items.length===1)},initEvents:function(){var f=this,e,d;Ext.container.Container.prototype.initEvents.call(this);if(!f.isColumn&&!f.isGroupHeader){e=f.onHeaderCtEvent;d={click:e,dblclick:e,contextmenu:e,mouseover:f.onHeaderCtMouseOver,mouseout:f.onHeaderCtMouseOut,scope:f};if(Ext.supports.Touch){d.longpress=f.onHeaderCtLongPress}f.mon(f.el,d)}},onHeaderCtEvent:function(m,e){var n=this,j=n.getHeaderElByEvent(m),k,l,i;if(n.longPressFired){n.longPressFired=false;return}if(j&&!n.blockEvents){k=Ext.getCmp(j.id);if(k){l=k[k.clickTargetName];if((!k.isGroupHeader&&!k.isContainer)||m.within(l)){if(m.type==="click"||m.type==="tap"){i=k.onTitleElClick(m,l,n.sortOnClick);if(i){n.onHeaderTriggerClick(i,m,m.pointerType==="touch"?i.el:i.triggerEl)}else{n.onHeaderClick(k,m,e)}}else{if(m.type==="contextmenu"){n.onHeaderContextMenu(k,m,e)}else{if(m.type==="dblclick"&&k.resizable){k.onTitleElDblClick(m,l.dom)}}}}}}},blockNextEvent:function(){this.blockEvents=true;Ext.asap(this.unblockEvents,this)},unblockEvents:function(){this.blockEvents=false},onHeaderCtMouseOver:function(e,g){var h,i,j;if(!e.within(this.el,true)){h=e.getTarget("."+Ext.grid.column.Column.prototype.baseCls);i=h&&Ext.getCmp(h.id);if(i){j=i[i.clickTargetName];if(e.within(j)){i.onTitleMouseOver(e,j.dom)}}}},onHeaderCtMouseOut:function(l,n){var m="."+Ext.grid.column.Column.prototype.baseCls,e=l.getTarget(m),i=l.getRelatedTarget(m),j,k;if(e!==i){if(e){j=Ext.getCmp(e.id);if(j){k=j[j.clickTargetName];j.onTitleMouseOut(l,k.dom)}}if(i){j=Ext.getCmp(i.id);if(j){k=j[j.clickTargetName];j.onTitleMouseOver(l,k.dom)}}}},onHeaderCtLongPress:function(e){var f=this,g=f.getHeaderElByEvent(e),h=Ext.getCmp(g.id);if(!h.menuDisabled){f.longPressFired=true;f.showMenuBy(e,g,h)}},getHeaderElByEvent:function(b){return b.getTarget("."+Ext.grid.column.Column.prototype.baseCls)},isLayoutRoot:function(){if(this.hiddenHeaders){return false}return Ext.container.Container.prototype.isLayoutRoot.call(this)},getRootHeaderCt:function(){var b=this;return b.isRootHeader?b:b.up("[isRootHeader]")},onDestroy:function(){var b=this;if(b.menu){b.menu.un("hide",b.onMenuHide,b)}b.menuTask.cancel();Ext.container.Container.prototype.onDestroy.call(this);Ext.destroy(b.visibleColumnManager,b.columnManager,b.menu);b.columnManager=b.visibleColumnManager=null},applyColumnsState:function(x,A){if(!x||!x.length){return}var i=this,s=i.items.items,t=s.length,w=0,C=x.length,r,B,D,u,c=false,v=[],z={},y=[];for(r=0;r<C;r++){D=x[r];D.index=r;z[D.id]=D}for(w=0;w<t;w++){B=s[w];D=z[B.getStateId()];if(D){u=D.index;v[u]=B;if(w!==u){c=true}if(B.applyColumnState){B.applyColumnState(D,A)}}else{y.push({index:w,column:B})}}v=Ext.Array.clean(v);C=y.length;if(C){for(w=0;w<C;w++){D=y[w];u=D.index;if(u<v.length){c=true;Ext.Array.splice(v,u,0,D.column)}else{v.push(D.column)}}}if(c){i.applyingState=true;i.removeAll(false);delete i.applyingState;i.add(v);i.purgeCache()}},getColumnsState:function(){var d=this,e=[],f;d.items.each(function(a){f=a.getColumnState&&a.getColumnState();if(f){e.push(f)}});return e},onAdd:function(c){var d=this;Ext.container.Container.prototype.onAdd.apply(this,arguments);d.onHeadersChanged(c,d.isDDMoveInGrid)},move:function(j,h){var i=this,f=i.items,g;if(j.isComponent){g=j;j=f.indexOf(g)}else{g=f.getAt(j)}g.visibleFromIdx=i.getRootHeaderCt().visibleColumnManager.indexOf(g);Ext.container.Container.prototype.move.apply(this,arguments)},onMove:function(j,o,l){var m=this,n=m.getRootHeaderCt(),i=n.visibleColumnManager,k=1,p;m.onHeadersChanged(j,true);p=i.indexOf(j);if(p>=j.visibleFromIdx){p++}Ext.container.Container.prototype.onMove.apply(this,arguments);if(j.isGroupHeader){k=j.visibleColumnManager.getColumns().length}n.onHeaderMoved(j,k,j.visibleFromIdx,p)},maybeContinueRemove:function(){var b=this;return(b.isGroupHeader&&!b.applyingState)&&!b.isNestedParent&&b.ownerCt&&!b.items.getCount()},onRemove:function(h,j){var i=this,c=i.ownerCt,g=h.lastHiddenHeader;Ext.container.Container.prototype.onRemove.call(this,h,j);if(!i.destroying){if(!i.isDDMoveInGrid){i.onHeadersChanged(h,false)}if(i.maybeContinueRemove()){if(h.rendered){i.detachComponent(h)}Ext.suspendLayouts();c.remove(i);Ext.resumeLayouts(true)}}},onHeadersChanged:function(g,f){var c,h=this.getRootHeaderCt();this.purgeHeaderCtCache(this);if(h){h.onColumnsChanged();if(!g.isGroupHeader){c=h.ownerCt;if(c&&!f){c.onHeadersChanged(h,g)}}}},onHeaderMoved:function(i,h,l,j){var k=this,g=k.ownerCt;if(k.rendered){if(g&&g.onHeaderMove){g.onHeaderMove(k,i,h,l,j)}k.fireEvent("columnmove",k,i,l,j)}},onColumnsChanged:function(){var h=this,g=h.menu,f,e;if(h.rendered){h.fireEvent("columnschanged",h);if(g&&(f=g.child("#columnItemSeparator"))){e=g.child("#columnItem");f.destroy();e.destroy()}}},lookupComponent:function(c){var d=Ext.container.Container.prototype.lookupComponent.apply(this,arguments);if(!d.isGroupHeader&&d.width===undefined&&!d.flex){d.width=this.defaultWidth}return d},setSortState:function(){var g=this.up("[store]").store,k=this.visibleColumnManager.getColumns(),h=k.length,l,i,j;for(l=0;l<h;l++){i=k[l];j=i.getSorter();if(j){if(!g.getSorters().contains(j)){j=null}}else{j=g.getSorters().get(i.getSortParam())}i.setSortState(j)}},getHeaderMenu:function(){var c=this.getMenu(),d;if(c){d=c.child("#columnItem");if(d){return d.menu}}return null},onHeaderVisibilityChange:function(h,i){var f=this,j=f.getHeaderMenu(),g;f.purgeHeaderCtCache(h.ownerCt);if(j){g=f.getMenuItemForHeader(j,h);if(g){g.setChecked(i,true)}if(j.isVisible()){f.menuTask.delay(50)}}},updateMenuDisabledState:function(l){var m=this,o=m.query("gridcolumn:not([hidden])"),p,j=o.length,n,i,k;if(!l){l=m.getMenu()}for(p=0;p<j;++p){n=o[p];i=m.getMenuItemForHeader(l,n);if(i){k=n.isHideable()?"enable":"disable";if(i.menu){k+="CheckChange"}i[k]()}}},getMenuItemForHeader:function(d,c){return c?d.down("menucheckitem[headerId="+c.id+"]"):null},onHeaderShow:function(g){var h=this,e=h.ownerCt,f=g.lastHiddenHeader;if(!e){return}if(h.forceFit){delete h.flex}if(f&&!g.query("[hidden=false]").length){f.show();g.lastHiddenHeader=null}h.onHeaderVisibilityChange(g,true);e.onHeaderShow(h,g);h.fireEvent("columnshow",h,g);h.fireEvent("columnschanged",this)},onHeaderHide:function(f){var d=this,e=d.ownerCt;if(!e){return}d.onHeaderVisibilityChange(f,false);e.onHeaderHide(d,f);d.fireEvent("columnhide",d,f);d.fireEvent("columnschanged",this)},onHeaderResize:function(g,f){var h=this,e=h.ownerCt;if(e){e.onHeaderResize(h,g,f)}h.fireEvent("columnresize",h,g,f)},onHeaderClick:function(h,i,e){var j=this,g=h.getView().getSelectionModel();h.fireEvent("headerclick",j,h,i,e);if(j.fireEvent("headerclick",j,h,i,e)!==false){if(g.onHeaderClick){g.onHeaderClick(j,h,i)}}},onHeaderContextMenu:function(f,d,e){f.fireEvent("headercontextmenu",this,f,d,e);this.fireEvent("headercontextmenu",this,f,d,e)},onHeaderTriggerClick:function(g,h,f){var e=this;if(g.fireEvent("headertriggerclick",e,g,h,f)!==false&&e.fireEvent("headertriggerclick",e,g,h,f)!==false){if(g.activeMenu){if(h.pointerType){g.activeMenu.hide()}else{g.activeMenu.focus()}}else{e.showMenuBy(h,f,g)}}},showMenuBy:function(j,o,k){var m=this.getMenu(),l=m.down("#ascItem"),n=m.down("#descItem"),p,i=j&&j.pointerType==="touch";m.activeHeader=m.ownerCmp=k;k.setMenuActive(m);p=k.sortable?"enable":"disable";if(l){l[p]()}if(n){n[p]()}m.autoFocus=!j||j.keyCode;m.showBy(o,"tl-bl?");if(!m.isVisible()){this.onMenuHide(m)}},hideMenu:function(){if(this.menu){this.menu.hide()}},onMenuHide:function(b){b.activeHeader.setMenuActive(false)},purgeHeaderCtCache:function(b){while(b){b.purgeCache();if(b.isRootHeader){return}b=b.ownerCt}},purgeCache:function(){var f=this,d=f.visibleColumnManager,e=f.columnManager;f.gridVisibleColumns=f.gridDataColumns=f.hideableColumns=null;if(d){d.invalidate();e.invalidate()}},getMenu:function(){var c=this,d=c.view&&c.view.ownerGrid;if(!c.menu){c.menu=new Ext.menu.Menu({hideOnParentHide:false,items:c.getMenuItems(),listeners:{beforeshow:c.beforeMenuShow,hide:c.onMenuHide,scope:c}});c.fireEvent("menucreate",c,c.menu);if(d){d.fireEvent("headermenucreate",d,c.menu,c)}}return c.menu},beforeMenuShow:function(h){var j=this,f=h.child("#columnItem"),g,i;if(!f){g=j.enableColumnHide?j.getColumnMenu(j):null;i=j.sortable?2:0;if(g&&g.length){h.insert(i,[{itemId:"columnItemSeparator",xtype:"menuseparator"},{itemId:"columnItem",text:j.columnsText,iconCls:j.menuColsIcon,menu:{items:g},hideOnClick:false}])}}j.updateMenuDisabledState(j.menu)},getMenuItems:function(){var f=this,d=[],e=f.enableColumnHide?f.getColumnMenu(f):null;if(f.sortable){d=[{itemId:"ascItem",text:f.sortAscText,iconCls:f.menuSortAscCls,handler:f.onSortAscClick,scope:f},{itemId:"descItem",text:f.sortDescText,iconCls:f.menuSortDescCls,handler:f.onSortDescClick,scope:f}]}if(e&&e.length){if(f.sortable){d.push({itemId:"columnItemSeparator",xtype:"menuseparator"})}d.push({itemId:"columnItem",text:f.columnsText,iconCls:f.menuColsIcon,menu:e,hideOnClick:false})}return d},onSortAscClick:function(){var c=this.getMenu(),d=c.activeHeader;d.sort("ASC")},onSortDescClick:function(){var c=this.getMenu(),d=c.activeHeader;d.sort("DESC")},getColumnMenu:function(k){var n=[],h=0,l,i=k.query(">gridcolumn[hideable]"),j=i.length,m;for(;h<j;h++){l=i[h];m=new Ext.menu.CheckItem({text:l.menuText||l.text,checked:!l.hidden,hideOnClick:false,headerId:l.id,menu:l.isGroupHeader?this.getColumnMenu(l):undefined,checkHandler:this.onColumnCheckChange,scope:this});n.push(m)}return n.length?n:null},onColumnCheckChange:function(e,d){var f=Ext.getCmp(e.headerId);if(f.rendered){f[d?"show":"hide"]()}else{f.hidden=!d}},getColumnCount:function(){return this.getGridColumns().length},getTableWidth:function(){var h=0,e=this.getVisibleGridColumns(),g=e.length,f;for(f=0;f<g;f++){h+=e[f].getCellWidth()||0}return h},getVisibleGridColumns:function(){var j=this,n,l,h,i,m,k;if(j.gridVisibleColumns){return j.gridVisibleColumns}n=j.getGridColumns();l=j.getRootHeaderCt();h=[];i=n.length;for(m=0;m<i;m++){k=n[m];if(!k.hidden&&!k.isColumnHidden(l)){h[h.length]=k}}j.gridVisibleColumns=h;return h},isColumnHidden:function(c){var d=this.getRefOwner();while(d&&d!==c){if(d.hidden){return true}d=d.getRefOwner()}return false},getGridColumns:function(l,r){if(!l&&this.gridDataColumns){return this.gridDataColumns}var m=this,i=l||[],n,q,o,k,p;r=r||m.hidden;if(m.items){n=m.items.items;if(n){for(q=0,o=n.length;q<o;q++){k=n[q];if(k.isGroupHeader){k.visibleIndex=i.length;k.getGridColumns(i,r)}else{k.hiddenAncestor=r;i.push(k)}}}}if(!l){m.gridDataColumns=i}if(!l&&o){for(q=0,o=i.length;q<o;q++){k=i[q];k.fullColumnIndex=q;k.isFirstVisible=k.isLastVisible=false;if(!(k.hidden||k.hiddenAncestor)){if(!p){k.isFirstVisible=true}p=k}}if(p){p.isLastVisible=true}}return i},getHideableColumns:function(){var c=this,d=c.hideableColumns;if(!d){d=c.hideableColumns=c.query("[hideable]")}return d},getHeaderIndex:function(b){if(!this.columnManager){this.columnManager=this.getRootHeaderCt().columnManager}return this.columnManager.getHeaderIndex(b)},getHeaderAtIndex:function(b){if(!this.columnManager){this.columnManager=this.getRootHeaderCt().columnManager}return this.columnManager.getHeaderAtIndex(b)},getVisibleHeaderClosestToIndex:function(b){if(!this.visibleColumnManager){this.visibleColumnManager=this.getRootHeaderCt().visibleColumnManager}return this.visibleColumnManager.getVisibleHeaderClosestToIndex(b)},applyForceFit:function(B){var w=this,v=w.view,G=Ext.grid.plugin.HeaderResizer.prototype.minColWidth,E=false,i=Ext.grid.header.Container.prototype.defaultWidth,H=w.el.dom.clientWidth-(v.el.dom.scrollHeight>v.el.dom.clientHeight?Ext.getScrollbarSize().width:0),D=0,x=w.getVisibleGridColumns(),A=B.hidden,y,C,s,z,F;function u(){for(C=0,y=x.length;C<y;C++){s=x[C];if(s===B){continue}s.flex=s.flex||s.width||s.getWidth();D+=s.flex;s.width=null}}function t(){var a;for(C=0,y=x.length;C<y;C++){s=x[C];a=(s===B);if(E&&!a){s.flex=G;s.width=null}else{if(!a){F=s.flex||i;s.flex=Math.max(Math.ceil((F/D)*H),G);s.width=null}}s.setWidth(s.width||s.flex)}}Ext.suspendLayouts();z=(H-((x.length+1)*G));B.flex=null;if(A){F=B.width||B.savedWidth;B.savedWidth=null}else{F=v.getMaxContentWidth(B)}if(F>z){B.width=z;E=true}else{B.width=F;H-=F+i;u()}t();Ext.resumeLayouts(true)},autoSizeColumn:function(c){var d=this.view;if(d){d.autoSizeColumn(c);if(this.forceFit){this.applyForceFit(c)}}},getRefItems:function(c){var d=Ext.container.Container.prototype.getRefItems.call(this,c);if(this.menu){d.push(this.menu)}return d},privates:{beginChildHide:function(){++this.childHideCount},endChildHide:function(){--this.childHideCount},getFocusables:function(){return this.isRootHeader?this.getVisibleGridColumns():this.items.items},createFocusableContainerKeyNav:function(d){var c=this;return new Ext.util.KeyNav(d,{scope:c,down:c.showHeaderMenu,left:c.onFocusableContainerLeftKey,right:c.onFocusableContainerRightKey,home:c.onHomeKey,end:c.onEndKey,space:c.onHeaderActivate,enter:c.onHeaderActivate})},onHomeKey:function(b){return this.focusChild(null,true,b)},onEndKey:function(b){return this.focusChild(null,false,b)},showHeaderMenu:function(c){var d=this.getFocusableFromEvent(c);if(d&&d.isColumn&&d.triggerEl){this.onHeaderTriggerClick(d,c,d.triggerEl)}},onHeaderActivate:function(g){var h=this.getFocusableFromEvent(g),f,e;if(h&&h.isColumn){f=h.getView();if(h.sortable&&this.sortOnClick){e=f.getNavigationModel().getLastFocused();h.toggleSortState();if(e){f.ownerCt.ensureVisible(e.record)}}this.onHeaderClick(h,g,h.el)}},onFocusableContainerMousedown:function(f,d){var e=Ext.Component.fromElement(d);if(e===this){f.preventDefault()}else{e.focus()}}}},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},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"],headerWrap:false,renderTpl:['<div id="{id}-titleEl" data-ref="titleEl" role="presentation"','{tipMarkup}class="',"x-",'column-header-inner<tpl if="!$comp.isContainer"> ',"x-","leaf-column-header</tpl>",'<tpl if="empty"> ',"x-",'column-header-inner-empty</tpl>">','<div id="{id}-textContainerEl" data-ref="textContainerEl" role="presentation" class="',"x-",'column-header-text-container">','<div role="presentation" class="',"x-",'column-header-text-wrapper">','<div id="{id}-textEl" data-ref="textEl" role="presentation" class="',"x-","column-header-text",'{childElCls}">','<span role="presentation" class="',"x-",'column-header-text-inner">{text}</span>',"</div>","</div>","</div>",'<tpl if="!menuDisabled">','<div id="{id}-triggerEl" data-ref="triggerEl" role="presentation" class="',"x-","column-header-trigger",'{childElCls}" style="{triggerStyle}"></div>',"</tpl>","</div>","{%this.renderContainer(out,values)%}"],dataIndex:null,text:"&#160;",menuText:null,emptyCellText:"&#160;",sortable:true,resizable:true,hideable:true,menuDisabled:false,renderer:false,align:"left",draggable:true,tooltipType:"qtip",initDraggable:Ext.emptyFn,tdCls:"",producesHTML:true,ignoreExport:false,isHeader:true,isColumn:true,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 b=this;if(!b.rendererScope){b.rendererScope=b.scope}if(b.header!=null){b.text=b.header;b.header=null}if(b.cellWrap){b.tdCls=(b.tdCls||"")+" x-wrap-cell"}if(b.columns!=null){b.isGroupHeader=true;b.ariaRole="presentation";b.items=b.columns;b.columns=b.flex=b.width=null;b.cls=(b.cls||"")+" "+b.groupHeaderCls;b.sortable=b.resizable=false;b.align="center"}else{if(b.flex){b.minWidth=b.minWidth||Ext.grid.plugin.HeaderResizer.prototype.minColWidth}}b.addCls("x-column-header-align-"+b.align);b.setupRenderer();b.setupRenderer("edit");b.setupRenderer("summary");Ext.grid.header.Container.prototype.initComponent.apply(this,arguments)},onAdded:function(h,j,i){var n=this,k,m,l;Ext.grid.header.Container.prototype.onAdded.call(this,h,j,i);if(!n.headerId){m=n.up("tablepanel");l=m?m.ownerGrid:n.getRootHeaderCt();l.headerCounter=(l.headerCounter||0)+1;n.headerId="h"+l.headerCounter}if(!n.stateId){n.stateId=n.initialConfig.id||n.headerId}k=n.getSorter();if(k&&!k.initialConfig.id){k.setId((n.dataIndex||n.stateId)+"-sorter")}},applySorter:function(b){return this.getRootHeaderCt().up("tablepanel").store.getData().getSorters().decodeSorter(b)},bindFormatter:function(c){var d=this;return function(a){return c.format(a,c.scope||d.rendererScope||d.resolveListenerScope())}},bindRenderer:function(c){var d=this;d.hasCustomRenderer=true;return function(){return Ext.callback(c,d.rendererScope,arguments,0,d)}},setupRenderer:function(h){h=h||"column";var n=this,k=n[n.formatterNames[h]],m=n[n.rendererNames[h]],i=h==="column",j,l;if(!k){if(m){if(typeof m==="string"){m=n[n.rendererNames[h]]=n.bindRenderer(m);l=true}if(i){n.hasCustomRenderer=l||m.length>1}}else{if(i&&n.defaultRenderer){n.renderer=n.defaultRenderer;n.usingDefaultRenderer=true}}}else{j=k.indexOf("this.")===0;if(j){k=k.substring(5)}k=Ext.app.bind.Template.prototype.parseFormat(k);n[n.formatterNames[h]]=null;if(j){k.scope=null}n[n.rendererNames[h]]=n.bindFormatter(k)}},getView:function(){var b=this.getRootHeaderCt();if(b){return b.view}},onFocusLeave:function(b){Ext.grid.header.Container.prototype.onFocusLeave.call(this,b);if(this.activeMenu){this.activeMenu.hide()}},initItems:function(){var b=this;Ext.grid.header.Container.prototype.initItems.apply(this,arguments);if(b.isGroupHeader){if(b.config.hidden||!b.hasVisibleChildColumns()){b.hide()}}},hasVisibleChildColumns:function(){var e=this.items.items,f=e.length,h,g;for(h=0;h<f;++h){g=e[h];if(g.isColumn&&!g.hidden){return true}}return false},onAdd:function(c){var d=this;if(c.isColumn){c.isSubHeader=true;c.addCls(d.groupSubHeaderCls)}if(d.isGroupHeader&&d.hidden&&d.hasVisibleChildColumns()){d.show()}Ext.grid.header.Container.prototype.onAdd.call(this,c)},onRemove:function(f,e){var d=this;if(f.isSubHeader){f.isSubHeader=false;f.removeCls(d.groupSubHeaderCls)}Ext.grid.header.Container.prototype.onRemove.call(this,f,e);if(!(d.destroyed||d.destroying)&&!d.hasVisibleChildColumns()&&!d.ownerCt.isNested()){d.hide()}},initRenderData:function(){var f=this,h="",j=f.tooltip,i=f.text,g=f.tooltipType==="qtip"?"data-qtip":"title";if(!Ext.isEmpty(j)){h=g+'="'+j+'" '}return Ext.applyIf(Ext.grid.header.Container.prototype.initRenderData.apply(this,arguments),{text:i,empty:i==="&#160;"||i===" "||i==="",menuDisabled:f.menuDisabled,tipMarkup:h,triggerStyle:this.getTriggerVisible()?"display:block":""})},applyColumnState:function(r,p){var l=this,i=l.getSorter(),m=p&&p.sorters,n,o,q,k;if(i&&m&&(n=m.length)){k=i.getId();for(o=0;!q&&o<n;o++){if(m[o].id===k){i.setDirection(m[o].direction);m[o]=i;break}}}l.applyColumnsState(r.columns);if(r.hidden!=null){l.hidden=r.hidden}if(r.locked!=null){l.locked=r.locked}if(r.sortable!=null){l.sortable=r.sortable}if(r.width!=null){l.flex=null;l.width=r.width}else{if(r.flex!=null){l.width=null;l.flex=r.flex}}},getColumnState:function(){var j=this,g=j.items.items,h=g?g.length:0,k,l=[],i={id:j.getStateId()};j.savePropsToState(["hidden","sortable","locked","flex","width"],i);if(j.isGroupHeader){for(k=0;k<h;k++){l.push(g[k].getColumnState())}if(l.length){i.columns=l}}if("width" in i){delete i.flex}return i},setText:function(b){this.text=b;if(this.rendered){this.textEl.setHtml(b)}},getIndex:function(){return this.isGroupColumn?false:this.getRootHeaderCt().getHeaderIndex(this)},getVisibleIndex:function(){return this.visibleIndex!=null?this.visibleIndex:this.isGroupColumn?false:Ext.Array.indexOf(this.getRootHeaderCt().getVisibleGridColumns(),this)},getLabelChain:function(){var f=this,d=[],e;while(e=f.up("headercontainer")){if(e.text){d.unshift(Ext.util.Format.stripTags(e.text))}f=e}return d},beforeRender:function(){var j=this,g=j.getRootHeaderCt(),i=j.isSortable(),h=[],f;Ext.grid.header.Container.prototype.beforeRender.call(this);if(!i&&!j.groupable&&!j.lockable&&(g.grid.enableColumnHide===false||!g.getHideableColumns().length)){j.menuDisabled=true}if(j.cellWrap){j.variableRowHeight=true}f=j.ariaRenderAttributes||(j.ariaRenderAttributes={});f["aria-readonly"]=true;if(i){f["aria-sort"]=j.ariaSortStates[j.sortState]}if(j.isSubHeader){h=j.getLabelChain();if(j.text){h.push(Ext.util.Format.stripTags(j.text))}if(h.length){f["aria-label"]=h.join(" ")}}j.protoEl.unselectable()},getTriggerElWidth:function(){var f=this,d=f.triggerEl,e=f.self.triggerElWidth;if(d&&e===undefined){d.setStyle("display","block");e=f.self.triggerElWidth=d.getWidth();d.setStyle("display","")}return e},afterComponentLayout:function(k,h,g,i){var j=this,l=j.getRootHeaderCt();Ext.grid.header.Container.prototype.afterComponentLayout.apply(this,arguments);if(l&&(g!=null||j.flex)&&k!==g){l.onHeaderResize(j,k)}},onDestroy:function(){var b=this;Ext.destroy(b.field);b.field=null;Ext.grid.header.Container.prototype.onDestroy.apply(this,arguments)},onTitleMouseOver:function(){this.titleEl.addCls(this.hoverCls)},onTitleMouseOut:function(){this.titleEl.removeCls(this.hoverCls)},onDownKey:function(b){if(this.triggerEl){this.onTitleElClick(b,this.triggerEl.dom||this.el.dom)}},onEnterKey:function(b){this.onTitleElClick(b,this.el.dom)},onTitleElDblClick:function(i){var e=this,g,j,h;if(e.isAtStartEdge(i)){g=e.previousNode("gridcolumn:not([hidden]):not([isGroupHeader])");if(g&&g.getRootHeaderCt()===e.getRootHeaderCt()){g.autoSize()}}else{if(e.isAtEndEdge(i)){if(e.isGroupHeader&&i.getPoint().isContainedBy(e.layout.innerCt)){j=e.query("gridcolumn:not([hidden]):not([isGroupHeader])");e.getRootHeaderCt().autoSizeColumn(j[j.length-1]);return}else{h=e.getRootHeaderCt();if(h.visibleColumnManager.getColumns().length===1&&h.forceFit){return}}e.autoSize()}}},autoSize:function(){var f=this,j,h,g,i;if(f.isGroupHeader){j=f.query("gridcolumn:not([hidden]):not([isGroupHeader])");h=j.length;i=f.getRootHeaderCt();Ext.suspendLayouts();for(g=0;g<h;g++){i.autoSizeColumn(j[g])}Ext.resumeLayouts(true);return}f.getRootHeaderCt().autoSizeColumn(f)},onTitleElClick:function(i,l,k){var j=this,h,e;if(i.pointerType==="touch"){e=j.previousSibling(":not([hidden])");if(!j.menuDisabled&&j.isAtEndEdge(i,parseInt(j.triggerEl.getStyle("width"),10))){if(!j.menuDisabled){h=j}}else{if(e&&!e.menuDisabled&&j.isAtStartEdge(i)){h=e}}}else{h=j.triggerEl&&(i.target===j.triggerEl.dom||l===j.triggerEl||i.within(j.triggerEl))?j:null}if(k!==false&&(!h&&!j.isAtStartEdge(i)&&!j.isAtEndEdge(i)||i.getKey())){j.toggleSortState()}return h},processEvent:function(j,e,h,l,k,i){return this.fireEvent.apply(this,arguments)},isSortable:function(){var d=this.getRootHeaderCt(),e=d?d.grid:null,f=this.sortable;if(e&&e.sortableColumns===false){f=false}return f},toggleSortState:function(){if(this.isSortable()){this.sort()}},sort:function(i){var j=this,f=j.up("tablepanel"),g=f.store,h=j.getSorter();Ext.suspendLayouts();j.sorting=true;if(h){if(i){h.setDirection(i)}g.sort(h,f.multiColumnSort?"multi":"replace")}else{g.sort(j.getSortParam(),i,f.multiColumnSort?"multi":"replace")}delete j.sorting;Ext.resumeLayouts(true)},getSortParam:function(){return this.dataIndex},setSortState:function(k){var o=this,n=k&&k.getDirection(),l=o.ascSortCls,i=o.descSortCls,p=o.getRootHeaderCt(),j=o.ariaEl.dom,m;switch(n){case"DESC":if(!o.hasCls(i)){o.addCls(i);o.sortState="DESC";m=true}o.removeCls(l);break;case"ASC":if(!o.hasCls(l)){o.addCls(l);o.sortState="ASC";m=true}o.removeCls(i);break;default:o.removeCls([l,i]);o.sortState=null;break}if(j){if(o.sortState){j.setAttribute("aria-sort",o.ariaSortStates[o.sortState])}else{j.removeAttribute("aria-sort")}}if(m){p.fireEvent("sortchange",p,o,n)}},isHideable:function(){var b={hideCandidate:this,result:this.hideable};if(b.result){this.ownerCt.bubble(this.hasOtherMenuEnabledChildren,null,[b])}return b.result},hasOtherMenuEnabledChildren:function(e){var d,f;if(!this.isXType("headercontainer")){e.result=false;return false}d=this.query(">gridcolumn:not([hidden]):not([menuDisabled])");f=d.length;if(Ext.Array.contains(d,e.hideCandidate)){f--}if(f){return false}e.hideCandidate=this},isLockable:function(){var b={result:this.lockable!==false};if(b.result){this.ownerCt.bubble(this.hasMultipleVisibleChildren,null,[b])}return b.result},isLocked:function(){return this.locked||!!this.up("[isColumn][locked]","[isRootHeader]")},hasMultipleVisibleChildren:function(b){if(!this.isXType("headercontainer")){b.result=false;return false}if(this.query(">gridcolumn:not([hidden])").length>1){return false}},hide:function(){var f=this,d=f.getRootHeaderCt(),e=f.getRefOwner();if(e.constructing){Ext.grid.header.Container.prototype.hide.call(this);return f}if(f.rendered&&!f.isVisible()){return f}if(d.forceFit){f.visibleSiblingCount=d.getVisibleGridColumns().length-1;if(f.flex){f.savedWidth=f.getWidth();f.flex=null}}d.beginChildHide();Ext.suspendLayouts();if(e.isGroupHeader){if(f.isNestedGroupHeader()){e.hide()}if(f.isSubHeader&&!f.isGroupHeader&&e.query(">gridcolumn:not([hidden])").length===1){e.lastHiddenHeader=f}}Ext.grid.header.Container.prototype.hide.call(this);d.endChildHide();d.onHeaderHide(f);Ext.resumeLayouts(true);return f},show:function(){var f=this,e=f.getRootHeaderCt(),d=f.getRefOwner();if(f.isVisible()){return f}if(d.isGroupHeader){d.lastHiddenHeader=null}if(f.rendered){if(e.forceFit){e.applyForceFit(f)}}Ext.suspendLayouts();if(f.isSubHeader&&d.hidden){d.show(false,true)}Ext.grid.header.Container.prototype.show.apply(this,arguments);if(f.isGroupHeader){f.maybeShowNestedGroupHeader()}d=f.getRootHeaderCt();if(d){d.onHeaderShow(f)}Ext.resumeLayouts(true);return f},shouldUpdateCell:function(f,i){if(!this.preventUpdate){if(this.hasCustomRenderer){return 1}if(i){var g=i.length,j,h;for(j=0;j<g;++j){h=i[j];if(h===this.dataIndex||h===f.idProperty){return 2}}}else{return 2}}},getCellWidth:function(){var c=this,d;if(c.rendered&&c.componentLayout&&c.componentLayout.lastComponentSize){d=c.componentLayout.lastComponentSize.width}else{if(c.width){d=c.width}else{if(!c.isColumn){d=c.getTableWidth()}}}return d},getCellId:function(){return"x-grid-cell-"+this.getItemId()},getCellSelector:function(){var b=this.getView();return(b?b.getCellSelector():"")+"."+this.getCellId()},getCellInnerSelector:function(){return this.getCellSelector()+" .x-grid-cell-inner"},isAtStartEdge:function(d){var c=d.getXY()[0]-this.getX();if(c<0&&this.getIndex()===0){return false}return(c<this.getHandleWidth(d))},isAtEndEdge:function(c,d){return(this.getX()+this.getWidth()-c.getXY()[0]<=(d||this.getHandleWidth(c)))},getHandleWidth:function(b){return b.pointerType==="touch"?10:4},setMenuActive:function(b){this.activeMenu=b;this.titleEl[b?"addCls":"removeCls"](this.headerOpenCls)},deprecated:{5:{methods:{bindRenderer:function(b){return function(a){return Ext.util.Format[b](a)}}}}}},0,["gridcolumn"],["component","box","container","headercontainer","gridcolumn"],{component:true,box:true,container:true,headercontainer:true,gridcolumn:true},["widget.gridcolumn"],0,[Ext.grid.column,"Column",Ext.grid,"Column"],0));Ext.define("Ext.theme.triton.grid.column.Column",{override:"Ext.grid.column.Column",compatibility:Ext.isIE8,onTitleMouseOver:function(){var b=this.triggerEl;arguments.callee.$previous.apply(this,arguments);if(b){b.syncRepaint()}}});(Ext.cmd.derive("Ext.grid.column.Action",Ext.grid.column.Column,{alternateClassName:"Ext.grid.ActionColumn",stopSelection:true,actionIdRe:new RegExp("x-action-col-(\\d+)"),altText:"",menuText:"<i>Actions</i>",ignoreExport:true,sortable:false,innerCls:"x-grid-cell-inner-action-col",actionIconCls:"x-action-col-icon",constructor:function(m){var k=this,h=Ext.apply({},m),n=h.items||k.items||[k],j,l,i;k.origRenderer=h.renderer||k.renderer;k.origScope=h.scope||k.scope;k.renderer=k.scope=h.renderer=h.scope=null;h.items=null;Ext.grid.column.Column.prototype.constructor.call(this,h);k.items=n;for(l=0,i=n.length;l<i;++l){if(n[l].getClass){j=true;break}}if(k.origRenderer||j){k.hasCustomRenderer=true}},initComponent:function(){var b=this;Ext.grid.column.Column.prototype.initComponent.call(this);if(b.sortable&&!b.dataIndex){b.sortable=false}},defaultRenderer:function(C,z,H,I,A,E,B){var t=this,J=t.origScope||t,y=t.items,w=y.length,x,u,i,G,F,D,v;i=Ext.isFunction(t.origRenderer)?t.origRenderer.apply(J,arguments)||"":"";z.tdCls+=" x-action-col-cell";for(x=0;x<w;x++){u=y[x];v=u.icon;G=u.disabled||(u.isDisabled?u.isDisabled.call(u.scope||J,B,I,A,u,H):false);F=G?null:(u.tooltip||(u.getTip?u.getTip.apply(u.scope||J,arguments):null));D=u.getAltText?u.getAltText.apply(u.scope||J,arguments):u.altText||t.altText;if(!u.hasActionConfiguration){u.stopSelection=t.stopSelection;u.disable=Ext.Function.bind(t.disableAction,t,[x],0);u.enable=Ext.Function.bind(t.enableAction,t,[x],0);u.hasActionConfiguration=true}i+="<"+(v?"img":"div")+' tabIndex="0" role="button"'+(v?(' alt="'+D+'" src="'+u.icon+'"'):"")+' class="'+t.actionIconCls+" x-action-col-"+String(x)+" "+(G?t.disabledCls+" ":" ")+(Ext.isFunction(u.getClass)?u.getClass.apply(u.scope||J,arguments):(u.iconCls||t.iconCls||""))+'"'+(F?' data-qtip="'+F+'"':"")+(v?"/>":"></div>")}return i},updater:function(h,j,l,g,i){var k={};Ext.fly(h).addCls(k.tdCls).down(this.getView().innerSelector,true).innerHTML=this.defaultRenderer(j,k,l,null,null,i,g)},enableAction:function(d,e){var f=this;if(!d){d=0}else{if(!Ext.isNumber(d)){d=Ext.Array.indexOf(f.items,d)}}f.items[d].disabled=false;f.up("tablepanel").el.select(".x-action-col-"+d).removeCls(f.disabledCls);if(!e){f.fireEvent("enable",f)}},disableAction:function(d,e){var f=this;if(!d){d=0}else{if(!Ext.isNumber(d)){d=Ext.Array.indexOf(f.items,d)}}f.items[d].disabled=true;f.up("tablepanel").el.select(".x-action-col-"+d).addCls(f.disabledCls);if(!e){f.fireEvent("disable",f)}},beforeDestroy:function(){this.renderer=this.items=null;return Ext.grid.column.Column.prototype.beforeDestroy.apply(this,arguments)},processEvent:function(v,t,r,C,u,x,A,e){var w=this,y=x.getTarget(),s=v==="keydown"&&x.getKey(),B,q,D,z=Ext.fly(r);x.stopSelection=!s&&w.stopSelection;if(s&&(y===r||!z.contains(y))){y=z.query("."+w.actionIconCls,true);if(y.length===1){y=y[0]}else{return}}if(y&&(B=y.className.match(w.actionIdRe))){q=w.items[parseInt(B[1],10)];D=q.disabled||(q.isDisabled?q.isDisabled.call(q.scope||w.origScope||w,t,C,u,q,A):false);if(q&&!D){if(v==="mousedown"&&!w.getView().actionableMode){x.preventDefault()}else{if(v==="click"||(s===x.ENTER||s===x.SPACE)){Ext.callback(q.handler||w.handler,q.scope||w.origScope,[t,C,u,q,x,A,e],undefined,w);if(!t.el.contains(Ext.Element.getActiveElement())){return false}}}}}return Ext.grid.column.Column.prototype.processEvent.apply(this,arguments)},cascade:function(c,d){c.call(d||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.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(b){return Ext.util.Format.date(b,this.format)},updater:function(d,c){Ext.fly(d).down(this.getView().innerSelector,true).innerHTML=Ext.grid.column.Date.prototype.defaultRenderer.call(this,c)}},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(b){return Ext.util.Format.number(b,this.format)},updater:function(d,c){Ext.fly(d).down(this.getView().innerSelector,true).innerHTML=Ext.grid.column.Number.prototype.defaultRenderer.call(this,c)}},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.menu.Item",Ext.Component,{alternateClassName:"Ext.menu.TextItem",isMenuItem:true,activated:false,activeCls:"x-menu-item-active",clickHideDelay:0,destroyMenu:true,disabledCls:"x-menu-item-disabled",hideOnClick:true,menuAlign:"tl-tr?",menuExpandDelay:200,menuHideDelay:200,tooltipType:"qtip",focusable:true,ariaRole:"menuitem",ariaEl:"itemEl",baseCls:"x-menu-item",arrowCls:"x-menu-item-arrow",baseIconCls:"x-menu-item-icon",textCls:"x-menu-item-text",indentCls:"x-menu-item-indent",indentNoSeparatorCls:"x-menu-item-indent-no-separator",indentRightIconCls:"x-menu-item-indent-right-icon",indentRightArrowCls:"x-menu-item-indent-right-arrow",linkCls:"x-menu-item-link",linkHrefCls:"x-menu-item-link-href",childEls:["itemEl","iconEl","textEl","arrowEl"],renderTpl:'<tpl if="plain">{text}<tpl else><a id="{id}-itemEl" data-ref="itemEl" class="{linkCls}<tpl if="hasHref"> {linkHrefCls}</tpl>{childElCls}" href="{href}" <tpl if="hrefTarget"> target="{hrefTarget}"</tpl> hidefocus="true" unselectable="on"<tpl if="tabIndex != null"> tabindex="{tabIndex}"</tpl><tpl foreach="ariaAttributes"> {$}="{.}"</tpl>><span id="{id}-textEl" data-ref="textEl" class="{textCls} {textCls}-{ui} {indentCls}{childElCls}" unselectable="on">{text}</span><tpl if="hasIcon"><div role="presentation" id="{id}-iconEl" data-ref="iconEl" class="{baseIconCls}-{ui} {baseIconCls}{[values.rightIcon ? "-right" : ""]} {iconCls}{childElCls} {glyphCls}" style="<tpl if="icon">background-image:url({icon});</tpl><tpl if="glyph && glyphFontFamily">font-family:{glyphFontFamily};</tpl>"><tpl if="glyph">&#{glyph};</tpl></div></tpl><tpl if="showCheckbox"><div role="presentation" id="{id}-checkEl" data-ref="checkEl" class="{baseIconCls}-{ui} {baseIconCls}{[(values.hasIcon && !values.rightIcon) ? "-right" : ""]} {groupCls} {checkboxCls}{childElCls}"></div></tpl><tpl if="hasMenu"><div role="presentation" id="{id}-arrowEl" data-ref="arrowEl" class="{arrowCls} {arrowCls}-{ui}{childElCls}"></div></tpl></a></tpl>',maskOnDisable:false,iconAlign:"left",initComponent:function(){var d=this,e=d.cls?[d.cls]:[],f;if(d.hasOwnProperty("canActivate")){d.focusable=d.canActivate}if(d.plain){e.push("x-menu-item-plain")}if(e.length){d.cls=e.join(" ")}if(d.menu){f=d.menu;d.menu=null;d.setMenu(f)}Ext.Component.prototype.initComponent.apply(this,arguments)},canFocus:function(){var b=this;return b.focusable&&b.rendered&&b.canActivate!==false&&!b.destroying&&!b.destroyed&&b.isVisible(true)},onFocus:function(c){var d=this;Ext.Component.prototype.onFocus.call(this,c);if(!d.disabled){if(!d.plain){d.addCls(d.activeCls)}d.activated=true;if(d.hasListeners.activate){d.fireEvent("activate",d)}}},onFocusLeave:function(c){var d=this;Ext.Component.prototype.onFocusLeave.call(this,c);if(d.activated){if(!d.plain){d.removeCls(d.activeCls)}d.doHideMenu();d.activated=false;if(d.hasListeners.deactivate){d.fireEvent("deactivate",d)}}},doHideMenu:function(){var b=this.menu;this.cancelDeferExpand();if(b&&b.isVisible()){b.hide()}},deferHideParentMenus:function(){for(var b=this.getRefOwner();b&&((b.isMenu&&b.floating)||b.isMenuItem);b=b.getRefOwner()){if(b.isMenu){b.hide()}}},expandMenu:function(f,e){var d=this;if(d.activated&&d.menu){d.hideOnClick=false;d.cancelDeferHide();e=e==null?d.menuExpandDelay:e;if(e===0){d.doExpandMenu(f)}else{d.cancelDeferExpand();d.expandMenuTimer=Ext.defer(d.doExpandMenu,e,d,[f])}}},doExpandMenu:function(e){var d=this,f=d.menu;if(!f.isVisible()){d.parentMenu.activeChild=f;f.ownerCmp=d;f.parentMenu=d.parentMenu;f.constrainTo=document.body;f.autoFocus=!e||!e.pointerType;f.showBy(d,d.menuAlign)}},getRefItems:function(e){var f=this.menu,d;if(f){d=f.getRefItems(e);d.unshift(f)}return d||[]},getValue:function(){return this.value},hideMenu:function(d){var c=this;if(c.menu){c.cancelDeferExpand();c.hideMenuTimer=Ext.defer(c.doHideMenu,Ext.isNumber(d)?d:c.menuHideDelay,c)}},onClick:function(j){var k=this,l=k.clickHideDelay,i=j.browserEvent,e,h;if(!k.href||k.disabled){j.stopEvent();if(k.disabled){return false}}if(k.disabled||k.handlingClick){return}if(k.hideOnClick){if(!l){k.deferHideParentMenus()}else{k.deferHideParentMenusTimer=Ext.defer(k.deferHideParentMenus,l,k)}}e=k.fireEvent("click",k,j);if(k.destroyed){return}if(e!==false&&k.handler){Ext.callback(k.handler,k.scope,[k,j],0,k)}if(Ext.isIE9m){h=i.returnValue===false?true:false}else{h=!!i.defaultPrevented}if(k.href&&j.type!=="click"&&!h){k.handlingClick=true;k.itemEl.dom.click();k.handlingClick=false}if(!k.hideOnClick){k.focus()}return e},onRemoved:function(){var b=this;if(b.activated&&b.parentMenu.activeItem===b){b.parentMenu.deactivateActiveItem()}Ext.Component.prototype.onRemoved.apply(this,arguments);b.parentMenu=b.ownerCmp=null},beforeDestroy:function(){var b=this;if(b.rendered){b.clearTip()}Ext.Component.prototype.beforeDestroy.call(this)},onDestroy:function(){var b=this;b.cancelDeferExpand();b.cancelDeferHide();clearTimeout(b.deferHideParentMenusTimer);b.setMenu(null);Ext.Component.prototype.onDestroy.apply(this,arguments)},beforeRender:function(){var n=this,m=n.glyph,o=Ext._glyphFontFamily,r=!!(n.icon||n.iconCls||m),l=!!n.menu,q=((n.iconAlign==="right")&&!l),t=n.isMenuCheckItem,v=[],s=n.ownerCt,p=s.plain,u;if(n.plain){n.ariaEl="el"}Ext.Component.prototype.beforeRender.call(this);if(r){if(l&&n.showCheckbox){r=false}}if(typeof m==="string"){u=m.split("@");m=u[0];o=u[1]}if(!p||(r&&!q)||t){if(s.showSeparator&&!p){v.push(n.indentCls)}else{v.push(n.indentNoSeparatorCls)}}if(l){v.push(n.indentRightArrowCls)}else{if(r&&(q||t)){v.push(n.indentRightIconCls)}}Ext.applyIf(n.renderData,{hasHref:!!n.href,href:n.href||"#",hrefTarget:n.hrefTarget,icon:n.icon,iconCls:n.iconCls,glyph:m,glyphCls:m?"x-menu-item-glyph":undefined,glyphFontFamily:o,hasIcon:r,hasMenu:l,indent:!p||r||t,isCheckItem:t,rightIcon:q,plain:n.plain,text:n.text,arrowCls:n.arrowCls,baseIconCls:n.baseIconCls,textCls:n.textCls,indentCls:v.join(" "),linkCls:n.linkCls,linkHrefCls:n.linkHrefCls,groupCls:n.group?n.groupCls:"",tabIndex:n.tabIndex})},onRender:function(){var b=this;Ext.Component.prototype.onRender.apply(this,arguments);if(b.tooltip){b.setTooltip(b.tooltip,true)}},getMenu:function(){return this.menu||null},setMenu:function(k,l){var m=this,p=m.menu,i=m.arrowEl,j=m.ariaEl.dom,n,o;if(p){p.ownerCmp=p.parentMenu=null;if(l===true||(l!==false&&m.destroyMenu)){Ext.destroy(p)}if(j){j.removeAttribute("aria-haspopup");j.removeAttribute("aria-owns")}else{n=(m.ariaRenderAttributes||(m.ariaRenderAttributes={}));delete n["aria-haspopup"];delete n["aria-owns"]}}if(k){o=k.isMenu;k=m.menu=Ext.menu.Manager.get(k,{ownerCmp:m,focusOnToFront:false});k.setOwnerCmp(m,o);if(j){j.setAttribute("aria-haspopup",true);j.setAttribute("aria-owns",k.id)}else{n=(m.ariaRenderAttributes||(m.ariaRenderAttributes={}));n["aria-haspopup"]=true;n["aria-owns"]=k.id}}else{k=m.menu=null}if(k&&m.rendered&&!m.destroying&&i){i[k?"addCls":"removeCls"](m.arrowCls)}},setHandler:function(c,d){this.handler=c||null;this.scope=d},setIcon:function(d){var e=this.iconEl,f=this.icon;if(e){e.src=d||Ext.BLANK_IMAGE_URL}this.icon=d;this.fireEvent("iconchange",this,f,d)},setIconCls:function(e){var g=this,f=g.iconEl,h=g.iconCls;if(f){if(g.iconCls){f.removeCls(g.iconCls)}if(e){f.addCls(e)}}g.iconCls=e;g.fireEvent("iconchange",g,h,e)},setText:function(g){var h=this,e=h.textEl||h.el,f=h.text;h.text=g;if(h.rendered){e.setHtml(g||"");h.updateLayout()}h.fireEvent("textchange",h,f,g)},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(f,e){var d=this;if(d.rendered){if(!e){d.clearTip()}if(Ext.quickTipsActive&&Ext.isObject(f)){Ext.tip.QuickTipManager.register(Ext.apply({target:d.itemEl.id},f));d.tooltip=f}else{d.itemEl.dom.setAttribute(d.getTipAttr(),f)}}else{d.tooltip=f}return d},privates:{cancelDeferExpand:function(){window.clearTimeout(this.expandMenuTimer)},cancelDeferHide:function(){window.clearTimeout(this.hideMenuTimer)},getFocusEl:function(){return this.plain?this.el:this.itemEl}}},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.define("Ext.theme.triton.menu.Item",{override:"Ext.menu.Item",compatibility:Ext.isIE8,onFocus:function(b){(arguments.callee.$previous||Ext.Component.prototype.onFocus).call(this,b);this.repaintIcons()},onFocusLeave:function(b){(arguments.callee.$previous||Ext.Component.prototype.onFocusLeave).call(this,b);this.repaintIcons()},privates:{repaintIcons:function(){var f=this.iconEl,d=this.arrowEl,e=this.checkEl;if(f){f.syncRepaint()}if(d){d.syncRepaint()}if(e){e.syncRepaint()}}}});Ext.define("Admin.override.menu.Item",{override:"Ext.menu.Item",compatibility:"IE@8",onFocus:function(b){(arguments.callee.$previous||Ext.Component.prototype.onFocus).call(this,b);this.repaintFontIcons()},onFocusLeave:function(b){(arguments.callee.$previous||Ext.Component.prototype.onFocusLeave).call(this,b);this.repaintFontIcons()},privates:{repaintFontIcons:function(){var e=this.itemEl,f=this.textEl,d;if(e&&this.el.hasCls("font-icon")){e.syncRepaint()}if(f){d=Ext.fly(f.dom.firstChild);if(d&&d.hasCls("x-fa")){d.syncRepaint()}}}}});(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"],showCheckbox:true,isMenuCheckItem:true,checkboxCls:"x-menu-item-checkbox",initComponent:function(){var b=this;b.checked=!!b.checked;Ext.menu.Item.prototype.initComponent.apply(this,arguments);if(b.group){Ext.menu.Manager.registerCheckable(b);if(b.initialConfig.hideOnClick!==false){b.hideOnClick=true}}},beforeRender:function(){var c=this,d;Ext.menu.Item.prototype.beforeRender.call(this);Ext.apply(c.renderData,{checkboxCls:c.checkboxCls,showCheckbox:c.showCheckbox});d=(c.ariaRenderAttributes||(c.ariaRenderAttributes={}));d["aria-checked"]=c.menu?"mixed":c.checked;if(c.menu){d["aria-label"]=Ext.String.formatEncode(c.submenuText,c.text)}},afterRender:function(){var b=this;Ext.menu.Item.prototype.afterRender.call(this);b.checked=!b.checked;b.setChecked(!b.checked,true);if(b.checkChangeDisabled){b.disableCheckChange()}if(Ext.isGecko&&b.checkEl){b.checkEl.on("mousedown",b.onMouseDownCheck)}},disableCheckChange:function(){var c=this,d=c.checkEl;if(d){d.addCls(c.disabledCls)}if(Ext.isIE8&&c.rendered){c.el.repaint()}c.checkChangeDisabled=true},enableCheckChange:function(){var c=this,d=c.checkEl;if(d){d.removeCls(c.disabledCls)}c.checkChangeDisabled=false},onMouseDownCheck:function(b){b.preventDefault()},onClick:function(c){var d=this;if(!(d.disabled||d.checkChangeDisabled||d.checked&&d.group||d.menu&&"touch"===c.pointerType&&!d.checkEl.contains(c.target))){d.setChecked(!d.checked);if(c.type==="keydown"&&d.menu){return false}}Ext.menu.Item.prototype.onClick.call(this,c)},onDestroy:function(){Ext.menu.Manager.unregisterCheckable(this);Ext.menu.Item.prototype.onDestroy.apply(this,arguments)},setText:function(f){var d=this,e=d.ariaEl.dom;Ext.menu.Item.prototype.setText.call(this,f);if(e&&d.menu){e.setAttribute("aria-label",Ext.String.formatEncode(d.submenuText,f))}},setChecked:function(l,n){var m=this,k=m.checkedCls,j=m.uncheckedCls,h=m.el,i=m.ariaEl.dom;if(m.checked!==l&&(n||m.fireEvent("beforecheckchange",m,l)!==false)){if(h){if(l){h.addCls(k);h.removeCls(j)}else{h.addCls(j);h.removeCls(k)}}if(i){i.setAttribute("aria-checked",m.menu?"mixed":!!l)}m.checked=l;Ext.menu.Manager.onCheckChange(m,l);if(!n){Ext.callback(m.checkHandler,m.scope,[m,l],0,m);m.fireEvent("checkchange",m,l)}}}},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:"&#160;",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.define("Ext.theme.neptune.menu.Separator",{override:"Ext.menu.Separator",border:true});(Ext.cmd.derive("Ext.menu.Menu",Ext.panel.Panel,{enableKeyNav:true,allowOtherMenus:false,ariaRole:"menu",floating:true,constrain:true,hidden:true,hideMode:"visibility",ignoreParentClicks:false,isMenu:true,showSeparator:true,minWidth:undefined,defaultMinWidth:120,defaultAlign:"tl-bl?",focusOnToFront:false,bringParentToFront:false,defaultFocus:":focusable",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 j=this,g=["x-menu"],i=j.bodyCls?[j.bodyCls]:[],h=j.floating!==false,f={element:"el",click:j.onClick,mouseover:j.onMouseOver,scope:j};if(Ext.supports.Touch){f.pointerdown=j.onMouseOver}j.on(f);j.on({beforeshow:j.onBeforeShow,scope:j});if(j.plain){g.push("x-menu-plain")}j.cls=g.join(" ");i.push("x-menu-body",Ext.dom.Element.unselectableCls);j.bodyCls=i.join(" ");if(h){if(j.minWidth===undefined){j.minWidth=j.defaultMinWidth}}else{j.hidden=!!j.initialConfig.hidden;j.constrain=false}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);Ext.override(j.getLayout(),{configureItem:j.configureItem})},initFloatConstrain:Ext.emptyFn,getInherited:function(){var b=Ext.panel.Panel.prototype.getInherited.call(this);b.hidden=this.hidden;return b},beforeRender:function(){var b=this;Ext.panel.Panel.prototype.beforeRender.apply(this,arguments);if(!b.getSizeModel().width.shrinkWrap){b.layout.align="stretch"}if(b.floating){b.ariaRenderAttributes=b.ariaRenderAttributes||{};b.ariaRenderAttributes["aria-expanded"]=!!b.autoShow}},onBoxReady:function(){var d=this,f=d._iconSeparatorCls,e=d.focusableKeyNav;if(e){e.map.processEventScope=d;e.map.processEvent=function(a){if(a.keyCode===a.ESC){a.target=this.el.dom}return a};e.map.addBinding([{key:Ext.event.Event.ESC,handler:d.onEscapeKey,scope:d},{key:/[\w]/,handler:d.onShortcutKey,scope:d,shift:false,ctrl:false,alt:false}])}else{d.escapeKeyNav=new Ext.util.KeyNav(d.el,{eventName:"keydown",scope:d,esc:d.onEscapeKey})}Ext.panel.Panel.prototype.onBoxReady.apply(this,arguments);if(d.showSeparator){d.iconSepEl=d.body.insertFirst({role:"presentation",cls:f+" "+f+"-"+d.ui,html:"&#160;"})}if(Ext.supports.MSPointerEvents||Ext.supports.PointerEvents){d.el.on({scope:d,click:d.preventClick,translate:false})}d.mouseMonitor=d.el.monitorMouseLeave(100,d.onMouseLeave,d)},onFocusLeave:function(c){var d=this;Ext.panel.Panel.prototype.onFocusLeave.call(this,c);d.mixins.focusablecontainer.onFocusLeave.call(d,c);if(d.floating){d.hide()}},canActivateItem:function(b){return b&&b.isFocusable()},deactivateActiveItem:function(){var d=this,c=d.lastFocusedChild;if(c){c.blur()}},getItemFromEvent:function(g){var f=this,h=f.layout.getRenderTarget().dom,e=g.getTarget();while(e.parentNode!==h){e=e.parentNode;if(!e){return}}return Ext.getCmp(e.id)},lookupComponent:function(c){var d=this;if(typeof c==="string"){c=d.lookupItemFromString(c)}else{if(Ext.isObject(c)){c=d.lookupItemFromObject(c)}}if(!c.dock){c.minWidth=c.minWidth||d.minWidth}return c},lookupItemFromObject:function(c){var d=this;if(!c.isComponent){if(!c.xtype){c=Ext.create("Ext.menu."+(Ext.isBoolean(c.checked)?"Check":"")+"Item",c)}else{c=Ext.ComponentManager.create(c,c.xtype)}}if(c.isMenuItem){c.parentMenu=d}return c},lookupItemFromString:function(b){return(b==="separator"||b==="-")?new Ext.menu.Separator():new Ext.menu.Item({canActivate:false,hideOnClick:false,plain:true,text:b})},configureItem:function(l){var g=this.owner,j="x-",k=g.ui,h,i;if(l.isMenuItem){l.setUI(k)}else{if(g.items.getCount()>1&&!l.rendered&&!l.dock){i=g._itemCmpCls;h=[i+" "+i+"-"+k];if(!g.plain&&(l.indent!==false||l.iconCls==="no-icon")){h.push(j+"menu-item-indent-"+k)}if(l.rendered){l.el.addCls(h)}else{l.cls=(l.cls||"")+" "+h.join(" ")}l.$extraMenuCls=h}}this.callParent(arguments)},onRemove:function(b){Ext.panel.Panel.prototype.onRemove.call(this,b);if(!b.destroyed&&b.$extraMenuCls){b.el.removeCls(b.$extraMenuCls)}},onClick:function(i){var j=this,l=i.type,k,e,h=l==="keydown";if(j.disabled){i.stopEvent();return}k=j.getItemFromEvent(i);if(k&&k.isMenuItem){if(!k.menu||!j.ignoreParentClicks){e=k.onClick(i)}else{i.stopEvent()}if(k.menu&&e!==false&&h){k.expandMenu(i,0)}}if(!k||k.disabled){k=undefined}j.fireEvent("click",j,k,i)},onDestroy:function(){var b=this;if(b.escapeKeyNav){b.escapeKeyNav.destroy()}b.parentMenu=b.ownerCmp=b.escapeKeyNav=null;if(b.rendered){b.el.un(b.mouseMonitor);Ext.destroy(b.iconSepEl)}Ext.menu.Manager.onHide(b);Ext.panel.Panel.prototype.onDestroy.apply(this,arguments)},onMouseLeave:function(b){if(this.disabled){return}this.fireEvent("mouseleave",this,b)},onMouseOver:function(k){var l=this,j=k.getRelatedTarget(),e=!l.el.contains(j),m=l.getItemFromEvent(k),n=l.parentMenu,i=l.ownerCmp;if(e&&n){n.setActiveItem(i);i.cancelDeferHide();n.mouseMonitor.mouseenter()}if(l.disabled){return}if(m){if(!m.containsFocus){m.focus()}if(m.expandMenu){m.expandMenu(k)}}if(e){l.fireEvent("mouseenter",l,k)}l.fireEvent("mouseover",l,m,k)},setActiveItem:function(c){var d=this;if(c&&(c!==d.lastFocusedChild)){d.focusChild(c,1)}},onEscapeKey:function(){if(this.floating){this.hide()}},onShortcutKey:function(l,m){var e=String.fromCharCode(m.getCharCode()),p=this.query(">[text]"),i=p.length,n=this.lastFocusedChild,k=Ext.Array.indexOf(p,n),o=k;for(;;){if(++o===i){o=0}n=p[o];if(o===k){return}if(n.text&&n.text[0].toUpperCase()===e){n.focus();return}}},onFocusableContainerTabKey:function(b){if(this.floating){this.hide()}},onFocusableContainerEnterKey:function(b){this.onClick(b)},onFocusableContainerSpaceKey:function(b){this.onClick(b)},onFocusableContainerLeftKey:function(b){b.preventDefault();if(this.parentMenu){this.ownerCmp.focus();this.hide()}},onFocusableContainerRightKey:function(d){var e=this,f=e.lastFocusedChild;d.preventDefault();if(f&&f.expandMenu){f.expandMenu(d,0)}},onBeforeShow:function(){if(Ext.Date.getElapsed(this.lastHide)<this.menuClickBuffer){return false}},beforeShow:function(){var h=this,e,g,f;if(h.floating){e=h.hasFloatMenuParent();if(!e&&!h.allowOtherMenus){Ext.menu.Manager.hideAll()}if(e){h.focusAnchor=e.focusAnchor}else{g=Ext.Element.getActiveElement();if(g===document.body||g===document.documentElement){h.focusAnchor=null}else{h.focusAnchor=g}}h.savedMaxHeight=h.maxHeight;f=h.container.getViewSize().height;h.maxHeight=Math.min(h.maxHeight||f,f)}Ext.panel.Panel.prototype.beforeShow.apply(this,arguments)},afterShow:function(){var c=this,d=c.ariaEl.dom;Ext.panel.Panel.prototype.afterShow.apply(this,arguments);Ext.menu.Manager.onShow(c);if(c.floating&&d){d.setAttribute("aria-expanded",true)}if(c.floating&&c.autoFocus){c.maxHeight=c.savedMaxHeight;c.focus()}},onHide:function(i,l,k){var j=this,g=j.ariaEl.dom,h;if(j.el.contains(Ext.Element.getActiveElement())){h=j.focusAnchor||j.ownerCmp||j.up(":focusable");if(h){j.previousFocus=h}}Ext.panel.Panel.prototype.onHide.call(this,i,l,k);j.lastHide=Ext.Date.now();Ext.menu.Manager.onHide(j);if(j.floating&&g){g.setAttribute("aria-expanded",false)}},preventClick:function(c){var d=this.getItemFromEvent(c);if(d&&d.isMenuItem&&!d.href){c.preventDefault()}},privates:{hasFloatMenuParent:function(){return this.parentMenu||this.up("menu[floating=true]")},setOwnerCmp:function(d,e){var f=this;f.parentMenu=d.isMenuItem?d:null;f.ownerCmp=d;f.registerWithOwnerCt();delete f.hierarchicallyHidden;f.onInheritedAdd(d,e);f.containerOnAdded(d,e)}}},0,["menu"],["component","box","container","panel","menu"],{component:true,box:true,container:true,panel:true,menu:true},["widget.menu"],[[Ext.util.FocusableContainer.prototype.mixinId||Ext.util.FocusableContainer.$className,Ext.util.FocusableContainer]],[Ext.menu,"Menu"],0));Ext.define("Ext.theme.neptune.menu.Menu",{override:"Ext.menu.Menu",showSeparator:false});Ext.define("Ext.theme.triton.menu.Menu",{override:"Ext.menu.Menu",compatibility:Ext.isIE8,afterShow:function(){var h=this,f,i,j,g;(arguments.callee.$previous||Ext.panel.Panel.prototype.afterShow).apply(this,arguments);f=h.items.getRange();for(j=0,g=f.length;j<g;j++){i=f[j];if(i&&i.repaintIcons){i.repaintIcons()}}}});(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(e){var f=this,g=e.lockedGrid,h=e.normalGrid;f.lockable=e;Ext.grid.header.Container.prototype.constructor.call(this);g.visibleColumnManager.rootColumns=h.visibleColumnManager.rootColumns=e.visibleColumnManager=f.visibleColumnManager=new Ext.grid.ColumnManager(true,g.headerCt,h.headerCt);g.columnManager.rootColumns=h.columnManager.rootColumns=e.columnManager=f.columnManager=new Ext.grid.ColumnManager(false,g.headerCt,h.headerCt);f.lockedEventRelayers=f.relayEvents(g.headerCt,f.headerCtRelayEvents);f.normalEventRelayers=f.relayEvents(h.headerCt,f.headerCtRelayEvents)},destroy:function(){var b=this;Ext.destroy(b.lockedEventRelayers,b.normalEventRelayers);b.lockedEventRelayers=b.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 d=this,e=d.lockable.lockedGrid.headerCt.getColumnsState(),f=d.lockable.normalGrid.headerCt.getColumnsState();return e.concat(f)},applyColumnsState:function(y,C){var r=this,A=r.lockable.lockedGrid,z=A.headerCt,t=r.lockable.normalGrid.headerCt,i=Ext.Array.toValueMap(z.items.items,"stateId"),x=Ext.Array.toValueMap(t.items.items,"stateId"),u=[],s=[],v=1,E=y.length,w,F,B,D;for(w=0;w<E;w++){D=y[w];B=i[D.id];F=B||x[D.id];if(F){if(F.applyColumnState){F.applyColumnState(D,C)}if(F.locked===undefined){F.locked=!!B}if(F.locked){u.push(F);if(!F.hidden&&typeof F.width==="number"){v+=F.width}}else{s.push(F)}}}if(u.length+s.length===z.items.getCount()+t.items.getCount()){z.removeAll(false);t.removeAll(false);z.add(u);t.add(s);A.setWidth(v)}},disable:function(){var b=this.lockable;b.lockedGrid.headerCt.disable();b.normalGrid.headerCt.disable()},enable:function(){var b=this.lockable;b.lockedGrid.headerCt.enable();b.normalGrid.headerCt.enable()}},1,0,["component","box","container","headercontainer"],{component:true,box:true,container:true,headercontainer:true},0,0,[Ext.grid.locking,"HeaderContainer"],0));(Ext.cmd.derive("Ext.grid.locking.View",Ext.Base,{alternateClassName:"Ext.grid.LockingView",isLockingView:true,loadMask:true,eventRelayRe:/^(beforeitem|beforecontainer|item|container|cell|refresh)/,constructor:function(g){var j=Ext,h=this,i,f;h.ownerGrid=g.ownerGrid;h.ownerGrid.view=h;h.navigationModel=g.locked.xtype==="treepanel"?new j.tree.NavigationModel(h):new j.grid.NavigationModel(h);g.locked.viewConfig.bindStore=j.emptyFn;g.normal.viewConfig.bindStore=h.subViewBindStore;g.normal.viewConfig.isNormalView=g.locked.viewConfig.isLockedView=true;g.locked.viewConfig.beforeLayout=g.normal.viewConfig.beforeLayout=h.beforeLayout;g.locked.viewConfig.navigationModel=g.normal.viewConfig.navigationModel=h.navigationModel;h.lockedGrid=h.ownerGrid.lockedGrid=j.ComponentManager.create(g.locked);h.lockedView=i=h.lockedGrid.getView();h.selModel=g.normal.viewConfig.selModel=i.getSelectionModel();if(h.lockedGrid.isTree){h.lockedView.animate=false;g.normal.store=i.store;g.normal.viewConfig.stripeRows=h.lockedView.stripeRows;g.normal.rowLines=h.lockedGrid.rowLines}h.normalGrid=h.ownerGrid.normalGrid=j.ComponentManager.create(g.normal);i.lockingPartner=f=h.normalView=h.normalGrid.getView();f.lockingPartner=i;h.loadMask=(g.loadMask!==undefined)?g.loadMask:h.loadMask;h.mixins.observable.constructor.call(h);h.lockedViewEventRelayers=h.relayEvents(i,j.view.Table.events);h.normalViewEventRelayers=h.relayEvents(f,j.view.Table.events.concat(j.view.Table.normalSideEvents));f.on({scope:h,itemmouseleave:h.onItemMouseLeave,itemmouseenter:h.onItemMouseEnter});i.on({scope:h,itemmouseleave:h.onItemMouseLeave,itemmouseenter:h.onItemMouseEnter});h.ownerGrid.on({render:h.onPanelRender,scope:h});h.loadingText=f.loadingText;h.loadingCls=f.loadingCls;h.loadingUseMsg=f.loadingUseMsg;h.itemSelector=h.getItemSelector();h.all=f.all;h.bindStore(f.dataSource,true,"dataSource")},subViewBindStore:function(d){var f=this,e;if(f.destroying||f.destroyed){return}e=f.getSelectionModel();e.bindStore(d);e.bindComponent(f)},beforeLayout:function(){var f=this.ownerCt.ownerLockable.view,d=f.lockedGrid.view,e=f.normalGrid.view;if(!f.relayingOperation){if(f.lockedGrid.isVisible()){if(d.refreshNeeded){d.doFirstRefresh(d.dataSource)}}if(e.refreshNeeded){e.doFirstRefresh(e.dataSource)}}},onPanelRender:function(){var f=this,d=f.loadMask,e={target:f.ownerGrid,msg:f.loadingText,msgCls:f.loadingCls,useMsg:f.loadingUseMsg,store:f.ownerGrid.store};f.el=f.ownerGrid.getTargetEl();f.rendered=true;f.initFocusableEvents();f.fireEvent("render",f);if(d){if(Ext.isObject(d)){e=Ext.apply(e,d)}f.loadMask=new Ext.LoadMask(e)}},getRefOwner:function(){return this.ownerGrid},getVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},getTopLevelVisibleColumnManager:function(){return this.ownerGrid.getVisibleColumnManager()},getGridColumns:function(){return this.getVisibleColumnManager().getColumns()},getEl:function(b){return this.getViewForColumn(b).getEl()},getCellSelector:function(){return this.normalView.getCellSelector()},getItemSelector:function(){return this.normalView.getItemSelector()},getViewForColumn:function(d){var e=this.lockedView,f;e.headerCt.cascade(function(a){if(a===d){f=true;return false}});return f?e:this.normalView},onItemMouseEnter:function(l,g){var i=this,k=i.lockedView,h=i.normalView,j;if(l.trackOver){if(l!==k){h=k}j=h.getNode(g);h.highlightItem(j)}},onItemMouseLeave:function(j,f){var h=this,i=h.lockedView,g=h.normalView;if(j.trackOver){if(j!==i){g=i}g.clearHighlight()}},relayFn:function(h,e){e=e||[];var g=this,f=g.lockedView;g.relayingOperation=true;f[h].apply(f,e);f=g.normalView;f[h].apply(f,e);g.relayingOperation=false},getSelectionModel:function(){return this.normalView.getSelectionModel()},getNavigationModel:function(){return this.navigationModel},getStore:function(){return this.ownerGrid.store},onBindStore:function(h,g,i){var j=this,k=j.lockedView,l=j.normalView;if(l.componentLayoutCounter&&!(k.blockRefresh&&l.blockRefresh)){Ext.suspendLayouts();k.doFirstRefresh(h);l.doFirstRefresh(h);Ext.resumeLayouts(true)}},getStoreListeners:function(){var b=this;return{priority:1000,refresh:b.onDataRefresh,replace:b.onReplace,add:b.onAdd,remove:b.onRemove,update:b.onUpdate,clear:b.onDataRefresh,beginupdate:b.onBeginUpdate,endupdate:b.onEndUpdate}},onBeginUpdate:function(){Ext.suspendLayouts();this.relayFn("onBeginUpdate",arguments);Ext.resumeLayouts(true)},onEndUpdate:function(){Ext.suspendLayouts();this.relayFn("onEndUpdate",arguments);Ext.resumeLayouts(true)},onDataRefresh:function(){Ext.suspendLayouts();this.relayFn("onDataRefresh",arguments);Ext.resumeLayouts(true)},onReplace:function(){Ext.suspendLayouts();this.relayFn("onReplace",arguments);Ext.resumeLayouts(true)},onAdd:function(){Ext.suspendLayouts();this.relayFn("onAdd",arguments);Ext.resumeLayouts(true)},onRemove:function(){Ext.suspendLayouts();this.relayFn("onRemove",arguments);Ext.resumeLayouts(true)},setActionableMode:function(g,e){var f,h;if(g){if(!e){e=this.getNavigationModel().getPosition()}if(e){e=e.clone();e.view=h=e.column.getView();f=h.setActionableMode(g,e);if(f!==false&&h.lockingPartner.grid.isVisible()){h.lockingPartner.setActionableMode(g,e);if(!h.lockingPartner.actionableMode){h.setActionableMode(false);f=false}}return f}else{return false}}else{this.relayFn("setActionableMode",[false])}},onUpdate:function(){Ext.suspendLayouts();this.relayFn("onUpdate",arguments);Ext.resumeLayouts(true)},refresh:function(){Ext.suspendLayouts();this.relayFn("refresh",arguments);Ext.resumeLayouts(true)},refreshView:function(){Ext.suspendLayouts();this.relayFn("refreshView",arguments);Ext.resumeLayouts(true)},getNode:function(b){return this.normalView.getNode(b)},getRow:function(b){return this.normalView.getRow(b)},getCell:function(e,h){var f=this.getViewForColumn(h),g=f.getRow(e);return Ext.fly(g).down(h.getCellSelector())},indexOf:function(c){var d=this.lockedView.indexOf(c);if(!d){d=this.normalView.indexOf(c)}return d},focus:function(){var b=this.ownerGrid.down(">tablepanel:not(hidden)>tableview");if(b){b.focus()}},focusRow:function(f){var e,d=this.getNavigationModel().lastFocused;e=d?d.view:this.normalView;e.focusRow(f)},focusCell:function(b){b.view.focusCell(b)},onRowFocus:function(){this.relayFn("onRowFocus",arguments)},isVisible:function(b){return this.ownerGrid.isVisible(b)},getFocusEl:function(){var d,c=this.getNavigationModel().lastFocused;d=c?c.view:this.normalView;return d.getFocusEl()},getCellInclusive:function(g,e){var f=g.column,h=this.lockedGrid.getColumnManager().getColumns().length;if(f>=h){g=Ext.apply({},g);g.column-=h;return this.normalView.getCellInclusive(g,e)}else{return this.lockedView.getCellInclusive(g,e)}},getHeaderByCell:function(b){if(b){return this.getVisibleColumnManager().getHeaderById(b.getAttribute("data-columnId"))}return false},onRowSelect:function(){this.relayFn("onRowSelect",arguments)},onRowDeselect:function(){this.relayFn("onRowDeselect",arguments)},onCellSelect:function(b){b.column.getView().onCellSelect({record:b.record,column:b.column})},onCellDeselect:function(b){b.column.getView().onCellDeselect({record:b.record,column:b.column})},getCellByPosition:function(h,j){var i=this,g=h.view,f=h.column;if(g===i){h=new Ext.grid.CellContext(f.getView()).setPosition(h.record,h.column)}return g.getCellByPosition(h,j)},getRecord:function(c){var d=this.lockedView.getRecord(c);if(!d){d=this.normalView.getRecord(c)}return d},scrollBy:function(){var b=this.normalView;b.scrollBy.apply(b,arguments)},ensureVisible:function(){var b=this.normalView;b.ensureVisible.apply(b,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 b=this;b.rendered=false;b.bindStore(null,false,"dataSource");Ext.destroy(b.lockedViewEventRelayers,b.normalViewEventRelayers);b.lockedViewEventRelayers=b.normalViewEventRelayers=null;b.callParent();Ext.destroy(b.loadMask,b.navigationModel,b.selModel);b.lockedView.lockingPartner=b.normalView.lockingPartner=null;b.lockedGrid=b.lockedView=b.normalGrid=b.normalView=null;b.loadMask=b.navigationModel=b.selModel=b.headerCt=null;b.ownerGrid=b.storeListeners=null}},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.grid.locking.Lockable",Ext.Base,{alternateClassName:"Ext.grid.Lockable",syncRowHeight:true,headerCounter:0,scrollDelta:40,lockedGridCls:"x-grid-inner-locked",normalGridCls:"x-grid-inner-normal",lockingBodyCls:"x-grid-locking-body",unlockText:"Unlock",lockText:"Lock",bothCfgCopy:["hideHeaders","enableColumnHide","enableColumnMove","enableColumnResize","sortableColumns","multiColumnSort","columnLines","rowLines","variableRowHeight","numFromEdge","trailingBufferZone","leadingBufferZone","scrollToLoadBuffer","syncRowHeight"],normalCfgCopy:["scroll"],lockedCfgCopy:[],determineXTypeToCreate:function(l){var n=this,j,m,h,k,i;if(n.subGridXType){j=n.subGridXType}else{if(!l){return"gridpanel"}m=this.getXTypes().split("/");h=m.length;k=m[h-1];i=m[h-2];if(i!=="tablepanel"){j=i}else{j=k}}return j},injectLockable:function(){this.focusable=false;this.lockable=true;this.hasView=true;var i=this,G=Ext.getScrollbarSize(),C=G.width,L=i.store=Ext.StoreManager.lookup(i.store),N=i.lockedViewConfig,w=i.normalViewConfig,E=Ext.Object,I,H,y,J,F,O,K,z,x=i.viewConfig,P=x&&x.loadMask,D=(P!==undefined)?P:i.loadMask,B=i.bufferedRenderer,A=C>0&&Ext.supports.touchScroll!==2,M=i.getInherited().rtl;I=i.constructLockableFeatures();i.features=null;H=i.constructLockablePlugins();i.plugins=H.topPlugins;y={id:i.id+"-locked",$initParent:i,isLocked:true,bufferedRenderer:B,ownerGrid:i,ownerLockable:i,xtype:i.determineXTypeToCreate(true),store:L,reserveScrollbar:A,scrollable:{indicators:{x:true,y:false}},scrollerOwner:false,animate:false,border:false,cls:i.lockedGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||i.normalGrid.floatedFromCollapse},features:I.lockedFeatures,plugins:H.lockedPlugins};J={id:i.id+"-normal",$initParent:i,isLocked:false,bufferedRenderer:B,ownerGrid:i,ownerLockable:i,xtype:i.determineXTypeToCreate(),store:L,reserveScrollbar:i.reserveScrollbar,scrollerOwner:false,border:false,cls:i.normalGridCls,isLayoutRoot:function(){return this.floatedFromCollapse||i.lockedGrid.floatedFromCollapse},features:I.normalFeatures,plugins:H.normalPlugins};i.addCls("x-grid-locked");Ext.copy(J,i,i.bothCfgCopy,true);Ext.copy(y,i,i.bothCfgCopy,true);Ext.copy(J,i,i.normalCfgCopy,true);Ext.copy(y,i,i.lockedCfgCopy,true);Ext.apply(J,i.normalGridConfig);Ext.apply(y,i.lockedGridConfig);for(F=0;F<i.normalCfgCopy.length;F++){delete i[i.normalCfgCopy[F]]}for(F=0;F<i.lockedCfgCopy.length;F++){delete i[i.lockedCfgCopy[F]]}i.addStateEvents(["lockcolumn","unlockcolumn"]);O=i.processColumns(i.columns||[],y);y.columns=O.locked;if(!y.columns.items.length){y.hidden=true}J.columns=O.normal;if(!J.columns.items.length){J.hidden=true}J.flex=1;y.viewConfig=N=(N?E.chain(N):{});J.viewConfig=w=(w?E.chain(w):{});N.loadingUseMsg=false;N.loadMask=false;if(A){if(M){N.margin="0 0 0 -"+C+"px"}else{N.margin="0 -"+C+"px 0 0"}}w.loadMask=false;Ext.applyIf(N,x);Ext.applyIf(w,x);if(!i.initialConfig.layout){i.layout={type:"hbox",align:"stretch"}}i.getLayout();if(i.layout.type==="border"){if(i.split){y.split=true}if(!y.region){y.region="west"}if(!J.region){J.region="center"}i.addCls("x-grid-locked-split")}if(!(i.layout instanceof Ext.layout.container.Box)){i.split=false}i.view=new Ext.grid.locking.View({loadMask:D,locked:y,normal:J,ownerGrid:i});y=i.lockedGrid;J=i.normalGrid;J.getView().getScrollable().addPartner(y.getView().getScrollable(),"y");if(G.height&&Ext.supports.touchScroll!==2){y.on({afterlayout:i.afterLockedViewLayout,scope:i});y.getView().getOverflowStyle()}K=y.headerCt;z=J.headerCt;if(A&&!M){K.reserveScrollbar=false}i.headerCt=i.view.headerCt=new Ext.grid.locking.HeaderContainer(i);K.lockedCt=true;K.lockableInjected=true;z.lockableInjected=true;K.on({add:i.delaySyncLockedWidth,remove:i.delaySyncLockedWidth,columnshow:i.delaySyncLockedWidth,columnhide:i.delaySyncLockedWidth,sortchange:i.onLockedHeaderSortChange,columnresize:i.delaySyncLockedWidth,scope:i});z.on({add:i.delaySyncLockedWidth,remove:i.delaySyncLockedWidth,columnshow:i.delaySyncLockedWidth,columnhide:i.delaySyncLockedWidth,sortchange:i.onNormalHeaderSortChange,scope:i});i.modifyHeaderCt();i.items=[y];if(i.split){i.addCls("x-grid-locked-split");i.items[1]={xtype:"splitter"}}i.items.push(J);i.relayHeaderCtEvents(K);i.relayHeaderCtEvents(z);i.storeRelayers=i.relayEvents(L,["filterchange","groupchange","beforeload","load"]);i.gridRelayers=i.relayEvents(J,["viewready"])},afterInjectLockable:function(){delete this.lockedGrid.$initParent;delete this.normalGrid.$initParent},getLockingViewConfig:function(){return{xclass:"Ext.grid.locking.View",locked:this.lockedGrid,normal:this.normalGrid,panel:this}},processColumns:function(u,w){var o=this,t,r,v,p=new Ext.grid.header.Container({"$initParent":o}),q=[],x=[],y={itemId:"lockedHeaderCt",stretchMaxPartner:"^^>>#normalHeaderCt",items:q},s={itemId:"normalHeaderCt",stretchMaxPartner:"^^>>#lockedHeaderCt",items:x},i={locked:y,normal:s},z;if(Ext.isObject(u)){Ext.applyIf(y,u);Ext.applyIf(s,u);z=Ext.apply({},u);delete z.items;Ext.apply(p,z);u=u.items}p.constructing=true;for(t=0,r=u.length;t<r;++t){v=u[t];if(!v.isComponent){v=p.applyDefaults(v);v.$initParent=p;v=p.lookupComponent(v);delete v.$initParent}v.processed=true;if(v.locked||v.autoLock){q.push(v)}else{x.push(v)}}o.fireEvent("processcolumns",o,q,x);p.destroy();return i},afterLockedViewLayout:function(){var o=this,r=o.lockedGrid,p=o.normalGrid,j=r.getView(),q=p.getView(),k=j.scrollFlags.x&&r.headerCt.tooNarrow,l=q.scrollFlags.x&&p.headerCt.tooNarrow,n=q.getScrollable(),m=j.getScrollable();if(k!==l){if(k){n.setX("scroll");m.setX(true)}else{m.setX("scroll");n.setX(true)}}else{m.setX(l?"scroll":true);n.setX(true)}},ensureLockedVisible:function(){this.lockedGrid.ensureVisible.apply(this.lockedGrid,arguments);this.normalGrid.ensureVisible.apply(this.normalGrid,arguments)},onLockedViewMouseWheel:function(k){var o=this,j=-o.scrollDelta*k.getWheelDeltas().y,p=o.lockedGrid.getView(),n=p.el.dom,l,e,m;if(!o.ignoreMousewheel){if(n){l=p.getScrollY();e=l!==n.scrollHeight-n.clientHeight;m=l!==0}if((j<0&&m)||(j>0&&e)){k.stopEvent();l+=j;p.setScrollY(l);o.normalGrid.getView().setScrollY(l);o.onNormalViewScroll()}}},onLockedViewScroll:function(){var k=this,l=k.lockedGrid.getView(),m=k.normalGrid.getView(),n=l.getScrollY(),j=m.getScrollY(),i,h;if(j!==n){m.setScrollY(n);if(m.bufferedRenderer){h=l.body.dom;i=m.body.dom;i.style.position="absolute";i.style.top=h.style.top}}},onNormalViewScroll:function(){var k=this,l=k.lockedGrid.getView(),g=k.normalGrid.getView(),h=l.getScrollY(),i=g.getScrollY(),j;if(i!==h){l.setScrollY(i);if(g.bufferedRenderer){j=l.body;if(j.dom){j.dom.style.position="absolute";j.translate(null,g.bufferedRenderer.bodyTop)}}}},syncRowHeights:function(){if(!this.destroyed){var k=this,g=k.normalGrid.getView(),l=k.lockedGrid.getView(),i=g.syncRowHeightBegin(),h=l.syncRowHeightBegin(),j;g.syncRowHeightMeasure(i);l.syncRowHeightMeasure(h);g.syncRowHeightFinish(i,h);l.syncRowHeightFinish(h,i);j=g.getScrollY();l.setScrollY(j)}},modifyHeaderCt:function(){var b=this;b.lockedGrid.headerCt.getMenuItems=b.getMenuItems(b.lockedGrid.headerCt.getMenuItems,true);b.normalGrid.headerCt.getMenuItems=b.getMenuItems(b.normalGrid.headerCt.getMenuItems,false);b.lockedGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(b.lockedGrid.headerCt.showMenuBy,b.showMenuBy);b.normalGrid.headerCt.showMenuBy=Ext.Function.createInterceptor(b.normalGrid.headerCt.showMenuBy,b.showMenuBy)},onUnlockMenuClick:function(){this.unlock()},onLockMenuClick:function(){this.lock()},showMenuBy:function(i,n,j){var k=this.getMenu(),m=k.down("#unlockItem"),l=k.down("#lockItem"),h=m.prev();if(j.lockable===false){h.hide();m.hide();l.hide()}else{h.show();m.show();l.show();if(!m.initialConfig.disabled){m.setDisabled(j.lockable===false)}if(!l.initialConfig.disabled){l.setDisabled(!j.isLockable())}}},getMenuItems:function(m,p){var l=this,k=l.unlockText,r=l.lockText,j="x-hmenu-unlock",q="x-hmenu-lock",n=l.onUnlockMenuClick.bind(l),o=l.onLockMenuClick.bind(l);return function(){var a=m.call(this);a.push("-",{itemId:"unlockItem",iconCls:j,text:k,handler:n,disabled:!p});a.push({itemId:"lockItem",iconCls:q,text:r,handler:o,disabled:p});return a}},delaySyncLockedWidth:function(){var c=this,d=c.syncLockedWidthTask;if(!c.view.all.getCount()){return}if(!d){d=c.syncLockedWidthTask=new Ext.util.DelayedTask(c.syncLockedWidth,c)}d.delay(1)},syncLockedWidth:function(){var n=this,k=n.rendered,p=n.lockedGrid,o=p.view,l=n.normalGrid,m=p.getVisibleColumnManager().getColumns().length,j=l.getVisibleColumnManager().getColumns().length,i=n.syncLockedWidthTask;if(i){i.cancel()}Ext.suspendLayouts();if(j){l.show();if(m){if(k&&p.shrinkWrapColumns&&!p.headerCt.forceFit){delete p.flex;p.setWidth(p.headerCt.getTableWidth()+p.gridPanelBorderWidth)}p.addCls(n.lockedGridCls);p.show();if(p.split){n.child("splitter").show();n.addCls("x-grid-locked-split")}}else{if(k){p.getView().clearViewEl(true)}p.hide();if(p.split){n.child("splitter").hide();n.removeCls("x-grid-locked-split")}}if(Ext.supports.touchScroll!==2&&Ext.Component.pendingLayouts){o.getScrollable().setX(true)}if(k){n.ignoreMousewheel=o.scrollFlags.y}}else{l.hide();p.flex=1;delete p.width;p.removeCls(n.lockedGridCls);p.show();n.ignoreMousewheel=true}Ext.resumeLayouts(true);return[m,j]},onLockedHeaderSortChange:Ext.emptyFn,onNormalHeaderSortChange:Ext.emptyFn,lock:function(u,p,v){var s=this,t=s.normalGrid,x=s.lockedGrid,w=t.view,n=x.view,q=t.headerCt,r,z,y,o;u=u||q.getMenu().activeHeader;y=u.hasFocus;v=v||x.headerCt;z=u.ownerCt;if(!u.isLockable()){return}if(u.flex&&x.shrinkWrapColumns){u.width=u.getWidth();u.flex=null}Ext.suspendLayouts();if(x.hidden){if(!x.componentLayoutCounter){if(n.bufferedRenderer){n.bufferedRenderer.onViewResize(n,0,w.getHeight())}o=w.getScrollY()}x.show()}w.blockRefresh=n.blockRefresh=true;u.ownerCmp=u.ownerCt;z.remove(u,false);u.locked=true;if(Ext.isDefined(p)){v.insert(p,u)}else{v.add(u)}w.blockRefresh=n.blockRefresh=false;u.ownerCmp=null;r=s.syncLockedWidth();if(r[0]){x.getView().refreshView()}if(r[1]){t.getView().refreshView()}s.fireEvent("lockcolumn",s,u);Ext.resumeLayouts(true);if(o){n.setScrollY(o);w.setScrollY(o)}if(y){u.focus()}},unlock:function(r,m,s){var p=this,q=p.normalGrid,u=p.lockedGrid,t=q.view,l=u.view,n=u.headerCt,o,v;if(!Ext.isDefined(m)){m=0}r=r||n.getMenu().activeHeader;v=r.hasFocus;s=s||q.headerCt;Ext.suspendLayouts();t.blockRefresh=l.blockRefresh=true;r.ownerCmp=r.ownerCt;r.ownerCt.remove(r,false);r.locked=false;s.insert(m,r);t.blockRefresh=l.blockRefresh=false;r.ownerCmp=null;o=p.syncLockedWidth();if(o[0]){u.getView().refreshView()}if(o[1]){q.getView().refreshView()}p.fireEvent("unlockcolumn",p,r);Ext.resumeLayouts(true);if(v){r.focus()}},reconfigureLockable:function(i,p){var n=this,k=n.store,l=n.lockedGrid,m=n.normalGrid,j,o;if(i&&i!==k){i=Ext.data.StoreManager.lookup(i);n.store=i;l.view.blockRefresh=m.view.blockRefresh=true;l.bindStore(i);j=l.view;j.store=i;if(!j.dataSource.isFeatureStore){j.dataSource=i}if(j.bufferedRenderer){j.bufferedRenderer.bindStore(i)}m.bindStore(i);j=m.view;j.store=i;if(!j.dataSource.isFeatureStore){j.dataSource=i}if(j.bufferedRenderer){j.bufferedRenderer.bindStore(i)}n.view.store=i;o=n.view.loadMask;if(o&&o.isLoadMask){o.bindStore(i)}n.view.bindStore(m.view.dataSource,false,"dataSource");l.view.blockRefresh=m.view.blockRefresh=false}if(p){l.reconfiguring=m.reconfiguring=true;l.headerCt.removeAll();m.headerCt.removeAll();p=n.processColumns(p,l);l.headerCt.add(p.locked.items);m.headerCt.add(p.normal.items);l.reconfiguring=m.reconfiguring=false;n.syncLockedWidth()}n.refreshCounter=l.view.refreshCounter},afterReconfigureLockable:function(){var b=this.lockedGrid.getView();if(this.refreshCounter===b.refreshCounter){this.view.refresh()}},constructLockableFeatures:function(){var l=this.features,n,m,k,j,h=0,i;if(l){if(!Ext.isArray(l)){l=[l]}k=[];j=[];i=l.length;for(;h<i;h++){n=l[h];if(!n.isFeature){n=Ext.create("feature."+n.ftype,n)}switch(n.lockableScope){case"locked":k.push(n);break;case"normal":j.push(n);break;default:n.lockableScope="both";k.push(n);j.push(m=n.clone());m.lockingPartner=n;n.lockingPartner=m}}}return{normalFeatures:j,lockedFeatures:k}},constructLockablePlugins:function(){var t=this.plugins,p,u,v,n,m,r,q=0,o,i,s;if(t){if(!Ext.isArray(t)){t=[t]}n=[];m=[];r=[];o=t.length;for(;q<o;q++){p=t[q];if(p.init){i=p.lockableScope}else{s=p.ptype?Ext.ClassManager.getByAlias(("plugin."+p.ptype)):Ext.ClassManager.get(p.xclass);i=s.prototype.lockableScope}switch(i){case"both":m.push(v=p.clonePlugin());r.push(u=p.clonePlugin());v.lockingPartner=u;u.lockingPartner=v;Ext.destroy(p);break;case"locked":m.push(p);break;case"normal":r.push(p);break;default:n.push(p)}}}return{topPlugins:n,normalPlugins:r,lockedPlugins:m}},destroyLockable:function(){var c=this,d=c.syncLockedWidthTask;if(d){d.cancel();c.syncLockedWidthTask=null}if(c.lockedGrid&&c.lockedGrid.headerCt){c.lockedGrid.headerCt.showMenuBy=null}if(c.normalGrid&&c.normalGrid.headerCt){c.normalGrid.headerCt.showMenuBy=null}Ext.destroy(c.view,c.headerCt)}},0,0,0,0,0,0,[Ext.grid.locking,"Lockable",Ext.grid,"Lockable"],function(){this.borrow(Ext.Component,["constructPlugin"])}));(Ext.cmd.derive("Ext.grid.plugin.BufferedRenderer",Ext.AbstractPlugin,{isBufferedRenderer:true,lockableScope:"both",numFromEdge:2,trailingBufferZone:10,leadingBufferZone:20,synchronousRender:true,scrollToLoadBuffer:200,viewSize:100,rowHeight:21,position:0,lastScrollDirection:1,bodyTop:0,scrollHeight:0,loadId:0,init:function(j){var i=this,g=j.view,f={scroll:i.onViewScroll,scrollend:i.onViewScrollEnd,refresh:i.onViewRefresh,columnschanged:i.checkVariableRowHeight,boxready:i.onViewBoxReady,scope:i,destroyable:true},h=g.initialConfig;if(j.isTree||(j.ownerLockable&&j.ownerLockable.isTree)){g.blockRefresh=false;if(h&&h.loadMask===undefined){g.loadMask=true}}if(g.positionBody){f.refresh=i.onViewRefresh}if(Ext.isWebKit&&Ext.supports.touchScroll!==2){i.needsPointerEventsFix=true;f.scrollEnd=i.onViewScrollEnd}i.grid=j;i.view=g;i.isRTL=g.getInherited().rtl;g.bufferedRenderer=i;g.preserveScrollOnRefresh=true;g.animate=false;i.bindStore(g.dataSource);if(g.hasOwnProperty("rowHeight")){i.rowHeight=g.rowHeight}i.position=0;i.viewListeners=g.on(f)},checkVariableRowHeight:function(){this.variableRowHeight=this.view.hasVariableRowHeight()},bindStore:function(h){var g=this,f=g.store,e=g.view;if(f&&f.isFeatureStore){return}if(f){g.unbindStore()}g.storeListeners=h.on({scope:g,groupchange:g.onStoreGroupChange,clear:g.onStoreClear,beforeload:g.onBeforeStoreLoad,load:g.onStoreLoad,destroyable:true});g.store=h;if(g.view.componentLayout.layoutCount){delete g.viewSize;if(h.isBufferedStore){h.setViewSize(g.viewSize)}g.onViewResize(g.view,0,g.view.getHeight())}},unbindStore:function(){this.storeListeners.destroy();this.storeListeners=this.store=null},onBeforeStoreLoad:function(d){var f=this,e=f.view;if(e&&e.refreshCounter){if(d.isTreeStore||e.preserveScrollOnReload){f.nextRefreshStartIndex=e.all.startIndex}else{if(f.scrollTop!==0){f.setBodyTop(f.bodyTop=f.scrollTop=f.position=f.scrollHeight=f.nextRefreshStartIndex=0);e.setScrollY(0)}}f.lastScrollDirection=f.scrollOffset=null}f.disable()},onStoreLoad:function(){this.enable()},onStoreClear:function(){var c=this,d=c.view;if(d.rendered&&!c.store.destroyed){if(c.scrollTop!==0){c.bodyTop=c.scrollTop=c.position=c.scrollHeight=0;c.nextRefreshStartIndex=null;d.setScrollY(0)}d.refresh();c.lastScrollDirection=c.scrollOffset=null}},onStoreGroupChange:function(b){this.refreshSize()},onViewBoxReady:function(b){this.refreshScroller(b,this.scrollHeight)},onViewRefresh:function(f,j){var i=this,h=f.all,g;i.checkVariableRowHeight();if(!f.componentLayoutCounter&&(f.headerCt.down("{flex}")||i.variableRowHeight)){f.on({boxready:Ext.Function.pass(i.onViewRefresh,[f,j],i),single:true});i.skipNextRefreshSize=true;return}i.skipNextRefreshSize=false;if(i.refreshing){return}i.refreshSize();if(i.scrollTop!==f.getScrollY()){i.onViewScroll();i.onViewScrollEnd()}else{if(!i.hasOwnProperty("bodyTop")){i.bodyTop=h.startIndex*i.rowHeight;f.setScrollY(i.bodyTop)}i.setBodyTop(i.bodyTop);g=f.getHeight();if(h.getCount()&&g>0){i.onViewResize(f,null,g);if(j&&(h.getCount()!==j.length)){j.length=0;j.push.apply(j,i.store.getRange(h.startIndex,h.endIndex))}}}},beforeTableLayout:function(d){var c=this.view.body.dom;if(c){d.bodyHeight=c.offsetHeight;d.bodyWidth=c.offsetWidth}},afterTableLayout:function(g){var e=this,f=e.view,h;if(g.bodyHeight&&f.body.dom){delete e.rowHeight;e.refreshSize();h=f.body.dom.offsetHeight;if(h!==g.bodyHeight){e.onViewResize(f,null,f.el.lastBox.height);if(h<g.bodyHeight){if(e.viewSize>=e.store.getCount()){e.setBodyTop(0)}else{if(e.bodyTop>e.scrollTop||e.bodyTop+h<e.scrollTop+e.viewClientHeight){e.setBodyTop(e.scrollTop-e.trailingBufferZone*e.rowHeight)}}}if(f.all.endIndex===(f.dataSource.getCount())-1){e.stretchView(f,e.scrollHeight=e.bodyTop+h-1)}}}},refreshSize:function(){var e=this,f=e.view,h=e.skipNextRefreshSize,g=f.body.dom;e.skipNextRefreshSize=false;if(h||!g){return}e.bodyHeight=f.body.dom.offsetHeight;e.scrollHeight=e.getScrollHeight();e.stretchView(f,e.scrollHeight)},onViewResize:function(n,l,i,h,j){var k=this,m;if(!j||i!==j){m=Math.ceil(i/k.rowHeight)+k.trailingBufferZone+k.leadingBufferZone;k.viewSize=k.setViewSize(m);k.viewClientHeight=n.el.dom.clientHeight}},stretchView:function(d,e){var f=this;if(f.scrollTop>e){f.position=f.scrollTop=Math.max(e-f.bodyHeight,0);d.setScrollY(f.scrollTop)}if(f.bodyTop>e){d.body.translate(null,f.bodyTop=f.position)}if(d.getScrollable()){f.refreshScroller(d,e)}},refreshScroller:function(f,d){var e=f.getScrollable();if(e){if(e.setElementSize){e.setElementSize()}e.setSize({x:f.headerCt.getTableWidth(),y:d})}},setViewSize:function(t,B){var u=this,q=u.store,s=u.view,p=s.all,y=p.getCount(),C,z,w=u.view.lockingPartner&&u.view.lockingPartner.bufferedRenderer,r=y-t,A,D,x,v;if(w&&!B&&w.view.componentLayoutCounter){if(w.viewSize>t){t=w.viewSize}else{w.setViewSize(t,true)}}r=y-t;if(r){u.scrollTop=s.getScrollY();u.viewSize=t;if(q.isBufferedStore){q.setViewSize(t)}if(y){v=q.getCount();C=p.startIndex;z=Math.min(C+t-1,v-1);if(C===p.startIndex&&z===p.endIndex){if(r<0){u.handleViewScroll(-1)}}else{if(w){w.disable()}if(r<0){if(v>y){q.getRange(p.endIndex+1,z,{callback:function(b,a){x=s.doAdd(b,a);s.fireEvent("itemadd",b,a,x);u.setBodyTop(u.bodyTop)}})}else{u.refreshView(0)}}else{C=p.endIndex-(r-1);z=p.endIndex;D=p.slice(C,z+1);p.removeRange(C,z,true);if(s.hasListeners.itemremove){A=q.getRange(C,z);s.fireEvent("itemremove",A,C,D)}u.setBodyTop(u.bodyTop)}if(w){w.enable()}}}}return t},getViewRange:function(){var e=this,h=e.view.all,f=e.store,g=0;if(h.getCount()){g=h.startIndex}else{if(f.isBufferedStore){if(!f.currentPage){f.currentPage=1}g=h.startIndex=(f.currentPage-1)*(f.pageSize||1);f.currentPage=1}}if(f.data.getCount()){return f.getRange(g,g+(e.viewSize||f.defaultViewSize)-1)}else{return[]}},onReplace:function(p,o,t,s){var r=this,q=r.view,m=q.all,x,u=m.getCount(),v=o+t.length-1,n=s.length-t.length,w=n*r.rowHeight;if(o>=m.startIndex+r.viewSize){r.refreshSize();return}if(u&&v<m.startIndex&&m.getCount()>=r.viewSize){m.moveBlock(n);r.refreshSize();x=m.startIndex;if(n>0){r.doNotMirror=true;r.handleViewScroll(-1);r.doNotMirror=false}if(m.startIndex===x){if(m.startIndex){r.setBodyTop(r.bodyTop+=w);q.suspendEvent("scroll");q.scrollBy(0,w);q.resumeEvent("scroll");r.position=r.scrollTop=q.getScrollY()}}else{q.suspendEvent("scroll");q.scrollBy(0,(x-m.startIndex)*r.rowHeight);q.resumeEvent("scroll")}q.refreshSize(m.getCount()!==u);return}if(u&&o>m.endIndex){r.refreshSize();if(n>0){r.onRangeFetched(null,m.startIndex,Math.min(p.getCount(),m.startIndex+r.viewSize)-1,null,true)}q.refreshSize(m.getCount()!==u);return}if(o<m.startIndex&&v<=m.endIndex){r.refreshView(m.startIndex-t.length+s.length);return}if(o<m.startIndex&&v<=m.endIndex&&w){q.suspendEvent("scroll");q.setScrollY(r.position=r.scrollTop+=w);q.resumeEvent("scroll")}r.refreshView()},scrollTo:function(t,q){var z=arguments,x=this,v=x.view,A=v.lockingPartner&&v.lockingPartner.grid.isVisible()&&v.lockingPartner.bufferedRenderer,s=x.store,w=s.getCount(),y,E,F,r,D,C,B,u;if(q!==undefined&&!(q instanceof Object)){q={select:z[1],callback:z[2],scope:z[3]}}if((D=v.dataSource.groupingFeature)&&(D.collapsible)){if(t.isEntity){B=t}else{B=v.store.getAt(Math.min(Math.max(t,0),v.store.getCount()-1))}C=D.getMetaGroup(B);if(C&&C.isCollapsed){if(!D.isExpandingOrCollapsing){D.expand(D.getGroup(B).getGroupKey());w=s.getCount();t=D.indexOf(B)}else{B=C.placeholder;t=D.indexOfPlaceholder(B)}}else{t=D.indexOf(B)}}else{if(t.isEntity){B=t;t=s.indexOf(B);if(t===-1){return}}else{t=Math.min(Math.max(t,0),w-1);B=s.getAt(t)}}if(B&&(F=v.getNode(B))){v.grid.ensureVisible(B,q);x.onViewScroll();x.onViewScrollEnd();return}if(t<v.all.startIndex){u=-1;y=Math.max(Math.min(t-(Math.floor((x.leadingBufferZone+x.trailingBufferZone)/2)),w-x.viewSize+1),0);E=Math.min(y+x.viewSize-1,w-1)}else{u=1;E=Math.min(t+(Math.floor((x.leadingBufferZone+x.trailingBufferZone)/2)),w-1);y=Math.max(E-(x.viewSize-1),0)}r=Math.max(y*x.rowHeight,0);s.getRange(y,E,{callback:function(b,a,c){x.renderRange(a,c,true,true);B=s.data.getRange(t,t+1)[0];F=v.getNode(B);v.body.translate(null,x.bodyTop=r);if(u===1){x.refreshSize()}if(A){A.renderRange(a,c,true,true);x.syncRowHeights();A.view.body.translate(null,A.bodyTop=r);if(u===1){A.refreshSize()}}if(!F){return}v.grid.ensureVisible(B,q);x.scrollTop=x.position=x.view.getScrollY();if(A){A.position=A.scrollTop=x.scrollTop}}})},onViewScroll:function(){var k=this,g=k.store,h=(g.getCount()),l,i,j=k.scrollTop=k.view.getScrollY();if(k.needsPointerEventsFix){k.view.body.dom.style.pointerEvents="none"}if(!(k.disabled||h<k.viewSize)){l=j-k.position;i=l>0?1:-1;if(Math.abs(l)>=20||(i!==k.lastScrollDirection)){k.lastScrollDirection=i;k.handleViewScroll(k.lastScrollDirection)}}},onViewScrollEnd:function(){if(this.needsPointerEventsFix){this.view.body.dom.style.pointerEvents=""}},handleViewScroll:function(l){var n=this,m=n.view.all,j=n.store,k=n.viewSize,p=j.getCount()-1,o,i;if(l===-1){if(m.startIndex){if(n.topOfViewCloseToEdge()){o=Math.max(0,n.getLastVisibleRowIndex()+n.trailingBufferZone-k)}}}else{if(m.endIndex<p){if(n.bottomOfViewCloseToEdge()){o=Math.max(0,n.getFirstVisibleRowIndex()-n.trailingBufferZone)}}}if(o==null){n.position=n.scrollTop;n.loadId++}else{i=Math.min(o+k-1,p);if(n.variableRowHeight&&i===m.endIndex&&i<p){i++;n.viewSize=k++;if(j.isBufferedStore){j.setViewSize(n.viewSize)}}if(o!==m.startIndex||i!==m.endIndex){n.renderRange(o,i);return true}}},bottomOfViewCloseToEdge:function(){var b=this;if(b.variableRowHeight){return b.bodyTop+b.bodyHeight<b.scrollTop+b.view.lastBox.height+(b.numFromEdge*b.rowHeight)}else{return(b.view.all.endIndex-b.getLastVisibleRowIndex())<b.numFromEdge}},topOfViewCloseToEdge:function(){var b=this;if(b.variableRowHeight){return b.bodyTop>b.scrollTop-(b.numFromEdge*b.rowHeight)}else{return(b.getFirstVisibleRowIndex()-b.view.all.startIndex)<b.numFromEdge}},refreshView:function(m){var p=this,k=p.viewSize,n=p.view.all,j=p.store,l=j.getCount(),i=Math.max(0,l-1),o;if(!l){return p.doRefreshView([],0,0)}else{if(l<k){m=0;o=i}else{if(m==null){if(p.nextRefreshStartIndex!=null){m=p.nextRefreshStartIndex;p.nextRefreshStartIndex=null}else{m=n.startIndex}}m=Math.max(0,Math.min(m,i-(k-p.leadingBufferZone)+1));o=Math.min(m+k-1,i);if(o-m+1>k){m=o-k+1}}}if(m===0&&o===0&&l===0){p.doRefreshView([],0,0)}else{j.getRange(m,o,{callback:p.doRefreshView,scope:p})}},doRefreshView:function(B,t,C,r){var v=this,u=v.view,s=u.all,x=s.startIndex,z=s.endIndex,w,y,G=s.getCount(),D,H=t!==s.startIndex,E,F,A;if(u.refreshCounter){if(u.hasListeners.beforerefresh&&u.fireEvent("beforerefresh",u)===false){return}u.refreshing=v.refreshing=true;A=u.saveFocusState();u.clearViewEl(true);u.refreshCounter++;if(B.length){D=u.doAdd(B,t);if(H){w=s.item(x,true);y=s.item(z,true);if(w){F=-w.offsetTop}else{if(y){F=s.last(true).offsetTop-y.offsetTop}}if(F){v.bodyTop=Math.max(v.bodyTop+F,0);v.scrollTop=v.bodyTop?v.scrollTop+F:0}else{v.bodyTop=E=t*v.rowHeight;v.scrollTop=Math.max(E-v.rowHeight*(E<v.bodyTop?v.leadingBufferZone:v.trailingBufferZone,0))}}}else{if(v.scrollTop){v.bodyTop=v.scrollTop=0}u.addEmptyText()}if(H){v.setBodyTop(v.bodyTop);u.suspendEvent("scroll");u.setScrollY(v.position=v.scrollTop);u.resumeEvent("scroll")}v.refreshSize();u.refreshSize(s.getCount()!==G);u.fireEvent("refresh",u,B);A();u.headerCt.setSortState();u.refreshNeeded=u.refreshing=v.refreshing=false}else{u.refresh()}},renderRange:function(j,i,k,n){var m=this,l=m.view.all,h=m.store;if(!(j===l.startIndex&&i===l.endIndex)){if(h.rangeCached(j,i)){m.cancelLoad();if(m.synchronousRender||k){m.onRangeFetched(null,j,i,null,n)}else{if(!m.renderTask){m.renderTask=new Ext.util.DelayedTask(m.onRangeFetched,m,null,false)}m.renderTask.delay(1,null,null,[null,j,i,null,n])}}else{m.attemptLoad(j,i)}}},onRangeFetched:function(H,P,R,S,F){var i=this,I=i.view,M=I.el,T,J=I.all,N,z=0,C,L,K=(I.lockingPartner&&!F&&!i.doNotMirror)&&I.lockingPartner.bufferedRenderer,B,U,A,V,D,E=i.variableRowHeight,Q,G,O;if(I.destroyed){return}if(H){i.scrollTop=i.view.getScrollY()}else{H=i.store.getRange(P,R);if(!H){return}}Q=Ext.Element.getActiveElement();G=M.contains(Q);C=P*i.rowHeight;if(P<J.startIndex&&R>J.endIndex){A=J.startIndex-P;I.clearViewEl(true);B=I.doAdd(H,P);I.fireEvent("itemadd",H,P,B);for(D=0;D<A;D++){z-=B[D].offsetHeight}L=i.bodyTop+z}else{if(i.teleported||P>J.endIndex||R<J.startIndex){L=C;if(E){V=i.scrollTop<i.position?i.leadingBufferZone:i.trailingBufferZone;if(P>V){L=i.scrollTop-i.rowHeight*V}}I.clearViewEl(true);i.teleported=false}if(!J.getCount()){B=I.doAdd(H,P);I.fireEvent("itemadd",H,P,B)}else{if(R>J.endIndex){N=Math.max(P-J.startIndex,0);if(E){z=J.item(J.startIndex+N,true).offsetTop}B=J.scroll(Ext.Array.slice(H,J.endIndex+1-P),1,N);if(E){L=i.bodyTop+z}else{L=C}}else{N=Math.max(J.endIndex-R,0);T=J.startIndex;B=J.scroll(Ext.Array.slice(H,0,J.startIndex-P),-1,N);if(E){L=i.bodyTop-J.item(T,true).offsetTop;if(!J.startIndex){if(L){I.setScrollY(i.position=(i.scrollTop-=L));L=0}}else{if(L<0){z=J.startIndex*i.rowHeight;I.setScrollY(i.position=(i.scrollTop+=z));L=i.bodyTop+z}}}else{L=C}}}i.position=i.scrollTop}if(G&&!M.contains(Q)){O=I.actionableMode?I.actionPosition:I.lastFocused;if(O&&O.column){I.onFocusLeave({});O.column.focus()}}L=Math.max(Math.floor(L),0);if(I.positionBody){i.setBodyTop(L)}if(B&&K&&!K.disabled){K.scrollTop=K.position=i.scrollTop;if(K.view.ownerCt.isVisible()){U=K.onRangeFetched(null,P,R,S,true);if(I.ownerGrid.syncRowHeight||(K.variableRowHeight!==E)){i.syncRowHeights(B,U);i.bodyHeight=I.body.dom.offsetHeight}}if(K.bodyTop!==L){K.setBodyTop(L)}K.view.setScrollY(i.scrollTop)}return B},syncRowHeights:function(o,t){var m=this,n=0,i=1,l=[],s=[],q=Ext.grid.locking.RowSynchronizer,r,p;if(o&&t){n=o.length;i=t.length}if(n!==i){o=m.view.all.slice();t=m.view.lockingPartner.all.slice();n=i=o.length}for(r=0;r<n;r++){l[r]=p=new q(m.view,o[r]);p.measure()}for(r=0;r<i;r++){s[r]=p=new q(m.view.lockingPartner,t[r]);p.measure()}for(r=0;r<n;r++){l[r].finish(s[r]);s[r].finish(l[r])}m.syncRowHeightsFinish()},syncRowHeightsFinish:function(){var f=this,e=f.view,d=e.lockingPartner.bufferedRenderer;if(e.componentLayoutCounter){delete f.rowHeight;f.refreshSize();if(d.rowHeight!==f.rowHeight){delete d.rowHeight;d.refreshSize()}}},setBodyTop:function(k){var j=this,g=j.view,i=g.all,l=j.store,h=g.body;if(!h.dom){return}j.translateBody(h,k);if(j.variableRowHeight){j.bodyHeight=h.dom.offsetHeight;if(i.endIndex===l.getCount()-1){j.scrollHeight=k+j.bodyHeight-1}else{j.scrollHeight=j.getScrollHeight()}j.stretchView(g,j.scrollHeight)}else{j.bodyHeight=i.getCount()*j.rowHeight}},translateBody:function(d,c){d.translate(null,this.bodyTop=c)},getFirstVisibleRowIndex:function(o,v,w,s){var r=this,q=r.view,m=q.all,x=m.elements,u=r.viewClientHeight,t,n,p=r.bodyTop;if(m.getCount()&&r.variableRowHeight){if(!arguments.length){o=m.startIndex;v=m.endIndex;w=r.scrollTop;s=w+u;if(p>s||p+r.bodyHeight<w){r.teleported=true;return Math.floor(r.scrollTop/r.rowHeight)}t=o+Math.min(r.numFromEdge+((r.lastScrollDirection===-1)?r.leadingBufferZone:r.trailingBufferZone),Math.floor((v-o)/2))}else{t=o+Math.floor((v-o)/2)}n=p+x[t].offsetTop;if(n+x[t].offsetHeight<=w){return r.getFirstVisibleRowIndex(t+1,v,w,s)}if(n<=w){return t}else{if(t!==o){return r.getFirstVisibleRowIndex(o,t-1,w,s)}}}return Math.floor(r.scrollTop/r.rowHeight)},getLastVisibleRowIndex:function(p,x,y,u){var s=this,r=s.view,n=r.all,z=n.elements,w=s.viewClientHeight,v,o,t,q=s.bodyTop;if(n.getCount()&&s.variableRowHeight){if(!arguments.length){p=n.startIndex;x=n.endIndex;y=s.scrollTop;u=y+w;if(q>u||q+s.bodyHeight<y){s.teleported=true;return Math.floor(s.scrollTop/s.rowHeight)+Math.ceil(w/s.rowHeight)}v=x-Math.min(s.numFromEdge+((s.lastScrollDirection===1)?s.leadingBufferZone:s.trailingBufferZone),Math.floor((x-p)/2))}else{v=p+Math.floor((x-p)/2)}o=q+z[v].offsetTop;if(o>u){return s.getLastVisibleRowIndex(p,v-1,y,u)}t=o+z[v].offsetHeight;if(t>=u){return v}else{if(v!==x){return s.getLastVisibleRowIndex(v+1,x,y,u)}}}return s.getFirstVisibleRowIndex()+Math.ceil(w/s.rowHeight)},getScrollHeight:function(){var r=this,p=r.view,l=p.all,o=r.store,k=o.getCount(),q=l.getCount(),m,s,t,n;if(!k){return 0}if(!r.hasOwnProperty("rowHeight")){if(q){if(r.variableRowHeight){r.rowHeight=Math.floor(r.bodyHeight/q)}else{m=l.first();s=m.getHeight();if(Ext.isIE8){t=m.getBorderWidth("b");if(t>0){s-=t}}r.rowHeight=s}}else{delete r.rowHeight}}if(r.variableRowHeight){if(l.endIndex===k-1){n=r.bodyTop+r.bodyHeight-1}else{n=Math.floor((k-q)*r.rowHeight)+r.bodyHeight;n+=r.bodyTop-l.startIndex*r.rowHeight}}else{n=Math.floor(k*r.rowHeight)}return(r.scrollHeight=n)},attemptLoad:function(f,e){var d=this;if(d.scrollToLoadBuffer){if(!d.loadTask){d.loadTask=new Ext.util.DelayedTask(d.doAttemptLoad,d,[])}d.loadTask.delay(d.scrollToLoadBuffer,d.doAttemptLoad,d,[f,e])}else{d.doAttemptLoad(f,e)}},cancelLoad:function(){if(this.loadTask){this.loadTask.cancel()}},doAttemptLoad:function(f,e){var d=this;if(!d.destroyed){d.store.getRange(f,e,{loadId:++d.loadId,callback:function(c,a,h,b){if(b.loadId===d.loadId){d.onRangeFetched(c,a,h,b)}},fireEvent:false})}},destroy:function(){var c=this,d=c.view;c.cancelLoad();if(d&&d.el){d.un("scroll",c.onViewScroll,c)}if(c.store){c.unbindStore()}c.viewListeners=c.gridListeners=c.view=c.grid=Ext.destroy(c.viewListeners,c.stretcher,c.gridListeners);Ext.plugin.Abstract.prototype.destroy.call(this)}},0,0,0,0,["plugin.bufferedrenderer"],0,[Ext.grid.plugin,"BufferedRenderer"],function(b){if(Ext.supports.Touch){b.prototype.leadingBufferZone=b.prototype.trailingBufferZone=2;b.prototype.numFromEdge=1}}));(Ext.cmd.derive("Ext.util.Queue",Ext.Base,{constructor:function(){this.clear()},add:function(f){var d=this,e=d.getKey(f);if(!d.map[e]){++d.length;d.items.push(f);d.map[e]=f}return f},clear:function(){var c=this,d=c.items;c.items=[];c.map={};c.length=0;return d},contains:function(c){var d=this.getKey(c);return this.map.hasOwnProperty(d)},getCount:function(){return this.length},getKey:function(b){return b.id},remove:function(h){var i=this,j=i.getKey(h),g=i.items,f;if(i.map[j]){f=Ext.Array.indexOf(g,h);Ext.Array.erase(g,f,1);delete i.map[j];--i.length}return h}},1,0,0,0,0,0,[Ext.util,"Queue"],0));(Ext.cmd.derive("Ext.layout.ContextItem",Ext.Base,{heightModel:null,widthModel:null,sizeModel:null,optOut:false,ownerSizePolicy:null,boxChildren:null,boxParent:null,children:[],dirty:null,dirtyCount:0,hasRawContent:true,isContextItem:true,isTopLevel:false,consumersContentHeight:0,consumersContentWidth:0,consumersContainerHeight:0,consumersContainerWidth:0,consumersHeight:0,consumersWidth:0,ownerCtContext:null,remainingChildDimensions:0,props:null,state:null,wrapsComponent:false,constructor:function(v){var u=this,x=Ext.layout.SizeModel.sizeModels,C=x.configured,D=x.shrinkWrap,K,w,z,A,G,I,t,H,y,B,J,E,F,L;Ext.apply(u,v);t=u.target;K=u.el;u.id=t.id;u.flushedProps={};u.props=G={};u.styles={};if(!t.isComponent){w=K.lastBox}else{u.wrapsComponent=true;u.framing=t.frameSize||null;u.isComponentChild=t.ownerLayout&&t.ownerLayout.isComponentLayout;w=t.lastBox;z=t.ownerCt;if(z&&(A=z.el&&u.context.items[z.el.id])){u.ownerCtContext=A}u.sizeModel=I=t.getSizeModel(A&&A.widthModel.pairsByHeightOrdinal[A.heightModel.ordinal]);u.widthModel=E=I.width;u.heightModel=F=I.height;if(w&&w.invalid===false){B=(t.width===(H=w.width));J=(t.height===(y=w.height));if(E===D&&F===D){L=true}else{if(E===C&&B){L=F===D||(F===C&&J)}}if(L){u.optOut=true;G.width=H;G.height=y}}}u.lastBox=w},init:function(G,L){var x=this,N=x.props,K=x.dirty,E=x.ownerCtContext,B=x.target.ownerLayout,H=!x.state,w=G||H,J,C,D,A,M,n,i=x.heightModel,I=x.widthModel,F,z,y=0;x.dirty=x.invalid=false;x.props={};x.remainingChildDimensions=0;if(x.boxChildren){x.boxChildren.length=0}if(!H){x.clearAllBlocks("blocks");x.clearAllBlocks("domBlocks")}if(!x.wrapsComponent){return w}n=x.target;x.state={};if(H){if(n.beforeLayout&&n.beforeLayout!==Ext.emptyFn){n.beforeLayout()}if(!E&&(A=n.ownerCt)){E=x.context.items[A.el.id]}if(E){x.ownerCtContext=E;x.isBoxParent=B&&B.isItemBoxParent(x)}else{x.isTopLevel=true}x.frameBodyContext=x.getEl("frameBody")}else{E=x.ownerCtContext;x.isTopLevel=!E;J=x.children;for(C=0,D=J.length;C<D;++C){J[C].init(true)}}x.hasRawContent=!(n.isContainer&&n.items.items.length>0);if(G){x.widthModel=x.heightModel=null;M=n.getSizeModel(E&&E.widthModel.pairsByHeightOrdinal[E.heightModel.ordinal]);if(H){x.sizeModel=M}x.widthModel=M.width;x.heightModel=M.height;if(E&&!x.isComponentChild){if(B.needsItemSize||!n.liquidLayout){E.remainingChildDimensions+=2}else{if(x.widthModel.calculated){++E.remainingChildDimensions}if(x.heightModel.calculated){++E.remainingChildDimensions}}}}else{if(N){x.recoverProp("x",N,K);x.recoverProp("y",N,K);if(x.widthModel.calculated){x.recoverProp("width",N,K)}else{if("width" in N){++y}}if(x.heightModel.calculated){x.recoverProp("height",N,K)}else{if("height" in N){++y}}if(E&&!x.isComponentChild){E.remainingChildDimensions+=y}}}if(N&&B&&B.manageMargins){x.recoverProp("margin-top",N,K);x.recoverProp("margin-right",N,K);x.recoverProp("margin-bottom",N,K);x.recoverProp("margin-left",N,K)}if(L){F=L.heightModel;z=L.widthModel;if(z&&F&&I&&i){if(I.shrinkWrap&&i.shrinkWrap){if(z.constrainedMax&&F.constrainedMin){F=null}}}if(z){x.widthModel=z}if(F){x.heightModel=F}if(L.state){Ext.apply(x.state,L.state)}}return w},initContinue:function(l){var j=this,m=j.ownerCtContext,i=j.target,n=j.widthModel,k=i.getInherited(),h;if(n.fixed){k.inShrinkWrapTable=false}else{delete k.inShrinkWrapTable}if(l){if(m&&n.shrinkWrap){h=m.isBoxParent?m:m.boxParent;if(h){h.addBoxChild(j)}}else{if(n.natural){j.boxParent=m}}}return l},initDone:function(g){var e=this,f=e.props,h=e.state;if(e.remainingChildDimensions===0){f.containerChildrenSizeDone=true}if(g){f.containerLayoutDone=true}if(e.boxChildren&&e.boxChildren.length&&e.widthModel.shrinkWrap){e.el.setWidth(10000);h.blocks=(h.blocks||0)+1}},initAnimation:function(){var d=this,f=d.target,e=d.ownerCtContext;if(e&&e.isTopLevel){d.animatePolicy=f.ownerLayout.getAnimatePolicy(d)}else{if(!e&&f.isCollapsingOrExpanding&&f.animCollapse){d.animatePolicy=f.componentLayout.getAnimatePolicy(d)}}if(d.animatePolicy){d.context.queueAnimation(d)}},addBlock:function(g,k,j){var l=this,i=l[g]||(l[g]={}),h=i[j]||(i[j]={});if(!h[k.id]){h[k.id]=k;++k.blockCount;++l.context.blockCount}},addBoxChild:function(g){var h=this,e,f=g.widthModel;g.boxParent=this;g.measuresBox=f.shrinkWrap?g.hasRawContent:f.natural;if(g.measuresBox){e=h.boxChildren;if(e){e.push(g)}else{h.boxChildren=[g]}}},addPositionStyles:function(i,f){var g=f.x,h=f.y,j=0;if(g!==undefined){i.left=g+"px";++j}if(h!==undefined){i.top=h+"px";++j}return j},addTrigger:function(m,l){var n=this,j=l?"domTriggers":"triggers",k=n[j]||(n[j]={}),i=n.context,o=i.currentLayout,p=k[m]||(k[m]={});if(!p[o.id]){p[o.id]=o;++o.triggerCount;p=i.triggers[l?"dom":"data"];(p[o.id]||(p[o.id]=[])).push({item:this,prop:m});if(n.props[m]!==undefined){if(!l||!(n.dirty&&(m in n.dirty))){++o.firedTriggers}}}},boxChildMeasured:function(){var d=this,f=d.state,e=(f.boxesMeasured=(f.boxesMeasured||0)+1);if(e===d.boxChildren.length){f.clearBoxWidth=1;++d.context.progressCount;d.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(d){var c=d.getStyles(d.borderNames,d.trblNames);c.width=c.left+c.right;c.height=c.top+c.bottom;return c},marginInfo:function(d){var c=d.getStyles(d.marginNames,d.trblNames);c.width=c.left+c.right;c.height=c.top+c.bottom;return c},paddingInfo:function(d){var e=d.frameBodyContext||d,f=e.getStyles(d.paddingNames,d.trblNames);f.width=f.left+f.right;f.height=f.top+f.bottom;return f}},checkCache:function(b){return this.cacheMissHandlers[b](this)},clearAllBlocks:function(e){var f=this[e],d;if(f){for(d in f){this.clearBlocks(e,d)}}},clearBlocks:function(n,k){var j=this[n],h=j&&j[k],m,l,i;if(h){delete j[k];m=this.context;for(i in h){l=h[i];--m.blockCount;if(!--l.blockCount&&!l.pending&&!l.done){m.queueLayout(l)}}}},block:function(d,c){this.addBlock("blocks",d,c)},domBlock:function(d,c){this.addBlock("domBlocks",d,c)},fireTriggers:function(h,k){var j=this[h],m=j&&j[k],n=this.context,l,i;if(m){for(i in m){l=m[i];++l.firedTriggers;if(!l.done&&!l.blockCount&&!l.pending){n.queueLayout(l)}}}},flush:function(){var e=this,f=e.dirty,h=e.state,g=e.el;e.dirtyCount=0;if("attributes" in e){g.set(e.attributes);delete e.attributes}if("innerHTML" in e){g.innerHTML=e.innerHTML;delete e.innerHTML}if(h&&h.clearBoxWidth){h.clearBoxWidth=0;e.el.setStyle("width",null);if(!--h.blocks){e.context.queueItemLayouts(e)}}if(f){delete e.dirty;e.writeProps(f,true)}},flushAnimations:function(){var j=this,x=j.previousSize,q,o,v,t,u,w,s,p,r,z,y;if(x){q=j.target;o=q.getAnimationProps();v=o.duration;t=Ext.Object.getKeys(j.animatePolicy);u=Ext.apply({},{from:{},to:{},duration:v||Ext.fx.Anim.prototype.duration},o);for(w=0,s=0,p=t.length;s<p;s++){r=t[s];z=x[r];y=j.peek(r);if(z!==y){r=j.translateProps[r]||r;u.from[r]=z;u.to[r]=y;++w}}if(w){if(j.isCollapsingOrExpanding===1){q.componentLayout.undoLayout(j)}else{j.writeProps(u.from)}j.el.animate(u);u=Ext.fx.Manager.getFxQueue(j.el.id)[0];q.$layoutAnim=u;u.on({afteranimate:function(){delete q.$layoutAnim;if(q.destroying||q.destroyed){return}if(j.isCollapsingOrExpanding===1){q.componentLayout.redoLayout(j);q.afterCollapse(true)}else{if(j.isCollapsingOrExpanding===2){q.afterExpand(true)}}if(q.hasListeners.afterlayoutanimation){q.fireEvent("afterlayoutanimation",q)}}})}}},getBorderInfo:function(){var d=this,c=d.borderInfo;if(!c){d.borderInfo=c=d.checkCache("borderInfo")}return c},getEl:function(l,h){var j=this,i,k,g;if(l){if(l.dom){k=l}else{i=j.target;if(h){i=h}k=i[l];if(typeof k==="function"){k=k.call(i);if(k===j.el){return this}}}if(k){g=j.context.getEl(j,k)}}return g||null},getFrameInfo:function(){var h=this,g=h.frameInfo,e,f;if(!g){e=h.framing;f=h.getBorderInfo();h.frameInfo=g=e?{top:e.top+f.top,right:e.right+f.right,bottom:e.bottom+f.bottom,left:e.left+f.left,width:e.width+f.width,height:e.height+f.height}:f}return g},getMarginInfo:function(){var k=this,i=k.marginInfo,g,h,j,l;if(!i){if(!k.wrapsComponent){i=k.checkCache("marginInfo")}else{g=k.target;j=g.ownerLayout;l=j?j.id:null;h=j&&j.manageMargins;i=g.margin$;if(i&&i.ownerId!==l){i=null}if(!i){i=k.parseMargins(g,g.margin)||k.checkCache("marginInfo");if(h){k.setProp("margin-top",0);k.setProp("margin-right",0);k.setProp("margin-bottom",0);k.setProp("margin-left",0)}i.ownerId=l;g.margin$=i}i.width=i.left+i.right;i.height=i.top+i.bottom}k.marginInfo=i}return i},clearMarginCache:function(){delete this.marginInfo;delete this.target.margin$},getPaddingInfo:function(){var d=this,c=d.paddingInfo;if(!c){d.paddingInfo=c=d.checkCache("paddingInfo")}return c},getProp:function(f){var d=this,e=d.props[f];d.addTrigger(f);return e},getDomProp:function(f){var d=this,e=(d.dirty&&(f in d.dirty))?undefined:d.props[f];d.addTrigger(f,true);return e},getStyle:function(g){var j=this,f=j.styles,h,i;if(g in f){i=f[g]}else{h=j.styleInfo[g];i=j.el.getStyle(g);if(h&&h.parseInt){i=parseInt(i,10)||0}f[g]=i}return i},getStyles:function(r,C){var t=this,z=t.styles,n={},y=0,A=r.length,v,w,u,D,B,x,i,s;C=C||r;for(v=0;v<A;++v){D=r[v];if(D in z){n[C[v]]=z[D];++y;if(v&&y===1){w=r.slice(0,v);u=C.slice(0,v)}}else{if(y){(w||(w=[])).push(D);(u||(u=[])).push(C[v])}}}if(y<A){w=w||r;u=u||C;x=t.styleInfo;i=t.el.getStyle(w);for(v=w.length;v--;){D=w[v];B=x[D];s=i[D];if(B&&B.parseInt){s=parseInt(s,10)||0}n[u[v]]=s;z[D]=s}}return n},hasProp:function(b){return this.getProp(b)!=null},hasDomProp:function(b){return this.getDomProp(b)!=null},invalidate:function(b){this.context.queueInvalidate(this,b)},markDirty:function(){if(++this.dirtyCount===1){this.context.queueFlush(this)}},onBoxMeasured:function(){var d=this.boxParent,c=this.state;if(d&&d.widthModel.shrinkWrap&&!c.boxMeasured&&this.measuresBox){c.boxMeasured=1;d.boxChildMeasured()}},parseMargins:function(f,g){if(g===true){g=5}var h=typeof g,e;if(h==="string"||h==="number"){e=f.parseBox(g)}else{if(g){e={top:0,right:0,bottom:0,left:0};if(g){g=Ext.apply(e,f.parseBox(g))}}}return e},peek:function(b){return this.props[b]},recalculateSizeModel:function(){var j=this,i=j.target,l=i.componentLayout,g=j.ownerCtContext,h=l.ownerContext,k;l.ownerContext=null;j.sizeModel=k=i.getSizeModel(g&&g.widthModel.pairsByHeightOrdinal[g.heightModel.ordinal]);j.widthModel=k.width;j.heightModel=k.height;if(h){l.ownerContext=j}},recoverProp:function(i,g,h){var j=this,k=j.props,l;if(i in g){k[i]=g[i];if(h&&i in h){l=j.dirty||(j.dirty={});l[i]=h[i]}}},redo:function(f){var h=this,j,g,i;h.revertProps(h.props);if(f&&h.wrapsComponent){if(h.childItems){for(i=0,j=h.childItems,g=j.length;i<g;i++){j[i].redo(f)}}for(i=0,j=h.children,g=j.length;i<g;i++){j[i].redo()}}},removeEl:function(f,g){var i=this,h,j;if(f){if(f.dom){j=f}else{h=i.target;if(g){h=g}j=h[f];if(typeof j==="function"){j=j.call(h);if(j===i.el){return this}}}if(j){i.context.removeEl(j,i)}}},revertProps:function(g){var f,e=this.flushedProps,h={};for(f in g){if(e.hasOwnProperty(f)){h[f]=g[f]}}this.writeProps(h)},setAttribute:function(e,f){var d=this;if(!d.attributes){d.attributes={}}d.attributes[e]=f;d.markDirty()},setBox:function(c){var d=this;if("left" in c){d.setProp("x",c.left)}if("top" in c){d.setProp("y",c.top)}d.setSize(c.width,c.height)},setContentHeight:function(d,c){if(!c&&this.hasRawContent){return 1}return this.setProp("contentHeight",d)},setContentWidth:function(c,d){if(!d&&this.hasRawContent){return 1}return this.setProp("contentWidth",c)},setContentSize:function(f,e,d){return this.setContentWidth(f,d)+this.setContentHeight(e,d)===2},setProp:function(k,l,h){var g=this,i=typeof l,j;if(i==="undefined"||(i==="number"&&isNaN(l))){return 0}if(g.props[k]===l){return 1}g.props[k]=l;++g.context.progressCount;if(h===false){g.fireTriggers("domTriggers",k);g.clearBlocks("domBlocks",k)}else{j=g.styleInfo[k];if(j){if(!g.dirty){g.dirty={}}g.dirty[k]=l;g.markDirty()}}g.fireTriggers("triggers",k);g.clearBlocks("blocks",k);return 1},setHeight:function(k,t){var o=this,q=o.target,r=o.ownerCtContext,n,p,s,l,m;if(k<0){k=0}if(!o.wrapsComponent){if(!o.setProp("height",k,t)){return NaN}}else{s=o.collapsedVert?0:(q.minHeight||0);k=Ext.Number.constrain(k,s,q.maxHeight);l=o.props.height;if(!o.setProp("height",k,t)){return NaN}if(r&&!o.isComponentChild&&isNaN(l)){m=--r.remainingChildDimensions;if(!m){r.setProp("containerChildrenSizeDone",true)}}n=o.frameBodyContext;if(n){p=o.getFrameInfo();n[o.el.vertical?"setWidth":"setHeight"](k-p.height,t)}}return k},setWidth:function(s,t){var m=this,o=m.target,p=m.ownerCtContext,l,n,q,r,k;if(s<0){s=0}if(!m.wrapsComponent){if(!m.setProp("width",s,t)){return NaN}}else{q=m.collapsedHorz?0:(o.minWidth||0);s=Ext.Number.constrain(s,q,o.maxWidth);r=m.props.width;if(!m.setProp("width",s,t)){return NaN}if(p&&!m.isComponentChild&&isNaN(r)){k=--p.remainingChildDimensions;if(!k){p.setProp("containerChildrenSizeDone",true)}}l=m.frameBodyContext;if(l){n=m.getFrameInfo();l.setWidth(s-n.width,t)}}return s},setSize:function(f,e,d){this.setWidth(f,d);this.setHeight(e,d)},translateProps:{x:"left",y:"top"},undo:function(f){var h=this,j,g,i;h.revertProps(h.lastBox);if(f&&h.wrapsComponent){if(h.childItems){for(i=0,j=h.childItems,g=j.length;i<g;i++){j[i].undo(f)}}for(i=0,j=h.children,g=j.length;i<g;i++){j[i].undo()}}},unsetProp:function(c){var d=this.dirty;delete this.props[c];if(d){delete d[c]}},writeProps:function(H,I){if(!(H&&typeof H==="object")){return}var u=this,J=u.el,E={},G=0,K=u.styleInfo,v,D,A,y=H.width,C=H.height,t=u.target,F,L,z,x,w,B;if("displayed" in H){J.setDisplayed(H.displayed)}for(D in H){if(I){u.fireTriggers("domTriggers",D);u.clearBlocks("domBlocks",D);u.flushedProps[D]=1}v=K[D];if(v&&v.dom){if(v.suffix&&(A=parseInt(H[D],10))){E[D]=A+v.suffix}else{E[D]=H[D]}++G}}if("x" in H||"y" in H){if(t.isComponent){t.setPosition(H.x,H.y)}else{G+=u.addPositionStyles(E,H)}}if(u.wrapsComponent&&Ext.isIE9){if((F=y!==undefined&&u.hasOverflowY)||(L=C!==undefined&&u.hasOverflowX)){z=u.isAbsolute;if(z===undefined){z=false;B=u.target.getTargetEl();w=B.getStyle("position");u.isAbsolute=z=(w==="absolute")}if(z){x=Ext.getScrollbarSize();if(F){y=parseInt(y,10)+x.width;E.width=y+"px";++G}if(L){C=parseInt(C,10)+x.height;E.height=C+"px";++G}}}}if(G){J.setStyle(E)}}},1,0,0,0,0,0,[Ext.layout,"ContextItem"],function(){var f={dom:true,parseInt:true,suffix:"px"},d={dom:true},e={dom:false};this.prototype.styleInfo={containerChildrenSizeDone:e,containerLayoutDone:e,displayed:e,done:e,x:e,y:e,columnsChanged:e,rowHeights:e,viewOverflowY:e,left:f,top:f,right:f,bottom:f,width:f,height:f,"border-top-width":f,"border-right-width":f,"border-bottom-width":f,"border-left-width":f,"margin-top":f,"margin-right":f,"margin-bottom":f,"margin-left":f,"padding-top":f,"padding-right":f,"padding-bottom":f,"padding-left":f,"line-height":d,display:d,clear:d}}));(Ext.cmd.derive("Ext.layout.Context",Ext.Base,{remainingLayouts:0,state:0,cycleWatchDog:200,constructor:function(d){var c=this;Ext.apply(c,d);c.items={};c.layouts={};c.blockCount=0;c.cycleCount=0;c.flushCount=0;c.calcCount=0;c.animateQueue=c.newQueue();c.completionQueue=c.newQueue();c.finalizeQueue=c.newQueue();c.finishQueue=c.newQueue();c.flushQueue=c.newQueue();c.invalidateData={};c.layoutQueue=c.newQueue();c.invalidQueue=[];c.triggers={data:{},dom:{}}},callLayout:function(c,d){this.currentLayout=c;c[d](this.getCmp(c.owner))},cancelComponent:function(z,G,x){var u=this,A=z,y=!z.isComponent,F=y?A.length:1,D,E,v,w,B,i,t,k,H,C;for(D=0;D<F;++D){if(y){z=A[D]}if(x){if(z.ownerCt){C=this.items[z.ownerCt.el.id];if(C){Ext.Array.remove(C.childItems,u.getCmp(z))}}else{if(z.rendered){u.removeEl(z.el)}}}if(!G){t=u.invalidQueue;v=t.length;if(v){u.invalidQueue=i=[];for(E=0;E<v;++E){k=t[E];H=k.item.target;if(H!==z&&!H.up(z)){i.push(k)}}}}B=z.componentLayout;u.cancelLayout(B);if(B.getLayoutItems){w=B.getLayoutItems();if(w.length){u.cancelComponent(w,true)}}if(z.isContainer&&!z.collapsed){B=z.layout;u.cancelLayout(B);w=B.getVisibleItems();if(w.length){u.cancelComponent(w,true)}}}},cancelLayout:function(c){var d=this;d.completionQueue.remove(c);d.finalizeQueue.remove(c);d.finishQueue.remove(c);d.layoutQueue.remove(c);if(c.running){d.layoutDone(c)}c.ownerContext=null},clearTriggers:function(m,l){var r=m.id,n=this.triggers[l?"dom":"data"],k=n&&n[r],q=(k&&k.length)||0,o,i,p;for(o=0;o<q;++o){p=k[o];i=p.item;n=l?i.domTriggers:i.triggers;delete n[p.prop][r]}},flush:function(){var g=this,f=g.flushQueue.clear(),h=f.length,e;if(h){++g.flushCount;for(e=0;e<h;++e){f[e].flush()}}},flushAnimations:function(){var g=this,e=g.animateQueue.clear(),f=e.length,h;if(f){for(h=0;h<f;h++){if(e[h].target.animate!==false){e[h].flushAnimations()}}Ext.fx.Manager.runner()}},flushInvalidates:function(){var j=this,i=j.invalidQueue,k=i&&i.length,h,l,m,n;j.invalidQueue=[];if(k){l=[];for(n=0;n<k;++n){h=(m=i[n]).item.target;if(!h.container.isDetachedBody){l.push(h);if(m.options){j.invalidateData[h.id]=m.options}}}j.invalidate(l,null)}},flushLayouts:function(l,j,p){var m=this,k=p?m[l].items:m[l].clear(),n=k.length,i,o;if(n){for(i=0;i<n;++i){o=k[i];if(!o.running){m.callLayout(o,j)}}m.currentLayout=null}},getCmp:function(b){return this.getItem(b,b.el)},getEl:function(d,e){var f=this.getItem(e,e);if(!f.parent){f.parent=d;if(d.children.length){d.children.push(f)}else{d.children=[f]}}return f},getItem:function(i,f){var h=f.id,g=this.items,j=g[h]||(g[h]=new Ext.layout.ContextItem({context:this,target:i,el:f}));return j},handleFailure:function(){var f=this.layouts,d,e;Ext.failedLayouts=(Ext.failedLayouts||0)+1;for(e in f){d=f[e];if(f.hasOwnProperty(e)){d.running=false;d.ownerContext=null}}},invalidate:function(y,w){var u=this,x=!y.isComponent,F,t,H,C,z,s,v,G,B,A,D,E,i;for(C=0,G=x?y.length:1;C<G;++C){z=x?y[C]:y;if(z.rendered&&!z.hidden){t=z.ownerLayout;B=z.componentLayout;i=false;if((!t||!t.needsItemSize)&&z.liquidLayout){i=true}if(!i||(t&&t.setsItemSize)){s=u.getCmp(z);H=!s.state;A=(z.isContainer&&!z.collapsed)?z.layout:null;D=u.invalidateData[s.id];delete u.invalidateData[s.id];E=s.init(w,D)}if(i){continue}if(D){u.processInvalidate(D,s,"before")}if(B.beforeLayoutCycle){B.beforeLayoutCycle(s)}if(A&&A.beforeLayoutCycle){A.beforeLayoutCycle(s)}E=s.initContinue(E);F=true;if(B.getLayoutItems){B.renderChildren();v=B.getLayoutItems();if(v.length){u.invalidate(v,true)}}if(A){F=false;A.renderChildren();if(A.needsItemSize||A.activeItemCount){v=A.getVisibleItems();if(v.length){u.invalidate(v,true)}}}s.initDone(F);u.resetLayout(B,s,H);if(A){u.resetLayout(A,s,H)}s.initAnimation();if(D){u.processInvalidate(D,s,"after")}}}u.currentLayout=null},isDescendant:function(e,c){if(e.isContainer){for(var f=c.ownerCt;f;f=f.ownerCt){if(f===e){return true}}}return false},layoutDone:function(d){var c=d.ownerContext;d.running=false;if(d.isComponentLayout){if(c.measuresBox){c.onBoxMeasured()}c.setProp("done",true)}else{c.setProp("containerLayoutDone",true)}--this.remainingLayouts;++this.progressCount},newQueue:function(){return new Ext.util.Queue()},processInvalidate:function(f,h,g){if(f[g]){var i=this,j=i.currentLayout;i.currentLayout=f.layout||null;f[g](h,f);i.currentLayout=j}},queueAnimation:function(b){this.animateQueue.add(b)},queueCompletion:function(b){this.completionQueue.add(b)},queueFinalize:function(b){this.finalizeQueue.add(b)},queueFlush:function(b){this.flushQueue.add(b)},chainFns:function(j,k,m){var o=this,p=j.layout,n=k.layout,i=j[m],l=k[m];return function(b){var a=o.currentLayout;if(i){o.currentLayout=p;i.call(j.scope||j,b,j)}o.currentLayout=n;l.call(k.scope||k,b,k);o.currentLayout=a}},purgeInvalidates:function(){var p=this,m=[],o=p.invalidQueue,r=o.length,n,l,s,t,u,q,v;for(n=0;n<r;++n){u=o[n];q=u.item.target;v=true;for(l=m.length;l--;){s=m[l];t=s.item.target;if(q.isLayoutChild(t)){v=false;break}if(t.isLayoutChild(q)){Ext.Array.erase(m,l,1)}}if(v){m.push(u)}}p.invalidQueue=m},queueInvalidate:function(m,l){var p=this,n=[],o=p.invalidQueue,q=o.length,s,u,r,v,t;if(m.isComponent){s=m;m=p.items[s.el.id];if(m){m.recalculateSizeModel()}else{m=p.getCmp(s)}}else{s=m.target}m.invalid=true;while(q--){u=o[q];r=u.item.target;if(!s.isFloating&&s.up(r)){return}if(r===s){if(!(v=u.options)){u.options=l}else{if(l){if(l.widthModel){v.widthModel=l.widthModel}if(l.heightModel){v.heightModel=l.heightModel}if(!(t=v.state)){v.state=l.state}else{if(l.state){Ext.apply(t,l.state)}}if(l.before){v.before=p.chainFns(v,l,"before")}if(l.after){v.after=p.chainFns(v,l,"after")}}}return}if(!r.isLayoutChild(s)){n.push(u)}}n.push({item:m,options:l});p.invalidQueue=n},queueItemLayouts:function(f){var e=f.isComponent?f:f.target,d=e.componentLayout;if(!d.pending&&!d.invalid&&!d.done){this.queueLayout(d)}d=e.layout;if(d&&!d.pending&&!d.invalid&&!d.done&&!e.collapsed){this.queueLayout(d)}},queueLayout:function(b){this.layoutQueue.add(b);b.pending=true},removeEl:function(i,j){var h=i.id,f=j?j.children:null,g=this.items;if(f){Ext.Array.remove(f,g[h])}delete g[h]},resetLayout:function(e,h,g){var f=this;f.currentLayout=e;e.done=false;e.pending=true;e.firedTriggers=0;f.layoutQueue.add(e);if(g){f.layouts[e.id]=e;e.running=true;if(e.finishedLayout){f.finishQueue.add(e)}++f.remainingLayouts;++e.layoutCount;e.ownerContext=h;e.beginCount=0;e.blockCount=0;e.calcCount=0;e.triggerCount=0;if(!e.initialized){e.initLayout()}e.beginLayout(h)}else{++e.beginCount;if(!e.running){++f.remainingLayouts;e.running=true;e.ownerContext=h;if(e.isComponentLayout){h.unsetProp("done")}f.completionQueue.remove(e);f.finalizeQueue.remove(e)}}e.beginLayoutCycle(h,g)},run:function(){var f=this,d=false,e=f.cycleWatchDog;f.purgeInvalidates();f.flushInvalidates();f.state=1;f.totalCount=f.layoutQueue.getCount();f.flush();while((f.remainingLayouts||f.invalidQueue.length)&&e--){if(f.invalidQueue.length){f.flushInvalidates()}if(f.runCycle()){d=false}else{if(!d){f.flush();d=true;f.flushLayouts("completionQueue","completeLayout")}else{if(!f.invalidQueue.length){f.state=2;break}}}if(!(f.remainingLayouts||f.invalidQueue.length)){f.flush();f.flushLayouts("completionQueue","completeLayout");f.flushLayouts("finalizeQueue","finalizeLayout")}}return f.runComplete()},runComplete:function(){var b=this;b.state=2;if(b.remainingLayouts){b.handleFailure();return false}b.flush();b.flushLayouts("finishQueue","finishedLayout",true);b.flushLayouts("finishQueue","notifyOwner");b.flush();b.flushAnimations();return true},runCycle:function(){var h=this,g=h.layoutQueue.clear(),e=g.length,f;++h.cycleCount;h.progressCount=0;for(f=0;f<e;++f){h.runLayout(h.currentLayout=g[f])}h.currentLayout=null;return h.progressCount>0},runLayout:function(d){var e=this,f=e.getCmp(d.owner);d.pending=false;if(f.state.blocks){return}d.done=true;++d.calcCount;++e.calcCount;d.calculate(f);if(d.done){e.layoutDone(d);if(d.completeLayout){e.queueCompletion(d)}if(d.finalizeLayout){e.queueFinalize(d)}}else{if(!d.pending&&!d.invalid&&!(d.blockCount+d.triggerCount-d.firedTriggers)){e.queueLayout(d)}}},setItemSize:function(j,k,h){var m=j,i=1,n,l;if(j.isComposite){m=j.elements;i=m.length;j=m[0]}else{if(!j.dom&&!j.el){i=m.length;j=m[0]}}for(l=0;l<i;){n=this.get(j);n.setSize(k,h);j=m[++l]}}},1,0,0,0,0,0,[Ext.layout,"Context"],0));(Ext.cmd.derive("Ext.layout.component.Body",Ext.layout.component.Auto,{type:"body",beginLayout:function(b){Ext.layout.component.Auto.prototype.beginLayout.apply(this,arguments);b.bodyContext=b.getEl("body")},beginLayoutCycle:function(k,g){var l=this,i=l.lastWidthModel,j=l.lastHeightModel,h=l.owner.body;Ext.layout.component.Auto.prototype.beginLayoutCycle.apply(this,arguments);if(i&&i.fixed&&k.widthModel.shrinkWrap){h.setWidth(null)}if(j&&j.fixed&&k.heightModel.shrinkWrap){h.setHeight(null)}},calculateOwnerHeightFromContentHeight:function(f,d){var e=Ext.layout.component.Auto.prototype.calculateOwnerHeightFromContentHeight.apply(this,arguments);if(f.targetContext!==f){e+=f.getPaddingInfo().height}return e},calculateOwnerWidthFromContentWidth:function(f,e){var d=Ext.layout.component.Auto.prototype.calculateOwnerWidthFromContentWidth.apply(this,arguments);if(f.targetContext!==f){d+=f.getPaddingInfo().width}return d},measureContentWidth:function(b){return b.bodyContext.setWidth(b.bodyContext.el.dom.offsetWidth,false)},measureContentHeight:function(b){return b.bodyContext.setHeight(b.bodyContext.el.dom.offsetHeight,false)},publishInnerHeight:function(h,f){var g=f-h.getFrameInfo().height,e=h.targetContext;if(e!==h){g-=h.getPaddingInfo().height}return h.bodyContext.setHeight(g,!h.heightModel.natural)},publishInnerWidth:function(g,h){var f=h-g.getFrameInfo().width,e=g.targetContext;if(e!==g){f-=g.getPaddingInfo().width}g.bodyContext.setWidth(f,!g.widthModel.natural)}},0,0,0,0,["layout.body"],0,[Ext.layout.component,"Body"],0));(Ext.cmd.derive("Ext.layout.container.Accordion",Ext.layout.container.VBox,{type:"accordion",alternateClassName:"Ext.layout.AccordionLayout",targetCls:"x-accordion-layout-ct",itemCls:["x-box-item","x-accordion-item"],align:"stretch",enableSplitters:false,fill:true,titleCollapse:true,hideCollapseTool:false,collapseFirst:undefined,animate:true,activeOnTop:false,multi:false,wrapOver:true,panelCollapseMode:"header",defaultAnimatePolicy:{y:true,height:true},constructor:function(){var b=this;Ext.layout.container.VBox.prototype.constructor.apply(this,arguments);if(b.animate){b.animatePolicy={};b.animatePolicy[b.names.x]=true;b.animatePolicy[b.names.width]=true}else{b.animatePolicy=null}},beforeRenderItems:function(n){var m=this,o=n.length,s=m.owner,l=m.collapseFirst,t=Ext.isDefined(l),i=m.getExpanded(true)[0],p=m.multi,q,r;for(r=0;r<o;r++){q=n[r];if(!q.rendered){q.isAccordionPanel=true;q.bodyAriaRole="tabpanel";q.accordionWrapOver=m.wrapOver;if(!p||q.collapsible!==false){q.collapsible=true}if(q.collapsible){if(t){q.collapseFirst=l}if(m.hideCollapseTool){q.hideCollapseTool=m.hideCollapseTool;q.titleCollapse=true}else{if(m.titleCollapse&&q.titleCollapse===undefined){q.titleCollapse=m.titleCollapse}}}q.hideHeader=q.width=null;q.title=q.title||"&#160;";q.addBodyCls("x-accordion-body");if(!p){if(i){q.collapsed=i!==q}else{if(q.hasOwnProperty("collapsed")&&q.collapsed===false){i=q}else{q.collapsed=true}}s.mon(q,"show",m.onComponentShow,m)}q.headerOverCls="x-accordion-hd-over"}}if(!m.processing&&!p){if(!i){if(o){n[0].collapsed=false}}else{if(m.activeOnTop){i.collapsed=false;m.configureItem(i);if(s.items.indexOf(i)>0){s.insert(0,i)}}}}},getItemsRenderTree:function(b){this.beforeRenderItems(b);return Ext.layout.container.VBox.prototype.getItemsRenderTree.apply(this,arguments)},renderItems:function(d,c){this.beforeRenderItems(d);Ext.layout.container.VBox.prototype.renderItems.apply(this,arguments)},configureItem:function(b){Ext.layout.container.VBox.prototype.configureItem.apply(this,arguments);b.ignoreHeaderBorderManagement=true;b.animCollapse=false;if(this.fill){b.flex=1}},beginLayout:function(b){Ext.layout.container.VBox.prototype.beginLayout.apply(this,arguments);this.innerCt.dom.setAttribute("role","tablist");this.innerCt.dom.setAttribute("aria-multiselectable",true);this.updatePanelClasses(b)},updatePanelClasses:function(l){var n=l.visibleItems,m=n.length,i=true,h,j,k;for(h=0;h<m;h++){j=n[h];k=j.header;k.addCls("x-accordion-hd");if(i){k.removeCls("x-accordion-hd-sibling-expanded")}else{k.addCls("x-accordion-hd-sibling-expanded")}if(h+1===m&&j.collapsed){k.addCls("x-accordion-hd-last-collapsed")}else{k.removeCls("x-accordion-hd-last-collapsed")}i=j.collapsed}},onBeforeComponentExpand:function(k){var o=this,j=o.owner,l=o.multi,m=!l&&!o.animate&&o.activeOnTop,p,i,n;if(!o.processing){o.processing=true;i=j.deferLayouts;j.deferLayouts=true;if(!l){p=o.getExpanded()[0];if(p&&p!==k){n=p.$layoutAnim;if(n){n.jumpToEnd()}p.collapse()}}if(m){Ext.suspendLayouts();j.insert(0,k);Ext.resumeLayouts()}j.deferLayouts=i;o.processing=false}},onBeforeComponentCollapse:function(k){var j=this,h=j.owner,i,l,g;if(j.owner.items.getCount()===1){return false}if(!j.processing){j.processing=true;g=h.deferLayouts;h.deferLayouts=true;i=k.next()||k.prev();if(j.multi){l=j.getExpanded();if(l.length===1){i.expand()}}else{if(i){i.expand()}}h.deferLayouts=g;j.processing=false}},onComponentShow:function(b){this.onBeforeComponentExpand(b)},onAdd:function(c){var d=this;Ext.layout.container.VBox.prototype.onAdd.apply(this,arguments);if(c.collapseMode==="placeholder"){c.collapseMode=d.panelCollapseMode}c.collapseDirection=c.headerPosition;if(d.layoutCount&&!d.multi&&d.owner.items.getCount()>1){d.processing=true;c.collapse();d.processing=false}},onRemove:function(f,g){var h=this,e;Ext.layout.container.VBox.prototype.onRemove.apply(this,arguments);if(!h.owner.destroying&&!h.multi&&!f.collapsed){e=h.owner.items.first();if(e){e.expand()}}},getExpanded:function(j){var h=this.owner.items.items,i=h.length,m=0,n=[],k,l;for(;m<i;++m){l=h[m];if(!l.hidden){if(j){k=l.hasOwnProperty("collapsed")&&l.collapsed===false}else{k=!l.collapsed}if(k){n.push(l)}}}return n},afterCollapse:Ext.emptyFn,afterExpand:Ext.emptyFn},1,0,0,0,["layout.accordion"],0,[Ext.layout.container,"Accordion",Ext.layout,"AccordionLayout"],0));(Ext.cmd.derive("Ext.layout.container.Card",Ext.layout.container.Fit,{alternateClassName:"Ext.layout.CardLayout",type:"card",hideInactive:true,deferredRender:false,getRenderTree:function(){var d=this,c=d.getActiveItem();if(c){if(c.hasListeners.beforeactivate&&c.fireEvent("beforeactivate",c)===false){c=d.activeItem=d.owner.activeItem=null}else{if(c.hasListeners.activate){c.on({boxready:function(){c.fireEvent("activate",c)},single:true})}}if(d.deferredRender){if(c){return d.getItemsRenderTree([c])}}else{return Ext.layout.container.Fit.prototype.getRenderTree.apply(this,arguments)}}},renderChildren:function(){var d=this,c=d.getActiveItem();if(!d.deferredRender){Ext.layout.container.Fit.prototype.renderChildren.call(this)}else{if(c){d.renderItems([c],d.getRenderTarget())}}},isValidParent:function(h,g,f){var e=h.el?h.el.dom:Ext.getDom(h);return(e&&e.parentNode===(g.dom||g))||false},getActiveItem:function(){var f=this,d=f.activeItem===undefined?(f.owner&&f.owner.activeItem):f.activeItem,e=f.parseActiveItem(d);if(e&&f.owner.items.indexOf(e)!==-1){f.activeItem=e}return e==null?null:(f.activeItem||f.owner.activeItem)},parseActiveItem:function(d){var c;if(d&&d.isComponent){c=d}else{if(typeof d==="number"||d===undefined){c=this.getLayoutItems()[d||0]}else{if(d===null){c=null}else{c=this.owner.getComponent(d)}}}return c},configureItem:function(b){b.setHiddenState(b!==this.getActiveItem());Ext.layout.container.Fit.prototype.configureItem.apply(this,arguments)},onAdd:function(d,c){Ext.layout.container.Fit.prototype.onAdd.call(this,d,c);this.setItemHideMode(d)},onRemove:function(d){var c=this;Ext.layout.container.Fit.prototype.onRemove.call(this,d);c.resetItemHideMode(d);if(d===c.activeItem){c.activeItem=undefined}},getAnimation:function(d,e){var f=(d||{}).cardSwitchAnimation;if(f===false){return false}return f||e.cardSwitchAnimation},getNext:function(){var f=arguments[0],e=this.getLayoutItems(),d=Ext.Array.indexOf(e,this.activeItem);return e[d+1]||(f?e[0]:false)},next:function(){var c=arguments[0],d=arguments[1];return this.setActiveItem(this.getNext(d),c)},getPrev:function(){var f=arguments[0],e=this.getLayoutItems(),d=Ext.Array.indexOf(e,this.activeItem);return e[d-1]||(f?e[e.length-1]:false)},prev:function(){var c=arguments[0],d=arguments[1];return this.setActiveItem(this.getPrev(d),c)},setActiveItem:function(h){var l=this,i=l.owner,m=l.activeItem,j=i.rendered,n,k;h=l.parseActiveItem(h);n=i.items.indexOf(h);if(n===-1){n=i.items.items.length;Ext.suspendLayouts();h=i.add(h);Ext.resumeLayouts()}if(h&&m!==h){if(h.fireEvent("beforeactivate",h,m)===false){return false}if(m&&m.fireEvent("beforedeactivate",m,h)===false){return false}if(j){Ext.suspendLayouts();if(!h.rendered){l.renderItem(h,l.getRenderTarget(),i.items.length)}if(m){if(l.hideInactive){k=m.el.contains(Ext.Element.getActiveElement());m.hide();if(m.hidden){m.hiddenByLayout=true;m.fireEvent("deactivate",m,h)}else{return false}}}if(h.hidden){h.show()}if(h.hidden){l.activeItem=h=null}else{l.activeItem=h;if(k){if(!h.defaultFocus){h.defaultFocus=":focusable"}h.focus()}}Ext.resumeLayouts(true)}else{l.activeItem=h}h.fireEvent("activate",h,m);return l.activeItem}return false},resetItemHideMode:function(b){b.hideMode=b.originalHideMode;delete b.originalHideMode},setItemHideMode:function(b){b.originalHideMode=b.hideMode;b.hideMode="offsets"}},0,0,0,0,["layout.card"],0,[Ext.layout.container,"Card",Ext.layout,"CardLayout"],0));(Ext.cmd.derive("Ext.plugin.Manager",Ext.Base,{alternateClassName:["Ext.PluginManager","Ext.PluginMgr"],singleton:true,typeName:"ptype",create:function(f,h,i){var g,j;if(f.init){g=f}else{if(i){f=Ext.apply({},f);f.cmp=i}else{i=f.cmp}if(f.xclass){g=Ext.create(f)}else{j="plugin."+(f.ptype||h);g=Ext.ClassManager.instantiateByAlias(j,f)}}if(g&&i&&g.setCmp&&!g.setCmpCalled){g.setCmp(i);g.setCmpCalled=true}return g}},0,0,0,0,0,0,[Ext.plugin,"Manager",Ext,"PluginManager",Ext,"PluginMgr"],0));(Ext.cmd.derive("Ext.resizer.ResizeTracker",Ext.dd.DragTracker,{dynamic:true,preserveRatio:false,constrainTo:null,proxyCls:"x-resizable-proxy",constructor:function(f){var i=this,j,g,h;if(!f.el){if(f.target.isComponent){i.el=f.target.getEl()}else{i.el=f.target}}Ext.dd.DragTracker.prototype.constructor.apply(this,arguments);if(i.preserveRatio&&i.minWidth&&i.minHeight){j=i.minWidth/i.el.getWidth();g=i.minHeight/i.el.getHeight();if(g>j){i.minWidth=i.el.getWidth()*g}else{i.minHeight=i.el.getHeight()*j}}if(i.throttle){h=Ext.Function.createThrottled(function(){Ext.resizer.ResizeTracker.prototype.resize.apply(i,arguments)},i.throttle);i.resize=function(b,a,c){if(c){Ext.resizer.ResizeTracker.prototype.resize.apply(i,arguments)}else{h.apply(null,arguments)}}}},onBeforeStart:function(b){this.startBox=this.target.getBox()},getProxy:function(){var b=this;if(!b.dynamic&&!b.proxy){b.proxy=b.createProxy(b.target||b.el);b.hideProxy=true}if(b.proxy){b.proxy.show();return b.proxy}},createProxy:function(f){var d,e=this.proxyCls;if(f.isComponent){d=f.getProxy().addCls(e)}else{d=f.createProxy({tag:"div",role:"presentation",cls:e,id:f.id+"-rzproxy"},Ext.getBody())}d.removeCls("x-proxy-el");return d},onStart:function(b){this.activeResizeHandle=Ext.get(this.getDragTarget().id);if(!this.dynamic){this.resize(this.startBox)}},onMouseDown:function(d,e){var f=Ext.fly(e.parentNode);Ext.dd.DragTracker.prototype.onMouseDown.apply(this,arguments);if(f&&f.shim){f.maskIframes()}},onMouseUp:function(d){var c=Ext.fly(this.dragTarget.parentNode);Ext.dd.DragTracker.prototype.onMouseUp.apply(this,arguments);if(c&&c.shim){c.unmaskIframes()}},onDrag:function(b){if(this.dynamic||this.proxy){this.updateDimensions(b)}},updateDimensions:function(x,B){var w=this,J=w.activeResizeHandle.region,H=w.getOffset(w.constrainTo?"dragTarget":null),D=w.startBox,G,z=0,v=0,E,y,L=0,e=0,u,F,K,I,A,C;J=w.convertRegionName(J);switch(J){case"south":v=H[1];K=2;break;case"north":v=-H[1];e=-v;K=2;break;case"east":z=H[0];K=1;break;case"west":z=-H[0];L=-z;K=1;break;case"northeast":v=-H[1];e=-v;z=H[0];F=[D.x,D.y+D.height];K=3;break;case"southeast":v=H[1];z=H[0];F=[D.x,D.y];K=3;break;case"southwest":z=-H[0];L=-z;v=H[1];F=[D.x+D.width,D.y];K=3;break;case"northwest":v=-H[1];e=-v;z=-H[0];L=-z;F=[D.x+D.width,D.y+D.height];K=3;break}I={width:D.width+z,height:D.height+v,x:D.x+L,y:D.y+e};E=Ext.Number.snap(I.width,w.widthIncrement);y=Ext.Number.snap(I.height,w.heightIncrement);if(E!==I.width||y!==I.height){switch(J){case"northeast":I.y-=y-I.height;break;case"north":I.y-=y-I.height;break;case"southwest":I.x-=E-I.width;break;case"west":I.x-=E-I.width;break;case"northwest":I.x-=E-I.width;I.y-=y-I.height}I.width=E;I.height=y}if(I.width<w.minWidth||I.width>w.maxWidth){I.width=Ext.Number.constrain(I.width,w.minWidth,w.maxWidth);if(L){I.x=D.x+(D.width-I.width)}}else{w.lastX=I.x}if(I.height<w.minHeight||I.height>w.maxHeight){I.height=Ext.Number.constrain(I.height,w.minHeight,w.maxHeight);if(e){I.y=D.y+(D.height-I.height)}}else{w.lastY=I.y}if(w.preserveRatio||x.shiftKey){G=w.startBox.width/w.startBox.height;A=Math.min(Math.max(w.minHeight,I.width/G),w.maxHeight);C=Math.min(Math.max(w.minWidth,I.height*G),w.maxWidth);if(K===1){I.height=A}else{if(K===2){I.width=C}else{u=Math.abs(F[0]-this.lastXY[0])/Math.abs(F[1]-this.lastXY[1]);if(u>G){I.height=A}else{I.width=C}if(J==="northeast"){I.y=D.y-(I.height-D.height)}else{if(J==="northwest"){I.y=D.y-(I.height-D.height);I.x=D.x-(I.width-D.width)}else{if(J==="southwest"){I.x=D.x-(I.width-D.width)}}}}}}w.setPosition=I.x!==w.startBox.x||I.y!==w.startBox.y;w.resize(I,B)},resize:function(i,g){var j=this,h,f=j.setPosition;if(j.dynamic||(!j.dynamic&&g)){if(f){j.target.setBox(i)}else{j.target.setSize(i.width,i.height)}}if(!g){h=j.getProxy();if(h&&h!==j.target){if(f||j.hideProxy){h.setBox(i)}else{h.setSize(i.width,i.height)}}}},onEnd:function(b){this.updateDimensions(b,true);if(this.proxy&&this.hideProxy){this.proxy.hide()}},convertRegionName:function(b){return b}},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"},ariaRole:"presentation",constructor:function(G){var y=this,t=y.handles,z=Ext.dom.Element.unselectableCls,v=[],u,F,w,i,B,D,x,H,C,E,s,A;if(Ext.isString(G)||Ext.isElement(G)||G.dom){u=G;G=arguments[1]||{};G.target=u}y.mixins.observable.constructor.call(y,G);u=y.target;if(u){if(u.isComponent){u.addClsWithUI("resizable");if(u.minWidth){y.minWidth=u.minWidth}if(u.minHeight){y.minHeight=u.minHeight}if(u.maxWidth){y.maxWidth=u.maxWidth}if(u.maxHeight){y.maxHeight=u.maxHeight}if(u.floating){if(!y.hasOwnProperty("handles")){y.handles="n ne e se s sw w nw"}}y.el=u.getEl()}else{u=y.el=y.target=Ext.get(u)}}else{u=y.target=y.el=Ext.get(y.el)}y.el.addCls(Ext.Component.prototype.borderBoxCls);if(Ext.isNumber(y.width)){y.width=Ext.Number.constrain(y.width,y.minWidth,y.maxWidth)}if(Ext.isNumber(y.height)){y.height=Ext.Number.constrain(y.height,y.minHeight,y.maxHeight)}if(y.width!==null||y.height!==null){y.target.setSize(y.width,y.height)}i=y.el.dom.tagName.toUpperCase();if(i==="TEXTAREA"||i==="IMG"||i==="TABLE"){y.originalTarget=y.target;E=u.isComponent?u.getEl():u;y.el.addCls(y.wrappedCls);y.target=y.el=y.el.wrap({role:"presentation",cls:y.wrapCls,id:y.el.id+"-rzwrap",style:E.getStyle(["margin-top","margin-bottom"])});s=E.getPositioning();y.el.setPositioning(s);E.clearPositioning();C=E.getBox();if(s.position!=="absolute"){C.x=0;C.y=0}y.el.setBox(C);E.setStyle("position","absolute");y.isTargetWrapped=true}y.el.position();if(y.pinned){y.el.addCls(y.pinnedCls)}y.resizeTracker=new Ext.resizer.ResizeTracker({disabled:y.disabled,target:u,el:y.el,constrainTo:y.constrainTo,handleCls:y.handleCls,overCls:y.overCls,throttle:y.throttle,proxy:y.originalTarget?y.el:null,dynamic:y.originalTarget?true:y.dynamic,originalTarget:y.originalTarget,delegate:"."+y.handleCls,preserveRatio:y.preserveRatio,heightIncrement:y.heightIncrement,widthIncrement:y.widthIncrement,minHeight:y.minHeight,maxHeight:y.maxHeight,minWidth:y.minWidth,maxWidth:y.maxWidth});y.resizeTracker.on({mousedown:y.onBeforeResize,drag:y.onResize,dragend:y.onResizeEnd,scope:y});if(y.handles==="all"){y.handles="n s e w ne nw se sw"}t=y.handles=y.handles.split(y.delimiterRe);w=y.possiblePositions;B=t.length;F=y.handleCls+" "+y.handleCls+"-{0}";if(y.target.isComponent){A=y.target.baseCls;F+=" "+A+"-handle "+A+"-handle-{0}";if(Ext.supports.CSS3BorderRadius){F+=" "+A+"-handle-{0}-br"}}for(D=0;D<B;D++){if(t[D]&&w[t[D]]){x=w[t[D]];v.push('<div id="',y.el.id,"-",x,'-handle" class="',Ext.String.format(F,x)," ",z,'" unselectable="on" role="presentation"',"></div>")}}Ext.DomHelper.append(y.el,v.join(""));v.length=0;for(D=0;D<B;D++){if(t[D]&&w[t[D]]){x=w[t[D]];H=y[x]=y.el.getById(y.el.id+"-"+x+"-handle");v.push(H);H.region=x;if(y.transparent){H.setOpacity(0)}}}y.resizeTracker.handleEls=v},disable:function(){this.resizeTracker.disable()},enable:function(){this.resizeTracker.enable()},onBeforeResize:function(d,c){return this.fireResizeEvent("beforeresize",d,c)},onResize:function(d,c){return this.fireResizeEvent("resizedrag",d,c)},onResizeEnd:function(d,c){return this.fireResizeEvent("resize",d,c)},fireResizeEvent:function(g,i,h){var j=this,e;if(j.hasListeners[g]){e=j.el.getBox();return j.fireEvent(g,j,e.width,e.height,h)}},resizeTo:function(d,e){var f=this;f.target.setSize(d,e);f.fireEvent("resize",f,d,e,null)},getEl:function(){return this.el},getTarget:function(){return this.target},destroy:function(){var j=this,k,l=j.handles,h=l.length,g=j.possiblePositions,i;j.resizeTracker.destroy();if(j.isTargetWrapped){j.target.destroy()}for(k=0;k<h;k++){if((i=j[g[l[k]]])){i.destroy()}}j.callParent()}},1,0,0,0,0,[["observable",Ext.util.Observable]],[Ext.resizer,"Resizer",Ext,"Resizable"],0));(Ext.cmd.derive("Ext.selection.CellModel",Ext.selection.DataViewModel,{isCellModel:true,deselectOnContainerClick:false,enableKeyNav:true,preventWrap:false,bindComponent:function(e){var f=this,d;if(f.view&&f.gridListeners){f.gridListeners.destroy()}Ext.selection.DataViewModel.prototype.bindComponent.call(this,e);if(e){d=e.grid||e.ownerCt;if(d.optimizedColumnMove!==false){f.gridListeners=d.on({columnmove:f.onColumnMove,scope:f,destroyable:true})}}},getViewListeners:function(){var b=Ext.selection.DataViewModel.prototype.getViewListeners.call(this);b.refresh=this.onViewRefresh;return b},getHeaderCt:function(){var c=this.navigationModel.getPosition(),d=c?c.view:this.primaryView;return d.headerCt},onNavigate:function(b){if(!b.record||b.keyEvent.stopSelection){return}this.setPosition(b.position)},selectWithEvent:function(d,c){this.select(d)},select:function(j,l,h){var m=this,k,n=m.getPosition(),i=m.view.store;if(j||j===0){if(j.isModel){k=i.indexOf(j);if(k!==-1){j={row:k,column:n?n.column:0}}else{j=null}}else{if(typeof j==="number"){j={row:j,column:0}}}}if(j){m.selectByPosition(j,h)}else{m.deselect()}},getCurrentPosition:function(){var b=this.selecting?this.nextSelection:this.selection;return b?{view:b.view,record:b.record,row:b.rowIdx,columnHeader:b.column,column:b.view.getColumnManager().indexOf(b.column)}:b},getPosition:function(){return(this.selecting?this.nextSelection:this.selection)||null},setCurrentPosition:function(f,e,d){if(f&&!f.isCellContext){f=new Ext.grid.CellContext(this.view).setPosition({row:f.row,column:typeof f.column==="number"?this.view.getColumnManager().getColumns()[f.column]:f.column})}return this.setPosition(f,e,d)},setPosition:function(h,g,i){var j=this,f=j.selection;if(h){h=h.isCellContext?h.clone():new Ext.grid.CellContext(j.view).setPosition(h)}if(!i&&f){if(h&&(h.record===f.record&&h.column===f.column&&h.view===f.view)){h=null}else{j.onCellDeselect(j.selection,g)}}if(h){j.nextSelection=h;j.selecting=true;j.onCellSelect(j.nextSelection,g);j.selecting=false;return(j.selection=h)}},isCellSelected:function(h,j,l){var k=this,g,i=k.getPosition();if(i&&i.view===h){g=new Ext.grid.CellContext(h).setPosition({row:j,column:typeof l==="number"?h.getColumnManager().getColumns()[l]:l});return(g.record===i.record)&&(g.column===i.column)}},onStoreRemove:function(f,g,i){var j=this,h=j.getPosition();Ext.selection.DataViewModel.prototype.onStoreRemove.apply(this,arguments);if(h&&f.isMoving(h.record)){return}if(h&&f.getCount()&&f.indexOf(h.record)!==-1){h.setRow(h.record)}else{j.selection=null}},onStoreClear:function(){Ext.selection.DataViewModel.prototype.onStoreClear.apply(this,arguments);this.selection=null},onStoreAdd:function(){var d=this,c=d.getPosition();Ext.selection.DataViewModel.prototype.onStoreAdd.apply(this,arguments);if(c){c.setRow(c.record)}else{d.selection=null}},onCellClick:function(n,i,l,e,j,m,k){if(m!==-1){this.setPosition(k.position)}},onCellSelect:function(d,c){if(d&&d.rowIdx!==undefined&&d.rowIdx>-1){this.doSelect(d.record,false,c)}},onCellDeselect:function(d,c){if(d&&d.rowIdx!==undefined){this.doDeselect(d.record,c)}},onSelectChange:function(i,n,o,l){var m=this,k,p,j;if(n){k=m.nextSelection;p="select"}else{k=m.selection;p="deselect"}j=k.view||m.primaryView;if((o||m.fireEvent("before"+p,m,i,k.rowIdx,k.colIdx))!==false&&l()!==false){if(n){j.onCellSelect(k)}else{j.onCellDeselect(k);delete m.selection}if(!o){m.fireEvent(p,m,i,k.rowIdx,k.colIdx)}}},refresh:function(){var c=this.getPosition(),d;if(c&&(d=this.store.indexOf(this.selected.last()))!==-1){c.rowIdx=d}},onColumnMove:function(i,h,f,j){var g=i.up("tablepanel");if(g){this.onViewRefresh(g.view)}},onUpdate:function(e){var d=this,f;if(d.isSelected(e)){f=d.selecting?d.nextSelection:d.selection;d.view.onCellSelect(f)}},onViewRefresh:function(h){var l=this,j=l.getPosition(),n,k=h.headerCt,i,m;if(j&&j.view===h){i=j.record;m=j.column;if(!m.isDescendantOf(k)){m=k.queryById(m.id)||k.down('[text="'+m.text+'"]')||k.down('[dataIndex="'+m.dataIndex+'"]')}if(j.record){if(m&&(h.store.indexOfId(i.getId())!==-1)){n=new Ext.grid.CellContext(h).setPosition({row:i,column:m});l.setPosition(n)}}else{l.selection=null}}},selectByPosition:function(d,c){this.setPosition(d,c)}},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(e){var g=this,f=g.view,h;if(f&&g.isSelected(e)){h=f.indexOf(e);f.onRowSelect(h);if(e===g.lastFocused){f.onRowFocus(h,true)}}},onSelectChange:function(q,u,m,v){var o=this,i=o.views||[o.view],t=i.length,s=o.store.indexOf(q),p=u?"select":"deselect",r,n;if((m||o.fireEvent("before"+p,o,q,s))!==false&&v()!==false){for(r=0;r<t;r++){n=i[r];s=n.indexOf(q);if(n.indexOf(q)!==-1){if(u){n.onRowSelect(s,m)}else{n.onRowDeselect(s,m)}}}if(!m){o.fireEvent(p,o,q,s)}}},getCurrentPosition:function(){var b=this.selected.getAt(0);if(b){return new Ext.grid.CellContext(this.view).setPosition(this.store.indexOf(b),0)}},selectByPosition:function(d,c){if(!d.isCellContext){d=new Ext.grid.CellContext(this.view).setPosition(d.row,d.column)}this.select(d.record,c)},selectNext:function(l,p){var m=this,i=m.store,n=m.getSelection(),j=n[n.length-1],o=m.view.indexOf(j)+1,k;if(o===i.getCount()||o===0){k=false}else{m.doSelect(o,l,p);k=true}return k},selectPrevious:function(k,h){var l=this,m=l.getSelection(),i=m[0],n=l.view.indexOf(i)-1,j;if(n<0){j=false}else{l.doSelect(n,k,h);j=true}return j},isRowSelected:function(b){return this.isSelected(b)},isCellSelected:function(d,e,f){return this.isSelected(e)},vetoSelection:function(h){var e=this.view.getNavigationModel(),f=h.getKey(),g=f===h.RIGHT||f===h.LEFT;return(g&&e.previousRecord===e.record)||Ext.selection.DataViewModel.prototype.vetoSelection.call(this,h)}},0,0,0,0,["selection.rowmodel"],0,[Ext.selection,"RowModel"],0));(Ext.cmd.derive("Ext.selection.CheckboxModel",Ext.selection.RowModel,{mode:"MULTI",injectCheckbox:0,checkOnly:false,showHeaderCheckbox:undefined,checkSelector:".x-grid-row-checker",allowDeselect:true,headerWidth:24,checkerOnCls:"x-grid-hd-checker-on",tdCls:"x-grid-cell-special x-grid-cell-row-checker",constructor:function(){var b=this;Ext.selection.RowModel.prototype.constructor.apply(this,arguments);if(b.mode==="SINGLE"){b.showHeaderCheckbox=false}},beforeViewRender:function(d){var f=this,e;Ext.selection.RowModel.prototype.beforeViewRender.apply(this,arguments);if(!f.hasLockedHeader()||d.headerCt.lockedCt){f.addCheckbox(d,true);e=d.ownerCt;if(d.headerCt.lockedCt){e=e.ownerCt}f.mon(e,"reconfigure",f.onReconfigure,f)}},bindComponent:function(b){this.sortable=false;Ext.selection.RowModel.prototype.bindComponent.apply(this,arguments)},hasLockedHeader:function(){var e=this.views,f=e.length,d;for(d=0;d<f;d++){if(e[d].headerCt.lockedCt){return true}}return false},addCheckbox:function(g,f){var j=this,i=j.injectCheckbox,h=g.headerCt;if(i!==false){if(i==="first"){i=0}else{if(i==="last"){i=h.getColumnCount()}}Ext.suspendLayouts();if(g.getStore().isBufferedStore){j.showHeaderCheckbox=false}j.column=h.add(i,j.getHeaderConfig());Ext.resumeLayouts()}if(f!==true){g.refresh()}},onReconfigure:function(f,e,d){if(d){this.addCheckbox(this.views[0])}},toggleUiHeader:function(h){var f=this.views[0],i=f.headerCt,j=i.child("gridcolumn[isCheckerHd]"),g=this.checkerOnCls;if(j){if(h){j.addCls(g)}else{j.removeCls(g)}}},onHeaderClick:function(j,h,e){var g=this,i;if(h===g.column&&g.mode!=="SINGLE"){e.stopEvent();i=h.el.hasCls("x-grid-hd-checker-on");if(i){g.deselectAll()}else{g.selectAll()}}},getHeaderConfig:function(){var d=this,c=d.showHeaderCheckbox!==false;return{xtype:"gridcolumn",ignoreExport:true,isCheckerHd:c,text:"&#160;",clickTargetName:"el",width:d.headerWidth,sortable:false,draggable:false,resizable:false,hideable:false,menuDisabled:true,dataIndex:"",tdCls:d.tdCls,cls:c?"x-column-header-checkbox ":"",defaultRenderer:d.renderer.bind(d),editRenderer:d.editRenderer||d.renderEmpty,locked:d.hasLockedHeader(),processEvent:d.processColumnEvent}},processColumnEvent:function(n,l,k,q,m,o,p,e){var r=l.getNavigationModel();if(o.type==="keydown"&&l.actionableMode&&o.getKey()===o.SPACE){r.fireEvent("navigate",{view:l,navigationModel:r,keyEvent:o,position:o.position,recordIndex:q,record:p,item:o.item,cell:o.position.cellElement,columnIndex:o.position.colIdx,column:o.position.column})}},renderEmpty:function(){return"&#160;"},refresh:function(){Ext.selection.RowModel.prototype.refresh.apply(this,arguments);this.updateHeaderState()},renderer:function(k,n,h,j,l,m,i){return'<div class="x-grid-row-checker" role="button" tabIndex="0">&#160;</div>'},selectByPosition:function(d,c){if(!d.isCellContext){d=new Ext.grid.CellContext(this.view).setPosition(d.row,d.column)}if(!this.checkOnly||d.column===this.column){Ext.selection.RowModel.prototype.selectByPosition.call(this,d,c)}},onSelectChange:function(){Ext.selection.RowModel.prototype.onSelectChange.apply(this,arguments);if(!this.suspendChange){this.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(b){if(b&&!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 m=this,l=m.store,n=l.getCount(),k=m.views,i=false,r=0,q,o,p;if(!l.isBufferedStore&&n>0){q=m.selected;i=true;for(p=0,o=q.getCount();p<o;++p){if(l.indexOfId(q.getAt(p).id)===-1){break}++r}i=n===r}if(k&&k.length){m.toggleUiHeader(i)}},vetoSelection:function(j){var l=this,e=l.column,h,k,i;if(l.checkOnly){k=j.type==="click"&&j.getTarget(l.checkSelector);i=j.getKey()===j.SPACE&&j.position.column===e;h=!(k||i)}return h||Ext.selection.RowModel.prototype.vetoSelection.call(this,j)},destroy:function(){this.column=null;Ext.selection.RowModel.prototype.destroy.call(this)},privates:{onBeforeNavigate:function(d){var c=d.keyEvent;if(this.selectionMode!=="SINGLE"){d.ctrlKey=d.ctrlKey||c.ctrlKey||(c.type==="click"&&!c.shiftKey)||c.getKey()===c.SPACE}},selectWithEventMulti:function(f,g,e){var h=this;if(!g.shiftKey&&!g.ctrlKey&&g.getTarget(h.checkSelector)){if(e){h.doDeselect(f)}else{h.doSelect(f,true)}}else{Ext.selection.RowModel.prototype.selectWithEventMulti.call(this,f,g,e)}}}},1,0,0,0,["selection.checkboxmodel"],0,[Ext.selection,"CheckboxModel"],0));Ext.define("Ext.theme.triton.selection.CheckboxModel",{override:"Ext.selection.CheckboxModel",headerWidth:32});(Ext.cmd.derive("Ext.slider.Thumb",Ext.Base,{overCls:"x-slider-thumb-over",constructor:function(d){var c=this;Ext.apply(c,d||{},{cls:"x-slider-thumb",constrain:false});c.callParent([d])},render:function(){var b=this;b.el=b.slider.innerEl.insertFirst(b.getElConfig());b.onRender()},onRender:function(){if(this.disabled){this.disable()}this.initEvents()},getElConfig:function(){var f=this,d=f.slider,e={};e[d.vertical?"bottom":d.horizontalProp]=d.calculateThumbPosition(d.normalizeValue(f.value))+"%";return{style:e,id:this.id,cls:this.cls,role:"presentation"}},move:function(j,q){var m=this,p=m.el,r=m.slider,o=r.vertical?"bottom":r.horizontalProp,l,k,n;j+="%";if(!q){p.dom.style[o]=j}else{l={};l[o]=j;if(!Ext.supports.GetPositionPercentage){k={};k[o]=p.dom.style[o]}n={target:p,duration:350,from:k,to:l,scope:m,callback:m.onAnimComplete};if(q!==true){Ext.apply(n,q)}m.anim=new Ext.fx.Anim(n)}},onAnimComplete:function(){this.anim=null},enable:function(){var b=this.el;this.disabled=false;if(b){b.removeCls(this.slider.disabledCls)}},disable:function(){var b=this.el;this.disabled=true;if(b){b.addCls(this.slider.disabledCls)}},initEvents:function(){var b=this;b.tracker=new Ext.dd.DragTracker({el:b.el,onBeforeStart:b.onBeforeDragStart.bind(b),onStart:b.onDragStart.bind(b),onDrag:b.onDrag.bind(b),onEnd:b.onDragEnd.bind(b),tolerance:3,autoStart:300});b.el.hover(b.addOverCls,b.removeOverCls,b)},addOverCls:function(){var b=this;if(!b.disabled){b.el.addCls(b.overCls)}},removeOverCls:function(){this.el.removeCls(this.overCls)},onBeforeDragStart:function(i){var j=this,e=j.el,g=j.tracker.getXY(),h=j.pointerOffset=e.getXY();if(j.disabled){return false}else{h[0]+=Math.floor(e.getWidth()/2)-g[0];h[1]+=Math.floor(e.getHeight()/2)-g[1];j.slider.promoteThumb(j);return true}},onDragStart:function(f){var d=this,e=d.slider;e.onDragStart(d,f);d.el.addCls("x-slider-thumb-drag");d.dragging=d.slider.dragging=true;d.dragStartValue=d.value;e.fireEvent("dragstart",e,f,d)},onDrag:function(k){var m=this,n=m.slider,e=m.index,l=m.getValueFromTracker(),i,j;if(l!==undefined){if(m.constrain){i=n.thumbs[e+1];j=n.thumbs[e-1];if(j!==undefined&&l<=j.value){l=j.value}if(i!==undefined&&l>=i.value){l=i.value}}n.setValue(e,l,false);n.fireEvent("drag",n,k,m)}},getValueFromTracker:function(){var d=this.slider,e=this.tracker.getXY(),f;e[0]+=this.pointerOffset[0];e[1]+=this.pointerOffset[1];f=d.getTrackpoint(e);if(f!==undefined){return d.reversePixelValue(f)}},onDragEnd:function(g){var e=this,f=e.slider,h=e.value;f.onDragEnd(e,g);e.el.removeCls("x-slider-thumb-drag");e.dragging=f.dragging=false;f.fireEvent("dragend",f,g);if(e.dragStartValue!==h){f.fireEvent("changecomplete",f,h,e)}},destroy:function(){var d=this,c=this.anim;if(c){c.end()}d.el=d.tracker=d.anim=Ext.destroy(d.el,d.tracker);d.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(h){var e=this,g,f;if(!e.position){e.position=h.vertical?e.defaultVerticalPosition:e.defaultHorizontalPosition}switch(e.position){case"top":f=[0,-10];g="b-t?";break;case"bottom":f=[0,10];g="t-b?";break;case"left":f=[-10,0];g="r-l?";break;case"right":f=[10,0];g="l-r?"}if(!e.align){e.align=g}if(!e.offsets){e.offsets=f}h.on({scope:e,dragstart:e.onSlide,drag:e.onSlide,dragend:e.hide,destroy:e.destroy})},onSlide:function(h,g,f){var e=this;e.show();e.update(e.getText(f));e.el.alignTo(f.el,e.align,e.offsets)},getText:function(b){return String(b.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,focusCls:"slider-focus",childEls:["endEl","innerEl"],fieldSubTpl:['<div id="{id}" data-ref="inputEl" {inputAttrTpl}',' class="',"x-","slider {fieldCls} {vertical}",'{childElCls}"','<tpl if="tabIdx != null"> tabindex="{tabIdx}"</tpl>','<tpl foreach="inputElAriaAttributes"> {$}="{.}"</tpl>',">",'<div id="{cmpId}-endEl" data-ref="endEl" class="x-slider-end" role="presentation">','<div id="{cmpId}-innerEl" data-ref="innerEl" class="x-slider-inner" role="presentation">',"{%this.renderThumbs(out, values)%}","</div>","</div>","</div>",{renderThumbs:function(m,n){var k=n.$comp,l=0,p=k.thumbs,i=p.length,o,j;for(;l<i;l++){o=p[l];j=o.getElConfig();j.id=k.id+"-thumb-"+l;Ext.DomHelper.generateMarkup(j,m)}},disableFormats:true}],horizontalProp:"left",initValue:function(){var h=this,f=Ext.valueFrom,j=f(h.values,[f(h.value,f(h.minValue,0))]),i=0,g=j.length;h.originalValue=j;for(;i<g;i++){h.addThumb(h.normalizeValue(j[i]))}},initComponent:function(){var j=this,l,k,i,g,h;j.thumbs=[];j.keyIncrement=Math.max(j.increment,j.keyIncrement);j.extraFieldBodyCls="x-slider-ct-"+(j.vertical?"vert":"horz");Ext.form.field.Base.prototype.initComponent.call(this);if(j.useTips){if(Ext.isObject(j.useTips)){l=Ext.apply({},j.useTips)}else{l=j.tipText?{getText:j.tipText}:{}}h=j.plugins=j.plugins||[];g=h.length;for(i=0;i<g;i++){if(h[i].isSliderTip){k=true;break}}if(!k){j.plugins.push(new Ext.slider.Tip(l))}}},addThumb:function(f){var d=this,e=new Ext.slider.Thumb({ownerCt:d,value:f,slider:d,index:d.thumbs.length,constrain:d.constrainThumbs,disabled:!!d.readOnly});d.thumbs.push(e);if(d.rendered){e.render()}return e},promoteThumb:function(f){var g=this.thumbStack||(this.thumbStack=Ext.Array.slice(this.thumbs)),i=g.length,h=10000,j;if(g[0]!==f){Ext.Array.remove(g,f);g.unshift(f)}for(j=0;j<i;j++){g[j].el.setStyle("zIndex",h);h-=1000}},getSubTplData:function(e){var h=this,g,f;g=Ext.apply(Ext.form.field.Base.prototype.getSubTplData.call(this,e),{$comp:h,vertical:h.vertical?"x-slider-vert":"x-slider-horz",minValue:h.minValue,maxValue:h.maxValue,value:h.value,tabIdx:h.tabIndex,childElCls:""});f=g.inputElAriaAttributes;if(f){f["aria-orientation"]=h.vertical?"vertical":"horizontal";f["aria-valuemin"]=h.minValue;f["aria-valuemax"]=h.maxValue;f["aria-valuenow"]=h.value}return g},onRender:function(){var h=this,f=h.thumbs,g=f.length,i=0,j;(arguments.callee.$previous||Ext.form.field.Base.prototype.onRender).apply(this,arguments);for(i=0;i<g;i++){j=f[i];j.el=h.el.getById(h.id+"-thumb-"+i);j.onRender()}},initEvents:function(){var b=this;Ext.form.field.Base.prototype.initEvents.call(this);b.mon(b.el,{scope:b,mousedown:b.onMouseDown,keydown:b.onKeyDown})},onDragStart:Ext.emptyFn,onDragEnd:Ext.emptyFn,getTrackpoint:function(j){var k=this,m=k.vertical,n=k.innerEl,h,i,l;if(m){l="top";h=n.getHeight()}else{l=k.horizontalProp;h=n.getWidth()}j=k.transformTrackPoints(n.translatePoints(j));i=Ext.Number.constrain(j[l],0,h);return m?h-i:i},transformTrackPoints:Ext.identityFn,checkChange:Ext.emptyFn,onMouseDown:function(j){var m=this,k=false,n=0,e=m.thumbs,i=e.length,l;if(m.disabled){return}for(;!k&&n<i;n++){k=k||j.target===e[n].el.dom}m.focus();if(m.clickToChange&&!k){l=m.getTrackpoint(j.getXY());if(l!==undefined){m.onClickChange(l)}}},onClickChange:function(g){var h=this,f,e;f=h.getNearest(g);if(!f.disabled){e=f.index;h.setValue(e,Ext.util.Format.round(h.reversePixelValue(g),h.decimalPrecision),undefined,true)}},getNearest:function(o){var n=this,q=n.reversePixelValue(o),m=n.getRange()+5,u=null,r=n.thumbs,t=0,s=r.length,v,i,p;for(;t<s;t++){v=n.thumbs[t];i=v.value;p=Math.abs(i-q);if(Math.abs(p)<=m){if(u&&u.value==i&&i>q&&v.index>u.index){continue}u=v;m=p}}return u},onKeyDown:function(i){var j=this,g=j.ariaEl.dom,e,h;e=i.getKey();if(j.disabled||j.thumbs.length!==1){if(e!==i.TAB){i.preventDefault()}return}switch(e){case i.UP:case i.RIGHT:h=i.ctrlKey?j.maxValue:j.getValue(0)+j.keyIncrement;break;case i.DOWN:case i.LEFT:h=i.ctrlKey?j.minValue:j.getValue(0)-j.keyIncrement;break;case i.HOME:h=j.minValue;break;case i.END:h=j.maxValue;break;case i.PAGE_UP:h=j.getValue(0)+j.pageSize;break;case i.PAGE_DOWN:h=j.getValue(0)-j.pageSize;break}if(h!==undefined){i.stopEvent();h=j.normalizeValue(h);j.setValue(0,h,undefined,true);if(g){g.setAttribute("aria-valuenow",h)}}},normalizeValue:function(d){var f=this,e=f.zeroBasedSnapping?"snap":"snapInRange";d=Ext.Number[e](d,f.increment,f.minValue,f.maxValue);d=Ext.util.Format.round(d,f.decimalPrecision);d=Ext.Number.constrain(d,f.minValue,f.maxValue);return d},setMinValue:function(j){var k=this,n=k.thumbs,h=n.length,i=k.ariaEl.dom,m,l;k.minValue=j;for(l=0;l<h;++l){m=n[l];if(m.value<j){k.setValue(l,j,false)}}if(i){i.setAttribute("aria-valuemin",j)}k.syncThumbs()},setMaxValue:function(j){var k=this,n=k.thumbs,h=n.length,i=k.ariaEl.dom,m,l;k.maxValue=j;for(l=0;l<h;++l){m=n[l];if(m.value>j){k.setValue(l,j,false)}}if(i){i.setAttribute("aria-valuemax",j)}k.syncThumbs()},setValue:function(q,m,u,s){var n=this,o=n.thumbs,p=n.ariaEl.dom,v,r,t,i;if(Ext.isArray(q)){i=q;u=m;for(t=0,r=i.length;t<r;++t){v=o[t];if(v){n.setValue(t,i[t],u)}}return n}v=n.thumbs[q];m=n.normalizeValue(m);if(m!==v.value&&n.fireEvent("beforechange",n,m,v.value,v)!==false){v.value=m;if(n.rendered){if(Ext.isDefined(u)){u=u===false?false:u}else{u=n.animate}v.move(n.calculateThumbPosition(m),u);if(q===0&&p){p.setAttribute("aria-valuenow",m)}n.fireEvent("change",n,m,v);n.checkDirty();if(s){n.fireEvent("changecomplete",n,m,v)}}}return n},calculateThumbPosition:function(f){var e=this,h=e.minValue,g=(f-h)/e.getRange()*100;if(isNaN(g)){g=0}return g},getRatio:function(){var e=this,g=e.innerEl,f=e.vertical?g.getHeight():g.getWidth(),h=e.getRange();return h===0?f:(f/h)},getRange:function(){return this.maxValue-this.minValue},reversePixelValue:function(b){return this.minValue+(b/this.getRatio())},reversePercentageValue:function(b){return this.minValue+this.getRange()*(b/100)},onDisable:function(){var k=this,m=0,h=k.thumbs,i=h.length,n,l,j;Ext.form.field.Base.prototype.onDisable.call(this);for(;m<i;m++){n=h[m];l=n.el;n.disable();if(Ext.isIE){j=l.getXY();l.hide();k.innerEl.addCls(k.disabledCls).dom.disabled=true;if(!k.thumbHolder){k.thumbHolder=k.endEl.createChild({role:"presentation",cls:"x-slider-thumb "+k.disabledCls})}k.thumbHolder.show().setXY(j)}}},onEnable:function(){var i=this,k=0,g=i.thumbs,h=g.length,l,j;Ext.form.field.Base.prototype.onEnable.call(this);for(;k<h;k++){l=g[k];j=l.el;l.enable();if(Ext.isIE){i.innerEl.removeCls(i.disabledCls).dom.disabled=false;if(i.thumbHolder){i.thumbHolder.hide()}j.show();i.syncThumbs()}}},syncThumbs:function(){if(this.rendered){var e=this.thumbs,f=e.length,d=0;for(;d<f;d++){e[d].move(this.calculateThumbPosition(e[d].value))}}},getValue:function(b){return Ext.isNumber(b)?this.thumbs[b].value:this.getValues()},getValues:function(){var h=[],g=0,e=this.thumbs,f=e.length;for(;g<f;g++){h.push(e[g].value)}return h},getSubmitValue:function(){var b=this;return(b.disabled||!b.submitValue)?null:b.getValue()},reset:function(){var h=this,a=[].concat(h.originalValue),j=0,i=a.length,g;for(;j<i;j++){g=a[j];h.setValue(j,g)}h.clearInvalid();delete h.wasValid},setReadOnly:function(h){var i=this,f=i.thumbs,g=f.length,j=0;Ext.form.field.Base.prototype.setReadOnly.apply(this,arguments);h=i.readOnly;for(;j<g;++j){if(h){f[j].disable()}else{f[j].enable()}}},beforeDestroy:function(){var h=this,f=h.thumbs,i=0,g=f.length,j;if(h.rendered){for(;i<g;i++){j=f[i];Ext.destroy(j)}}Ext.form.field.Base.prototype.beforeDestroy.call(this)}},0,["multislider"],["component","box","field","multislider"],{component:true,box:true,field:true,multislider:true},["widget.multislider"],0,[Ext.slider,"Multi",Ext.slider,"MultiSlider"],0));(Ext.cmd.derive("Ext.slider.Single",Ext.slider.Multi,{alternateClassName:["Ext.Slider","Ext.form.SliderField","Ext.slider.SingleSlider","Ext.slider.Slider"],defaultBindProperty:"value",initComponent:function(){if(this.publishOnComplete){this.valuePublishEvent="changecomplete"}Ext.slider.Multi.prototype.initComponent.call(this)},publishOnComplete:true,getValue:function(){return Ext.slider.Multi.prototype.getValue.call(this,0)},setValue:function(g,e){var h=arguments,f=h.length;if(f===1||(f<=3&&typeof h[1]!=="number")){h=Ext.toArray(h);h.unshift(0)}return Ext.slider.Multi.prototype.setValue.apply(this,h)},getNearest:function(){return this.thumbs[0]}},0,["slider","sliderfield"],["component","box","field","multislider","slider","sliderfield"],{component:true,box:true,field:true,multislider:true,slider:true,sliderfield:true},["widget.slider","widget.sliderfield"],0,[Ext.slider,"Single",Ext,"Slider",Ext.form,"SliderField",Ext.slider,"SingleSlider",Ext.slider,"Slider"],0));(Ext.cmd.derive("Ext.tab.Tab",Ext.button.Button,{isTab:true,baseCls:"x-tab",closeElOverCls:"x-tab-close-btn-over",closeElPressedCls:"x-tab-close-btn-pressed",config:{rotation:"default",tabPosition:"top"},closable:true,closeText:"Close Tab",active:false,childEls:["closeEl"],scale:false,ariaRole:"tab",tabIndex:-1,keyHandlers:{DELETE:"onDeleteKey"},_btnWrapCls:"x-tab-wrap",_btnCls:"x-tab-button",_baseIconCls:"x-tab-icon-el",_glyphCls:"x-tab-glyph",_innerCls:"x-tab-inner",_textCls:"x-tab-text",_noTextCls:"x-tab-no-text",_hasIconCls:"x-tab-icon",_activeCls:"x-tab-active",_closableCls:"x-tab-closable",overCls:"x-tab-over",_pressedCls:"x-tab-pressed",_disabledCls:"x-tab-disabled",_rotateClasses:{1:"x-tab-rotate-right",2:"x-tab-rotate-left"},_positions:{top:{"default":"top",0:"top",1:"left",2:"right"},right:{"default":"top",0:"right",1:"top",2:"bottom"},bottom:{"default":"bottom",0:"bottom",1:"right",2:"left"},left:{"default":"top",0:"left",1:"bottom",2:"top"}},_defaultRotations:{top:0,right:1,bottom:0,left:2},initComponent:function(){var b=this;if(b.card){b.setCard(b.card)}Ext.button.Button.prototype.initComponent.apply(this,arguments)},getActualRotation:function(){var b=this.getRotation();return(b!=="default")?b:this._defaultRotations[this.getTabPosition()]},updateRotation:function(){this.syncRotationAndPosition()},updateTabPosition:function(){this.syncRotationAndPosition()},syncRotationAndPosition:function(){var l=this,p=l._rotateClasses,i=l.getTabPosition(),m=l.getActualRotation(),n=l._rotateCls,k=l._rotateCls=p[m],o=l._positionCls,j=l._positionCls=l._positions[i][m];if(n!==k){if(n){l.removeCls(n)}if(k){l.addCls(k)}}if(o!==j){if(o){l.removeClsWithUI(o)}if(j){l.addClsWithUI(j)}if(l.rendered){l.updateFrame()}}if(l.rendered){l.setElOrientation()}},onAdded:function(d,f,e){Ext.button.Button.prototype.onAdded.call(this,d,f,e);this.syncRotationAndPosition()},getTemplateArgs:function(){var c=this,d=Ext.button.Button.prototype.getTemplateArgs.call(this);d.closable=c.closable;d.closeText=c.closeText;return d},beforeRender:function(){var d=this,e=d.up("tabbar"),f=d.up("tabpanel");Ext.button.Button.prototype.beforeRender.call(this);d.ariaRenderAttributes=d.ariaRenderAttributes||{};if(d.active){d.ariaRenderAttributes["aria-selected"]=true;d.addCls(d._activeCls)}else{d.ariaRenderAttributes["aria-selected"]=false}d.syncClosableCls();if(!d.minWidth){d.minWidth=(e)?e.minTabWidth:d.minWidth;if(!d.minWidth&&f){d.minWidth=f.minTabWidth}if(d.minWidth&&d.iconCls){d.minWidth+=25}}if(!d.maxWidth){d.maxWidth=(e)?e.maxTabWidth:d.maxWidth;if(!d.maxWidth&&f){d.maxWidth=f.maxTabWidth}}},onRender:function(){var b=this;b.setElOrientation();Ext.button.Button.prototype.onRender.apply(this,arguments);if(b.closable){b.closeEl.addClsOnOver(b.closeElOverCls);b.closeEl.addClsOnClick(b.closeElPressedCls)}},setElOrientation:function(){var f=this,e=f.getActualRotation(),d=f.el;if(e){d.setVertical(e===1?90:270)}else{d.setHorizontal()}},enable:function(d){var c=this;Ext.button.Button.prototype.enable.apply(this,arguments);c.removeCls(c._disabledCls);return c},disable:function(d){var c=this;Ext.button.Button.prototype.disable.apply(this,arguments);c.addCls(c._disabledCls);return c},setClosable:function(d){var c=this;d=(!arguments.length||!!d);if(c.closable!==d){c.closable=d;if(c.card){c.card.closable=d}c.syncClosableCls();if(c.rendered){c.syncClosableElements();c.updateLayout()}}},syncClosableElements:function(){var d=this,c=d.closeEl;if(d.closable){if(!c){c=d.closeEl=d.btnWrap.insertSibling({tag:"span",id:d.id+"-closeEl",cls:d.baseCls+"-close-btn",html:d.closeText},"after")}c.addClsOnOver(d.closeElOverCls);c.addClsOnClick(d.closeElPressedCls)}else{if(c){c.destroy();delete d.closeEl}}},syncClosableCls:function(){var c=this,d=c._closableCls;if(c.closable){c.addCls(d)}else{c.removeCls(d)}},setCard:function(d){var c=this;c.card=d;if(d.iconAlign){c.setIconAlign(d.iconAlign)}if(d.textAlign){c.setTextAlign(d.textAlign)}c.setText(c.title||d.title);c.setIconCls(c.iconCls||d.iconCls);c.setIcon(c.icon||d.icon);c.setGlyph(c.glyph||d.glyph)},onCloseClick:function(){var b=this;if(b.fireEvent("beforeclose",b)!==false){if(b.tabBar){if(b.tabBar.closeTab(b)===false){return}}else{b.fireClose()}}},fireClose:function(){this.fireEvent("close",this)},onEnterKey:function(c){var d=this;if(d.tabBar){d.tabBar.onClick(c,d.el);c.stopEvent();return false}},onDeleteKey:function(b){if(this.closable){this.onCloseClick();b.stopEvent();return false}},beforeClick:function(b){if(!b){this.focus()}},activate:function(g){var h=this,e=h.card,f=h.ariaEl.dom;h.active=true;h.addCls(h._activeCls);if(f){f.setAttribute("aria-selected",true)}else{h.ariaRenderAttributes=h.ariaRenderAttributes||{};h.ariaRenderAttributes["aria-selected"]=true}if(e){if(e.ariaEl.dom){e.ariaEl.dom.setAttribute("aria-expanded",true)}else{e.ariaRenderAttributes=e.ariaRenderAttributes||{};e.ariaRenderAttributes["aria-expanded"]=true}}if(g!==true){h.fireEvent("activate",h)}},deactivate:function(g){var h=this,e=h.card,f=h.ariaEl.dom;h.active=false;h.removeCls(h._activeCls);if(f){f.setAttribute("aria-selected",false)}else{h.ariaRenderAttributes=h.ariaRenderAttributes||{};h.ariaRenderAttributes["aria-selected"]=false}if(e){if(e.ariaEl.dom){e.ariaEl.dom.setAttribute("aria-expanded",false)}else{e.ariaRenderAttributes=e.ariaRenderAttributes||{};e.ariaRenderAttributes["aria-expanded"]=false}}if(g!==true){h.fireEvent("deactivate",h)}},privates:{getFramingInfoCls:function(){return this.baseCls+"-"+this.ui+"-"+this._positionCls},wrapPrimaryEl:function(b){Ext.Button.superclass.wrapPrimaryEl.call(this,b)}}},0,["tab"],["component","box","button","tab"],{component:true,box:true,button:true,tab:true},["widget.tab"],0,[Ext.tab,"Tab"],0));(Ext.cmd.derive("Ext.tab.Bar",Ext.panel.Bar,{baseCls:"x-tab-bar",componentLayout:"body",isTabBar:true,config:{tabRotation:"default",tabStretchMax:true,activateOnFocus:true},defaultType:"tab",plain:false,ensureActiveVisibleOnChange:true,ariaRole:"tablist",childEls:["body","strip"],_stripCls:"x-tab-bar-strip",_baseBodyCls:"x-tab-bar-body",renderTpl:'<div id="{id}-body" data-ref="body" role="presentation" class="{baseBodyCls} {baseBodyCls}-{ui} {bodyCls} {bodyTargetCls}{childElCls}"<tpl if="bodyStyle"> style="{bodyStyle}"</tpl>>{%this.renderContainer(out,values)%}</div><div id="{id}-strip" data-ref="strip" role="presentation" class="{stripCls} {stripCls}-{ui}{childElCls}"></div>',_reverseDockNames:{left:"right",right:"left"},_layoutAlign:{top:"end",right:"begin",bottom:"begin",left:"end"},initComponent:function(){var g=this,f=g.initialConfig.layout,h=f&&f.align,e=f&&f.overflowHandler;if(g.plain){g.addCls(g.baseCls+"-plain")}Ext.panel.Bar.prototype.initComponent.call(this);g.setLayout({align:h||(g.getTabStretchMax()?"stretchmax":g._layoutAlign[g.dock]),overflowHandler:e||"scroller"});g.on({click:g.onClick,element:"el",scope:g})},ensureTabVisible:function(e){var h=this,g=h.tabPanel,f=h.layout.overflowHandler;if(h.rendered&&f&&h.tooNarrow&&f.scrollToItem){if(e||e===0){if(!e.isTab){if(Ext.isNumber(e)){e=this.items.getAt(e)}else{if(e.isComponent&&g&&g.items.contains(e)){e=e.tab}}}}if(!e){e=h.activeTab}if(e){f.scrollToItem(e)}}},initRenderData:function(){var b=this;return Ext.apply(Ext.panel.Bar.prototype.initRenderData.call(this),{bodyCls:b.bodyCls,baseBodyCls:b._baseBodyCls,bodyTargetCls:b.bodyTargetCls,stripCls:b._stripCls,dock:b.dock})},setDock:function(j){var k=this,i=k.items,n=k.ownerCt,l,h,m;i=i&&i.items;if(i){for(h=0,m=i.length;h<m;h++){l=i[h];if(l.isTab){l.setTabPosition(j)}}}if(k.rendered){k.resetItemMargins();if(n&&n.isHeader){n.resetItemMargins()}k.needsScroll=true}Ext.panel.Bar.prototype.setDock.call(this,j)},updateTabRotation:function(i){var j=this,h=j.items,g,k,l;h=h&&h.items;if(h){for(g=0,k=h.length;g<k;g++){l=h[g];if(l.isTab){l.setRotation(i)}}}if(j.rendered){j.resetItemMargins();j.needsScroll=true;j.updateLayout()}},onRender:function(){var b=this;Ext.panel.Bar.prototype.onRender.call(this);if(Ext.isIE8&&b.vertical){b.el.on({mousemove:b.onMouseMove,scope:b})}},afterLayout:function(){this.adjustTabPositions();Ext.panel.Bar.prototype.afterLayout.apply(this,arguments)},onAdd:function(d,f){var e=this.onTabContentChange;if(this.ensureActiveVisibleOnChange){d.barListeners=d.on({scope:this,destroyable:true,glyphchange:e,iconchange:e,textchange:e})}Ext.panel.Bar.prototype.onAdd.call(this,d,f)},onAdded:function(d,f,e){if(d.isHeader){this.addCls(d.baseCls+"-"+d.ui+"-tab-bar")}Ext.panel.Bar.prototype.onAdded.call(this,d,f,e)},onRemove:function(e,f){var d=this;if(d.ensureActiveVisibleOnChange){if(!f){e.barListeners.destroy()}e.barListeners=null}if(e===d.previousTab){d.previousTab=null}Ext.panel.Bar.prototype.onRemove.call(this,e,f)},onRemoved:function(c){var d=this.ownerCt;if(d.isHeader){this.removeCls(d.baseCls+"-"+d.ui+"-tab-bar")}Ext.panel.Bar.prototype.onRemoved.call(this,c)},onTabContentChange:function(b){if(b===this.activeTab){this.ensureTabVisible(b)}},afterComponentLayout:function(h){var g=this,e=g.needsScroll,f=g.layout.overflowHandler;Ext.panel.Bar.prototype.afterComponentLayout.apply(this,arguments);if(f&&e&&g.tooNarrow&&f.scrollToItem){f.scrollToItem(g.activeTab)}delete g.needsScroll},onMouseMove:function(h){var i=this,e=i._overTab,g,j;if(h.getTarget(".x-box-scroller")){return}g=i.getTabInfoFromPoint(h.getXY());j=g.tab;if(j!==e){if(e&&e.rendered){e.onMouseLeave(h);i._overTab=null}if(j){j.onMouseEnter(h);i._overTab=j;if(!j.disabled){i.el.setStyle("cursor","pointer")}}else{i.el.setStyle("cursor","default")}}},onMouseLeave:function(c){var d=this._overTab;if(d&&d.rendered){d.onMouseLeave(c)}},getTabInfoFromPoint:function(S){var i=this,D=i.items.items,T=D.length,L=i.layout.innerCt,F=L.getXY(),G=new Ext.util.Point(S[0],S[1]),E=0,C,W,X,K,B,Q,R,U,I,O,P,M,N,H,J,A,V;for(;E<T;E++){V=D[E];C=V.lastBox;if(!C||!V.isTab){continue}O=F[0]+C.x;P=F[1]-L.dom.scrollTop+C.y;M=C.width;N=C.height;W=new Ext.util.Region(P,O+M,P+N,O);if(W.contains(G)){X=V.closeEl;if(X){if(i._isTabReversed===undefined){i._isTabReversed=J=(V.btnWrap.dom.currentStyle.filter.indexOf("rotation=2")!==-1)}A=J?this._reverseDockNames[i.dock]:i.dock;U=X.getWidth();I=X.getHeight();B=i.getCloseXY(X,O,P,M,N,U,I,A);Q=B[0];R=B[1];H=new Ext.util.Region(R,Q+U,R+I,Q);K=H.contains(G)}break}}return{tab:V,close:K}},getCloseXY:function(t,m,o,q,l,n,s,p){var r=t.getXY(),u,v;if(p==="right"){u=m+q-((r[1]-o)+s);v=o+(r[0]-m)}else{u=m+(r[1]-o);v=o+m+l-r[0]-n}return[u,v]},closeTab:function(j){var i=this,f=j.card,h=i.tabPanel,g;if(f&&f.fireEvent("beforeclose",f)===false){return false}g=i.findNextActivatable(j);Ext.suspendLayouts();if(h&&f){delete j.ownerCt;f.fireEvent("close",f);h.remove(f);if(!h.getComponent(f)){j.fireClose();i.remove(j)}else{j.ownerCt=i;Ext.resumeLayouts(true);return false}}if(g){if(h){h.setActiveTab(g.card)}else{i.setActiveTab(g)}g.focus()}Ext.resumeLayouts(true)},findNextActivatable:function(e){var h=this,g=h.previousTab,f;if(e.active&&h.items.getCount()>1){if(g&&g!==e&&!g.disabled){f=g}else{f=e.next("tab[disabled=false]")||e.prev("tab[disabled=false]")}}return f||h.activeTab},setActiveTab:function(d,e){var f=this;if(!d.disabled&&d!==f.activeTab){if(f.activeTab){if(f.activeTab.destroyed){f.previousTab=null}else{f.previousTab=f.activeTab;f.activeTab.deactivate();f.deactivateFocusable(f.activeTab)}}d.activate();f.activateFocusable(d);f.activeTab=d;f.needsScroll=true;if(!e){f.fireEvent("change",f,d,d.card);f.updateLayout()}}},privates:{adjustTabPositions:function(){var l=this,j=l.items.items,o=j.length,m,i,n,p,k;if(!Ext.isIE8){k=l._getTabAdjustProp();while(o--){m=j[o];n=m.el;i=m.lastBox;p=m.isTab?m.getActualRotation():0;if(p===1&&m.isVisible()){n.setStyle(k,(i.x+i.width)+"px")}else{if(p===2&&m.isVisible()){n.setStyle(k,(i.x-i.height)+"px")}}}}},applyTargetCls:function(b){this.bodyTargetCls=b},_getTabAdjustProp:function(){return"left"},getTargetEl:function(){return this.body||this.frameBody||this.el},onClick:function(k,l){var m=this,j,n,e,i;if(k.getTarget(".x-box-scroller")){return}if(Ext.isIE8&&m.vertical){i=m.getTabInfoFromPoint(k.getXY());n=i.tab;e=i.close}else{j=k.getTarget("."+Ext.tab.Tab.prototype.baseCls);n=j&&Ext.getCmp(j.id);e=n&&n.closeEl&&(l===n.closeEl.dom)}if(e){k.preventDefault()}if(n&&n.isDisabled&&!n.isDisabled()){n.beforeClick(e);if(n.closable&&e){n.onCloseClick()}else{m.doActivateTab(n)}}},doActivateTab:function(d){var c=this.tabPanel;if(c){if(!d.disabled){c.setActiveTab(d.card)}}else{this.setActiveTab(d)}},onFocusableContainerFocus:function(h){var e=this,f=e.mixins.focusablecontainer,g;g=f.onFocusableContainerFocus.call(e,h);if(g&&g.isTab){e.doActivateTab(g)}},onFocusableContainerFocusEnter:function(h){var e=this,f=e.mixins.focusablecontainer,g;g=f.onFocusableContainerFocusEnter.call(e,h);if(g&&g.isTab){e.doActivateTab(g)}},focusChild:function(h,f){var j=this,g=j.mixins.focusablecontainer,i;i=g.focusChild.call(j,h,f);if(j.activateOnFocus&&i&&i.isTab){j.doActivateTab(i)}}}},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 k=this,n=k.activeTab!==null?(k.activeTab||0):null,l=k.dockedItems,j=k.header,m=k.tabBarHeaderPosition,h=k.getTabBar(),i;k.layout=new Ext.layout.container.Card(Ext.apply({owner:k,deferredRender:k.deferredRender,itemCls:k.itemCls,activeItem:n},k.layout));if(m!=null){j=k.header=Ext.apply({},j);i=j.items=(j.items?j.items.slice():[]);j.itemPosition=m;i.push(h);j.hasTabBar=true}else{l=[].concat(k.dockedItems||[]);l.push(h);k.dockedItems=l}Ext.panel.Panel.prototype.initComponent.apply(this,arguments);n=k.activeTab=k.getComponent(n);if(n){h.setActiveTab(n.tab,true)}},onRender:function(){var d=this.items.items,e=d.length,f;Ext.panel.Panel.prototype.onRender.apply(this,arguments);for(f=0;f<e;++f){d[f].getBind()}},setActiveTab:function(e){var f=this,d;if(!Ext.isObject(e)||e.isComponent){e=f.getComponent(e)}d=f.getActiveTab();if(e){Ext.suspendLayouts();if(!e.isComponent){e=f.add(e)}if(d===e||f.fireEvent("beforetabchange",f,e,d)===false){Ext.resumeLayouts(true);return d}f.activeTab=e;f.layout.setActiveItem(e);e=f.activeTab=f.layout.getActiveItem();if(e&&e!==d){f.tabBar.setActiveTab(e.tab);Ext.resumeLayouts(true);if(d!==e){f.fireEvent("tabchange",f,e,d)}}else{Ext.resumeLayouts(true)}return e}return d},setActiveItem:function(b){return this.setActiveTab(b)},getActiveTab:function(){var c=this,d=c.getComponent(c.activeTab);if(d&&c.items.indexOf(d)!==-1){c.activeTab=d}else{c.activeTab=undefined}return c.activeTab},applyTabBar:function(e){var f=this,d=(f.tabBarHeaderPosition!=null)?f.getHeaderPosition():f.getTabPosition();return new Ext.tab.Bar(Ext.apply({ui:f.ui,dock:d,tabRotation:f.getTabRotation(),vertical:(d==="left"||d==="right"),plain:f.plain,tabStretchMax:f.getTabStretchMax(),tabPanel:f},e))},updateHeaderPosition:function(f,d){var e=this.getTabBar();if(e&&(this.tabBarHeaderPosition!=null)){e.setDock(f)}Ext.panel.Panel.prototype.updateHeaderPosition.call(this,f,d)},updateTabPosition:function(c){var d=this.getTabBar();if(d&&(this.tabBarHeaderPosition==null)){d.setDock(c)}},updateTabRotation:function(c){var d=this.getTabBar();if(d){d.setTabRotation(c)}},onAdd:function(j,l){var k=this,m=Ext.apply({},j.tabConfig),n=k.getTabBar(),h,i={xtype:"tab",title:j.title,icon:j.icon,iconCls:j.iconCls,glyph:j.glyph,ui:n.ui,card:j,disabled:j.disabled,closable:j.closable,hidden:j.hidden&&!j.hiddenByLayout,tooltip:j.tooltip,tabBar:n,tabPosition:n.dock,rotation:n.getTabRotation()};if(j.closeText!==undefined){i.closeText=j.closeText}m=Ext.applyIf(m,i);j.tab=k.tabBar.insert(l,m);j.ariaRole="tabpanel";h=j.ariaEl.dom;if(h){h.setAttribute("aria-labelledby",j.tab.id)}else{j.ariaRenderAttributes=j.ariaRenderAttributes||{};j.ariaRenderAttributes["aria-labelledby"]=j.tab.id}j.on({scope:k,enable:k.onItemEnable,disable:k.onItemDisable,beforeshow:k.onItemBeforeShow,iconchange:k.onItemIconChange,iconclschange:k.onItemIconClsChange,glyphchange:k.onItemGlyphChange,titlechange:k.onItemTitleChange});if(j.isPanel){if(k.removePanelHeader){if(j.rendered){if(j.header){j.header.hide()}}else{j.header=false}}if(j.isPanel&&k.border){j.setBorder(false)}}if(k.rendered){j.getBind()}if(k.rendered&&k.loader&&k.activeTab===undefined&&k.layout.activeItem!==null){k.setActiveTab(0)}},onMove:function(h,e,g){var f=this.getTabBar();Ext.panel.Panel.prototype.onMove.call(this,h,e,g);if(f.items.indexOf(h.tab)!==g){f.move(h.tab,g)}},onItemEnable:function(b){b.tab.enable()},onItemDisable:function(b){b.tab.disable()},onItemBeforeShow:function(b){if(b!==this.activeTab){this.setActiveTab(b);return false}},onItemGlyphChange:function(d,c){d.tab.setGlyph(c)},onItemIconChange:function(c,d){c.tab.setIcon(d)},onItemIconClsChange:function(c,d){c.tab.setIconCls(d)},onItemTitleChange:function(d,c){d.tab.setText(c)},onRemove:function(d,f){var e=this;d.un({scope:e,enable:e.onItemEnable,disable:e.onItemDisable,beforeshow:e.onItemBeforeShow,iconchange:e.onItemIconChange,iconclschange:e.onItemIconClsChange,glyphchange:e.onItemGlyphChange,titlechange:e.onItemTitleChange});if(d.tab&&!e.destroying&&d.tab.ownerCt===e.tabBar){e.tabBar.remove(d.tab)}},privates:{doRemove:function(g,e){var h=this,f;if(h.removingAll||h.destroying||h.items.getCount()===1){h.activeTab=null}else{if(g.tab&&(f=h.tabBar.items.indexOf(h.tabBar.findNextActivatable(g.tab)))!==-1){h.setActiveTab(f)}}Ext.panel.Panel.prototype.doRemove.apply(this,arguments);if(g.tab){delete g.tab.card;delete g.tab}}}},0,["tabpanel"],["component","box","container","panel","tabpanel"],{component:true,box:true,container:true,panel:true,tabpanel:true},["widget.tabpanel"],0,[Ext.tab,"Panel",Ext,"TabPanel"],0));(Ext.cmd.derive("Ext.toolbar.Fill",Ext.Component,{alternateClassName:"Ext.Toolbar.Fill",ariaRole:"presentation",isFill:true,flex:1},0,["tbfill"],["component","box","tbfill"],{component:true,box:true,tbfill:true},["widget.tbfill"],0,[Ext.toolbar,"Fill",Ext.Toolbar,"Fill"],0));(Ext.cmd.derive("Ext.toolbar.Spacer",Ext.Component,{alternateClassName:"Ext.Toolbar.Spacer",baseCls:"x-toolbar-spacer",ariaRole:"presentation"},0,["tbspacer"],["component","box","tbspacer"],{component:true,box:true,tbspacer:true},["widget.tbspacer"],0,[Ext.toolbar,"Spacer",Ext.Toolbar,"Spacer"],0));(Ext.cmd.derive("Ext.draw.ContainerBase",Ext.panel.Panel,{previewTitleText:"Chart Preview",previewAltText:"Chart preview",layout:"container",addElementListener:function(){var c=this,d=arguments;if(c.rendered){c.el.on.apply(c.el,d)}else{c.on("render",function(){c.el.on.apply(c.el,d)})}},removeElementListener:function(){var c=this,d=arguments;if(c.rendered){c.el.un.apply(c.el,d)}},afterRender:function(){Ext.panel.Panel.prototype.afterRender.apply(this,arguments);this.initAnimator()},getItems:function(){var c=this,d=c.items;if(!d||!d.isMixedCollection){c.initItems()}return c.items},onRender:function(){Ext.panel.Panel.prototype.onRender.apply(this,arguments);this.element=this.el;this.innerElement=this.body},setItems:function(b){this.items=b;return b},setSurfaceSize:function(c,d){this.resizeHandler({width:c,height:d});this.renderFrame()},onResize:function(j,g,f,h){var i=this;Ext.panel.Panel.prototype.onResize.call(this,j,g,f,h);i.setBodySize({width:j,height:g})},preview:function(){var b=this.getImage();new Ext.window.Window({title:this.previewTitleText,closeable:true,renderTo:Ext.getBody(),autoShow:true,maximizeable:true,maximized:true,border:true,layout:{type:"hbox",pack:"center",align:"middle"},items:{xtype:"container",items:{xtype:"image",mode:"img",cls:"x-chart-image",alt:this.previewAltText,src:b.data,listeners:{afterrender:function(){var f=this,a=f.imgEl.dom,g=b.type==="svg"?1:(window.devicePixelRatio||1),h;if(!a.naturalWidth||!a.naturalHeight){a.onload=function(){var c=a.naturalWidth,d=a.naturalHeight;f.setWidth(Math.floor(c/g));f.setHeight(Math.floor(d/g))}}else{h=f.getSize();f.setWidth(Math.floor(h.width/g));f.setHeight(Math.floor(h.height/g))}}}}}})},privates:{getTargetEl:function(){return this.innerElement},reattachToBody:function(){var b=this;if(b.pendingDetachSize){b.onBodyResize()}b.pendingDetachSize=false;Ext.panel.Panel.prototype.reattachToBody.call(this)}}},0,0,["component","box","container","panel"],{component:true,box:true,container:true,panel:true},0,0,[Ext.draw,"ContainerBase"],0));(Ext.cmd.derive("Ext.draw.SurfaceBase",Ext.Widget,{getOwnerBody:function(){return this.ownerCt.body},destroy:function(){var b=this;if(b.hasListeners.destroy){b.fireEvent("destroy",b)}Ext.Widget.prototype.destroy.call(this)}},0,0,["widget"],{widget:true},0,0,[Ext.draw,"SurfaceBase"],0));(Ext.cmd.derive("Ext.draw.Color",Ext.Base,{statics:{colorToHexRe:/(.*?)rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbToHexRe:/\s*rgb\((\d+),\s*(\d+),\s*(\d+)\)/,rgbaToHexRe:/\s*rgba\((\d+),\s*(\d+),\s*(\d+),\s*([\.\d]+)\)/,hexRe:/\s*#([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)([0-9a-fA-F][0-9a-fA-F]?)\s*/,NONE:"none",RGBA_NONE:"rgba(0, 0, 0, 0)"},isColor:true,lightnessFactor:0.2,constructor:function(g,e,f,h){this.setRGB(g,e,f,h)},setRGB:function(h,j,g,i){var f=this;f.r=Math.min(255,Math.max(0,h));f.g=Math.min(255,Math.max(0,j));f.b=Math.min(255,Math.max(0,g));if(i===undefined){f.a=1}else{f.a=Math.min(1,Math.max(0,i))}},getGrayscale:function(){return this.r*0.3+this.g*0.59+this.b*0.11},getHSL:function(){var o=this,t=o.r/255,p=o.g/255,l=o.b/255,h=Math.max(t,p,l),r=Math.min(t,p,l),g=h-r,q,b=0,s=0.5*(h+r);if(r!==h){b=(s<=0.5)?g/(h+r):g/(2-h-r);if(t===h){q=60*(p-l)/g}else{if(p===h){q=120+60*(l-t)/g}else{q=240+60*(t-p)/g}}if(q<0){q+=360}if(q>=360){q-=360}}return[q,b,s]},getHSV:function(){var o=this,t=o.r/255,p=o.g/255,n=o.b/255,h=Math.max(t,p,n),r=Math.min(t,p,n),s=h-r,q,b=0,g=h;if(r!=h){b=g?s/g:0;if(t===h){q=60*(p-n)/s}else{if(p===h){q=60*(n-t)/s+120}else{q=60*(t-p)/s+240}}if(q<0){q+=360}if(q>=360){q-=360}}return[q,b,g]},setHSL:function(m,n,o){var l=this,p=Math.abs,k,c,h;m=(m%360+360)%360;n=n>1?1:n<0?0:n;o=o>1?1:o<0?0:o;if(n===0||m===null){o*=255;l.setRGB(o,o,o)}else{m/=60;k=n*(1-p(2*o-1));c=k*(1-p(m%2-1));h=o-k/2;h*=255;k*=255;c*=255;switch(Math.floor(m)){case 0:l.setRGB(k+h,c+h,h);break;case 1:l.setRGB(c+h,k+h,h);break;case 2:l.setRGB(h,k+h,c+h);break;case 3:l.setRGB(h,c+h,k+h);break;case 4:l.setRGB(c+h,h,k+h);break;case 5:l.setRGB(k+h,h,c+h);break}}return l},setHSV:function(l,m,n){var k=this,j,c,h;l=(l%360+360)%360;m=m>1?1:m<0?0:m;n=n>1?1:n<0?0:n;if(m===0||l===null){n*=255;k.setRGB(n,n,n)}else{l/=60;j=n*m;c=j*(1-Math.abs(l%2-1));h=n-j;h*=255;j*=255;c*=255;switch(Math.floor(l)){case 0:k.setRGB(j+h,c+h,h);break;case 1:k.setRGB(c+h,j+h,h);break;case 2:k.setRGB(h,j+h,c+h);break;case 3:k.setRGB(h,c+h,j+h);break;case 4:k.setRGB(c+h,h,j+h);break;case 5:k.setRGB(j+h,h,c+h);break}}return k},createLighter:function(c){if(!c&&c!==0){c=this.lightnessFactor}var d=this.getHSL();d[2]=Ext.Number.constrain(d[2]+c,0,1);return Ext.draw.Color.fromHSL(d[0],d[1],d[2])},createDarker:function(b){if(!b&&b!==0){b=this.lightnessFactor}return this.createLighter(-b)},toString:function(){var g=this,j=Math.round;if(g.a===1){var h=j(g.r).toString(16),i=j(g.g).toString(16),b=j(g.b).toString(16);h=(h.length===1)?"0"+h:h;i=(i.length===1)?"0"+i:i;b=(b.length===1)?"0"+b:b;return["#",h,i,b].join("")}else{return"rgba("+[j(g.r),j(g.g),j(g.b),g.a===0?0:g.a.toFixed(15)].join(", ")+")"}},toHex:function(g){if(Ext.isArray(g)){g=g[0]}if(!Ext.isString(g)){return""}if(g.substr(0,1)==="#"){return g}var j=Ext.draw.Color.colorToHexRe.exec(g);if(Ext.isArray(j)){var i=parseInt(j[2],10),k=parseInt(j[3],10),h=parseInt(j[4],10),l=h|(k<<8)|(i<<16);return j[1]+"#"+("000000"+l.toString(16)).slice(-6)}else{return""}},setFromString:function(a){var l,g,k,n,m=1,b=parseInt;if(a===Ext.draw.Color.NONE){this.r=this.g=this.b=this.a=0;return this}if((a.length===4||a.length===7)&&a.substr(0,1)==="#"){l=a.match(Ext.draw.Color.hexRe);if(l){g=b(l[1],16)>>0;k=b(l[2],16)>>0;n=b(l[3],16)>>0;if(a.length===4){g+=(g*16);k+=(k*16);n+=(n*16)}}}else{if((l=a.match(Ext.draw.Color.rgbToHexRe))){g=+l[1];k=+l[2];n=+l[3]}else{if((l=a.match(Ext.draw.Color.rgbaToHexRe))){g=+l[1];k=+l[2];n=+l[3];m=+l[4]}else{if(Ext.draw.Color.ColorList.hasOwnProperty(a.toLowerCase())){return this.setFromString(Ext.draw.Color.ColorList[a.toLowerCase()])}}}}if(typeof g==="undefined"){return this}this.r=g;this.g=k;this.b=n;this.a=m;return this}},3,0,0,0,0,0,[Ext.draw,"Color"],function(){var b=new this();this.addStatics({fly:function(a,g,i,h){switch(arguments.length){case 1:b.setFromString(a);break;case 3:case 4:b.setRGB(a,g,i,h);break;default:return null}return b},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(e,f,a){return(new this(0,0,0,0)).setHSL(e,f,a)},fromHSV:function(e,f,a){return(new this(0,0,0,0)).setHSL(e,f,a)},fromString:function(a){return(new this(0,0,0,0)).setFromString(a)},create:function(a){if(a instanceof this){return a}else{if(Ext.isArray(a)){return new Ext.draw.Color(a[0],a[1],a[2],a[3])}else{if(Ext.isString(a)){return Ext.draw.Color.fromString(a)}else{if(arguments.length>2){return new Ext.draw.Color(arguments[0],arguments[1],arguments[2],arguments[3])}else{return new Ext.draw.Color(0,0,0,0)}}}}}})}));(Ext.cmd.derive("Ext.draw.sprite.AnimationParser",Ext.Base,function(){function b(e,f,a){return e+(f-e)*a}return{singleton:true,attributeRe:/^url\(#([a-zA-Z\-]+)\)$/,color:{parseInitial:function(d,a){if(Ext.isString(d)){d=Ext.draw.Color.create(d)}if(Ext.isString(a)){a=Ext.draw.Color.create(a)}if((d instanceof Ext.draw.Color)&&(a instanceof Ext.draw.Color)){return[[d.r,d.g,d.b,d.a],[a.r,a.g,a.b,a.a]]}else{return[d||a,a||d]}},compute:function(e,f,a){if(!Ext.isArray(e)||!Ext.isArray(f)){return f||e}else{return[b(e[0],f[0],a),b(e[1],f[1],a),b(e[2],f[2],a),b(e[3],f[3],a)]}},serve:function(d){var a=Ext.draw.Color.fly(d[0],d[1],d[2],d[3]);return a.toString()}},number:{parse:function(a){return a===null?null:+a},compute:function(e,f,a){if(!Ext.isNumber(e)||!Ext.isNumber(f)){return f||e}else{return b(e,f,a)}}},angle:{parseInitial:function(d,a){if(a-d>Math.PI){a-=Math.PI*2}else{if(a-d<-Math.PI){a+=Math.PI*2}}return[d,a]},compute:function(e,f,a){if(!Ext.isNumber(e)||!Ext.isNumber(f)){return f||e}else{return b(e,f,a)}}},path:{parseInitial:function(q,j){var y=q.toStripes(),i=j.toStripes(),w,x,s=y.length,a=i.length,t,v,z,u=i[a-1],r=[u[u.length-2],u[u.length-1]];for(w=s;w<a;w++){y.push(y[s-1].slice(0))}for(w=a;w<s;w++){i.push(r.slice(0))}z=y.length;i.path=j;i.temp=new Ext.draw.Path();for(w=0;w<z;w++){t=y[w];v=i[w];s=t.length;a=v.length;i.temp.commands.push("M");for(x=a;x<s;x+=6){v.push(r[0],r[1],r[0],r[1],r[0],r[1])}u=i[i.length-1];r=[u[u.length-2],u[u.length-1]];for(x=s;x<a;x+=6){t.push(r[0],r[1],r[0],r[1],r[0],r[1])}for(w=0;w<v.length;w++){v[w]-=t[w]}for(w=2;w<v.length;w+=6){i.temp.commands.push("C")}}return[y,i]},compute:function(u,j,i){if(i>=1){return j.path}var s=0,r=u.length,t=0,v,o,p,a=j.temp.params,q=0;for(;s<r;s++){o=u[s];p=j[s];v=o.length;for(t=0;t<v;t++){a[q++]=p[t]*i+o[t]}}return j.temp}},data:{compute:function(o,n,i,p){var a=o.length-1,t=n.length-1,q=Math.max(a,t),r,f,s;if(!p||p===o){p=[]}p.length=q+1;for(s=0;s<=q;s++){r=o[Math.min(s,a)];f=n[Math.min(s,t)];if(Ext.isNumber(r)){if(!Ext.isNumber(f)){f=0}p[s]=(f-r)*i+r}else{p[s]=f}}return p}},text:{compute:function(e,f,a){return e.substr(0,Math.round(e.length*(1-a)))+f.substr(Math.round(f.length*(1-a)))}},limited:"number",limited01:"number"}},0,0,0,0,0,0,[Ext.draw.sprite,"AnimationParser"],0));(function(){if(!Ext.global.Float32Array){var b=function(e){if(typeof e==="number"){this.length=e}else{if("length" in e){this.length=e.length;for(var f=0,a=e.length;f<a;f++){this[f]=+e[f]}}}};b.prototype=[];Ext.global.Float32Array=b}})();(Ext.cmd.derive("Ext.draw.Draw",Ext.Base,{singleton:true,radian:Math.PI/180,pi2:Math.PI*2,reflectFn:function(a){return a},rad:function(b){return(b%360)*this.radian},degrees:function(b){return(b/this.radian)%360},isBBoxIntersect:function(d,e,f){f=f||0;return(Math.max(d.x,e.x)-f>Math.min(d.x+d.width,e.x+e.width))||(Math.max(d.y,e.y)-f>Math.min(d.y+d.height,e.y+e.height))},isPointInBBox:function(e,f,d){return !!d&&e>=d.x&&e<=(d.x+d.width)&&f>=d.y&&f<=(d.y+d.height)},spline:function(i){var s,t,o=i.length,u,p,j,r,v=0,q=new Float32Array(i.length),d=new Float32Array(i.length*3-2);q[0]=0;q[o-1]=0;for(s=1;s<o-1;s++){q[s]=(i[s+1]+i[s-1]-2*i[s])-q[s-1];v=1/(4-v);q[s]*=v}for(s=o-2;s>0;s--){v=3.732050807568877+48.248711305964385/(-13.928203230275537+Math.pow(0.07179676972449123,s));q[s]-=q[s+1]*v}r=i[0];u=r-q[0];for(s=0,t=0;s<o-1;t+=3){j=r;p=u;s++;r=i[s];u=r-q[s];d[t]=j;d[t+1]=(u+2*p)/3;d[t+2]=(u*2+p)/3}d[t]=r;return d},getAnchors:function(N,O,J,K,y,z,D){D=D||4;var E=Math.PI,C=E/2,H=Math.abs,R=Math.sin,Q=Math.cos,M=Math.atan,A,B,L,I,F,G,w,x,P;A=(J-N)/D;B=(y-J)/D;if((K>=O&&K>=z)||(K<=O&&K<=z)){L=I=C}else{L=M((J-N)/H(K-O));if(O<K){L=E-L}I=M((y-J)/H(K-z));if(z<K){I=E-I}}P=C-((L+I)%(E*2))/2;if(P>C){P-=E}L+=P;I+=P;F=J-A*R(L);G=K+A*Q(L);w=J+B*R(I);x=K+B*Q(I);if((K>O&&G<O)||(K<O&&G>O)){F+=H(O-G)*(F-J)/(G-K);G=O}if((K>z&&x<z)||(K<z&&x>z)){w-=H(z-x)*(w-J)/(x-K);x=z}return{x1:F,y1:G,x2:w,y2:x}},smooth:function(v,x,s){var w=v.length,y,z,D,E,i,r,t,u,A=[],B=[],C,F;for(C=0;C<w-1;C++){y=v[C];z=x[C];if(C===0){t=y;u=z;A.push(t);B.push(u);if(w===1){break}}D=v[C+1];E=x[C+1];i=v[C+2];r=x[C+2];if(!Ext.isNumber(i+r)){A.push(t,D,D);B.push(u,E,E);break}F=this.getAnchors(y,z,D,E,i,r,s);A.push(t,F.x1,D);B.push(u,F.y1,E);t=F.x2;u=F.y2}return{smoothX:A,smoothY:B}},beginUpdateIOS:Ext.os.is.iOS?function(){this.iosUpdateEl=Ext.getBody().createChild({style:"position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; background: rgba(0,0,0,0.001); z-index: 100000"})}:Ext.emptyFn,endUpdateIOS:function(){this.iosUpdateEl=Ext.destroy(this.iosUpdateEl)}},0,0,0,0,0,0,[Ext.draw,"Draw"],0));(Ext.cmd.derive("Ext.draw.gradient.Gradient",Ext.Base,{isGradient:true,config:{stops:[]},applyStops:function(i){var j=[],k=i.length,l,g,h;for(l=0;l<k;l++){g=i[l];h=g.color;if(!(h&&h.isColor)){h=Ext.draw.Color.fly(h||Ext.draw.Color.NONE)}j.push({offset:Math.min(1,Math.max(0,"offset" in g?g.offset:g.position||0)),color:h.toString()})}j.sort(function(a,b){return a.offset-b.offset});return j},onClassExtended:function(d,c){if(!c.alias&&c.type){c.alias="gradient."+c.type}},constructor:function(b){this.initConfig(b)},generateGradient:Ext.emptyFn},1,0,0,0,0,0,[Ext.draw.gradient,"Gradient"],0));(Ext.cmd.derive("Ext.draw.gradient.GradientDefinition",Ext.Base,{singleton:true,urlStringRe:/^url\(#([\w\-]+)\)$/,gradients:{},add:function(g){var f=this.gradients,j,h,i;for(j=0,h=g.length;j<h;j++){i=g[j];if(Ext.isString(i.id)){f[i.id]=i}}},get:function(g){var f=this.gradients,e=g.match(this.urlStringRe),h;if(e&&e[1]&&(h=f[e[1]])){return h||g}return g}},0,0,0,0,0,0,[Ext.draw.gradient,"GradientDefinition"],0));(Ext.cmd.derive("Ext.draw.sprite.AttributeParser",Ext.Base,{singleton:true,attributeRe:/^url\(#([a-zA-Z\-]+)\)$/,"default":Ext.identityFn,string:function(b){return String(b)},number:function(b){if(Ext.isNumber(+b)){return b}},angle:function(b){if(Ext.isNumber(b)){b%=Math.PI*2;if(b<-Math.PI){b+=Math.PI*2}else{if(b>=Math.PI){b-=Math.PI*2}}return b}},data:function(b){if(Ext.isArray(b)){return b.slice()}else{if(b instanceof Float32Array){return new Float32Array(b)}}},bool:function(b){return !!b},color:function(b){if(b instanceof Ext.draw.Color){return b.toString()}else{if(b instanceof Ext.draw.gradient.Gradient){return b}else{if(!b){return Ext.draw.Color.NONE}else{if(Ext.isString(b)){if(b.substr(0,3)==="url"){b=Ext.draw.gradient.GradientDefinition.get(b);if(Ext.isString(b)){return b}}else{return Ext.draw.Color.fly(b).toString()}}}}}if(b.type==="linear"){return Ext.create("Ext.draw.gradient.Linear",b)}else{if(b.type==="radial"){return Ext.create("Ext.draw.gradient.Radial",b)}else{if(b.type==="pattern"){return Ext.create("Ext.draw.gradient.Pattern",b)}else{return Ext.draw.Color.NONE}}}},limited:function(d,c){return function(a){a=+a;return Ext.isNumber(a)?Math.min(Math.max(a,d),c):undefined}},limited01:function(b){b=+b;return Ext.isNumber(b)?Math.min(Math.max(b,0),1):undefined},enums:function(){var g={},f=Array.prototype.slice.call(arguments,0),e,h;for(e=0,h=f.length;e<h;e++){g[f[e]]=true}return function(a){return a in g?a:undefined}}},0,0,0,0,0,0,[Ext.draw.sprite,"AttributeParser"],0));(Ext.cmd.derive("Ext.draw.sprite.AttributeDefinition",Ext.Base,{config:{defaults:{$value:{},lazy:true},aliases:{},animationProcessors:{},processors:{$value:{},lazy:true},dirtyTriggers:{},triggers:{},updaters:{}},inheritableStatics:{processorFactoryRe:/^(\w+)\(([\w\-,]*)\)$/},spriteClass:null,constructor:function(d){var c=this;c.initConfig(d)},applyDefaults:function(c,d){d=Ext.apply(d||{},this.normalize(c));return d},applyAliases:function(c,d){return Ext.apply(d||{},c)},applyProcessors:function(p,l){this.getAnimationProcessors();var k=l||{},m=Ext.draw.sprite.AttributeParser,t=this.self.processorFactoryRe,n={},q,s,r,o;for(s in p){o=p[s];if(typeof o==="string"){r=o.match(t);if(r){o=m[r[1]].apply(m,r[2].split(","))}else{if(m[o]){n[s]=o;q=true;o=m[o]}}}k[s]=o}if(q){this.setAnimationProcessors(n)}return k},applyAnimationProcessors:function(j,g){var h=Ext.draw.sprite.AnimationParser,f,i;if(!g){g={}}for(f in j){i=j[f];if(i==="none"){g[f]=null}else{if(Ext.isString(i)&&!(f in g)){if(i in h){while(Ext.isString(h[i])){i=h[i]}g[f]=h[i]}}else{if(Ext.isObject(i)){g[f]=i}}}}return g},updateDirtyTriggers:function(b){this.setTriggers(b)},applyTriggers:function(d,f){if(!f){f={}}for(var e in d){f[e]=d[e].split(",")}return f},applyUpdaters:function(c,d){return Ext.apply(d||{},c)},batchedNormalize:function(y,r){if(!y){return{}}var v=this.getProcessors(),A=this.getAliases(),D=y.translation||y.translate,q={},x,w,C,z,i,B,s,t,u;if("rotation" in y){i=y.rotation}else{i=("rotate" in y)?y.rotate:undefined}if("scaling" in y){B=y.scaling}else{B=("scale" in y)?y.scale:undefined}if(typeof B!=="undefined"){if(Ext.isNumber(B)){q.scalingX=B;q.scalingY=B}else{if("x" in B){q.scalingX=B.x}if("y" in B){q.scalingY=B.y}if("centerX" in B){q.scalingCenterX=B.centerX}if("centerY" in B){q.scalingCenterY=B.centerY}}}if(typeof i!=="undefined"){if(Ext.isNumber(i)){i=Ext.draw.Draw.rad(i);q.rotationRads=i}else{if("rads" in i){q.rotationRads=i.rads}else{if("degrees" in i){if(Ext.isArray(i.degrees)){q.rotationRads=Ext.Array.map(i.degrees,function(a){return Ext.draw.Draw.rad(a)})}else{q.rotationRads=Ext.draw.Draw.rad(i.degrees)}}}if("centerX" in i){q.rotationCenterX=i.centerX}if("centerY" in i){q.rotationCenterY=i.centerY}}}if(typeof D!=="undefined"){if("x" in D){q.translationX=D.x}if("y" in D){q.translationY=D.y}}if("matrix" in y){s=Ext.draw.Matrix.create(y.matrix);u=s.split();q.matrix=s;q.rotationRads=u.rotation;q.rotationCenterX=0;q.rotationCenterY=0;q.scalingX=u.scaleX;q.scalingY=u.scaleY;q.scalingCenterX=0;q.scalingCenterY=0;q.translationX=u.translateX;q.translationY=u.translateY}for(C in y){z=y[C];if(typeof z==="undefined"){continue}else{if(Ext.isArray(z)){if(C in A){C=A[C]}if(C in v){q[C]=[];for(x=0,w=z.length;x<w;x++){t=v[C].call(this,z[x]);if(typeof t!=="undefined"){q[C][x]=t}}}else{if(r){q[C]=z}}}else{if(C in A){C=A[C]}if(C in v){z=v[C].call(this,z);if(typeof z!=="undefined"){q[C]=z}}else{if(r){q[C]=z}}}}}return q},normalize:function(p,o){if(!p){return{}}var s=this.getProcessors(),u=this.getAliases(),x=p.translation||p.translate,n={},w,t,m,v,q,r;if("rotation" in p){m=p.rotation}else{m=("rotate" in p)?p.rotate:undefined}if("scaling" in p){v=p.scaling}else{v=("scale" in p)?p.scale:undefined}if(x){if("x" in x){n.translationX=x.x}if("y" in x){n.translationY=x.y}}if(typeof v!=="undefined"){if(Ext.isNumber(v)){n.scalingX=v;n.scalingY=v}else{if("x" in v){n.scalingX=v.x}if("y" in v){n.scalingY=v.y}if("centerX" in v){n.scalingCenterX=v.centerX}if("centerY" in v){n.scalingCenterY=v.centerY}}}if(typeof m!=="undefined"){if(Ext.isNumber(m)){m=Ext.draw.Draw.rad(m);n.rotationRads=m}else{if("rads" in m){n.rotationRads=m.rads}else{if("degrees" in m){n.rotationRads=Ext.draw.Draw.rad(m.degrees)}}if("centerX" in m){n.rotationCenterX=m.centerX}if("centerY" in m){n.rotationCenterY=m.centerY}}}if("matrix" in p){q=Ext.draw.Matrix.create(p.matrix);r=q.split();n.matrix=q;n.rotationRads=r.rotation;n.rotationCenterX=0;n.rotationCenterY=0;n.scalingX=r.scaleX;n.scalingY=r.scaleY;n.scalingCenterX=0;n.scalingCenterY=0;n.translationX=r.translateX;n.translationY=r.translateY}for(w in p){t=p[w];if(typeof t==="undefined"){continue}if(w in u){w=u[w]}if(w in s){t=s[w].call(this,t);if(typeof t!=="undefined"){n[w]=t}}else{if(o){n[w]=t}}}return n},setBypassingNormalization:function(e,f,d){return f.pushDown(e,d)},set:function(e,f,d){d=this.normalize(d);return this.setBypassingNormalization(e,f,d)}},1,0,0,0,0,0,[Ext.draw.sprite,"AttributeDefinition"],0));(Ext.cmd.derive("Ext.draw.Matrix",Ext.Base,{isMatrix:true,statics:{createAffineMatrixFromTwoPair:function(A,G,B,H,x,c,z,y){var E=B-A,F=H-G,C=z-x,a=y-c,D=1/(E*E+F*F),b=E*C+F*a,f=C*F-E*a,r=-b*A-f*G,w=f*A-b*G;return new this(b*D,-f*D,f*D,b*D,r*D+x,w*D+c)},createPanZoomFromTwoPair:function(v,H,w,J,E,u,y,F){if(arguments.length===2){return this.createPanZoomFromTwoPair.apply(this,v.concat(H))}var B=w-v,C=J-H,I=(v+w)*0.5,K=(H+J)*0.5,x=y-E,L=F-u,G=(E+y)*0.5,A=(u+F)*0.5,z=B*B+C*C,D=x*x+L*L,r=Math.sqrt(D/z);return new this(r,0,0,r,G-r*I,A-r*K)},fly:(function(){var d=null,c=function(a){d.elements=a;return d};return function(a){if(!d){d=new Ext.draw.Matrix()}d.elements=a;Ext.draw.Matrix.fly=c;return d}})(),create:function(b){if(b instanceof this){return b}return new this(b)}},constructor:function(j,k,h,i,l,g){if(j&&j.length===6){this.elements=j.slice()}else{if(j!==undefined){this.elements=[j,k,h,i,l,g]}else{this.elements=[1,0,0,1,0,0]}}},prepend:function(z,o,s,t,n,p){var y=this.elements,w=y[0],q=y[1],v=y[2],x=y[3],r=y[4],u=y[5];y[0]=z*w+s*q;y[1]=o*w+t*q;y[2]=z*v+s*x;y[3]=o*v+t*x;y[4]=z*r+s*u+n;y[5]=o*r+t*u+p;return this},prependMatrix:function(b){return this.prepend.apply(this,b.elements)},append:function(z,o,s,t,n,p){var y=this.elements,w=y[0],q=y[1],v=y[2],x=y[3],r=y[4],u=y[5];y[0]=z*w+o*v;y[1]=z*q+o*x;y[2]=s*w+t*v;y[3]=s*q+t*x;y[4]=n*w+p*v+r;y[5]=n*q+p*x+u;return this},appendMatrix:function(b){return this.append.apply(this,b.elements)},set:function(k,l,i,j,n,h){var m=this.elements;m[0]=k;m[1]=l;m[2]=i;m[3]=j;m[4]=n;m[5]=h;return this},inverse:function(p){var r=this.elements,a=r[0],c=r[1],d=r[2],e=r[3],f=r[4],q=r[5],b=1/(a*e-c*d);a*=b;c*=b;d*=b;e*=b;if(p){p.set(e,-c,-d,a,d*q-e*f,c*f-a*q);return p}else{return new Ext.draw.Matrix(e,-c,-d,a,d*q-e*f,c*f-a*q)}},translate:function(e,f,d){if(d){return this.prepend(1,0,0,1,e,f)}else{return this.append(1,0,0,1,e,f)}},scale:function(i,j,l,h,g){var k=this;if(j==null){j=i}if(l===undefined){l=0}if(h===undefined){h=0}if(g){return k.prepend(i,0,0,j,l-l*i,h-h*j)}else{return k.append(i,0,0,j,l-l*i,h-h*j)}},rotate:function(j,l,n,h){var m=this,k=Math.cos(j),i=Math.sin(j);l=l||0;n=n||0;if(h){return m.prepend(k,i,-i,k,l-k*l+n*i,n-k*n-l*i)}else{return m.append(k,i,-i,k,l-k*l+n*i,n-k*n-l*i)}},rotateFromVector:function(i,j,n){var m=this,k=Math.sqrt(i*i+j*j),l=i/k,d=j/k;if(n){return m.prepend(l,d,-d,l,0,0)}else{return m.append(l,d,-d,l,0,0)}},clone:function(){return new Ext.draw.Matrix(this.elements)},flipX:function(){return this.append(-1,0,0,1,0,0)},flipY:function(){return this.append(1,0,0,-1,0,0)},skewX:function(b){return this.append(1,0,Math.tan(b),1,0,0)},skewY:function(b){return this.append(1,Math.tan(b),0,1,0,0)},shearX:function(b){return this.append(1,0,b,1,0,0)},shearY:function(b){return this.append(1,b,0,1,0,0)},reset:function(){return this.set(1,0,0,1,0,0)},precisionCompensate:function(k,n){var r=this.elements,o=r[0],p=r[1],l=r[2],m=r[3],q=r[4],s=r[5],t=p*l-o*m;n.b=k*p/o;n.c=k*l/m;n.d=k;n.xx=o/k;n.yy=m/k;n.dx=(s*o*l-q*o*m)/t/k;n.dy=(q*p*m-s*o*m)/t/k},precisionCompensateRect:function(k,n){var s=this.elements,o=s[0],p=s[1],l=s[2],m=s[3],r=s[4],t=s[5],q=l/o;n.b=k*p/o;n.c=k*q;n.d=k*m/o;n.xx=o/k;n.yy=o/k;n.dx=(t*l-r*m)/(p*q-m)/k;n.dy=-(t*o-r*p)/(p*q-m)/k},x:function(e,f){var d=this.elements;return e*d[0]+f*d[2]+d[4]},y:function(e,f){var d=this.elements;return e*d[1]+f*d[3]+d[5]},get:function(c,d){return +this.elements[c+d*2].toFixed(4)},transformPoint:function(e){var h=this.elements,f,g;if(e.isPoint){f=e.x;g=e.y}else{f=e[0];g=e[1]}return[f*h[0]+g*h[2]+h[4],f*h[1]+g*h[3]+h[5]]},transformBBox:function(l,z,y){var F=this.elements,D=l.x,h=l.y,A=l.width*0.5,u=l.height*0.5,G=F[0],H=F[1],v=F[2],x=F[3],C=D+A,E=h+u,t,B,w;if(z){A-=z;u-=z;w=[Math.sqrt(F[0]*F[0]+F[2]*F[2]),Math.sqrt(F[1]*F[1]+F[3]*F[3])];t=Math.abs(A*G)+Math.abs(u*v)+Math.abs(w[0]*z);B=Math.abs(A*H)+Math.abs(u*x)+Math.abs(w[1]*z)}else{t=Math.abs(A*G)+Math.abs(u*v);B=Math.abs(A*H)+Math.abs(u*x)}if(!y){y={}}y.x=C*G+E*v+F[4]-t;y.y=C*H+E*x+F[5]-B;y.width=t+t;y.height=B+B;return y},transformList:function(r){var u=this.elements,v=u[0],o=u[2],i=u[4],m=u[1],p=u[3],n=u[5],q=r.length,t,s;for(s=0;s<q;s++){t=r[s];r[s]=[t[0]*v+t[1]*o+i,t[0]*m+t[1]*p+n]}return r},isIdentity:function(){var b=this.elements;return b[0]===1&&b[1]===0&&b[2]===0&&b[3]===1&&b[4]===0&&b[5]===0},isEqual:function(e){var f=e&&e.isMatrix?e.elements:e,d=this.elements;return d[0]===f[0]&&d[1]===f[1]&&d[2]===f[2]&&d[3]===f[3]&&d[4]===f[4]&&d[5]===f[5]},equals:function(b){return this.isEqual(b)},toArray:function(){var b=this.elements;return[b[0],b[2],b[4],b[1],b[3],b[5]]},toVerticalArray:function(){return this.elements.slice()},toString:function(){var b=this;return[b.get(0,0),b.get(0,1),b.get(1,0),b.get(1,1),b.get(2,0),b.get(2,1)].join(",")},toContext:function(b){b.transform.apply(b,this.elements);return this},toSvg:function(){var b=this.elements;return"matrix("+b[0].toFixed(9)+","+b[1].toFixed(9)+","+b[2].toFixed(9)+","+b[3].toFixed(9)+","+b[4].toFixed(9)+","+b[5].toFixed(9)+")"},getScaleX:function(){var b=this.elements;return Math.sqrt(b[0]*b[0]+b[2]*b[2])},getScaleY:function(){var b=this.elements;return Math.sqrt(b[1]*b[1]+b[3]*b[3])},getXX:function(){return this.elements[0]},getXY:function(){return this.elements[1]},getYX:function(){return this.elements[2]},getYY:function(){return this.elements[3]},getDX:function(){return this.elements[4]},getDY:function(){return this.elements[5]},split:function(){var f=this.elements,i=f[0],j=f[1],h=f[3],g={translateX:f[4],translateY:f[5]};g.rotate=g.rotation=Math.atan2(j,i);g.scaleX=i/Math.cos(g.rotate);g.scaleY=h/i*g.scaleX;return g}},3,0,0,0,0,0,[Ext.draw,"Matrix"],function(){function c(a,f,b){a[f]={get:function(){return this.elements[b]},set:function(e){this.elements[b]=e}}}if(Object.defineProperties){var d={};c(d,"a",0);c(d,"b",1);c(d,"c",2);c(d,"d",3);c(d,"e",4);c(d,"f",5);Object.defineProperties(this.prototype,d)}this.prototype.multiply=this.prototype.appendMatrix}));(Ext.cmd.derive("Ext.draw.modifier.Modifier",Ext.Base,{config:{previous:null,next:null,sprite:null},constructor:function(b){this.mixins.observable.constructor.call(this,b)},updateNext:function(b){if(b){b.setPrevious(this)}},updatePrevious:function(b){if(b){b.setNext(this)}},prepareAttributes:function(b){if(this._previous){this._previous.prepareAttributes(b)}},popUp:function(d,c){if(this._next){this._next.popUp(d,c)}else{Ext.apply(d,c)}},pushDown:function(e,f){if(this._previous){return this._previous.pushDown(e,f)}else{for(var d in f){if(f[d]===e[d]){delete f[d]}}return f}}},1,0,0,0,0,[["observable",Ext.mixin.Observable]],[Ext.draw.modifier,"Modifier"],0));(Ext.cmd.derive("Ext.draw.modifier.Target",Ext.draw.modifier.Modifier,{statics:{uniqueId:0},prepareAttributes:function(d){var c=this.getPrevious();if(c){c.prepareAttributes(d)}d.attributeId="attribute-"+Ext.draw.modifier.Target.uniqueId++;if(!d.hasOwnProperty("canvasAttributes")){d.bbox={plain:{dirty:true},transform:{dirty:true}};d.dirty=true;d.pendingUpdaters={};d.canvasAttributes={};d.matrix=new Ext.draw.Matrix();d.inverseMatrix=new Ext.draw.Matrix()}},applyChanges:function(w,t){Ext.apply(w,t);var s=this.getSprite(),j=w.pendingUpdaters,u=s.self.def.getTriggers(),i,B,r,A,x,q,y,z,v;for(A in t){x=true;if((i=u[A])){s.scheduleUpdaters(w,i,[A])}if(w.template&&t.removeFromInstance&&t.removeFromInstance[A]){delete w[A]}}if(!x){return}if(j.canvas){q=j.canvas;delete j.canvas;for(y=0,v=q.length;y<v;y++){A=q[y];w.canvasAttributes[A]=w[A]}}if(w.hasOwnProperty("children")){B=w.children;for(y=0,v=B.length;y<v;y++){r=B[y];Ext.apply(r.pendingUpdaters,j);if(q){for(z=0;z<q.length;z++){A=q[z];r.canvasAttributes[A]=r[A]}}s.callUpdaters(r)}}s.setDirty(true);s.callUpdaters(w)},popUp:function(d,c){this.applyChanges(d,c)},pushDown:function(e,d){var f=this.getPrevious();if(f){d=f.pushDown(e,d)}this.applyChanges(e,d);return d}},0,0,0,0,["modifier.target"],0,[Ext.draw.modifier,"Target"],0));(Ext.cmd.derive("Ext.draw.TimingFunctions",Ext.Base,function(){var t=Math.pow,r=Math.sin,o=Math.cos,p=Math.sqrt,v=Math.PI,y=["quad","cube","quart","quint"],x={pow:function(b,a){return t(b,a||6)},expo:function(a){return t(2,8*(a-1))},circ:function(a){return 1-p(1-a*a)},sine:function(a){return 1-r((1-a)*v/2)},back:function(a,b){b=b||1.616;return a*a*((b+1)*a-b)},bounce:function(b){for(var c=0,a=1;1;c+=a,a/=2){if(b>=(7-4*c)/11){return a*a-t((11-6*c-11*b)/4,2)}}},elastic:function(b,a){return t(2,10*--b)*o(20*b*v*(a||1)/3)}},q={},z,u,w;function s(a){return function(b){return t(b,a)}}function i(a,b){q[a+"In"]=function(c){return b(c)};q[a+"Out"]=function(c){return 1-b(1-c)};q[a+"InOut"]=function(c){return(c<=0.5)?b(2*c)/2:(2-b(2*(1-c)))/2}}for(w=0,u=y.length;w<u;++w){x[y[w]]=s(w+2)}for(z in x){i(z,x[z])}q.linear=Ext.identityFn;q.easeIn=q.quadIn;q.easeOut=q.quadOut;q.easeInOut=q.quadInOut;return{singleton:true,easingMap:q}},0,0,0,0,0,0,[Ext.draw,"TimingFunctions"],function(b){Ext.apply(b,b.easingMap)}));(Ext.cmd.derive("Ext.draw.Animator",Ext.Base,{singleton:true,frameCallbacks:{},frameCallbackId:0,scheduled:0,frameStartTimeOffset:Ext.now(),animations:[],running:false,animationTime:function(){return Ext.AnimationQueue.frameStartTime-this.frameStartTimeOffset},add:function(c){var d=this;if(!d.contains(c)){d.animations.push(c);d.ignite();if("fireEvent" in c){c.fireEvent("animationstart",c)}}},remove:function(i){var j=this,h=j.animations,f=0,g=h.length;for(;f<g;++f){if(h[f]===i){h.splice(f,1);if("fireEvent" in i){i.fireEvent("animationend",i)}return}}},contains:function(b){return Ext.Array.indexOf(this.animations,b)>-1},empty:function(){return this.animations.length===0},step:function(k){var l=this,i=l.animations,j,h=0,g=i.length;for(;h<g;h++){j=i[h];j.step(k);if(!j.animating){i.splice(h,1);h--;g--;if(j.fireEvent){j.fireEvent("animationend",j)}}}},schedule:function(f,e){e=e||this;var d="frameCallback"+(this.frameCallbackId++);if(Ext.isString(f)){f=e[f]}Ext.draw.Animator.frameCallbacks[d]={fn:f,scope:e,once:true};this.scheduled++;Ext.draw.Animator.ignite();return d},scheduleIf:function(h,f){f=f||this;var j=Ext.draw.Animator.frameCallbacks,g,i;if(Ext.isString(h)){h=f[h]}for(i in j){g=j[i];if(g.once&&g.fn===h&&g.scope===f){return null}}return this.schedule(h,f)},cancel:function(b){if(Ext.draw.Animator.frameCallbacks[b]&&Ext.draw.Animator.frameCallbacks[b].once){this.scheduled--;delete Ext.draw.Animator.frameCallbacks[b]}},addFrameCallback:function(f,e){e=e||this;if(Ext.isString(f)){f=e[f]}var d="frameCallback"+(this.frameCallbackId++);Ext.draw.Animator.frameCallbacks[d]={fn:f,scope:e};return d},removeFrameCallback:function(b){delete Ext.draw.Animator.frameCallbacks[b]},fireFrameCallbacks:function(){var h=this.frameCallbacks,g,e,f;for(g in h){f=h[g];e=f.fn;if(Ext.isString(e)){e=f.scope[e]}e.call(f.scope);if(h[g]&&f.once){this.scheduled--;delete h[g]}}},handleFrame:function(){this.step(this.animationTime());this.fireFrameCallbacks();if(!this.scheduled&&this.empty()){Ext.AnimationQueue.stop(this.handleFrame,this);this.running=false;Ext.draw.Draw.endUpdateIOS()}},ignite:function(){if(!this.running){this.running=true;Ext.AnimationQueue.start(this.handleFrame,this);Ext.draw.Draw.beginUpdateIOS()}}},0,0,0,0,0,0,[Ext.draw,"Animator"],0));(Ext.cmd.derive("Ext.draw.modifier.Animation",Ext.draw.modifier.Modifier,{config:{easing:Ext.identityFn,duration:0,customEasings:{},customDurations:{},customDuration:null},constructor:function(d){var c=this;c.anyAnimation=c.anySpecialAnimations=false;c.animating=0;c.animatingPool=[];Ext.draw.modifier.Modifier.prototype.constructor.call(this,d)},prepareAttributes:function(b){if(!b.hasOwnProperty("timers")){b.animating=false;b.timers={};b.animationOriginal=Ext.Object.chain(b);b.animationOriginal.prototype=b}if(this._previous){this._previous.prepareAttributes(b.animationOriginal)}},updateSprite:function(b){this.setConfig(b.config.fx)},updateDuration:function(b){this.anyAnimation=b>0},applyEasing:function(b){if(typeof b==="string"){b=Ext.draw.TimingFunctions.easingMap[b]}return b},applyCustomEasings:function(j,n){n=n||{};var l,o,i,k,p,m;for(o in j){l=true;k=j[o];i=o.split(",");if(typeof k==="string"){k=Ext.draw.TimingFunctions.easingMap[k]}for(p=0,m=i.length;p<m;p++){n[i[p]]=k}}if(l){this.anySpecialAnimations=l}return n},setEasingOn:function(g,h){g=Ext.Array.from(g).slice();var j={},i=g.length,f=0;for(;f<i;f++){j[g[f]]=h}this.setCustomEasings(j)},clearEasingOn:function(e){e=Ext.Array.from(e,true);var d=0,f=e.length;for(;d<f;d++){delete this._customEasings[e[d]]}},applyCustomDurations:function(l,k){k=k||{};var n,p,m,j,i,o;for(p in l){n=true;m=l[p];j=p.split(",");for(i=0,o=j.length;i<o;i++){k[j[i]]=m}}if(n){this.anySpecialAnimations=n}return k},applyCustomDuration:function(d,c){if(d){this.getCustomDurations();this.setCustomDurations(d)}},setDurationOn:function(f,h){f=Ext.Array.from(f).slice();var g={},j=0,i=f.length;for(;j<i;j++){g[f[j]]=h}this.setCustomDurations(g)},clearDurationOn:function(e){e=Ext.Array.from(e,true);var d=0,f=e.length;for(;d<f;d++){delete this._customDurations[e[d]]}},setAnimating:function(g,f){var h=this,i=h.animatingPool;if(g.animating!==f){g.animating=f;if(f){i.push(g);if(h.animating===0){Ext.draw.Animator.add(h)}h.animating++}else{for(var j=i.length;j--;){if(i[j]===g){i.splice(j,1)}}h.animating=i.length}}},setAttrs:function(y,w){var x=this,D=y.timers,I=x._sprite.self.def._animationProcessors,K=x._easing,L=x._duration,G=x._customDurations,H=x._customEasings,J=x.anySpecialAnimations,C=x.anyAnimation||J,B=y.animationOriginal,M=false,F,v,E,A,N,z,P;if(!C){for(v in w){if(y[v]===w[v]){delete w[v]}else{y[v]=w[v]}delete B[v];delete D[v]}return w}else{for(v in w){E=w[v];A=y[v];if(E!==A&&A!==undefined&&A!==null&&(N=I[v])){z=K;P=L;if(J){if(v in H){z=H[v]}if(v in G){P=G[v]}}if(A&&A.isGradient||E&&E.isGradient){P=0}if(P){if(!D[v]){D[v]={}}F=D[v];F.start=0;F.easing=z;F.duration=P;F.compute=N.compute;F.serve=N.serve||Ext.identityFn;F.remove=w.removeFromInstance&&w.removeFromInstance[v];if(N.parseInitial){var O=N.parseInitial(A,E);F.source=O[0];F.target=O[1]}else{if(N.parse){F.source=N.parse(A);F.target=N.parse(E)}else{F.source=A;F.target=E}}B[v]=E;delete w[v];M=true;continue}else{delete B[v]}}else{delete B[v]}delete D[v]}}if(M&&!y.animating){x.setAnimating(y,true)}return w},updateAttributes:function(l){if(!l.animating){return{}}var k={},n=false,o=l.timers,m=l.animationOriginal,p=Ext.draw.Animator.animationTime(),r,q,j;if(l.lastUpdate===p){return null}for(r in o){q=o[r];if(!q.start){q.start=p;j=0}else{j=(p-q.start)/q.duration}if(j>=1){k[r]=m[r];delete m[r];if(o[r].remove){k.removeFromInstance=k.removeFromInstance||{};k.removeFromInstance[r]=true}delete o[r]}else{k[r]=q.serve(q.compute(q.source,q.target,q.easing(j),l[r]));n=true}}l.lastUpdate=p;this.setAnimating(l,n);return k},pushDown:function(d,c){c=Ext.draw.modifier.Modifier.prototype.pushDown.call(this,d.animationOriginal,c);return this.setAttrs(d,c)},popUp:function(d,c){d=d.prototype;c=this.setAttrs(d,c);if(this._next){return this._next.popUp(d,c)}else{return Ext.apply(d,c)}},step:function(j){var k=this,n=k.animatingPool.slice(),l=n.length,h=0,i,m;for(;h<l;h++){i=n[h];m=k.updateAttributes(i);if(m&&k._next){k._next.popUp(i,m)}}},stop:function(){this.step();var g=this,e=g.animatingPool,f,h;for(f=0,h=e.length;f<h;f++){e[f].animating=false}g.animatingPool.length=0;g.animating=0;Ext.draw.Animator.remove(g)},destroy:function(){this.animatingPool.length=0;this.animating=0;Ext.draw.modifier.Modifier.prototype.destroy.call(this)}},1,0,0,0,["modifier.animation"],0,[Ext.draw.modifier,"Animation"],0));(Ext.cmd.derive("Ext.draw.modifier.Highlight",Ext.draw.modifier.Modifier,{config:{enabled:false,highlightStyle:null},preFx:true,applyHighlightStyle:function(c,d){d=d||{};if(this.getSprite()){Ext.apply(d,this.getSprite().self.def.normalize(c))}else{Ext.apply(d,c)}return d},prepareAttributes:function(b){if(!b.hasOwnProperty("highlightOriginal")){b.highlighted=false;b.highlightOriginal=Ext.Object.chain(b);b.highlightOriginal.prototype=b;b.highlightOriginal.removeFromInstance={}}if(this._previous){this._previous.prepareAttributes(b.highlightOriginal)}},updateSprite:function(c,d){if(c){if(this.getHighlightStyle()){this._highlightStyle=c.self.def.normalize(this.getHighlightStyle())}this.setHighlightStyle(c.config.highlight)}c.self.def.setConfig({defaults:{highlighted:false},processors:{highlighted:"bool"}});this.setSprite(c)},filterChanges:function(h,k){var j=this,i=h.highlightOriginal,l=j.getHighlightStyle(),g;if(h.highlighted){for(g in k){if(l.hasOwnProperty(g)){i[g]=k[g];delete k[g]}}}for(g in k){if(g!=="highlighted"&&i[g]===k[g]){delete k[g]}}return k},pushDown:function(n,l){var m=this.getHighlightStyle(),p=n.highlightOriginal,j=p.removeFromInstance,o,r,k,q;if(l.hasOwnProperty("highlighted")){o=l.highlighted;delete l.highlighted;if(this._previous){l=this._previous.pushDown(p,l)}l=this.filterChanges(n,l);if(o!==n.highlighted){if(o){for(r in m){if(r in l){p[r]=l[r]}else{k=n.template&&n.template.ownAttr;if(k&&!n.prototype.hasOwnProperty(r)){j[r]=true;p[r]=k.animationOriginal[r]}else{q=p.timers[r];if(q&&q.remove){j[r]=true}p[r]=n[r]}}if(p[r]!==m[r]){l[r]=m[r]}}}else{for(r in m){if(!(r in l)){l[r]=p[r]}delete p[r]}l.removeFromInstance=l.removeFromInstance||{};Ext.apply(l.removeFromInstance,j);p.removeFromInstance={}}l.highlighted=o}}else{if(this._previous){l=this._previous.pushDown(p,l)}l=this.filterChanges(n,l)}return l},popUp:function(d,c){c=this.filterChanges(d,c);Ext.draw.modifier.Modifier.prototype.popUp.call(this,d,c)}},0,0,0,0,["modifier.highlight"],0,[Ext.draw.modifier,"Highlight"],0));(Ext.cmd.derive("Ext.draw.sprite.Sprite",Ext.Base,{isSprite:true,statics:{defaultHitTestOptions:{fill:true,stroke:true}},inheritableStatics:{def:{processors:{strokeStyle:"color",fillStyle:"color",strokeOpacity:"limited01",fillOpacity:"limited01",lineWidth:"number",lineCap:"enums(butt,round,square)",lineJoin:"enums(round,bevel,miter)",lineDash:"data",lineDashOffset:"number",miterLimit:"number",shadowColor:"color",shadowOffsetX:"number",shadowOffsetY:"number",shadowBlur:"number",globalAlpha:"limited01",globalCompositeOperation:"enums(source-over,destination-over,source-in,destination-in,source-out,destination-out,source-atop,destination-atop,lighter,xor,copy)",hidden:"bool",transformFillStroke:"bool",zIndex:"number",translationX:"number",translationY:"number",rotationRads:"number",rotationCenterX:"number",rotationCenterY:"number",scalingX:"number",scalingY:"number",scalingCenterX:"number",scalingCenterY:"number",constrainGradients:"bool"},aliases:{stroke:"strokeStyle",fill:"fillStyle",color:"fillStyle","stroke-width":"lineWidth","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","text-anchor":"textAlign",opacity:"globalAlpha",translateX:"translationX",translateY:"translationY",rotateRads:"rotationRads",rotateCenterX:"rotationCenterX",rotateCenterY:"rotationCenterY",scaleX:"scalingX",scaleY:"scalingY",scaleCenterX:"scalingCenterX",scaleCenterY:"scalingCenterY"},defaults:{hidden:false,zIndex:0,strokeStyle:"none",fillStyle:"none",lineWidth:1,lineDash:[],lineDashOffset:0,lineCap:"butt",lineJoin:"miter",miterLimit:10,shadowColor:"none",shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,globalAlpha:1,strokeOpacity:1,fillOpacity:1,transformFillStroke:false,translationX:0,translationY:0,rotationRads:0,rotationCenterX:null,rotationCenterY:null,scalingX:1,scalingY:1,scalingCenterX:null,scalingCenterY:null,constrainGradients:false},triggers:{zIndex:"zIndex",globalAlpha:"canvas",globalCompositeOperation:"canvas",transformFillStroke:"canvas",strokeStyle:"canvas",fillStyle:"canvas",strokeOpacity:"canvas",fillOpacity:"canvas",lineWidth:"canvas",lineCap:"canvas",lineJoin:"canvas",lineDash:"canvas",lineDashOffset:"canvas",miterLimit:"canvas",shadowColor:"canvas",shadowOffsetX:"canvas",shadowOffsetY:"canvas",shadowBlur:"canvas",translationX:"transform",translationY:"transform",rotationRads:"transform",rotationCenterX:"transform",rotationCenterY:"transform",scalingX:"transform",scalingY:"transform",scalingCenterX:"transform",scalingCenterY:"transform",constrainGradients:"canvas"},updaters:{bbox:"bboxUpdater",zIndex:function(b){b.dirtyZIndex=true},transform:function(b){b.dirtyTransform=true;b.bbox.transform.dirty=true}}}},config:{parent:null,surface:null},onClassExtended:function(i,j){var f=i.superclass.self.def.initialConfig,h=j.inheritableStatics&&j.inheritableStatics.def,g;if(h){g=Ext.Object.merge({},f,h);i.def=new Ext.draw.sprite.AttributeDefinition(g);delete j.inheritableStatics.def}else{i.def=new Ext.draw.sprite.AttributeDefinition(f)}i.def.spriteClass=i},constructor:function(f){var i=this,j=i.self.def,h=j.getDefaults(),g;f=Ext.isObject(f)?f:{};i.id=f.id||Ext.id(null,"ext-sprite-");i.attr={};i.mixins.observable.constructor.apply(i,arguments);g=Ext.Array.from(f.modifiers,true);i.prepareModifiers(g);i.initializeAttributes();i.setAttributes(h,true);i.setAttributes(f)},getDirty:function(){return this.attr.dirty},setDirty:function(c){this.attr.dirty=c;if(c){var d=this.getParent();if(d){d.setDirty(true)}}},addModifier:function(e,d){var f=this;if(!(e instanceof Ext.draw.modifier.Modifier)){e=Ext.factory(e,null,null,"modifier")}e.setSprite(f);if(e.preFx||e.config&&e.config.preFx){if(f.fx.getPrevious()){f.fx.getPrevious().setNext(e)}e.setNext(f.fx)}else{f.topModifier.getPrevious().setNext(e);e.setNext(f.topModifier)}if(d){f.initializeAttributes()}return e},prepareModifiers:function(g){var h=this,f,e;h.topModifier=new Ext.draw.modifier.Target({sprite:h});h.fx=new Ext.draw.modifier.Animation({sprite:h});h.fx.setNext(h.topModifier);for(f=0,e=g.length;f<e;f++){h.addModifier(g[f],false)}},getAnimation:function(){return this.fx},setAnimation:function(b){this.fx.setConfig(b)},initializeAttributes:function(){this.topModifier.prepareAttributes(this.attr)},callUpdaters:function(o){var n=this,k=o.pendingUpdaters,j=n.self.def.getUpdaters(),p=false,r=false,q,l,m;n.callUpdaters=Ext.emptyFn;do{p=false;for(l in k){p=true;q=k[l];delete k[l];m=j[l];if(typeof m==="string"){m=n[m]}if(m){m.call(n,o,q)}}r=r||p}while(p);delete n.callUpdaters;if(r){n.setDirty(true)}},scheduleUpdaters:function(h,j,l){var i;if(l){for(var g=0,k=j.length;g<k;g++){i=j[g];this.scheduleUpdater(h,i,l)}}else{for(i in j){l=j[i];this.scheduleUpdater(h,i,l)}}},scheduleUpdater:function(f,h,e){e=e||[];var g=f.pendingUpdaters;if(h in g){if(e.length){g[h]=Ext.Array.merge(g[h],e)}}else{g[h]=e}},setAttributes:function(m,j,n){var i=this.attr,h,l,k;if(j){if(n){this.topModifier.pushDown(i,m)}else{k={};for(h in m){l=m[h];if(l!==i[h]){k[h]=l}}this.topModifier.pushDown(i,k)}}else{this.topModifier.pushDown(i,this.self.def.normalize(m))}},setAttributesBypassingNormalization:function(c,d){return this.setAttributes(c,true,d)},bboxUpdater:function(f){var j=f.rotationRads!==0,g=f.scalingX!==1||f.scalingY!==1,i=f.rotationCenterX===null||f.rotationCenterY===null,h=f.scalingCenterX===null||f.scalingCenterY===null;f.bbox.plain.dirty=true;f.bbox.transform.dirty=true;if(j&&i||g&&h){this.scheduleUpdater(f,"transform")}},getBBox:function(k){var j=this,h=j.attr,i=h.bbox,l=i.plain,g=i.transform;if(l.dirty){j.updatePlainBBox(l);l.dirty=false}if(!k){j.applyTransformations();if(g.dirty){j.updateTransformedBBox(g,l);g.dirty=false}return g}return l},updatePlainBBox:Ext.emptyFn,updateTransformedBBox:function(d,c){this.attr.matrix.transformBBox(c,0,d)},getBBoxCenter:function(d){var c=this.getBBox(d);if(c){return[c.x+c.width*0.5,c.y+c.height*0.5]}else{return[0,0]}},hide:function(){this.attr.hidden=true;this.setDirty(true);return this},show:function(){this.attr.hidden=false;this.setDirty(true);return this},useAttributes:function(j,m){this.applyTransformations();var o=this.attr,k=o.canvasAttributes,n=k.strokeStyle,l=k.fillStyle,q=k.lineDash,p=k.lineDashOffset,r;if(n){if(n.isGradient){j.strokeStyle="black";j.strokeGradient=n}else{j.strokeGradient=false}}if(l){if(l.isGradient){j.fillStyle="black";j.fillGradient=l}else{j.fillGradient=false}}if(q){j.setLineDash(q)}if(Ext.isNumber(p+j.lineDashOffset)){j.lineDashOffset=p}for(r in k){if(k[r]!==undefined&&k[r]!==j[r]){j[r]=k[r]}}this.setGradientBBox(j,m)},setGradientBBox:function(d,f){var e=this.attr;if(e.constrainGradients){d.setGradientBBox({x:f[0],y:f[1],width:f[2],height:f[3]})}else{d.setGradientBBox(this.getBBox(e.transformFillStroke))}},applyTransformations:function(K){if(!K&&!this.attr.dirtyTransform){return}var u=this,B=u.attr,w=u.getBBoxCenter(true),F=w[0],G=w[1],v=B.translationX,x=B.translationY,C=B.scalingX,D=B.scalingY===null?B.scalingX:B.scalingY,z=B.scalingCenterX===null?F:B.scalingCenterX,A=B.scalingCenterY===null?G:B.scalingCenterY,t=B.rotationRads,H=B.rotationCenterX===null?F:B.rotationCenterX,I=B.rotationCenterY===null?G:B.rotationCenterY,J=Math.cos(t),L=Math.sin(t),y,E;if(C===1&&D===1){z=0;A=0}if(t===0){H=0;I=0}y=z*(1-C)-H;E=A*(1-D)-I;B.matrix.elements=[J*C,L*C,-L*D,J*D,J*y-L*E+H+v,L*y+J*E+I+x];B.matrix.inverse(B.inverseMatrix);B.dirtyTransform=false;B.bbox.transform.dirty=true},transform:function(f,j){var g=this.attr,h=g.matrix,i;if(f&&f.isMatrix){i=f.elements}else{i=f}h.prepend.apply(h,i.slice());h.inverse(g.inverseMatrix);if(j){this.updateTransformAttributes()}g.dirtyTransform=false;g.bbox.transform.dirty=true;this.setDirty(true);return this},updateTransformAttributes:function(){var d=this.attr,c=d.matrix.split();d.rotationRads=c.rotate;d.rotationCenterX=0;d.rotationCenterY=0;d.scalingX=c.scaleX;d.scalingY=c.scaleY;d.scalingCenterX=0;d.scalingCenterY=0;d.translationX=c.translateX;d.translationY=c.translateY},resetTransform:function(c){var d=this.attr;d.matrix.reset();d.inverseMatrix.reset();if(!c){this.updateTransformAttributes()}d.dirtyTransform=false;d.bbox.transform.dirty=true;this.setDirty(true);return this},setTransform:function(d,c){this.resetTransform(true);this.transform.call(this,d,c);return this},preRender:Ext.emptyFn,render:Ext.emptyFn,hitTest:function(g,l){if(this.isVisible()){var h=g[0],i=g[1],j=this.getBBox(),k=j&&h>=j.x&&h<=(j.x+j.width)&&i>=j.y&&i<=(j.y+j.height);if(k){return{sprite:this}}}return null},isVisible:function(){var n=this.attr,m=this.getParent(),l=m&&(m.isSurface||m.isVisible()),o=l&&!n.hidden&&n.globalAlpha,q=Ext.draw.Color.NONE,r=Ext.draw.Color.RGBA_NONE,p=n.fillOpacity&&n.fillStyle!==q&&n.fillStyle!==r,j=n.strokeOpacity&&n.strokeStyle!==q&&n.strokeStyle!==r,k=o&&(p||j);return !!k},repaint:function(){var b=this.getSurface();if(b){b.renderFrame()}},remove:function(){var b=this.getSurface();if(b&&b.isSurface){return b.remove(this)}return null},destroy:function(){var d=this,e=d.topModifier,f;while(e){f=e;e=e.getPrevious();f.destroy()}delete d.attr;d.remove();if(d.fireEvent("beforedestroy",d)!==false){d.fireEvent("destroy",d)}d.callParent()}},1,0,0,0,["sprite.sprite"],[["observable",Ext.mixin.Observable]],[Ext.draw.sprite,"Sprite"],function(){this.def=new Ext.draw.sprite.AttributeDefinition(this.def);this.def.spriteClass=this}));(Ext.cmd.derive("Ext.draw.Path",Ext.Base,{statics:{pathRe:/,?([achlmqrstvxz]),?/gi,pathRe2:/-/gi,pathSplitRe:/\s|,/g},svgString:"",constructor:function(d){var c=this;c.commands=[];c.params=[];c.cursor=null;c.startX=0;c.startY=0;if(d){c.fromSvgString(d)}},clear:function(){var b=this;b.params.length=0;b.commands.length=0;b.cursor=null;b.startX=0;b.startY=0;b.dirt()},dirt:function(){this.svgString=""},moveTo:function(e,f){var d=this;if(!d.cursor){d.cursor=[e,f]}d.params.push(e,f);d.commands.push("M");d.startX=e;d.startY=f;d.cursor[0]=e;d.cursor[1]=f;d.dirt()},lineTo:function(e,f){var d=this;if(!d.cursor){d.cursor=[e,f];d.params.push(e,f);d.commands.push("M")}else{d.params.push(e,f);d.commands.push("L")}d.cursor[0]=e;d.cursor[1]=f;d.dirt()},bezierCurveTo:function(n,l,h,m,i,j){var k=this;if(!k.cursor){k.moveTo(n,l)}k.params.push(n,l,h,m,i,j);k.commands.push("C");k.cursor[0]=i;k.cursor[1]=j;k.dirt()},quadraticCurveTo:function(f,h,g,i){var j=this;if(!j.cursor){j.moveTo(f,h)}j.bezierCurveTo((2*f+j.cursor[0])/3,(2*h+j.cursor[1])/3,(2*f+g)/3,(2*h+i)/3,g,i)},closePath:function(){var b=this;if(b.cursor){b.cursor=null;b.commands.push("Z");b.dirt()}},arcTo:function(U,ae,F,ag,aa,ab,J){var M=this;if(ab===undefined){ab=aa}if(J===undefined){J=0}if(!M.cursor){M.moveTo(U,ae);return}if(aa===0||ab===0){M.lineTo(U,ae);return}F-=U;ag-=ae;var R=M.cursor[0]-U,ad=M.cursor[1]-ae,P=F*ad-ag*R,ai,aj,Y,Q,Z,S,H=Math.sqrt(R*R+ad*ad),K=Math.sqrt(F*F+ag*ag),L,af,ah;if(P===0){M.lineTo(U,ae);return}if(ab!==aa){ai=Math.cos(J);aj=Math.sin(J);Y=ai/aa;Q=aj/ab;Z=-aj/aa;S=ai/ab;var O=Y*R+Q*ad;ad=Z*R+S*ad;R=O;O=Y*F+Q*ag;ag=Z*F+S*ag;F=O}else{R/=aa;ad/=ab;F/=aa;ag/=ab}af=R*K+F*H;ah=ad*K+ag*H;L=1/(Math.sin(Math.asin(Math.abs(P)/(H*K))*0.5)*Math.sqrt(af*af+ah*ah));af*=L;ah*=L;var V=(af*R+ah*ad)/(R*R+ad*ad),X=(af*F+ah*ag)/(F*F+ag*ag);var W=R*V-af,T=ad*V-ah,ac=F*X-af,G=ag*X-ah,I=Math.atan2(T,W),N=Math.atan2(G,ac);if(P>0){if(N<I){N+=Math.PI*2}}else{if(I<N){I+=Math.PI*2}}if(ab!==aa){af=ai*af*aa-aj*ah*ab+U;ah=aj*ah*ab+ai*ah*ab+ae;M.lineTo(ai*aa*W-aj*ab*T+af,aj*aa*W+ai*ab*T+ah);M.ellipse(af,ah,aa,ab,J,I,N,P<0)}else{af=af*aa+U;ah=ah*ab+ae;M.lineTo(aa*W+af,ab*T+ah);M.ellipse(af,ah,aa,ab,J,I,N,P<0)}},ellipse:function(w,y,B,D,i,s,A,z){var r=this,x=r.params,C=x.length,t,u,v;if(A-s>=Math.PI*2){r.ellipse(w,y,B,D,i,s,s+Math.PI,z);r.ellipse(w,y,B,D,i,s+Math.PI,A,z);return}if(!z){if(A<s){A+=Math.PI*2}t=r.approximateArc(x,w,y,B,D,i,s,A)}else{if(s<A){s+=Math.PI*2}t=r.approximateArc(x,w,y,B,D,i,A,s);for(u=C,v=x.length-2;u<v;u+=2,v-=2){var j=x[u];x[u]=x[v];x[v]=j;j=x[u+1];x[u+1]=x[v+1];x[v+1]=j}}if(!r.cursor){r.cursor=[x[x.length-2],x[x.length-1]];r.commands.push("M")}else{r.cursor[0]=x[x.length-2];r.cursor[1]=x[x.length-1];r.commands.push("L")}for(u=2;u<t;u+=6){r.commands.push("C")}r.dirt()},arc:function(g,i,h,k,l,j){this.ellipse(g,i,h,h,0,k,l,j)},rect:function(f,h,j,g){if(j==0||g==0){return}var i=this;i.moveTo(f,h);i.lineTo(f+j,h);i.lineTo(f+j,h+g);i.lineTo(f,h+g);i.closePath()},approximateArc:function(K,X,aa,R,S,ac,F,H){var ab=Math.cos(ac),D=Math.sin(ac),V=Math.cos(F),U=Math.sin(F),O=ab*V*R-D*U*S,E=-ab*U*R-D*V*S,Q=D*V*R+ab*U*S,G=-D*U*R+ab*V*S,T=Math.PI/2,M=2,W=O,I=E,Y=Q,J=G,ae=0.547443256150549,L,Z,P,af,N,ad;H-=F;if(H<0){H+=Math.PI*2}K.push(O+X,Q+aa);while(H>=T){K.push(W+I*ae+X,Y+J*ae+aa,W*ae+I+X,Y*ae+J+aa,I+X,J+aa);M+=6;H-=T;L=W;W=I;I=-L;L=Y;Y=J;J=-L}if(H){Z=(0.3294738052815987+0.012120855841304373*H)*H;P=Math.cos(H);af=Math.sin(H);N=P+Z*af;ad=af-Z*P;K.push(W+I*Z+X,Y+J*Z+aa,W*N+I*ad+X,Y*N+J*ad+aa,W*P+I*af+X,Y*P+J*af+aa);M+=6}return M},arcSvg:function(O,Q,G,L,B,E,V){if(O<0){O=-O}if(Q<0){Q=-Q}var A=this,D=A.cursor[0],S=A.cursor[1],X=(D-E)/2,z=(S-V)/2,U=Math.cos(G),F=Math.sin(G),J=X*U+z*F,C=-X*F+z*U,P=J/O,R=C/Q,I=P*P+R*R,T=(D+E)*0.5,W=(S+V)*0.5,M=0,N=0;if(I>=1){I=Math.sqrt(I);O*=I;Q*=I}else{I=Math.sqrt(1/I-1);if(L===B){I=-I}M=I*O*R;N=-I*Q*P;T+=U*M-F*N;W+=F*M+U*N}var H=Math.atan2((C-N)/Q,(J-M)/O),K=Math.atan2((-C-N)/Q,(-J-M)/O)-H;if(B){if(K<=0){K+=Math.PI*2}}else{if(K>=0){K-=Math.PI*2}}A.ellipse(T,W,O,Q,G,H,H+K,1-B)},fromSvgString:function(v){if(!v){return}var o=this,s,p={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0,A:7,C:6,H:1,L:2,M:2,Q:4,S:4,T:2,V:1,Z:0},q="",t,u,x=0,y=0,w=false,r,i,z;if(Ext.isString(v)){s=v.replace(Ext.draw.Path.pathRe," $1 ").replace(Ext.draw.Path.pathRe2," -").split(Ext.draw.Path.pathSplitRe)}else{if(Ext.isArray(v)){s=v.join(",").split(Ext.draw.Path.pathSplitRe)}}for(r=0,i=0;r<s.length;r++){if(s[r]!==""){s[i++]=s[r]}}s.length=i;o.clear();for(r=0;r<s.length;){q=w;w=s[r];z=(w.toUpperCase()!==w);r++;switch(w){case"M":o.moveTo(x=+s[r],y=+s[r+1]);r+=2;while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x=+s[r],y=+s[r+1]);r+=2}break;case"L":o.lineTo(x=+s[r],y=+s[r+1]);r+=2;while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x=+s[r],y=+s[r+1]);r+=2}break;case"A":while(r<i&&!p.hasOwnProperty(s[r])){o.arcSvg(+s[r],+s[r+1],+s[r+2]*Math.PI/180,+s[r+3],+s[r+4],x=+s[r+5],y=+s[r+6]);r+=7}break;case"C":while(r<i&&!p.hasOwnProperty(s[r])){o.bezierCurveTo(+s[r],+s[r+1],t=+s[r+2],u=+s[r+3],x=+s[r+4],y=+s[r+5]);r+=6}break;case"Z":o.closePath();break;case"m":o.moveTo(x+=+s[r],y+=+s[r+1]);r+=2;while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x+=+s[r],y+=+s[r+1]);r+=2}break;case"l":o.lineTo(x+=+s[r],y+=+s[r+1]);r+=2;while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x+=+s[r],y+=+s[r+1]);r+=2}break;case"a":while(r<i&&!p.hasOwnProperty(s[r])){o.arcSvg(+s[r],+s[r+1],+s[r+2]*Math.PI/180,+s[r+3],+s[r+4],x+=+s[r+5],y+=+s[r+6]);r+=7}break;case"c":while(r<i&&!p.hasOwnProperty(s[r])){o.bezierCurveTo(x+(+s[r]),y+(+s[r+1]),t=x+(+s[r+2]),u=y+(+s[r+3]),x+=+s[r+4],y+=+s[r+5]);r+=6}break;case"z":o.closePath();break;case"s":if(!(q==="c"||q==="C"||q==="s"||q==="S")){t=x;u=y}while(r<i&&!p.hasOwnProperty(s[r])){o.bezierCurveTo(x+x-t,y+y-u,t=x+(+s[r]),u=y+(+s[r+1]),x+=+s[r+2],y+=+s[r+3]);r+=4}break;case"S":if(!(q==="c"||q==="C"||q==="s"||q==="S")){t=x;u=y}while(r<i&&!p.hasOwnProperty(s[r])){o.bezierCurveTo(x+x-t,y+y-u,t=+s[r],u=+s[r+1],x=(+s[r+2]),y=(+s[r+3]));r+=4}break;case"q":while(r<i&&!p.hasOwnProperty(s[r])){o.quadraticCurveTo(t=x+(+s[r]),u=y+(+s[r+1]),x+=+s[r+2],y+=+s[r+3]);r+=4}break;case"Q":while(r<i&&!p.hasOwnProperty(s[r])){o.quadraticCurveTo(t=+s[r],u=+s[r+1],x=+s[r+2],y=+s[r+3]);r+=4}break;case"t":if(!(q==="q"||q==="Q"||q==="t"||q==="T")){t=x;u=y}while(r<i&&!p.hasOwnProperty(s[r])){o.quadraticCurveTo(t=x+x-t,u=y+y-u,x+=+s[r+1],y+=+s[r+2]);r+=2}break;case"T":if(!(q==="q"||q==="Q"||q==="t"||q==="T")){t=x;u=y}while(r<i&&!p.hasOwnProperty(s[r])){o.quadraticCurveTo(t=x+x-t,u=y+y-u,x=(+s[r+1]),y=(+s[r+2]));r+=2}break;case"h":while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x+=+s[r],y);r++}break;case"H":while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x=+s[r],y);r++}break;case"v":while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x,y+=+s[r]);r++}break;case"V":while(r<i&&!p.hasOwnProperty(s[r])){o.lineTo(x,y=+s[r]);r++}break}}},clone:function(){var d=this,c=new Ext.draw.Path();c.params=d.params.slice(0);c.commands=d.commands.slice(0);c.cursor=d.cursor?d.cursor.slice(0):null;c.startX=d.startX;c.startY=d.startY;c.svgString=d.svgString;return c},transform:function(p){if(p.isIdentity()){return}var x=p.getXX(),s=p.getYX(),i=p.getDX(),n=p.getXY(),t=p.getYY(),o=p.getDY(),w=this.params,v=0,u=w.length,q,r;for(;v<u;v+=2){q=w[v];r=w[v+1];w[v]=q*x+r*s+i;w[v+1]=q*n+r*t+o}this.dirt()},getDimension:function(m){if(!m){m={}}if(!this.commands||!this.commands.length){m.x=0;m.y=0;m.width=0;m.height=0;return m}m.left=Infinity;m.top=Infinity;m.right=-Infinity;m.bottom=-Infinity;var o=0,p=0,i=this.commands,l=this.params,n=i.length,j,k;for(;o<n;o++){switch(i[o]){case"M":case"L":j=l[p];k=l[p+1];m.left=Math.min(j,m.left);m.top=Math.min(k,m.top);m.right=Math.max(j,m.right);m.bottom=Math.max(k,m.bottom);p+=2;break;case"C":this.expandDimension(m,j,k,l[p],l[p+1],l[p+2],l[p+3],j=l[p+4],k=l[p+5]);p+=6;break}}m.x=m.left;m.y=m.top;m.width=m.right-m.left;m.height=m.bottom-m.top;return m},getDimensionWithTransform:function(s,y){if(!this.commands||!this.commands.length){if(!y){y={}}y.x=0;y.y=0;y.width=0;y.height=0;return y}y.left=Infinity;y.top=Infinity;y.right=-Infinity;y.bottom=-Infinity;var D=s.getXX(),v=s.getYX(),i=s.getDX(),j=s.getXY(),w=s.getYY(),r=s.getDY(),z=0,A=0,C=this.commands,B=this.params,x=C.length,t,u;for(;z<x;z++){switch(C[z]){case"M":case"L":t=B[A]*D+B[A+1]*v+i;u=B[A]*j+B[A+1]*w+r;y.left=Math.min(t,y.left);y.top=Math.min(u,y.top);y.right=Math.max(t,y.right);y.bottom=Math.max(u,y.bottom);A+=2;break;case"C":this.expandDimension(y,t,u,B[A]*D+B[A+1]*v+i,B[A]*j+B[A+1]*w+r,B[A+2]*D+B[A+3]*v+i,B[A+2]*j+B[A+3]*w+r,t=B[A+4]*D+B[A+5]*v+i,u=B[A+4]*j+B[A+5]*w+r);A+=6;break}}if(!y){y={}}y.x=y.left;y.y=y.top;y.width=y.right-y.left;y.height=y.bottom-y.top;return y},expandDimension:function(w,B,l,u,y,v,A,C,r){var t=this,z=w.left,D=w.right,b=w.top,s=w.bottom,x=t.dim||(t.dim=[]);t.curveDimension(B,u,v,C,x);z=Math.min(z,x[0]);D=Math.max(D,x[1]);t.curveDimension(l,y,A,r,x);b=Math.min(b,x[0]);s=Math.max(s,x[1]);w.left=z;w.right=D;w.top=b;w.bottom=s},curveDimension:function(b,d,t,u,w){var v=3*(-b+3*(d-t)+u),x=6*(b-2*d+t),y=-3*(b-d),c,r,z=Math.min(b,u),s=Math.max(b,u),a;if(v===0){if(x===0){w[0]=z;w[1]=s;return}else{c=-y/x;if(0<c&&c<1){r=this.interpolate(b,d,t,u,c);z=Math.min(z,r);s=Math.max(s,r)}}}else{a=x*x-4*v*y;if(a>=0){a=Math.sqrt(a);c=(a-x)/2/v;if(0<c&&c<1){r=this.interpolate(b,d,t,u,c);z=Math.min(z,r);s=Math.max(s,r)}if(a>0){c-=a/v;if(0<c&&c<1){r=this.interpolate(b,d,t,u,c);z=Math.min(z,r);s=Math.max(s,r)}}}}w[0]=z;w[1]=s},interpolate:function(k,l,a,b,d){if(d===0){return k}if(d===1){return b}var c=(1-d)/d;return d*d*d*(b+c*(3*a+c*(3*l+c*k)))},fromStripes:function(j){var l=this,n=0,m=j.length,h,i,k;l.clear();for(;n<m;n++){k=j[n];l.params.push.apply(l.params,k);l.commands.push("M");for(h=2,i=k.length;h<i;h+=6){l.commands.push("C")}}if(!l.cursor){l.cursor=[]}l.cursor[0]=l.params[l.params.length-2];l.cursor[1]=l.params[l.params.length-1];l.dirt()},toStripes:function(t){var j=t||[],i,q,r,A,B,u,v,w,x,z=this.commands,y=this.params,s=z.length;for(w=0,x=0;w<s;w++){switch(z[w]){case"M":i=[u=A=y[x++],v=B=y[x++]];j.push(i);break;case"L":q=y[x++];r=y[x++];i.push((A+A+q)/3,(B+B+r)/3,(A+q+q)/3,(B+r+r)/3,A=q,B=r);break;case"C":i.push(y[x++],y[x++],y[x++],y[x++],A=y[x++],B=y[x++]);break;case"Z":q=u;r=v;i.push((A+A+q)/3,(B+B+r)/3,(A+q+q)/3,(B+r+r)/3,A=q,B=r);break}}return j},updateSvgString:function(){var g=[],h=this.commands,i=this.params,j=h.length,k=0,l=0;for(;k<j;k++){switch(h[k]){case"M":g.push("M"+i[l]+","+i[l+1]);l+=2;break;case"L":g.push("L"+i[l]+","+i[l+1]);l+=2;break;case"C":g.push("C"+i[l]+","+i[l+1]+" "+i[l+2]+","+i[l+3]+" "+i[l+4]+","+i[l+5]);l+=6;break;case"Z":g.push("Z");break}}this.svgString=g.join("")},toString:function(){if(!this.svgString){this.updateSvgString()}return this.svgString}},3,0,0,0,0,0,[Ext.draw,"Path"],0));Ext.define("Ext.draw.overrides.Path",{override:"Ext.draw.Path",rayOrigin:{x:-10000,y:-10000},isPointInPath:function(r,s){var t=this,B=t.commands,i=Ext.draw.PathUtil,j=t.rayOrigin,y=t.params,u=B.length,z=null,A=null,C=0,D=0,v=0,w,x;for(w=0,x=0;w<u;w++){switch(B[w]){case"M":if(z!==null){if(i.linesIntersection(z,A,C,D,j.x,j.y,r,s)){v+=1}}z=C=y[x];A=D=y[x+1];x+=2;break;case"L":if(i.linesIntersection(C,D,y[x],y[x+1],j.x,j.y,r,s)){v+=1}C=y[x];D=y[x+1];x+=2;break;case"C":v+=i.cubicLineIntersections(C,y[x],y[x+2],y[x+4],D,y[x+1],y[x+3],y[x+5],j.x,j.y,r,s).length;C=y[x+4];D=y[x+5];x+=6;break;case"Z":if(z!==null){if(i.linesIntersection(z,A,C,D,j.x,j.y,r,s)){v+=1}}break}}return v%2===1},isPointOnPath:function(j,p){var q=this,x=q.commands,i=Ext.draw.PathUtil,u=q.params,r=x.length,v=null,w=null,y=0,z=0,s,t;for(s=0,t=0;s<r;s++){switch(x[s]){case"M":if(v!==null){if(i.pointOnLine(v,w,y,z,j,p)){return true}}v=y=u[t];w=z=u[t+1];t+=2;break;case"L":if(i.pointOnLine(y,z,u[t],u[t+1],j,p)){return true}y=u[t];z=u[t+1];t+=2;break;case"C":if(i.pointOnCubic(y,u[t],u[t+2],u[t+4],z,u[t+1],u[t+3],u[t+5],j,p)){return true}y=u[t+4];z=u[t+5];t+=6;break;case"Z":if(v!==null){if(i.pointOnLine(v,w,y,z,j,p)){return true}}break}}return false},getSegmentIntersections:function(A,O,B,P,C,Q,F,R){var j=this,L=arguments.length,y=Ext.draw.PathUtil,M=j.commands,z=j.params,J=M.length,H=null,I=null,K=0,N=0,i=[],D,G,E;for(D=0,G=0;D<J;D++){switch(M[D]){case"M":if(H!==null){switch(L){case 4:E=y.linesIntersection(H,I,K,N,A,O,B,P);if(E){i.push(E)}break;case 8:E=y.cubicLineIntersections(A,B,C,F,O,P,Q,R,H,I,K,N);i.push.apply(i,E);break}}H=K=z[G];I=N=z[G+1];G+=2;break;case"L":switch(L){case 4:E=y.linesIntersection(K,N,z[G],z[G+1],A,O,B,P);if(E){i.push(E)}break;case 8:E=y.cubicLineIntersections(A,B,C,F,O,P,Q,R,K,N,z[G],z[G+1]);i.push.apply(i,E);break}K=z[G];N=z[G+1];G+=2;break;case"C":switch(L){case 4:E=y.cubicLineIntersections(K,z[G],z[G+2],z[G+4],N,z[G+1],z[G+3],z[G+5],A,O,B,P);i.push.apply(i,E);break;case 8:E=y.cubicsIntersections(K,z[G],z[G+2],z[G+4],N,z[G+1],z[G+3],z[G+5],A,B,C,F,O,P,Q,R);i.push.apply(i,E);break}K=z[G+4];N=z[G+5];G+=6;break;case"Z":if(H!==null){switch(L){case 4:E=y.linesIntersection(H,I,K,N,A,O,B,P);if(E){i.push(E)}break;case 8:E=y.cubicLineIntersections(A,B,C,F,O,P,Q,R,H,I,K,N);i.push.apply(i,E);break}}break}}return i},getIntersections:function(i){var p=this,x=p.commands,t=p.params,q=x.length,u=null,v=null,y=0,z=0,w=[],r,s,j;for(r=0,s=0;r<q;r++){switch(x[r]){case"M":if(u!==null){j=i.getSegmentIntersections.call(i,u,v,y,z);w.push.apply(w,j)}u=y=t[s];v=z=t[s+1];s+=2;break;case"L":j=i.getSegmentIntersections.call(i,y,z,t[s],t[s+1]);w.push.apply(w,j);y=t[s];z=t[s+1];s+=2;break;case"C":j=i.getSegmentIntersections.call(i,y,z,t[s],t[s+1],t[s+2],t[s+3],t[s+4],t[s+5]);w.push.apply(w,j);y=t[s+4];z=t[s+5];s+=6;break;case"Z":if(u!==null){j=i.getSegmentIntersections.call(i,u,v,y,z);w.push.apply(w,j)}break}}return w}});(Ext.cmd.derive("Ext.draw.sprite.Path",Ext.draw.sprite.Sprite,{type:"path",isPath:true,inheritableStatics:{def:{processors:{path:function(c,d){if(!(c instanceof Ext.draw.Path)){c=new Ext.draw.Path(c)}return c}},aliases:{d:"path"},triggers:{path:"bbox"},updaters:{path:function(d){var c=d.path;if(!c||c.bindAttr!==d){c=new Ext.draw.Path();c.bindAttr=d;d.path=c}c.clear();this.updatePath(c,d);this.scheduleUpdater(d,"bbox",["path"])}}}},updatePlainBBox:function(b){if(this.attr.path){this.attr.path.getDimension(b)}},updateTransformedBBox:function(b){if(this.attr.path){this.attr.path.getDimensionWithTransform(this.attr.matrix,b)}},render:function(e,h){var g=this.attr.matrix,f=this.attr;if(!f.path||f.path.params.length===0){return}g.toContext(h);h.appendPath(f.path);h.fillStroke(f)},updatePath:function(c,d){}},0,0,0,0,["Ext.draw.Sprite","sprite.path"],0,[Ext.draw.sprite,"Path"],0));Ext.define("Ext.draw.overrides.sprite.Path",{override:"Ext.draw.sprite.Path",isPointInPath:function(n,j){var h=this.attr;if(h.fillStyle===Ext.draw.Color.RGBA_NONE){return this.isPointOnPath(n,j)}var l=h.path,m=h.matrix,k,i;if(!m.isIdentity()){k=l.params.slice(0);l.transform(h.matrix)}i=l.isPointInPath(n,j);if(k){l.params=k}return i},isPointOnPath:function(n,j){var h=this.attr,l=h.path,m=h.matrix,k,i;if(!m.isIdentity()){k=l.params.slice(0);l.transform(h.matrix)}i=l.isPointOnPath(n,j);if(k){l.params=k}return i},hitTest:function(p,m){var t=this,v=t.attr,n=v.path,r=v.matrix,q=p[0],s=p[1],u=(arguments.callee.$previous||Ext.draw.sprite.Sprite.prototype.hitTest).call(this,p,m),o=null,x,w;if(!u){return o}m=m||Ext.draw.sprite.Sprite.defaultHitTestOptions;if(!r.isIdentity()){x=n.params.slice(0);n.transform(v.matrix)}if(m.fill&&m.stroke){w=v.fillStyle!==Ext.draw.Color.NONE&&v.fillStyle!==Ext.draw.Color.RGBA_NONE;if(w){if(n.isPointInPath(q,s)){o={sprite:t}}}else{if(n.isPointInPath(q,s)||n.isPointOnPath(q,s)){o={sprite:t}}}}else{if(m.stroke&&!m.fill){if(n.isPointOnPath(q,s)){o={sprite:t}}}else{if(m.fill&&!m.stroke){if(n.isPointInPath(q,s)){o={sprite:t}}}}}if(x){n.params=x}return o},getIntersections:function(k){if(!(k.isSprite&&k.isPath)){return[]}var p=this.attr,q=k.attr,l=p.path,m=q.path,n=p.matrix,t=q.matrix,r,o,s;if(!n.isIdentity()){r=l.params.slice(0);l.transform(p.matrix)}if(!t.isIdentity()){o=m.params.slice(0);m.transform(q.matrix)}s=l.getIntersections(m);if(r){l.params=r}if(o){m.params=o}return s}});(Ext.cmd.derive("Ext.draw.sprite.Circle",Ext.draw.sprite.Path,{type:"circle",inheritableStatics:{def:{processors:{cx:"number",cy:"number",r:"number"},aliases:{radius:"r",x:"cx",y:"cy",centerX:"cx",centerY:"cy"},defaults:{cx:0,cy:0,r:4},triggers:{cx:"path",cy:"path",r:"path"}}},updatePlainBBox:function(j){var f=this.attr,g=f.cx,h=f.cy,i=f.r;j.x=g-i;j.y=h-i;j.width=i+i;j.height=i+i},updateTransformedBBox:function(q){var n=this.attr,o=n.cx,p=n.cy,t=n.r,m=n.matrix,k=m.getScaleX(),l=m.getScaleY(),r,s;r=k*t;s=l*t;q.x=m.x(o,p)-r;q.y=m.y(o,p)-s;q.width=r+r;q.height=s+s},updatePath:function(c,d){c.arc(d.cx,d.cy,d.r,0,Math.PI*2,false)}},0,0,0,0,["sprite.circle"],0,[Ext.draw.sprite,"Circle"],0));(Ext.cmd.derive("Ext.draw.sprite.Arc",Ext.draw.sprite.Circle,{type:"arc",inheritableStatics:{def:{processors:{startAngle:"number",endAngle:"number",anticlockwise:"bool"},aliases:{from:"startAngle",to:"endAngle",start:"startAngle",end:"endAngle"},defaults:{startAngle:0,endAngle:Math.PI*2,anticlockwise:false},triggers:{startAngle:"path",endAngle:"path",anticlockwise:"path"}}},updatePath:function(c,d){c.arc(d.cx,d.cy,d.r,d.startAngle,d.endAngle,d.anticlockwise)}},0,0,0,0,["sprite.arc"],0,[Ext.draw.sprite,"Arc"],0));(Ext.cmd.derive("Ext.draw.sprite.Arrow",Ext.draw.sprite.Path,{inheritableStatics:{def:{processors:{x:"number",y:"number",size:"number"},defaults:{x:0,y:0,size:4},triggers:{x:"path",y:"path",size:"path"}}},updatePath:function(i,f){var j=f.size*1.5,g=f.x-f.lineWidth/2,h=f.y;i.fromSvgString("M".concat(g-j*0.7,",",h-j*0.4,"l",[j*0.6,0,0,-j*0.4,j,j*0.8,-j,j*0.8,0,-j*0.4,-j*0.6,0],"z"))}},0,0,0,0,["sprite.arrow"],0,[Ext.draw.sprite,"Arrow"],0));(Ext.cmd.derive("Ext.draw.sprite.Composite",Ext.draw.sprite.Sprite,{type:"composite",isComposite:true,config:{sprites:[]},constructor:function(){this.sprites=[];this.sprites.map={};Ext.draw.sprite.Sprite.prototype.constructor.apply(this,arguments)},add:function(h){if(!h){return null}if(!h.isSprite){h=Ext.create("sprite."+h.type,h);h.setParent(this);h.setSurface(this.getSurface())}var g=this,f=g.attr,e=h.applyTransformations;h.applyTransformations=function(){if(h.attr.dirtyTransform){f.dirtyTransform=true;f.bbox.plain.dirty=true;f.bbox.transform.dirty=true}e.call(h)};g.sprites.push(h);g.sprites.map[h.id]=h.getId();f.bbox.plain.dirty=true;f.bbox.transform.dirty=true;return h},updateSurface:function(e){for(var d=0,f=this.sprites.length;d<f;d++){this.sprites[d].setSurface(e)}},addAll:function(c){if(c.isSprite||c.type){this.add(c)}else{if(Ext.isArray(c)){var d=0;while(d<c.length){this.add(c[d++])}}}},updatePlainBBox:function(n){var p=this,s=Infinity,m=-Infinity,o=Infinity,t=-Infinity,l,i,r,q;for(r=0,q=p.sprites.length;r<q;r++){l=p.sprites[r];l.applyTransformations();i=l.getBBox();if(s>i.x){s=i.x}if(m<i.x+i.width){m=i.x+i.width}if(o>i.y){o=i.y}if(t<i.y+i.height){t=i.y+i.height}}n.x=s;n.y=o;n.width=m-s;n.height=t-o},render:function(h,g,i){var k=this.attr.matrix,l,j;k.toContext(g);for(l=0,j=this.sprites.length;l<j;l++){h.renderSprite(this.sprites[l],i)}},destroy:function(){var h=this,g=h.sprites,e=g.length,f;Ext.draw.sprite.Sprite.prototype.destroy.call(this);for(f=0;f<e;f++){g[f].destroy()}g.length=0}},1,0,0,0,["sprite.composite"],0,[Ext.draw.sprite,"Composite"],0));(Ext.cmd.derive("Ext.draw.sprite.Cross",Ext.draw.sprite.Path,{inheritableStatics:{def:{processors:{x:"number",y:"number",size:"number"},defaults:{x:0,y:0,size:4},triggers:{x:"path",y:"path",size:"path"}}},updatePath:function(i,f){var j=f.size/1.7,g=f.x-f.lineWidth/2,h=f.y;i.fromSvgString("M".concat(g-j,",",h,"l",[-j,-j,j,-j,j,j,j,-j,j,j,-j,j,j,j,-j,j,-j,-j,-j,j,-j,-j,"z"]))}},0,0,0,0,["sprite.cross"],0,[Ext.draw.sprite,"Cross"],0));(Ext.cmd.derive("Ext.draw.sprite.Diamond",Ext.draw.sprite.Path,{inheritableStatics:{def:{processors:{x:"number",y:"number",size:"number"},defaults:{x:0,y:0,size:4},triggers:{x:"path",y:"path",size:"path"}}},updatePath:function(i,f){var j=f.size*1.25,g=f.x-f.lineWidth/2,h=f.y;i.fromSvgString(["M",g,h-j,"l",j,j,-j,j,-j,-j,j,-j,"z"])}},0,0,0,0,["sprite.diamond"],0,[Ext.draw.sprite,"Diamond"],0));(Ext.cmd.derive("Ext.draw.sprite.Ellipse",Ext.draw.sprite.Path,{type:"ellipse",inheritableStatics:{def:{processors:{cx:"number",cy:"number",rx:"number",ry:"number",axisRotation:"number"},aliases:{radius:"r",x:"cx",y:"cy",centerX:"cx",centerY:"cy",radiusX:"rx",radiusY:"ry"},defaults:{cx:0,cy:0,rx:1,ry:1,axisRotation:0},triggers:{cx:"path",cy:"path",rx:"path",ry:"path",axisRotation:"path"}}},updatePlainBBox:function(l){var g=this.attr,h=g.cx,i=g.cy,j=g.rx,k=g.ry;l.x=h-j;l.y=i-k;l.width=j+j;l.height=k+k},updateTransformedBBox:function(C){var y=this.attr,A=y.cx,B=y.cy,D=y.rx,E=y.ry,v=E/D,u=y.matrix.clone(),F,h,w,x,r,s,t,z;u.append(1,0,0,v,0,B*(1-v));F=u.getXX();w=u.getYX();r=u.getDX();h=u.getXY();x=u.getYY();s=u.getDY();t=Math.sqrt(F*F+w*w)*D;z=Math.sqrt(h*h+x*x)*D;C.x=A*F+B*w+r-t;C.y=A*h+B*x+s-z;C.width=t+t;C.height=z+z},updatePath:function(c,d){c.ellipse(d.cx,d.cy,d.rx,d.ry,d.axisRotation,0,Math.PI*2,false)}},0,0,0,0,["sprite.ellipse"],0,[Ext.draw.sprite,"Ellipse"],0));(Ext.cmd.derive("Ext.draw.sprite.EllipticalArc",Ext.draw.sprite.Ellipse,{type:"ellipticalArc",inheritableStatics:{def:{processors:{startAngle:"number",endAngle:"number",anticlockwise:"bool"},aliases:{from:"startAngle",to:"endAngle",start:"startAngle",end:"endAngle"},defaults:{startAngle:0,endAngle:Math.PI*2,anticlockwise:false},triggers:{startAngle:"path",endAngle:"path",anticlockwise:"path"}}},updatePath:function(c,d){c.ellipse(d.cx,d.cy,d.rx,d.ry,d.axisRotation,d.startAngle,d.endAngle,d.anticlockwise)}},0,0,0,0,["sprite.ellipticalArc"],0,[Ext.draw.sprite,"EllipticalArc"],0));(Ext.cmd.derive("Ext.draw.sprite.Rect",Ext.draw.sprite.Path,{type:"rect",inheritableStatics:{def:{processors:{x:"number",y:"number",width:"number",height:"number",radius:"number"},aliases:{},triggers:{x:"path",y:"path",width:"path",height:"path",radius:"path"},defaults:{x:0,y:0,width:8,height:8,radius:0}}},updatePlainBBox:function(c){var d=this.attr;c.x=d.x;c.y=d.y;c.width=d.width;c.height=d.height},updateTransformedBBox:function(d,c){this.attr.matrix.transformBBox(c,this.attr.radius,d)},updatePath:function(k,m){var n=m.x,j=m.y,l=m.width,h=m.height,i=Math.min(m.radius,Math.abs(m.height)*0.5,Math.abs(m.width)*0.5);if(i===0){k.rect(n,j,l,h)}else{k.moveTo(n+i,j);k.arcTo(n+l,j,n+l,j+h,i);k.arcTo(n+l,j+h,n,j+h,i);k.arcTo(n,j+h,n,j,i);k.arcTo(n,j,n+i,j,i)}}},0,0,0,0,["sprite.rect"],0,[Ext.draw.sprite,"Rect"],0));(Ext.cmd.derive("Ext.draw.sprite.Image",Ext.draw.sprite.Rect,{type:"image",statics:{imageLoaders:{}},inheritableStatics:{def:{processors:{src:"string"},defaults:{src:"",width:null,height:null}}},render:function(z,i){var t=this,u=t.attr,p=u.matrix,B=u.src,r=u.x,s=u.y,A=u.width,q=u.height,v=Ext.draw.sprite.Image.imageLoaders[B],w,y,x;if(v&&v.done){p.toContext(i);y=v.image;i.drawImage(y,r,s,A||(y.naturalWidth||y.width)/z.devicePixelRatio,q||(y.naturalHeight||y.height)/z.devicePixelRatio)}else{if(!v){w=new Image();v=Ext.draw.sprite.Image.imageLoaders[B]={image:w,done:false,pendingSprites:[t],pendingSurfaces:[z]};w.width=A;w.height=q;w.onload=function(){if(!v.done){v.done=true;for(x=0;x<v.pendingSprites.length;x++){v.pendingSprites[x].setDirty(true)}for(x in v.pendingSurfaces){v.pendingSurfaces[x].renderFrame()}}};w.src=B}else{Ext.Array.include(v.pendingSprites,t);Ext.Array.include(v.pendingSurfaces,z)}}}},0,0,0,0,["sprite.image"],0,[Ext.draw.sprite,"Image"],0));(Ext.cmd.derive("Ext.draw.sprite.Instancing",Ext.draw.sprite.Sprite,{type:"instancing",isInstancing:true,config:{template:null},instances:null,applyTemplate:function(b){if(!b.isSprite){if(!b.xclass&&!b.type){b.type="circle"}b=Ext.create(b.xclass||"sprite."+b.type,b)}b.setParent(this);return b},updateTemplate:function(d,c){if(c){delete c.ownAttr}d.setSurface(this.getSurface());d.ownAttr=d.attr;this.clearAll()},updateSurface:function(d){var c=this.getTemplate();if(c){c.setSurface(d)}},get:function(b){return this.instances[b]},getCount:function(){return this.instances.length},clearAll:function(){var b=this.getTemplate();b.attr.children=this.instances=[];this.position=0},createInstance:function(k,i,l){var j=this.getTemplate(),g=j.attr,h=Ext.Object.chain(g);j.topModifier.prepareAttributes(h);j.attr=h;j.setAttributes(k,i,l);h.template=j;this.instances.push(h);j.attr=g;this.position++;return h},getBBox:function(){return null},getBBoxFor:function(f,i){var j=this.getTemplate(),g=j.attr,h;j.attr=this.instances[f];h=j.getBBox(i);j.attr=g;return h},isVisible:function(){var d=this.attr,f=this.getParent(),e;e=f&&f.isSurface&&!d.hidden&&d.globalAlpha;return !!e},isInstanceVisible:function(l){var j=this,k=j.getTemplate(),g=k.attr,i=j.instances,h=false;if(!Ext.isNumber(l)||l<0||l>=i.length||!j.isVisible()){return h}k.attr=i[l];h=k.isVisible(point,options);k.attr=g;return h},render:function(u,i,s,o){var p=this,n=p.getTemplate(),m=p.attr.matrix,t=n.attr,v=p.instances,r,q=p.position;m.toContext(i);n.preRender(u,i,s,o);n.useAttributes(i,o);for(r=0;r<q;r++){if(v[r].dirtyZIndex){break}}for(r=0;r<q;r++){if(v[r].hidden){continue}i.save();n.attr=v[r];n.useAttributes(i,o);n.render(u,i,s,o);i.restore()}n.attr=t},setAttributesFor:function(l,j,i){var k=this.getTemplate(),g=k.attr,h=this.instances[l];if(!h){return}k.attr=h;if(i){j=Ext.apply({},j)}else{j=k.self.def.normalize(j)}k.topModifier.pushDown(h,j);k.attr=g},destroy:function(){var c=this,d=c.getTemplate();c.instances=null;if(d){d.destroy()}Ext.draw.sprite.Sprite.prototype.destroy.call(this)}},0,0,0,0,["sprite.instancing"],0,[Ext.draw.sprite,"Instancing"],0));Ext.define("Ext.draw.overrides.sprite.Instancing",{override:"Ext.draw.sprite.Instancing",hitTest:function(m,i){var n=this,l=n.getTemplate(),q=l.attr,r=n.instances,o=r.length,p=0,k=null;if(!n.isVisible()){return k}for(;p<o;p++){l.attr=r[p];k=l.hitTest(m,i);if(k){k.isInstance=true;k.template=k.sprite;k.sprite=this;k.instance=r[p];k.index=p;return k}}l.attr=q;return k}});(Ext.cmd.derive("Ext.draw.sprite.Line",Ext.draw.sprite.Sprite,{type:"line",inheritableStatics:{def:{processors:{fromX:"number",fromY:"number",toX:"number",toY:"number"},defaults:{fromX:0,fromY:0,toX:1,toY:1,strokeStyle:"black"},aliases:{x1:"fromX",y1:"fromY",x2:"toX",y2:"toY"}}},updateLineBBox:function(K,D,u,F,v,G){var x=this.attr,w=x.matrix,E=x.lineWidth/2,z,A,I,J,B,C,y;if(D){y=w.transformPoint([u,F]);u=y[0];F=y[1];y=w.transformPoint([v,G]);v=y[0];G=y[1]}z=Math.min(u,v);I=Math.max(u,v);A=Math.min(F,G);J=Math.max(F,G);var p=Math.atan2(I-z,J-A),L=Math.sin(p),H=Math.cos(p),B=E*H,C=E*L;z-=B;A-=C;I+=B;J+=C;K.x=z;K.y=A;K.width=I-z;K.height=J-A},updatePlainBBox:function(c){var d=this.attr;this.updateLineBBox(c,false,d.fromX,d.fromY,d.toX,d.toY)},updateTransformedBBox:function(d,f){var e=this.attr;this.updateLineBBox(d,true,e.fromX,e.fromY,e.toX,e.toY)},render:function(e,h){var f=this.attr,g=this.attr.matrix;g.toContext(h);h.beginPath();h.moveTo(f.fromX,f.fromY);h.lineTo(f.toX,f.toY);h.stroke()}},0,0,0,0,["sprite.line"],0,[Ext.draw.sprite,"Line"],0));(Ext.cmd.derive("Ext.draw.sprite.Plus",Ext.draw.sprite.Path,{inheritableStatics:{def:{processors:{x:"number",y:"number",size:"number"},defaults:{x:0,y:0,size:4},triggers:{x:"path",y:"path",size:"path"}}},updatePath:function(i,f){var j=f.size/1.3,g=f.x-f.lineWidth/2,h=f.y;i.fromSvgString("M".concat(g-j/2,",",h-j/2,"l",[0,-j,j,0,0,j,j,0,0,j,-j,0,0,j,-j,0,0,-j,-j,0,0,-j,"z"]))}},0,0,0,0,["sprite.plus"],0,[Ext.draw.sprite,"Plus"],0));(Ext.cmd.derive("Ext.draw.sprite.Sector",Ext.draw.sprite.Path,{type:"sector",inheritableStatics:{def:{processors:{centerX:"number",centerY:"number",startAngle:"number",endAngle:"number",startRho:"number",endRho:"number",margin:"number"},aliases:{rho:"endRho"},triggers:{centerX:"path,bbox",centerY:"path,bbox",startAngle:"path,bbox",endAngle:"path,bbox",startRho:"path,bbox",endRho:"path,bbox",margin:"path,bbox"},defaults:{centerX:0,centerY:0,startAngle:0,endAngle:0,startRho:0,endRho:150,margin:0,path:"M 0,0"}}},getMidAngle:function(){return this.midAngle||0},updatePath:function(k,m){var n=Math.min(m.startAngle,m.endAngle),r=Math.max(m.startAngle,m.endAngle),s=this.midAngle=(n+r)*0.5,q=m.margin,o=m.centerX,p=m.centerY,l=Math.min(m.startRho,m.endRho),t=Math.max(m.startRho,m.endRho);if(q){o+=q*Math.cos(s);p+=q*Math.sin(s)}k.moveTo(o+l*Math.cos(n),p+l*Math.sin(n));k.lineTo(o+t*Math.cos(n),p+t*Math.sin(n));k.arc(o,p,t,n,r,false);k.lineTo(o+l*Math.cos(r),p+l*Math.sin(r));k.arc(o,p,l,r,n,true)}},0,0,0,0,["sprite.sector"],0,[Ext.draw.sprite,"Sector"],0));(Ext.cmd.derive("Ext.draw.sprite.Square",Ext.draw.sprite.Rect,{inheritableStatics:{def:{processors:{size:"number"},defaults:{size:4},triggers:{size:"size"},updaters:{size:function(e){var f=e.size,d=e.lineWidth/2;this.setAttributes({x:e.x-f-d,y:e.y-f,height:2*f,width:2*f})}}}}},0,0,0,0,["sprite.square"],0,[Ext.draw.sprite,"Square"],0));(Ext.cmd.derive("Ext.draw.TextMeasurer",Ext.Base,{singleton:true,measureDiv:null,measureCache:{},precise:Ext.isIE8,measureDivTpl:{tag:"div",style:{overflow:"hidden",position:"relative","float":"left",width:0,height:0},children:{tag:"div",style:{display:"block",position:"absolute",x:-100000,y:-100000,padding:0,margin:0,"z-index":-100000,"white-space":"nowrap"}}},actualMeasureText:function(j,h){var l=Ext.draw.TextMeasurer,k=l.measureDiv,i=100000,n;if(!k){var m=Ext.Element.create({style:{overflow:"hidden",position:"relative","float":"left",width:0,height:0}});l.measureDiv=k=Ext.Element.create({style:{position:"absolute",x:i,y:i,"z-index":-i,"white-space":"nowrap",display:"block",padding:0,margin:0}});Ext.getBody().appendChild(m);m.appendChild(k)}if(h){k.setStyle({font:h,lineHeight:"normal"})}k.setText("("+j+")");n=k.getSize();k.setText("()");n.width-=k.getSize().width;return n},measureTextSingleLine:function(o,s){if(this.precise){return this.preciseMeasureTextSingleLine(o,s)}o=o.toString();var v=this.measureCache,p=o.split(""),t=0,n=0,i,u,r,q,m;if(!v[s]){v[s]={}}v=v[s];if(v[o]){return v[o]}for(r=0,q=p.length;r<q;r++){u=p[r];if(!(i=v[u])){m=this.actualMeasureText(u,s);i=v[u]=m}t+=i.width;n=Math.max(n,i.height)}return v[o]={width:t,height:n}},preciseMeasureTextSingleLine:function(f,e){f=f.toString();var d=this.measureDiv||(this.measureDiv=Ext.getBody().createChild(this.measureDivTpl).down("div"));d.setStyle({font:e||""});return Ext.util.TextMetrics.measure(d,f)},measureText:function(n,q){var k=n.split("\n"),o=k.length,m=0,r=0,i,p,l;if(o===1){return this.measureTextSingleLine(n,q)}l=[];for(p=0;p<o;p++){i=this.measureTextSingleLine(k[p],q);l.push(i);m+=i.height;r=Math.max(r,i.width)}return{width:r,height:m,sizes:l}}},0,0,0,0,0,0,[Ext.draw,"TextMeasurer"],0));(Ext.cmd.derive("Ext.draw.sprite.Text",Ext.draw.sprite.Sprite,function(){var g={"xx-small":true,"x-small":true,small:true,medium:true,large:true,"x-large":true,"xx-large":true};var e={normal:true,bold:true,bolder:true,lighter:true,100:true,200:true,300:true,400:true,500:true,600:true,700:true,800:true,900:true};var f={start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"};var h={top:"top",hanging:"hanging",middle:"middle",center:"middle",alphabetic:"alphabetic",ideographic:"ideographic",bottom:"bottom"};return{type:"text",lineBreakRe:/\r?\n/g,inheritableStatics:{def:{animationProcessors:{text:"text"},processors:{x:"number",y:"number",text:"string",fontSize:function(a){if(Ext.isNumber(+a)){return a+"px"}else{if(a.match(Ext.dom.Element.unitRe)){return a}else{if(a in g){return a}}}},fontStyle:"enums(,italic,oblique)",fontVariant:"enums(,small-caps)",fontWeight:function(a){if(a in e){return String(a)}else{return""}},fontFamily:"string",textAlign:function(a){return f[a]||"center"},textBaseline:function(a){return h[a]||"alphabetic"},font:"string"},aliases:{"font-size":"fontSize","font-family":"fontFamily","font-weight":"fontWeight","font-variant":"fontVariant","text-anchor":"textAlign"},defaults:{fontStyle:"",fontVariant:"",fontWeight:"",fontSize:"10px",fontFamily:"sans-serif",font:"10px sans-serif",textBaseline:"alphabetic",textAlign:"start",strokeStyle:"rgba(0, 0, 0, 0)",fillStyle:"#000",x:0,y:0,text:""},triggers:{fontStyle:"fontX,bbox",fontVariant:"fontX,bbox",fontWeight:"fontX,bbox",fontSize:"fontX,bbox",fontFamily:"fontX,bbox",font:"font,bbox,canvas",textBaseline:"bbox",textAlign:"bbox",x:"bbox",y:"bbox",text:"bbox"},updaters:{fontX:"makeFontShorthand",font:"parseFontShorthand"}}},constructor:function(b){if(b&&b.font){b=Ext.clone(b);for(var a in b){if(a!=="font"&&a.indexOf("font")===0){delete b[a]}}}Ext.draw.sprite.Sprite.prototype.constructor.call(this,b)},fontValuesMap:{italic:"fontStyle",oblique:"fontStyle","small-caps":"fontVariant",bold:"fontWeight",bolder:"fontWeight",lighter:"fontWeight","100":"fontWeight","200":"fontWeight","300":"fontWeight","400":"fontWeight","500":"fontWeight","600":"fontWeight","700":"fontWeight","800":"fontWeight","900":"fontWeight","xx-small":"fontSize","x-small":"fontSize",small:"fontSize",medium:"fontSize",large:"fontSize","x-large":"fontSize","xx-large":"fontSize"},makeFontShorthand:function(b){var a=[];if(b.fontStyle){a.push(b.fontStyle)}if(b.fontVariant){a.push(b.fontVariant)}if(b.fontWeight){a.push(b.fontWeight)}if(b.fontSize){a.push(b.fontSize)}if(b.fontFamily){a.push(b.fontFamily)}this.setAttributes({font:a.join(" ")},true)},parseFontShorthand:function(o){var b=o.font,d=b.length,c={},a=this.fontValuesMap,t=0,p,r,s,q;while(t<d&&p!==-1){p=b.indexOf(" ",t);if(p<0){s=b.substr(t)}else{if(p>t){s=b.substr(t,p-t)}else{continue}}r=s.indexOf("/");if(r>0){s=s.substr(0,r)}else{if(r===0){continue}}if(s!=="normal"&&s!=="inherit"){q=a[s];if(q){c[q]=s}else{if(s.match(Ext.dom.Element.unitRe)){c.fontSize=s}else{c.fontFamily=b.substr(t);break}}}t=p+1}if(!c.fontStyle){c.fontStyle=""}if(!c.fontVariant){c.fontVariant=""}if(!c.fontWeight){c.fontWeight=""}this.setAttributes(c,true)},fontProperties:{fontStyle:true,fontVariant:true,fontWeight:true,fontSize:true,fontFamily:true},setAttributes:function(c,a,j){var d,b;if(c&&c.font){b={};for(d in c){if(!(d in this.fontProperties)){b[d]=c[d]}}c=b}Ext.draw.sprite.Sprite.prototype.setAttributes.call(this,c,a,j)},getBBox:function(b){var a=this,c=a.attr.bbox.plain,d=a.getSurface();if(c.dirty){a.updatePlainBBox(c);c.dirty=false}if(d.getInherited().rtl&&d.getFlipRtlText()){a.updatePlainBBox(c,true)}return Ext.draw.sprite.Sprite.prototype.getBBox.call(this,b)},rtlAlignments:{start:"end",center:"center",end:"start"},updatePlainBBox:function(M,E){var y=this,b=y.attr,I=b.x,J=b.y,F=[],i=b.font,D=b.text,x=b.textBaseline,L=b.textAlign,d=(E&&y.oldSize)?y.oldSize:(y.oldSize=Ext.draw.TextMeasurer.measureText(D,i)),a=y.getSurface(),H=a.getInherited().rtl,c=H&&a.getFlipRtlText(),O=a.getRect(),Q=d.sizes,P=d.height,N=d.width,K=Q?Q.length:0,R,G=0;switch(x){case"hanging":case"top":break;case"ideographic":case"bottom":J-=P;break;case"alphabetic":J-=P*0.8;break;case"middle":J-=P*0.5;break}if(c){I=O[2]-O[0]-I;L=y.rtlAlignments[L]}switch(L){case"start":if(H){for(;G<K;G++){R=Q[G].width;F.push(-(N-R))}}break;case"end":I-=N;if(H){break}for(;G<K;G++){R=Q[G].width;F.push(N-R)}break;case"center":I-=N*0.5;for(;G<K;G++){R=Q[G].width;F.push((H?-1:1)*(N-R)*0.5)}break}b.textAlignOffsets=F;M.x=I;M.y=J;M.width=N;M.height=P},setText:function(a){this.setAttributes({text:a},true)},render:function(A,b,v){var x=this,y=x.attr,c=Ext.draw.Matrix.fly(y.matrix.elements.slice(0)),d=x.getBBox(true),B=y.textAlignOffsets,t=Ext.draw.Color.RGBA_NONE,u,w,z,a,i;if(y.text.length===0){return}a=y.text.split(x.lineBreakRe);i=d.height/a.length;u=y.bbox.plain.x;w=y.bbox.plain.y+i*0.78;c.toContext(b);if(A.getInherited().rtl){u+=y.bbox.plain.width}for(z=0;z<a.length;z++){if(b.fillStyle!==t){b.fillText(a[z],u+(B[z]||0),w+i*z)}if(b.strokeStyle!==t){b.strokeText(a[z],u+(B[z]||0),w+i*z)}}}}},1,0,0,0,["sprite.text"],0,[Ext.draw.sprite,"Text"],0));(Ext.cmd.derive("Ext.draw.sprite.Tick",Ext.draw.sprite.Line,{inheritableStatics:{def:{processors:{x:"number",y:"number",size:"number"},defaults:{x:0,y:0,size:4},triggers:{x:"tick",y:"tick",size:"tick"},updaters:{tick:function(f){var i=f.size*1.5,j=f.lineWidth/2,g=f.x,h=f.y;this.setAttributes({fromX:g-j,fromY:h-i,toX:g-j,toY:h+i})}}}}},0,0,0,0,["sprite.tick"],0,[Ext.draw.sprite,"Tick"],0));(Ext.cmd.derive("Ext.draw.sprite.Triangle",Ext.draw.sprite.Path,{inheritableStatics:{def:{processors:{x:"number",y:"number",size:"number"},defaults:{x:0,y:0,size:4},triggers:{x:"path",y:"path",size:"path"}}},updatePath:function(i,f){var j=f.size*2.2,g=f.x,h=f.y;i.fromSvgString("M".concat(g,",",h,"m0-",j*0.58,"l",j*0.5,",",j*0.87,"-",j,",0z"))}},0,0,0,0,["sprite.triangle"],0,[Ext.draw.sprite,"Triangle"],0));(Ext.cmd.derive("Ext.draw.gradient.Linear",Ext.draw.gradient.Gradient,{type:"linear",config:{degrees:0,radians:0},applyRadians:function(c,d){if(Ext.isNumber(c)){return c}return d},applyDegrees:function(c,d){if(Ext.isNumber(c)){return c}return d},updateRadians:function(b){this.setDegrees(Ext.draw.Draw.degrees(b))},updateDegrees:function(b){this.setRadians(Ext.draw.Draw.rad(b))},generateGradient:function(h,l){var z=this.getRadians(),i=Math.cos(z),u=Math.sin(z),s=l.width,w=l.height,y=l.x+s*0.5,A=l.y+w*0.5,r=this.getStops(),v=r.length,t,B,x;if(Ext.isNumber(y+A)&&w>0&&s>0){B=(Math.sqrt(w*w+s*s)*Math.abs(Math.cos(z-Math.atan(w/s))))/2;t=h.createLinearGradient(y+i*B,A+u*B,y-i*B,A-u*B);for(x=0;x<v;x++){t.addColorStop(r[x].offset,r[x].color)}return t}return Ext.draw.Color.NONE}},0,0,0,0,0,0,[Ext.draw.gradient,"Linear"],0));(Ext.cmd.derive("Ext.draw.gradient.Radial",Ext.draw.gradient.Gradient,{type:"radial",config:{start:{x:0,y:0,r:0},end:{x:0,y:0,r:1}},applyStart:function(e,d){if(!d){return e}var f={x:d.x,y:d.y,r:d.r};if("x" in e){f.x=e.x}else{if("centerX" in e){f.x=e.centerX}}if("y" in e){f.y=e.y}else{if("centerY" in e){f.y=e.centerY}}if("r" in e){f.r=e.r}else{if("radius" in e){f.r=e.radius}}return f},applyEnd:function(d,e){if(!e){return d}var f={x:e.x,y:e.y,r:e.r};if("x" in d){f.x=d.x}else{if("centerX" in d){f.x=d.centerX}}if("y" in d){f.y=d.y}else{if("centerY" in d){f.y=d.centerY}}if("r" in d){f.r=d.r}else{if("radius" in d){f.r=d.radius}}return f},generateGradient:function(h,i){var x=this.getStart(),w=this.getEnd(),p=i.width*0.5,u=i.height*0.5,q=i.x+p,s=i.y+u,r=h.createRadialGradient(q+x.x*p,s+x.y*u,x.r*Math.max(p,u),q+w.x*p,s+w.y*u,w.r*Math.max(p,u)),o=this.getStops(),t=o.length,v;for(v=0;v<t;v++){r.addColorStop(o[v].offset,o[v].color)}return r}},0,0,0,0,0,0,[Ext.draw.gradient,"Radial"],0));(Ext.cmd.derive("Ext.draw.Surface",Ext.draw.SurfaceBase,{devicePixelRatio:window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI,deprecated:{"5.1.0":{statics:{methods:{stableSort:function(b){return Ext.Array.sort(b,function(a,e){return a.attr.zIndex-e.attr.zIndex})}}}}},config:{cls:"x-surface",rect:null,background:null,items:[],dirty:false,flipRtlText:false},isSurface:true,isPendingRenderFrame:false,dirtyPredecessorCount:0,constructor:function(d){var c=this;c.predecessors=[];c.successors=[];c.map={};Ext.draw.SurfaceBase.prototype.constructor.call(this,d);c.matrix=new Ext.draw.Matrix();c.inverseMatrix=c.matrix.inverse()},roundPixel:function(b){return Math.round(this.devicePixelRatio*b)/this.devicePixelRatio},waitFor:function(e){var d=this,f=d.predecessors;if(!Ext.Array.contains(f,e)){f.push(e);e.successors.push(d);if(e.getDirty()){d.dirtyPredecessorCount++}}},updateDirty:function(i){var j=this.successors,h=j.length,f=0,g;for(;f<h;f++){g=j[f];if(i){g.dirtyPredecessorCount++;g.setDirty(true)}else{g.dirtyPredecessorCount--;if(g.dirtyPredecessorCount===0&&g.isPendingRenderFrame){g.renderFrame()}}}},applyBackground:function(d,c){this.setDirty(true);if(Ext.isString(d)){d={fillStyle:d}}return Ext.factory(d,Ext.draw.sprite.Rect,c)},applyRect:function(d,c){if(c&&d[0]===c[0]&&d[1]===c[1]&&d[2]===c[2]&&d[3]===c[3]){return}if(Ext.isArray(d)){return[d[0],d[1],d[2],d[3]]}else{if(Ext.isObject(d)){return[d.x||d.left,d.y||d.top,d.width||(d.right-d.left),d.height||(d.bottom-d.top)]}}},updateRect:function(j){var k=this,p=j[0],m=j[1],l=p+j[2],b=m+j[3],n=k.getBackground(),o=k.element;o.setLocalXY(Math.floor(p),Math.floor(m));o.setSize(Math.ceil(l-Math.floor(p)),Math.ceil(b-Math.floor(m)));if(n){n.setAttributes({x:0,y:0,width:Math.ceil(l-Math.floor(p)),height:Math.ceil(b-Math.floor(m))})}k.setDirty(true)},resetTransform:function(){this.matrix.set(1,0,0,1,0,0);this.inverseMatrix.set(1,0,0,1,0,0);this.setDirty(true)},get:function(b){return this.map[b]||this.getItems()[b]},add:function(){var n=this,p=Array.prototype.slice.call(arguments),l=Ext.isArray(p[0]),t=n.map,r=[],o,i,m,s,q;o=Ext.Array.clean(l?p[0]:p);if(!o.length){return r}for(s=0,q=o.length;s<q;s++){i=o[s];m=null;if(i.isSprite&&!t[i.getId()]){m=i}else{if(!t[i.id]){m=this.createItem(i)}}if(m){t[m.getId()]=m;r.push(m);m.setParent(n);m.setSurface(n);n.onAdd(m)}}o=n.getItems();if(o){o.push.apply(o,r)}n.dirtyZIndex=true;n.setDirty(true);if(!l&&r.length===1){return r[0]}else{return r}},onAdd:Ext.emptyFn,remove:function(g,j){var f=this,h,i;if(g){if(g.charAt){g=f.map[g]}if(!g||!g.isSprite){return null}if(g.isDestroyed||g.isDestroying){return g}h=g.getId();i=f.map[h];delete f.map[h];if(j){g.destroy()}if(!i){return g}g.setParent(null);g.setSurface(null);Ext.Array.remove(f.getItems(),g);f.dirtyZIndex=true;f.setDirty(true)}return g||null},removeAll:function(g){var f=this.getItems(),e=f.length-1,h;if(g){for(;e>=0;e--){f[e].destroy()}}else{for(;e>=0;e--){h=f[e];h.setParent(null);h.setSurface(null)}}f.length=0;this.map={};this.dirtyZIndex=true},applyItems:function(b){if(this.getItems()){this.removeAll(true)}return Ext.Array.from(this.add(b))},createItem:function(b){return Ext.create(b.xclass||"sprite."+b.type,b)},getBBox:function(o,s){var o=Ext.Array.from(o),r=Infinity,m=-Infinity,n=Infinity,t=-Infinity,l,i,q,p;for(q=0,p=o.length;q<p;q++){l=o[q];i=l.getBBox(s);if(r>i.x){r=i.x}if(m<i.x+i.width){m=i.x+i.width}if(n>i.y){n=i.y}if(t<i.y+i.height){t=i.y+i.height}}return{x:r,y:n,width:m-r,height:t-n}},emptyRect:[0,0,0,0],getEventXY:function(o){var m=this,n=m.getInherited().rtl,p=o.getXY(),r=m.getOwnerBody(),k=r.getXY(),l=m.getRect()||m.emptyRect,e=[],q;if(n){q=r.getWidth();e[0]=k[0]-p[0]-l[0]+q}else{e[0]=p[0]-k[0]-l[0]}e[1]=p[1]-k[1]-l[1];return e},clear:Ext.emptyFn,orderByZIndex:function(){var i=this,g=i.getItems(),h=false,f,j;if(i.getDirty()){for(f=0,j=g.length;f<j;f++){if(g[f].attr.dirtyZIndex){h=true;break}}if(h){Ext.Array.sort(g,function(a,b){return a.attr.zIndex-b.attr.zIndex});this.setDirty(true)}for(f=0,j=g.length;f<j;f++){g[f].attr.dirtyZIndex=false}}},repaint:function(){var b=this;b.repaint=Ext.emptyFn;Ext.defer(function(){delete b.repaint;b.element.repaint()},1)},renderFrame:function(){var j=this;if(!j.element){return}if(j.dirtyPredecessorCount>0){j.isPendingRenderFrame=true;return}var k=j.getRect(),n=j.getBackground(),i=j.getItems(),l,h,m;if(!k){return}j.orderByZIndex();if(j.getDirty()){j.clear();j.clearTransform();if(n){j.renderSprite(n)}for(h=0,m=i.length;h<m;h++){l=i[h];if(j.renderSprite(l)===false){return}l.attr.textPositionCount=j.textPosition}j.setDirty(false)}},renderSprite:Ext.emptyFn,clearTransform:Ext.emptyFn,destroy:function(){var b=this;b.removeAll(true);b.predecessors=null;b.successors=null;Ext.draw.SurfaceBase.prototype.destroy.call(this)}},1,["surface"],["widget","surface"],{widget:true,surface:true},["widget.surface"],0,[Ext.draw,"Surface"],0));Ext.define("Ext.draw.overrides.Surface",{override:"Ext.draw.Surface",hitTest:function(h,n){var k=this,j=k.getItems(),l,m,i;n=n||Ext.draw.sprite.Sprite.defaultHitTestOptions;for(l=j.length-1;l>=0;l--){m=j[l];if(m.hitTest){i=m.hitTest(h,n);if(i){return i}}}return null},hitTestEvent:function(d,e){var f=this.getEventXY(d);return this.hitTest(f,e)}});(Ext.cmd.derive("Ext.draw.engine.SvgContext",Ext.Base,{toSave:["strokeOpacity","strokeStyle","fillOpacity","fillStyle","globalAlpha","lineWidth","lineCap","lineJoin","lineDash","lineDashOffset","miterLimit","shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor","globalCompositeOperation","position","fillGradient","strokeGradient"],strokeOpacity:1,strokeStyle:"none",fillOpacity:1,fillStyle:"none",lineDash:[],lineDashOffset:0,globalAlpha:1,lineWidth:1,lineCap:"butt",lineJoin:"miter",miterLimit:10,shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"none",globalCompositeOperation:"src",urlStringRe:/^url\(#([\w\-]+)\)$/,constructor:function(b){this.surface=b;this.state=[];this.matrix=new Ext.draw.Matrix();this.path=null;this.clear()},clear:function(){this.group=this.surface.mainGroup;this.position=0;this.path=null},getElement:function(b){return this.surface.getSvgElement(this.group,b,this.position++)},removeElement:function(o){var o=Ext.fly(o),k,l,i,m,j,n,p;if(!o){return}if(o.dom.tagName==="g"){j=o.dom.gradients;for(p in j){j[p].destroy()}}else{k=o.getAttribute("fill");l=o.getAttribute("stroke");i=k&&k.match(this.urlStringRe);m=l&&l.match(this.urlStringRe);if(i&&i[1]){n=Ext.fly(i[1]);if(n){n.destroy()}}if(m&&m[1]){n=Ext.fly(m[1]);if(n){n.destroy()}}}o.destroy()},save:function(){var j=this.toSave,h={},i=this.getElement("g"),f,g;for(g=0;g<j.length;g++){f=j[g];if(f in this){h[f]=this[f]}}this.position=0;h.matrix=this.matrix.clone();this.state.push(h);this.group=i;return i},restore:function(){var i=this.toSave,h=this.state.pop(),j=this.group.dom.childNodes,f,g;while(j.length>this.position){this.removeElement(j[j.length-1])}for(g=0;g<i.length;g++){f=i[g];if(f in h){this[f]=h[f]}else{delete this[f]}}this.setTransform.apply(this,h.matrix.elements);this.group=this.group.getParent()},transform:function(k,h,l,j,m,n){if(this.path){var i=Ext.draw.Matrix.fly([k,h,l,j,m,n]).inverse();this.path.transform(i)}this.matrix.append(k,h,l,j,m,n)},setTransform:function(j,h,k,i,l,g){if(this.path){this.path.transform(this.matrix)}this.matrix.reset();this.transform(j,h,k,i,l,g)},scale:function(d,c){this.transform(d,0,0,c,0,0)},rotate:function(i){var j=Math.cos(i),g=Math.sin(i),f=-Math.sin(i),h=Math.cos(i);this.transform(j,g,f,h,0,0)},translate:function(d,c){this.transform(1,0,0,1,d,c)},setGradientBBox:function(b){this.bbox=b},beginPath:function(){this.path=new Ext.draw.Path()},moveTo:function(d,c){if(!this.path){this.beginPath()}this.path.moveTo(d,c);this.path.element=null},lineTo:function(d,c){if(!this.path){this.beginPath()}this.path.lineTo(d,c);this.path.element=null},rect:function(e,g,h,f){this.moveTo(e,g);this.lineTo(e+h,g);this.lineTo(e+h,g+f);this.lineTo(e,g+f);this.closePath()},strokeRect:function(e,g,h,f){this.beginPath();this.rect(e,g,h,f);this.stroke()},fillRect:function(e,g,h,f){this.beginPath();this.rect(e,g,h,f);this.fill()},closePath:function(){if(!this.path){this.beginPath()}this.path.closePath();this.path.element=null},arcSvg:function(m,i,k,j,n,h,l){if(!this.path){this.beginPath()}this.path.arcSvg(m,i,k,j,n,h,l);this.path.element=null},arc:function(g,i,h,k,l,j){if(!this.path){this.beginPath()}this.path.arc(g,i,h,k,l,j);this.path.element=null},ellipse:function(j,k,l,m,o,p,i,n){if(!this.path){this.beginPath()}this.path.ellipse(j,k,l,m,o,p,i,n);this.path.element=null},arcTo:function(h,l,i,m,j,k,n){if(!this.path){this.beginPath()}this.path.arcTo(h,l,i,m,j,k,n);this.path.element=null},bezierCurveTo:function(k,i,g,j,h,l){if(!this.path){this.beginPath()}this.path.bezierCurveTo(k,i,g,j,h,l);this.path.element=null},strokeText:function(i,g,h){i=String(i);if(this.strokeStyle){var f=this.getElement("text"),j=this.surface.getSvgElement(f,"tspan",0);this.surface.setElementAttributes(f,{x:g,y:h,transform:this.matrix.toSvg(),stroke:this.strokeStyle,fill:"none",opacity:this.globalAlpha,"stroke-opacity":this.strokeOpacity,style:"font: "+this.font,"stroke-dasharray":this.lineDash.join(","),"stroke-dashoffset":this.lineDashOffset});if(this.lineDash.length){this.surface.setElementAttributes(f,{"stroke-dasharray":this.lineDash.join(","),"stroke-dashoffset":this.lineDashOffset})}if(j.dom.firstChild){j.dom.removeChild(j.dom.firstChild)}this.surface.setElementAttributes(j,{"alignment-baseline":"alphabetic"});j.dom.appendChild(document.createTextNode(Ext.String.htmlDecode(i)))}},fillText:function(i,g,h){i=String(i);if(this.fillStyle){var f=this.getElement("text"),j=this.surface.getSvgElement(f,"tspan",0);this.surface.setElementAttributes(f,{x:g,y:h,transform:this.matrix.toSvg(),fill:this.fillStyle,opacity:this.globalAlpha,"fill-opacity":this.fillOpacity,style:"font: "+this.font});if(j.dom.firstChild){j.dom.removeChild(j.dom.firstChild)}this.surface.setElementAttributes(j,{"alignment-baseline":"alphabetic"});j.dom.appendChild(document.createTextNode(Ext.String.htmlDecode(i)))}},drawImage:function(D,v,x,u,B,q,s,F,z){var A=this,C=A.getElement("image"),w=v,y=x,E=typeof u==="undefined"?D.width:u,t=typeof B==="undefined"?D.height:B,r=null;if(typeof z!=="undefined"){r=v+" "+x+" "+u+" "+B;w=q;y=s;E=F;t=z}C.dom.setAttributeNS("http://www.w3.org/1999/xlink","href",D.src);A.surface.setElementAttributes(C,{viewBox:r,x:w,y:y,width:E,height:t,opacity:A.globalAlpha,transform:A.matrix.toSvg()})},fill:function(){if(!this.path){return}if(this.fillStyle){var h,f=this.fillGradient,g=this.bbox,e=this.path.element;if(!e){h=this.path.toString();e=this.path.element=this.getElement("path");this.surface.setElementAttributes(e,{d:h,transform:this.matrix.toSvg()})}this.surface.setElementAttributes(e,{fill:f&&g?f.generateGradient(this,g):this.fillStyle,"fill-opacity":this.fillOpacity*this.globalAlpha})}},stroke:function(){if(!this.path){return}if(this.strokeStyle){var h,e=this.strokeGradient,g=this.bbox,f=this.path.element;if(!f||!this.path.svgString){h=this.path.toString();if(!h){return}f=this.path.element=this.getElement("path");this.surface.setElementAttributes(f,{fill:"none",d:h,transform:this.matrix.toSvg()})}this.surface.setElementAttributes(f,{stroke:e&&g?e.generateGradient(this,g):this.strokeStyle,"stroke-linecap":this.lineCap,"stroke-linejoin":this.lineJoin,"stroke-width":this.lineWidth,"stroke-opacity":this.strokeOpacity*this.globalAlpha,"stroke-dasharray":this.lineDash.join(","),"stroke-dashoffset":this.lineDashOffset});if(this.lineDash.length){this.surface.setElementAttributes(f,{"stroke-dasharray":this.lineDash.join(","),"stroke-dashoffset":this.lineDashOffset})}}},fillStroke:function(i,l){var h=this,m=h.fillStyle,j=h.strokeStyle,n=h.fillOpacity,k=h.strokeOpacity;if(l===undefined){l=i.transformFillStroke}if(!l){i.inverseMatrix.toContext(h)}if(m&&n!==0){h.fill()}if(j&&k!==0){h.stroke()}},appendPath:function(b){this.path=b.clone()},setLineDash:function(b){this.lineDash=b},getLineDash:function(){return this.lineDash},createLinearGradient:function(o,l,i,n){var m=this,p=m.surface.getNextDef("linearGradient"),j=m.group.dom.gradients||(m.group.dom.gradients={}),k;m.surface.setElementAttributes(p,{x1:o,y1:l,x2:i,y2:n,gradientUnits:"userSpaceOnUse"});k=new Ext.draw.engine.SvgContext.Gradient(m,m.surface,p);j[p.dom.id]=k;return k},createRadialGradient:function(s,k,q,t,l,r){var n=this,p=n.surface.getNextDef("radialGradient"),o=n.group.dom.gradients||(n.group.dom.gradients={}),m;n.surface.setElementAttributes(p,{fx:s,fy:k,cx:t,cy:l,r:r,gradientUnits:"userSpaceOnUse"});m=new Ext.draw.engine.SvgContext.Gradient(n,n.surface,p,q/r);o[p.dom.id]=m;return m}},1,0,0,0,0,0,[Ext.draw.engine,"SvgContext"],0));(Ext.cmd.derive("Ext.draw.engine.SvgContext.Gradient",Ext.Base,{statics:{map:{}},constructor:function(l,h,k,g){var i=this.statics().map,j;j=i[k.dom.id];if(j){j.element=null}i[k.dom.id]=this;this.ctx=l;this.surface=h;this.element=k;this.position=0;this.compression=g||0},addColorStop:function(g,e){var h=this.surface.getSvgElement(this.element,"stop",this.position++),f=this.compression;this.surface.setElementAttributes(h,{offset:(((1-f)*g+f)*100).toFixed(2)+"%","stop-color":e,"stop-opacity":Ext.draw.Color.fly(e).a.toFixed(15)})},toString:function(){var b=this.element.dom.childNodes;while(b.length>this.position){Ext.fly(b[b.length-1]).destroy()}return"url(#"+this.element.getId()+")"},destroy:function(){var c=this.statics().map,d=this.element;if(d&&d.dom){delete c[d.dom.id];d.destroy()}this.callParent()}},3,0,0,0,0,0,[Ext.draw.engine.SvgContext,"Gradient"],0));(Ext.cmd.derive("Ext.draw.engine.Svg",Ext.draw.Surface,{statics:{BBoxTextCache:{}},config:{highPrecision:false},getElementConfig:function(){return{reference:"element",style:{position:"absolute"},children:[{reference:"innerElement",style:{width:"100%",height:"100%",position:"relative"},children:[{tag:"svg",reference:"svgElement",namespace:"http://www.w3.org/2000/svg",width:"100%",height:"100%",version:1.1}]}]}},constructor:function(d){var c=this;Ext.draw.Surface.prototype.constructor.call(this,d);c.mainGroup=c.createSvgNode("g");c.defElement=c.createSvgNode("defs");c.svgElement.appendChild(c.mainGroup);c.svgElement.appendChild(c.defElement);c.ctx=new Ext.draw.engine.SvgContext(c)},createSvgNode:function(d){var c=document.createElementNS("http://www.w3.org/2000/svg",d);return Ext.get(c)},getSvgElement:function(g,e,f){var h;if(g.dom.childNodes.length>f){h=g.dom.childNodes[f];if(h.tagName===e){return Ext.get(h)}else{Ext.destroy(h)}}h=Ext.get(this.createSvgNode(e));if(f===0){g.insertFirst(h)}else{h.insertAfter(Ext.fly(g.dom.childNodes[f-1]))}h.cache={};return h},setElementAttributes:function(k,g){var i=k.dom,h=k.cache,l,j;for(l in g){j=g[l];if(h[l]!==j){h[l]=j;i.setAttribute(l,j)}}},getNextDef:function(b){return this.getSvgElement(this.defElement,b,this.defPosition++)},clearTransform:function(){var b=this;b.mainGroup.set({transform:b.matrix.toSvg()})},clear:function(){this.ctx.clear();this.defPosition=0},renderSprite:function(e){var g=this,h=g.getRect(),f=g.ctx;if(e.attr.hidden||e.attr.globalAlpha===0){f.save();f.restore();return}e.element=f.save();e.preRender(this);e.useAttributes(f,h);if(false===e.render(this,f,[0,0,h[2],h[3]])){return false}e.setDirty(false);f.restore()},flatten:function(l,h){var n='<?xml version="1.0" standalone="yes"?>',k=Ext.getClassName(this),i,j,m;n+='<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" width="'+l.width+'" height="'+l.height+'">';for(m=0;m<h.length;m++){i=h[m];if(Ext.getClassName(i)!==k){continue}j=i.getRect();n+='<g transform="translate('+j[0]+","+j[1]+')">';n+=this.serializeNode(i.svgElement.dom);n+="</g>"}n+="</svg>";return{data:"data:image/svg+xml;utf8,"+encodeURIComponent(n),type:"svg"}},serializeNode:function(k){var g="",l,i,h,j;if(k.nodeType===document.TEXT_NODE){return k.nodeValue}g+="<"+k.nodeName;if(k.attributes.length){for(l=0,i=k.attributes.length;l<i;l++){h=k.attributes[l];g+=" "+h.name+'="'+h.value+'"'}}g+=">";if(k.childNodes&&k.childNodes.length){for(l=0,i=k.childNodes.length;l<i;l++){j=k.childNodes[l];g+=this.serializeNode(j)}}g+="</"+k.nodeName+">";return g},destroy:function(){var b=this;b.ctx.destroy();b.mainGroup.destroy();delete b.mainGroup;delete b.ctx;Ext.draw.Surface.prototype.destroy.call(this)},remove:function(d,c){if(d&&d.element){if(this.ctx){this.ctx.removeElement(d.element)}else{d.element.destroy()}d.element=null}Ext.draw.Surface.prototype.remove.apply(this,arguments)}},1,0,["widget","surface"],{widget:true,surface:true},0,0,[Ext.draw.engine,"Svg"],0));Ext.draw||(Ext.draw={});Ext.draw.engine||(Ext.draw.engine={});Ext.draw.engine.excanvas=true;if(!document.createElement("canvas").getContext){(function(){var aE=Math;var aS=aE.round;var aT=aE.sin;var aF=aE.cos;var at=aE.abs;var am=aE.sqrt;var aZ=10;var aX=aZ/2;var aH=+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];function aI(){return this.context_||(this.context_=new ay(this))}var aN=Array.prototype.slice;function aW(b,a,d){var c=aN.call(arguments,2);return function(){return b.apply(a,c.concat(aN.call(arguments)))}}function aw(a){return String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function i(a,b,c){Ext.onReady(function(){if(!a.namespaces[b]){a.namespaces.add(b,c,"#default#VML")}})}function ai(a){i(a,"g_vml_","urn:schemas-microsoft-com:vml");i(a,"g_o_","urn:schemas-microsoft-com:office:office");if(!a.styleSheets.ex_canvas_){var b=a.createStyleSheet();b.owningElement.id="ex_canvas_";b.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}ai(document);var aY={init:function(b){var a=b||document;a.createElement("canvas");a.attachEvent("onreadystatechange",aW(this.init_,this,a))},init_:function(c){var a=c.getElementsByTagName("canvas");for(var b=0;b<a.length;b++){this.initElement(a[b])}},initElement:function(a){if(!a.getContext){a.getContext=aI;ai(a.ownerDocument);a.innerHTML="";a.attachEvent("onpropertychange",aJ);a.attachEvent("onresize",m);var b=a.attributes;if(b.width&&b.width.specified){a.style.width=b.width.nodeValue+"px"}else{a.width=a.clientWidth}if(b.height&&b.height.specified){a.style.height=b.height.nodeValue+"px"}else{a.height=a.clientHeight}}return a}};function aJ(a){var b=a.srcElement;switch(a.propertyName){case"width":b.getContext().clearRect();b.style.width=b.attributes.width.nodeValue+"px";b.firstChild.style.width=b.clientWidth+"px";break;case"height":b.getContext().clearRect();b.style.height=b.attributes.height.nodeValue+"px";b.firstChild.style.height=b.clientHeight+"px";break}}function m(a){var b=a.srcElement;if(b.firstChild){b.firstChild.style.width=b.clientWidth+"px";b.firstChild.style.height=b.clientHeight+"px"}}aY.init();var aU=[];for(var az=0;az<16;az++){for(var aA=0;aA<16;aA++){aU[az*16+aA]=az.toString(16)+aA.toString(16)}}function aD(){return[[1,0,0],[0,1,0],[0,0,1]]}function aq(g,a){var d=aD();for(var e=0;e<3;e++){for(var b=0;b<3;b++){var f=0;for(var c=0;c<3;c++){f+=g[e][c]*a[c][b]}d[e][b]=f}}return d}function aL(a,b){b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineDash=a.lineDash;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;b.globalAlpha=a.globalAlpha;b.font=a.font;b.textAlign=a.textAlign;b.textBaseline=a.textBaseline;b.arcScaleX_=a.arcScaleX_;b.arcScaleY_=a.arcScaleY_;b.lineScale_=a.lineScale_}var a1={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",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",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",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",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function an(b){var d=b.indexOf("(",3);var c=b.indexOf(")",d+1);var a=b.substring(d+1,c).split(",");if(a.length!=4||b.charAt(3)!="a"){a[3]=1}return a}function a0(a){return parseFloat(a)/100}function aP(b,a,c){return Math.min(c,Math.max(a,b))}function ar(k){var d,g,f,h,e,a;h=parseFloat(k[0])/360%360;if(h<0){h++}e=aP(a0(k[1]),0,1);a=aP(a0(k[2]),0,1);if(e==0){d=g=f=a}else{var c=a<0.5?a*(1+e):a+e-a*e;var b=2*a-c;d=a2(b,c,h+1/3);g=a2(b,c,h);f=a2(b,c,h-1/3)}return"#"+aU[Math.floor(d*255)]+aU[Math.floor(g*255)]+aU[Math.floor(f*255)]}function a2(b,c,a){if(a<0){a++}if(a>1){a--}if(6*a<1){return b+(c-b)*6*a}else{if(2*a<1){return c}else{if(3*a<2){return b+(c-b)*(2/3-a)*6}else{return b}}}}var aB={};function av(d){if(d in aB){return aB[d]}var c,f=1;d=String(d);if(d.charAt(0)=="#"){c=d}else{if(/^rgb/.test(d)){var e=an(d);var c="#",b;for(var a=0;a<3;a++){if(e[a].indexOf("%")!=-1){b=Math.floor(a0(e[a])*255)}else{b=+e[a]}c+=aU[aP(b,0,255)]}f=+e[3]}else{if(/^hsl/.test(d)){var e=an(d);c=ar(e);f=e[3]}else{c=a1[d]||d}}}return aB[d]={color:c,alpha:f}}var aR={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var ao={};function ax(c){if(ao[c]){return ao[c]}var d=document.createElement("div");var a=d.style;try{a.font=c}catch(b){}return ao[c]={style:a.fontStyle||aR.style,variant:a.fontVariant||aR.variant,weight:a.fontWeight||aR.weight,size:a.fontSize||aR.size,family:a.fontFamily||aR.family}}function aM(a,d){var e={};for(var b in a){e[b]=a[b]}var c=parseFloat(d.currentStyle.fontSize),f=parseFloat(a.size);if(typeof a.size=="number"){e.size=a.size}else{if(a.size.indexOf("px")!=-1){e.size=f}else{if(a.size.indexOf("em")!=-1){e.size=c*f}else{if(a.size.indexOf("%")!=-1){e.size=(c/100)*f}else{if(a.size.indexOf("pt")!=-1){e.size=f/0.75}else{e.size=c}}}}}e.size*=0.981;return e}function aC(a){return a.style+" "+a.variant+" "+a.weight+" "+a.size+"px "+a.family}var aO={butt:"flat",round:"round"};function ah(a){return aO[a]||"square"}function ay(c){this.m_=aD();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineDash=[];this.lineCap="butt";this.miterLimit=aZ*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=c;var a="width:"+c.clientWidth+"px;height:"+c.clientHeight+"px;overflow:hidden;position:absolute";var b=c.ownerDocument.createElement("div");b.style.cssText=a;c.appendChild(b);var d=b.cloneNode(false);d.style.backgroundColor="red";d.style.filter="alpha(opacity=0)";c.appendChild(d);this.element_=b;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var aQ=ay.prototype;aQ.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};aQ.beginPath=function(){this.currentPath_=[]};aQ.moveTo=function(b,c){var a=p(this,b,c);this.currentPath_.push({type:"moveTo",x:a.x,y:a.y});this.currentX_=a.x;this.currentY_=a.y};aQ.lineTo=function(b,c){var a=p(this,b,c);this.currentPath_.push({type:"lineTo",x:a.x,y:a.y});this.currentX_=a.x;this.currentY_=a.y};aQ.bezierCurveTo=function(b,c,e,f,g,k){var d=p(this,g,k);var h=p(this,b,c);var a=p(this,e,f);ap(this,h,a,d)};function ap(c,d,a,b){c.currentPath_.push({type:"bezierCurveTo",cp1x:d.x,cp1y:d.y,cp2x:a.x,cp2y:a.y,x:b.x,y:b.y});c.currentX_=b.x;c.currentY_=b.y}aQ.quadraticCurveTo=function(b,a,e,f){var c=p(this,b,a);var d=p(this,e,f);var h={x:this.currentX_+2/3*(c.x-this.currentX_),y:this.currentY_+2/3*(c.y-this.currentY_)};var g={x:h.x+(d.x-this.currentX_)/3,y:h.y+(d.y-this.currentY_)/3};ap(this,h,g,d)};aQ.arc=function(k,n,l,r,d,b){l*=aZ;var c=b?"at":"wa";var h=k+aF(r)*l-aX;var f=n+aT(r)*l-aX;var e=k+aF(d)*l-aX;var g=n+aT(d)*l-aX;if(h==e&&!b){h+=0.125}var a=p(this,k,n);var o=p(this,h,f);var q=p(this,e,g);this.currentPath_.push({type:c,x:a.x,y:a.y,radius:l,xStart:o.x,yStart:o.y,xEnd:q.x,yEnd:q.y})};aQ.rect=function(a,b,c,d){this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+d);this.lineTo(a,b+d);this.closePath()};aQ.strokeRect=function(a,b,c,e){var d=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+e);this.lineTo(a,b+e);this.closePath();this.stroke();this.currentPath_=d};aQ.fillRect=function(a,b,c,e){var d=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+c,b);this.lineTo(a+c,b+e);this.lineTo(a,b+e);this.closePath();this.fill();this.currentPath_=d};aQ.createLinearGradient=function(b,e,c,a){var d=new Z("gradient");d.x0_=b;d.y0_=e;d.x1_=c;d.y1_=a;return d};aQ.createRadialGradient=function(g,c,a,d,f,e){var b=new Z("gradientradial");b.x0_=g;b.y0_=c;b.r0_=a;b.x1_=d;b.y1_=f;b.r1_=e;return b};aQ.drawImage=function(l,r){var v,a,s,e,o,q,k,b;var u=l.runtimeStyle.width;var n=l.runtimeStyle.height;l.runtimeStyle.width="auto";l.runtimeStyle.height="auto";var w=l.width;var g=l.height;l.runtimeStyle.width=u;l.runtimeStyle.height=n;if(arguments.length==3){v=arguments[1];a=arguments[2];o=q=0;k=s=w;b=e=g}else{if(arguments.length==5){v=arguments[1];a=arguments[2];s=arguments[3];e=arguments[4];o=q=0;k=w;b=g}else{if(arguments.length==9){o=arguments[1];q=arguments[2];k=arguments[3];b=arguments[4];v=arguments[5];a=arguments[6];s=arguments[7];e=arguments[8]}else{throw Error("Invalid number of arguments")}}}var c=p(this,v,a);var d=[];var t=10;var f=10;var h=this.m_;d.push(" <g_vml_:group",' coordsize="',aZ*t,",",aZ*f,'"',' coordorigin="0,0"',' style="width:',aS(t*h[0][0]),"px;height:",aS(f*h[1][1]),"px;position:absolute;","top:",aS(c.y/aZ),"px;left:",aS(c.x/aZ),"px; rotation:",aS(Math.atan(h[0][1]/h[1][1])*180/Math.PI),";");d.push('" >','<g_vml_:image src="',l.src,'"',' style="width:',aZ*s,"px;"," height:",aZ*e,'px"',' cropleft="',o/w,'"',' croptop="',q/g,'"',' cropright="',(w-o-k)/w,'"',' cropbottom="',(g-q-b)/g,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",d.join(""))};aQ.setLineDash=function(a){if(a.length===1){a=a.slice();a[1]=a[0]}this.lineDash=a};aQ.getLineDash=function(){return this.lineDash};aQ.stroke=function(e){var g=[];var b=10;var d=10;g.push("<g_vml_:shape",' filled="',!!e,'"',' style="position:absolute;width:',b,"px;height:",d,'px;left:0px;top:0px;"',' coordorigin="0,0"',' coordsize="',aZ*b,",",aZ*d,'"',' stroked="',!e,'"',' path="');var a={x:null,y:null};var f={x:null,y:null};for(var k=0;k<this.currentPath_.length;k++){var c=this.currentPath_[k];var h;switch(c.type){case"moveTo":h=c;g.push(" m ",aS(c.x),",",aS(c.y));break;case"lineTo":g.push(" l ",aS(c.x),",",aS(c.y));break;case"close":g.push(" x ");c=null;break;case"bezierCurveTo":g.push(" c ",aS(c.cp1x),",",aS(c.cp1y),",",aS(c.cp2x),",",aS(c.cp2y),",",aS(c.x),",",aS(c.y));break;case"at":case"wa":g.push(" ",c.type," ",aS(c.x-this.arcScaleX_*c.radius),",",aS(c.y-this.arcScaleY_*c.radius)," ",aS(c.x+this.arcScaleX_*c.radius),",",aS(c.y+this.arcScaleY_*c.radius)," ",aS(c.xStart),",",aS(c.yStart)," ",aS(c.xEnd),",",aS(c.yEnd));break}if(c){if(a.x==null||c.x<a.x){a.x=c.x}if(f.x==null||c.x>f.x){f.x=c.x}if(a.y==null||c.y<a.y){a.y=c.y}if(f.y==null||c.y>f.y){f.y=c.y}}}g.push(' ">');if(!e){aK(this,g)}else{au(this,g,a,f)}g.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",g.join(""))};function aK(a,b){var c=av(a.strokeStyle);var f=c.color;var e=c.alpha*a.globalAlpha;var d=a.lineScale_*a.lineWidth;if(d<1){e*=d}b.push("<g_vml_:stroke",' opacity="',e,'"',' joinstyle="',a.lineJoin,'"',' dashstyle="',a.lineDash.join(" "),'"',' miterlimit="',a.miterLimit,'"',' endcap="',ah(a.lineCap),'"',' weight="',d,'px"',' color="',f,'" />')}function au(l,v,A,k){var u=l.fillStyle;var J=l.arcScaleX_;var K=l.arcScaleY_;var N=k.x-A.x;var L=k.y-A.y;if(u instanceof Z){var q=0;var F={x:0,y:0};var d=0;var r=1;if(u.type_=="gradient"){var s=u.x0_/J;var M=u.y0_/K;var t=u.x1_/J;var y=u.y1_/K;var B=p(l,s,M);var C=p(l,t,y);var x=C.x-B.x;var a=C.y-B.y;q=Math.atan2(x,a)*180/Math.PI;if(q<0){q+=360}if(q<0.000001){q=0}}else{var B=p(l,u.x0_,u.y0_);F={x:(B.x-A.x)/N,y:(B.y-A.y)/L};N/=J*aZ;L/=K*aZ;var H=aE.max(N,L);d=2*u.r0_/H;r=2*u.r1_/H-d}var f=u.colors_;f.sort(function(P,O){return P.offset-O.offset});var n=f.length;var g=f[0].color;var h=f[n-1].color;var b=f[0].alpha*l.globalAlpha;var c=f[n-1].alpha*l.globalAlpha;var G=[];for(var D=0;D<n;D++){var o=f[D];G.push(o.offset*r+d+" "+o.color)}v.push('<g_vml_:fill type="',u.type_,'"',' method="none" focus="100%"',' color="',g,'"',' color2="',h,'"',' colors="',G.join(","),'"',' opacity="',c,'"',' g_o_:opacity2="',b,'"',' angle="',q,'"',' focusposition="',F.x,",",F.y,'" />')}else{if(u instanceof ag){if(N&&L){var w=-A.x;var I=-A.y;v.push("<g_vml_:fill",' position="',w/N*J*J,",",I/L*K*K,'"',' type="tile"',' src="',u.src_,'" />')}}else{var z=av(l.fillStyle);var e=z.color;var E=z.alpha*l.globalAlpha;v.push('<g_vml_:fill color="',e,'" opacity="',E,'" />')}}}aQ.fill=function(){this.$stroke(true)};aQ.closePath=function(){this.currentPath_.push({type:"close"})};function p(a,d,c){var b=a.m_;return{x:aZ*(d*b[0][0]+c*b[1][0]+b[2][0])-aX,y:aZ*(d*b[0][1]+c*b[1][1]+b[2][1])-aX}}aQ.save=function(){var a={};aL(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=aq(aD(),this.m_)};aQ.restore=function(){if(this.aStack_.length){aL(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function aV(a){return isFinite(a[0][0])&&isFinite(a[0][1])&&isFinite(a[1][0])&&isFinite(a[1][1])&&isFinite(a[2][0])&&isFinite(a[2][1])}function aG(a,b,d){if(!aV(b)){return}a.m_=b;if(d){var c=b[0][0]*b[1][1]-b[0][1]*b[1][0];a.lineScale_=am(at(c))}}aQ.translate=function(a,b){var c=[[1,0,0],[0,1,0],[a,b,1]];aG(this,aq(c,this.m_),false)};aQ.rotate=function(b){var d=aF(b);var a=aT(b);var c=[[d,a,0],[-a,d,0],[0,0,1]];aG(this,aq(c,this.m_),false)};aQ.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;var c=[[a,0,0],[0,b,0],[0,0,1]];aG(this,aq(c,this.m_),true)};aQ.transform=function(g,f,b,c,d,e){var a=[[g,f,0],[b,c,0],[d,e,1]];aG(this,aq(a,this.m_),true)};aQ.setTransform=function(c,g,a,b,f,d){var e=[[c,g,0],[a,b,0],[f,d,1]];aG(this,e,true)};aQ.drawText_=function(l,o,r,g,t){var h=this.m_,c=1000,q=0,d=c,u={x:0,y:0},v=[];var s=aM(ax(this.font),this.element_);var f=aC(s);var b=this.element_.currentStyle;var a=this.textAlign.toLowerCase();switch(a){case"left":case"center":case"right":break;case"end":a=b.direction=="ltr"?"right":"left";break;case"start":a=b.direction=="rtl"?"right":"left";break;default:a="left"}switch(this.textBaseline){case"hanging":case"top":u.y=s.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":u.y=-s.size/3;break}switch(a){case"right":q=c;d=0.05;break;case"center":q=d=c/2;break}var e=p(this,o+u.x,r+u.y);v.push('<g_vml_:line from="',-q,' 0" to="',d,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!t,'" stroked="',!!t,'" style="position:absolute;width:1px;height:1px;left:0px;top:0px;">');if(t){aK(this,v)}else{au(this,v,{x:-q,y:0},{x:d,y:s.size})}var k=h[0][0].toFixed(3)+","+h[1][0].toFixed(3)+","+h[0][1].toFixed(3)+","+h[1][1].toFixed(3)+",0,0";var n=aS(e.x/aZ)+","+aS(e.y/aZ);v.push('<g_vml_:skew on="t" matrix="',k,'" ',' offset="',n,'" origin="',q,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',aw(l),'" style="v-text-align:',a,";font:",aw(f),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",v.join(""))};aQ.fillText=function(a,c,d,b){this.drawText_(a,c,d,b,false)};aQ.strokeText=function(a,c,d,b){this.drawText_(a,c,d,b,true)};aQ.measureText=function(a){if(!this.textMeasureEl_){var c='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",c);this.textMeasureEl_=this.element_.lastChild}var b=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};aQ.clip=function(){};aQ.arcTo=function(){};aQ.createPattern=function(a,b){return new ag(a,b)};function Z(a){this.type_=a;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}Z.prototype.addColorStop=function(a,b){b=av(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};function ag(a,b){aj(a);switch(b){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=b;break;default:al("SYNTAX_ERR")}this.src_=a.src;this.width_=a.width;this.height_=a.height}function al(a){throw new ak(a)}function aj(a){if(!a||a.nodeType!=1||a.tagName!="IMG"){al("TYPE_MISMATCH_ERR")}if(a.readyState!="complete"){al("INVALID_STATE_ERR")}}function ak(a){this.code=this[a];this.message=a+": DOM Exception "+this.code}var j=ak.prototype=new Error();j.INDEX_SIZE_ERR=1;j.DOMSTRING_SIZE_ERR=2;j.HIERARCHY_REQUEST_ERR=3;j.WRONG_DOCUMENT_ERR=4;j.INVALID_CHARACTER_ERR=5;j.NO_DATA_ALLOWED_ERR=6;j.NO_MODIFICATION_ALLOWED_ERR=7;j.NOT_FOUND_ERR=8;j.NOT_SUPPORTED_ERR=9;j.INUSE_ATTRIBUTE_ERR=10;j.INVALID_STATE_ERR=11;j.SYNTAX_ERR=12;j.INVALID_MODIFICATION_ERR=13;j.NAMESPACE_ERR=14;j.INVALID_ACCESS_ERR=15;j.VALIDATION_ERR=16;j.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=aY;CanvasRenderingContext2D=ay;CanvasGradient=Z;CanvasPattern=ag;DOMException=ak})()}(Ext.cmd.derive("Ext.draw.engine.Canvas",Ext.draw.Surface,{config:{highPrecision:false},statics:{contextOverrides:{setGradientBBox:function(b){this.bbox=b},fill:function(){var j=this.fillStyle,g=this.fillGradient,f=this.fillOpacity,i=this.globalAlpha,h=this.bbox;if(j!==Ext.draw.Color.RGBA_NONE&&f!==0){if(g&&h){this.fillStyle=g.generateGradient(this,h)}if(f!==1){this.globalAlpha=i*f}this.$fill();if(f!==1){this.globalAlpha=i}if(g&&h){this.fillStyle=j}}},stroke:function(){var h=this.strokeStyle,j=this.strokeGradient,g=this.strokeOpacity,f=this.globalAlpha,i=this.bbox;if(h!==Ext.draw.Color.RGBA_NONE&&g!==0){if(j&&i){this.strokeStyle=j.generateGradient(this,i)}if(g!==1){this.globalAlpha=f*g}this.$stroke();if(g!==1){this.globalAlpha=f}if(j&&i){this.strokeStyle=h}}},fillStroke:function(q,p){var k=this,l=this.fillStyle,m=this.fillOpacity,o=this.strokeStyle,r=this.strokeOpacity,s=k.shadowColor,t=k.shadowBlur,n=Ext.draw.Color.RGBA_NONE;if(p===undefined){p=q.transformFillStroke}if(!p){q.inverseMatrix.toContext(k)}if(l!==n&&m!==0){k.fill();k.shadowColor=n;k.shadowBlur=0}if(o!==n&&r!==0){k.stroke()}k.shadowColor=s;k.shadowBlur=t},setLineDash:function(b){if(this.$setLineDash){this.$setLineDash(b)}},getLineDash:function(){if(this.$getLineDash){return this.$getLineDash()}},ellipse:function(n,p,r,t,k,s,o,q){var l=Math.cos(k),m=Math.sin(k);this.transform(l*r,m*r,-m*t,l*t,n,p);this.arc(0,0,1,s,o,q);this.transform(l/r,-m/t,m/r,l/t,-(l*n+m*p)/r,(m*n-l*p)/t)},appendPath:function(k){var l=this,n=0,h=0,i=k.commands,j=k.params,m=i.length;l.beginPath();for(;n<m;n++){switch(i[n]){case"M":l.moveTo(j[h],j[h+1]);h+=2;break;case"L":l.lineTo(j[h],j[h+1]);h+=2;break;case"C":l.bezierCurveTo(j[h],j[h+1],j[h+2],j[h+3],j[h+4],j[h+5]);h+=6;break;case"Z":l.closePath();break}}},save:function(){var j=this.toSave,i=j.length,h=i&&{},f=0,g;for(;f<i;f++){g=j[f];if(g in this){h[g]=this[g]}}this.state.push(h);this.$save()},restore:function(){var c=this.state.pop(),d;if(c){for(d in c){this[d]=c[d]}}this.$restore()}}},splitThreshold:3000,toSave:["fillGradient","strokeGradient"],element:{reference:"element",style:{position:"absolute"},children:[{reference:"innerElement",style:{width:"100%",height:"100%",position:"relative"}}]},createCanvas:function(){var h=Ext.Element.create({tag:"canvas",cls:"x-surface-canvas"});window.G_vmlCanvasManager&&G_vmlCanvasManager.initElement(h.dom);var g=Ext.draw.engine.Canvas.contextOverrides,f=h.dom.getContext("2d"),e;if(f.ellipse){delete g.ellipse}f.state=[];f.toSave=this.toSave;for(e in g){f["$"+e]=f[e]}Ext.apply(f,g);if(this.getHighPrecision()){this.enablePrecisionCompensation(f)}else{this.disablePrecisionCompensation(f)}this.innerElement.appendChild(h);this.canvases.push(h);this.contexts.push(f)},updateHighPrecision:function(i){var h=this.contexts,j=h.length,f,g;for(f=0;f<j;f++){g=h[f];if(i){this.enablePrecisionCompensation(g)}else{this.disablePrecisionCompensation(g)}}},precisionNames:["rect","fillRect","strokeRect","clearRect","moveTo","lineTo","arc","arcTo","save","restore","updatePrecisionCompensate","setTransform","transform","scale","translate","rotate","quadraticCurveTo","bezierCurveTo","createLinearGradient","createRadialGradient","fillText","strokeText","drawImage"],disablePrecisionCompensation:function(g){var h=Ext.draw.engine.Canvas.contextOverrides,i=this.precisionNames,j=i.length,k,l;for(k=0;k<j;k++){l=i[k];if(!(l in h)){delete g[l]}}this.setDirty(true)},enablePrecisionCompensation:function(o){var v=this,x=1,r=1,m=0,n=0,p=new Ext.draw.Matrix(),w=[],t={},u=Ext.draw.engine.Canvas.contextOverrides,q=o.constructor.prototype;var s={toSave:v.toSave,rect:function(a,b,d,c){return q.rect.call(this,a*x+m,b*r+n,d*x,c*r)},fillRect:function(a,b,d,c){this.updatePrecisionCompensateRect();q.fillRect.call(this,a*x+m,b*r+n,d*x,c*r);this.updatePrecisionCompensate()},strokeRect:function(a,b,d,c){this.updatePrecisionCompensateRect();q.strokeRect.call(this,a*x+m,b*r+n,d*x,c*r);this.updatePrecisionCompensate()},clearRect:function(a,b,d,c){return q.clearRect.call(this,a*x+m,b*r+n,d*x,c*r)},moveTo:function(a,b){return q.moveTo.call(this,a*x+m,b*r+n)},lineTo:function(a,b){return q.lineTo.call(this,a*x+m,b*r+n)},arc:function(f,b,a,d,e,c){this.updatePrecisionCompensateRect();q.arc.call(this,f*x+m,b*x+n,a*x,d,e,c);this.updatePrecisionCompensate()},arcTo:function(d,b,e,c,a){this.updatePrecisionCompensateRect();q.arcTo.call(this,d*x+m,b*r+n,e*x+m,c*r+n,a*x);this.updatePrecisionCompensate()},save:function(){w.push(p);p=p.clone();u.save.call(this);q.save.call(this)},restore:function(){p=w.pop();u.restore.call(this);q.restore.call(this);this.updatePrecisionCompensate()},updatePrecisionCompensate:function(){p.precisionCompensate(v.devicePixelRatio,t);x=t.xx;r=t.yy;m=t.dx;n=t.dy;q.setTransform.call(this,v.devicePixelRatio,t.b,t.c,t.d,0,0)},updatePrecisionCompensateRect:function(){p.precisionCompensateRect(v.devicePixelRatio,t);x=t.xx;r=t.yy;m=t.dx;n=t.dy;q.setTransform.call(this,v.devicePixelRatio,t.b,t.c,t.d,0,0)},setTransform:function(c,e,f,a,b,d){p.set(c,e,f,a,b,d);this.updatePrecisionCompensate()},transform:function(c,e,f,a,b,d){p.append(c,e,f,a,b,d);this.updatePrecisionCompensate()},scale:function(b,a){this.transform(b,0,0,a,0,0)},translate:function(b,a){this.transform(1,0,0,1,b,a)},rotate:function(b){var c=Math.cos(b),a=Math.sin(b);this.transform(c,a,-a,c,0,0)},quadraticCurveTo:function(d,b,a,c){q.quadraticCurveTo.call(this,d*x+m,b*r+n,a*x+m,c*r+n)},bezierCurveTo:function(b,d,e,f,a,c){q.bezierCurveTo.call(this,b*x+m,d*r+n,e*x+m,f*r+n,a*x+m,c*r+n)},createLinearGradient:function(e,c,a,d){this.updatePrecisionCompensateRect();var b=q.createLinearGradient.call(this,e*x+m,c*r+n,a*x+m,d*r+n);this.updatePrecisionCompensate();return b},createRadialGradient:function(e,c,f,g,d,a){this.updatePrecisionCompensateRect();var b=q.createLinearGradient.call(this,e*x+m,c*x+n,f*x,g*x+m,d*x+n,a*x);this.updatePrecisionCompensate();return b},fillText:function(c,a,b,d){q.setTransform.apply(this,p.elements);if(typeof d==="undefined"){q.fillText.call(this,c,a,b)}else{q.fillText.call(this,c,a,b,d)}this.updatePrecisionCompensate()},strokeText:function(c,a,b,d){q.setTransform.apply(this,p.elements);if(typeof d==="undefined"){q.strokeText.call(this,c,a,b)}else{q.strokeText.call(this,c,a,b,d)}this.updatePrecisionCompensate()},fill:function(){var a=this.fillGradient,b=this.bbox;this.updatePrecisionCompensateRect();if(a&&b){this.fillStyle=a.generateGradient(this,b)}q.fill.call(this);this.updatePrecisionCompensate()},stroke:function(){var a=this.strokeGradient,b=this.bbox;this.updatePrecisionCompensateRect();if(a&&b){this.strokeStyle=a.generateGradient(this,b)}q.stroke.call(this);this.updatePrecisionCompensate()},drawImage:function(g,i,a,b,c,d,e,f,h){switch(arguments.length){case 3:return q.drawImage.call(this,g,i*x+m,a*r+n);case 5:return q.drawImage.call(this,g,i*x+m,a*r+n,b*x,c*r);case 9:return q.drawImage.call(this,g,i,a,b,c,d*x+m,e*r*n,f*x,h*r)}}};Ext.apply(o,s);this.setDirty(true)},updateRect:function(P){Ext.draw.Surface.prototype.updateRect.call(this,P);var t=this,G=Math.floor(P[0]),M=Math.floor(P[1]),K=Math.ceil(P[0]+P[2]),w=Math.ceil(P[1]+P[3]),k=t.devicePixelRatio,r=t.canvases,N=K-G,h=w-M,I=Math.round(t.splitThreshold/k),O=t.xSplits=Math.ceil(N/I),L=t.ySplits=Math.ceil(h/I),j,l,E,F,b,i,H,J;for(l=0,b=0;l<L;l++,b+=I){for(j=0,F=0;j<O;j++,F+=I){E=l*O+j;if(E>=r.length){t.createCanvas()}i=r[E].dom;i.style.left=F+"px";i.style.top=b+"px";J=Math.min(I,h-b);if(J*k!==i.height){i.height=J*k;i.style.height=J+"px"}H=Math.min(I,N-F);if(H*k!==i.width){i.width=H*k;i.style.width=H+"px"}t.applyDefaults(t.contexts[E])}}for(E+=1;E<r.length;E++){r[E].destroy()}t.activeCanvases=O*L;r.length=t.activeCanvases;t.clear()},clearTransform:function(){var o=this,t=o.xSplits,n=o.ySplits,q=o.contexts,k=o.splitThreshold,j=o.devicePixelRatio,p,r,s,i;for(p=0;p<t;p++){for(r=0;r<n;r++){s=r*t+p;i=q[s];i.translate(-k*p,-k*r);i.scale(j,j);o.matrix.toContext(i)}}},renderSprite:function(I){var F=this,U=F.getRect(),R=F.matrix,P=I.getParent(),k=Ext.draw.Matrix.fly([1,0,0,1,0,0]),K=F.splitThreshold/F.devicePixelRatio,T=F.xSplits,N=F.ySplits,J,h,E,V,G,L,S=0,H,M=0,Q,O=U[2],i=U[3],j,w,D;while(P&&(P!==F)){k.prependMatrix(P.matrix||P.attr&&P.attr.matrix);P=P.getParent()}k.prependMatrix(R);V=I.getBBox();if(V){V=k.transformBBox(V)}I.preRender(F);if(I.attr.hidden||I.attr.globalAlpha===0){I.setDirty(false);return}for(w=0,h=0;w<N;w++,h+=K){for(j=0,J=0;j<T;j++,J+=K){D=w*T+j;E=F.contexts[D];G=Math.min(K,O-J);L=Math.min(K,i-h);S=J;H=S+G;M=h;Q=M+L;if(V){if(V.x>H||V.x+V.width<S||V.y>Q||V.y+V.height<M){continue}}E.save();I.useAttributes(E,U);if(false===I.render(F,E,[S,M,G,L],U)){return false}E.restore()}}I.setDirty(false)},flatten:function(i,x){var p=document.createElement("canvas"),s=Ext.getClassName(this),r=this.devicePixelRatio,o=p.getContext("2d"),w,v,q,t,u,j;p.width=Math.ceil(i.width*r);p.height=Math.ceil(i.height*r);for(t=0;t<x.length;t++){w=x[t];if(Ext.getClassName(w)!==s){continue}q=w.getRect();for(u=0;u<w.canvases.length;u++){v=w.canvases[u];j=v.getOffsetsTo(v.getParent());o.drawImage(v.dom,(q[0]+j[0])*r,(q[1]+j[1])*r)}}return{data:p.toDataURL(),type:"png"}},applyDefaults:function(d){var c=Ext.draw.Color.RGBA_NONE;d.strokeStyle=c;d.fillStyle=c;d.textAlign="start";d.textBaseline="alphabetic";d.miterLimit=1},clear:function(){var i=this,h=i.activeCanvases,j,f,g;for(j=0;j<h;j++){f=i.canvases[j].dom;g=i.contexts[j];g.setTransform(1,0,0,1,0,0);g.clearRect(0,0,f.width,f.height)}i.setDirty(true)},destroy:function(){var f=this,e,d=f.canvases.length;for(e=0;e<d;e++){f.contexts[e]=null;f.canvases[e].destroy();f.canvases[e]=null}delete f.contexts;delete f.canvases;Ext.draw.Surface.prototype.destroy.call(this)},privates:{initElement:function(){var b=this;Ext.draw.Surface.prototype.initElement.call(this);b.canvases=[];b.contexts=[];b.activeCanvases=(b.xSplits=0)*(b.ySplits=0)}}},0,0,["widget","surface"],{widget:true,surface:true},0,0,[Ext.draw.engine,"Canvas"],function(){var f=this,d=f.prototype,e=10000000000;if(Ext.os.is.Android4&&Ext.browser.is.Chrome){e=3000}else{if(Ext.is.iOS){e=2200}}d.splitThreshold=e}));(Ext.cmd.derive("Ext.draw.Container",Ext.draw.ContainerBase,{alternateClassName:"Ext.draw.Component",defaultType:"surface",isDrawContainer:true,engine:"Ext.draw.engine.Canvas",config:{cls:"x-draw-container",resizeHandler:null,sprites:null,gradients:[]},defaultDownloadServerUrl:"http://svg.sencha.io",supportedFormats:["png","pdf","jpeg","gif"],supportedOptions:{version:Ext.isNumber,data:Ext.isString,format:function(b){return Ext.Array.indexOf(this.supportedFormats,b)>=0},filename:Ext.isString,width:Ext.isNumber,height:Ext.isNumber,scale:Ext.isNumber,pdf:Ext.isObject,jpeg:Ext.isObject},initAnimator:function(){this.frameCallbackId=Ext.draw.Animator.addFrameCallback("renderFrame",this)},applyGradients:function(g){var h=[],l,i,k,j;if(!Ext.isArray(g)){return h}for(l=0,i=g.length;l<i;l++){k=g[l];if(!Ext.isObject(k)){continue}if(typeof k.type!=="string"){k.type="linear"}if(k.angle){k.degrees=k.angle;delete k.angle}if(Ext.isObject(k.stops)){k.stops=(function(a){var c=[],b;for(j in a){b=a[j];b.offset=j/100;c.push(b)}return c})(k.stops)}h.push(k)}Ext.draw.gradient.GradientDefinition.add(h);return h},applySprites:function(i){if(!i){return}i=Ext.Array.from(i);var j=i.length,g=[],k,h,l;for(k=0;k<j;k++){l=i[k];h=l.surface;if(!(h&&h.isSurface)){if(Ext.isString(h)){h=this.getSurface(h)}else{h=this.getSurface("main")}}l=h.add(l);g.push(l)}return g},onBodyResize:function(){var c=this.element,d;if(!c){return}d=c.getSize();if(d.width&&d.height){this.setBodySize(d)}},setBodySize:function(h){var g=this,e=g.getResizeHandler()||g.defaultResizeHandler,f;g.fireEvent("bodyresize",g,h);f=e.call(g,h);if(f!==false){g.renderFrame()}},defaultResizeHandler:function(b){this.getItems().each(function(a){a.setRect([0,0,b.width,b.height])})},getSurface:function(g){g=this.getId()+"-"+(g||"main");var h=this,e=h.getItems(),f=e.get(g);if(!f){f=h.add({xclass:h.engine,id:g});h.onBodyResize()}return f},renderFrame:function(){var h=this,g=h.getItems(),f,i,j;for(f=0,i=g.length;f<i;f++){j=g.items[f];if(j.isSurface){j.renderFrame()}}},getImage:function(j){var i=this.innerElement.getSize(),t=Array.prototype.slice.call(this.items.items),q,n,r=this.surfaceZIndexes,o,p,s,m;for(p=1;p<t.length;p++){s=t[p];m=r[s.type];o=p-1;while(o>=0&&r[t[o].type]>m){t[o+1]=t[o];o--}t[o+1]=s}q=t[0].flatten(i,t);if(j==="image"){n=new Image();n.src=q.data;q.data=n;return q}if(j==="stream"){q.data=q.data.replace(/^data:image\/[^;]+/,"data:application/octet-stream");return q}return q},download:function(k){var j=this,h=[],g,l,i;k=Ext.apply({version:2,data:j.getImage().data},k);for(l in k){if(k.hasOwnProperty(l)){i=k[l];if(l in j.supportedOptions){if(j.supportedOptions[l].call(j,i)){h.push({tag:"input",type:"hidden",name:l,value:Ext.String.htmlEncode(Ext.isObject(i)?Ext.JSON.encode(i):i)})}}}}g=Ext.dom.Helper.markup({tag:"html",children:[{tag:"head"},{tag:"body",children:[{tag:"form",method:"POST",action:k.url||j.defaultDownloadServerUrl,children:h},{tag:"script",type:"text/javascript",children:'document.getElementsByTagName("form")[0].submit();'}]}]});window.open("","ImageDownload_"+Date.now()).document.write(g)},destroy:function(){var b=this.frameCallbackId;if(b){Ext.draw.Animator.removeFrameCallback(b)}Ext.draw.ContainerBase.prototype.destroy.call(this)}},0,["draw"],["component","box","container","panel","draw"],{component:true,box:true,container:true,panel:true,draw:true},["widget.draw"],0,[Ext.draw,"Container",Ext.draw,"Component"],function(){if(location.search.match("svg")){Ext.draw.Container.prototype.engine="Ext.draw.engine.Svg"}else{if((Ext.os.is.BlackBerry&&Ext.os.version.getMajor()===10)||(Ext.browser.is.AndroidStock4&&(Ext.os.version.getMinor()===1||Ext.os.version.getMinor()===2||Ext.os.version.getMinor()===3))){Ext.draw.Container.prototype.engine="Ext.draw.engine.Svg"}}}));(Ext.cmd.derive("Ext.chart.theme.Base",Ext.Base,{factoryConfig:{type:"chart.theme"},isTheme:true,config:{baseColor:null,colors:undefined,gradients:null,chart:{defaults:{background:"white"}},axis:{defaults:{label:{x:0,y:0,textBaseline:"middle",textAlign:"center",fontSize:"default",fontFamily:"default",fontWeight:"default",fillStyle:"black"},title:{fillStyle:"black",fontSize:"default*1.23",fontFamily:"default",fontWeight:"default"},style:{strokeStyle:"black"},grid:{strokeStyle:"rgb(221, 221, 221)"}},top:{style:{textPadding:5}},bottom:{style:{textPadding:5}}},series:{defaults:{label:{fillStyle:"black",strokeStyle:"none",fontFamily:"default",fontWeight:"default",fontSize:"default*1.077",textBaseline:"middle",textAlign:"center"},labelOverflowPadding:5}},sprites:{text:{fontSize:"default",fontWeight:"default",fontFamily:"default",fillStyle:"black"}},seriesThemes:undefined,markerThemes:{type:["circle","cross","plus","square","triangle","diamond"]},useGradients:false,background:null},colorDefaults:["#94ae0a","#115fa6","#a61120","#ff8809","#ffd13e","#a61187","#24ad9a","#7c7474","#a66111"],constructor:function(b){this.initConfig(b);this.resolveDefaults()},defaultRegEx:/^default([+\-/\*]\d+(?:\.\d+)?)?$/,defaultOperators:{"*":function(c,d){return c*d},"+":function(c,d){return c+d},"-":function(c,d){return c-d}},resolveDefaults:function(){var b=this;Ext.onReady(function(){var i=Ext.clone(b.getSprites()),j=Ext.clone(b.getAxis()),k=Ext.clone(b.getSeries()),h,l,a;if(!b.superclass.defaults){h=Ext.getBody().createChild({tag:"div",cls:"x-component"});b.superclass.defaults={fontFamily:h.getStyle("fontFamily"),fontWeight:h.getStyle("fontWeight"),fontSize:parseFloat(h.getStyle("fontSize")),fontVariant:h.getStyle("fontVariant"),fontStyle:h.getStyle("fontStyle")};h.destroy()}b.replaceDefaults(i.text);b.setSprites(i);for(l in j){a=j[l];b.replaceDefaults(a.label);b.replaceDefaults(a.title)}b.setAxis(j);for(l in k){a=k[l];b.replaceDefaults(a.label)}b.setSeries(k)})},replaceDefaults:function(k){var n=this,l=n.superclass.defaults,j=n.defaultRegEx,o,m,p,i;if(Ext.isObject(k)){for(o in l){p=j.exec(k[o]);if(p){m=l[o];p=p[1];if(p){i=n.defaultOperators[p.charAt(0)];m=Math.round(i(m,parseFloat(p.substr(1))))}k[o]=m}}}},applyBaseColor:function(f){var e,d;if(f){e=f.isColor?f:Ext.draw.Color.fromString(f);d=e.getHSL()[2];if(d<0.15){e=e.createLighter(0.3)}else{if(d<0.3){e=e.createLighter(0.15)}else{if(d>0.85){e=e.createDarker(0.3)}else{if(d>0.7){e=e.createDarker(0.15)}}}}this.setColors([e.createDarker(0.3).toString(),e.createDarker(0.15).toString(),e.toString(),e.createLighter(0.12).toString(),e.createLighter(0.24).toString(),e.createLighter(0.31).toString()])}return f},applyColors:function(b){return b||this.colorDefaults},updateUseGradients:function(b){if(b){this.updateGradients({type:"linear",degrees:90})}},updateBackground:function(d){if(d){var c=this.getChart();c.defaults.background=d;this.setChart(c)}},updateGradients:function(j){var p=this.getColors(),n=[],k,i,o,m,l;if(Ext.isObject(j)){for(m=0,l=p&&p.length||0;m<l;m++){i=Ext.draw.Color.fromString(p[m]);if(i){o=i.createLighter(0.15).toString();k=Ext.apply(Ext.Object.chain(j),{stops:[{offset:1,color:i.toString()},{offset:0,color:o.toString()}]});n.push(k)}}this.setColors(n)}},applySeriesThemes:function(d){this.getBaseColor();this.getUseGradients();this.getGradients();var c=this.getColors();if(!d){d={fillStyle:Ext.Array.clone(c),strokeStyle:Ext.Array.map(c,function(a){var b=Ext.draw.Color.fromString(a.stops?a.stops[0].color:a);return b.createDarker(0.15).toString()})}}return d}},1,0,0,0,0,[["factoryable",Ext.mixin.Factoryable]],[Ext.chart.theme,"Base"],0));(Ext.cmd.derive("Ext.chart.theme.Default",Ext.chart.theme.Base,{singleton:true},0,0,0,0,["chart.theme.Base","chart.theme.default"],0,[Ext.chart.theme,"Default"],0));(Ext.cmd.derive("Ext.chart.Markers",Ext.draw.sprite.Instancing,{isMarkers:true,defaultCategory:"default",constructor:function(){Ext.draw.sprite.Instancing.prototype.constructor.apply(this,arguments);this.categories={};this.revisions={}},destroy:function(){this.categories=null;this.revisions=null;Ext.draw.sprite.Instancing.prototype.destroy.call(this)},getMarkerFor:function(d,e){if(d in this.categories){var f=this.categories[d];if(e in f){return this.get(f[e])}}},clear:function(b){b=b||this.defaultCategory;if(!(b in this.revisions)){this.revisions[b]=1}else{this.revisions[b]++}},putMarkerFor:function(n,i,p,k,m){n=n||this.defaultCategory;var o=this,l=o.categories[n]||(o.categories[n]={}),j;if(p in l){o.setAttributesFor(l[p],i,k)}else{l[p]=o.getCount();o.createInstance(i,k)}j=o.get(l[p]);if(j){j.category=n;if(!m){j.revision=o.revisions[n]||(o.revisions[n]=1)}}},getMarkerBBoxFor:function(h,f,e){if(h in this.categories){var g=this.categories[h];if(f in g){return this.getBBoxFor(g[f],e)}}},getBBox:function(){return null},render:function(v,i,u){var q=this,m=q.revisions,n=q.attr.matrix,o=q.getTemplate(),s=o.attr,p,t,r;n.toContext(i);o.preRender(v,i,u);o.useAttributes(i,u);for(t=0,r=q.instances.length;t<r;t++){p=q.get(t);if(p.hidden||p.revision!==m[p.category]){continue}i.save();o.attr=p;o.useAttributes(i,u);o.render(v,i,u);i.restore()}o.attr=s}},1,0,0,0,0,0,[Ext.chart,"Markers"],0));(Ext.cmd.derive("Ext.chart.label.Callout",Ext.draw.modifier.Modifier,{prepareAttributes:function(b){if(!b.hasOwnProperty("calloutOriginal")){b.calloutOriginal=Ext.Object.chain(b);b.calloutOriginal.prototype=b}if(this._previous){this._previous.prepareAttributes(b.calloutOriginal)}},setAttrs:function(B,y){var C=B.callout,x=B.calloutOriginal,u=B.bbox.plain,D=(u.width||0)+B.labelOverflowPadding,t=(u.height||0)+B.labelOverflowPadding,q,r;if("callout" in y){C=y.callout}if("callout" in y||"calloutPlaceX" in y||"calloutPlaceY" in y||"x" in y||"y" in y){var s="rotationRads" in y?x.rotationRads=y.rotationRads:x.rotationRads,z="x" in y?(x.x=y.x):x.x,A="y" in y?(x.y=y.y):x.y,E="calloutPlaceX" in y?y.calloutPlaceX:B.calloutPlaceX,F="calloutPlaceY" in y?y.calloutPlaceY:B.calloutPlaceY,v="calloutVertical" in y?y.calloutVertical:B.calloutVertical,w;s%=Math.PI*2;if(Math.cos(s)<0){s=(s+Math.PI)%(Math.PI*2)}if(s>Math.PI){s-=Math.PI*2}if(v){s=s*(1-C)-Math.PI/2*C;w=D;D=t;t=w}else{s=s*(1-C)}y.rotationRads=s;y.x=z*(1-C)+E*C;y.y=A*(1-C)+F*C;q=E-z;r=F-A;if(Math.abs(r*D)>Math.abs(q*t)){if(r>0){y.calloutEndX=y.x-(t/2)*(q/r)*C;y.calloutEndY=y.y-(t/2)*C}else{y.calloutEndX=y.x+(t/2)*(q/r)*C;y.calloutEndY=y.y+(t/2)*C}}else{if(q>0){y.calloutEndX=y.x-D/2;y.calloutEndY=y.y-(D/2)*(r/q)*C}else{y.calloutEndX=y.x+D/2;y.calloutEndY=y.y+(D/2)*(r/q)*C}}if(y.calloutStartX&&y.calloutStartY){y.calloutHasLine=(q>0&&y.calloutStartX<y.calloutEndX)||(q<=0&&y.calloutStartX>y.calloutEndX)||(r>0&&y.calloutStartY<y.calloutEndY)||(r<=0&&y.calloutStartY>y.calloutEndY)}else{y.calloutHasLine=true}}return y},pushDown:function(d,c){c=Ext.draw.modifier.Modifier.prototype.pushDown.call(this,d.calloutOriginal,c);return this.setAttrs(d,c)},popUp:function(d,c){d=d.prototype;c=this.setAttrs(d,c);if(this._next){return this._next.popUp(d,c)}else{return Ext.apply(d,c)}}},0,0,0,0,0,0,[Ext.chart.label,"Callout"],0));(Ext.cmd.derive("Ext.chart.label.Label",Ext.draw.sprite.Text,{inheritableStatics:{def:{processors:{callout:"limited01",calloutHasLine:"bool",calloutPlaceX:"number",calloutPlaceY:"number",calloutStartX:"number",calloutStartY:"number",calloutEndX:"number",calloutEndY:"number",calloutColor:"color",calloutWidth:"number",calloutVertical:"bool",labelOverflowPadding:"number",display:"enums(none,under,over,rotate,insideStart,insideEnd,inside,outside)",orientation:"enums(horizontal,vertical)",renderer:"default"},defaults:{callout:0,calloutHasLine:true,calloutPlaceX:0,calloutPlaceY:0,calloutStartX:0,calloutStartY:0,calloutEndX:0,calloutEndY:0,calloutWidth:1,calloutVertical:false,calloutColor:"black",labelOverflowPadding:5,display:"none",orientation:"",renderer:null},triggers:{callout:"transform",calloutPlaceX:"transform",calloutPlaceY:"transform",labelOverflowPadding:"transform",calloutRotation:"transform",display:"hidden"},updaters:{hidden:function(b){b.hidden=b.display==="none"}}}},config:{fx:{customDurations:{callout:200}},field:null,calloutLine:true},applyCalloutLine:function(b){if(b){return Ext.apply({},b)}},prepareModifiers:function(){Ext.draw.sprite.Text.prototype.prepareModifiers.apply(this,arguments);this.calloutModifier=new Ext.chart.label.Callout({sprite:this});this.fx.setNext(this.calloutModifier);this.calloutModifier.setNext(this.topModifier)},render:function(f,j){var h=this,g=h.attr,i=g.calloutColor;j.save();j.globalAlpha*=g.callout;if(j.globalAlpha>0&&g.calloutHasLine){if(i&&i.isGradient){i=i.getStops()[0].color}j.strokeStyle=i;j.fillStyle=i;j.lineWidth=g.calloutWidth;j.beginPath();j.moveTo(h.attr.calloutStartX,h.attr.calloutStartY);j.lineTo(h.attr.calloutEndX,h.attr.calloutEndY);j.stroke();j.beginPath();j.arc(h.attr.calloutStartX,h.attr.calloutStartY,1*g.calloutWidth,0,2*Math.PI,true);j.fill();j.beginPath();j.arc(h.attr.calloutEndX,h.attr.calloutEndY,1*g.calloutWidth,0,2*Math.PI,true);j.fill()}j.restore();Ext.draw.sprite.Text.prototype.render.apply(h,arguments)}},0,0,0,0,0,0,[Ext.chart.label,"Label"],0));(Ext.cmd.derive("Ext.chart.series.Series",Ext.Base,{isSeries:true,defaultBindProperty:"store",type:null,seriesType:"sprite",identifiablePrefix:"ext-line-",observableType:"series",darkerStrokeRatio:0.15,config:{chart:null,title:null,renderer:null,showInLegend:true,triggerAfterDraw:false,style:{},subStyle:{},themeStyle:{},colors:null,useDarkerStrokeColor:true,store:null,label:{},labelOverflowPadding:null,showMarkers:true,marker:null,markerSubStyle:null,itemInstancing:null,background:null,highlightItem:null,surface:null,overlaySurface:null,hidden:false,highlight:false,highlightCfg:{merge:function(b){return b},$value:{fillStyle:"yellow",strokeStyle:"red"}},animation:null,tooltip:null},directions:[],sprites:null,themeColorCount:function(){return 1},isStoreDependantColorCount:false,themeMarkerCount:function(){return 0},getFields:function(i){var j=this,h=[],l,g,k;for(g=0,k=i.length;g<k;g++){l=j["get"+i[g]+"Field"]();if(Ext.isArray(l)){h.push.apply(h,l)}else{h.push(l)}}return h},applyAnimation:function(d,c){if(!d){d={duration:0}}else{if(d===true){d={easing:"easeInOut",duration:500}}}return c?Ext.apply({},d,c):d},getAnimation:function(){var b=this.getChart();if(b&&b.animationSuspendCount){return{duration:0}}else{return(arguments.callee.$previous||Ext.Base.prototype.getAnimation).call(this)}},updateTitle:function(v){var n=this,p=n.getChart();if(!p||p.isInitializing){return}v=Ext.Array.from(v);var t=p.getSeries(),u=Ext.Array.indexOf(t,n),r=p.getLegendStore(),o=n.getYField(),s,i,m,q;if(r.getCount()&&u!==-1){q=o?Math.min(v.length,o.length):v.length;for(s=0;s<q;s++){m=v[s];i=r.getAt(u+s);if(m&&i){i.set("name",m)}}}},applyHighlight:function(d,c){if(Ext.isObject(d)){d=Ext.merge({},this.config.highlightCfg,d)}else{if(d===true){d=this.config.highlightCfg}}return Ext.apply(c||{},d)},updateHighlight:function(b){this.getStyle();if(!Ext.Object.isEmpty(b)){this.addItemHighlight()}},updateHighlightCfg:function(b){if(!Ext.Object.equals(b,this.defaultConfig.highlightCfg)){this.addItemHighlight()}},applyItemInstancing:function(d,c){return Ext.merge(c||{},d)},setAttributesForItem:function(h,g){var e=h&&h.sprite,f;if(e){if(e.itemsMarker&&h.category==="items"){e.putMarker(h.category,g,h.index,false,true)}if(e.isMarkerHolder&&h.category==="markers"){e.putMarker(h.category,g,h.index,false,true)}else{if(e.isInstancing){e.setAttributesFor(h.index,g)}else{if(Ext.isArray(e)){for(f=0;f<e.length;f++){e[f].setAttributes(g)}}else{e.setAttributes(g)}}}}},getBBoxForItem:function(b){if(b&&b.sprite){if(b.sprite.itemsMarker&&b.category==="items"){return b.sprite.getMarkerBBox(b.category,b.index)}else{if(b.sprite instanceof Ext.draw.sprite.Instancing){return b.sprite.getBBoxFor(b.index)}else{return b.sprite.getBBox()}}}return null},applyHighlightItem:function(g,f){if(g===f){return}if(Ext.isObject(g)&&Ext.isObject(f)){var h=g.sprite===f.sprite,e=g.index===f.index;if(h&&e){return}}return g},updateHighlightItem:function(c,d){this.setAttributesForItem(d,{highlighted:false});this.setAttributesForItem(c,{highlighted:true})},constructor:function(e){var d=this,f;e=e||{};if(e.tips){e=Ext.apply({tooltip:e.tips},e)}if(e.highlightCfg){e=Ext.apply({highlight:e.highlightCfg},e)}if("id" in e){f=e.id}else{if("id" in d.config){f=d.config.id}else{f=d.getId()}}d.setId(f);d.sprites=[];d.dataRange=[];d.mixins.observable.constructor.call(d,e);d.initBindable()},lookupViewModel:function(d){var c=this.getChart();return c?c.lookupViewModel(d):null},applyTooltip:function(f,d){var e=Ext.apply({xtype:"tooltip",renderer:Ext.emptyFn,constrainPosition:true,shrinkWrapDock:true,autoHide:true,offsetX:10,offsetY:10},f);return Ext.create(e)},updateTooltip:function(){this.addItemHighlight()},addItemHighlight:function(){var i=this.getChart();if(!i){return}var h=i.getInteractions(),j,g,f;for(j=0;j<h.length;j++){g=h[j];if(g.isItemHighlight||g.isItemEdit){f=true;break}}if(!f){h.push("itemhighlight");i.setInteractions(h)}},showTooltip:function(q,p){var y=this,o=y.getTooltip(),s,B,t,w,u,r,v,x,A,z;if(!o){return}clearTimeout(y.tooltipTimeout);A=o.config;if(o.trackMouse){p[0]+=A.offsetX;p[1]+=A.offsetY}else{s=q.sprite;B=s.getSurface();t=Ext.get(B.getId());if(t){r=q.series.getBBoxForItem(q);v=r.x+r.width/2;x=r.y+r.height/2;u=B.matrix.transformPoint([v,x]);w=t.getXY();z=B.getInherited().rtl;v=z?w[0]+t.getWidth()-u[0]:w[0]+u[0];x=w[1]+u[1];p=[v,x]}}Ext.callback(o.renderer,o.scope,[o,q.record,q],0,y);o.show(p)},hideTooltip:function(d){var e=this,f=e.getTooltip();if(!f){return}clearTimeout(e.tooltipTimeout);e.tooltipTimeout=Ext.defer(function(){f.hide()},1)},applyStore:function(b){return b&&Ext.StoreManager.lookup(b)},getStore:function(){return this._store||this.getChart()&&this.getChart().getStore()},updateStore:function(q,r){var k=this,l=k.getChart(),p=l&&l.getStore(),m,i,n,o;r=r||p;if(r&&r!==q){r.un({datachanged:"onDataChanged",update:"onDataChanged",scope:k})}if(q){q.on({datachanged:"onDataChanged",update:"onDataChanged",scope:k});m=k.getSprites();for(o=0,n=m.length;o<n;o++){i=m[o];if(i.setStore){i.setStore(q)}}k.onDataChanged()}k.fireEvent("storechange",k,q,r)},onStoreChange:function(d,e,f){if(!this._store){this.updateStore(e,f)}},coordinate:function(s,u,B){var v=this,r=v.getStore(),y=v.getHidden(),w=r.getData().items,E=v["get"+s+"Axis"](),A={min:Infinity,max:-Infinity},i=v["fieldCategory"+s]||[s],z=v.getFields(i),C,t,D,F={},x=v.getSprites();if(x.length>0){if(!Ext.isBoolean(y)||!y){for(C=0;C<i.length;C++){t=z[C];D=v.coordinateData(w,t,E);v.getRangeOfData(D,A);F["data"+i[C]]=D}}v.dataRange[u]=A.min;v.dataRange[u+B]=A.max;F["dataMin"+s]=A.min;F["dataMax"+s]=A.max;if(E){E.range=null;F["range"+s]=E.getRange()}for(C=0;C<x.length;C++){x[C].setAttributes(F)}}},coordinateData:function(i,k,o){var l=[],m=i.length,n=o&&o.getLayout(),p,j;for(p=0;p<m;p++){j=i[p].data[k];if(!Ext.isEmpty(j,true)){if(n){l[p]=n.getCoordFor(j,k,p,i)}else{l[p]=+j}}else{l[p]=j}}return l},getRangeOfData:function(j,h){var l=j.length,m=h.min,i=h.max,n,k;for(n=0;n<l;n++){k=j[n];if(k<m){m=k}if(k>i){i=k}}h.min=m;h.max=i},updateLabelData:function(){var q=this,o=q.getStore(),r=o.getData().items,s=q.getSprites(),x=q.getLabel().getTemplate(),i=Ext.Array.from(x.getField()),v,w,t,u,j,p;if(!s.length||!i.length){return}for(v=0;v<s.length;v++){u=[];j=s[v];p=j.getField();if(Ext.Array.indexOf(i,p)<0){p=i[v]}for(w=0,t=r.length;w<t;w++){u.push(r[w].get(p))}j.setAttributes({labels:u})}},processData:function(){if(!this.getStore()){return}var k=this,i=this.directions,h,l=i.length,j,g;for(h=0;h<l;h++){j=i[h];g=k["get"+j+"Axis"]();if(g){g.processData(k);continue}if(k["coordinate"+j]){k["coordinate"+j]()}}k.updateLabelData()},applyBackground:function(b){if(this.getChart()){this.getSurface().setBackground(b);return this.getSurface().getBackground()}else{return b}},updateChart:function(g,f){var h=this,e=h._store;if(f){f.un("axeschange","onAxesChange",h);h.clearSprites();h.setSurface(null);h.setOverlaySurface(null);f.unregister(h);h.onChartDetached(f);if(!e){h.updateStore(null)}}if(g){h.setSurface(g.getSurface("series"));h.setOverlaySurface(g.getSurface("overlay"));g.on("axeschange","onAxesChange",h);if(g.getAxes()){h.onAxesChange(g)}h.onChartAttached(g);g.register(h);if(!e){h.updateStore(g.getStore())}}},onAxesChange:function(o){var m=this,p=o.getAxes(),t,v={},u={},r=false,n=this.directions,i,s,q;for(s=0,q=n.length;s<q;s++){i=n[s];u[i]=m.getFields(m["fieldCategory"+i])}for(s=0,q=p.length;s<q;s++){t=p[s];if(!v[t.getDirection()]){v[t.getDirection()]=[t]}else{v[t.getDirection()].push(t)}}for(s=0,q=n.length;s<q;s++){i=n[s];if(m["get"+i+"Axis"]()){continue}if(v[i]){t=m.findMatchingAxis(v[i],u[i]);if(t){m["set"+i+"Axis"](t);if(t.getNeedHighPrecision()){r=true}}}}this.getSurface().setHighPrecision(r)},findMatchingAxis:function(i,j){var k,l,g,h;for(g=0;g<i.length;g++){k=i[g];l=k.getFields();if(!l.length){return k}else{if(j){for(h=0;h<j.length;h++){if(Ext.Array.indexOf(l,j[h])>=0){return k}}}}}},onChartDetached:function(d){var c=this;c.fireEvent("chartdetached",d,c);d.un("storechange","onStoreChange",c)},onChartAttached:function(d){var c=this;c.setBackground(c.getBackground());c.fireEvent("chartattached",d,c);d.on("storechange","onStoreChange",c);c.processData()},updateOverlaySurface:function(d){var c=this;if(d){if(c.getLabel()){c.getOverlaySurface().add(c.getLabel())}}},applyLabel:function(d,c){if(!c){c=new Ext.chart.Markers({zIndex:10});c.setTemplate(new Ext.chart.label.Label(d))}else{c.getTemplate().setAttributes(d)}return c},createItemInstancingSprite:function(l,g){var j=this,i=new Ext.chart.Markers(),h,k;i.setAttributes({zIndex:Number.MAX_VALUE});h=Ext.apply({},g);if(j.getHighlight()){h.highlight=j.getHighlight();h.modifiers=["highlight"]}i.setTemplate(h);k=i.getTemplate();k.setAttributes(j.getStyle());k.fx.on("animationstart","onSpriteAnimationStart",this);k.fx.on("animationend","onSpriteAnimationEnd",this);l.bindMarker("items",i);j.getSurface().add(i);return i},getDefaultSpriteConfig:function(){return{type:this.seriesType,renderer:this.getRenderer()}},updateRenderer:function(h){var e=this,f=e.getChart(),g;if(f&&f.isInitializing){return}g=e.getSprites();if(g.length){g[0].setAttributes({renderer:h||null});if(f&&!f.isInitializing){f.redraw()}}},updateShowMarkers:function(f){var g=this.getSprites(),e=g&&g[0],h=e&&e.getMarker("markers");if(h){h.getTemplate().setAttributes({hidden:!f})}},createSprite:function(){var k=this,i=k.getSurface(),l=k.getItemInstancing(),m=i.add(k.getDefaultSpriteConfig()),h=k.getMarker(),j,n;m.setAttributes(k.getStyle());m.setSeries(k);if(l){m.itemsMarker=k.createItemInstancingSprite(m,l)}if(m.bindMarker){if(h){j=new Ext.chart.Markers();n=Ext.Object.merge({},h);if(k.getHighlight()){n.highlight=k.getHighlight();n.modifiers=["highlight"]}j.setTemplate(n);j.getTemplate().fx.setCustomDurations({translationX:0,translationY:0});m.dataMarker=j;m.bindMarker("markers",j);k.getOverlaySurface().add(j)}if(k.getLabel().getTemplate().getField()){m.bindMarker("labels",k.getLabel())}}if(m.setStore){m.setStore(k.getStore())}m.fx.on("animationstart","onSpriteAnimationStart",k);m.fx.on("animationend","onSpriteAnimationEnd",k);k.sprites.push(m);return m},getSprites:Ext.emptyFn,onDataChanged:function(){var g=this,h=g.getChart(),e=h&&h.getStore(),f=g.getStore();if(f!==e){g.processData()}},isXType:function(b){return b==="series"},getItemId:function(){return this.getId()},applyThemeStyle:function(h,g){var f=this,i,j;i=h&&h.subStyle&&h.subStyle.fillStyle;j=i&&h.subStyle.strokeStyle;if(i&&!j){h.subStyle.strokeStyle=f.getStrokeColorsFromFillColors(i)}i=h&&h.markerSubStyle&&h.markerSubStyle.fillStyle;j=i&&h.markerSubStyle.strokeStyle;if(i&&!j){h.markerSubStyle.strokeStyle=f.getStrokeColorsFromFillColors(i)}return Ext.apply(g||{},h)},applyStyle:function(f,d){var e=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias("sprite."+this.seriesType));if(e&&e.def){f=e.def.normalize(f)}return Ext.apply({},f,d)},applySubStyle:function(d,f){var e=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias("sprite."+this.seriesType));if(e&&e.def){d=e.def.batchedNormalize(d,true)}return Ext.merge({},f,d)},applyMarker:function(h,f){var g=(h&&h.type)||(f&&f.type)||"circle",e=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias("sprite."+g));if(e&&e.def){h=e.def.normalize(Ext.isObject(h)?h:{},true);h.type=g}return Ext.merge(f||{},h)},applyMarkerSubStyle:function(h,f){var g=(h&&h.type)||(f&&f.type)||"circle",e=Ext.ClassManager.get(Ext.ClassManager.getNameByAlias("sprite."+g));if(e&&e.def){h=e.def.batchedNormalize(h,true)}return Ext.merge(f||{},h)},updateHidden:function(c){var d=this;d.getColors();d.getSubStyle();d.setSubStyle({hidden:c});d.processData();d.doUpdateStyles();if(!Ext.isArray(c)){d.updateLegendStore(c)}},updateLegendStore:function(k,h){var l=this,m=l.getChart(),n=m.getLegendStore(),j=l.getId(),i;if(n){if(arguments.length>1){i=n.findBy(function(a){return a.get("series")===j&&a.get("index")===h});if(i!==-1){i=n.getAt(i)}}else{i=n.findRecord("series",j)}if(i&&i.get("disabled")!==k){i.set("disabled",k)}}},setHiddenByIndex:function(e,f){var d=this;if(Ext.isArray(d.getHidden())){d.getHidden()[e]=f;d.updateHidden(d.getHidden());d.updateLegendStore(f,e)}else{d.setHidden(f)}},getStrokeColorsFromFillColors:function(g){var j=this,h=j.getUseDarkerStrokeColor(),f=(Ext.isNumber(h)?h:j.darkerStrokeRatio),i;if(h){i=Ext.Array.map(g,function(a){a=Ext.isString(a)?a:a.stops[0].color;a=Ext.draw.Color.fromString(a);return a.createDarker(f).toString()})}else{i=Ext.Array.clone(g)}return i},updateThemeColors:function(g){var l=this,k=l.getThemeStyle(),h=Ext.Array.clone(g),i=l.getStrokeColorsFromFillColors(g),j={fillStyle:h,strokeStyle:i};k.subStyle=Ext.apply(k.subStyle||{},j);k.markerSubStyle=Ext.apply(k.markerSubStyle||{},j);l.doUpdateStyles()},themeOnlyIfConfigured:{},updateTheme:function(A){var w=this,D=A.getSeries(),q=w.getInitialConfig(),B=w.defaultConfig,y=w.getConfigurator().configs,u=D.defaults,t=D[w.type],x=w.themeOnlyIfConfigured,s,v,p,C,r,z;D=Ext.merge({},u,t);for(s in D){v=D[s];z=y[s];if(v!==null&&v!==undefined&&z){r=q[s];p=Ext.isObject(v);C=r===B[s];if(p){if(C&&x[s]){continue}v=Ext.merge({},v,r)}if(C||p){w[z.names.set](v)}}}},updateChartColors:function(d){var c=this;if(!c.getColors()){c.updateThemeColors(d)}},updateColors:function(b){this.updateThemeColors(b)},updateStyle:function(){this.doUpdateStyles()},updateSubStyle:function(){this.doUpdateStyles()},updateThemeStyle:function(){this.doUpdateStyles()},doUpdateStyles:function(){var l=this,k=l.sprites,o=l.getItemInstancing(),p=0,m=k&&k.length,j=l.getConfig("showMarkers",true),i=l.getMarker(),n;for(;p<m;p++){n=l.getStyleByIndex(p);if(o){k[p].itemsMarker.getTemplate().setAttributes(n)}k[p].setAttributes(n);if(i&&k[p].dataMarker){k[p].dataMarker.getTemplate().setAttributes(l.getMarkerStyleByIndex(p))}}},getStyleWithTheme:function(){var e=this,h=e.getThemeStyle(),g=(h&&h.style)||{},f=Ext.applyIf(Ext.apply({},e.getStyle()),g);return f},getSubStyleWithTheme:function(){var h=this,g=h.getThemeStyle(),f=(g&&g.subStyle)||{},e=Ext.applyIf(Ext.apply({},h.getSubStyle()),f);return e},getStyleByIndex:function(i){var n=this,k=n.getThemeStyle(),o,l,p,m,j={};o=n.getStyle();l=(k&&k.style)||{};p=n.styleDataForIndex(n.getSubStyle(),i);m=n.styleDataForIndex((k&&k.subStyle),i);Ext.apply(j,l);Ext.apply(j,m);Ext.apply(j,o);Ext.apply(j,p);return j},getMarkerStyleByIndex:function(u){var r=this,v=r.getThemeStyle(),x,t,o,p,w,n,q,s,i={};x=r.getStyle();t=(v&&v.style)||{};o=r.styleDataForIndex(r.getSubStyle(),u);if(o.hasOwnProperty("hidden")){o.hidden=o.hidden||!this.getConfig("showMarkers",true)}p=r.styleDataForIndex((v&&v.subStyle),u);w=r.getMarker();n=(v&&v.marker)||{};q=r.getMarkerSubStyle();s=r.styleDataForIndex((v&&v.markerSubStyle),u);Ext.apply(i,t);Ext.apply(i,p);Ext.apply(i,n);Ext.apply(i,s);Ext.apply(i,x);Ext.apply(i,o);Ext.apply(i,w);Ext.apply(i,q);return i},styleDataForIndex:function(i,j){var h,f,g={};if(i){for(f in i){h=i[f];if(Ext.isArray(h)){g[f]=h[j%h.length]}else{g[f]=h}}}return g},getItemForPoint:Ext.emptyFn,getItemByIndex:function(h,j){var k=this,i=k.getSprites(),g=i&&i[0],l;if(!g){return}if(j===undefined&&g.isMarkerHolder){j=k.getItemInstancing()?"items":"markers"}else{if(!j||j===""||j==="sprites"){g=i[h]}}if(g){l={series:k,category:j,index:h,record:k.getStore().getData().items[h],field:k.getYField(),sprite:g};return l}},onSpriteAnimationStart:function(b){this.fireEvent("animationstart",this,b)},onSpriteAnimationEnd:function(b){this.fireEvent("animationend",this,b)},resolveListenerScope:function(h){var i=this,g=Ext._namedScopes[h],j=i.getChart(),f;if(!g){f=j?j.resolveListenerScope(h,false):(h||i)}else{if(g.isThis){f=i}else{if(g.isController){f=j?j.resolveListenerScope(h,false):i}else{if(g.isSelf){f=j?j.resolveListenerScope(h,false):i;if(f===j&&!j.getInheritedConfig("defaultListenerScope")){f=i}}}}}return f},provideLegendInfo:function(b){b.push({name:this.getTitle()||this.getId(),mark:"black",disabled:this.getHidden(),series:this.getId(),index:0})},clearSprites:function(){var g=this.sprites,e,f,h;for(f=0,h=g.length;f<h;f++){e=g[f];if(e&&e.isSprite){e.destroy()}}this.sprites=[]},destroy:function(){var d=this,e=d._store,f=d.getConfig("tooltip",true);if(e&&e.getAutoDestroy()){Ext.destroy(e)}d.setChart(null);d.clearListeners();if(f){Ext.destroy(f);clearTimeout(d.tooltipTimeout)}d.callParent()}},1,0,0,0,0,[[Ext.mixin.Observable.prototype.mixinId||Ext.mixin.Observable.$className,Ext.mixin.Observable],[Ext.mixin.Bindable.prototype.mixinId||Ext.mixin.Bindable.$className,Ext.mixin.Bindable]],[Ext.chart.series,"Series"],0));(Ext.cmd.derive("Ext.chart.interactions.Abstract",Ext.Base,{config:{gestures:{tap:"onGesture"},chart:null,enabled:true},throttleGap:0,stopAnimationBeforeSync:false,constructor:function(e){var d=this,f;e=e||{};if("id" in e){f=e.id}else{if("id" in d.config){f=d.config.id}else{f=d.getId()}}d.setId(f);d.mixins.observable.constructor.call(d,e)},initialize:Ext.emptyFn,updateChart:function(f,e){var d=this;if(e===f){return}if(e){e.unregister(d);d.removeChartListener(e)}if(f){f.register(d);d.addChartListener()}},updateEnabled:function(e){var f=this,d=f.getChart();if(d){if(e){f.addChartListener()}else{f.removeChartListener(d)}}},onGesture:Ext.emptyFn,getItemForEvent:function(g){var e=this,f=e.getChart(),h=f.getEventXY(g);return f.getItemForPoint(h[0],h[1])},getItemsForEvent:function(g){var e=this,f=e.getChart(),h=f.getEventXY(g);return f.getItemsForPoint(h[0],h[1])},addChartListener:function(){var j=this,f=j.getChart(),h=j.getGestures(),g;if(!j.getEnabled()){return}function i(b,a){f.addElementListener(b,j.listeners[b]=function(c){var d=j.getLocks(),e;if(j.getEnabled()&&(!(b in d)||d[b]===j)){e=(Ext.isFunction(a)?a:j[a]).apply(this,arguments);if(e===false&&c&&c.stopPropagation){c.stopPropagation()}return e}},j)}j.listeners=j.listeners||{};for(g in h){i(g,h[g])}},removeChartListener:function(j){var i=this,h=i.getGestures(),f;function g(b){var a=i.listeners[b];if(a){j.removeElementListener(b,a);delete i.listeners[b]}}if(i.listeners){for(f in h){g(f)}}},lockEvents:function(){var g=this,h=g.getLocks(),f=Array.prototype.slice.call(arguments),e=f.length;while(e--){h[f[e]]=g}},unlockEvents:function(){var f=this.getLocks(),e=Array.prototype.slice.call(arguments),d=e.length;while(d--){delete f[e[d]]}},getLocks:function(){var b=this.getChart();return b.lockedEvents||(b.lockedEvents={})},isMultiTouch:function(){if(Ext.browser.is.IE10){return true}return !Ext.os.is.Desktop},initializeDefaults:Ext.emptyFn,doSync:function(){var c=this,d=c.getChart();if(c.syncTimer){clearTimeout(c.syncTimer);c.syncTimer=null}if(c.stopAnimationBeforeSync){d.animationSuspendCount++}d.redraw();if(c.stopAnimationBeforeSync){d.animationSuspendCount--}c.syncThrottle=Date.now()+c.throttleGap},sync:function(){var b=this;if(b.throttleGap&&Ext.frameStartTime<b.syncThrottle){if(b.syncTimer){return}b.syncTimer=Ext.defer(function(){b.doSync()},b.throttleGap)}else{b.doSync()}},getItemId:function(){return this.getId()},isXType:function(b){return b==="interaction"},destroy:function(){var b=this;b.setChart(null);delete b.listeners;b.callParent()}},1,["interaction"],["interaction"],{interaction:true},["widget.interaction"],[["observable",Ext.mixin.Observable]],[Ext.chart.interactions,"Abstract"],function(){if(Ext.os.is.Android4){this.prototype.throttleGap=40}}));(Ext.cmd.derive("Ext.chart.MarkerHolder",Ext.Mixin,{mixinConfig:{id:"markerHolder",after:{constructor:"constructor",preRender:"preRender"},before:{destroy:"destroy"}},isMarkerHolder:true,surfaceMatrix:null,inverseSurfaceMatrix:null,deprecated:{6:{methods:{getBoundMarker:{message:"Please use the 'getMarker' method instead.",fn:function(c){var d=this.boundMarkers[c];return d?[d]:d}}}}},constructor:function(){this.boundMarkers={};this.cleanRedraw=false},bindMarker:function(e,f){var h=this,g=h.boundMarkers;if(f&&f.isMarkers){h.releaseMarker(e);g[e]=f;f.on("destroy",h.onMarkerDestroy,h)}},onMarkerDestroy:function(b){this.releaseMarker(b)},releaseMarker:function(e){var f=this.boundMarkers,d;if(e&&e.isMarkers){for(d in f){if(f[d]===e){delete f[d];break}}}else{d=e;e=f[d];delete f[d]}return e||null},getMarker:function(b){return this.boundMarkers[b]||null},preRender:function(){var k=this,j=k.getId(),m=k.boundMarkers,l=k.getParent(),n,i,h;if(k.surfaceMatrix){h=k.surfaceMatrix.set(1,0,0,1,0,0)}else{h=k.surfaceMatrix=new Ext.draw.Matrix()}k.cleanRedraw=!k.attr.dirty;if(!k.cleanRedraw){for(n in m){i=m[n];if(i){i.clear(j)}}}while(l&&l.attr&&l.attr.matrix){h.prependMatrix(l.attr.matrix);l=l.getParent()}h.prependMatrix(l.matrix);k.surfaceMatrix=h;k.inverseSurfaceMatrix=h.inverse(k.inverseSurfaceMatrix)},putMarker:function(m,i,n,j,l){var h=this.boundMarkers[m],k=this.getId();if(h){h.putMarkerFor(k,i,n,j,l)}},getMarkerBBox:function(j,f,i){var g=this.boundMarkers[j],h=this.getId();if(g){return g.getMarkerBBoxFor(h,f,i)}},destroy:function(){var f=this.boundMarkers,d,e;for(d in f){e=f[d];e.destroy()}}},1,0,0,0,0,0,[Ext.chart,"MarkerHolder"],0));(Ext.cmd.derive("Ext.chart.axis.sprite.Axis",Ext.draw.sprite.Sprite,{type:"axis",inheritableStatics:{def:{processors:{grid:"bool",axisLine:"bool",minorTicks:"bool",minorTickSize:"number",majorTicks:"bool",majorTickSize:"number",length:"number",startGap:"number",endGap:"number",dataMin:"number",dataMax:"number",visibleMin:"number",visibleMax:"number",position:"enums(left,right,top,bottom,angular,radial,gauge)",minStepSize:"number",estStepSize:"number",titleOffset:"number",textPadding:"number",min:"number",max:"number",centerX:"number",centerY:"number",radius:"number",totalAngle:"number",baseRotation:"number",data:"default",enlargeEstStepSizeByText:"bool"},defaults:{grid:false,axisLine:true,minorTicks:false,minorTickSize:3,majorTicks:true,majorTickSize:5,length:0,startGap:0,endGap:0,visibleMin:0,visibleMax:1,dataMin:0,dataMax:1,position:"",minStepSize:0,estStepSize:20,min:0,max:1,centerX:0,centerY:0,radius:1,baseRotation:0,data:null,titleOffset:0,textPadding:0,scalingCenterY:0,scalingCenterX:0,strokeStyle:"black",enlargeEstStepSizeByText:false},triggers:{minorTickSize:"bbox",majorTickSize:"bbox",position:"bbox,layout",axisLine:"bbox,layout",min:"layout",max:"layout",length:"layout",minStepSize:"layout",estStepSize:"layout",data:"layout",dataMin:"layout",dataMax:"layout",visibleMin:"layout",visibleMax:"layout",enlargeEstStepSizeByText:"layout"},updaters:{layout:"layoutUpdater"}}},config:{label:null,layout:null,segmenter:null,renderer:null,layoutContext:null,axis:null},thickness:0,stepSize:0,getBBox:function(){return null},defaultRenderer:function(b){return this.segmenter.renderer(b,this)},layoutUpdater:function(){var k=this,m=k.getAxis().getChart();if(m.isInitializing){return}var n=k.attr,o=k.getLayout(),l=m.getInherited().rtl,q=n.dataMin+(n.dataMax-n.dataMin)*n.visibleMin,j=n.dataMin+(n.dataMax-n.dataMin)*n.visibleMax,p=n.position,r={attr:n,segmenter:k.getSegmenter(),renderer:k.defaultRenderer};if(p==="left"||p==="right"){n.translationX=0;n.translationY=j*n.length/(j-q);n.scalingX=1;n.scalingY=-n.length/(j-q);n.scalingCenterY=0;n.scalingCenterX=0;k.applyTransformations(true)}else{if(p==="top"||p==="bottom"){if(l){n.translationX=n.length+q*n.length/(j-q)+1}else{n.translationX=-q*n.length/(j-q)}n.translationY=0;n.scalingX=(l?-1:1)*n.length/(j-q);n.scalingY=1;n.scalingCenterY=0;n.scalingCenterX=0;k.applyTransformations(true)}}if(o){o.calculateLayout(r);k.setLayoutContext(r)}},iterate:function(t,p){var v,r,x,w,q,u,o=Ext.Array.some,i=Math.abs,s;if(t.getLabel){if(t.min<t.from){p.call(this,t.min,t.getLabel(t.min),-1,t)}for(v=0;v<=t.steps;v++){p.call(this,t.get(v),t.getLabel(v),v,t)}if(t.max>t.to){p.call(this,t.max,t.getLabel(t.max),t.steps+1,t)}}else{w=this.getAxis();q=w.floatingAxes;u=[];s=(t.to-t.from)/(t.steps+1);if(w.getFloating()){for(x in q){u.push(q[x])}}function n(a){return !u.length||o(u,function(b){return i(b-a)>s})}if(t.min<t.from&&n(t.min)){p.call(this,t.min,t.min,-1,t)}for(v=0;v<=t.steps;v++){r=t.get(v);if(n(r)){p.call(this,r,r,v,t)}}if(t.max>t.to&&n(t.max)){p.call(this,t.max,t.max,t.steps+1,t)}}},renderTicks:function(G,F,z,C){var w=this,H=w.attr,x=H.position,E=H.matrix,N=0.5*H.lineWidth,M=E.getXX(),J=E.getDX(),I=E.getYY(),K=E.getDY(),D=z.majorTicks,O=H.majorTickSize,R=z.minorTicks,A=H.minorTickSize;if(D){switch(x){case"right":function B(a){return function(b,c,d){b=G.roundPixel(b*I+K)+N;F.moveTo(0,b);F.lineTo(a,b)}}w.iterate(D,B(O));R&&w.iterate(R,B(A));break;case"left":function y(a){return function(b,c,d){b=G.roundPixel(b*I+K)+N;F.moveTo(C[2]-a,b);F.lineTo(C[2],b)}}w.iterate(D,y(O));R&&w.iterate(R,y(A));break;case"bottom":function P(a){return function(b,c,d){b=G.roundPixel(b*M+J)-N;F.moveTo(b,0);F.lineTo(b,a)}}w.iterate(D,P(O));R&&w.iterate(R,P(A));break;case"top":function Q(a){return function(b,c,d){b=G.roundPixel(b*M+J)-N;F.moveTo(b,C[3]);F.lineTo(b,C[3]-a)}}w.iterate(D,Q(O));R&&w.iterate(R,Q(A));break;case"angular":w.iterate(D,function(b,c,a){b=b/(H.max+1)*Math.PI*2+H.baseRotation;F.moveTo(H.centerX+(H.length)*Math.cos(b),H.centerY+(H.length)*Math.sin(b));F.lineTo(H.centerX+(H.length+O)*Math.cos(b),H.centerY+(H.length+O)*Math.sin(b))});break;case"gauge":var L=w.getGaugeAngles();w.iterate(D,function(b,c,a){b=(b-H.min)/(H.max-H.min+1)*H.totalAngle-H.totalAngle+L.start;F.moveTo(H.centerX+(H.length)*Math.cos(b),H.centerY+(H.length)*Math.sin(b));F.lineTo(H.centerX+(H.length+O)*Math.cos(b),H.centerY+(H.length+O)*Math.sin(b))});break}}},renderLabels:function(R,af,S,L){var ah=this,al=ah.attr,an=0.5*al.lineWidth,ab=al.position,X=al.matrix,V=al.textPadding,Y=X.getXX(),at=X.getDX(),ap=X.getYY(),au=X.getDY(),ai=0,N=S.majorTicks,P=Math.max(al.majorTickSize,al.minorTickSize)+al.lineWidth,aq=Ext.draw.Draw.isBBoxIntersect,Q=ah.getLabel(),M,ad,ae=null,Z=0,av=0,aj=S.segmenter,U=ah.getRenderer(),ac=ah.getAxis(),W=ac.getTitle(),aw=W&&W.attr.text!==""&&W.getBBox(),ak,ao=null,ag,T,aa,ar,O;if(N&&Q&&!Q.attr.hidden){M=Q.attr.font;if(af.font!==M){af.font=M}Q.setAttributes({translationX:0,translationY:0},true);Q.applyTransformations();ak=Q.attr.inverseMatrix.elements.slice(0);switch(ab){case"left":ar=aw?aw.x+aw.width:0;switch(Q.attr.textAlign){case"start":O=R.roundPixel(ar+at)-an;break;case"end":O=R.roundPixel(L[2]-P+at)-an;break;default:O=R.roundPixel(ar+(L[2]-ar-P)/2+at)-an}Q.setAttributes({translationX:O},true);break;case"right":ar=aw?L[2]-aw.x:0;switch(Q.attr.textAlign){case"start":O=R.roundPixel(P+at)+an;break;case"end":O=R.roundPixel(L[2]-ar+at)+an;break;default:O=R.roundPixel(P+(L[2]-P-ar)/2+at)+an}Q.setAttributes({translationX:O},true);break;case"top":ar=aw?aw.y+aw.height:0;Q.setAttributes({translationY:R.roundPixel(ar+(L[3]-ar-P)/2)-an},true);break;case"bottom":ar=aw?L[3]-aw.y:0;Q.setAttributes({translationY:R.roundPixel(P+(L[3]-P-ar)/2)+an},true);break;case"radial":Q.setAttributes({translationX:al.centerX},true);break;case"angular":Q.setAttributes({translationY:al.centerY},true);break;case"gauge":Q.setAttributes({translationY:al.centerY},true);break}if(ab==="left"||ab==="right"){ah.iterate(N,function(a,b,c){if(b===undefined){return}if(U){aa=Ext.callback(U,null,[ac,b,S,ae],0,ac)}else{aa=aj.renderer(b,S,ae)}ae=b;Q.setAttributes({text:String(aa),translationY:R.roundPixel(a*ap+au)},true);Q.applyTransformations();ai=Math.max(ai,Q.getBBox().width+P);if(ai<=ah.thickness){T=Ext.draw.Matrix.fly(Q.attr.matrix.elements.slice(0));ag=T.prepend.apply(T,ak).transformBBox(Q.getBBox(true));if(ao&&!aq(ag,ao,V)){return}R.renderSprite(Q);ao=ag;Z+=ag.height;av++}})}else{if(ab==="top"||ab==="bottom"){ah.iterate(N,function(a,b,c){if(b===undefined){return}if(U){aa=Ext.callback(U,null,[ac,b,S,ae],0,ac)}else{aa=aj.renderer(b,S,ae)}ae=b;Q.setAttributes({text:String(aa),translationX:R.roundPixel(a*Y+at)},true);Q.applyTransformations();ai=Math.max(ai,Q.getBBox().height+P);if(ai<=ah.thickness){T=Ext.draw.Matrix.fly(Q.attr.matrix.elements.slice(0));ag=T.prepend.apply(T,ak).transformBBox(Q.getBBox(true));if(ao&&!aq(ag,ao,V)){return}R.renderSprite(Q);ao=ag;Z+=ag.width;av++}})}else{if(ab==="radial"){ah.iterate(N,function(a,b,c){if(b===undefined){return}if(U){aa=Ext.callback(U,null,[ac,b,S,ae],0,ac)}else{aa=aj.renderer(b,S,ae)}ae=b;if(typeof aa!=="undefined"){Q.setAttributes({text:String(aa),translationX:al.centerX-R.roundPixel(a)/al.max*al.length*Math.cos(al.baseRotation+Math.PI/2),translationY:al.centerY-R.roundPixel(a)/al.max*al.length*Math.sin(al.baseRotation+Math.PI/2)},true);Q.applyTransformations();ag=Q.attr.matrix.transformBBox(Q.getBBox(true));if(ao&&!aq(ag,ao)){return}R.renderSprite(Q);ao=ag;Z+=ag.width;av++}})}else{if(ab==="angular"){ad=al.majorTickSize+al.lineWidth*0.5+(parseInt(Q.attr.fontSize,10)||10)/2;ah.iterate(N,function(a,c,d){if(c===undefined){return}if(U){aa=Ext.callback(U,null,[ac,c,S,ae],0,ac)}else{aa=aj.renderer(c,S,ae)}ae=c;ai=Math.max(ai,Math.max(al.majorTickSize,al.minorTickSize)+(al.lineCap!=="butt"?al.lineWidth*0.5:0));if(typeof aa!=="undefined"){var b=a/(al.max+1)*Math.PI*2+al.baseRotation;Q.setAttributes({text:String(aa),translationX:al.centerX+(al.length+ad)*Math.cos(b),translationY:al.centerY+(al.length+ad)*Math.sin(b)},true);Q.applyTransformations();ag=Q.attr.matrix.transformBBox(Q.getBBox(true));if(ao&&!aq(ag,ao)){return}R.renderSprite(Q);ao=ag;Z+=ag.width;av++}})}else{if(ab==="gauge"){var am=ah.getGaugeAngles();ah.iterate(N,function(a,c,d){if(c===undefined){return}if(U){aa=Ext.callback(U,null,[ac,c,S,ae],0,ac)}else{aa=aj.renderer(c,S,ae)}ae=c;if(typeof aa!=="undefined"){var b=(a-al.min)/(al.max-al.min+1)*al.totalAngle-al.totalAngle+am.start;Q.setAttributes({text:String(aa),translationX:al.centerX+(al.length+10)*Math.cos(b),translationY:al.centerY+(al.length+10)*Math.sin(b)},true);Q.applyTransformations();ag=Q.attr.matrix.transformBBox(Q.getBBox(true));if(ao&&!aq(ag,ao)){return}R.renderSprite(Q);ao=ag;Z+=ag.width;av++}})}}}}}if(al.enlargeEstStepSizeByText&&av){Z/=av;Z+=P;Z*=2;if(al.estStepSize<Z){al.estStepSize=Z}}if(Math.abs(ah.thickness-(ai))>1){ah.thickness=ai;al.bbox.plain.dirty=true;al.bbox.transform.dirty=true;ah.doThicknessChanged();return false}}},renderAxisLine:function(t,l,p,r){var m=this,n=m.attr,s=n.lineWidth*0.5,k=n.position,q,o;if(n.axisLine&&n.length){switch(k){case"left":q=t.roundPixel(r[2])-s;l.moveTo(q,-n.endGap);l.lineTo(q,n.length+n.startGap+1);break;case"right":l.moveTo(s,-n.endGap);l.lineTo(s,n.length+n.startGap+1);break;case"bottom":l.moveTo(-n.startGap,s);l.lineTo(n.length+n.endGap,s);break;case"top":q=t.roundPixel(r[3])-s;l.moveTo(-n.startGap,q);l.lineTo(n.length+n.endGap,q);break;case"angular":l.moveTo(n.centerX+n.length,n.centerY);l.arc(n.centerX,n.centerY,n.length,0,Math.PI*2,true);break;case"gauge":o=m.getGaugeAngles();l.moveTo(n.centerX+Math.cos(o.start)*n.length,n.centerY+Math.sin(o.start)*n.length);l.arc(n.centerX,n.centerY,n.length,o.start,o.end,true);break}}},getGaugeAngles:function(){var e=this,f=e.attr.totalAngle,d;if(f<=Math.PI){d=(Math.PI-f)*0.5}else{d=-(Math.PI*2-f)*0.5}d=Math.PI*2-d;return{start:d,end:d-f}},renderGridLines:function(C,B,w,x){var v=this,M=v.getAxis(),D=v.attr,z=D.matrix,K=D.startGap,N=D.endGap,L=z.getXX(),E=z.getYY(),G=z.getDX(),H=z.getDY(),j=D.position,I=M.getGridAlignment(),y=w.majorTicks,J,A,F;if(D.grid){if(y){if(j==="left"||j==="right"){F=D.min*E+H+N+K;v.iterate(y,function(c,a,b){J=c*E+H+N;v.putMarker(I+"-"+(b%2?"odd":"even"),{y:J,height:F-J},A=b,true);F=J});A++;J=0;v.putMarker(I+"-"+(A%2?"odd":"even"),{y:J,height:F-J},A,true)}else{if(j==="top"||j==="bottom"){F=D.min*L+G+K;if(K){v.putMarker(I+"-even",{x:0,width:F},-1,true)}v.iterate(y,function(c,a,b){J=c*L+G+K;v.putMarker(I+"-"+(b%2?"odd":"even"),{x:J,width:F-J},A=b,true);F=J});A++;J=D.length+D.startGap+D.endGap;v.putMarker(I+"-"+(A%2?"odd":"even"),{x:J,width:F-J},A,true)}else{if(j==="radial"){v.iterate(y,function(c,a,b){if(!c){return}J=c/D.max*D.length;v.putMarker(I+"-"+(b%2?"odd":"even"),{scalingX:J,scalingY:J},b,true);F=J})}else{if(j==="angular"){v.iterate(y,function(c,a,b){if(!D.length){return}J=c/(D.max+1)*Math.PI*2+D.baseRotation;v.putMarker(I+"-"+(b%2?"odd":"even"),{rotationRads:J,rotationCenterX:0,rotationCenterY:0,scalingX:D.length,scalingY:D.length},b,true);F=J})}}}}}}},renderLimits:function(C){var x=this,P=x.getAxis(),I=P.getChart(),B=I.getInnerPadding(),M=Ext.Array.from(P.getLimits());if(!M.length){return}var z=P.limits.surface.getRect(),E=x.attr,D=E.matrix,w=E.position,G=Ext.Object.chain,i=P.limits.titles,N,H,O,y,F,A,K,J,L;i.instances=[];i.position=0;if(w==="left"||w==="right"){for(A=0,K=M.length;A<K;A++){y=G(M[A]);!y.line&&(y.line={});F=Ext.isString(y.value)?P.getCoordFor(y.value):y.value;F=F*D.getYY()+D.getDY();y.line.y=F+B.top;y.line.strokeStyle=y.line.strokeStyle||E.strokeStyle;x.putMarker("horizontal-limit-lines",y.line,A,true);if(y.line.title){i.createInstance(y.line.title);N=i.getBBoxFor(i.position-1);H=y.line.title.position||(w==="left"?"start":"end");switch(H){case"start":J=10;break;case"end":J=z[2]-10;break;case"middle":J=z[2]/2;break}i.setAttributesFor(i.position-1,{x:J,y:y.line.y-N.height/2,textAlign:H,fillStyle:y.line.title.fillStyle||y.line.strokeStyle})}}}else{if(w==="top"||w==="bottom"){for(A=0,K=M.length;A<K;A++){y=G(M[A]);!y.line&&(y.line={});F=Ext.isString(y.value)?P.getCoordFor(y.value):y.value;F=F*D.getXX()+D.getDX();y.line.x=F+B.left;y.line.strokeStyle=y.line.strokeStyle||E.strokeStyle;x.putMarker("vertical-limit-lines",y.line,A,true);if(y.line.title){i.createInstance(y.line.title);N=i.getBBoxFor(i.position-1);H=y.line.title.position||(w==="top"?"end":"start");switch(H){case"start":L=z[3]-N.width/2-10;break;case"end":L=N.width/2+10;break;case"middle":L=z[3]/2;break}i.setAttributesFor(i.position-1,{x:y.line.x+N.height/2,y:L,fillStyle:y.line.title.fillStyle||y.line.strokeStyle,rotationRads:Math.PI/2})}}}else{if(w==="radial"){for(A=0,K=M.length;A<K;A++){y=G(M[A]);!y.line&&(y.line={});F=Ext.isString(y.value)?P.getCoordFor(y.value):y.value;if(F>E.max){continue}F=F/E.max*E.length;y.line.cx=E.centerX;y.line.cy=E.centerY;y.line.scalingX=F;y.line.scalingY=F;y.line.strokeStyle=y.line.strokeStyle||E.strokeStyle;x.putMarker("circular-limit-lines",y.line,A,true);if(y.line.title){i.createInstance(y.line.title);N=i.getBBoxFor(i.position-1);i.setAttributesFor(i.position-1,{x:E.centerX,y:E.centerY-F-N.height/2,fillStyle:y.line.title.fillStyle||y.line.strokeStyle})}}}else{if(w==="angular"){for(A=0,K=M.length;A<K;A++){y=G(M[A]);!y.line&&(y.line={});F=Ext.isString(y.value)?P.getCoordFor(y.value):y.value;F=F/(E.max+1)*Math.PI*2+E.baseRotation;y.line.translationX=E.centerX;y.line.translationY=E.centerY;y.line.rotationRads=F;y.line.rotationCenterX=0;y.line.rotationCenterY=0;y.line.scalingX=E.length;y.line.scalingY=E.length;y.line.strokeStyle=y.line.strokeStyle||E.strokeStyle;x.putMarker("radial-limit-lines",y.line,A,true);if(y.line.title){i.createInstance(y.line.title);N=i.getBBoxFor(i.position-1);O=((F>-0.5*Math.PI&&F<0.5*Math.PI)||(F>1.5*Math.PI&&F<2*Math.PI))?1:-1;i.setAttributesFor(i.position-1,{x:E.centerX+0.5*E.length*Math.cos(F)+O*N.height/2*Math.sin(F),y:E.centerY+0.5*E.length*Math.sin(F)-O*N.height/2*Math.cos(F),rotationRads:O===1?F:F-Math.PI,fillStyle:y.line.title.fillStyle||y.line.strokeStyle})}}}else{if(w==="gauge"){}}}}}},doThicknessChanged:function(){var b=this.getAxis();if(b){b.onThicknessChanged()}},render:function(g,j,i){var h=this,f=h.getLayoutContext();if(f){if(false===h.renderLabels(g,j,f,i)){return false}j.beginPath();h.renderTicks(g,j,f,i);h.renderAxisLine(g,j,f,i);h.renderGridLines(g,j,f,i);h.renderLimits(i);j.stroke()}}},0,0,0,0,["sprite.axis"],[["markerHolder",Ext.chart.MarkerHolder]],[Ext.chart.axis.sprite,"Axis"],0));(Ext.cmd.derive("Ext.chart.axis.segmenter.Segmenter",Ext.Base,{config:{axis:null},constructor:function(b){this.initConfig(b)},renderer:function(c,d){return String(c)},from:function(b){return b},diff:Ext.emptyFn,align:Ext.emptyFn,add:Ext.emptyFn,preferredStep:Ext.emptyFn},1,0,0,0,0,0,[Ext.chart.axis.segmenter,"Segmenter"],0));(Ext.cmd.derive("Ext.chart.axis.segmenter.Names",Ext.chart.axis.segmenter.Segmenter,{renderer:function(c,d){return c},diff:function(d,e,f){return Math.floor(e-d)},align:function(f,d,e){return Math.floor(f)},add:function(f,d,e){return f+d},preferredStep:function(h,f,e,g){return{unit:1,step:1}}},0,0,0,0,["segmenter.names"],0,[Ext.chart.axis.segmenter,"Names"],0));(Ext.cmd.derive("Ext.chart.axis.segmenter.Numeric",Ext.chart.axis.segmenter.Segmenter,{isNumeric:true,renderer:function(c,d){return c.toFixed(Math.max(0,d.majorTicks.unit.fixes))},diff:function(d,e,f){return Math.floor((e-d)/f.scale)},align:function(f,d,e){return Math.floor(f/(e.scale*d))*e.scale*d},add:function(f,d,e){return f+d*e.scale},preferredStep:function(h,e){var f=Math.floor(Math.log(e)*Math.LOG10E),g=Math.pow(10,f);e/=g;if(e<2){e=2}else{if(e<5){e=5}else{if(e<10){e=10;f++}}}return{unit:{fixes:-f,scale:g},step:e}},exactStep:function(h,e){var f=Math.floor(Math.log(e)*Math.LOG10E),g=Math.pow(10,f);return{unit:{fixes:-f+(e%g===0?0:1),scale:1},step:e}},adjustByMajorUnit:function(l,j,n){var m=n[0],h=n[1],i=l*j,k=m%i;if(k!==0){n[0]=m-k+(m<0?-i:0)}k=h%i;if(k!==0){n[1]=h-k+(h>0?i:0)}}},0,0,0,0,["segmenter.numeric"],0,[Ext.chart.axis.segmenter,"Numeric"],0));(Ext.cmd.derive("Ext.chart.axis.segmenter.Time",Ext.chart.axis.segmenter.Segmenter,{config:{step:null},renderer:function(f,d){var e=Ext.Date;switch(d.majorTicks.unit){case"y":return e.format(f,"Y");case"mo":return e.format(f,"Y-m");case"d":return e.format(f,"Y-m-d")}return e.format(f,"Y-m-d\nH:i:s")},from:function(b){return new Date(b)},diff:function(d,e,f){if(isFinite(d)){d=new Date(d)}if(isFinite(e)){e=new Date(e)}return Ext.Date.diff(d,e,f)},align:function(e,f,d){if(d==="d"&&f>=7){e=Ext.Date.align(e,"d",f);e.setDate(e.getDate()-e.getDay()+1);return e}else{return Ext.Date.align(e,d,f)}},add:function(f,d,e){return Ext.Date.add(new Date(f),e,d)},stepUnits:[[Ext.Date.YEAR,1,2,5,10,20,50,100,200,500],[Ext.Date.MONTH,1,3,6],[Ext.Date.DAY,1,7,14],[Ext.Date.HOUR,1,6,12],[Ext.Date.MINUTE,1,5,15,30],[Ext.Date.SECOND,1,5,15,30],[Ext.Date.MILLI,1,2,5,10,20,50,100,200,500]],preferredStep:function(s,p){if(this.getStep()){return this.getStep()}var o=new Date(+s),n=new Date(+s+Math.ceil(p)),q=this.stepUnits,i,j,m,r,t;for(r=0;r<q.length;r++){j=q[r][0];m=this.diff(o,n,j);if(m>0){for(t=1;t<q[r].length;t++){if(m<=q[r][t]){i={unit:j,step:q[r][t]};break}}if(!i){r--;i={unit:q[r][0],step:1}}break}}if(!i){i={unit:Ext.Date.DAY,step:1}}return i}},0,0,0,0,["segmenter.time"],0,[Ext.chart.axis.segmenter,"Time"],0));(Ext.cmd.derive("Ext.chart.axis.layout.Layout",Ext.Base,{config:{axis:null},constructor:function(b){this.mixins.observable.constructor.call(this,b)},processData:function(h){var l=this,n=l.getAxis(),k=n.getDirection(),j=n.boundSeries,i,m;if(h){h["coordinate"+k]()}else{for(i=0,m=j.length;i<m;i++){j[i]["coordinate"+k]()}}},calculateMajorTicks:function(r){var m=this,n=r.attr,o=n.max-n.min,j=o/Math.max(1,n.length)*(n.visibleMax-n.visibleMin),k=n.min+o*n.visibleMin,q=n.min+o*n.visibleMax,l=n.estStepSize*j,p=m.snapEnds(r,n.min,n.max,l);if(p){m.trimByRange(r,p,k,q);r.majorTicks=p}},calculateMinorTicks:function(b){if(this.snapMinorEnds){b.minorTicks=this.snapMinorEnds(b)}},calculateLayout:function(d){var f=this,e=d.attr;if(e.length===0){return null}if(e.majorTicks){f.calculateMajorTicks(d);if(e.minorTicks){f.calculateMinorTicks(d)}}},snapEnds:Ext.emptyFn,trimByRange:function(s,o,l,t){var n=s.segmenter,k=o.unit,m=n.diff(o.from,l,k),q=n.diff(o.from,t,k),r=Math.max(0,Math.ceil(m/o.step)),p=Math.min(o.steps,Math.floor(q/o.step));if(p<o.steps){o.to=n.add(o.from,p*o.step,k)}if(o.max>t){o.max=o.to}if(o.from<l){o.from=n.add(o.from,r*o.step,k);while(o.from<l){r++;o.from=n.add(o.from,o.step,k)}}if(o.min<l){o.min=o.from}o.steps=p-r}},1,0,0,0,0,[["observable",Ext.mixin.Observable]],[Ext.chart.axis.layout,"Layout"],0));(Ext.cmd.derive("Ext.chart.axis.layout.Discrete",Ext.chart.axis.layout.Layout,{isDiscrete:true,processData:function(){var k=this,m=k.getAxis(),n=m.boundSeries,j=m.getDirection(),h,l,i;k.labels=[];k.labelMap={};for(h=0,l=n.length;h<l;h++){i=n[h];if(i["get"+j+"Axis"]()===m){i["coordinate"+j]()}}m.getSprites()[0].setAttributes({data:k.labels});k.fireEvent("datachange",k.labels)},calculateLayout:function(b){b.data=this.labels;Ext.chart.axis.layout.Layout.prototype.calculateLayout.call(this,b)},calculateMajorTicks:function(t){var n=this,o=t.attr,q=t.data,p=o.max-o.min,k=p/Math.max(1,o.length)*(o.visibleMax-o.visibleMin),l=o.min+p*o.visibleMin,s=o.min+p*o.visibleMax,m=o.estStepSize*k;var r=n.snapEnds(t,Math.max(0,o.min),Math.min(o.max,q.length-1),m);if(r){n.trimByRange(t,r,l,s);t.majorTicks=r}},snapEnds:function(j,k,h,g){g=Math.ceil(g);var l=Math.floor((h-k)/g),i=j.data;return{min:k,max:h,from:k,to:l*g+k,step:g,steps:l,unit:1,getLabel:function(a){return i[this.from+this.step*a]},get:function(a){return this.from+this.step*a}}},trimByRange:function(q,m,k,r){var j=m.unit,l=Math.ceil((k-m.from)/j)*j,o=Math.floor((r-m.from)/j)*j,p=Math.max(0,Math.ceil(l/m.step)),n=Math.min(m.steps,Math.floor(o/m.step));if(n<m.steps){m.to=n}if(m.max>r){m.max=m.to}if(m.from<k&&m.step>0){m.from=m.from+p*m.step*j;while(m.from<k){p++;m.from+=m.step*j}}if(m.min<k){m.min=m.from}m.steps=n-p},getCoordFor:function(h,g,f,e){this.labels.push(h);return this.labels.length-1}},0,0,0,0,["axisLayout.discrete"],0,[Ext.chart.axis.layout,"Discrete"],0));(Ext.cmd.derive("Ext.chart.axis.layout.CombineDuplicate",Ext.chart.axis.layout.Discrete,{getCoordFor:function(i,h,f,j){if(!(i in this.labelMap)){var g=this.labelMap[i]=this.labels.length;this.labels.push(i);return g}return this.labelMap[i]}},0,0,0,0,["axisLayout.combineDuplicate"],0,[Ext.chart.axis.layout,"CombineDuplicate"],0));(Ext.cmd.derive("Ext.chart.axis.layout.Continuous",Ext.chart.axis.layout.Layout,{isContinuous:true,config:{adjustMinimumByMajorUnit:false,adjustMaximumByMajorUnit:false},getCoordFor:function(h,g,f,e){return +h},snapEnds:function(x,u,p,q){var s=x.segmenter,v=this.getAxis(),m=v.getMajorTickSteps(),t=m&&s.exactStep?s.exactStep(u,(p-u)/m):s.preferredStep(u,q),n=t.unit,w=t.step,o=s.align(u,w,n),r=(m||s.diff(u,p,n))+1;return{min:s.from(u),max:s.from(p),from:o,to:s.add(o,r*w,n),step:w,steps:r,unit:n,get:function(a){return s.add(this.from,this.step*a,n)}}},snapMinorEnds:function(B){var x=B.majorTicks,p=this.getAxis().getMinorTickSteps(),w=B.segmenter,y=x.min,t=x.max,r=x.from,q=x.unit,A=x.step/p,o=A*q.scale,s=r-y,z=Math.floor(s/o),u=z+Math.floor((t-x.to)/o)+1,v=x.steps*p+u;return{min:y,max:t,from:y+s%o,to:w.add(r,v*A,q),step:A,steps:v,unit:q,get:function(a){return(a%p+z+1!==0)?w.add(this.from,this.step*a,q):null}}}},0,0,0,0,["axisLayout.continuous"],0,[Ext.chart.axis.layout,"Continuous"],0));(Ext.cmd.derive("Ext.chart.axis.Axis",Ext.Base,{isAxis:true,config:{position:"bottom",fields:[],label:undefined,grid:false,limits:null,renderer:null,chart:null,style:null,margin:0,titleMargin:4,background:null,minimum:NaN,maximum:NaN,reconcileRange:false,minZoom:1,maxZoom:10000,layout:"continuous",segmenter:"numeric",hidden:false,majorTickSteps:0,minorTickSteps:0,adjustByMajorUnit:true,title:null,increment:0.5,length:0,center:null,radius:null,totalAngle:Math.PI,rotation:null,labelInSpan:null,visibleRange:[0,1],needHighPrecision:false,linkedTo:null,floating:null},titleOffset:0,spriteAnimationCount:0,prevMin:0,prevMax:1,boundSeries:[],sprites:null,surface:null,range:null,xValues:[],yValues:[],masterAxis:null,applyRotation:function(c){var d=Math.PI*2;return(c%d+Math.PI)%d-Math.PI},updateRotation:function(d){var f=this.getSprites(),e=this.getPosition();if(!this.getHidden()&&e==="angular"&&f[0]){f[0].setAttributes({baseRotation:d})}},applyTitle:function(f,d){var e;if(Ext.isString(f)){f={text:f}}if(!d){d=Ext.create("sprite.text",f);if((e=this.getSurface())){e.add(d)}}else{d.setAttributes(f)}return d},applyFloating:function(c,d){if(c===null){c={value:null,alongAxis:null}}else{if(Ext.isNumber(c)){c={value:c,alongAxis:null}}}if(Ext.isObject(c)){if(d&&d.alongAxis){delete this.getChart().getAxis(d.alongAxis).floatingAxes[this.getId()]}return c}return d},constructor:function(e){var d=this,f;d.sprites=[];d.labels=[];d.floatingAxes={};e=e||{};if(e.position==="angular"){e.style=e.style||{};e.style.estStepSize=1}if("id" in e){f=e.id}else{if("id" in d.config){f=d.config.id}else{f=d.getId()}}d.setId(f);d.mixins.observable.constructor.apply(d,arguments)},getAlignment:function(){switch(this.getPosition()){case"left":case"right":return"vertical";case"top":case"bottom":return"horizontal";case"radial":return"radial";case"angular":return"angular"}},getGridAlignment:function(){switch(this.getPosition()){case"left":case"right":return"horizontal";case"top":case"bottom":return"vertical";case"radial":return"circular";case"angular":return"radial"}},getSurface:function(){var j=this,k=j.getChart();if(k&&!j.surface){var g=j.surface=k.getSurface(j.getId(),"axis"),l=j.gridSurface=k.getSurface("main"),h=j.getSprites()[0],i=j.getGridAlignment();l.waitFor(g);j.getGrid();if(j.getLimits()&&i){i=i.replace("3d","");j.limits={surface:k.getSurface("overlay"),lines:new Ext.chart.Markers(),titles:new Ext.draw.sprite.Instancing()};j.limits.lines.setTemplate({xclass:"grid."+i});j.limits.lines.getTemplate().setAttributes({strokeStyle:"black"},true);j.limits.surface.add(j.limits.lines);h.bindMarker(i+"-limit-lines",j.limits.lines);j.limitTitleTpl=new Ext.draw.sprite.Text();j.limits.titles.setTemplate(j.limitTitleTpl);j.limits.surface.add(j.limits.titles);k.on("redraw",j.renderLimits,j)}}return j.surface},applyGrid:function(b){if(b===true){return{}}return b},updateGrid:function(h){var l=this,m=l.getChart();if(!m){l.on({chartattached:Ext.bind(l.updateGrid,l,[h]),single:true});return}var n=l.gridSurface,i=l.getSprites()[0],k=l.getGridAlignment(),j;if(h){j=l.gridSpriteEven;if(!j){j=l.gridSpriteEven=new Ext.chart.Markers();j.setTemplate({xclass:"grid."+k});n.add(j);i.bindMarker(k+"-even",j)}if(Ext.isObject(h)){j.getTemplate().setAttributes(h);if(Ext.isObject(h.even)){j.getTemplate().setAttributes(h.even)}}j=l.gridSpriteOdd;if(!j){j=l.gridSpriteOdd=new Ext.chart.Markers();j.setTemplate({xclass:"grid."+k});n.add(j);i.bindMarker(k+"-odd",j)}if(Ext.isObject(h)){j.getTemplate().setAttributes(h);if(Ext.isObject(h.odd)){j.getTemplate().setAttributes(h.odd)}}}},renderLimits:function(){this.getSprites()[0].renderLimits()},getCoordFor:function(h,g,f,e){return this.getLayout().getCoordFor(h,g,f,e)},applyPosition:function(b){return b.toLowerCase()},applyLength:function(c,d){return c>0?c:d},applyLabel:function(c,d){if(!d){d=new Ext.draw.sprite.Text({})}if(this.limitTitleTpl){this.limitTitleTpl.setAttributes(c)}d.setAttributes(c);return d},applyLayout:function(c,d){c=Ext.factory(c,null,d,"axisLayout");c.setAxis(this);return c},applySegmenter:function(d,c){d=Ext.factory(d,null,c,"segmenter");d.setAxis(this);return d},updateMinimum:function(){this.range=null},updateMaximum:function(){this.range=null},hideLabels:function(){this.getSprites()[0].setDirty(true);this.setLabel({hidden:true})},showLabels:function(){this.getSprites()[0].setDirty(true);this.setLabel({hidden:false})},renderFrame:function(){this.getSurface().renderFrame()},updateChart:function(g,e){var h=this,f;if(e){e.unregister(h);e.un("serieschange",h.onSeriesChange,h);e.un("redraw",h.renderLimits,h);h.linkAxis();h.fireEvent("chartdetached",e,h)}if(g){g.on("serieschange",h.onSeriesChange,h);h.surface=null;f=h.getSurface();h.getLabel().setSurface(f);f.add(h.getSprites());f.add(h.getTitle());g.register(h);h.fireEvent("chartattached",g,h)}},applyBackground:function(d){var c=Ext.ClassManager.getByAlias("sprite.rect");return c.def.normalize(d)},processData:function(){this.getLayout().processData();this.range=null},getDirection:function(){return this.getChart().getDirectionForAxis(this.getPosition())},isSide:function(){var b=this.getPosition();return b==="left"||b==="right"},applyFields:function(b){return Ext.Array.from(b)},applyVisibleRange:function(e,f){this.getChart();if(e[0]>e[1]){var d=e[0];e[0]=e[1];e[0]=d}if(e[1]===e[0]){e[1]+=1/this.getMaxZoom()}if(e[1]>e[0]+1){e[0]=0;e[1]=1}else{if(e[0]<0){e[1]-=e[0];e[0]=0}else{if(e[1]>1){e[0]-=e[1]-1;e[1]=1}}}if(f&&e[0]===f[0]&&e[1]===f[1]){return undefined}return e},updateVisibleRange:function(b){this.fireEvent("visiblerangechange",this,b)},onSeriesChange:function(n){var m=this,q=n.getSeries(),i="get"+m.getDirection()+"Axis",l=[],p,o=q.length,r,k;for(p=0;p<o;p++){if(this===q[p][i]()){l.push(q[p])}}m.boundSeries=l;r=m.getLinkedTo();k=!Ext.isEmpty(r)&&n.getAxis(r);if(k){m.linkAxis(k)}else{m.getLayout().processData()}},linkAxis:function(e){var f=this;function d(a,c,b){b.getLayout()[a]("datachange","onDataChange",c);b[a]("rangechange","onMasterAxisRangeChange",c)}if(f.masterAxis){d("un",f,f.masterAxis);f.masterAxis=null}if(e){if(e.type!==this.type){Ext.Error.raise("Linked axes must be of the same type.")}d("on",f,e);f.onDataChange(e.getLayout().labels);f.onMasterAxisRangeChange(e,e.range);f.setStyle(Ext.apply({},f.config.style,e.config.style));f.setTitle(Ext.apply({},f.config.title,e.config.title));f.setLabel(Ext.apply({},f.config.label,e.config.label));f.masterAxis=e}},onDataChange:function(b){this.getLayout().labels=b},onMasterAxisRangeChange:function(c,d){this.range=d},applyRange:function(b){if(!b){return this.dataRange.slice(0)}else{return[b[0]===null?this.dataRange[0]:b[0],b[1]===null?this.dataRange[1]:b[1]]}},getRange:function(){var s=this;if(s.range){return s.range}else{if(s.masterAxis){return s.masterAxis.range}}if(Ext.isNumber(s.getMinimum()+s.getMaximum())){return s.range=[s.getMinimum(),s.getMaximum()]}var A=Infinity,r=-Infinity,q=s.boundSeries,w=s.getLayout(),t=s.getSegmenter(),i=s.getVisibleRange(),C="get"+s.getDirection()+"Range",D,v,x,y,z,u;for(z=0,u=q.length;z<u;z++){y=q[z];var B=y[C]();if(B){if(B[0]<A){A=B[0]}if(B[1]>r){r=B[1]}}}if(!isFinite(r)){r=s.prevMax}if(!isFinite(A)){A=s.prevMin}if(s.getLabelInSpan()||A===r){r+=s.getIncrement();A-=s.getIncrement()}if(Ext.isNumber(s.getMinimum())){A=s.getMinimum()}else{s.prevMin=A}if(Ext.isNumber(s.getMaximum())){r=s.getMaximum()}else{s.prevMax=r}s.range=[Ext.Number.correctFloat(A),Ext.Number.correctFloat(r)];if(s.getReconcileRange()){s.reconcileRange()}if(s.getAdjustByMajorUnit()&&t.adjustByMajorUnit&&!s.getMajorTickSteps()){v=Ext.Object.chain(s.getSprites()[0].attr);v.min=s.range[0];v.max=s.range[1];v.visibleMin=i[0];v.visibleMax=i[1];D={attr:v,segmenter:t};w.calculateLayout(D);x=D.majorTicks;if(x){t.adjustByMajorUnit(x.step,x.unit.scale,s.range);v.min=s.range[0];v.max=s.range[1];delete D.majorTicks;w.calculateLayout(D);x=D.majorTicks;t.adjustByMajorUnit(x.step,x.unit.scale,s.range)}else{if(!s.hasClearRangePending){s.hasClearRangePending=true;s.getChart().on("layout","clearRange",s)}}}if(!Ext.Array.equals(s.range,s.oldRange||[])){s.fireEvent("rangechange",s,s.range);s.oldRange=s.range}return s.range},clearRange:function(){delete this.hasClearRangePending;this.range=null},reconcileRange:function(){var l=this,j=l.getChart().getAxes(),k=l.getDirection(),h,m,n,i;if(!j){return}for(h=0,m=j.length;h<m;h++){n=j[h];i=n.getRange();if(n===l||n.getDirection()!==k||!i||!n.getReconcileRange()){continue}if(i[0]<l.range[0]){l.range[0]=i[0]}if(i[1]>l.range[1]){l.range[1]=i[1]}}},applyStyle:function(f,d){var e=Ext.ClassManager.getByAlias("sprite."+this.seriesType);if(e&&e.def){f=e.def.normalize(f)}d=Ext.apply(d||{},f);return d},themeOnlyIfConfigured:{grid:true},updateTheme:function(C){var x=this,v=C.getAxis(),B=x.getPosition(),r=x.getInitialConfig(),D=x.defaultConfig,z=x.getConfigurator().configs,F=v.defaults,s=v[B],y=x.themeOnlyIfConfigured,u,w,q,E,t,A;v=Ext.merge({},F,s);for(u in v){w=v[u];A=z[u];if(w!==null&&w!==undefined&&A){t=r[u];q=Ext.isObject(w);E=t===D[u];if(q){if(E&&y[u]){continue}w=Ext.merge({},w,t)}if(E||q){x[A.names.set](w)}}}},updateCenter:function(f){var h=this.getSprites(),g=h[0],i=f[0],j=f[1];if(g){g.setAttributes({centerX:i,centerY:j})}if(this.gridSpriteEven){this.gridSpriteEven.getTemplate().setAttributes({translationX:i,translationY:j,rotationCenterX:i,rotationCenterY:j})}if(this.gridSpriteOdd){this.gridSpriteOdd.getTemplate().setAttributes({translationX:i,translationY:j,rotationCenterX:i,rotationCenterY:j})}},getSprites:function(){if(!this.getChart()){return}var j=this,n=j.getRange(),m=j.getPosition(),l=j.getChart(),p=l.getAnimation(),o,r,q=j.getLength(),k=j.superclass;if(p===false){p={duration:0}}if(n){r=Ext.applyIf({position:m,axis:j,min:n[0],max:n[1],length:q,grid:j.getGrid(),hidden:j.getHidden(),titleOffset:j.titleOffset,layout:j.getLayout(),segmenter:j.getSegmenter(),totalAngle:j.getTotalAngle(),label:j.getLabel()},j.getStyle());if(!j.sprites.length){while(!k.xtype){k=k.superclass}o=Ext.create("sprite."+k.xtype,r);o.fx.setCustomDurations({baseRotation:0});o.fx.on("animationstart","onAnimationStart",j);o.fx.on("animationend","onAnimationEnd",j);o.setLayout(j.getLayout());o.setSegmenter(j.getSegmenter());o.setLabel(j.getLabel());j.sprites.push(o);j.updateTitleSprite()}else{o=j.sprites[0];o.setAnimation(p);o.setAttributes(r)}if(j.getRenderer()){o.setRenderer(j.getRenderer())}}return j.sprites},updateTitleSprite:function(){var m=this,q=m.getLength();if(!m.sprites[0]||!Ext.isNumber(q)){return}var k=this.sprites[0].thickness,r=m.getSurface(),l=m.getTitle(),n=m.getPosition(),p=m.getMargin(),j=m.getTitleMargin(),o=r.roundPixel(q/2);if(l){switch(n){case"top":l.setAttributes({x:o,y:p+j/2,textBaseline:"top",textAlign:"center"},true);l.applyTransformations();m.titleOffset=l.getBBox().height+j;break;case"bottom":l.setAttributes({x:o,y:k+j/2,textBaseline:"top",textAlign:"center"},true);l.applyTransformations();m.titleOffset=l.getBBox().height+j;break;case"left":l.setAttributes({x:p+j/2,y:o,textBaseline:"top",textAlign:"center",rotationCenterX:p+j/2,rotationCenterY:o,rotationRads:-Math.PI/2},true);l.applyTransformations();m.titleOffset=l.getBBox().width+j;break;case"right":l.setAttributes({x:k-p+j/2,y:o,textBaseline:"bottom",textAlign:"center",rotationCenterX:k+j/2,rotationCenterY:o,rotationRads:Math.PI/2},true);l.applyTransformations();m.titleOffset=l.getBBox().width+j;break}}},onThicknessChanged:function(){this.getChart().onThicknessChanged()},getThickness:function(){if(this.getHidden()){return 0}return(this.sprites[0]&&this.sprites[0].thickness||1)+this.titleOffset+this.getMargin()},onAnimationStart:function(){this.spriteAnimationCount++;if(this.spriteAnimationCount===1){this.fireEvent("animationstart",this)}},onAnimationEnd:function(){this.spriteAnimationCount--;if(this.spriteAnimationCount===0){this.fireEvent("animationend",this)}},getItemId:function(){return this.getId()},getAncestorIds:function(){return[this.getChart().getId()]},isXType:function(b){return b==="axis"},resolveListenerScope:function(h){var i=this,g=Ext._namedScopes[h],j=i.getChart(),f;if(!g){f=j?j.resolveListenerScope(h,false):(h||i)}else{if(g.isThis){f=i}else{if(g.isController){f=j?j.resolveListenerScope(h,false):i}else{if(g.isSelf){f=j?j.resolveListenerScope(h,false):i;if(f===j&&!j.getInheritedConfig("defaultListenerScope")){f=i}}}}}return f},destroy:function(){var b=this;b.setChart(null);b.surface.destroy();b.surface=null;b.callParent()}},1,["axis"],["axis"],{axis:true},["widget.axis"],[["observable",Ext.mixin.Observable]],[Ext.chart.axis,"Axis"],0));(Ext.cmd.derive("Ext.chart.LegendBase",Ext.view.View,{config:{tpl:['<div class="',"x-",'legend-container">','<tpl for=".">','<div class="',"x-",'legend-item">',"<span ",'class="',"x-","legend-item-marker {[ values.disabled ? Ext.baseCSSPrefix + 'legend-inactive' : '' ]}\" ",'style="background:{mark};">',"</span>{name}","</div>","</tpl>","</div>"],nodeContainerSelector:"div.x-legend-container",itemSelector:"div.x-legend-item",docked:"bottom"},setDocked:function(g){var h=this,f=h.ownerCt,e;h.docked=g;switch(g){case"top":case"bottom":h.addCls("x-horizontal");e="hbox";break;case"left":case"right":h.removeCls("x-horizontal");e="vbox";break}if(f){f.setDocked(g)}},setStore:function(b){this.bindStore(b)},clearViewEl:function(){Ext.view.View.prototype.clearViewEl.apply(this,arguments);Ext.removeNode(this.getNodeContainer())},onItemClick:function(f,h,e,g){Ext.view.View.prototype.onItemClick.apply(this,arguments);this.toggleItem(e)}},0,0,["component","box","dataview"],{component:true,box:true,dataview:true},0,0,[Ext.chart,"LegendBase"],0));(Ext.cmd.derive("Ext.chart.Legend",Ext.chart.LegendBase,{config:{baseCls:"x-legend",padding:5,rect:null,disableSelection:true,toggleable:true},toggleItem:function(p){if(!this.getToggleable()){return}var i=this.getStore(),k=0,n,l=true,o,m,j;if(i){m=i.getCount();for(o=0;o<m;o++){j=i.getAt(o);if(j.get("disabled")){k++}}l=m-k>1;j=i.getAt(p);if(j){n=j.get("disabled");if(n||l){j.set("disabled",!n)}}}}},0,["legend"],["component","box","dataview","legend"],{component:true,box:true,dataview:true,legend:true},["widget.legend"],0,[Ext.chart,"Legend"],0));(Ext.cmd.derive("Ext.chart.AbstractChart",Ext.draw.Container,{isChart:true,defaultBindProperty:"store",config:{store:"ext-empty-store",theme:"default",style:null,animation:!Ext.isIE8,series:[],axes:[],legend:null,colors:null,insetPadding:{top:10,left:10,right:10,bottom:10},background:null,interactions:[],mainRect:null,resizeHandler:null,highlightItem:null},animationSuspendCount:0,chartLayoutSuspendCount:0,axisThicknessSuspendCount:0,isThicknessChanged:false,surfaceZIndexes:{background:0,main:1,grid:2,series:3,axis:4,chart:5,overlay:6,events:7},constructor:function(d){var c=this;c.itemListeners={};c.surfaceMap={};c.chartComponents={};c.isInitializing=true;c.suspendChartLayout();c.animationSuspendCount++;Ext.draw.Container.prototype.constructor.apply(this,arguments);delete c.isInitializing;c.getSurface("main");c.getSurface("chart").setFlipRtlText(c.getInherited().rtl);c.getSurface("overlay").waitFor(c.getSurface("series"));c.animationSuspendCount--;c.resumeChartLayout()},applyAnimation:function(d,c){if(!d){d={duration:0}}else{if(d===true){d={easing:"easeInOut",duration:500}}}return c?Ext.apply({},d,c):d},getAnimation:function(){if(this.animationSuspendCount){return{duration:0}}else{return(arguments.callee.$previous||Ext.draw.Container.prototype.getAnimation).call(this)}},applyInsetPadding:function(c,d){if(!Ext.isObject(c)){return Ext.util.Format.parseBox(c)}else{if(!d){return c}else{return Ext.apply(d,c)}}},suspendAnimation:function(){var i=this,j=i.getSeries(),h=j.length,f=-1,g;i.animationSuspendCount++;if(i.animationSuspendCount===1){while(++f<h){g=j[f];g.setAnimation(g.getAnimation())}}},resumeAnimation:function(){var k=this,l=k.getSeries(),i=l.length,g=-1,h,j;k.animationSuspendCount--;if(k.animationSuspendCount===0){while(++g<i){h=l[g];j=h.getAnimation();h.setAnimation(j.duration&&j||k.getAnimation())}}},suspendChartLayout:function(){this.chartLayoutSuspendCount++;if(this.chartLayoutSuspendCount===1){if(this.scheduledLayoutId){this.layoutInSuspension=true;this.cancelChartLayout()}else{this.layoutInSuspension=false}}},resumeChartLayout:function(){this.chartLayoutSuspendCount--;if(this.chartLayoutSuspendCount===0){if(this.layoutInSuspension){this.scheduleLayout()}}},cancelChartLayout:function(){if(this.scheduledLayoutId){Ext.draw.Animator.cancel(this.scheduledLayoutId);this.scheduledLayoutId=null}},scheduleLayout:function(){var b=this;if(b.allowSchedule()&&!b.scheduledLayoutId){b.scheduledLayoutId=Ext.draw.Animator.schedule("doScheduleLayout",b)}},allowSchedule:function(){return true},doScheduleLayout:function(){if(this.chartLayoutSuspendCount){this.layoutInSuspension=true}else{this.performLayout()}},suspendThicknessChanged:function(){this.axisThicknessSuspendCount++},resumeThicknessChanged:function(){if(this.axisThicknessSuspendCount>0){this.axisThicknessSuspendCount--;if(this.axisThicknessSuspendCount===0&&this.isThicknessChanged){this.onThicknessChanged()}}},onThicknessChanged:function(){if(this.axisThicknessSuspendCount===0){this.isThicknessChanged=false;this.performLayout()}else{this.isThicknessChanged=true}},applySprites:function(c){var d=this.getSurface("chart");c=Ext.Array.from(c);d.removeAll(true);d.add(c);return c},initItems:function(){var f=this.items,e,g,h;if(f&&!f.isMixedCollection){this.items=[];f=Ext.Array.from(f);for(e=0,g=f.length;e<g;e++){h=f[e];if(h.type){Ext.raise("To add custom sprites to the chart use the 'sprites' config.")}else{this.items.push(h)}}}this.callParent()},applyBackground:function(l,j){var g=this.getSurface("background"),k,h,i;if(l){if(j){k=j.attr.width;h=j.attr.height;i=j.type===(l.type||"rect")}if(l.isSprite){j=l}else{if(l.type==="image"&&Ext.isString(l.src)){if(i){j.setAttributes({src:l.src})}else{g.remove(j,true);j=g.add(l)}}else{if(i){j.setAttributes({fillStyle:l})}else{g.remove(j,true);j=g.add({type:"rect",fillStyle:l,fx:{customDurations:{x:0,y:0,width:0,height:0}}})}}}}if(k&&h){j.setAttributes({width:k,height:h})}j.setAnimation(this.getAnimation());return j},getLegendStore:function(){return this.legendStore},refreshLegendStore:function(){if(this.getLegendStore()){var i,h,j=this.getSeries(),f,g=[];if(j){for(i=0,h=j.length;i<h;i++){f=j[i];if(f.getShowInLegend()){f.provideLegendInfo(g)}}}this.getLegendStore().setData(g)}},resetLegendStore:function(){var j=this.getLegendStore(),h,i,g,f;if(j){h=this.getLegendStore().getData().items;for(i=0,g=h.length;i<g;i++){f=h[i];f.beginEdit();f.set("disabled",false);f.commit()}}},onUpdateLegendStore:function(e,f){var g=this.getSeries(),h;if(f&&g){h=g.map[f.get("series")];if(h){h.setHiddenByIndex(f.get("index"),f.get("disabled"));this.redraw()}}},defaultResizeHandler:function(b){this.scheduleLayout();return false},applyMainRect:function(d,c){if(!c){return d}this.getSeries();this.getAxes();if(d[0]===c[0]&&d[1]===c[1]&&d[2]===c[2]&&d[3]===c[3]){return c}else{return d}},register:function(e){var d=this.chartComponents,f=e.getId();d[f]=e},unregister:function(e){var d=this.chartComponents,f=e.getId();delete d[f]},get:function(b){return this.chartComponents[b]},getAxis:function(b){if(b instanceof Ext.chart.axis.Axis){return b}else{if(Ext.isNumber(b)){return this.getAxes()[b]}else{if(Ext.isString(b)){return this.get(b)}}}},getSurface:function(g,l){g=g||"main";l=l||g;var k=this,h=Ext.draw.Container.prototype.getSurface.call(this,g),i=k.surfaceZIndexes,j=k.surfaceMap;if(l in i){h.element.setStyle("zIndex",i[l])}if(!j[l]){j[l]=[]}if(Ext.Array.indexOf(j[l],h)<0){h.type=l;j[l].push(h);h.on("destroy",k.forgetSurface,k)}return h},forgetSurface:function(f){var g=this.surfaceMap;if(!g||this.isDestroying){return}var h=g[f.type],e=h?Ext.Array.indexOf(h,f):-1;if(e>=0){h.splice(e,1)}},applyAxes:function(w,o){var n=this,r={left:"right",right:"left"},i=[],v,u,t,x,s,q,p;n.animationSuspendCount++;n.getStore();if(!o){o=[];o.map={}}p=o.map;i.map={};w=Ext.Array.from(w,true);for(s=0,q=w.length;s<q;s++){v=w[s];if(!v){continue}if(v instanceof Ext.chart.axis.Axis){u=p[v.getId()];v.setChart(n)}else{v=Ext.Object.chain(v);t=v.linkedTo;x=v.id;if(Ext.isNumber(t)){v=Ext.merge({},w[t],v)}else{if(Ext.isString(t)){Ext.Array.each(w,function(a){if(a.id===v.linkedTo){v=Ext.merge({},a,v);return false}})}}v.id=x;v.chart=n;if(n.getInherited().rtl){v.position=r[v.position]||v.position}x=v.getId&&v.getId()||v.id;v=Ext.factory(v,null,u=p[x],"axis")}if(v){i.push(v);i.map[v.getId()]=v;if(!u){v.on("animationstart","onAnimationStart",n);v.on("animationend","onAnimationEnd",n)}}}for(s in p){if(!i.map[s]){p[s].destroy()}}n.animationSuspendCount--;return i},updateAxes:function(){if(!this.isDestroying){this.scheduleLayout()}},circularCopyArray:function(j,i,k){var l=[],g,h=j&&j.length;if(h){for(g=0;g<k;g++){l.push(j[(i+g)%h])}}return l},circularCopyObject:function(k,j,m){var n=this,h,l,i={};if(m){for(h in k){if(k.hasOwnProperty(h)){l=k[h];if(Ext.isArray(l)){i[h]=n.circularCopyArray(l,j,m)}else{i[h]=l}}}}return i},getColors:function(){var d=this,e=d.config.colors,f=d.getTheme();if(Ext.isArray(e)&&e.length>0){e=d.applyColors(e)}return e||(f&&f.getColors())},applyColors:function(b){b=Ext.Array.map(b,function(a){if(Ext.isString(a)){return a}else{return a.toString()}});return b},updateColors:function(t){var m=this,r=m.getTheme(),v=t||(r&&r.getColors()),i=0,q=m.getSeries(),s=q&&q.length,p,n,u,o;if(v.length){for(p=0;p<s;p++){n=q[p];o=n.themeColorCount();u=m.circularCopyArray(v,i,o);i+=o;n.updateChartColors(u)}}m.refreshLegendStore()},applyTheme:function(b){if(b&&b.isTheme){return b}return Ext.Factory.chartTheme(b)},updateTheme:function(j){var l=this,k=l.getAxes(),m=l.getSeries(),i=l.getColors(),n,h;l.updateChartTheme(j);for(h=0;h<k.length;h++){k[h].updateTheme(j)}for(h=0;h<m.length;h++){n=m[h];n.updateTheme(j)}l.updateSpriteTheme(j);l.updateColors(i);l.redraw()},themeOnlyIfConfigured:{},updateChartTheme:function(B){var v=this,t=B.getChart(),q=v.getInitialConfig(),C=v.defaultConfig,z=v.getConfigurator().configs,y=t.defaults,x=t[v.xtype],w=v.themeOnlyIfConfigured,s,u,p,D,r,A;t=Ext.merge({},y,x);for(s in t){u=t[s];A=z[s];if(u!==null&&u!==undefined&&A){r=q[s];p=Ext.isObject(u);D=r===C[s];if(p){if(D&&w[s]){continue}u=Ext.merge({},u,r)}if(D||p){v[A.names.set](u)}}}},updateSpriteTheme:function(v){this.getSprites();var p=this,t=p.getSurface("chart"),q=t.getItems(),i=v.getSprites(),o,x,n,s,u,w,r;for(w=0,r=q.length;w<r;w++){o=q[w];x=i[o.type];if(x){s={};u=o.type==="text";for(n in x){if(!(n in o.config)){if(!(u&&n.indexOf("font")===0&&o.config.font)){s[n]=x[n]}}}o.setAttributes(s)}}},addSeries:function(c){var d=this.getSeries();Ext.Array.push(d,c);this.setSeries(d)},removeSeries:function(m){m=Ext.Array.from(m);var h=this.getSeries(),k=[],i=m.length,j={},n,l;for(n=0;n<i;n++){l=m[n];if(typeof l!=="string"){l=l.getId()}j[l]=true}for(n=0,i=h.length;n<i;n++){if(!j[h[n].getId()]){k.push(h[n])}}this.setSeries(k)},applySeries:function(n,o){var l=this,i=[],k,r,p,m,q;l.animationSuspendCount++;l.getAxes();if(o){k=o.map}else{o=[];k=o.map={}}i.map={};n=Ext.Array.from(n,true);for(p=0,m=n.length;p<m;p++){q=n[p];if(!q){continue}r=k[q.getId&&q.getId()||q.id];if(q instanceof Ext.chart.series.Series){if(r&&r!==q){r.destroy()}q.setChart(l)}else{if(Ext.isObject(q)){if(r){r.setConfig(q);q=r}else{if(Ext.isString(q)){q={type:q}}q.chart=l;q=Ext.create(q.xclass||("series."+q.type),q);q.on("animationstart","onAnimationStart",l);q.on("animationend","onAnimationEnd",l)}}}i.push(q);i.map[q.getId()]=q}for(p in k){if(!i.map[k[p].getId()]){k[p].destroy()}}l.animationSuspendCount--;return i},applyLegend:function(c,d){return Ext.factory(c,Ext.chart.Legend,d)},updateLegend:function(c,d){if(d){d.destroy()}if(c){this.getItems();this.legendStore=new Ext.data.Store({autoDestroy:true,fields:["id","name","mark","disabled","series","index"]});c.setStore(this.legendStore);this.refreshLegendStore();this.legendStore.on("update","onUpdateLegendStore",this)}},updateSeries:function(d,e){var f=this;if(f.isDestroying){return}f.animationSuspendCount++;f.fireEvent("serieschange",f,d,e);f.refreshLegendStore();if(!Ext.isEmpty(d)){f.updateTheme(f.getTheme())}f.scheduleLayout();f.animationSuspendCount--},applyInteractions:function(k,o){if(!o){o=[];o.map={}}var l=this,j=[],p=o.map,n,m,i;j.map={};k=Ext.Array.from(k,true);for(n=0,m=k.length;n<m;n++){i=k[n];if(!i){continue}i=Ext.factory(i,null,p[i.getId&&i.getId()||i.id],"interaction");if(i){i.setChart(l);j.push(i);j.map[i.getId()]=i}}for(n in p){if(!j.map[n]){p[n].destroy()}}return j},getInteraction:function(j){var i=this.getInteractions(),h=i&&i.length,l=null,g,k;if(h){for(k=0;k<h;++k){g=i[k];if(g.type===j){l=g;break}}}return l},applyStore:function(b){return b&&Ext.StoreManager.lookup(b)},updateStore:function(e,f){var d=this;if(f){f.un({datachanged:"onDataChanged",update:"onDataChanged",scope:d,order:"after"});if(f.autoDestroy){f.destroy()}}if(e){e.on({datachanged:"onDataChanged",update:"onDataChanged",scope:d,order:"after"})}d.fireEvent("storechange",d,e,f);d.onDataChanged()},redraw:function(){this.fireEvent("redraw",this)},performLayout:function(){var g=this,e=g.getChartSize(true),h=[0,0,e.width,e.height],f=g.getBackground();g.hasFirstLayout=true;g.fireEvent("layout",g);g.cancelChartLayout();g.getSurface("background").setRect(h);g.getSurface("chart").setRect(h);f.setAttributes({width:e.width,height:e.height})},getChartSize:function(c){var d=this;if(c){d.chartSize=null}return d.chartSize||(d.chartSize=d.innerElement.getSize())},getEventXY:function(b){return this.getSurface().getEventXY(b)},getItemForPoint:function(k,l){var m=this,r=m.getSeries(),n=m.getMainRect(),o=r.length,q=m.hasFirstLayout?o-1:-1,p,i;if(!(n&&k>=0&&k<=n[2]&&l>=0&&l<=n[3])){return null}for(;q>=0;q--){p=r[q];i=p.getItemForPoint(k,l);if(i){return i}}return null},getItemsForPoint:function(k,l){var m=this,r=m.getSeries(),o=r.length,q=m.hasFirstLayout?o-1:-1,n=[],p,i;for(;q>=0;q--){p=r[q];i=p.getItemForPoint(k,l);if(i){n.push(i)}}return n},onAnimationStart:function(){this.fireEvent("animationstart",this)},onAnimationEnd:function(){this.fireEvent("animationend",this)},onDataChanged:function(){var i=this;if(i.isInitializing){return}var j=i.getMainRect(),g=i.getStore(),f=i.getSeries(),h=i.getAxes();if(!g||!h||!f){return}if(!j){i.on({redraw:i.onDataChanged,scope:i,single:true});return}i.processData();i.redraw()},recordCount:0,processData:function(){var j=this,l=j.getStore().getCount(),n=j.getSeries(),k=n.length,m=false,h=0,i;for(;h<k;h++){i=n[h];i.processData();if(!m&&i.isStoreDependantColorCount){m=true}}if(m&&l>j.recordCount){j.updateColors(j.getColors());j.recordCount=l}},bindStore:function(b){this.setStore(b)},applyHighlightItem:function(i,h){if(i===h){return}if(Ext.isObject(i)&&Ext.isObject(h)){var j=i,k=h,l=j.sprite&&(j.sprite[0]||j.sprite),g=k.sprite&&(k.sprite[0]||k.sprite);if(l===g&&j.index===k.index){return}}return i},updateHighlightItem:function(c,d){if(d){d.series.setAttributesForItem(d,{highlighted:false})}if(c){c.series.setAttributesForItem(c,{highlighted:true});this.fireEvent("itemhighlight",this,c,d)}this.fireEvent("itemhighlightchange",this,c,d)},destroyChart:function(){var m=this,o=m.getLegend(),l=m.getAxes(),p=m.getSeries(),k=m.getInteractions(),i=[],j,n;m.surfaceMap=null;for(j=0,n=k.length;j<n;j++){k[j].destroy()}for(j=0,n=l.length;j<n;j++){l[j].destroy()}for(j=0,n=p.length;j<n;j++){p[j].destroy()}m.setInteractions(i);m.setAxes(i);m.setSeries(i);if(o){o.destroy();m.setLegend(null)}m.legendStore=null;m.setStore(null);m.cancelChartLayout()},getRefItems:function(i){var l=this,n=l.getSeries(),k=l.getAxes(),j=l.getInteractions(),p=[],o,m;for(o=0,m=n.length;o<m;o++){p.push(n[o]);if(n[o].getRefItems){p.push.apply(p,n[o].getRefItems(i))}}for(o=0,m=k.length;o<m;o++){p.push(k[o]);if(k[o].getRefItems){p.push.apply(p,k[o].getRefItems(i))}}for(o=0,m=j.length;o<m;o++){p.push(j[o]);if(j[o].getRefItems){p.push.apply(p,j[o].getRefItems(i))}}return p}},1,0,["component","box","container","panel","draw"],{component:true,box:true,container:true,panel:true,draw:true},0,0,[Ext.chart,"AbstractChart"],0));Ext.define("Ext.chart.overrides.AbstractChart",{override:"Ext.chart.AbstractChart",updateLegend:function(d,e){var f;arguments.callee.$previous.call(this,d,e);if(d){f=d.docked;this.addDocked({dock:f,xtype:"panel",shrinkWrap:true,scrollable:true,layout:{type:f==="top"||f==="bottom"?"hbox":"vbox",pack:"center"},items:d,cls:"x-legend-panel"})}},performLayout:function(){if(this.isVisible(true)){return arguments.callee.$previous.call(this)}this.cancelChartLayout();return false},afterComponentLayout:function(h,f,e,g){(arguments.callee.$previous||Ext.draw.Container.prototype.afterComponentLayout).call(this,h,f,e,g);this.scheduleLayout()},allowSchedule:function(){return this.rendered},onDestroy:function(){this.destroyChart();(arguments.callee.$previous||Ext.draw.Container.prototype.onDestroy).apply(this,arguments)}});(Ext.cmd.derive("Ext.chart.grid.HorizontalGrid",Ext.draw.sprite.Sprite,{inheritableStatics:{def:{processors:{x:"number",y:"number",width:"number",height:"number"},defaults:{x:0,y:0,width:1,height:1,strokeStyle:"#DDD"}}},render:function(g,l,j){var h=this.attr,i=g.roundPixel(h.y),k=l.lineWidth*0.5;l.beginPath();l.rect(j[0]-g.matrix.getDX(),i+k,+j[2],h.height);l.fill();l.beginPath();l.moveTo(j[0]-g.matrix.getDX(),i+k);l.lineTo(j[0]+j[2]-g.matrix.getDX(),i+k);l.stroke()}},0,0,0,0,["grid.horizontal"],0,[Ext.chart.grid,"HorizontalGrid"],0));(Ext.cmd.derive("Ext.chart.grid.VerticalGrid",Ext.draw.sprite.Sprite,{inheritableStatics:{def:{processors:{x:"number",y:"number",width:"number",height:"number"},defaults:{x:0,y:0,width:1,height:1,strokeStyle:"#DDD"}}},render:function(l,k,i){var g=this.attr,h=l.roundPixel(g.x),j=k.lineWidth*0.5;k.beginPath();k.rect(h-j,i[1]-l.matrix.getDY(),g.width,i[3]);k.fill();k.beginPath();k.moveTo(h-j,i[1]-l.matrix.getDY());k.lineTo(h-j,i[1]+i[3]-l.matrix.getDY());k.stroke()}},0,0,0,0,["grid.vertical"],0,[Ext.chart.grid,"VerticalGrid"],0));(Ext.cmd.derive("Ext.chart.CartesianChart",Ext.chart.AbstractChart,{alternateClassName:"Ext.chart.Chart",isCartesian:true,config:{flipXY:false,innerRect:[0,0,1,1],innerPadding:{top:0,left:0,right:0,bottom:0}},applyInnerPadding:function(c,d){if(!Ext.isObject(c)){return Ext.util.Format.parseBox(c)}else{if(!d){return c}else{return Ext.apply(d,c)}}},getDirectionForAxis:function(d){var c=this.getFlipXY();if(d==="left"||d==="right"){if(c){return"X"}else{return"Y"}}else{if(c){return"Y"}else{return"X"}}},performLayout:function(){var K=this;K.animationSuspendCount++;if(Ext.chart.AbstractChart.prototype.performLayout.call(this)===false){--K.animationSuspendCount;return}K.suspendThicknessChanged();var W=K.getSurface("chart").getRect(),M=W[2],N=W[3],i=K.getAxes(),Y,J=K.getSeries(),S,P,Z,U=K.getInsetPadding(),E=K.getInnerPadding(),I,X,V=Ext.apply({},U),F,L,H,Q,O,B,G,C,T,R=K.getInherited().rtl,D=K.getFlipXY();if(M<=0||N<=0){return}for(C=0;C<i.length;C++){Y=i[C];P=Y.getSurface();O=Y.getFloating();B=O?O.value:null;Z=Y.getThickness();switch(Y.getPosition()){case"top":P.setRect([0,V.top+1,M,Z]);break;case"bottom":P.setRect([0,N-(V.bottom+Z),M,Z]);break;case"left":P.setRect([V.left,0,Z,N]);break;case"right":P.setRect([M-(V.right+Z),0,Z,N]);break}if(B===null){V[Y.getPosition()]+=Z}}M-=V.left+V.right;N-=V.top+V.bottom;F=[V.left,V.top,M,N];V.left+=E.left;V.top+=E.top;V.right+=E.right;V.bottom+=E.bottom;L=M-E.left-E.right;H=N-E.top-E.bottom;K.setInnerRect([V.left,V.top,L,H]);if(L<=0||H<=0){return}K.setMainRect(F);K.getSurface().setRect(F);for(C=0,T=K.surfaceMap.grid&&K.surfaceMap.grid.length;C<T;C++){X=K.surfaceMap.grid[C];X.setRect(F);X.matrix.set(1,0,0,1,E.left,E.top);X.matrix.inverse(X.inverseMatrix)}for(C=0;C<i.length;C++){Y=i[C];P=Y.getSurface();G=P.matrix;Q=G.elements;switch(Y.getPosition()){case"top":case"bottom":Q[4]=V.left;Y.setLength(L);break;case"left":case"right":Q[5]=V.top;Y.setLength(H);break}Y.updateTitleSprite();G.inverse(P.inverseMatrix)}for(C=0,T=J.length;C<T;C++){S=J[C];I=S.getSurface();I.setRect(F);if(D){if(R){I.matrix.set(0,-1,-1,0,E.left+L,E.top+H)}else{I.matrix.set(0,-1,1,0,E.left,E.top+H)}}else{I.matrix.set(1,0,0,-1,E.left,E.top+H)}I.matrix.inverse(I.inverseMatrix);S.getOverlaySurface().setRect(F)}K.redraw();K.animationSuspendCount--;K.resumeThicknessChanged()},refloatAxes:function(){var A=this,B=A.getAxes(),u=(B&&B.length)||0,F,E,v,C,x,G,y,i=A.getChartSize(),s=A.getInsetPadding(),t=A.getInnerPadding(),H=i.width-s.left-s.right,w=i.height-s.top-s.bottom,z,D;for(D=0;D<u;D++){F=B[D];C=F.getFloating();x=C?C.value:null;if(x===null){delete F.floatingAtCoord;continue}E=F.getSurface();v=E.getRect();if(!v){continue}v=v.slice();G=A.getAxis(C.alongAxis);if(G){z=G.getAlignment()==="horizontal";if(Ext.isString(x)){x=G.getCoordFor(x)}G.floatingAxes[F.getId()]=x;y=G.getSprites()[0].attr.matrix;if(z){x=x*y.getXX()+y.getDX();F.floatingAtCoord=x+t.left+t.right}else{x=x*y.getYY()+y.getDY();F.floatingAtCoord=x+t.top+t.bottom}}else{z=F.getAlignment()==="horizontal";if(z){F.floatingAtCoord=x+t.top+t.bottom}else{F.floatingAtCoord=x+t.left+t.right}x=E.roundPixel(0.01*x*(z?w:H))}switch(F.getPosition()){case"top":v[1]=s.top+t.top+x-v[3]+1;break;case"bottom":v[1]=s.top+t.top+(G?x:w-x);break;case"left":v[0]=s.left+t.left+x-v[2];break;case"right":v[0]=s.left+t.left+(G?x:H-x)-1;break}E.setRect(v)}},redraw:function(){var J=this,K=J.getSeries(),i=J.getAxes(),aa=J.getMainRect(),O,H,E=J.getInnerPadding(),W,S,I,X,M,N,F,V,Y,Z,ab,T,Q,j=J.getFlipXY(),D=1000,R,G,U,P,L;if(!aa){return}O=aa[2]-E.left-E.right;H=aa[3]-E.top-E.bottom;for(N=0;N<K.length;N++){U=K[N];if((Z=U.getXAxis())){Q=Z.getVisibleRange();S=Z.getRange();S=[S[0]+(S[1]-S[0])*Q[0],S[0]+(S[1]-S[0])*Q[1]]}else{S=U.getXRange()}if((ab=U.getYAxis())){Q=ab.getVisibleRange();I=ab.getRange();I=[I[0]+(I[1]-I[0])*Q[0],I[0]+(I[1]-I[0])*Q[1]]}else{I=U.getYRange()}M={visibleMinX:S[0],visibleMaxX:S[1],visibleMinY:I[0],visibleMaxY:I[1],innerWidth:O,innerHeight:H,flipXY:j};W=U.getSprites();for(F=0,V=W.length;F<V;F++){P=W[F];R=P.attr.zIndex;if(R<D){R+=(N+1)*100+D;P.attr.zIndex=R;L=P.getMarker("items");if(L){G=L.attr.zIndex;if(G===Number.MAX_VALUE){L.attr.zIndex=R}else{if(G<D){L.attr.zIndex=R+G}}}}P.setAttributes(M,true)}}for(N=0;N<i.length;N++){Y=i[N];X=Y.isSide();W=Y.getSprites();T=Y.getRange();Q=Y.getVisibleRange();M={dataMin:T[0],dataMax:T[1],visibleMin:Q[0],visibleMax:Q[1]};if(X){M.length=H;M.startGap=E.bottom;M.endGap=E.top}else{M.length=O;M.startGap=E.left;M.endGap=E.right}for(F=0,V=W.length;F<V;F++){W[F].setAttributes(M,true)}}J.renderFrame();Ext.chart.AbstractChart.prototype.redraw.apply(this,arguments)},renderFrame:function(){this.refloatAxes();Ext.chart.AbstractChart.prototype.renderFrame.call(this)}},0,["chart","cartesian"],["component","box","container","panel","draw","cartesian","chart"],{component:true,box:true,container:true,panel:true,draw:true,cartesian:true,chart:true},["widget.cartesian","widget.chart"],0,[Ext.chart,"CartesianChart",Ext.chart,"Chart"],0));(Ext.cmd.derive("Ext.chart.grid.CircularGrid",Ext.draw.sprite.Circle,{inheritableStatics:{def:{defaults:{r:1,strokeStyle:"#DDD"}}}},0,0,0,0,["grid.circular"],0,[Ext.chart.grid,"CircularGrid"],0));(Ext.cmd.derive("Ext.chart.grid.RadialGrid",Ext.draw.sprite.Path,{inheritableStatics:{def:{processors:{startRadius:"number",endRadius:"number"},defaults:{startRadius:0,endRadius:1,scalingCenterX:0,scalingCenterY:0,strokeStyle:"#DDD"},triggers:{startRadius:"path,bbox",endRadius:"path,bbox"}}},render:function(){Ext.draw.sprite.Path.prototype.render.apply(this,arguments)},updatePath:function(g,f){var e=f.startRadius,h=f.endRadius;g.moveTo(e,0);g.lineTo(h,0)}},0,0,0,0,["grid.radial"],0,[Ext.chart.grid,"RadialGrid"],0));(Ext.cmd.derive("Ext.chart.PolarChart",Ext.chart.AbstractChart,{isPolar:true,config:{center:[0,0],radius:0,innerPadding:0},getDirectionForAxis:function(b){return b==="radial"?"Y":"X"},applyCenter:function(d,c){if(c&&d[0]===c[0]&&d[1]===c[1]){return}return[+d[0],+d[1]]},updateCenter:function(j){var l=this,k=l.getAxes(),o=l.getSeries(),p,m,n,i;for(p=0,m=k.length;p<m;p++){n=k[p];n.setCenter(j)}for(p=0,m=o.length;p<m;p++){i=o[p];i.setCenter(j)}},applyInnerPadding:function(c,d){return Ext.isNumber(c)?c:d},doSetSurfaceRect:function(d,f){var e=this.getMainRect();d.setRect(f);d.matrix.set(1,0,0,1,e[0]-f[0],e[1]-f[1]);d.inverseMatrix.set(1,0,0,1,f[0]-e[0],f[1]-e[1])},applyAxes:function(m,k){var n=this,l=Ext.Array.from(n.config.series)[0],i,o,p,j;if(l.type==="radar"&&m&&m.length){for(i=0,o=m.length;i<o;i++){p=m[i];if(p.position==="angular"){j=true;break}}if(!j){m.push({type:"category",position:"angular",fields:l.xField||l.angleField,style:{estStepSize:1},grid:true})}}return Ext.chart.AbstractChart.prototype.applyAxes.apply(this,arguments)},performLayout:function(){var L=this,ae=true;try{L.animationSuspendCount++;if(Ext.chart.AbstractChart.prototype.performLayout.call(this)===false){ae=false;return}L.suspendThicknessChanged();var ad=L.getSurface("chart").getRect(),K=L.getInsetPadding(),J=L.getInnerPadding(),aa=Ext.apply({},K),ag,P=ad[2]-K.left-K.right,S=ad[3]-K.top-K.bottom,H=[K.left,K.top,P,S],M=L.getSeries(),W,O=P-J*2,I=S-J*2,Q=[O*0.5+J,I*0.5+J],ac=Math.min(O,I)*0.5,V=L.getAxes(),af,aj,ab,Z=[],X=[],N=ac-J,e,Y,ai,U,i,ah,R;L.setMainRect(H);L.doSetSurfaceRect(L.getSurface(),H);for(e=0,Y=L.surfaceMap.grid&&L.surfaceMap.grid.length;e<Y;e++){L.doSetSurfaceRect(L.surfaceMap.grid[e],ad)}for(e=0,Y=V.length;e<Y;e++){af=V[e];switch(af.getPosition()){case"angular":Z.push(af);break;case"radial":X.push(af);break}}for(e=0,Y=Z.length;e<Y;e++){af=Z[e];U=af.getFloating();i=U?U.value:null;L.doSetSurfaceRect(af.getSurface(),ad);aj=af.getThickness();for(ag in aa){aa[ag]+=aj}P=ad[2]-aa.left-aa.right;S=ad[3]-aa.top-aa.bottom;ai=Math.min(P,S)*0.5;if(e===0){N=ai-J}af.setMinimum(0);af.setLength(ai);af.getSprites();ab=af.sprites[0].attr.lineWidth*0.5;for(ag in aa){aa[ag]+=ab}}for(e=0,Y=X.length;e<Y;e++){af=X[e];L.doSetSurfaceRect(af.getSurface(),ad);af.setMinimum(0);af.setLength(N);af.getSprites()}for(e=0,Y=M.length;e<Y;e++){W=M[e];if(W.type==="gauge"&&!ah){ah=W}else{W.setRadius(N)}L.doSetSurfaceRect(W.getSurface(),H)}L.doSetSurfaceRect(L.getSurface("overlay"),ad);if(ah){ah.setRect(H);R=ah.getRadius()-J;L.setRadius(R);L.setCenter(ah.getCenter());ah.setRadius(R);if(V.length&&V[0].getPosition()==="gauge"){af=V[0];L.doSetSurfaceRect(af.getSurface(),ad);af.setTotalAngle(ah.getTotalAngle());af.setLength(R)}}else{L.setRadius(ac);L.setCenter(Q)}L.redraw()}catch(T){throw T}finally{L.animationSuspendCount--;if(ae){L.resumeThicknessChanged()}}},refloatAxes:function(){var l=this,n=l.getAxes(),m=l.getMainRect(),o,i,s,q,t,r,p;if(!m){return}p=0.5*Math.min(m[2],m[3]);for(q=0,t=n.length;q<t;q++){r=n[q];o=r.getFloating();i=o?o.value:null;if(i!==null){s=l.getAxis(o.alongAxis);if(r.getPosition()==="angular"){if(s){i=s.getLength()*i/s.getRange()[1]}else{i=0.01*i*p}r.sprites[0].setAttributes({length:i},true)}else{if(s){if(Ext.isString(i)){i=s.getCoordFor(i)}i=i/(s.getRange()[1]+1)*Math.PI*2-Math.PI*1.5+r.getRotation()}else{i=Ext.draw.Draw.rad(i)}r.sprites[0].setAttributes({baseRotation:i},true)}}}},redraw:function(){var k=this,j=k.getAxes(),m,n=k.getSeries(),h,i,l;for(i=0,l=j.length;i<l;i++){m=j[i];m.getSprites()}for(i=0,l=n.length;i<l;i++){h=n[i];h.getSprites()}k.renderFrame();Ext.chart.AbstractChart.prototype.redraw.apply(this,arguments)},renderFrame:function(){this.refloatAxes();Ext.chart.AbstractChart.prototype.renderFrame.call(this)}},0,["polar"],["component","box","container","panel","draw","polar"],{component:true,box:true,container:true,panel:true,draw:true,polar:true},["widget.polar"],0,[Ext.chart,"PolarChart"],0));(Ext.cmd.derive("Ext.chart.axis.Category",Ext.chart.axis.Axis,{type:"category",config:{layout:"combineDuplicate",segmenter:"names"}},0,0,["axis"],{axis:true},["axis.category"],0,[Ext.chart.axis,"Category"],0));(Ext.cmd.derive("Ext.chart.axis.Numeric",Ext.chart.axis.Axis,{type:"numeric",config:{layout:"continuous",segmenter:"numeric",aggregator:"double"}},0,0,["axis"],{axis:true},["axis.numeric","axis.radial"],0,[Ext.chart.axis,"Numeric"],0));(Ext.cmd.derive("Ext.chart.interactions.PanZoom",Ext.chart.interactions.Abstract,{type:"panzoom",config:{axes:{top:{},right:{},bottom:{},left:{}},minZoom:null,maxZoom:null,showOverflowArrows:true,panGesture:"drag",zoomGesture:"pinch",zoomOnPanGesture:false,modeToggleButton:{xtype:"segmentedbutton",width:200,defaults:{ui:"default-toolbar"},cls:"x-panzoom-toggle",items:[{text:"Pan"},{text:"Zoom"}]},hideLabelInGesture:false},stopAnimationBeforeSync:true,applyAxes:function(c,d){return Ext.merge(d||{},c)},applyZoomOnPanGesture:function(b){this.getChart();if(this.isMultiTouch()){return false}return b},updateZoomOnPanGesture:function(c){var d=this.getModeToggleButton();if(!this.isMultiTouch()){d.show();d.setValue(c?1:0)}else{d.hide()}},toggleMode:function(){var b=this;if(!b.isMultiTouch()){b.setZoomOnPanGesture(!b.getZoomOnPanGesture())}},applyModeToggleButton:function(h,e){var g=this,f=Ext.factory(h,"Ext.button.Segmented",e);if(!f&&e){e.destroy()}if(f&&!e){f.addListener("toggle",function(a){g.setZoomOnPanGesture(a.getValue()===1)})}return f},getGestures:function(){var j=this,h={},i=j.getPanGesture(),f=j.getZoomGesture(),g=Ext.supports.Touch;h[f]="onZoomGestureMove";h[f+"start"]="onZoomGestureStart";h[f+"end"]="onZoomGestureEnd";h[i]="onPanGestureMove";h[i+"start"]="onPanGestureStart";h[i+"end"]="onPanGestureEnd";h.doubletap="onDoubleTap";return h},onDoubleTap:function(j){var l=this,n=l.getChart(),k=n.getAxes(),e,i,m;for(i=0,m=k.length;i<m;i++){e=k[i];e.setVisibleRange([0,1])}n.redraw()},onPanGestureStart:function(g){if(!g||!g.touches||g.touches.length<2){var e=this,f=e.getChart().getInnerRect(),h=e.getChart().element.getXY();e.startX=g.getX()-h[0]-f[0];e.startY=g.getY()-h[1]-f[1];e.oldVisibleRanges=null;e.hideLabels();e.getChart().suspendThicknessChanged();e.lockEvents(e.getPanGesture());return false}},onPanGestureMove:function(g){var e=this;if(e.getLocks()[e.getPanGesture()]===e){var f=e.getChart().getInnerRect(),h=e.getChart().element.getXY();if(e.getZoomOnPanGesture()){e.transformAxesBy(e.getZoomableAxes(g),0,0,(g.getX()-h[0]-f[0])/e.startX,e.startY/(g.getY()-h[1]-f[1]))}else{e.transformAxesBy(e.getPannableAxes(g),g.getX()-h[0]-f[0]-e.startX,g.getY()-h[1]-f[1]-e.startY,1,1)}e.sync();return false}},onPanGestureEnd:function(d){var e=this,f=e.getPanGesture();if(e.getLocks()[f]===e){e.getChart().resumeThicknessChanged();e.showLabels();e.sync();e.unlockEvents(f);return false}},onZoomGestureStart:function(q){if(q.touches&&q.touches.length===2){var p=this,k=p.getChart().element.getXY(),n=p.getChart().getInnerRect(),l=k[0]+n[0],o=k[1]+n[1],e=[q.touches[0].point.x-l,q.touches[0].point.y-o,q.touches[1].point.x-l,q.touches[1].point.y-o],m=Math.max(44,Math.abs(e[2]-e[0])),r=Math.max(44,Math.abs(e[3]-e[1]));p.getChart().suspendThicknessChanged();p.lastZoomDistances=[m,r];p.lastPoints=e;p.oldVisibleRanges=null;p.hideLabels();p.lockEvents(p.getZoomGesture());return false}},onZoomGestureMove:function(y){var x=this;if(x.getLocks()[x.getZoomGesture()]===x){var u=x.getChart().getInnerRect(),p=x.getChart().element.getXY(),s=p[0]+u[0],v=p[1]+u[1],e=Math.abs,z=x.lastPoints,q=[y.touches[0].point.x-s,y.touches[0].point.y-v,y.touches[1].point.x-s,y.touches[1].point.y-v],w=Math.max(44,e(q[2]-q[0])),A=Math.max(44,e(q[3]-q[1])),B=this.lastZoomDistances||[w,A],r=w/B[0],t=A/B[1];x.transformAxesBy(x.getZoomableAxes(y),u[2]*(r-1)/2+q[2]-z[2]*r,u[3]*(t-1)/2+q[3]-z[3]*t,r,t);x.sync();return false}},onZoomGestureEnd:function(f){var d=this,e=d.getZoomGesture();if(d.getLocks()[e]===d){d.getChart().resumeThicknessChanged();d.showLabels();d.sync();d.unlockEvents(e);return false}},hideLabels:function(){if(this.getHideLabelInGesture()){this.eachInteractiveAxes(function(b){b.hideLabels()})}},showLabels:function(){if(this.getHideLabelInGesture()){this.eachInteractiveAxes(function(b){b.showLabels()})}},isEventOnAxis:function(f,e){var d=e.getSurface().getRect();return d[0]<=f.getX()&&f.getX()<=d[0]+d[2]&&d[1]<=f.getY()&&f.getY()<=d[1]+d[3]},getPannableAxes:function(o){var l=this,r=l.getAxes(),n=l.getChart().getAxes(),p,m=n.length,e=[],i=false,q;if(o){for(p=0;p<m;p++){if(this.isEventOnAxis(o,n[p])){i=true;break}}}for(p=0;p<m;p++){q=r[n[p].getPosition()];if(q&&q.allowPan!==false&&(!i||this.isEventOnAxis(o,n[p]))){e.push(n[p])}}return e},getZoomableAxes:function(p){var m=this,t=m.getAxes(),o=m.getChart().getAxes(),e=[],q,n=o.length,r,i=false,s;if(p){for(q=0;q<n;q++){if(this.isEventOnAxis(p,o[q])){i=true;break}}}for(q=0;q<n;q++){r=o[q];s=t[r.getPosition()];if(s&&s.allowZoom!==false&&(!i||this.isEventOnAxis(p,r))){e.push(r)}}return e},eachInteractiveAxes:function(j){var i=this,f=i.getAxes(),h=i.getChart().getAxes();for(var g=0;g<h.length;g++){if(f[h[g].getPosition()]){if(false===j.call(this,h[g])){return}}}},transformAxesBy:function(s,n,p,o,r){var q=this.getChart().getInnerRect(),v=this.getAxes(),m,u=this.oldVisibleRanges,i=false;if(!u){this.oldVisibleRanges=u={};this.eachInteractiveAxes(function(a){u[a.getId()]=a.getVisibleRange()})}if(!q){return}for(var t=0;t<s.length;t++){m=v[s[t].getPosition()];i=this.transformAxisBy(s[t],u[s[t].getId()],n,p,o,r,this.minZoom||m.minZoom,this.maxZoom||m.maxZoom)||i}return i},transformAxisBy:function(J,x,u,v,B,D,E,z){var t=this,K=x[1]-x[0],A=J.getVisibleRange(),F=E||t.getMinZoom()||J.config.minZoom,C=z||t.getMaxZoom()||J.config.maxZoom,L=t.getChart().getInnerRect(),G,w;if(!L){return}var I=J.isSide(),H=I?L[3]:L[2],y=I?-v:u;K/=I?D:B;if(K<0){K=-K}if(K*F>1){K=1}if(K*C<1){K=1/C}G=x[0];w=x[1];A=A[1]-A[0];if(K===A&&A===1){return}J.setVisibleRange([(x[0]+x[1]-K)*0.5-y/H*K,(x[0]+x[1]+K)*0.5-y/H*K]);return(Math.abs(G-J.getVisibleRange()[0])>1e-10||Math.abs(w-J.getVisibleRange()[1])>1e-10)},destroy:function(){this.setModeToggleButton(null);Ext.chart.interactions.Abstract.prototype.destroy.call(this)}},0,0,["interaction"],{interaction:true},["interaction.panzoom"],0,[Ext.chart.interactions,"PanZoom"],0));(Ext.cmd.derive("Ext.chart.interactions.Rotate",Ext.chart.interactions.Abstract,{type:"rotate",config:{gesture:"rotate",gestures:{rotate:"onRotate",rotateend:"onRotate",dragstart:"onGestureStart",drag:"onGesture",dragend:"onGestureEnd"},rotation:0},oldRotations:null,getAngle:function(h){var j=this,e=j.getChart(),i=e.getEventXY(h),g=e.getCenter();return Math.atan2(i[1]-g[1],i[0]-g[0])},getRadius:function(b){return this.getChart().getRadius()},getEventRadius:function(j){var l=this,m=l.getChart(),k=m.getEventXY(j),i=m.getCenter(),n=k[0]-i[0],e=k[1]-i[1];return Math.sqrt(n*n+e*e)},onGestureStart:function(g){var h=this,e=h.getRadius(g),f=h.getEventRadius(g);if(e>=f){h.lockEvents("drag");h.angle=h.getAngle(g);h.oldRotations={};return false}},onGesture:function(d){var e=this,f=e.getAngle(d)-e.angle;if(e.getLocks().drag===e){e.doRotateTo(f,true);return false}},doRotateTo:function(w,z,y){var i=this,p=i.getChart(),q=p.getAxes(),u=p.getSeries(),o=i.oldRotations,x,r,t,v,s;if(!y){p.suspendAnimation()}for(v=0,s=q.length;v<s;v++){x=q[v];t=o[x.getId()]||(o[x.getId()]=x.getRotation());x.setRotation(w+(z?t:0))}for(v=0,s=u.length;v<s;v++){r=u[v];t=o[r.getId()]||(o[r.getId()]=r.getRotation());r.setRotation(w+(z?t:0))}i.setRotation(w+(z?t:0));i.fireEvent("rotate",i,i.getRotation());i.sync();if(!y){p.resumeAnimation()}},rotateTo:function(f,d,e){this.doRotateTo(f,d,e);this.oldRotations={}},onGestureEnd:function(c){var d=this;if(d.getLocks().drag===d){d.onGesture(c);d.unlockEvents("drag");d.fireEvent("rotationEnd",d,d.getRotation());return false}},onRotate:function(b){}},0,0,["interaction"],{interaction:true},["interaction.rotate"],0,[Ext.chart.interactions,"Rotate"],0));(Ext.cmd.derive("Ext.chart.series.Cartesian",Ext.chart.series.Series,{config:{xField:null,yField:null,xAxis:null,yAxis:null},directions:["X","Y"],fieldCategoryX:["X"],fieldCategoryY:["Y"],applyXAxis:function(d,c){return this.getChart().getAxis(d)||c},applyYAxis:function(d,c){return this.getChart().getAxis(d)||c},updateXAxis:function(b){b.processData(this)},updateYAxis:function(b){b.processData(this)},coordinateX:function(){return this.coordinate("X",0,2)},coordinateY:function(){return this.coordinate("Y",1,2)},getItemForPoint:function(i,j){if(this.getSprites()){var k=this,m=k.getSprites()[0],h=k.getStore(),l,n;if(k.getHidden()){return null}if(m){n=m.getIndexNearPoint(i,j);if(n!==-1){l={series:k,category:k.getItemInstancing()?"items":"markers",index:n,record:h.getData().items[n],field:k.getYField(),sprite:m};return l}}}},createSprite:function(){var h=this,f=Ext.chart.series.Series.prototype.createSprite.call(this),e=h.getChart(),g=h.getXAxis();f.setAttributes({flipXY:e.getFlipXY(),xAxis:g});if(f.setAggregator&&g&&g.getAggregator){if(g.getAggregator){f.setAggregator({strategy:g.getAggregator()})}else{f.setAggregator({})}}return f},getSprites:function(){var k=this,l=this.getChart(),j=k.getAnimation()||l&&l.getAnimation(),g=k.getItemInstancing(),i=k.sprites,h;if(!l){return[]}if(!i.length){h=k.createSprite()}else{h=i[0]}if(j){if(g){h.itemsMarker.getTemplate().setAnimation(j)}h.setAnimation(j)}return i},provideLegendInfo:function(g){var e=this,f=e.getSubStyleWithTheme(),h=f.fillStyle;if(Ext.isArray(h)){h=h[0]}g.push({name:e.getTitle()||e.getYField()||e.getId(),mark:(Ext.isObject(h)?h.stops&&h.stops[0].color:h)||f.strokeStyle||"black",disabled:e.getHidden(),series:e.getId(),index:0})},getXRange:function(){return[this.dataRange[0],this.dataRange[2]]},getYRange:function(){return[this.dataRange[1],this.dataRange[3]]}},0,0,0,0,0,0,[Ext.chart.series,"Cartesian"],0));(Ext.cmd.derive("Ext.chart.series.StackedCartesian",Ext.chart.series.Cartesian,{config:{stacked:true,splitStacks:true,fullStack:false,fullStackTotal:100,hidden:[]},spriteAnimationCount:0,themeColorCount:function(){var c=this,d=c.getYField();return Ext.isArray(d)?d.length:1},updateStacked:function(){this.processData()},updateSplitStacks:function(){this.processData()},coordinateY:function(){return this.coordinateStacked("Y",1,2)},coordinateStacked:function(R,af,aa){var N=this,ae=N.getStore(),T=ae.getData().items,V=T.length,ah=N["get"+R+"Axis"](),k=N.getHidden(),aj=N.getSplitStacks(),i=N.getFullStack(),ab=N.getFullStackTotal(),X={min:0,max:0},Z=N["fieldCategory"+R],S=[],Y=[],P=[],ac,W=N.getStacked(),ad=N.getSprites(),U=[],J,L,M,Q,I,j,ai,ag,K,O;if(!ad.length){return}for(J=0;J<Z.length;J++){ag=Z[J];Q=N.getFields([ag]);I=Q.length;for(L=0;L<V;L++){S[L]=0;Y[L]=0;P[L]=0}for(L=0;L<I;L++){if(!k[L]){U[L]=N.coordinateData(T,Q[L],ah)}}if(W&&i){j=[];if(aj){ai=[]}for(L=0;L<V;L++){j[L]=0;if(aj){ai[L]=0}for(M=0;M<I;M++){K=U[M];if(!K){continue}K=K[L];if(K>=0||!aj){j[L]+=K}else{if(K<0){ai[L]+=K}}}}}for(L=0;L<I;L++){O={};if(k[L]){O["dataStart"+ag]=S;O["data"+ag]=S;ad[L].setAttributes(O);continue}K=U[L];if(W){ac=[];for(M=0;M<V;M++){if(!K[M]){K[M]=0}if(K[M]>=0||!aj){if(i&&j[M]){K[M]*=ab/j[M]}S[M]=Y[M];Y[M]+=K[M];ac[M]=Y[M]}else{if(i&&ai[M]){K[M]*=ab/ai[M]}S[M]=P[M];P[M]+=K[M];ac[M]=P[M]}}O["dataStart"+ag]=S;O["data"+ag]=ac;N.getRangeOfData(S,X);N.getRangeOfData(ac,X)}else{O["dataStart"+ag]=S;O["data"+ag]=K;N.getRangeOfData(K,X)}ad[L].setAttributes(O)}}N.dataRange[af]=X.min;N.dataRange[af+aa]=X.max;O={};O["dataMin"+R]=X.min;O["dataMax"+R]=X.max;for(J=0;J<ad.length;J++){ad[J].setAttributes(O)}},getFields:function(i){var j=this,h=[],l,g,k;for(g=0,k=i.length;g<k;g++){l=j["get"+i[g]+"Field"]();if(Ext.isArray(l)){h.push.apply(h,l)}else{h.push(l)}}return h},updateLabelOverflowPadding:function(b){this.getLabel().setAttributes({labelOverflowPadding:b})},getSprites:function(){var m=this,n=m.getChart(),t=m.getAnimation()||n&&n.getAnimation(),q=m.getFields(m.fieldCategoryY),u=m.getItemInstancing(),o=m.sprites,i,r=m.getHidden(),p=false,s,v=q.length;if(!n){return[]}for(s=0;s<v;s++){i=o[s];if(!i){i=m.createSprite();i.setAttributes({zIndex:-s});i.setField(q[s]);p=true;r.push(false);if(u){i.itemsMarker.getTemplate().setAttributes(m.getStyleByIndex(s))}else{i.setAttributes(m.getStyleByIndex(s))}}if(t){if(u){i.itemsMarker.getTemplate().setAnimation(t)}i.setAnimation(t)}}if(p){m.updateHidden(r)}return o},getItemForPoint:function(q,r){if(this.getSprites()){var s=this,y,t,o,z=s.getItemInstancing(),u=s.getSprites(),p=s.getStore(),x=s.getHidden(),i,w,v;for(y=0,t=u.length;y<t;y++){if(!x[y]){o=u[y];w=o.getIndexNearPoint(q,r);if(w!==-1){v=s.getYField();i={series:s,index:w,category:z?"items":"markers",record:p.getData().items[w],field:typeof v==="string"?v:v[y],sprite:o};return i}}}return null}},provideLegendInfo:function(r){var p=this,q=p.getSprites(),o=p.getTitle(),n=p.getYField(),s=p.getHidden(),m=q.length===1,u,i,t,v;for(t=0;t<q.length;t++){u=p.getStyleByIndex(t);i=u.fillStyle;if(o){if(Ext.isArray(o)){v=o[t]}else{if(m){v=o}}}else{if(Ext.isArray(n)){v=n[t]}else{v=p.getId()}}r.push({name:v,mark:(Ext.isObject(i)?i.stops&&i.stops[0].color:i)||u.strokeStyle||"black",disabled:s[t],series:p.getId(),index:t})}},onSpriteAnimationStart:function(b){this.spriteAnimationCount++;if(this.spriteAnimationCount===1){this.fireEvent("animationstart")}},onSpriteAnimationEnd:function(b){this.spriteAnimationCount--;if(this.spriteAnimationCount===0){this.fireEvent("animationend")}}},0,0,0,0,0,0,[Ext.chart.series,"StackedCartesian"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Series",Ext.draw.sprite.Sprite,{inheritableStatics:{def:{processors:{dataMinX:"number",dataMaxX:"number",dataMinY:"number",dataMaxY:"number",rangeX:"data",rangeY:"data",dataX:"data",dataY:"data"},defaults:{dataMinX:0,dataMaxX:1,dataMinY:0,dataMaxY:1,rangeX:null,rangeY:null,dataX:null,dataY:null},triggers:{dataX:"bbox",dataY:"bbox",dataMinX:"bbox",dataMaxX:"bbox",dataMinY:"bbox",dataMaxY:"bbox"}}},config:{store:null,series:null,field:null}},0,0,0,0,0,[["markerHolder",Ext.chart.MarkerHolder]],[Ext.chart.series.sprite,"Series"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Cartesian",Ext.chart.series.sprite.Series,{inheritableStatics:{def:{processors:{labels:"default",labelOverflowPadding:"number",selectionTolerance:"number",flipXY:"bool",renderer:"default",visibleMinX:"number",visibleMinY:"number",visibleMaxX:"number",visibleMaxY:"number",innerWidth:"number",innerHeight:"number"},defaults:{labels:null,labelOverflowPadding:10,selectionTolerance:20,flipXY:false,renderer:null,transformFillStroke:false,visibleMinX:0,visibleMinY:0,visibleMaxX:1,visibleMaxY:1,innerWidth:1,innerHeight:1},triggers:{dataX:"dataX,bbox",dataY:"dataY,bbox",visibleMinX:"panzoom",visibleMinY:"panzoom",visibleMaxX:"panzoom",visibleMaxY:"panzoom",innerWidth:"panzoom",innerHeight:"panzoom"},updaters:{dataX:function(b){this.processDataX();this.scheduleUpdater(b,"dataY",["dataY"])},dataY:function(){this.processDataY()},panzoom:function(n){var l=n.visibleMaxX-n.visibleMinX,m=n.visibleMaxY-n.visibleMinY,h=n.flipXY?n.innerHeight:n.innerWidth,j=!n.flipXY?n.innerHeight:n.innerWidth,i=this.getSurface(),k=i?i.getInherited().rtl:false;if(k&&!n.flipXY){n.translationX=h+n.visibleMinX*h/l}else{n.translationX=-n.visibleMinX*h/l}n.translationY=-n.visibleMinY*j/m;n.scalingX=(k&&!n.flipXY?-1:1)*h/l;n.scalingY=j/m;n.scalingCenterX=0;n.scalingCenterY=0;this.applyTransformations(true)}}}},processDataY:Ext.emptyFn,processDataX:Ext.emptyFn,updatePlainBBox:function(c){var d=this.attr;c.x=d.dataMinX;c.y=d.dataMinY;c.width=d.dataMaxX-d.dataMinX;c.height=d.dataMaxY-d.dataMinY},binarySearch:function(k){var g=this.attr.dataX,i=0,h=g.length;if(k<=g[0]){return i}if(k>=g[h-1]){return h-1}while(i+1<h){var l=(i+h)>>1,j=g[l];if(j===k){return l}else{if(j<k){i=l}else{h=l}}}return i},render:function(h,n,j){var k=this,i=k.attr,l=i.inverseMatrix.clone();l.appendMatrix(h.inverseMatrix);if(i.dataX===null||i.dataX===undefined){return}if(i.dataY===null||i.dataY===undefined){return}if(l.getXX()*l.getYX()||l.getXY()*l.getYY()){console.log("Cartesian Series sprite does not support rotation/sheering");return}var m=l.transformList([[j[0]-1,j[3]+1],[j[0]+j[2]+1,-1]]);m=m[0].concat(m[1]);k.renderClipped(h,n,m,j)},renderClipped:Ext.emptyFn,getIndexNearPoint:function(M,N){var i=this,C=i.attr.matrix,K=i.attr.dataX,L=i.attr.dataY,I=i.attr.selectionTolerance,z,B,P=-1,J=C.clone().prependMatrix(i.surfaceMatrix).inverse(),y=J.transformPoint([M,N]),Q=J.transformPoint([M-I,N-I]),F=J.transformPoint([M+I,N+I]),R=Math.min(Q[0],F[0]),A=Math.max(Q[0],F[0]),H=Math.min(Q[1],F[1]),O=Math.max(Q[1],F[1]),G,x,E,D;for(E=0,D=K.length;E<D;E++){G=K[E];x=L[E];if(G>R&&G<A&&x>H&&x<O){if(P===-1||(Math.abs(G-y[0])<z)&&(Math.abs(x-y[1])<B)){z=Math.abs(G-y[0]);B=Math.abs(x-y[1]);P=E}}}return P}},0,0,0,0,0,0,[Ext.chart.series.sprite,"Cartesian"],0));(Ext.cmd.derive("Ext.chart.series.sprite.StackedCartesian",Ext.chart.series.sprite.Cartesian,{inheritableStatics:{def:{processors:{groupCount:"number",groupOffset:"number",dataStartY:"data"},defaults:{selectionTolerance:20,groupCount:1,groupOffset:0,dataStartY:null},triggers:{dataStartY:"dataY,bbox"}}},getIndexNearPoint:function(J,K){var A=this,y=A.attr.matrix,G=A.attr.dataX,I=A.attr.dataY,i=A.attr.dataStartY,D=A.attr.selectionTolerance,w=0.5,x=Infinity,M=-1,E=y.clone().prependMatrix(this.surfaceMatrix).inverse(),v=E.transformPoint([J,K]),N=E.transformPoint([J-D,K-D]),B=E.transformPoint([J+D,K+D]),C=Math.min(N[1],B[1]),L=Math.max(N[1],B[1]),F,H;for(var z=0;z<G.length;z++){if(Math.min(i[z],I[z])<=L&&C<=Math.max(i[z],I[z])){F=Math.abs(G[z]-v[0]);H=Math.max(-Math.min(I[z]-v[1],v[1]-i[z]),0);if(F<w&&H<=x){w=F;x=H;M=z}}}return M}},0,0,0,0,0,0,[Ext.chart.series.sprite,"StackedCartesian"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Area",Ext.chart.series.sprite.StackedCartesian,{inheritableStatics:{def:{processors:{step:"bool"},defaults:{step:false}}},renderClipped:function(J,F,K){var I=this,L=I.attr,P=L.dataX,R=L.dataY,H=L.dataStartY,E=L.matrix,S,T,y,U,W,i,x,V=E.elements[0],O=E.elements[4],M=E.elements[3],Q=E.elements[5],X=I.surfaceMatrix,N={},G=Math.min(K[0],K[2]),D=Math.max(K[0],K[2]),Y=Math.max(0,this.binarySearch(G)),Z=Math.min(P.length-1,this.binarySearch(D)+1);F.beginPath();i=P[Y]*V+O;x=R[Y]*M+Q;F.moveTo(i,x);if(L.step){W=x;for(y=Y;y<=Z;y++){S=P[y]*V+O;T=R[y]*M+Q;F.lineTo(S,W);F.lineTo(S,W=T)}}else{for(y=Y;y<=Z;y++){S=P[y]*V+O;T=R[y]*M+Q;F.lineTo(S,T)}}if(H){if(L.step){U=P[Z]*V+O;for(y=Z;y>=Y;y--){S=P[y]*V+O;T=H[y]*M+Q;F.lineTo(U,T);F.lineTo(U=S,T)}}else{for(y=Z;y>=Y;y--){S=P[y]*V+O;T=H[y]*M+Q;F.lineTo(S,T)}}}else{F.lineTo(P[Z]*V+O,T);F.lineTo(P[Z]*V+O,Q);F.lineTo(i,Q);F.lineTo(i,R[y]*M+Q)}if(L.transformFillStroke){L.matrix.toContext(F)}F.fill();if(L.transformFillStroke){L.inverseMatrix.toContext(F)}F.beginPath();F.moveTo(i,x);if(L.step){for(y=Y;y<=Z;y++){S=P[y]*V+O;T=R[y]*M+Q;F.lineTo(S,W);F.lineTo(S,W=T);N.translationX=X.x(S,T);N.translationY=X.y(S,T);I.putMarker("markers",N,y,!L.renderer)}}else{for(y=Y;y<=Z;y++){S=P[y]*V+O;T=R[y]*M+Q;F.lineTo(S,T);N.translationX=X.x(S,T);N.translationY=X.y(S,T);I.putMarker("markers",N,y,!L.renderer)}}if(L.transformFillStroke){L.matrix.toContext(F)}F.stroke()}},0,0,0,0,["sprite.areaSeries"],0,[Ext.chart.series.sprite,"Area"],0));(Ext.cmd.derive("Ext.chart.series.Area",Ext.chart.series.StackedCartesian,{type:"area",seriesType:"areaSeries",config:{splitStacks:false}},0,0,0,0,["series.area"],0,[Ext.chart.series,"Area"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Bar",Ext.chart.series.sprite.StackedCartesian,{inheritableStatics:{def:{processors:{minBarWidth:"number",maxBarWidth:"number",minGapWidth:"number",radius:"number",inGroupGapWidth:"number"},defaults:{minBarWidth:2,maxBarWidth:100,minGapWidth:5,inGroupGapWidth:3,radius:0}}},drawLabel:function(D,F,v,G,z){var x=this,A=x.attr,I=x.getMarker("labels"),K=I.getTemplate(),C=x.labelCfg||(x.labelCfg={}),L=x.surfaceMatrix,E=A.labelOverflowPadding,M=K.attr.display,B=K.attr.orientation,H,J,N,w,u,y;C.x=L.x(F,G);C.y=L.y(F,G);if(!A.flipXY){C.rotationRads=-Math.PI*0.5}else{C.rotationRads=0}C.calloutVertical=!A.flipXY;switch(B){case"horizontal":C.rotationRads=0;C.calloutVertical=false;break;case"vertical":C.rotationRads=-Math.PI*0.5;C.calloutVertical=true;break}C.text=D;if(K.attr.renderer){y=[D,I,C,{store:x.getStore()},z];w=Ext.callback(K.attr.renderer,null,y,0,x.getSeries());if(typeof w==="string"){C.text=w}else{if(typeof w==="object"){if("text" in w){C.text=w.text}u=true}}}N=x.getMarkerBBox("labels",z,true);if(!N){x.putMarker("labels",C,z);N=x.getMarkerBBox("labels",z,true)}J=(N.width/2+E);if(v>G){J=-J}if((B==="horizontal"&&A.flipXY)||(B==="vertical"&&!A.flipXY)||!B){H=(M==="insideStart")?v+J:G-J}else{H=(M==="insideStart")?v+E*2:G-E*2}C.x=L.x(F,H);C.y=L.y(F,H);H=(M==="insideStart")?v-J:G+J;C.calloutPlaceX=L.x(F,H);C.calloutPlaceY=L.y(F,H);H=(M==="insideStart")?v:G;C.calloutStartX=L.x(F,H);C.calloutStartY=L.y(F,H);if(v>G){J=-J}if(Math.abs(G-v)<=J*2||M==="outside"){C.callout=1}else{C.callout=0}if(u){Ext.apply(C,w)}x.putMarker("labels",C,z)},drawBar:function(m,w,u,v,q,n,x,t){var r=this,o={},s=r.attr.renderer,p;o.x=v;o.y=q;o.width=n-v;o.height=x-q;o.radius=r.attr.radius;if(s){p=Ext.callback(s,null,[r,o,{store:r.getStore()},t],0,r.getSeries());Ext.apply(o,p)}r.putMarker("items",o,t,!s)},renderClipped:function(Q,ac,R,U){if(this.cleanRedraw){return}var ag=this,ai=ag.attr,aa=ai.dataX,ab=ai.dataY,P=ai.labels,aj=ai.dataStartY,ak=ai.groupCount,S=ai.groupOffset-(ak-1)*0.5,X=ai.inGroupGapWidth,ad=ac.lineWidth,T=ai.matrix,V=T.elements[0],an=T.elements[3],ar=T.elements[4],at=Q.roundPixel(T.elements[5])-1,N=(V<0?-1:1)*V-ai.minGapWidth,am=(Math.min(N,ai.maxBarWidth)-X*(ak-1))/ak,W=Q.roundPixel(Math.max(ai.minBarWidth,am)),au=ag.surfaceMatrix,ap,O,av,ao,M,aw,al=0.5*ai.lineWidth,i=Math.min(R[0],R[2]),Z=Math.max(R[0],R[2]),Y=Math.max(0,Math.floor(i)),ah=Math.min(aa.length-1,Math.ceil(Z)),aq=P&&ag.getMarker("labels"),ae,af;for(M=Y;M<=ah;M++){ae=aj?aj[M]:0;af=ab[M];aw=aa[M]*V+ar+S*(W+X);ap=Q.roundPixel(aw-W/2)+al;ao=Q.roundPixel(af*an+at+ad);O=Q.roundPixel(aw+W/2)-al;av=Q.roundPixel(ae*an+at+ad);ag.drawBar(ac,Q,R,ap,ao-al,O,av-al,M);if(aq&&P[M]!=null){ag.drawLabel(P[M],aw,av,ao,M)}ag.putMarker("markers",{translationX:au.x(aw,ao),translationY:au.y(aw,ao)},M,true)}},getIndexNearPoint:function(p,q){var o=this,t=o.attr,s=t.dataX,z=o.getSurface(),y=z.getRect()||[0,0,0,0],r=y[3],v,w,x,i,u=-1;if(t.flipXY){v=r-q;if(z.getInherited().rtl){w=y[2]-p}else{w=p}}else{v=p;w=r-q}for(x=0;x<s.length;x++){i=o.getMarkerBBox("items",x);if(Ext.draw.Draw.isPointInBBox(v,w,i)){u=x;break}}return u}},0,0,0,0,["sprite.barSeries"],0,[Ext.chart.series.sprite,"Bar"],0));(Ext.cmd.derive("Ext.chart.series.Bar",Ext.chart.series.StackedCartesian,{type:"bar",seriesType:"barSeries",config:{itemInstancing:{type:"rect",fx:{customDurations:{x:0,y:0,width:0,height:0,radius:0}}}},getItemForPoint:function(h,i){if(this.getSprites()){var k=this,l=k.getChart(),j=l.getInnerPadding(),g=l.getInherited().rtl;arguments[0]=h+(g?j.right:-j.left);arguments[1]=i+j.bottom;return Ext.chart.series.StackedCartesian.prototype.getItemForPoint.apply(this,arguments)}},updateXAxis:function(b){b.setLabelInSpan(true);Ext.chart.series.StackedCartesian.prototype.updateXAxis.apply(this,arguments)},updateHidden:function(b){Ext.chart.series.StackedCartesian.prototype.updateHidden.apply(this,arguments);this.updateStacked()},updateStacked:function(n){var l=this,j=l.getSprites(),m=j.length,k=[],i={},h;for(h=0;h<m;h++){if(!j[h].attr.hidden){k.push(j[h])}}m=k.length;if(l.getStacked()){i.groupCount=1;i.groupOffset=0;for(h=0;h<m;h++){k[h].setAttributes(i)}}else{i.groupCount=k.length;for(h=0;h<m;h++){i.groupOffset=h;k[h].setAttributes(i)}}Ext.chart.series.StackedCartesian.prototype.updateStacked.apply(this,arguments)}},0,0,0,0,["series.bar"],0,[Ext.chart.series,"Bar"],0));(Ext.cmd.derive("Ext.draw.LimitedCache",Ext.Base,{config:{limit:40,feeder:function(){return 0},scope:null},cache:null,constructor:function(b){this.cache={};this.cache.list=[];this.cache.tail=0;this.initConfig(b)},get:function(h){var j=this.cache,f=this.getLimit(),g=this.getFeeder(),i=this.getScope()||this;if(j[h]){return j[h].value}if(j.list[j.tail]){delete j[j.list[j.tail].cacheId]}j[h]=j.list[j.tail]={value:g.apply(i,Array.prototype.slice.call(arguments,1)),cacheId:h};j.tail++;if(j.tail===f){j.tail=0}return j[h].value},clear:function(){this.cache={};this.cache.list=[];this.cache.tail=0}},1,0,0,0,0,0,[Ext.draw,"LimitedCache"],0));(Ext.cmd.derive("Ext.draw.SegmentTree",Ext.Base,{config:{strategy:"double"},time:function(Y,Z,X,ah,N,ag,af){var ae=0,W,V,O=new Date(X[Y.startIdx[0]]),H=new Date(X[Y.endIdx[Z-1]]),P=Ext.Date,L=[[P.MILLI,1,"ms1",null],[P.MILLI,2,"ms2","ms1"],[P.MILLI,5,"ms5","ms1"],[P.MILLI,10,"ms10","ms5"],[P.MILLI,50,"ms50","ms10"],[P.MILLI,100,"ms100","ms50"],[P.MILLI,500,"ms500","ms100"],[P.SECOND,1,"s1","ms500"],[P.SECOND,10,"s10","s1"],[P.SECOND,30,"s30","s10"],[P.MINUTE,1,"mi1","s10"],[P.MINUTE,5,"mi5","mi1"],[P.MINUTE,10,"mi10","mi5"],[P.MINUTE,30,"mi30","mi10"],[P.HOUR,1,"h1","mi30"],[P.HOUR,6,"h6","h1"],[P.HOUR,12,"h12","h6"],[P.DAY,1,"d1","h12"],[P.DAY,7,"d7","d1"],[P.MONTH,1,"mo1","d1"],[P.MONTH,3,"mo3","mo1"],[P.MONTH,6,"mo6","mo3"],[P.YEAR,1,"y1","mo3"],[P.YEAR,5,"y5","y1"],[P.YEAR,10,"y10","y5"],[P.YEAR,100,"y100","y10"]],i,ai,aa=ae,K=Z,ab=false,R=Y.startIdx,ac=Y.endIdx,I=Y.minIdx,Q=Y.maxIdx,aj=Y.open,G=Y.close,ad=Y.minX,T=Y.minY,U=Y.maxX,S=Y.maxY,J,M;for(i=0;Z>ae+1&&i<L.length;i++){O=new Date(X[R[0]]);ai=L[i];O=P.align(O,ai[0],ai[1]);if(P.diff(O,H,ai[0])>X.length*2*ai[1]){continue}if(ai[3]&&Y.map["time_"+ai[3]]){W=Y.map["time_"+ai[3]][0];V=Y.map["time_"+ai[3]][1]}else{W=aa;V=K}ae=Z;M=O;ab=true;R[Z]=R[W];ac[Z]=ac[W];I[Z]=I[W];Q[Z]=Q[W];aj[Z]=aj[W];G[Z]=G[W];ad[Z]=ad[W];T[Z]=T[W];U[Z]=U[W];S[Z]=S[W];M=Ext.Date.add(M,ai[0],ai[1]);for(J=W+1;J<V;J++){if(X[ac[J]]<+M){ac[Z]=ac[J];G[Z]=G[J];if(S[J]>S[Z]){S[Z]=S[J];U[Z]=U[J];Q[Z]=Q[J]}if(T[J]<T[Z]){T[Z]=T[J];ad[Z]=ad[J];I[Z]=I[J]}}else{Z++;R[Z]=R[J];ac[Z]=ac[J];I[Z]=I[J];Q[Z]=Q[J];aj[Z]=aj[J];G[Z]=G[J];ad[Z]=ad[J];T[Z]=T[J];U[Z]=U[J];S[Z]=S[J];M=Ext.Date.add(M,ai[0],ai[1])}}if(Z>ae){Y.map["time_"+ai[2]]=[ae,Z]}}},"double":function(I,w,H,P,x,O,N){var L=0,G,K=1,D,M,i,J,y,F,E,z,A,B,C;while(w>L+1){G=L;L=w;K+=K;for(D=G;D<L;D+=2){if(D===L-1){M=I.startIdx[D];i=I.endIdx[D];J=I.minIdx[D];y=I.maxIdx[D];F=I.open[D];E=I.close[D];z=I.minX[D];A=I.minY[D];B=I.maxX[D];C=I.maxY[D]}else{M=I.startIdx[D];i=I.endIdx[D+1];F=I.open[D];E=I.close[D];if(I.minY[D]<=I.minY[D+1]){J=I.minIdx[D];z=I.minX[D];A=I.minY[D]}else{J=I.minIdx[D+1];z=I.minX[D+1];A=I.minY[D+1]}if(I.maxY[D]>=I.maxY[D+1]){y=I.maxIdx[D];B=I.maxX[D];C=I.maxY[D]}else{y=I.maxIdx[D+1];B=I.maxX[D+1];C=I.maxY[D+1]}}I.startIdx[w]=M;I.endIdx[w]=i;I.minIdx[w]=J;I.maxIdx[w]=y;I.open[w]=F;I.close[w]=E;I.minX[w]=z;I.minY[w]=A;I.maxX[w]=B;I.maxY[w]=C;w++}I.map["double_"+K]=[L,w]}},none:Ext.emptyFn,aggregateData:function(C,J,t,H,G){var I=C.length,F=[],i=[],E=[],u=[],B=[],v=[],x=[],w=[],y=[],A=[],D={startIdx:F,endIdx:i,minIdx:E,maxIdx:u,open:B,minX:v,minY:x,maxX:w,maxY:y,close:A},z;for(z=0;z<I;z++){F[z]=z;i[z]=z;E[z]=z;u[z]=z;B[z]=J[z];v[z]=C[z];x[z]=H[z];w[z]=C[z];y[z]=t[z];A[z]=G[z]}D.map={original:[0,I]};if(I){this[this.getStrategy()](D,I,C,J,t,H,G)}return D},binarySearchMin:function(n,j,i,l){var h=this.dataX;if(l<=h[n.startIdx[0]]){return j}if(l>=h[n.startIdx[i-1]]){return i-1}while(j+1<i){var m=(j+i)>>1,k=h[n.startIdx[m]];if(k===l){return m}else{if(k<l){j=m}else{i=m}}}return j},binarySearchMax:function(n,j,i,l){var h=this.dataX;if(l<=h[n.endIdx[0]]){return j}if(l>=h[n.endIdx[i-1]]){return i-1}while(j+1<i){var m=(j+i)>>1,k=h[n.endIdx[m]];if(k===l){return m}else{if(k<l){j=m}else{i=m}}}return i},constructor:function(b){this.initConfig(b)},setData:function(i,g,f,j,h){if(!f){h=j=f=g}this.dataX=i;this.dataOpen=g;this.dataHigh=f;this.dataLow=j;this.dataClose=h;if(i.length===f.length&&i.length===j.length){this.cache=this.aggregateData(i,g,f,j,h)}},getAggregation:function(w,p,r){if(!this.cache){return null}var x=Infinity,t=this.dataX[this.dataX.length-1]-this.dataX[0],o=this.cache.map,n=o.original,z,v,q,y,u,s;for(z in o){v=o[z];q=v[1]-v[0]-1;y=t/q;if(r<=y&&y<x){n=v;x=y}}u=Math.max(this.binarySearchMin(this.cache,n[0],n[1],w),n[0]);s=Math.min(this.binarySearchMax(this.cache,n[0],n[1],p)+1,n[1]);return{data:this.cache,start:u,end:s}}},1,0,0,0,0,0,[Ext.draw,"SegmentTree"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Aggregative",Ext.chart.series.sprite.Cartesian,{inheritableStatics:{def:{processors:{dataHigh:"data",dataLow:"data",dataClose:"data"},aliases:{dataOpen:"dataY"},defaults:{dataHigh:null,dataLow:null,dataClose:null}}},config:{aggregator:{}},applyAggregator:function(c,d){return Ext.factory(c,Ext.draw.SegmentTree,d)},constructor:function(){Ext.chart.series.sprite.Cartesian.prototype.constructor.apply(this,arguments)},processDataY:function(){var k=this,g=k.attr,j=g.dataHigh,h=g.dataLow,i=g.dataClose,l=g.dataY;Ext.chart.series.sprite.Cartesian.prototype.processDataY.apply(this,arguments);if(g.dataX&&l&&l.length>0){if(j){k.getAggregator().setData(g.dataX,g.dataY,j,h,i)}else{k.getAggregator().setData(g.dataX,g.dataY)}}},getGapWidth:function(){return 1},renderClipped:function(i,p,l,m){var n=this,o=Math.min(l[0],l[2]),j=Math.max(l[0],l[2]),k=n.getAggregator()&&n.getAggregator().getAggregation(o,j,(j-o)/m[2]*n.getGapWidth());if(k){n.dataStart=k.data.startIdx[k.start];n.dataEnd=k.data.endIdx[k.end-1];n.renderAggregates(k.data,k.start,k.end,i,p,l,m)}}},1,0,0,0,0,0,[Ext.chart.series.sprite,"Aggregative"],0));(Ext.cmd.derive("Ext.chart.series.Polar",Ext.chart.series.Series,{config:{rotation:0,radius:null,center:[0,0],offsetX:0,offsetY:0,showInLegend:true,xField:null,yField:null,angleField:null,radiusField:null,xAxis:null,yAxis:null},directions:["X","Y"],fieldCategoryX:["X"],fieldCategoryY:["Y"],deprecatedConfigs:{field:"angleField",lengthField:"radiusField"},constructor:function(f){var j=this,g=j.getConfigurator(),h=g.configs,i;if(f){for(i in j.deprecatedConfigs){if(i in f&&!(f in h)){Ext.raise("'"+i+"' config has been deprecated. Please use the '"+j.deprecatedConfigs[i]+"' config instead.")}}}Ext.chart.series.Series.prototype.constructor.call(this,f)},getXField:function(){return this.getAngleField()},updateXField:function(b){this.setAngleField(b)},getYField:function(){return this.getRadiusField()},updateYField:function(b){this.setRadiusField(b)},applyXAxis:function(d,c){return this.getChart().getAxis(d)||c},applyYAxis:function(d,c){return this.getChart().getAxis(d)||c},getXRange:function(){return[this.dataRange[0],this.dataRange[2]]},getYRange:function(){return[this.dataRange[1],this.dataRange[3]]},themeColorCount:function(){var f=this,e=f.getStore(),d=e&&e.getCount()||0;return d},isStoreDependantColorCount:true,getDefaultSpriteConfig:function(){return{type:this.seriesType,renderer:this.getRenderer(),centerX:0,centerY:0,rotationCenterX:0,rotationCenterY:0}},applyRotation:function(b){return Ext.draw.sprite.AttributeParser.angle(b)},updateRotation:function(d){var c=this.getSprites();if(c&&c[0]){c[0].setAttributes({baseRotation:d})}}},1,0,0,0,0,0,[Ext.chart.series,"Polar"],0));(Ext.cmd.derive("Ext.chart.series.Gauge",Ext.chart.series.Polar,{type:"gauge",seriesType:"pieslice",config:{needle:false,needleLength:90,needleWidth:4,donut:30,showInLegend:false,value:null,colors:null,sectors:null,minimum:0,maximum:100,rotation:0,totalAngle:Math.PI/2,rect:[0,0,1,1],center:[0.5,0.75],radius:0.5,wholeDisk:false},coordinateX:function(){return this.coordinate("X",0,2)},coordinateY:function(){return this.coordinate("Y",1,2)},updateNeedle:function(e){var f=this,g=f.getSprites(),h=f.valueToAngle(f.getValue());if(g&&g.length){g[0].setAttributes({startAngle:(e?h:0),endAngle:h,strokeOpacity:(e?1:0),lineWidth:(e?f.getNeedleWidth():0)});f.doUpdateStyles()}},themeColorCount:function(){var f=this,e=f.getStore(),d=e&&e.getCount()||0;return d+(f.getNeedle()?0:1)},updateColors:function(r,q){var m=this,k=m.getSectors(),i=k&&k.length,n=m.getSprites(),p=Ext.Array.clone(r),l=r&&r.length,o;if(!l||!r[0]){return}for(o=0;o<i;o++){p[o+1]=k[o].color||p[o+1]||r[o%l]}if(n.length){n[0].setAttributes({strokeStyle:p[0]})}this.setSubStyle({fillStyle:p,strokeStyle:p});this.doUpdateStyles()},updateRect:function(k){var m=this.getWholeDisk(),n=m?Math.PI:this.getTotalAngle()/2,j=this.getDonut()/100,l,h,i;if(n<=Math.PI/2){l=2*Math.sin(n);h=1-j*Math.cos(n)}else{l=2;h=1-Math.cos(n)}i=Math.min(k[2]/l,k[3]/h);this.setRadius(i);this.setCenter([k[2]/2,i+(k[3]-h*i)/2])},updateCenter:function(b){this.setStyle({centerX:b[0],centerY:b[1],rotationCenterX:b[0],rotationCenterY:b[1]});this.doUpdateStyles()},updateRotation:function(b){this.setStyle({rotationRads:b-(this.getTotalAngle()+Math.PI)/2});this.doUpdateStyles()},doUpdateShape:function(g,i){var h,k=this.getSectors(),l=(k&&k.length)||0,j=this.getNeedleLength()/100;h=[g*j,g];while(l--){h.push(g)}this.setSubStyle({endRho:h,startRho:g/100*i});this.doUpdateStyles()},updateRadius:function(d){var c=this.getDonut();this.doUpdateShape(d,c)},updateDonut:function(c){var d=this.getRadius();this.doUpdateShape(d,c)},valueToAngle:function(b){b=this.applyValue(b);return this.getTotalAngle()*(b-this.getMinimum())/(this.getMaximum()-this.getMinimum())},applyValue:function(b){return Math.min(this.getMaximum(),Math.max(b,this.getMinimum()))},updateValue:function(f){var g=this,j=g.getNeedle(),h=g.valueToAngle(f),i=g.getSprites();i[0].rendererData.value=f;i[0].setAttributes({startAngle:(j?h:0),endAngle:h});g.doUpdateStyles()},processData:function(){var o=this,k=o.getStore(),t,q,m,s,n,p=k&&k.first(),r,l;if(p){r=o.getXField();if(r){l=p.get(r)}}if(t=o.getXAxis()){q=t.getMinimum();m=t.getMaximum();s=t.getSprites()[0].fx;n=s.getDuration();s.setDuration(0);if(Ext.isNumber(q)){o.setMinimum(q)}else{t.setMinimum(o.getMinimum())}if(Ext.isNumber(m)){o.setMaximum(m)}else{t.setMaximum(o.getMaximum())}s.setDuration(n)}if(!Ext.isNumber(l)){l=o.getMinimum()}o.setValue(l)},getDefaultSpriteConfig:function(){return{type:this.seriesType,renderer:this.getRenderer(),fx:{customDurations:{translationX:0,translationY:0,rotationCenterX:0,rotationCenterY:0,centerX:0,centerY:0,startRho:0,endRho:0,baseRotation:0}}}},normalizeSectors:function(k){var m=this,n=(k&&k.length)||0,h,l,j,i;if(n){for(h=0;h<n;h++){l=k[h];if(typeof l==="number"){k[h]={start:(h>0?k[h-1].end:m.getMinimum()),end:Math.min(l,m.getMaximum())};if(h==(n-1)&&k[h].end<m.getMaximum()){k[h+1]={start:k[h].end,end:m.getMaximum()}}}else{if(typeof l.start==="number"){j=Math.max(l.start,m.getMinimum())}else{j=(h>0?k[h-1].end:m.getMinimum())}if(typeof l.end==="number"){i=Math.min(l.end,m.getMaximum())}else{i=m.getMaximum()}k[h].start=j;k[h].end=i}}}else{k=[{start:m.getMinimum(),end:m.getMaximum()}]}return k},getSprites:function(){var t=this,q=t.getStore(),r=t.getValue(),z,v;if(!q&&!Ext.isNumber(r)){return[]}var u=t.getChart(),A=t.getAnimation()||u&&u.getAnimation(),w=t.sprites,s=0,i,p,x,y,B=[];if(w&&w.length){w[0].setAnimation(A);return w}y={store:q,field:t.getXField(),angleField:t.getXField(),value:r,series:t};i=t.createSprite();i.setAttributes({zIndex:10},true);i.rendererData=y;i.rendererIndex=s++;B.push(t.getNeedleWidth());t.getLabel().getTemplate().setField(true);p=t.normalizeSectors(t.getSectors());for(z=0,v=p.length;z<v;z++){x={startAngle:t.valueToAngle(p[z].start),endAngle:t.valueToAngle(p[z].end),label:p[z].label,fillStyle:p[z].color,strokeOpacity:0,doCallout:false,labelOverflowPadding:-1};Ext.apply(x,p[z].style);i=t.createSprite();i.rendererData=y;i.rendererIndex=s++;i.setAttributes(x,true);B.push(x.lineWidth)}t.setSubStyle({lineWidth:B});t.doUpdateStyles();return w}},0,0,0,0,["series.gauge"],0,[Ext.chart.series,"Gauge"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Line",Ext.chart.series.sprite.Aggregative,{inheritableStatics:{def:{processors:{smooth:"bool",fillArea:"bool",step:"bool",preciseStroke:"bool",xAxis:"default",yCap:"default"},defaults:{smooth:false,fillArea:false,step:false,preciseStroke:true,xAxis:null,yCap:Math.pow(2,20),yJump:50},triggers:{dataX:"dataX,bbox,smooth",dataY:"dataY,bbox,smooth",smooth:"smooth"},updaters:{smooth:function(e){var f=e.dataX,d=e.dataY;if(e.smooth&&f&&d&&f.length>2&&d.length>2){this.smoothX=Ext.draw.Draw.spline(f);this.smoothY=Ext.draw.Draw.spline(d)}else{delete this.smoothX;delete this.smoothY}}}}},list:null,updatePlainBBox:function(g){var e=this.attr,h=Math.min(0,e.dataMinY),f=Math.max(0,e.dataMaxY);g.x=e.dataMinX;g.y=h;g.width=e.dataMaxX-e.dataMinX;g.height=f-h},drawStrip:function(f,h){f.moveTo(h[0],h[1]);for(var e=2,g=h.length;e<g;e+=2){f.lineTo(h[e],h[e+1])}},drawStraightStroke:function(F,E,P,Q,A,M){var x=this,G=x.attr,H=G.renderer,N=G.step,T=true,J={type:"line",smooth:false,step:N},I=[],J,i,y,O,K,L,B,R,C,S,D;for(D=3;D<A.length;D+=3){B=A[D-3];R=A[D-2];K=A[D];L=A[D+1];C=A[D+3];S=A[D+4];if(H){J.x=K;J.y=L;J.x0=B;J.y0=R;y=[x,J,x.rendererData,P+D/3];i=Ext.callback(H,null,y,0,x.getSeries())}if(Ext.isNumber(K+L+B+R)){if(T){E.beginPath();E.moveTo(B,R);I.push(B,R);O=B;T=false}}else{continue}if(N){E.lineTo(K,R);I.push(K,R)}E.lineTo(K,L);I.push(K,L);if(i||!(Ext.isNumber(C+S))){E.save();Ext.apply(E,i);if(G.fillArea){E.lineTo(K,M);E.lineTo(O,M);E.closePath();E.fill()}E.beginPath();x.drawStrip(E,I);I=[];E.stroke();E.restore();E.beginPath();T=true}}},calculateScale:function(h,f){var e=0,g=h;while(g<f&&h>0){e++;g+=h>>e}return Math.pow(2,e>0?e-1:e)},drawSmoothStroke:function(M,K,ah,ai,R,ae){var J=this,O=J.attr,ag=O.step,i=O.matrix,Q=O.renderer,af=i.getXX(),W=i.getYY(),Z=i.getDX(),ab=i.getDY(),S=J.smoothX,U=J.smoothY,j=J.calculateScale(O.dataX.length,ai),X,L,Y,N,ac,ad,T,aj,V,y,x,P,aa={type:"line",smooth:true,step:ag};K.beginPath();K.moveTo(S[ah*3]*af+Z,U[ah*3]*W+ab);for(V=0,y=ah*3+1;V<R.length-3;V+=3,y+=3*j){X=S[y]*af+Z;L=U[y]*W+ab;Y=S[y+1]*af+Z;N=U[y+1]*W+ab;ac=M.roundPixel(R[V+3]);ad=R[V+4];T=M.roundPixel(R[V]);aj=R[V+1];if(Q){aa.x0=T;aa.y0=aj;aa.cx1=X;aa.cy1=L;aa.cx2=Y;aa.cy2=N;aa.x=ac;aa.y=ad;P=[J,aa,J.rendererData,ah+V/3+1];x=Ext.callback(Q,null,P,0,J.getSeries());K.save();Ext.apply(K,x)}if(O.fillArea){K.moveTo(T,aj);K.bezierCurveTo(X,L,Y,N,ac,ad);K.lineTo(ac,ae);K.lineTo(T,ae);K.lineTo(T,aj);K.closePath();K.fill();K.beginPath()}K.moveTo(T,aj);K.bezierCurveTo(X,L,Y,N,ac,ad);K.stroke();K.moveTo(T,aj);K.closePath();if(Q){K.restore()}K.beginPath();K.moveTo(ac,ad)}K.beginPath()},drawLabel:function(B,D,E,x,L){var v=this,y=v.attr,H=v.getMarker("labels"),I=H.getTemplate(),z=v.labelCfg||(v.labelCfg={}),J=v.surfaceMatrix,F,G,C=y.labelOverflowPadding,A,K,u,w,t;z.x=J.x(D,E);z.y=J.y(D,E);if(y.flipXY){z.rotationRads=Math.PI*0.5}else{z.rotationRads=0}z.text=B;if(I.attr.renderer){w=[B,H,z,v.rendererData,x];u=Ext.callback(I.attr.renderer,null,w,0,v.getSeries());if(typeof u==="string"){z.text=u}else{if(typeof u==="object"){if("text" in u){z.text=u.text}t=true}}}K=v.getMarkerBBox("labels",x,true);if(!K){v.putMarker("labels",z,x);K=v.getMarkerBBox("labels",x,true)}A=K.height/2;F=D;switch(I.attr.display){case"under":G=E-A-C;break;case"rotate":F+=C;G=E-C;z.rotationRads=-Math.PI/4;break;default:G=E+A+C}z.x=J.x(F,G);z.y=J.y(F,G);if(t){Ext.apply(z,u)}v.putMarker("labels",z,x)},drawMarker:function(k,m,q){var n=this,p=n.attr,o=p.renderer,r=n.surfaceMatrix,s={},l,t;if(o&&n.getMarker("markers")){s.type="marker";s.x=k;s.y=m;t=[n,s,n.rendererData,q];l=Ext.callback(o,null,t,0,n.getSeries());if(l){Ext.apply(s,l)}}s.translationX=r.x(k,m);s.translationY=r.y(k,m);delete s.x;delete s.y;n.putMarker("markers",s,q,!o)},drawStroke:function(j,p,k,i,m,n){var o=this,l=o.attr.smooth&&o.smoothX&&o.smoothY;if(l){o.drawSmoothStroke(j,p,k,i,m,n)}else{o.drawStraightStroke(j,p,k,i,m,n)}},renderAggregates:function(al,ao,aA,Z,ax,ae,aj){var az=this,aB=az.attr,at=aB.dataX,au=aB.dataY,aD=aB.labels,ap=aB.xAxis,aK=aB.yCap,aE=aB.smooth&&az.smoothX&&az.smoothY,aH=aD&&az.getMarker("labels"),ar=az.getMarker("markers"),ai=aB.matrix,aq=Z.devicePixelRatio,ak=ai.getXX(),aF=ai.getYY(),aI=ai.getDX(),aJ=ai.getDY(),av=az.list||(az.list=[]),ah=al.minX,aG=al.maxX,aC=al.minY,X=al.maxY,i=al.startIdx,y=true,W,x,ab,ac,V,ag;az.rendererData={store:az.getStore()};av.length=0;for(V=ao;V<aA;V++){var Y=ah[V],aw=aG[V],aa=aC[V],ay=X[V];if(Y<aw){av.push(Y*ak+aI,aa*aF+aJ,i[V]);av.push(aw*ak+aI,ay*aF+aJ,i[V])}else{if(Y>aw){av.push(aw*ak+aI,ay*aF+aJ,i[V]);av.push(Y*ak+aI,aa*aF+aJ,i[V])}else{av.push(aw*ak+aI,ay*aF+aJ,i[V])}}}if(av.length){for(V=0;V<av.length;V+=3){ab=av[V];ac=av[V+1];if(Ext.isNumber(ab+ac)){if(ac>aK){ac=aK}else{if(ac<-aK){ac=-aK}}av[V+1]=ac}else{y=false;continue}ag=av[V+2];if(ar){az.drawMarker(ab,ac,ag)}if(aH&&aD[ag]){az.drawLabel(aD[ag],ab,ac,ag,aj)}}az.isContinuousLine=y;if(aE&&!y){Ext.raise("Line smoothing in only supported for gapless data, where all data points are finite numbers.")}if(ap){x=ap.getAlignment()==="vertical";if(Ext.isNumber(ap.floatingAtCoord)){W=(x?aj[2]:aj[3])-ap.floatingAtCoord}else{W=x?aj[0]:aj[1]}}else{W=aB.flipXY?aj[0]:aj[1]}if(aB.preciseStroke){if(aB.fillArea){ax.fill()}if(aB.transformFillStroke){aB.inverseMatrix.toContext(ax)}az.drawStroke(Z,ax,ao,aA,av,W);if(aB.transformFillStroke){aB.matrix.toContext(ax)}ax.stroke()}else{az.drawStroke(Z,ax,ao,aA,av,W);if(y&&aE&&aB.fillArea&&!aB.renderer){var am=at[at.length-1]*ak+aI+aq,an=au[au.length-1]*aF+aJ,ad=at[0]*ak+aI-aq,af=au[0]*aF+aJ;ax.lineTo(am,an);ax.lineTo(am,W-aB.lineWidth);ax.lineTo(ad,W-aB.lineWidth);ax.lineTo(ad,af)}if(aB.transformFillStroke){aB.matrix.toContext(ax)}if(aB.fillArea){ax.fillStroke(aB,true)}else{ax.stroke(true)}}}}},0,0,0,0,["sprite.lineSeries"],0,[Ext.chart.series.sprite,"Line"],0));(Ext.cmd.derive("Ext.chart.series.Line",Ext.chart.series.Cartesian,{type:"line",seriesType:"lineSeries",config:{selectionTolerance:20,smooth:false,step:false,fill:undefined,aggregator:{strategy:"double"}},defaultSmoothness:3,overflowBuffer:1,themeMarkerCount:function(){return 1},getDefaultSpriteConfig:function(){var i=this,h=Ext.chart.series.Cartesian.prototype.getDefaultSpriteConfig.apply(this,arguments),j=Ext.apply({},i.getStyle()),f,g=false;if(typeof i.config.fill!="undefined"){if(i.config.fill){g=true;if(typeof j.fillStyle=="undefined"){if(typeof j.strokeStyle=="undefined"){f=i.getStyleWithTheme();j.fillStyle=f.fillStyle;j.strokeStyle=f.strokeStyle}else{j.fillStyle=j.strokeStyle}}}}else{if(j.fillStyle){g=true}}if(!g){delete j.fillStyle}j=Ext.apply(h||{},j);return Ext.apply(j,{fillArea:g,step:i.config.step,smooth:i.config.smooth,selectionTolerance:i.config.selectionTolerance})},updateStep:function(c){var d=this.getSprites()[0];if(d&&d.attr.step!==c){d.setAttributes({step:c})}},updateFill:function(c){var d=this.getSprites()[0];if(d&&d.attr.fillArea!==c){d.setAttributes({fillArea:c})}},updateSmooth:function(d){var c=this.getSprites()[0];if(c&&c.attr.smooth!==d){c.setAttributes({smooth:d})}}},0,0,0,0,["series.line"],0,[Ext.chart.series,"Line"],0));(Ext.cmd.derive("Ext.chart.series.sprite.PieSlice",Ext.draw.sprite.Sector,{inheritableStatics:{def:{processors:{doCallout:"bool",label:"string",rotateLabels:"bool",labelOverflowPadding:"number",renderer:"default"},defaults:{doCallout:true,rotateLabels:true,label:"",labelOverflowPadding:10,renderer:null}}},config:{rendererData:null,rendererIndex:0,series:null},setGradientBBox:function(h,w){var x=this,y=x.attr,z=(y.fillStyle&&y.fillStyle.isGradient)||(y.strokeStyle&&y.strokeStyle.isGradient);if(z&&!y.constrainGradients){var E=x.getMidAngle(),C=y.margin,B=y.centerX,D=y.centerY,F=y.endRho,v=y.matrix,s=v.getScaleX(),t=v.getScaleY(),u=s*F,A=t*F,r={width:u+u,height:A+A};if(C){B+=C*Math.cos(E);D+=C*Math.sin(E)}r.x=v.x(B,D)-u;r.y=v.y(B,D)-A;h.setGradientBBox(r)}else{Ext.draw.sprite.Sector.prototype.setGradientBBox.call(this,h,w)}},render:function(i,p,l,m){var n=this,j=n.attr,k={},o;if(j.renderer){k={type:"sector",text:j.text,centerX:j.centerX,centerY:j.centerY,margin:j.margin,startAngle:Math.min(j.startAngle,j.endAngle),endAngle:Math.max(j.startAngle,j.endAngle),startRho:Math.min(j.startRho,j.endRho),endRho:Math.max(j.startRho,j.endRho)};o=Ext.callback(j.renderer,null,[n,k,n.rendererData,n.rendererIndex],0,n.getSeries());n.setAttributes(o);n.useAttributes(p,l)}Ext.draw.sprite.Sector.prototype.render.call(this,i,p,l,m);if(j.label&&n.getMarker("labels")){n.placeLabel()}},placeLabel:function(){var x=this,E=x.attr,F=E.attributeId,D=Math.min(E.startAngle,E.endAngle),I=Math.max(E.startAngle,E.endAngle),N=(D+I)*0.5,K=E.margin,Q=E.centerX,R=E.centerY,S=Math.sin(N),V=Math.cos(N),B=Math.min(E.startRho,E.endRho)+K,L=Math.max(E.startRho,E.endRho)+K,M=(B+L)*0.5,W=x.surfaceMatrix,J=x.labelCfg||(x.labelCfg={}),T=x.getMarker("labels"),U=T.getTemplate(),X=U.getCalloutLine(),G=X&&X.length||40,C,O,P,H,y;W.appendMatrix(E.matrix);J.text=E.label;O=Q+V*M;P=R+S*M;J.x=W.x(O,P);J.y=W.y(O,P);O=Q+V*L;P=R+S*L;J.calloutStartX=W.x(O,P);J.calloutStartY=W.y(O,P);O=Q+V*(L+G);P=R+S*(L+G);J.calloutPlaceX=W.x(O,P);J.calloutPlaceY=W.y(O,P);if(!E.rotateLabels){J.rotationRads=0}else{switch(U.attr.orientation){case"horizontal":J.rotationRads=N+Math.atan2(W.y(1,0)-W.y(0,0),W.x(1,0)-W.x(0,0))+Math.PI/2;break;case"vertical":J.rotationRads=N+Math.atan2(W.y(1,0)-W.y(0,0),W.x(1,0)-W.x(0,0));break}}J.calloutColor=(X&&X.color)||x.attr.fillStyle;if(X){if(X.width){J.calloutWidth=X.width}}else{J.calloutHasLine=false}J.globalAlpha=E.globalAlpha*E.fillOpacity;J.hidden=(E.startAngle==E.endAngle);if(U.attr.renderer){y=[x.attr.label,T,J,x.rendererData,x.rendererIndex];H=Ext.callback(U.attr.renderer,null,y,0,x.getSeries());if(typeof H==="string"){J.text=H}else{Ext.apply(J,H)}}x.putMarker("labels",J,F);C=x.getMarkerBBox("labels",F,true);if(C){if(E.doCallout){if(U.attr.display==="outside"){x.putMarker("labels",{callout:1},F)}else{if(U.attr.display==="inside"){x.putMarker("labels",{callout:0},F)}else{x.putMarker("labels",{callout:1-x.sliceContainsLabel(E,C)},F)}}}else{x.putMarker("labels",{globalAlpha:x.sliceContainsLabel(E,C)},F)}}},sliceContainsLabel:function(q,o){var p=q.labelOverflowPadding,m=(q.endRho+q.startRho)/2,n=m+(o.width+p)/2,l=m-(o.width+p)/2,k,r,s,t;if(p<0){return 1}if(o.width+p*2>(q.endRho-q.startRho)){return 0}r=Math.sqrt(q.endRho*q.endRho-n*n);s=Math.sqrt(q.endRho*q.endRho-l*l);k=Math.abs(q.endAngle-q.startAngle);t=(k>Math.PI/2?l:Math.abs(Math.tan(k/2))*l);if(o.height+p*2>Math.min(r,s,t)*2){return 0}return 1}},0,0,0,0,["sprite.pieslice"],[["markerHolder",Ext.chart.MarkerHolder]],[Ext.chart.series.sprite,"PieSlice"],0));(Ext.cmd.derive("Ext.chart.series.Pie",Ext.chart.series.Polar,{type:"pie",seriesType:"pieslice",config:{donut:0,rotation:0,clockwise:true,totalAngle:2*Math.PI,hidden:[],radiusFactor:100,highlightCfg:{margin:20},style:{}},directions:["X"],applyLabel:function(d,c){if(Ext.isObject(d)&&!Ext.isString(d.orientation)){Ext.apply(d=Ext.Object.chain(d),{orientation:"vertical"})}return Ext.chart.series.Polar.prototype.applyLabel.call(this,d,c)},updateLabelData:function(){var m=this,l=m.getStore(),n=l.getData().items,p=m.getSprites(),t=m.getLabel().getTemplate().getField(),q=m.getHidden(),s,o,r,i;if(p.length&&t){r=[];for(s=0,o=n.length;s<o;s++){r.push(n[s].get(t))}for(s=0,o=p.length;s<o;s++){i=p[s];i.setAttributes({label:r[s]});i.putMarker("labels",{hidden:q[s]},i.attr.attributeId)}}},coordinateX:function(){var i=this,G=i.getStore(),w=G.getData().items,J=w.length,K=i.getXField(),H=i.getYField(),B,L=0,A,C,u=0,y=i.getHidden(),I=[],x,F=0,E=i.getTotalAngle(),v=i.getClockwise()?1:-1,D=i.getSprites(),z;if(!D){return}for(x=0;x<J;x++){B=Math.abs(Number(w[x].get(K)))||0;C=H&&Math.abs(Number(w[x].get(H)))||0;if(!y[x]){L+=B;if(C>u){u=C}}I[x]=L;if(x>=y.length){y[x]=false}}y.length=J;i.maxY=u;if(L!==0){A=E/L}for(x=0;x<J;x++){D[x].setAttributes({startAngle:F,endAngle:F=(A?v*I[x]*A:0),globalAlpha:1})}if(J<i.sprites.length){for(x=J;x<i.sprites.length;x++){z=i.sprites[x];z.getMarker("labels").clear(z.getId());z.releaseMarker("labels");z.destroy()}i.sprites.length=J}for(x=J;x<i.sprites.length;x++){D[x].setAttributes({startAngle:E,endAngle:E,globalAlpha:0})}i.getChart().refreshLegendStore()},updateCenter:function(b){this.setStyle({translationX:b[0]+this.getOffsetX(),translationY:b[1]+this.getOffsetY()});this.doUpdateStyles()},updateRadius:function(b){this.setStyle({startRho:b*this.getDonut()*0.01,endRho:b*this.getRadiusFactor()*0.01});this.doUpdateStyles()},getStyleByIndex:function(r){var n=this,l=n.getStore(),i=l.getAt(r),o=n.getYField(),q=n.getRadius(),t={},p,s,m;if(i){m=o&&Math.abs(Number(i.get(o)))||0;p=q*n.getDonut()*0.01;s=q*n.getRadiusFactor()*0.01;t=Ext.chart.series.Polar.prototype.getStyleByIndex.call(this,r);t.startRho=p;t.endRho=n.maxY?(p+(s-p)*m/n.maxY):s}return t},updateDonut:function(c){var d=this.getRadius();this.setStyle({startRho:d*c*0.01,endRho:d*this.getRadiusFactor()*0.01});this.doUpdateStyles()},rotationOffset:-Math.PI/2,updateRotation:function(b){this.setStyle({rotationRads:b+this.rotationOffset});this.doUpdateStyles()},updateTotalAngle:function(b){this.processData()},getSprites:function(){var s=this,u=s.getChart(),p=s.getStore();if(!u||!p){return[]}s.getColors();s.getSubStyle();var t=p.getData().items,A=t.length,y=s.getAnimation()||u&&u.getAnimation(),v=s.sprites,i,r=0,w,x,z=false,q=s.getLabel(),B=q.getTemplate();w={store:p,field:s.getXField(),angleField:s.getXField(),radiusField:s.getYField(),series:s};for(x=0;x<A;x++){i=v[x];if(!i){i=s.createSprite();if(s.getHighlight()){i.config.highlight=s.getHighlight();i.addModifier("highlight",true)}if(B.getField()){B.setAttributes({labelOverflowPadding:s.getLabelOverflowPadding()});B.fx.setCustomDurations({callout:200})}i.setAttributes(s.getStyleByIndex(x));i.rendererData=w;i.rendererIndex=r++;z=true}i.setAnimation(y)}if(z){s.doUpdateStyles()}return s.sprites},betweenAngle:function(i,b,j){var h=Math.PI*2,a=this.rotationOffset;if(!this.getClockwise()){i*=-1;b*=-1;j*=-1;b-=a;j-=a}else{b+=a;j+=a}i-=b;j-=b;i%=h;j%=h;i+=h;j+=h;i%=h;j%=h;return i<j||j===0},getItemForAngle:function(r){var k=this,m=k.getSprites(),o;r%=Math.PI*2;while(r<0){r+=Math.PI*2}if(m){var i=k.getStore(),l=i.getData().items,p=k.getHidden(),q=0,n=i.getCount();for(;q<n;q++){if(!p[q]){o=m[q].attr;if(o.startAngle<=r&&o.endAngle>=r){return{series:k,sprite:m[q],index:q,record:l[q],field:k.getXField()}}}}}return null},getItemForPoint:function(G,H){var i=this,J=i.getSprites();if(J){var u=i.getCenter(),w=i.getOffsetX(),x=i.getOffsetY(),D=G-u[0]+w,E=H-u[1]+x,K=i.getStore(),F=i.getDonut(),y=K.getData().items,v=Math.atan2(E,D)-i.getRotation(),L=Math.sqrt(D*D+E*E),B=i.getRadius()*F*0.01,A=i.getHidden(),z,I,C;for(z=0,I=y.length;z<I;z++){if(!A[z]){C=J[z].attr;if(L>=B+C.margin&&L<=C.endRho+C.margin){if(i.betweenAngle(v,C.startAngle,C.endAngle)){return{series:i,sprite:J[z],index:z,record:y[z],field:i.getXField()}}}}}return null}},provideLegendInfo:function(o){var m=this,l=m.getStore();if(l){var n=l.getData().items,s=m.getLabel().getTemplate().getField(),r=m.getXField(),p=m.getHidden(),q,t,i;for(q=0;q<n.length;q++){t=m.getStyleByIndex(q);i=t.fillStyle;if(Ext.isObject(i)){i=i.stops&&i.stops[0].color}o.push({name:s?String(n[q].get(s)):r+" "+q,mark:i||t.strokeStyle||"black",disabled:p[q],series:m.getId(),index:q})}}}},0,0,0,0,["series.pie"],0,[Ext.chart.series,"Pie"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Pie3DPart",Ext.draw.sprite.Path,{inheritableStatics:{def:{processors:{centerX:"number",centerY:"number",startAngle:"number",endAngle:"number",startRho:"number",endRho:"number",margin:"number",thickness:"number",bevelWidth:"number",distortion:"number",baseColor:"color",colorSpread:"number",baseRotation:"number",part:"enums(top,bottom,start,end,innerFront,innerBack,outerFront,outerBack)",label:"string"},aliases:{rho:"endRho"},triggers:{centerX:"path,bbox",centerY:"path,bbox",startAngle:"path,partZIndex",endAngle:"path,partZIndex",startRho:"path",endRho:"path,bbox",margin:"path,bbox",thickness:"path",distortion:"path",baseRotation:"path,partZIndex",baseColor:"partZIndex,partColor",colorSpread:"partColor",part:"path,partZIndex",globalAlpha:"canvas,alpha"},defaults:{centerX:0,centerY:0,startAngle:Math.PI*2,endAngle:Math.PI*2,startRho:0,endRho:150,margin:0,thickness:35,distortion:0.5,baseRotation:0,baseColor:"white",colorSpread:1,miterLimit:1,bevelWidth:5,strokeOpacity:0,part:"top",label:""},updaters:{alpha:"alphaUpdater",partColor:"partColorUpdater",partZIndex:"partZIndexUpdater"}}},bevelParams:[],constructor:function(b){Ext.draw.sprite.Path.prototype.constructor.call(this,b);this.bevelGradient=new Ext.draw.gradient.Linear({stops:[{offset:0,color:"rgba(255,255,255,0)"},{offset:0.7,color:"rgba(255,255,255,0.6)"},{offset:1,color:"rgba(255,255,255,0)"}]})},alphaUpdater:function(f){var g=this,h=f.globalAlpha,e=g.oldOpacity;if(h!==e&&(h===1||e===1)){g.scheduleUpdater(f,"path",["globalAlpha"]);g.oldOpacity=h}},partColorUpdater:function(g){var i=Ext.draw.Color.fly(g.baseColor),f=i.toString(),h=g.colorSpread,j;switch(g.part){case"top":j=new Ext.draw.gradient.Radial({start:{x:0,y:0,r:0},end:{x:0,y:0,r:1},stops:[{offset:0,color:i.createLighter(0.1*h)},{offset:1,color:i.createDarker(0.1*h)}]});break;case"bottom":j=new Ext.draw.gradient.Radial({start:{x:0,y:0,r:0},end:{x:0,y:0,r:1},stops:[{offset:0,color:i.createDarker(0.2*h)},{offset:1,color:i.toString()}]});break;case"outerFront":case"outerBack":j=new Ext.draw.gradient.Linear({stops:[{offset:0,color:i.createDarker(0.15*h).toString()},{offset:0.3,color:f},{offset:0.8,color:i.createLighter(0.2*h).toString()},{offset:1,color:i.createDarker(0.25*h).toString()}]});break;case"start":j=new Ext.draw.gradient.Linear({stops:[{offset:0,color:i.createDarker(0.1*h).toString()},{offset:1,color:i.createLighter(0.2*h).toString()}]});break;case"end":j=new Ext.draw.gradient.Linear({stops:[{offset:0,color:i.createDarker(0.1*h).toString()},{offset:1,color:i.createLighter(0.2*h).toString()}]});break;case"innerFront":case"innerBack":j=new Ext.draw.gradient.Linear({stops:[{offset:0,color:i.createDarker(0.1*h).toString()},{offset:0.2,color:i.createLighter(0.2*h).toString()},{offset:0.7,color:f},{offset:1,color:i.createDarker(0.1*h).toString()}]});break}g.fillStyle=j;g.canvasAttributes.fillStyle=j},partZIndexUpdater:function(h){var l=Ext.draw.sprite.AttributeParser.angle,j=h.baseRotation,k=h.startAngle,g=h.endAngle,i;switch(h.part){case"top":h.zIndex=5;break;case"outerFront":k=l(k+j);g=l(g+j);if(k>=0&&g<0){i=Math.sin(k)}else{if(k<=0&&g>0){i=Math.sin(g)}else{if(k>=0&&g>0){if(k>g){i=0}else{i=Math.max(Math.sin(k),Math.sin(g))}}else{i=1}}}h.zIndex=4+i;break;case"outerBack":h.zIndex=1;break;case"start":h.zIndex=4+Math.sin(l(k+j));break;case"end":h.zIndex=4+Math.sin(l(g+j));break;case"innerFront":h.zIndex=2;break;case"innerBack":h.zIndex=4+Math.sin(l((k+g)/2+j));break;case"bottom":h.zIndex=0;break}h.dirtyZIndex=true},updatePlainBBox:function(n){var s=this.attr,x=s.part,w=s.baseRotation,t=s.centerX,u=s.centerY,o,v,p,q,r,m;if(x==="start"){v=s.startAngle+w}else{if(x==="end"){v=s.endAngle+w}}if(Ext.isNumber(v)){r=Math.sin(v);m=Math.cos(v);p=Math.min(t+m*s.startRho,t+m*s.endRho);q=u+r*s.startRho*s.distortion;n.x=p;n.y=q;n.width=m*(s.endRho-s.startRho);n.height=s.thickness+r*(s.endRho-s.startRho)*2;return}if(x==="innerFront"||x==="innerBack"){o=s.startRho}else{o=s.endRho}n.width=o*2;n.height=o*s.distortion*2+s.thickness;n.x=s.centerX-o;n.y=s.centerY-o*s.distortion},updateTransformedBBox:function(b){if(this.attr.part==="start"||this.attr.part==="end"){return Ext.draw.sprite.Path.prototype.updateTransformedBBox.apply(this,arguments)}return this.updatePlainBBox(b)},updatePath:function(b){if(!this.attr.globalAlpha){return}if(this.attr.endAngle<this.attr.startAngle){return}this[this.attr.part+"Renderer"](b)},render:function(e,h){var g=this,f=g.attr;if(!f.globalAlpha){return}Ext.draw.sprite.Path.prototype.render.call(this,e,h);g.bevelRenderer(e,h);if(f.label&&g.getMarker("labels")){g.placeLabel()}},placeLabel:function(){var x=this,B=x.attr,C=B.attributeId,G=B.margin,T=B.distortion,N=B.centerX,O=B.centerY,M=B.baseRotation,A=B.startAngle+M,E=B.endAngle+M,J=(A+E)/2,y=B.startRho+G,H=B.endRho+G,I=(y+H)/2,V=Math.sin(J),U=Math.cos(J),R=x.surfaceMatrix,P=x.getMarker("labels"),Q=P.getTemplate(),S=Q.getCalloutLine(),D=S&&S.length||40,F={},K,L;R.appendMatrix(B.matrix);F.text=B.label;K=N+U*I;L=O+V*I*T;F.x=R.x(K,L);F.y=R.y(K,L);K=N+U*H;L=O+V*H*T;F.calloutStartX=R.x(K,L);F.calloutStartY=R.y(K,L);K=N+U*(H+D);L=O+V*(H+D)*T;F.calloutPlaceX=R.x(K,L);F.calloutPlaceY=R.y(K,L);F.calloutWidth=2;x.putMarker("labels",F,C);x.putMarker("labels",{callout:1},C)},bevelRenderer:function(h,n){var k=this,i=k.attr,l=i.bevelWidth,j=k.bevelParams,m;for(m=0;m<j.length;m++){n.beginPath();n.ellipse.apply(n,j[m]);n.save();n.lineWidth=l;n.strokeOpacity=l?1:0;n.strokeGradient=k.bevelGradient;n.stroke(i);n.restore()}},lidRenderer:function(p,r){var t=this.attr,x=t.margin,B=t.distortion,v=t.centerX,w=t.centerY,y=t.baseRotation,u=t.startAngle+y,z=t.endAngle+y,A=(u+z)/2,s=t.startRho,C=t.endRho,q=Math.sin(z),D=Math.cos(z);v+=Math.cos(A)*x;w+=Math.sin(A)*x*B;p.ellipse(v,w+r,s,s*B,0,u,z,false);p.lineTo(v+D*C,w+r+q*C*B);p.ellipse(v,w+r,C,C*B,0,z,u,true);p.closePath()},topRenderer:function(b){this.lidRenderer(b,0)},bottomRenderer:function(c){var d=this.attr;if(d.globalAlpha<1||d.shadowColor!==Ext.draw.Color.RGBA_NONE){this.lidRenderer(c,d.thickness)}},sideRenderer:function(A,t){var x=this.attr,B=x.margin,F=x.centerX,G=x.centerY,H=x.distortion,E=x.baseRotation,w=x.startAngle+E,z=x.endAngle+E,L=x.thickness,v=x.startRho,C=x.endRho,u=(t==="start"&&w)||(t==="end"&&z),K=Math.sin(u),I=Math.cos(u),J=x.globalAlpha<1,y=t==="start"&&I<0||t==="end"&&I>0||J,D;if(y){D=(w+z)/2;F+=Math.cos(D)*B;G+=Math.sin(D)*B*H;A.moveTo(F+I*v,G+K*v*H);A.lineTo(F+I*C,G+K*C*H);A.lineTo(F+I*C,G+K*C*H+L);A.lineTo(F+I*v,G+K*v*H+L);A.closePath()}},startRenderer:function(b){this.sideRenderer(b,"start")},endRenderer:function(b){this.sideRenderer(b,"end")},rimRenderer:function(F,R,H,M){var z=this,D=z.attr,G=D.margin,O=D.centerX,P=D.centerY,S=D.distortion,N=D.baseRotation,C=Ext.draw.sprite.AttributeParser.angle,B=D.startAngle+N,E=D.endAngle+N,L=C((B+E)/2),V=D.thickness,U=D.globalAlpha<1,T,I,A;z.bevelParams=[];B=C(B);E=C(E);O+=Math.cos(L)*G;P+=Math.sin(L)*G*S;T=B>=0&&E>=0;I=B<=0&&E<=0;function K(){F.ellipse(O,P+V,R,R*S,0,Math.PI,B,true);F.lineTo(O+Math.cos(B)*R,P+Math.sin(B)*R*S);A=[O,P,R,R*S,0,B,Math.PI,false];if(!H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.closePath()}function Q(){F.ellipse(O,P+V,R,R*S,0,0,E,false);F.lineTo(O+Math.cos(E)*R,P+Math.sin(E)*R*S);A=[O,P,R,R*S,0,E,0,true];if(!H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.closePath()}function y(){F.ellipse(O,P+V,R,R*S,0,Math.PI,E,false);F.lineTo(O+Math.cos(E)*R,P+Math.sin(E)*R*S);A=[O,P,R,R*S,0,E,Math.PI,true];if(H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.closePath()}function J(){F.ellipse(O,P+V,R,R*S,0,B,0,false);F.lineTo(O+R,P);A=[O,P,R,R*S,0,0,B,true];if(H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.closePath()}if(M){if(!H||U){if(B>=0&&E<0){K()}else{if(B<=0&&E>0){Q()}else{if(B<=0&&E<0){if(B>E){F.ellipse(O,P+V,R,R*S,0,0,Math.PI,false);F.lineTo(O-R,P);A=[O,P,R,R*S,0,Math.PI,0,true];if(!H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.closePath()}}else{if(B>E){K();Q()}else{A=[O,P,R,R*S,0,B,E,false];if(T&&!H||I&&H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.lineTo(O+Math.cos(E)*R,P+Math.sin(E)*R*S+V);F.ellipse(O,P+V,R,R*S,0,E,B,true);F.closePath()}}}}}}else{if(H||U){if(B>=0&&E<0){y()}else{if(B<=0&&E>0){J()}else{if(B<=0&&E<0){if(B>E){y();J()}else{F.ellipse(O,P+V,R,R*S,0,B,E,false);F.lineTo(O+Math.cos(E)*R,P+Math.sin(E)*R*S);A=[O,P,R,R*S,0,E,B,true];if(H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.closePath()}}else{if(B>E){F.ellipse(O,P+V,R,R*S,0,-Math.PI,0,false);F.lineTo(O+R,P);A=[O,P,R,R*S,0,0,-Math.PI,true];if(H){z.bevelParams.push(A)}F.ellipse.apply(F,A);F.closePath()}}}}}}},innerFrontRenderer:function(b){this.rimRenderer(b,this.attr.startRho,true,true)},innerBackRenderer:function(b){this.rimRenderer(b,this.attr.startRho,true,false)},outerFrontRenderer:function(b){this.rimRenderer(b,this.attr.endRho,false,true)},outerBackRenderer:function(b){this.rimRenderer(b,this.attr.endRho,false,false)}},1,0,0,0,["sprite.pie3dPart"],[["markerHolder",Ext.chart.MarkerHolder]],[Ext.chart.series.sprite,"Pie3DPart"],0));(Ext.cmd.derive("Ext.draw.PathUtil",Ext.Base,function(){var h=Math.abs,l=Math.pow,j=Math.cos,g=Math.acos,k=Math.sqrt,i=Math.PI;return{singleton:true,cubicRoots:function(F){var a=F[0],c=F[1],d=F[2],e=F[3];if(a===0){return this.quadraticRoots(c,d,e)}var t=c/a,A=d/a,B=e/a,H=(3*A-l(t,2))/9,I=(9*t*A-27*B-2*l(t,3))/54,C=l(H,3)+l(I,2),E=[],J,K,D,G,f,b=Ext.Number.sign;if(C>=0){J=b(I+k(C))*l(h(I+k(C)),1/3);K=b(I-k(C))*l(h(I-k(C)),1/3);E[0]=-t/3+(J+K);E[1]=-t/3-(J+K)/2;E[2]=E[1];D=h(k(3)*(J-K)/2);if(D!==0){E[1]=-1;E[2]=-1}}else{G=g(I/k(-l(H,3)));E[0]=2*k(-H)*j(G/3)-t/3;E[1]=2*k(-H)*j((G+2*i)/3)-t/3;E[2]=2*k(-H)*j((G+4*i)/3)-t/3}for(f=0;f<3;f++){if(E[f]<0||E[f]>1){E[f]=-1}}return E},quadraticRoots:function(e,f,o){var a,b,c,d;if(e===0){return this.linearRoot(f,o)}a=f*f-4*e*o;if(a===0){c=[-f/(2*e)]}else{if(a>0){b=k(a);c=[(-f-b)/(2*e),(-f+b)/(2*e)]}else{return[]}}for(d=0;d<c.length;d++){if(c[d]<0||c[d]>1){c[d]=-1}}return c},linearRoot:function(b,c){var a=-c/b;if(b===0||a<0||a>1){return[]}return[a]},bezierCoeffs:function(d,e,a,b){var c=[];c[0]=-d+3*e-3*a+b;c[1]=3*d-6*e+3*a;c[2]=-3*d+3*e;c[3]=d;return c},cubicLineIntersections:function(t,O,P,R,Y,Z,aa,ab,b,U,d,W){var Q=[],a=[],S=U-W,e=d-b,r=b*(W-U)-U*(d-b),c=this.bezierCoeffs(t,O,P,R),f=this.bezierCoeffs(Y,Z,aa,ab),B,s,A,C,ac,T,V,X;Q[0]=S*c[0]+e*f[0];Q[1]=S*c[1]+e*f[1];Q[2]=S*c[2]+e*f[2];Q[3]=S*c[3]+e*f[3]+r;s=this.cubicRoots(Q);for(B=0;B<s.length;B++){C=s[B];if(C<0||C>1){continue}ac=C*C;T=ac*C;V=c[0]*T+c[1]*ac+c[2]*C+c[3];X=f[0]*T+f[1]*ac+f[2]*C+f[3];if((d-b)!==0){A=(V-b)/(d-b)}else{A=(X-U)/(W-U)}if(!(A<0||A>1)){a.push([V,X])}}return a},splitCubic:function(v,a,b,c,e){var s=e*e,d=e*s,t=e-1,u=t*t,r=t*u,f=d*c-3*s*t*b+3*e*u*a-r*v;return[[v,e*a-t*v,s*b-2*e*t*a+u*v,f],[f,s*c-2*e*t*b+u*a,e*c-t*b,c]]},cubicDimension:function(c,d,s,t){var u=3*(-c+3*(d-s)+t),v=6*(c-2*d+s),w=-3*(c-d),b,e,x=Math.min(c,t),f=Math.max(c,t),a;if(u===0){if(v===0){return[x,f]}else{b=-w/v;if(0<b&&b<1){e=this.interpolateCubic(c,d,s,t,b);x=Math.min(x,e);f=Math.max(f,e)}}}else{a=v*v-4*u*w;if(a>=0){a=k(a);b=(a-v)/2/u;if(0<b&&b<1){e=this.interpolateCubic(c,d,s,t,b);x=Math.min(x,e);f=Math.max(f,e)}if(a>0){b-=a/u;if(0<b&&b<1){e=this.interpolateCubic(c,d,s,t,b);x=Math.min(x,e);f=Math.max(f,e)}}}}return[x,f]},interpolateCubic:function(e,f,a,b,d){if(d===0){return e}if(d===1){return b}var c=(1-d)/d;return d*d*d*(b+c*(3*a+c*(3*f+c*e)))},cubicsIntersections:function(M,O,Q,R,P,a,b,e,Z,G,I,K,T,U,V,X){var L=this,c=L.cubicDimension(M,O,Q,R),N=L.cubicDimension(P,a,b,e),S=L.cubicDimension(Z,G,I,K),J=L.cubicDimension(T,U,V,X),W,Y,f,H,d=[];if(c[0]>S[1]||c[1]<S[0]||N[0]>J[1]||N[1]<J[0]){return[]}if(h(P-a)<1&&h(b-e)<1&&h(M-R)<1&&h(O-Q)<1&&h(T-U)<1&&h(V-X)<1&&h(Z-K)<1&&h(G-I)<1){return[[(M+R)*0.5,(P+a)*0.5]]}W=L.splitCubic(M,O,Q,R,0.5);Y=L.splitCubic(P,a,b,e,0.5);f=L.splitCubic(Z,G,I,K,0.5);H=L.splitCubic(T,U,V,X,0.5);d.push.apply(d,L.cubicsIntersections.apply(L,W[0].concat(Y[0],f[0],H[0])));d.push.apply(d,L.cubicsIntersections.apply(L,W[0].concat(Y[0],f[1],H[1])));d.push.apply(d,L.cubicsIntersections.apply(L,W[1].concat(Y[1],f[0],H[0])));d.push.apply(d,L.cubicsIntersections.apply(L,W[1].concat(Y[1],f[1],H[1])));return d},linesIntersection:function(r,b,s,c,u,d,a,e){var f=(s-r)*(e-d)-(c-b)*(a-u),t,v;if(f===0){return null}t=((a-u)*(b-d)-(r-u)*(e-d))/f;v=((s-r)*(b-d)-(c-b)*(r-u))/f;if(t>=0&&t<=1&&v>=0&&v<=1){return[r+t*(s-r),b+t*(c-b)]}return null},pointOnLine:function(d,a,f,b,o,p){var c,e;if(h(f-d)<h(b-a)){e=d;d=a;a=e;e=f;f=b;b=e;e=o;o=p;p=e}c=(o-d)/(f-d);if(c<0||c>1){return false}return h(a+c*(b-a)-p)<4},pointOnCubic:function(b,d,e,t,I,J,K,L,E,F){var f=this,y=f.bezierCoeffs(b,d,e,t),D=f.bezierCoeffs(I,J,K,L),a,c,G,H,x;y[3]-=E;D[3]-=F;G=f.cubicRoots(y);H=f.cubicRoots(D);for(a=0;a<G.length;a++){x=G[a];for(c=0;c<H.length;c++){if(x>=0&&x<=1&&h(x-H[c])<0.05){return true}}}return false}}},0,0,0,0,0,0,[Ext.draw,"PathUtil"],0));(Ext.cmd.derive("Ext.chart.series.Pie3D",Ext.chart.series.Polar,{type:"pie3d",seriesType:"pie3d",isPie3D:true,config:{rect:[0,0,0,0],thickness:35,distortion:0.5,donut:false,hidden:[],highlightCfg:{margin:20},shadow:false},rotationOffset:-Math.PI/2,setField:function(b){return this.setXField(b)},getField:function(){return this.getXField()},updateRotation:function(b){this.setStyle({baseRotation:b+this.rotationOffset});this.doUpdateStyles()},updateDistortion:function(){this.setRadius()},updateThickness:function(){this.setRadius()},updateColors:function(b){this.setSubStyle({baseColor:b})},applyShadow:function(b){if(b===true){b={shadowColor:"rgba(0,0,0,0.8)",shadowBlur:30}}else{if(!Ext.isObject(b)){b={shadowColor:Ext.draw.Color.RGBA_NONE}}}return b},updateShadow:function(j){var l=this,k=l.getSprites(),m=l.spritesPerSlice,n=k&&k.length,h,i;for(h=1;h<n;h+=m){i=k[h];if(i.attr.part="bottom"){i.setAttributes(j)}}},getStyleByIndex:function(f){var i=Ext.chart.series.Polar.prototype.getStyleByIndex.call(this,f),j=this.getStyle(),g=i.fillStyle||i.fill||i.color,h=j.strokeStyle||j.stroke;if(g){i.baseColor=g;delete i.fillStyle;delete i.fill;delete i.color}if(h){i.strokeStyle=h}return i},doUpdateStyles:function(){var l=this,k=l.getSprites(),m=l.spritesPerSlice,n=k&&k.length,p=0,i=0,j,o;for(;p<n;p+=m,i++){o=l.getStyleByIndex(i);for(j=0;j<m;j++){k[p+j].setAttributes(o)}}},coordinateX:function(){var i=this,F=i.getChart(),x=F&&F.getAnimation(),K=i.getStore(),y=K.getData().items,M=y.length,O=i.getXField(),C=i.getRotation(),z=i.getHidden(),E,N=0,I,L=[],H=i.getSprites(),P=H.length,G=i.spritesPerSlice,J=0,D=Math.PI*2,j=1e-10,A,B;for(A=0;A<M;A++){E=Math.abs(Number(y[A].get(O)))||0;if(!z[A]){N+=E}L[A]=N;if(A>=z.length){z[A]=false}}z.length=M;if(N===0){return}I=2*Math.PI/N;for(A=0;A<M;A++){L[A]*=I}for(A=0;A<P;A++){H[A].setAnimation(x)}for(A=0;A<M;A++){for(B=0;B<G;B++){H[A*G+B].setAttributes({startAngle:J,endAngle:L[A]-j,globalAlpha:1,baseRotation:C})}J=L[A]}for(A*=G;A<P;A++){H[A].setAnimation(x);H[A].setAttributes({startAngle:D,endAngle:D,globalAlpha:0,baseRotation:C})}},updateLabelData:function(){var o=this,j=o.getStore(),p=j.getData().items,q=o.getSprites(),w=o.getLabel().getTemplate().getField(),s=o.getHidden(),x=o.spritesPerSlice,u,v,r,t,i;if(q.length&&w){t=[];for(u=0,r=p.length;u<r;u++){t.push(p[u].get(w))}for(u=0,v=0,r=q.length;u<r;u+=x,v++){i=q[u];i.setAttributes({label:t[v]});i.putMarker("labels",{hidden:s[v]},i.attr.attributeId)}}},applyRadius:function(){var m=this,o=m.getChart(),k=o.getInnerPadding(),n=o.getMainRect()||[0,0,1,1],p=n[2]-k*2,j=n[3]-k*2-m.getThickness(),l=p/2,i=l*m.getDistortion();if(i>j/2){return j/(m.getDistortion()*2)}else{return l}},getSprites:function(){var i=this,P=i.getStore();if(!P){return[]}var I=i.getChart(),G=i.getSurface(),C=P.getData().items,K=i.spritesPerSlice,T=C.length,A=i.getAnimation()||I&&I.getAnimation(),j=i.getCenter(),z=i.getOffsetX(),B=i.getOffsetY(),S=i.getRadius(),F=i.getRotation(),Q=i.getHighlight(),R={centerX:j[0]+z,centerY:j[1]+B-i.getThickness()/2,endRho:S,startRho:S*i.getDonut()/100,thickness:i.getThickness(),distortion:i.getDistortion()},L=i.sprites,M=i.getLabel(),O=M.getTemplate(),J,N,H,D,E;for(D=0;D<T;D++){N=Ext.apply({},this.getStyleByIndex(D),R);if(!L[D*K]){for(E=0;E<i.partNames.length;E++){H=G.add({type:"pie3dPart",part:i.partNames[E]});if(E===0&&O.getField()){H.bindMarker("labels",M)}H.fx.setDurationOn("baseRotation",F);if(Q){H.config.highlight=Q;H.addModifier("highlight",true)}H.setAttributes(N);L.push(H)}}else{J=L.slice(D*K,(D+1)*K);for(E=0;E<J.length;E++){H=J[E];if(A){H.setAnimation(A)}H.setAttributes(N)}}}return L},betweenAngle:function(i,b,j){var h=Math.PI*2,a=this.rotationOffset;b+=a;j+=a;i-=b;j-=b;i%=h;j%=h;i+=h;j+=h;i%=h;j%=h;return i<j||j===0},getItemForPoint:function(o,p){var q=this,r=q.getSprites();if(r){var n=q.getStore(),w=n.getData().items,x=q.spritesPerSlice,t=q.getHidden(),v,s,i,u;for(v=0,s=w.length;v<s;v++){if(!t[v]){u=v*x;i=r[u];if(i.hitTest([o,p])){return{series:q,sprite:r.slice(u,u+x),index:v,record:w[v],category:"sprites",field:q.getXField()}}}}return null}},provideLegendInfo:function(o){var m=this,i=m.getStore();if(i){var n=i.getData().items,s=m.getLabel().getTemplate().getField(),l=m.getField(),p=m.getHidden(),q,t,r;for(q=0;q<n.length;q++){t=m.getStyleByIndex(q);r=t.baseColor;o.push({name:s?String(n[q].get(s)):l+" "+q,mark:r||"black",disabled:p[q],series:m.getId(),index:q})}}}},0,0,0,0,["series.pie3d"],0,[Ext.chart.series,"Pie3D"],function(){var c=this.prototype,d=Ext.chart.series.sprite.Pie3DPart.def.getInitialConfig().processors.part;c.partNames=d.replace(/^enums\(|\)/g,"").split(",");c.spritesPerSlice=c.partNames.length}));(Ext.cmd.derive("Ext.chart.series.sprite.Polar",Ext.chart.series.sprite.Series,{inheritableStatics:{def:{processors:{centerX:"number",centerY:"number",startAngle:"number",endAngle:"number",startRho:"number",endRho:"number",baseRotation:"number",labels:"default",labelOverflowPadding:"number"},defaults:{centerX:0,centerY:0,startAngle:0,endAngle:Math.PI,startRho:0,endRho:150,baseRotation:0,labels:null,labelOverflowPadding:10},triggers:{centerX:"bbox",centerY:"bbox",startAngle:"bbox",endAngle:"bbox",startRho:"bbox",endRho:"bbox",baseRotation:"bbox"}}},updatePlainBBox:function(c){var d=this.attr;c.x=d.centerX-d.endRho;c.y=d.centerY+d.endRho;c.width=d.endRho*2;c.height=d.endRho*2}},0,0,0,0,0,0,[Ext.chart.series.sprite,"Polar"],0));(Ext.cmd.derive("Ext.chart.series.sprite.Radar",Ext.chart.series.sprite.Polar,{getDataPointXY:function(K){var r=this,A=r.attr,I=A.centerX,J=A.centerY,z=A.matrix,v=A.dataMinX,w=A.dataMaxX,D=A.dataX,E=A.dataY,C=A.endRho,y=A.startRho,H=A.baseRotation,F,G,B,L,M,N,x;if(A.rangeY){x=A.rangeY[1]}else{x=A.dataMaxY}L=(D[K]-v)/(w-v+1)*2*Math.PI+H;B=E[K]/x*(C-y)+y;M=I+Math.cos(L)*B;N=J+Math.sin(L)*B;F=z.x(M,N);G=z.y(M,N);return[F,G]},render:function(x,n){var q=this,s=q.attr,r=s.dataX,w=r.length,t=q.surfaceMatrix,u={},v,o,p,i;n.beginPath();for(v=0;v<w;v++){i=q.getDataPointXY(v);o=i[0];p=i[1];if(v===0){n.moveTo(o,p)}n.lineTo(o,p);u.translationX=t.x(o,p);u.translationY=t.y(o,p);q.putMarker("markers",u,v,true)}n.closePath();n.fillStroke(s)}},0,0,0,0,["sprite.radar"],0,[Ext.chart.series.sprite,"Radar"],0));(Ext.cmd.derive("Ext.chart.series.Radar",Ext.chart.series.Polar,{type:"radar",seriesType:"radar",themeColorCount:function(){return 1},isStoreDependantColorCount:false,themeMarkerCount:function(){return 1},updateAngularAxis:function(b){b.processData(this)},updateRadialAxis:function(b){b.processData(this)},coordinateX:function(){return this.coordinate("X",0,2)},coordinateY:function(){return this.coordinate("Y",1,2)},updateCenter:function(b){this.setStyle({translationX:b[0]+this.getOffsetX(),translationY:b[1]+this.getOffsetY()});this.doUpdateStyles()},updateRadius:function(b){this.setStyle({endRho:b});this.doUpdateStyles()},updateRotation:function(b){this.setStyle({rotationRads:b});this.doUpdateStyles()},updateTotalAngle:function(b){this.processData()},getItemForPoint:function(u,v){var w=this,s=w.sprites&&w.sprites[0],y=s.attr,x=y.dataX,D=x.length,t=w.getStore(),z=w.getMarker(),C,q,i,A,r,B;if(w.getHidden()){return null}if(s&&z){B=s.getMarker("markers");for(A=0;A<D;A++){r=B.getBBoxFor(A);C=(r.width+r.height)*0.25;i=s.getDataPointXY(A);if(Math.abs(i[0]-u)<C&&Math.abs(i[1]-v)<C){q={series:w,sprite:s,index:A,category:"markers",record:t.getData().items[A],field:w.getYField()};return q}}}return Ext.chart.series.Polar.prototype.getItemForPoint.apply(this,arguments)},getDefaultSpriteConfig:function(){var d=Ext.chart.series.Polar.prototype.getDefaultSpriteConfig.call(this),c={customDurations:{translationX:0,translationY:0,rotationRads:0,dataMinX:0,dataMaxX:0}};if(d.fx){Ext.apply(d.fx,c)}else{d.fx=c}return d},getSprites:function(){var i=this,j=i.getChart(),h=i.getAnimation()||j&&j.getAnimation(),f=i.sprites[0],g;if(!j){return[]}if(!f){f=i.createSprite()}if(h){g=f.getMarker("markers");if(g){g.getTemplate().setAnimation(h)}f.setAnimation(h)}return i.sprites},provideLegendInfo:function(g){var e=this,f=e.getSubStyleWithTheme(),h=f.fillStyle;if(Ext.isArray(h)){h=h[0]}g.push({name:e.getTitle()||e.getYField()||e.getId(),mark:(Ext.isObject(h)?h.stops&&h.stops[0].color:h)||f.strokeStyle||"black",disabled:e.getHidden(),series:e.getId(),index:0})}},0,0,0,0,["series.radar"],0,[Ext.chart.series,"Radar"],0));(Ext.cmd.derive("Ext.ux.ajax.Simlet",Ext.Base,function(){var i=/([^?#]*)(#.*)?$/,g=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,f=/^[+-]?\d+$/,j=/^[+-]?\d+\.\d+$/;function h(a){var b;if(Ext.isDefined(a)){a=decodeURIComponent(a);if(f.test(a)){a=parseInt(a,10)}else{if(j.test(a)){a=parseFloat(a)}else{if(!!(b=g.test(a))){a=new Date(Date.UTC(+b[1],+b[2]-1,+b[3],+b[4],+b[5],+b[6]))}}}}return a}return{isSimlet:true,responseProps:["responseText","responseXML","status","statusText"],status:200,statusText:"OK",constructor:function(a){Ext.apply(this,a)},doGet:function(c){var a=this,b={};Ext.Array.forEach(a.responseProps,function(d){if(d in a){b[d]=a[d]}});return b},doPost:function(c){var a=this,b={};Ext.Array.forEach(a.responseProps,function(d){if(d in a){b[d]=a[d]}});return b},doRedirect:function(a){return false},doDelete:function(d){var b=this,a=d.xhr,c=a.options.records;b.removeFromData(d,c)},exec:function(b){var c=this,e={},a="do"+Ext.String.capitalize(b.method.toLowerCase()),d=c[a];if(d){e=d.call(c,c.getCtx(b.method,b.url,b))}else{e={status:405,statusText:"Method Not Allowed"}}return e},getCtx:function(a,c,b){return{method:a,params:this.parseQueryString(c),url:c,xhr:b}},openRequest:function(a,e,m,d){var n=this.getCtx(a,e),b=this.doRedirect(n),c;if(m.action==="destroy"){a="delete"}if(b){c=b}else{c=new Ext.ux.ajax.SimXhr({mgr:this.manager,simlet:this,options:m});c.open(a,e,d)}return c},parseQueryString:function(c){var r=i.exec(c),d={},a,b,e,s;if(r&&r[1]){var m,n=r[1].split("&");for(e=0,s=n.length;e<s;++e){if((m=n[e].split("="))[0]){a=decodeURIComponent(m.shift());b=h((m.length>1)?m.join("="):m[0]);if(!(a in d)){d[a]=b}else{if(Ext.isArray(d[a])){d[a].push(b)}else{d[a]=[d[a],b]}}}}}return d},redirect:function(a,c,b){switch(arguments.length){case 2:if(typeof c=="string"){break}b=c;case 1:c=a;a="GET";break}if(b){c=Ext.urlAppend(c,Ext.Object.toQueryString(b))}return this.manager.openRequest(a,c)},removeFromData:function(l,e){var b=this,a=b.getData(l),c=(l.xhr.options.proxy&&l.xhr.options.proxy.getModel())||{},d=c.idProperty||"id";Ext.each(e,function(o){var p=o.get(d);for(var k=a.length;k-->0;){if(a[k][d]===p){b.deleteRecord(k);break}}})}}}(),1,0,0,0,["simlet.basic"],0,[Ext.ux.ajax,"Simlet"],0));(Ext.cmd.derive("Ext.ux.ajax.DataSimlet",Ext.ux.ajax.Simlet,function(){function c(a,b){var h=a.direction,g=(h&&h.toUpperCase()==="DESC")?-1:1;return function(m,l){var n=m[a.property],e=l[a.property],f=(n<e)?-1:((e<n)?1:0);if(f||!b){return f*g}return b(m,l)}}function d(h,b){for(var a=b,g=h&&h.length;g;){a=c(h[--g],a)}return a}return{buildNodes:function(n,a){var b=this,q={data:[]},i=n.length,o,m,p,r;b.nodes[a]=q;for(m=0;m<i;++m){q.data.push(p=n[m]);r=p.text||p.title;p.id=a?a+"/"+r:r;o=p.children;if(!(p.leaf=!o)){delete p.children;b.buildNodes(o,p.id)}}},deleteRecord:function(a){if(this.data&&typeof this.data!=="function"){Ext.Array.removeAt(this.data,a)}},fixTree:function(i,j){var a=this,b=i.params.node,h;if(!(h=a.nodes)){a.nodes=h={};a.buildNodes(j,"")}b=h[b];if(b){if(a.node){a.node.sortedData=a.sortedData;a.node.currentOrder=a.currentOrder}a.node=b;a.data=b.data;a.sortedData=b.sortedData;a.currentOrder=b.currentOrder}else{a.data=null}},getData:function(b){var n=this,q=b.params,r=(q.filter||"")+(q.group||"")+"-"+(q.sort||"")+"-"+(q.dir||""),a=n.tree,t,p,o,m;if(a){n.fixTree(b,a)}p=n.data;if(typeof p==="function"){t=true;p=p.call(this,b)}if(!p||r==="--"){return p||[]}if(!t&&r==n.currentOrder){return n.sortedData}b.filterSpec=q.filter&&Ext.decode(q.filter);b.groupSpec=q.group&&Ext.decode(q.group);o=q.sort;if(q.dir){o=[{direction:q.dir,property:o}]}else{o=Ext.decode(q.sort)}if(b.filterSpec){var s=new Ext.util.FilterCollection();s.add(this.processFilters(b.filterSpec));p=Ext.Array.filter(p,s.getFilterFn())}m=d((b.sortSpec=o));if(b.groupSpec){m=d([b.groupSpec],m)}p=Ext.isArray(p)?p.slice(0):p;if(m){Ext.Array.sort(p,m)}n.sortedData=p;n.currentOrder=r;return p},processFilters:Ext.identityFn,getPage:function(k,b){var j=b,i=b.length,a=k.params.start||0,l=k.params.limit?Math.min(i,a+k.params.limit):i;if(a||l<i){j=j.slice(a,l)}return j},getGroupSummary:function(b,a,f){return a[0]},getSummary:function(a,r,q){var o=this,v=a.groupSpec.property,n,s={},p=[],u,t;Ext.each(q,function(e){u=e[v];s[u]=true});function b(){if(n){p.push(o.getGroupSummary(v,n,a));n=null}}Ext.each(r,function(e){u=e[v];if(t!==u){b();t=u}if(!s[u]){return !p.length}if(n){n.push(e)}else{n=[e]}return true});b();return p}}}(),0,0,0,0,0,0,[Ext.ux.ajax,"DataSimlet"],0));(Ext.cmd.derive("Ext.ux.ajax.JsonSimlet",Ext.ux.ajax.DataSimlet,{doGet:function(p){var m=this,k=m.getData(p),l=m.getPage(p,k),j=p.xhr.options.proxy&&p.xhr.options.proxy.getReader(),i=j&&j.getRootProperty(),n=Ext.ux.ajax.DataSimlet.prototype.doGet.apply(this,arguments),o={};if(i&&Ext.isArray(l)){o[i]=l;o[j.getTotalProperty()]=k.length}else{o=l}if(p.groupSpec){o.summaryData=m.getSummary(p,k,l)}n.responseText=Ext.encode(o);return n},doPost:function(b){return this.doGet(b)}},0,0,0,0,["simlet.json"],0,[Ext.ux.ajax,"JsonSimlet"],0));(Ext.cmd.derive("Ext.ux.ajax.SimXhr",Ext.Base,{readyState:0,mgr:null,simlet:null,constructor:function(d){var c=this;Ext.apply(c,d);c.requestHeaders={}},abort:function(){var b=this;if(b.timer){clearTimeout(b.timer);b.timer=null}b.aborted=true},getAllResponseHeaders:function(){var b=[];if(Ext.isObject(this.responseHeaders)){Ext.Object.each(this.responseHeaders,function(a,d){b.push(a+": "+d)})}return b.join("\r\n")},getResponseHeader:function(c){var d=this.responseHeaders;return(d&&d[c])||null},open:function(i,l,k,h,g){var j=this;j.method=i;j.url=l;j.async=k!==false;j.user=h;j.password=g;j.setReadyState(1)},overrideMimeType:function(b){this.mimeType=b},schedule:function(){var c=this,d=c.mgr.delay;if(d){c.timer=setTimeout(function(){c.onTick()},d)}else{c.onTick()}},send:function(d){var c=this;c.body=d;if(c.async){c.schedule()}else{c.onComplete()}},setReadyState:function(c){var d=this;if(d.readyState!=c){d.readyState=c;d.onreadystatechange()}},setRequestHeader:function(c,d){this.requestHeaders[c]=d},onreadystatechange:Ext.emptyFn,onComplete:function(){var me=this,callback;me.readyState=4;Ext.apply(me,me.simlet.exec(me));callback=me.jsonpCallback;if(callback){var text=callback+"("+me.responseText+")";eval(text)}},onTick:function(){var b=this;b.timer=null;b.onComplete();b.onreadystatechange&&b.onreadystatechange()}},1,0,0,0,0,0,[Ext.ux.ajax,"SimXhr"],0));(Ext.cmd.derive("Ext.ux.ajax.SimManager",Ext.Base,{singleton:true,defaultType:"basic",delay:150,ready:false,constructor:function(){this.simlets=[]},getSimlet:function(r){var l=this,n=r.indexOf("?"),q=l.simlets,m=q.length,p,i,k,o;if(n<0){n=r.indexOf("#")}if(n>0){r=r.substring(0,n)}for(p=0;p<m;++p){i=q[p];k=i.url;if(k instanceof RegExp){o=k.test(r)}else{o=k===r}if(o){return i}}return l.defaultSimlet},getXhr:function(h,f,g,j){var i=this.getSimlet(f);if(i){return i.openRequest(h,f,g,j)}return null},init:function(d){var c=this;Ext.apply(c,d);if(!c.ready){c.ready=true;if(!("defaultSimlet" in c)){c.defaultSimlet=new Ext.ux.ajax.Simlet({status:404,statusText:"Not Found"})}c._openRequest=Ext.data.Connection.prototype.openRequest;Ext.data.request.Ajax.override({openRequest:function(g,h,b){var a=!g.nosim&&c.getXhr(h.method,h.url,g,b);if(!a){a=this.callParent(arguments)}return a}});if(Ext.data.JsonP){Ext.data.JsonP.self.override({createScript:function(b,a,h){var j=Ext.urlAppend(b,Ext.Object.toQueryString(a)),i=!h.nosim&&c.getXhr("GET",j,h,true);if(!i){i=this.callParent(arguments)}return i},loadScript:function(a){var b=a.script;if(b.simlet){b.jsonpCallback=a.params[a.callbackKey];b.send(null);a.script=document.createElement("script")}else{this.callParent(arguments)}}})}}return c},openRequest:function(g,f,h){var e={method:g,url:f};return this._openRequest.call(Ext.data.Connection.prototype,{},e,h)},register:function(f){var d=this;d.init();function e(b){var a=b;if(!a.isSimlet){a=Ext.create("simlet."+(a.type||a.stype||d.defaultType),b)}d.simlets.push(a);a.manager=d}if(Ext.isArray(f)){Ext.each(f,e)}else{if(f.isSimlet||f.url){e(f)}else{Ext.Object.each(f,function(b,a){a.url=b;e(a)})}}return d}},1,0,0,0,0,0,[Ext.ux.ajax,"SimManager"],0));(Ext.cmd.derive("Ext.ux.layout.ResponsiveColumn",Ext.layout.container.Auto,{states:{small:1000,large:0},_responsiveCls:"x-responsivecolumn",initLayout:function(){this.innerCtCls+=" "+this._responsiveCls;Ext.layout.container.Auto.prototype.initLayout.call(this)},beginLayout:function(q){var l=this,m=Ext.Element.getViewportWidth(),k=l.states,n=Infinity,s=l.innerCt,r=l._currentState,t,o,p;for(t in k){o=k[t]||Infinity;if(m<=o&&o<=n){n=o;p=t}}if(p!==r){s.replaceCls(r,p,l._responsiveCls);l._currentState=p}Ext.layout.container.Auto.prototype.beginLayout.apply(this,arguments)},onAdd:function(d){Ext.layout.container.Auto.prototype.onAdd.call(this,d);var c=d.responsiveCls;if(c){d.addCls(c)}}},0,0,0,0,["layout.responsivecolumn"],0,[Ext.ux.layout,"ResponsiveColumn"],function(b){if(Ext.isIE8){b.override({responsiveSizePolicy:{readsWidth:0,readsHeight:0,setsWidth:1,setsHeight:0},setsItemSize:true,calculateItems:function(y,B){var i=this,x=y.targetContext,q=y.childItems,s=q.length,w=B.gotWidth,A=B.width,u,a,v,z,t,r;if(w===false){x.domBlock(i,"width");return false}if(!w){return true}for(v=0;v<s;++v){z=q[v];r=parseInt(z.el.getStyle("background-position-x"),10);t=parseInt(z.el.getStyle("background-position-y"),10);z.setWidth((r/100*(A-t))-t)}y.setContentWidth(A+y.paddingContext.getPaddingInfo().width);return true},getItemSizePolicy:function(){return this.responsiveSizePolicy}})}}));(Ext.cmd.derive("Admin.data.Simulated",Ext.Base,{onClassExtended:function(g,i){var j=i.$className.toLowerCase().replace(/\./g,"/").replace(/^admin\/data/,"~api"),h={type:"json",data:i.data},f={};f[j]=h;Ext.ux.ajax.SimManager.register(f)}},0,0,0,0,0,0,[Admin.data,"Simulated"],function(){Ext.ux.ajax.SimManager.init({defaultSimlet:null})}));(Ext.cmd.derive("Admin.data.Pie",Admin.data.Simulated,{data:[{xvalue:"Drama",yvalue:10},{xvalue:"Fantasy",yvalue:10},{xvalue:"Action",yvalue:12}]},0,0,0,0,0,0,[Admin.data,"Pie"],0));(Ext.cmd.derive("Admin.data.Radial",Admin.data.Simulated,{data:[{xvalue:"A",yvalue:417},{xvalue:"B",yvalue:676},{xvalue:"C",yvalue:606},{xvalue:"D",yvalue:124},{xvalue:"E",yvalue:473},{xvalue:"F",yvalue:108},{xvalue:"G",yvalue:847},{xvalue:"H",yvalue:947},{xvalue:"I",yvalue:694},{xvalue:"J",yvalue:603}]},0,0,0,0,0,0,[Admin.data,"Radial"],0));(Ext.cmd.derive("Admin.data.Subscriptions",Admin.data.Simulated,{data:[{id:1,name:"Steve Horton",subscription:"Enterprise"},{id:2,name:"Scott Calabrese",subscription:"Trial"},{id:3,name:"Taresa Doe",subscription:"Premium"},{id:4,name:"Lucy Doe",subscription:"Trial"},{id:5,name:"Charles Boyle",subscription:"Enterprise"},{id:6,name:"Charles Doe",subscription:"Enterprise"}]},0,0,0,0,0,0,[Admin.data,"Subscriptions"],0));(Ext.cmd.derive("Admin.data.UserSharedItems",Admin.data.Simulated,{data:[{_id:306,parent_id:306,name:"Homer Jackson",source:"id",date:"8/16/2009",isActive:"aut",time:"5:02 PM",content:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{_id:750,parent_id:331,name:"Dora Bailey",source:"et",date:"7/16/2007",isActive:"cum",time:"6:95 PM",content:"It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like)."},{_id:948,parent_id:898,name:"Mae Edwards",source:"et",date:"7/24/2003",isActive:"et",time:"9:46 PM",content:"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of de Finibus Bonorum et Malorum (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, Lorem ipsum dolor sit amet.., comes from a line in section 1.10.32."},{_id:162,parent_id:525,name:"Allen Morris",source:"nobis",date:"6/16/2008",isActive:"ut",time:"4:57 PM",content:"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc."},{_id:252,parent_id:252,name:"Ben Wright",source:"quod",date:"9/24/2003",isActive:"culpa",time:"2:03 PM",content:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{_id:840,parent_id:840,name:"Jim Sanchez",source:"cumque",date:"8/17/2007",isActive:"laborum",time:"1:42 PM",content:"There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. It uses a dictionary of over 200 Latin words, combined with a handful of model sentence structures, to generate Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from repetition, injected humour, or non-characteristic words etc."}]},0,0,0,0,0,0,[Admin.data,"UserSharedItems"],0));(Ext.cmd.derive("Admin.data.UserTimeline",Admin.data.Simulated,{data:[{_id:642,name:"Marion Williams",content:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",date:"2015/08/23 20:45:00",userId:6,notificationType:"image_sharing"},{_id:351,name:"Nora Watson",content:"Lorem ipsum dolor sit amet. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",date:"2015/08/23 19:15:00",userId:7,notificationType:"job_meeting"},{_id:553,name:"Ray Williams",content:"laborum",date:"2015/08/23 18:10:00",userId:8,notificationType:"comment_reply"},{_id:232,name:"Marion Brooks",content:"It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",date:"2015/08/23 16:00:00",userId:9,notificationType:"new_follower"},{_id:775,name:"Nettie Stewart",content:"Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",date:"2015/08/22 18:40:00",userId:12,notificationType:"comment"},{_id:247,name:"Beatrice Carter",content:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containin.",date:"2015/08/22 13:30:00",userId:14,notificationType:"like"}]},0,0,0,0,0,0,[Admin.data,"UserTimeline"],0));(Ext.cmd.derive("Admin.data.dashboard.Counce",Admin.data.Simulated,{data:[{xvalue:0,y1value:15,y2value:15},{xvalue:5,y1value:20,y2value:20},{xvalue:10,y1value:15,y2value:15},{xvalue:15,y1value:16,y2value:16},{xvalue:20,y1value:14,y2value:14},{xvalue:25,y1value:18,y2value:18},{xvalue:30,y1value:10,y2value:10}]},0,0,0,0,0,0,[Admin.data.dashboard,"Counce"],0));(Ext.cmd.derive("Admin.data.dashboard.Full",Admin.data.Simulated,{data:[{xvalue:250,y1value:94,y2value:40},{xvalue:500,y1value:78,y2value:46},{xvalue:750,y1value:60,y2value:53},{xvalue:1250,y1value:51,y2value:48},{xvalue:1500,y1value:60,y2value:36},{xvalue:1750,y1value:68,y2value:26},{xvalue:2250,y1value:59,y2value:37},{xvalue:2500,y1value:40,y2value:58},{xvalue:2750,y1value:24,y2value:78},{xvalue:3250,y1value:36,y2value:85},{xvalue:3500,y1value:65,y2value:70},{xvalue:3750,y1value:94,y2value:55},{xvalue:4250,y1value:103,y2value:61},{xvalue:4500,y1value:83,y2value:82},{xvalue:4750,y1value:61,y2value:102},{xvalue:5250,y1value:55,y2value:95},{xvalue:5500,y1value:70,y2value:67},{xvalue:5750,y1value:84,y2value:39},{xvalue:6250,y1value:78,y2value:31},{xvalue:6500,y1value:58,y2value:49},{xvalue:6750,y1value:38,y2value:69},{xvalue:7250,y1value:41,y2value:74},{xvalue:7500,y1value:65,y2value:60},{xvalue:7750,y1value:89,y2value:46}]},0,0,0,0,0,0,[Admin.data.dashboard,"Full"],0));(Ext.cmd.derive("Admin.data.dashboard.Movies",Admin.data.Simulated,{data:[{xvalue:"Foo",yvalue:943},{xvalue:"Bar",yvalue:622},{xvalue:"Baz",yvalue:1044}]},0,0,0,0,0,0,[Admin.data.dashboard,"Movies"],0));(Ext.cmd.derive("Admin.data.dashboard.Tasks",Admin.data.Simulated,{data:[{id:1,task:"Upgrade to SSD harddisks",done:true},{id:2,task:"Pay server invoice",done:true},{id:3,task:"Upgrade to SSD harddisks",done:false},{id:4,task:"Pay server invoice",done:false},{id:5,task:"Upgrade to SSD harddisks",done:false}]},0,0,0,0,0,0,[Admin.data.dashboard,"Tasks"],0));(Ext.cmd.derive("Admin.data.dashboard.Visitor",Admin.data.Simulated,{data:[{xvalue:0,y1value:10,y2value:10},{xvalue:5,y1value:15,y2value:15},{xvalue:10,y1value:20,y2value:20},{xvalue:15,y1value:15,y2value:15},{xvalue:20,y1value:20,y2value:20},{xvalue:25,y1value:15,y2value:15},{xvalue:30,y1value:20,y2value:20}]},0,0,0,0,0,0,[Admin.data.dashboard,"Visitor"],0));(Ext.cmd.derive("Admin.data.email.Friends",Admin.data.Simulated,{data:[{id:0,online:true,name:"Torres Tran"},{id:1,online:false,name:"Oneill Franklin"},{id:2,online:false,name:"Branch Allison"},{id:3,online:true,name:"Hines Moon"},{id:4,online:true,name:"Molina Wilkerson"},{id:5,online:true,name:"Suzette Powell"}]},0,0,0,0,0,0,[Admin.data.email,"Friends"],0));(Ext.cmd.derive("Admin.data.email.Inbox",Admin.data.Simulated,{data:[{id:0,read:false,user_id:4,title:"Cillum ad ad ut velit.",contents:"Cupidatat ex sit excepteur deserunt et qui nisi voluptate minim dolor id laborum dolor culpa. Eiusmod excepteur consequat aliquip irure magna. Occaecat duis officia Lorem ut exercitation irure laboris pariatur esse consectetur. Nulla consequat magna id et est excepteur mollit cillum cupidatat tempor ea laboris ut. Fugiat ea et occaecat laboris consequat dolor cupidatat velit Lorem minim. Deserunt fugiat reprehenderit qui proident sunt.\r\n",from:"Estela Gibbs",received_on:"Thu Sep 25 2014 09:57:57 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img1.jpg","img2.jpg"]},{id:1,read:true,user_id:7,title:"Consequat officia dolor sit labore aliquip elit enim sunt id magna.",contents:"Quis mollit pariatur consectetur deserunt minim aliqua excepteur incididunt excepteur. Laboris dolor deserunt incididunt et elit incididunt occaecat ullamco sunt. Ad excepteur amet tempor amet voluptate reprehenderit et in.\r\n",from:"Constance Flores",received_on:"Sat Aug 16 2014 17:41:31 GMT+0000 (UTC)",favorite:true,has_attachments:false},{id:2,read:true,user_id:1,title:"Occaecat quis laborum qui cupidatat culpa ullamco fugiat incididunt.",contents:"Pariatur occaecat non eiusmod mollit. Id mollit dolore do mollit culpa deserunt Lorem occaecat consequat dolor do irure anim. Anim tempor ut non id dolor do est aliquip officia aliqua nulla sint elit occaecat. Eu laborum veniam aute magna velit consequat exercitation incididunt amet ut velit. In duis aliqua dolor culpa sit eu nostrud ex laboris aute laborum. Adipisicing magna in laborum enim ut qui ut nulla tempor sint magna cupidatat sint est.\r\n",from:"Tammi Merrill",received_on:"Mon Oct 20 2014 21:06:29 GMT+0000 (UTC)",favorite:false,has_attachments:false},{id:3,read:false,user_id:8,title:"Dolor exercitation ea labore ipsum deserunt eu deserunt pariatur labore occaecat nisi exercitation.",contents:"Exercitation id laborum ullamco do et. Id mollit anim labore ea cupidatat esse excepteur cillum labore dolor amet adipisicing sint. Qui fugiat dolor incididunt velit ipsum exercitation minim do ad adipisicing quis ut eu. Voluptate dolore officia irure est.\r\n",from:"Hannah Robertson",received_on:"Fri Feb 14 2014 16:00:34 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img1.jpg","img2.jpg","img4.jpg"]},{id:4,read:false,user_id:4,title:"Adipisicing occaecat ut magna minim dolor sint aute ipsum sit enim excepteur excepteur ea nostrud.",contents:"Eiusmod duis irure nostrud elit esse nostrud. In sit elit labore velit velit occaecat ad ea sit. Esse nulla proident nulla non adipisicing sit nisi pariatur.\r\n",from:"Rhea Clemons",received_on:"Tue Nov 25 2014 18:35:05 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img1.jpg","img2.jpg"]},{id:5,read:false,user_id:9,title:"Esse consectetur exercitation officia eiusmod sint ex nisi.",contents:"Veniam et magna aute ea quis deserunt ad fugiat. Duis adipisicing ad dolor proident laboris ut irure do aute. Elit do anim in excepteur. Amet non dolore sit culpa culpa. Ea esse laboris occaecat consectetur non ut ex mollit ullamco cupidatat ex Lorem labore id. Ea voluptate eiusmod sit cupidatat et minim id nisi Lorem ut duis.\r\n",from:"Petty Caldwell",received_on:"Sat Oct 18 2014 17:09:49 GMT+0000 (UTC)",favorite:true,has_attachments:false},{id:6,read:true,user_id:3,title:"Officia Lorem ullamco id deserunt dolor magna nostrud.",contents:"Lorem ut nisi pariatur sunt sunt eiusmod. Voluptate est deserunt magna laborum eiusmod adipisicing consequat ad ullamco incididunt irure quis cupidatat velit. Voluptate adipisicing officia enim proident Lorem proident Lorem duis. Consequat elit enim nostrud Lorem proident. Exercitation velit incididunt consequat nisi nisi ullamco consequat. Quis non sint laboris irure fugiat culpa ipsum. Veniam aliqua cillum occaecat in aliqua labore id magna labore sit est est.\r\n",from:"Daniel Lawrence",received_on:"Fri Sep 12 2014 03:17:35 GMT+0000 (UTC)",favorite:false,has_attachments:true,attachments:["img3.jpg","img1.jpg"]},{id:7,read:false,user_id:5,title:"Pariatur ea culpa ut veniam aliqua ea occaecat.",contents:"Aute exercitation nisi adipisicing adipisicing dolor aliqua velit amet. Labore minim commodo ex fugiat nulla excepteur aliquip pariatur magna id anim. Commodo irure eiusmod ex quis. Irure anim velit culpa irure culpa deserunt nostrud enim nostrud deserunt.\r\n",from:"Newman Atkins",received_on:"Thu May 15 2014 23:01:39 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img3.jpg","img2.jpg"]},{id:8,read:true,user_id:19,title:"Officia nostrud ipsum enim fugiat laborum ut ullamco non laborum sint sunt.",contents:"In excepteur ex ad non esse minim commodo laborum. Veniam nisi amet ea esse magna sint labore deserunt duis ut cillum cupidatat ad ex. Nulla ut est cillum in. Commodo voluptate et Lorem eu exercitation. Esse dolore laborum ipsum duis veniam proident occaecat commodo culpa magna. Consectetur ea voluptate sint do incididunt non sunt officia velit.\r\n",from:"Marcella Wade",received_on:"Tue Feb 11 2014 04:24:27 GMT+0000 (UTC)",favorite:true,has_attachments:false},{id:9,read:false,user_id:20,title:"Exercitation cupidatat elit ut sunt.",contents:"Lorem dolor sunt fugiat tempor labore. Id veniam laborum veniam cillum consequat velit in elit consectetur. Do sunt tempor incididunt commodo qui nulla. Incididunt duis consectetur aliquip deserunt cillum. Proident occaecat fugiat deserunt minim ipsum commodo excepteur laboris irure excepteur tempor Lorem ex. Mollit anim mollit et do tempor voluptate duis magna deserunt ullamco incididunt. Minim aute ipsum commodo sit culpa voluptate adipisicing pariatur.\r\n",from:"Jessica Warren",received_on:"Wed Jan 14 2015 09:03:51 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img3.jpg","img2.jpg","img1.jpg"]},{id:10,read:true,user_id:18,title:"Eiusmod voluptate dolor ex excepteur esse cillum aliquip mollit.",contents:"Occaecat aliqua dolore ipsum voluptate tempor nisi veniam ad ex consequat est cillum adipisicing esse. Mollit excepteur ex officia dolor. Est officia reprehenderit do labore mollit eiusmod esse aliquip laborum cillum quis.\r\n",from:"Nanette Gutierrez",received_on:"Thu Jan 01 2015 01:29:22 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img4.jpg","img1.jpg"]},{id:11,read:false,user_id:17,title:"Et amet dolore veniam ullamco minim excepteur duis fugiat.",contents:"Nulla et commodo et tempor irure nulla elit officia. In aliqua aute veniam ex. Qui eu ut amet do voluptate fugiat exercitation adipisicing est incididunt adipisicing. Ipsum deserunt voluptate cupidatat velit occaecat laboris ut et Lorem velit deserunt ut ut occaecat.\r\n",from:"Adam Gullner",received_on:"Fri May 02 2014 07:49:56 GMT+0000 (UTC)",favorite:false,has_attachments:false},{id:12,read:true,user_id:16,title:"Incididunt in nulla dolor commodo aliqua pariatur amet sit Lorem.",contents:"Officia eiusmod exercitation excepteur magna eiusmod do occaecat Lorem duis proident. Culpa Lorem est culpa ad elit sit commodo aute. Exercitation ea aute proident reprehenderit dolore. Laboris nisi reprehenderit minim dolore et sunt cillum amet consectetur amet eiusmod.\r\n",from:"Chakra Gibson",received_on:"Sun Nov 09 2014 20:00:57 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img2.jpg","img4.jpg"]},{id:13,read:false,user_id:15,title:"Ad amet aute officia non culpa ullamco non pariatur sit excepteur consequat nulla minim tempor.",contents:"Consectetur labore nulla est do qui qui ad incididunt labore tempor enim proident consectetur. Est elit officia ex elit veniam excepteur mollit mollit nisi qui labore commodo reprehenderit. Nisi ipsum voluptate eiusmod sint aute ad proident anim duis ut non adipisicing anim. Nulla mollit aliqua occaecat minim proident adipisicing esse est irure.\r\n",from:"Jonathan Soul",received_on:"Sun Apr 13 2014 18:40:44 GMT+0000 (UTC)",favorite:false,has_attachments:true,attachments:["img1.jpg","img2.jpg","img3.jpg","img4.jpg"]},{id:14,read:false,user_id:6,title:"Occaecat fugiat officia anim aute do laboris amet velit.",contents:"Aute in pariatur veniam ad anim dolore quis deserunt voluptate pariatur do ut nisi. Elit duis est enim labore fugiat laborum quis culpa elit qui reprehenderit. Minim exercitation ullamco sunt aute id. Fugiat nisi in duis officia minim pariatur eu excepteur dolore ullamco. Aliqua Lorem sunt sunt mollit aliquip ut.\r\n",from:"Shawn Leon",received_on:"Thu Feb 20 2014 02:04:24 GMT+0000 (UTC)",favorite:false,has_attachments:false},{id:15,read:true,user_id:2,title:"Occaecat minim in minim do et fugiat ipsum magna deserunt.",contents:"Laboris esse aliqua adipisicing qui proident pariatur enim aute sunt labore. Esse labore adipisicing eu enim sunt ea ea. Cillum deserunt amet sit irure tempor qui ipsum aliqua ad ipsum et mollit sunt dolore. Magna ipsum ex mollit sit. Dolore Lorem proident pariatur incididunt dolor deserunt incididunt velit.\r\n",from:"Goff Smith",received_on:"Fri Jun 27 2014 11:14:54 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img2.jpg"]},{id:16,read:false,user_id:10,title:"Eu non pariatur tempor ad ipsum.",contents:"Fugiat sit culpa do eu irure reprehenderit quis nulla ut eiusmod officia esse est. Nisi exercitation adipisicing laborum non anim. Dolor adipisicing ex cillum laborum ullamco enim exercitation eiusmod Lorem duis aliqua. Culpa minim excepteur culpa irure officia duis ullamco enim amet qui do anim cillum commodo.\r\n",from:"Mcgowan Berg",received_on:"Thu Feb 27 2014 19:30:42 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img1.jpg"]},{id:17,read:true,user_id:11,title:"Et culpa mollit aute proident elit.",contents:"Ut proident labore ipsum tempor fugiat reprehenderit nostrud quis fugiat Lorem ullamco. Cupidatat eu aliqua eu proident cillum nisi qui do tempor esse aliqua reprehenderit cupidatat velit. Officia officia commodo fugiat sit ipsum id aliqua magna cillum cupidatat est. Enim minim Lorem adipisicing et nulla incididunt nisi consequat aute nostrud. Pariatur laborum adipisicing excepteur exercitation. Adipisicing nisi ut laborum consectetur veniam magna. Amet aute officia exercitation sunt consequat dolor.\r\n",from:"Luz Mccullough",received_on:"Sun Feb 08 2015 05:40:31 GMT+0000 (UTC)",favorite:false,has_attachments:false},{id:18,read:true,user_id:12,title:"Sunt labore qui velit nulla officia laboris do.",contents:"Amet dolor adipisicing sint eiusmod culpa cillum velit nisi anim excepteur duis Lorem amet aute. Incididunt est esse ipsum aute mollit nulla nisi sint aliquip nulla tempor Lorem. Commodo pariatur magna sint sint.\r\n",from:"Hebert Nielsen",received_on:"Fri Jul 18 2014 05:56:32 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img3.jpg","img2.jpg"]},{id:19,read:false,user_id:14,title:"Sit laboris dolore esse excepteur dolore labore ea quis cupidatat amet elit cillum tempor et.",contents:"Proident eiusmod culpa ad cillum enim aute in adipisicing aliquip officia id. Ad reprehenderit dolor sit est. Quis irure velit velit id nisi eu incididunt quis laboris. Exercitation ea dolore minim id. Quis eu pariatur proident veniam. Eiusmod amet cillum ullamco ad adipisicing dolore est laboris quis adipisicing sunt reprehenderit.\r\n",from:"Francisca Clayton",received_on:"Fri Jan 09 2015 11:47:46 GMT+0000 (UTC)",favorite:true,has_attachments:true,attachments:["img4.jpg","img2.jpg"]}]},0,0,0,0,0,0,[Admin.data.email,"Inbox"],0));(Ext.cmd.derive("Admin.data.faq.FAQ",Admin.data.Simulated,{data:[{name:"General",questions:[{question:"How can I access high resolution images?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{question:"Can I download the application on my PC?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{question:"How often does the database get updated?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{question:"Can I use the downloaded images on a commercial website?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."}]},{name:"Account",questions:[{question:"What are the different membership plans?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{question:"Can I change my plan in between?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{question:"How can I deactivate my account?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."}]},{name:"Payment",questions:[{question:"What are the payment methods you accept?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{question:"What is the refund policy?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},{question:"How long does it take to process my payment?",answer:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."}]}]},0,0,0,0,0,0,[Admin.data.faq,"FAQ"],0));(Ext.cmd.derive("Admin.data.marketshare.MultiYear",Admin.data.Simulated,{data:[{xvalue:1997,y1value:281,y2value:72,y3value:269,y4value:762},{xvalue:1981,y1value:518,y2value:999,y3value:43,y4value:310},{xvalue:1985,y1value:38,y2value:311,y3value:942,y4value:77},{xvalue:1984,y1value:936,y2value:415,y3value:562,y4value:412},{xvalue:1979,y1value:978,y2value:331,y3value:927,y4value:114},{xvalue:1982,y1value:196,y2value:240,y3value:72,y4value:888},{xvalue:1992,y1value:481,y2value:375,y3value:139,y4value:762},{xvalue:19895,y1value:623,y2value:999,y3value:260,y4value:310},{xvalue:1988,y1value:328,y2value:451,y3value:542,y4value:77},{xvalue:1980,y1value:456,y2value:615,y3value:342,y4value:412},{xvalue:1990,y1value:788,y2value:531,y3value:489,y4value:114}]},0,0,0,0,0,0,[Admin.data.marketshare,"MultiYear"],0));(Ext.cmd.derive("Admin.data.marketshare.OneEntity",Admin.data.Simulated,{data:[{xvalue:2011,yvalue:0.1,y1value:0.2,y2value:0.3,y3value:0.1,y4value:0,y5value:1},{xvalue:2012,yvalue:0.2,y1value:0.4,y2value:0.2,y3value:0.2,y4value:0,y5value:1},{xvalue:2013,yvalue:0.3,y1value:0.2,y2value:0.4,y3value:0.3,y4value:0,y5value:1},{xvalue:2014,yvalue:0.2,y1value:0.4,y2value:0.1,y3value:0.2,y4value:0,y5value:1},{xvalue:2015,yvalue:0.4,y1value:0.3,y2value:0.4,y3value:0.4,y4value:0,y5value:1}]},0,0,0,0,0,0,[Admin.data.marketshare,"OneEntity"],0));(Ext.cmd.derive("Admin.data.marketshare.OneYear",Admin.data.Simulated,{data:[{xvalue:2004,yvalue:239},{xvalue:2005,yvalue:402},{xvalue:2006,yvalue:706},{xvalue:2007,yvalue:432},{xvalue:2008,yvalue:200},{xvalue:2009,yvalue:763},{xvalue:2010,yvalue:550},{xvalue:2011,yvalue:630},{xvalue:2012,yvalue:278},{xvalue:2013,yvalue:312},{xvalue:2014,yvalue:600},{xvalue:2015,yvalue:283}]},0,0,0,0,0,0,[Admin.data.marketshare,"OneYear"],0));(Ext.cmd.derive("Admin.data.marketshare.Yearwise",Admin.data.Simulated,{data:[{xvalue:2011,y1value:517.27,y2value:520.3,y3value:291.41,y4value:420.24},{xvalue:2012,y1value:389.38,y2value:632.31,y3value:882.9,y4value:771.08},{xvalue:2013,y1value:287.24,y2value:440.78,y3value:549.99,y4value:627.71},{xvalue:2014,y1value:505.25,y2value:631.07,y3value:570.43,y4value:583.67}]},0,0,0,0,0,0,[Admin.data.marketshare,"Yearwise"],0));(Ext.cmd.derive("Admin.data.qg.Area",Admin.data.Simulated,{data:[{xvalue:0,yvalue:100},{xvalue:10,yvalue:141},{xvalue:20,yvalue:120},{xvalue:30,yvalue:156},{xvalue:40,yvalue:130},{xvalue:50,yvalue:160},{xvalue:60,yvalue:120},{xvalue:70,yvalue:135}]},0,0,0,0,0,0,[Admin.data.qg,"Area"],0));(Ext.cmd.derive("Admin.data.qg.Bar",Admin.data.Simulated,{data:[{xvalue:0,yvalue:600},{xvalue:10,yvalue:748},{xvalue:20,yvalue:569},{xvalue:30,yvalue:850},{xvalue:40,yvalue:500},{xvalue:50,yvalue:753},{xvalue:60,yvalue:707},{xvalue:70,yvalue:640}]},0,0,0,0,0,0,[Admin.data.qg,"Bar"],0));(Ext.cmd.derive("Admin.data.qg.Line",Admin.data.Simulated,{data:[{xvalue:0,yvalue:250},{xvalue:10,yvalue:300},{xvalue:20,yvalue:270},{xvalue:30,yvalue:370},{xvalue:40,yvalue:400},{xvalue:50,yvalue:350},{xvalue:60,yvalue:410},{xvalue:70,yvalue:450}]},0,0,0,0,0,0,[Admin.data.qg,"Line"],0));(Ext.cmd.derive("Admin.data.qg.Pie",Admin.data.Simulated,{data:[{xvalue:"Research",yvalue:68},{xvalue:"Finance",yvalue:20},{xvalue:"Marketing",yvalue:12}]},0,0,0,0,0,0,[Admin.data.qg,"Pie"],0));(Ext.cmd.derive("Admin.data.search.Results",Admin.data.Simulated,{data:[{id:0,content:"Exercitation sint id consectetur magna anim ut. Id consectetur excepteur aute est fugiat id pariatur incididunt. Sit qui labore minim laboris ullamco. Magna ad ut duis consectetur exercitation veniam laborum consequat. Laboris enim voluptate cupidatat sint quis sit esse id et ut labore mollit.\r\n",title:"1. Ipsum incididunt amet pariatur nostrud anim ullamco id ullamco quis duis id reprehenderit cupidatat.",thumbnail:"resources/images/sample.jpg",url:"www.et.com"},{id:1,content:"Anim qui enim culpa non officia quis. Aliquip culpa consequat aute velit aliqua ex dolor elit laboris. Magna aute ut eiusmod officia sit commodo Lorem consectetur magna deserunt laborum dolor occaecat. Nisi voluptate et nostrud mollit consequat fugiat duis cupidatat esse occaecat ad est. Id mollit Lorem occaecat ea magna qui nisi sint incididunt. Incididunt nisi est nulla sit in ipsum velit duis. Sint enim sunt cillum consectetur voluptate velit cillum ullamco aute consequat tempor nostrud id.\r\n",title:"Enim dolore et excepteur culpa nostrud.",thumbnail:"resources/images/sample.jpg",url:"www.exercitation.com"},{id:2,content:"Exercitation commodo qui minim eu sint laboris ut Lorem Lorem qui qui. Elit dolore ut minim ut esse aute et. Laborum qui minim fugiat ipsum adipisicing fugiat sunt. Fugiat fugiat est officia tempor veniam reprehenderit sunt nostrud dolor culpa adipisicing. Est excepteur et id amet tempor Lorem ut elit tempor adipisicing est elit proident ad.\r\n",title:"Ullamco ea amet Lorem id nostrud eu ea cillum dolor.",thumbnail:"resources/images/sample.jpg",url:"www.sint.com"},{id:3,content:"Sunt elit officia dolor dolore tempor adipisicing dolor. Aliquip non incididunt nisi sunt commodo dolore et aliquip laborum qui nisi fugiat. Tempor sint esse ea officia duis eiusmod et magna non duis non pariatur id aute. Laboris tempor minim eu eiusmod in nisi eiusmod anim adipisicing cillum ex do adipisicing culpa. Nulla adipisicing consequat consectetur cupidatat. Sit velit id aute consequat qui Lorem. Laborum aute nulla consectetur in.\r\n",title:"Proident occaecat irure irure laborum proident laborum aliquip velit enim cupidatat anim.",thumbnail:"resources/images/sample.jpg",url:"www.reprehenderit.com"},{id:4,content:"Ullamco ex excepteur laboris consequat eiusmod ad duis dolor commodo dolore elit ipsum laborum. Laborum ex duis irure qui reprehenderit eiusmod eiusmod. Aliqua anim sint nisi et cupidatat.\r\n",title:"Officia incididunt ea proident consectetur aliquip tempor aliqua.",thumbnail:"resources/images/sample.jpg",url:"www.aliqua.com"},{id:5,content:"In occaecat consequat ullamco magna et duis eiusmod ullamco nostrud deserunt minim sit deserunt. Consequat nisi laboris ut tempor anim culpa tempor Lorem anim. Nisi eu Lorem magna occaecat ut reprehenderit qui dolore id excepteur quis. Qui do excepteur aliqua occaecat occaecat. Minim anim eu duis culpa do nostrud pariatur veniam amet mollit Lorem.\r\n",title:"Culpa cillum eiusmod voluptate commodo incididunt proident officia id duis non.",thumbnail:"resources/images/sample.jpg",url:"www.labore.com"},{id:6,content:"Adipisicing voluptate ex cillum magna qui. Fugiat exercitation fugiat elit est voluptate labore proident sit occaecat ipsum. Elit deserunt ut cupidatat pariatur. Nisi ullamco veniam Lorem nostrud deserunt ipsum qui elit ipsum tempor commodo eiusmod. Tempor voluptate sunt tempor duis. Lorem aute nulla consequat qui ex eiusmod non in nisi. Id amet excepteur enim anim laborum id reprehenderit est.\r\n",title:"Exercitation amet incididunt ipsum duis tempor deserunt deserunt esse Lorem officia anim enim.",thumbnail:"resources/images/sample.jpg",url:"www.proident.com"},{id:7,content:"Lorem tempor consectetur proident elit dolor. Commodo ex culpa nostrud labore occaecat dolor proident consequat eiusmod quis. Consequat do velit sit voluptate. Incididunt dolore aliqua officia minim consequat officia pariatur do reprehenderit consectetur ut ad. Ullamco elit dolor ut velit tempor eu incididunt. Commodo sit duis anim cillum velit magna nostrud. Amet sit aliquip veniam aute ea mollit amet cillum culpa et irure id.\r\n",title:"Irure non dolore aliqua laboris.",thumbnail:"resources/images/sample.jpg",url:"www.consequat.com"},{id:8,content:"Do amet non aute amet. Magna ut dolore nisi nulla voluptate. Exercitation ullamco velit enim elit pariatur quis aliquip duis mollit ullamco cupidatat proident sint sit.\r\n",title:"Sunt irure culpa consequat aute culpa ad culpa fugiat veniam cupidatat.",thumbnail:"resources/images/sample.jpg",url:"www.ea.com"},{id:9,content:"Qui consectetur laborum laboris excepteur sit magna enim. Tempor nisi esse fugiat aute veniam sint aliquip dolor. Consequat minim cupidatat aliqua fugiat mollit nulla exercitation. Incididunt deserunt qui labore anim. Laborum in officia ea velit nisi excepteur ex excepteur consequat est quis adipisicing Lorem. Nulla aute ex proident duis cupidatat aute quis sit.\r\n",title:"Officia aliqua sit cupidatat sint ad do tempor.",thumbnail:"resources/images/sample.jpg",url:"www.dolore.com"},{id:10,content:"Ut proident anim anim sint. Consequat mollit aliquip nisi qui veniam nulla quis eu eu sit enim tempor. Proident qui esse aliquip laborum do quis nulla consectetur sunt excepteur. Aute irure tempor velit aliquip id officia nulla. Aliquip officia est in culpa eu excepteur duis. Ullamco Lorem anim ipsum elit nisi aliqua et voluptate aliqua commodo duis tempor aute.\r\n",title:"Dolor officia cillum pariatur mollit excepteur ex ut nostrud commodo pariatur id ullamco velit.",thumbnail:"resources/images/sample.jpg",url:"www.anim.com"},{id:11,content:"Ipsum exercitation elit anim occaecat duis. Cillum exercitation cillum officia sit. Incididunt ut occaecat ipsum ad magna deserunt quis excepteur elit tempor sit commodo magna. Mollit ipsum ipsum officia eu exercitation consectetur ex proident.\r\n",title:"Tempor quis sit ipsum cillum.",thumbnail:"resources/images/sample.jpg",url:"www.sunt.com"},{id:12,content:"Id minim excepteur incididunt in mollit tempor enim. Ullamco est ut eiusmod aliqua id. Laboris cillum duis et reprehenderit voluptate aute aliqua sit exercitation aute Lorem. Consectetur pariatur amet ut dolore sint et commodo est minim ex veniam qui minim.\r\n",title:"Nisi ad minim velit nulla commodo in aute.",thumbnail:"resources/images/sample.jpg",url:"www.ut.com"},{id:13,content:"Cupidatat est sint commodo id esse sunt nostrud eiusmod aliqua. Occaecat elit est est fugiat ut commodo eu ut et non velit ex ut ut. Labore fugiat amet cillum dolore reprehenderit eu quis fugiat velit laboris esse exercitation eu. Proident veniam laboris nulla sint reprehenderit non non consequat non. Ea voluptate laboris cupidatat aute commodo proident mollit aliquip. Elit ullamco ea deserunt officia consequat minim labore.\r\n",title:"Amet laboris cupidatat eu cupidatat aliquip labore nostrud anim culpa non in ipsum cillum aute.",thumbnail:"resources/images/sample.jpg",url:"www.magna.com"},{id:14,content:"Ullamco est exercitation amet amet est sint amet. Amet adipisicing aliquip non officia deserunt eu non aute ut do ullamco nisi. Et eu minim incididunt ad id enim id sunt excepteur non adipisicing duis adipisicing sunt. Fugiat nostrud ad sit duis nulla nostrud dolor magna cillum irure. Adipisicing pariatur ea elit proident velit. Consequat aute amet irure non.\r\n",title:"Dolor culpa laboris aute aliqua aliquip dolore cupidatat nisi cillum.",thumbnail:"resources/images/sample.jpg",url:"www.Lorem.com"},{id:15,content:"In enim sunt enim quis ea minim culpa Lorem fugiat nulla. Eu reprehenderit nostrud qui cupidatat deserunt. Elit eu magna dolor commodo velit elit proident quis occaecat consectetur velit. Pariatur consectetur fugiat est sint irure quis nisi non. Do sit officia amet commodo. Aliquip est laboris sint occaecat ut. Voluptate ut adipisicing ipsum minim officia consequat minim excepteur sint fugiat occaecat.\r\n",title:"Voluptate nulla fugiat excepteur culpa sint magna exercitation voluptate ullamco enim.",thumbnail:"resources/images/sample.jpg",url:"www.nulla.com"},{id:16,content:"Lorem incididunt anim Lorem velit veniam cupidatat adipisicing amet laborum qui esse tempor. Magna sit minim sint elit pariatur incididunt officia incididunt laborum culpa. Deserunt dolor laborum aliquip velit non. Adipisicing exercitation sint proident labore occaecat aliquip velit sit in culpa. Deserunt culpa culpa id elit tempor consequat ex sit nostrud et ullamco duis ad eiusmod. Dolor laboris eiusmod exercitation pariatur sunt mollit cillum minim ea.\r\n",title:"Non exercitation non sint qui dolor magna ut est consectetur do occaecat cillum culpa.",thumbnail:"resources/images/sample.jpg",url:"www.tempor.com"},{id:17,content:"Excepteur culpa voluptate amet anim veniam nostrud magna. Consectetur deserunt id non fugiat voluptate proident consectetur elit anim excepteur. Velit veniam sit anim tempor.\r\n",title:"Sunt aute culpa occaecat tempor ipsum excepteur id elit reprehenderit tempor dolor.",thumbnail:"resources/images/sample.jpg",url:"www.occaecat.com"},{id:18,content:"Deserunt fugiat aute proident veniam nostrud Lorem aliquip officia amet dolor mollit irure eu. Anim consectetur labore et pariatur quis voluptate pariatur incididunt irure adipisicing aliqua officia. Anim mollit consectetur est ipsum consequat quis anim adipisicing excepteur eiusmod cillum. Amet ex labore aliquip ipsum commodo veniam laborum. Quis enim sint occaecat aute occaecat qui non tempor est. Veniam mollit elit Lorem duis et cupidatat incididunt aliqua Lorem minim.\r\n",title:"Irure adipisicing aliqua culpa elit ipsum quis est non.",thumbnail:"resources/images/sample.jpg",url:"www.minim.com"},{id:19,content:"Sit est nisi non veniam duis sit labore ad ex laboris ad in minim. Deserunt sit adipisicing id sint sit est labore nisi mollit commodo. Sit incididunt esse Lorem veniam aute enim proident excepteur dolor laboris voluptate.\r\n",title:"Eu aliquip est reprehenderit quis qui ea fugiat magna eu in magna qui deserunt aliquip.",thumbnail:"images/sample.jpg",url:"www.nisi.com"},{id:20,content:"In aliqua nostrud ad aliqua labore sit nisi. Enim esse quis proident minim voluptate sunt qui in sint veniam consequat qui aute proident. Deserunt esse adipisicing velit irure dolor qui. Commodo reprehenderit laborum enim voluptate laboris.\r\n",title:"Deserunt in culpa in velit.",thumbnail:"resources/images/sample.jpg",url:"www.duis.com"},{id:21,content:"Est laboris amet sit consectetur dolore. Aliquip eiusmod sunt et consectetur proident pariatur deserunt labore. Cupidatat cupidatat consectetur ut consectetur reprehenderit laboris aliqua minim non mollit. Eu qui tempor labore cupidatat nulla sunt et adipisicing culpa enim irure irure. Dolore magna deserunt fugiat eu magna proident ipsum minim eu. Voluptate voluptate labore irure velit.\r\n",title:"Consectetur sunt consectetur aute nostrud non occaecat laboris est fugiat ad aute nulla.",thumbnail:"resources/images/sample.jpg",url:"www.ea.com",attachments:[{url:"resources/images/img1.jpg",title:"Dandelion"},{url:"resources/images/img2.jpg",title:"Landscape"}]},{id:22,content:"Eiusmod consectetur occaecat laboris Lorem ut do fugiat fugiat veniam. Proident magna eu deserunt consequat deserunt nulla consectetur veniam culpa irure consectetur dolor sint. Nisi minim culpa laborum tempor labore sit do laborum et aliqua magna mollit quis do. Reprehenderit adipisicing consequat quis minim sunt proident ex in sit nulla. Nisi sit nostrud aliqua ea aliqua qui laborum deserunt nulla eu. Proident anim pariatur Lorem nisi et aliqua.\r\n",title:"Velit laboris adipisicing dolor et id do cupidatat labore.",thumbnail:"resources/images/sample.jpg",url:"www.ullamco.com"},{id:23,content:"Tempor aute reprehenderit laboris elit. Proident consectetur mollit deserunt esse ex mollit ut voluptate veniam ipsum officia. Ipsum cupidatat sit excepteur dolor quis veniam fugiat.\r\n",title:"Veniam exercitation magna nulla exercitation.",thumbnail:"resources/images/sample.jpg",url:"www.ut.com"},{id:24,content:"Anim reprehenderit aute id mollit magna magna mollit amet. Cillum ipsum occaecat dolor incididunt exercitation occaecat ut fugiat. In quis qui sit sint commodo non consequat enim aute eu duis est duis. Dolore velit ullamco officia do duis sit laborum culpa ullamco consectetur elit veniam tempor. Nostrud irure do eu enim cupidatat do deserunt Lorem eu voluptate deserunt. Consequat consectetur exercitation cillum velit mollit laboris culpa reprehenderit officia dolore eu commodo ullamco ad. Labore incididunt incididunt mollit commodo.\r\n",title:"Excepteur nulla non velit ex quis minim culpa tempor proident voluptate consectetur.",thumbnail:"resources/images/sample.jpg",url:"www.aliquip.com"},{id:25,content:"Irure consequat enim irure officia elit ea aliqua nisi dolore incididunt amet. Incididunt duis exercitation qui velit officia dolore dolor reprehenderit ea et laborum velit qui dolor. Exercitation ea et nulla qui amet mollit nisi minim nostrud duis sit ut.\r\n",title:"Reprehenderit eu ipsum adipisicing duis sint consequat.",thumbnail:"resources/images/sample.jpg",url:"www.fugiat.com"},{id:26,content:"In in consequat nisi fugiat et cupidatat irure. Sit qui occaecat enim officia voluptate aute esse nisi qui. Ex occaecat id dolor irure quis labore magna id veniam ex sint velit amet nisi. Magna ad nisi laborum occaecat proident. Incididunt officia ex commodo non reprehenderit. Voluptate cupidatat irure sunt duis sunt est magna ut fugiat. Adipisicing aliquip ut exercitation velit sit veniam.\r\n",title:"Magna incididunt aliquip eiusmod dolor irure Lorem esse esse magna id nulla culpa magna.",thumbnail:"resources/images/sample.jpg",url:"www.sit.com"},{id:27,content:"Consectetur culpa sunt irure nisi sint. Aliquip qui exercitation fugiat est exercitation excepteur tempor incididunt qui et. Non ullamco irure excepteur dolor enim non consequat anim quis cupidatat incididunt commodo. Veniam dolore laborum laborum occaecat officia ullamco ea minim est dolor. Irure anim sint anim ullamco. Ex veniam incididunt laboris laborum sint quis consequat.\r\n",title:"Aliquip veniam deserunt tempor commodo est sunt nostrud velit non occaecat eu qui laboris nostrud.",thumbnail:"resources/images/sample.jpg",url:"www.elit.com"},{id:28,content:"Ad ea minim mollit dolor ullamco nostrud. Aute consectetur eiusmod officia magna exercitation deserunt sit. Ad minim mollit labore ipsum ipsum minim pariatur elit deserunt. Officia incididunt sit excepteur minim eiusmod culpa eiusmod proident non excepteur fugiat. Laboris mollit exercitation fugiat laborum in ipsum aliquip. Ipsum elit ullamco enim anim pariatur in in velit ad labore magna.\r\n",title:"Reprehenderit Lorem anim qui minim duis et Lorem minim occaecat.",thumbnail:"resources/images/sample.jpg",url:"www.amet.com"},{id:29,content:"Lorem aliquip Lorem et cupidatat officia excepteur. Incididunt reprehenderit magna quis laboris quis. Reprehenderit proident sunt esse anim eu quis eu quis do ut in qui labore consectetur. Deserunt quis sit aliqua anim duis sunt eu officia et ipsum nulla. Sunt do mollit exercitation tempor Lorem qui Lorem adipisicing velit non laborum adipisicing cillum enim. Laboris cillum consectetur voluptate fugiat tempor qui laboris aliqua duis adipisicing nostrud occaecat cillum sint.\r\n",title:"Do reprehenderit exercitation Lorem fugiat sit voluptate est.",thumbnail:"resources/images/sample.jpg",url:"www.elit.com"},{id:30,content:"Et anim excepteur excepteur duis nulla ipsum esse. Minim proident elit consequat minim. Pariatur mollit dolor nisi pariatur magna commodo labore adipisicing mollit minim consequat nostrud voluptate. Amet Lorem est minim ut nulla nulla proident aute et id amet Lorem. Laboris ex sint irure reprehenderit eu non et id. Veniam quis dolor laboris dolor non culpa irure dolore quis duis esse ullamco in.\r\n",title:"Ullamco consectetur voluptate labore tempor cillum excepteur amet minim eiusmod anim laboris et ut dolor.",thumbnail:"resources/images/sample.jpg",url:"www.veniam.com"},{id:31,content:"Sit sint dolor laborum elit ullamco elit enim qui id anim nulla. Ea qui fugiat consectetur laboris. Dolor veniam veniam qui commodo Lorem esse culpa adipisicing. In amet sint culpa amet nulla ad ipsum do Lorem velit dolor consectetur et.\r\n",title:"Laboris ea aute eiusmod ex et minim esse sint sunt.",thumbnail:"resources/images/sample.jpg",url:"www.laborum.com"},{id:32,content:"Laboris velit deserunt deserunt consectetur velit deserunt voluptate consectetur sit. Adipisicing ad eiusmod esse reprehenderit cupidatat magna aliqua fugiat do. Sunt officia sint nulla qui voluptate commodo dolore voluptate laboris eiusmod incididunt sint sint. Sint quis consequat labore voluptate. Eiusmod eu fugiat dolor quis. Labore consequat anim officia culpa veniam eiusmod anim minim consequat enim pariatur qui sint.\r\n",title:"Ad consectetur proident minim veniam laborum est elit qui ex tempor velit esse consectetur.",thumbnail:"resources/images/sample.jpg",url:"www.dolor.com"},{id:33,content:"Do reprehenderit laborum eu ut aliqua mollit aute tempor elit magna non dolore. Ea fugiat excepteur aliqua in do magna sint exercitation pariatur consectetur reprehenderit deserunt esse eu. Veniam adipisicing laboris est qui ad Lorem deserunt. Quis et voluptate velit magna ea ut laborum officia incididunt non.\r\n",title:"Dolore veniam duis do aliqua amet velit est ullamco pariatur.",thumbnail:"resources/images/sample.jpg",url:"www.nisi.com"},{id:34,content:"Veniam excepteur nulla est elit eiusmod esse reprehenderit. Nulla ullamco sunt dolor tempor culpa cillum do exercitation sit quis est. Laborum non voluptate ad ex nisi mollit reprehenderit laborum fugiat nostrud eu nisi.\r\n",title:"Consectetur ipsum esse sit duis duis occaecat ipsum sit esse adipisicing voluptate commodo.",thumbnail:"resources/images/sample.jpg",url:"www.excepteur.com"},{id:35,content:"Aute in voluptate consectetur cupidatat magna ipsum Lorem ullamco irure eu reprehenderit laboris. Sint mollit in cupidatat deserunt minim nisi irure irure est aliqua veniam eiusmod. Lorem occaecat incididunt in eiusmod labore duis magna voluptate sunt fugiat. Proident deserunt laborum aute veniam esse occaecat fugiat. Et id aute magna pariatur velit ex fugiat est eiusmod tempor ex enim ex amet.\r\n",title:"Incididunt quis eiusmod adipisicing incididunt elit consectetur consequat et labore officia enim.",thumbnail:"resources/images/sample.jpg",url:"www.ea.com"},{id:36,content:"Duis officia irure et voluptate id officia irure minim aliquip. Voluptate non culpa commodo fugiat ea in. Excepteur fugiat occaecat non aliquip sint. Consequat nisi nisi velit occaecat dolore adipisicing duis tempor sint exercitation officia ullamco occaecat. Esse ad nulla labore nulla sunt mollit non.\r\n",title:"Enim deserunt nisi aliquip irure incididunt cupidatat anim nostrud sint tempor.",thumbnail:"resources/images/sample.jpg",url:"www.excepteur.com"},{id:37,content:"Proident amet incididunt dolor et mollit et nulla. Anim id aliquip officia commodo et ipsum ipsum minim id tempor. Irure Lorem ipsum cupidatat quis culpa cupidatat dolor sit nostrud in adipisicing consectetur sint exercitation. Adipisicing nulla sit deserunt id incididunt eiusmod aliqua nulla ipsum id occaecat dolore ut. Nostrud aliqua deserunt anim do adipisicing id commodo. Do irure mollit laborum irure et magna cillum adipisicing tempor minim deserunt qui.\r\n",title:"Non fugiat enim exercitation ex sint enim excepteur.",thumbnail:"resources/images/sample.jpg",url:"www.cupidatat.com"},{id:38,content:"Non dolor laborum fugiat culpa sunt reprehenderit sit labore excepteur consectetur sunt voluptate est. Ullamco adipisicing ea sint excepteur exercitation dolor in occaecat est aliquip commodo duis ea ad. Incididunt aliquip aliquip do qui dolore consequat dolore non non do.\r\n",title:"Ex aliqua id aute occaecat consectetur id consectetur sint elit sit.",thumbnail:"resources/images/sample.jpg",url:"www.minim.com"},{id:39,content:"Enim nulla sit pariatur laboris reprehenderit et dolore occaecat cillum. Sint reprehenderit enim adipisicing aliquip cupidatat veniam aute exercitation tempor nulla. Do irure consequat fugiat amet nulla sit veniam dolor laborum do nisi.\r\n",title:"Sunt elit cillum velit velit pariatur Lorem id.",thumbnail:"resources/images/sample.jpg",url:"www.culpa.com"}]},0,0,0,0,0,0,[Admin.data.search,"Results"],0));(Ext.cmd.derive("Admin.data.search.Users",Admin.data.Simulated,{data:[{identifier:1,fullname:"Archie Young",profile_pic:"1.png",email:"dwatkins@mydeo.name",subscription:"minima",joinDate:"10/16/2012",isActive:false},{identifier:2,fullname:"May Williams",profile_pic:"2.png",email:"jreid@babbleblab.com",subscription:"ab",joinDate:"6/13/2004",isActive:true},{identifier:3,fullname:"Kathryn Hill",profile_pic:"4.png",email:"dwatkins@mydeo.name",subscription:"totam",joinDate:"2/2/2007",isActive:true},{identifier:4,fullname:"Katherine Gomez",profile_pic:"3.png",email:"ewatkins@dazzlesphere.biz",subscription:"alias",joinDate:"2/22/2002",isActive:true},{identifier:5,fullname:"Della Allen",profile_pic:"1.png",email:"vgonzalez@yamia.gov",subscription:"et",joinDate:"1/16/2001",isActive:true},{identifier:6,fullname:"Maude Bailey",profile_pic:"2.png",email:"jgreene@skalith.com",subscription:"inventore",joinDate:"7/23/2006",isActive:true},{identifier:7,fullname:"Alma Allen",profile_pic:"4.png",email:"dwalker@jatri.info",subscription:"quo",joinDate:"11/24/2011",isActive:true},{identifier:8,fullname:"Floyd Taylor",profile_pic:"3.png",email:"ewatkins@dazzlesphere.biz",subscription:"eaque",joinDate:"12/11/2010",isActive:true},{identifier:9,fullname:"Archie Reed",profile_pic:"1.png",email:"dwalker@jatri.info",subscription:"sapiente",joinDate:"7/22/2001",isActive:true},{identifier:10,fullname:"Stanley Brooks",profile_pic:"1.png",email:"foliver@twitterbeat.org",subscription:"sed",joinDate:"10/3/2012",isActive:false},{identifier:11,fullname:"Beatrice Miller",profile_pic:"1.png",email:"walexander@meevee.name",subscription:"nemo",joinDate:"2/25/2003",isActive:false},{identifier:12,fullname:"Leon Jones",profile_pic:"4.png",email:"jreid@babbleblab.com",subscription:"est",joinDate:"7/14/2009",isActive:false}]},0,0,0,0,0,0,[Admin.data.search,"Users"],0));(Ext.cmd.derive("Admin.model.Base",Ext.data.Model,{schema:{namespace:"Admin.model"}},0,0,0,0,0,0,[Admin.model,"Base"],0));(Ext.cmd.derive("Admin.model.ChatMessages",Admin.model.Base,{fields:[{type:"string",name:"message"},{type:"string",defaultValue:"user",name:"sender"}]},0,0,0,0,0,0,[Admin.model,"ChatMessages"],0));(Ext.cmd.derive("Admin.model.DataXY",Admin.model.Base,{fields:[{name:"xvalue"},{name:"yvalue"}]},0,0,0,0,0,0,[Admin.model,"DataXY"],0));(Ext.cmd.derive("Admin.model.FriendsList",Admin.model.Base,{fields:[{name:"friendsName"},{name:"connectionStatus"}]},0,0,0,0,0,0,[Admin.model,"FriendsList"],0));(Ext.cmd.derive("Admin.model.MultiDataXY",Admin.model.Base,{fields:[{name:"xvalue"},{name:"y1value"},{name:"y2value"},{name:"y3value"},{name:"y4value"}]},0,0,0,0,0,0,[Admin.model,"MultiDataXY"],0));(Ext.cmd.derive("Admin.model.PanelSetting",Admin.model.Base,{fields:[{name:"title"},{name:"subTitle"},{name:"toggleStatus"}]},0,0,0,0,0,0,[Admin.model,"PanelSetting"],0));(Ext.cmd.derive("Admin.model.PersonalInfo",Admin.model.Base,{fields:[{name:"name"},{name:"status"},{name:"icon"}]},0,0,0,0,0,0,[Admin.model,"PersonalInfo"],0));(Ext.cmd.derive("Admin.model.Subscription",Admin.model.Base,{fields:[{type:"int",name:"id"},{type:"string",name:"name"},{type:"string",name:"subscription"}]},0,0,0,0,0,0,[Admin.model,"Subscription"],0));(Ext.cmd.derive("Admin.model.YearwiseData",Admin.model.Base,{fields:[{name:"year"},{name:"data"}]},0,0,0,0,0,0,[Admin.model,"YearwiseData"],0));(Ext.cmd.derive("Admin.model.email.Email",Admin.model.Base,{fields:[{type:"int",name:"id"},{name:"read"},{type:"string",name:"title"},{name:"user_id"},{type:"string",name:"contents"},{type:"string",name:"from"},{name:"has_attachments"},{name:"attachments"},{name:"received_on",type:"date"},{name:"favorite"}]},0,0,0,0,0,0,[Admin.model.email,"Email"],0));(Ext.cmd.derive("Admin.model.email.Friend",Admin.model.Base,{fields:[{type:"int",name:"id"},{type:"string",name:"name"},{type:"string",name:"thumbnail"},{type:"boolean",name:"online"}]},0,0,0,0,0,0,[Admin.model.email,"Friend"],0));(Ext.cmd.derive("Admin.model.faq.Category",Admin.model.Base,{fields:[{type:"string",name:"name"}],hasMany:{name:"questions",model:"faq.Question"}},0,0,0,0,0,0,[Admin.model.faq,"Category"],0));(Ext.cmd.derive("Admin.model.faq.Question",Admin.model.Base,{fields:[{type:"string",name:"name"}]},0,0,0,0,0,0,[Admin.model.faq,"Question"],0));(Ext.cmd.derive("Admin.model.search.Attachment",Admin.model.Base,{fields:[{type:"int",name:"id"},{type:"string",name:"url"},{type:"string",name:"title"}]},0,0,0,0,0,0,[Admin.model.search,"Attachment"],0));(Ext.cmd.derive("Admin.model.search.Result",Admin.model.Base,{fields:[{type:"int",name:"id"},{type:"string",name:"title"},{type:"string",name:"thumbnail"},{type:"string",name:"url"},{type:"string",name:"content"}],hasMany:{name:"attachments",model:"search.Attachment"}},0,0,0,0,0,0,[Admin.model.search,"Result"],0));(Ext.cmd.derive("Admin.model.search.User",Admin.model.Base,{fields:[{type:"int",name:"identifier"},{type:"string",name:"fullname"},{type:"string",name:"email"},{name:"subscription"},{type:"date",name:"joinDate"},{type:"boolean",name:"isActive"},{name:"profile_pic"}]},0,0,0,0,0,0,[Admin.model.search,"User"],0));(Ext.cmd.derive("Admin.proxy.API",Ext.data.proxy.Ajax,{reader:{type:"json",rootProperty:"data"}},0,0,0,0,["proxy.api"],0,[Admin.proxy,"API"],0));(Ext.cmd.derive("Admin.store.NavigationTree",Ext.data.TreeStore,{storeId:"NavigationTree",fields:[{name:"text"}],root:{expanded:true,children:[{text:"Dashboard",iconCls:"x-fa fa-desktop",rowCls:"nav-tree-badge nav-tree-badge-new",viewType:"admindashboard",routeId:"dashboard",leaf:true},{text:"Email",iconCls:"x-fa fa-send",rowCls:"nav-tree-badge nav-tree-badge-hot",viewType:"email",leaf:true},{text:"Profile",iconCls:"x-fa fa-user",viewType:"profile",leaf:true},{text:"Search results",iconCls:"x-fa fa-search",viewType:"searchresults",leaf:true},{text:"FAQ",iconCls:"x-fa fa-question",viewType:"faq",leaf:true},{text:"Pages",iconCls:"x-fa fa-leanpub",expanded:false,selectable:false,children:[{text:"Blank Page",iconCls:"x-fa fa-file-o",viewType:"pageblank",leaf:true},{text:"404 Error",iconCls:"x-fa fa-exclamation-triangle",viewType:"page404",leaf:true},{text:"500 Error",iconCls:"x-fa fa-times-circle",viewType:"page500",leaf:true},{text:"Lock Screen",iconCls:"x-fa fa-lock",viewType:"lockscreen",leaf:true},{text:"Login",iconCls:"x-fa fa-check",viewType:"login",leaf:true},{text:"Register",iconCls:"x-fa fa-pencil-square-o",viewType:"register",leaf:true},{text:"Password Reset",iconCls:"x-fa fa-lightbulb-o",viewType:"passwordreset",leaf:true}]},{text:"Widgets",iconCls:"x-fa fa-flask",viewType:"widgets",leaf:true},{text:"Forms",iconCls:"x-fa fa-edit",viewType:"forms",leaf:true},{text:"Charts",iconCls:"x-fa fa-pie-chart",viewType:"charts",leaf:true}]}},0,0,0,0,0,0,[Admin.store,"NavigationTree"],0));(Ext.cmd.derive("Admin.store.email.Friends",Ext.data.Store,{model:"Admin.model.email.Friend",autoLoad:true,proxy:{type:"api",url:"~api/email/friends"},sorters:{direction:"DESC",property:"online"}},0,0,0,0,["store.emailfriends"],0,[Admin.store.email,"Friends"],0));(Ext.cmd.derive("Admin.store.email.Inbox",Ext.data.Store,{model:"Admin.model.email.Email",pageSize:20,autoLoad:true,proxy:{type:"api",url:"~api/email/inbox"}},0,0,0,0,["store.inbox"],0,[Admin.store.email,"Inbox"],0));(Ext.cmd.derive("Admin.store.faq.FAQ",Ext.data.Store,{model:"Admin.model.faq.Category",proxy:{type:"api",url:"~api/faq/faq"}},0,0,0,0,["store.faq"],0,[Admin.store.faq,"FAQ"],0));(Ext.cmd.derive("Admin.store.search.Results",Ext.data.Store,{model:"Admin.model.search.Result",proxy:{type:"api",url:"~api/search/results"},autoLoad:"true",sorters:{direction:"ASC",property:"title"}},0,0,0,0,["store.searchresults"],0,[Admin.store.search,"Results"],0));(Ext.cmd.derive("Admin.store.search.Users",Ext.data.Store,{model:"Admin.model.search.User",proxy:{type:"api",url:"~api/search/users"},autoLoad:"true",sorters:{direction:"ASC",property:"fullname"}},0,0,0,0,["store.searchusers"],0,[Admin.store.search,"Users"],0));(Ext.cmd.derive("Admin.view.chart.Bounces",Ext.chart.CartesianChart,{animation:!Ext.isIE9m&&Ext.os.is.Desktop,height:22,background:"rgba(255, 255, 255, 1)",colors:["rgba(250,222,225, 0.8)"],insetPadding:{top:0,left:0,right:0,bottom:0},axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["y2value"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"area",xField:"xvalue",yField:["y2value"]}],interactions:[{type:"panzoom"}]},0,["chartbounces"],["component","box","container","panel","draw","cartesian","chart","chartbounces"],{component:true,box:true,container:true,panel:true,draw:true,cartesian:true,chart:true,chartbounces:true},["widget.chartbounces"],0,[Admin.view.chart,"Bounces"],0));(Ext.cmd.derive("Admin.view.chart.Network",Ext.chart.CartesianChart,{animation:!Ext.isIE9m&&Ext.os.is.Desktop,insetPadding:0,axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["y1value","y2value"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"line",colors:["rgba(103, 144, 199, 0.6)"],useDarkerStrokeColor:false,xField:"xvalue",yField:["y1value"],fill:true,smooth:true},{type:"line",colors:["rgba(238, 146, 156, 0.6)"],useDarkerStrokeColor:false,xField:"xvalue",yField:["y2value"],fill:true,smooth:true}],interactions:[{type:"panzoom"}]},0,["chartnetwork"],["component","box","container","panel","draw","cartesian","chart","chartnetwork"],{component:true,box:true,container:true,panel:true,draw:true,cartesian:true,chart:true,chartnetwork:true},["widget.chartnetwork"],0,[Admin.view.chart,"Network"],0));(Ext.cmd.derive("Admin.view.chart.Visitors",Ext.chart.CartesianChart,{animation:!Ext.isIE9m&&Ext.os.is.Desktop,height:22,background:"rgba(255, 255, 255, 1)",colors:["rgba(225,233,244, 0.8)"],insetPadding:{top:0,left:0,right:0,bottom:0},axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["y1value"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"area",xField:"xvalue",yField:["y1value"]}],interactions:[{type:"panzoom"}]},0,["chartvisitors"],["component","box","container","panel","draw","cartesian","chart","chartvisitors"],{component:true,box:true,container:true,panel:true,draw:true,cartesian:true,chart:true,chartvisitors:true},["widget.chartvisitors"],0,[Admin.view.chart,"Visitors"],0));(Ext.cmd.derive("Admin.view.charts.ChartBase",Ext.Panel,{cls:"quick-graph-panel shadow",height:300,ui:"light",layout:"fit",platformConfig:{classic:{headerPosition:"bottom"},modern:{header:{docked:"bottom"}}},defaults:{width:"100%"}},0,0,["component","box","container","panel"],{component:true,box:true,container:true,panel:true},0,0,[Admin.view.charts,"ChartBase"],0));(Ext.cmd.derive("Admin.view.charts.Area",Admin.view.charts.ChartBase,{title:"Area Chart",iconCls:"x-fa fa-area-chart",items:[{xtype:"cartesian",colors:["#115fa6","#94ae0a"],bind:"{areaData}",series:[{type:"line",colors:["rgba(103, 144, 199, 0.6)"],xField:"xvalue",yField:["y1value"],fill:true,smooth:true},{type:"line",colors:["rgba(238, 146, 156, 0.6)"],xField:"xvalue",yField:["y2value"],fill:true,smooth:true}],platformConfig:{"!phone":{interactions:{type:"panzoom",zoomOnPanGesture:true}}},axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["y1value","y2value","y3value"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}]}]},0,["chartsareapanel"],["component","box","container","panel","chartsareapanel"],{component:true,box:true,container:true,panel:true,chartsareapanel:true},["widget.chartsareapanel"],0,[Admin.view.charts,"Area"],0));(Ext.cmd.derive("Admin.view.charts.Bar",Admin.view.charts.ChartBase,{title:"Bar Chart",iconCls:"x-fa fa-bar-chart",items:[{xtype:"cartesian",colors:["#6aa5db"],bind:"{barData}",axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["yvalue"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"bar",xField:"xvalue",yField:["yvalue"]}],platformConfig:{"!phone":{interactions:{type:"panzoom",zoomOnPanGesture:true}}}}]},0,["chartsbarpanel"],["component","box","container","panel","chartsbarpanel"],{component:true,box:true,container:true,panel:true,chartsbarpanel:true},["widget.chartsbarpanel"],0,[Admin.view.charts,"Bar"],0));(Ext.cmd.derive("Admin.view.charts.ChartsModel",Ext.app.ViewModel,{stores:{barData:{model:"Admin.model.DataXY",autoLoad:true,proxy:{type:"api",url:"~api/marketshare/oneyear"}},stackedData:{model:"Admin.model.MultiDataXY",autoLoad:true,proxy:{type:"api",url:"~api/marketshare/multiyear"}},gaugeData:{data:[{position:40}],fields:[{name:"position"}]},radialData:{model:"Admin.model.DataXY",autoLoad:true,proxy:{type:"api",url:"~api/radial"}},lineData:{model:"Admin.model.DataXY",autoLoad:true,proxy:{type:"api",url:"~api/marketshare/oneentity"}},pieData:{model:"Admin.model.DataXY",autoLoad:true,proxy:{type:"api",url:"~api/pie"}},areaData:{model:"Admin.model.MultiDataXY",autoLoad:true,proxy:{type:"api",url:"~api/dashboard/full"}}}},0,0,0,0,["viewmodel.charts"],0,[Admin.view.charts,"ChartsModel"],0));(Ext.cmd.derive("Admin.view.charts.Gauge",Admin.view.charts.ChartBase,{title:"Gauge Chart",iconCls:"x-fa fa-wifi",items:[{xtype:"polar",colors:["#6aa5db","#aed581"],bind:"{gaugeData}",series:[{type:"gauge",angleField:"position",needleLength:100}]}]},0,["chartsgaugepanel"],["component","box","container","panel","chartsgaugepanel"],{component:true,box:true,container:true,panel:true,chartsgaugepanel:true},["widget.chartsgaugepanel"],0,[Admin.view.charts,"Gauge"],0));(Ext.cmd.derive("Admin.view.charts.Line",Admin.view.charts.ChartBase,{title:"Line Chart",iconCls:"x-fa fa-line-chart",items:[{xtype:"cartesian",colors:["#6aa5db","#94ae0a"],bind:"{lineData}",axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["yvalue","y1value","y2value","y3value","y4value","y5value"],hidden:true,position:"left"}],series:[{type:"line",xField:"xvalue",yField:["yvalue"]},{type:"line",xField:"xvalue",yField:["y1value"]}],platformConfig:{"!phone":{interactions:{type:"panzoom",zoomOnPanGesture:true}}}}]},0,["chartslinepanel"],["component","box","container","panel","chartslinepanel"],{component:true,box:true,container:true,panel:true,chartslinepanel:true},["widget.chartslinepanel"],0,[Admin.view.charts,"Line"],0));(Ext.cmd.derive("Admin.view.charts.Pie",Admin.view.charts.ChartBase,{title:"2D Pie Chart",iconCls:"x-fa fa-pie-chart",items:[{xtype:"polar",colors:["#aed581","#6aa5db","#ee929c"],bind:"{pieData}",series:[{type:"pie",label:{field:"xvalue",display:"rotate",contrast:true,font:"12px Open Sans",color:"#888"},xField:"yvalue"}],platformConfig:{"!phone":{interactions:"rotate"}}}]},0,["chartspiepanel"],["component","box","container","panel","chartspiepanel"],{component:true,box:true,container:true,panel:true,chartspiepanel:true},["widget.chartspiepanel"],0,[Admin.view.charts,"Pie"],0));(Ext.cmd.derive("Admin.view.charts.Pie3D",Admin.view.charts.ChartBase,{title:"3D Pie Chart",iconCls:"x-fa fa-pie-chart",items:[{xtype:"polar",colors:["#aed581","#6aa5db","#ee929c"],platformConfig:{"!phone":{interactions:"rotate"}},bind:"{pieData}",series:[{type:"pie3d",angleField:"yvalue",donut:30}]}]},0,["chartspie3dpanel"],["component","box","container","panel","chartspie3dpanel"],{component:true,box:true,container:true,panel:true,chartspie3dpanel:true},["widget.chartspie3dpanel"],0,[Admin.view.charts,"Pie3D"],0));(Ext.cmd.derive("Admin.view.charts.Polar",Admin.view.charts.ChartBase,{title:"Radial Chart",iconCls:"x-fa fa-dot-circle-o",items:[{xtype:"polar",colors:["#6aa5db"],bind:"{radialData}",axes:[{type:"numeric",fields:["yvalue"],grid:true,position:"radial"},{type:"category",fields:["xvalue"],grid:true,position:"angular"}],series:[{type:"radar",xField:"xvalue",yField:"yvalue"}],platformConfig:{"!phone":{interactions:"rotate"}}}]},0,["chartspolarpanel"],["component","box","container","panel","chartspolarpanel"],{component:true,box:true,container:true,panel:true,chartspolarpanel:true},["widget.chartspolarpanel"],0,[Admin.view.charts,"Polar"],0));(Ext.cmd.derive("Admin.view.charts.Stacked",Admin.view.charts.ChartBase,{title:"Stacked Bar Chart",iconCls:"x-fa fa-bar-chart",items:[{xtype:"cartesian",colors:["#6aa5db","#ee929c"],bind:"{stackedData}",axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["y1value","y2value","y3value"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"bar",xField:"xvalue",yField:["y2value","y3value"]}],platformConfig:{"!phone":{interactions:{type:"panzoom",zoomOnPanGesture:true}}}}]},0,["chartsstackedpanel"],["component","box","container","panel","chartsstackedpanel"],{component:true,box:true,container:true,panel:true,chartsstackedpanel:true},["widget.chartsstackedpanel"],0,[Admin.view.charts,"Stacked"],0));(Ext.cmd.derive("Admin.view.dashboard.DashboardController",Ext.app.ViewController,{onRefreshToggle:function(j,h,g){var e,i;if(j.toggleValue){this.clearChartUpdates()}else{e=this.getStore("networkData");if(e.getCount()){i=this.chartTaskRunner;if(!i){this.chartTaskRunner=i=new Ext.util.TaskRunner()}i.start({run:function(){var a=e.first();e.remove(a);e.add(a)},interval:200})}}j.toggleValue=!j.toggleValue},clearChartUpdates:function(){this.chartTaskRunner=Ext.destroy(this.chartTaskRunner)},destroy:function(){this.clearChartUpdates();Ext.app.ViewController.prototype.destroy.call(this)},onHideView:function(){this.clearChartUpdates()}},0,0,0,0,["controller.dashboard"],0,[Admin.view.dashboard,"DashboardController"],0));(Ext.cmd.derive("Admin.view.dashboard.DashboardModel",Ext.app.ViewModel,{stores:{hddusage:{autoLoad:true,model:"Admin.model.DataXY",proxy:{type:"api",url:"~api/qg/area"}},quarterlyGrowth:{autoLoad:true,model:"Admin.model.DataXY",proxy:{type:"api",url:"~api/qg/bar"}},earnings:{autoLoad:true,model:"Admin.model.DataXY",proxy:{type:"api",url:"~api/qg/line"}},servicePerformance:{autoLoad:true,model:"Admin.model.DataXY",proxy:{type:"api",url:"~api/qg/pie"}},topMovies:{autoLoad:true,model:"Admin.model.DataXY",proxy:{type:"api",url:"~api/dashboard/movies"}},networkData:{autoLoad:true,model:"Admin.model.MultiDataXY",proxy:{type:"api",url:"~api/dashboard/full"}},visitors:{autoLoad:true,model:"Admin.model.MultiDataXY",proxy:{type:"api",url:"~api/dashboard/visitor"}},bounces:{autoLoad:true,model:"Admin.model.MultiDataXY",proxy:{type:"api",url:"~api/dashboard/counce"}},subscriptions:{autoLoad:true,model:"Admin.model.Subscription",proxy:{type:"api",url:"~api/subscriptions"}},todos:{autoLoad:true,fields:[{type:"int",name:"id"},{type:"string",name:"task"},{type:"boolean",name:"done"}],proxy:{type:"api",url:"~api/dashboard/tasks"}}}},0,0,0,0,["viewmodel.dashboard"],0,[Admin.view.dashboard,"DashboardModel"],0));(Ext.cmd.derive("Admin.view.dashboard.Weather",Ext.Component,{baseCls:"weather-panel",border:false,height:80,data:{icon:"cloud-icon.png",forecast:"Partly Cloudy",temperature:25},tpl:'<div class="weather-image-container"><img src="resources/images/icons/{icon}" alt="{forecast}"/></div><div class="weather-details-container"><div>{temperature}&#176;</div><div>{forecast}</div></div>'},0,["weather"],["component","box","weather"],{component:true,box:true,weather:true},["widget.weather"],0,[Admin.view.dashboard,"Weather"],0));(Ext.cmd.derive("Admin.view.email.EmailModel",Ext.app.ViewModel,{stores:{inbox:{type:"inbox"},friends:{type:"emailfriends"}}},0,0,0,0,["viewmodel.email"],0,[Admin.view.email,"EmailModel"],0));(Ext.cmd.derive("Admin.view.forms.SpecialOffer",Ext.Component,{isSpecialOffer:true,cls:"forms-specialoffer",minWidth:200,html:'<div class="specialoffer-outer"><div class="specialoffer-inner"><h3>Register Today</h3><span class="specialoffer-icon-wrap circular"><i class="fa fa-gift fa-5x"></i></span><div class="specialoffer-text">Members get <span class="specialoffer-discount">50%</span> more points, so register today and start earning points for savings on great rewards!</div><a class="specialoffer-link fa fa-arrow-right" href="#faq">Learn More...</a></div></div>'},0,["specialoffer"],["component","box","specialoffer"],{component:true,box:true,specialoffer:true},["widget.specialoffer"],0,[Admin.view.forms,"SpecialOffer"],0));(Ext.cmd.derive("Admin.view.profile.Description",Ext.Panel,{layout:{type:"vbox",align:"stretch"},cls:"timeline-items-wrap user-profile-desc",height:320,items:[{xtype:"component",baseCls:"box x-fa fa-home",html:"San Jose, CA",padding:"0 0 12 0"},{xtype:"component",baseCls:"box x-fa fa-clock-o",html:"Member since 1 years ago",padding:"0 0 12 0"},{xtype:"component",baseCls:"box x-fa fa-globe",html:'<a href="#"\'>http://www.sencha-dash.com/</a>',padding:"0 0 12 0"},{xtype:"container",flex:1,cls:"about-me-wrap",html:'<h3 class="x-fa fa-user">About Me</h3><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>'},{xtype:"toolbar",ui:"plain",layout:{type:"hbox",pack:"center"},userCls:"profiledescription-social-toolbar",items:[{xtype:"component",cls:"large-icon icon-padding",baseCls:"x-fa fa-thumbs-up",padding:"8 0 8 0"},{xtype:"container",layout:{type:"vbox",align:"center",pack:"center"},items:[{xtype:"component",cls:"likes-value",html:"523"},{xtype:"component",cls:"likes-label",html:"Likes"}]},{xtype:"component",cls:"icon-padding",baseCls:"x-fa fa-ellipsis-v",padding:"8 0 8 0"},{xtype:"component",cls:"large-icon icon-padding",baseCls:"x-fa fa-user-plus",padding:"8 0 8 0"},{xtype:"container",layout:{type:"vbox",align:"center",pack:"center"},items:[{xtype:"component",cls:"friends-value",html:"734"},{xtype:"component",cls:"friends-label",html:"Friends"}]}]}]},0,["profiledescription"],["component","box","container","panel","profiledescription"],{component:true,box:true,container:true,panel:true,profiledescription:true},["widget.profiledescription"],0,[Admin.view.profile,"Description"],0));(Ext.cmd.derive("Admin.view.profile.Notifications",Ext.DataView,{cls:"user-notifications",scrollable:false,bind:{store:"{userSharedItems}"},itemSelector:"div.timeline-item",itemTpl:["<div class='comments {[values._id !== values.parent_id ? 'sub-comments' : '']}'>","<img src='resources/images/user-profile/15.png' alt='Smiley face' class='profile-icon'>","<div class='content-wrap'>","<div>","<h4 class='profilenotifications-username'>{name}<span class='x-fa fa-mobile'></span></h4>","<span class='from-now'><span class='x-fa fa-clock-o'></span>3 Hours Ago</span>","</div>","<div class='content'>{content}</div>","<div class='like-comment-btn-wrap'>","<button type='button' class='x-fa fa-thumbs-up' onclick=''></button>","<button type='button' class='x-fa fa-thumbs-down' onclick=''></button>","<button type='button' onclick='' class='x-fa fa-comments'></button>","</div>","</div>","</div>"]},0,["profilenotifications"],["component","box","dataview","profilenotifications"],{component:true,box:true,dataview:true,profilenotifications:true},["widget.profilenotifications"],0,[Admin.view.profile,"Notifications"],0));(Ext.cmd.derive("Admin.view.profile.Social",Ext.panel.Panel,{layout:{type:"vbox",align:"middle"},height:320,bodyPadding:20,items:[{xtype:"image",cls:"userProfilePic",height:120,width:120,alt:"profile-picture",src:"resources/images/user-profile/20.png"},{xtype:"component",cls:"userProfileName",height:"",html:"Jessica Warren"},{xtype:"component",cls:"userProfileDesc",html:"CO-FOUNDER, CEO"},{xtype:"container",layout:"hbox",defaults:{xtype:"button",margin:5},margin:5,items:[{ui:"facebook",iconCls:"x-fa fa-facebook"},{ui:"soft-cyan",iconCls:"x-fa fa-twitter"},{ui:"soft-red",iconCls:"x-fa fa-google-plus"},{ui:"soft-purple",iconCls:"x-fa fa-envelope"}]},{xtype:"button",width:220,text:"Follow",platformConfig:{classic:{scale:"large"},modern:{ui:"action"}}}]},0,["profilesocial"],["component","box","container","panel","profilesocial"],{component:true,box:true,container:true,panel:true,profilesocial:true},["widget.profilesocial"],0,[Admin.view.profile,"Social"],0));(Ext.cmd.derive("Admin.view.profile.Timeline",Ext.DataView,{cls:"timeline-items-wrap",scrollable:false,bind:"{userTimeline}",itemSelector:".timeline-item",itemTpl:['<div class="timeline-item{userId:this.cls(values,parent[xindex-2],xindex-1,xcount)}">{date:this.epoch(values,parent[xindex-2],xindex-1,xcount)}<div class="profile-pic-wrap"><img src="resources/images/user-profile/{userId}.png" alt="Smiley face"><div>{date:this.elapsed} ago</div></div><tpl if="notificationType == \'image_sharing\'"><div class="line-wrap"><div class="contents-wrap"><div class="shared-by"><a href="#">{name}</a> shared an image</div><img src="resources/images/img2.jpg" class="shared-img" alt="Smiley face"></div></div><tpl elseif="notificationType == \'job_meeting\'"><div class="line-wrap"><div class="contents-wrap"><div class="job-meeting"><a href="#">Job Meeting</a></div><div>{content}</div></div></div><tpl elseif="notificationType == \'comment_reply\'"><div class="line-wrap"><div class="contents-wrap"><div class="shared-by"><a href="#">{name}</a> commented on The Article</div><div class="article-comment"><span class="x-fa fa-quote-left"></span>{content}</div></div></div><tpl elseif="notificationType == \'new_follower\'"><div class="line-wrap"><div class="contents-wrap"><div class="followed-by"><img src="resources/images/user-profile/10.png" alt="Smiley face"><div class="followed-by-inner"><a href="#">{name}</a> followed you.</div></div></div></div><tpl elseif="notificationType == \'comment\'"><div class="line-wrap"><div class="contents-wrap"><div class="shared-by"><a href="#">Lorem ipsum dolor sit amet</a></div><div>{content}</div></div></div><tpl elseif="notificationType == \'like\'"><div class="line-wrap"><div class="contents-wrap"><div class="followed-by"><img src="resources/images/user-profile/1.png" alt="Smiley face"><div class="followed-by-inner"><a href="#">{name}</a> Like The Article.</div></div></div></tpl></div>',{cls:function(i,g,j,l,k){var h="";if(!l){h+=" timeline-item-first"}if(l+1===k){h+=" timeline-item-last"}return h},elapsed:function(l){var s=Date.now();s=+new Date("2015/08/23 21:15:00");var m=Math.floor((s-l)/1000),q=Math.floor(m/60),n=Math.floor(q/60),k=Math.floor(n/24),t=Math.floor(k/7),r=Math.floor(k/30),p=Math.floor(k/365),o;r%=12;t%=52;k%=365;n%=24;q%=60;m%=60;if(p){o=this.part(p,"Year");o+=this.part(r,"Month"," ")}else{if(r){o=this.part(r,"Month");o+=this.part(k,"Day"," ")}else{if(t){o=this.part(t,"Week");o+=this.part(k,"Day"," ")}else{if(k){o=this.part(k,"Day");o+=this.part(n,"Hour"," ")}else{if(n){o=this.part(n,"Hour")}else{if(q){o=this.part(q," Minute")}else{o=this.part(m,"Second")}}}}}}return o},epoch:function(i,g,j,l,k){var h=j&&(j.isModel?j.data:j)["date"];if(l===4){return'<div class="timeline-epoch">Yesterday</div>'}return""},part:function(h,e,g){var f=h?(g||"")+h+" "+e:"";if(h>1){f+="s"}return f}}]},0,["profiletimeline"],["component","box","dataview","profiletimeline"],{component:true,box:true,dataview:true,profiletimeline:true},["widget.profiletimeline"],0,[Admin.view.profile,"Timeline"],0));(Ext.cmd.derive("Admin.view.profile.UserProfileBase",Ext.Container,{viewModel:{type:"userprofile"}},0,0,["component","box","container"],{component:true,box:true,container:true},0,0,[Admin.view.profile,"UserProfileBase"],0));(Ext.cmd.derive("Admin.view.profile.UserProfileModel",Ext.app.ViewModel,{stores:{userSharedItems:{autoLoad:true,fields:[{name:"_id"},{name:"parent_id"},{name:"name"},{name:"source"},{name:"date"},{name:"isActive"},{name:"time"},{name:"content"}],proxy:{type:"api",url:"~api/usershareditems"}},userTimeline:{autoLoad:true,fields:[{name:"_id"},{name:"name"},{name:"content"},{name:"date",type:"date"},{name:"userId"},{name:"notificationType"}],proxy:{type:"api",url:"~api/usertimeline"}}}},0,0,0,0,["viewmodel.userprofile"],0,[Admin.view.profile,"UserProfileModel"],0));(Ext.cmd.derive("Admin.view.main.Main",Ext.container.Viewport,{controller:"main",viewModel:"main",cls:"sencha-dash-viewport",itemId:"mainView",layout:{type:"vbox",align:"stretch"},listeners:{render:"onMainViewRender"},items:[{xtype:"toolbar",cls:"sencha-dash-dash-headerbar shadow",height:64,itemId:"headerBar",items:[{xtype:"component",reference:"senchaLogo",cls:"sencha-logo",html:'<div class="main-logo"><img src="resources/images/company-logo.png">Sencha</div>',width:250},{margin:"0 0 0 8",ui:"header",iconCls:"x-fa fa-navicon",id:"main-navigation-btn",handler:"onToggleNavigationSize"},"->",{xtype:"segmentedbutton",margin:"0 16 0 0",platformConfig:{ie9m:{hidden:true}},items:[{iconCls:"x-fa fa-desktop",pressed:true},{iconCls:"x-fa fa-tablet",handler:"onSwitchToModern"}]},{iconCls:"x-fa fa-search",ui:"header",href:"#searchresults",hrefTarget:"_self",tooltip:"See latest search"},{iconCls:"x-fa fa-envelope",ui:"header",href:"#email",hrefTarget:"_self",tooltip:"Check your email"},{iconCls:"x-fa fa-question",ui:"header",href:"#faq",hrefTarget:"_self",tooltip:"Help / FAQ's"},{iconCls:"x-fa fa-th-large",ui:"header",href:"#profile",hrefTarget:"_self",tooltip:"See your profile"},{xtype:"tbtext",text:"Goff Smith",cls:"top-user-name"},{xtype:"image",cls:"header-right-profile-image",height:35,width:35,alt:"current user image",src:"resources/images/user-profile/2.png"}]},{xtype:"maincontainerwrap",id:"main-view-detail-wrap",reference:"mainContainerWrap",flex:1,items:[{xtype:"treelist",reference:"navigationTreeList",itemId:"navigationTreeList",ui:"navigation",store:"NavigationTree",width:250,expanderFirst:false,expanderOnly:false,listeners:{selectionchange:"onNavigationTreeSelectionChange"}},{xtype:"container",flex:1,reference:"mainCardPanel",cls:"sencha-dash-right-main-container",itemId:"contentPanel",layout:{type:"card",anchor:"100%"}}]}]},0,0,["component","box","container","viewport"],{component:true,box:true,container:true,viewport:true},0,0,[Admin.view.main,"Main"],0));(Ext.cmd.derive("Admin.Application",Ext.app.Application,{name:"Admin",stores:["NavigationTree"],defaultToken:"dashboard",mainView:"Admin.view.main.Main",onAppUpdate:function(){Ext.Msg.confirm("Application Update","This application has an update, reload?",function(b){if(b==="yes"){window.location.reload()}})}},0,0,0,0,0,0,[Admin,"Application"],0));(Ext.cmd.derive("Admin.view.authentication.AuthenticationController",Ext.app.ViewController,{onFaceBookLogin:function(){this.redirectTo("dashboard",true)},onLoginButton:function(){this.redirectTo("dashboard",true)},onLoginAsButton:function(){this.redirectTo("login",true)},onNewAccount:function(){this.redirectTo("register",true)},onSignupClick:function(){this.redirectTo("dashboard",true)},onResetClick:function(){this.redirectTo("dashboard",true)}},0,0,0,0,["controller.authentication"],0,[Admin.view.authentication,"AuthenticationController"],0));(Ext.cmd.derive("Admin.view.authentication.AuthenticationModel",Ext.app.ViewModel,{data:{userid:"",fullName:"",password:"",email:"",persist:false,agrees:false}},0,0,0,0,["viewmodel.authentication"],0,[Admin.view.authentication,"AuthenticationModel"],0));(Ext.cmd.derive("Admin.view.authentication.Dialog",Ext.form.Panel,{controller:"authentication",viewModel:{type:"authentication"},defaultFocus:"textfield:focusable:not([hidden]):not([disabled]):not([value])",autoComplete:false,initComponent:function(){var c=this,d;if(c.autoComplete){c.autoEl=Ext.applyIf(c.autoEl||{},{tag:"form",name:"authdialog",method:"post"})}c.addCls("auth-dialog");Ext.form.Panel.prototype.initComponent.call(this);if(c.autoComplete){d={afterrender:"doAutoComplete",scope:c,single:true};Ext.each(c.query("textfield"),function(a){a.on(d)})}},doAutoComplete:function(b){if(b.inputEl&&b.autoComplete!==false){b.inputEl.set({autocomplete:"on"})}}},0,["authdialog"],["component","box","container","panel","form","authdialog"],{component:true,box:true,container:true,panel:true,form:true,authdialog:true},["widget.authdialog"],0,[Admin.view.authentication,"Dialog"],0));(Ext.cmd.derive("Admin.view.authentication.LockingWindow",Ext.window.Window,{cls:"auth-locked-window",closable:false,resizable:false,autoShow:true,titleAlign:"center",maximized:true,modal:true,layout:{type:"vbox",align:"center",pack:"center"},controller:"authentication"},0,["lockingwindow"],["component","box","container","panel","window","lockingwindow"],{component:true,box:true,container:true,panel:true,window:true,lockingwindow:true},["widget.lockingwindow"],0,[Admin.view.authentication,"LockingWindow"],0));(Ext.cmd.derive("Admin.view.authentication.LockScreen",Admin.view.authentication.LockingWindow,{title:"Session Expired",defaultFocus:"authdialog",items:[{xtype:"authdialog",reference:"authDialog",defaultButton:"loginButton",autoComplete:false,width:455,cls:"auth-dialog-login",defaultFocus:"textfield[inputType=password]",layout:{type:"vbox",align:"stretch"},items:[{xtype:"container",cls:"auth-profile-wrap",height:120,layout:{type:"hbox",align:"center"},items:[{xtype:"image",height:80,margin:20,width:80,alt:"lockscreen-image",cls:"lockscreen-profile-img auth-profile-img",src:"resources/images/user-profile/2.png"},{xtype:"box",html:"<div class='user-name-text'> Goff Smith </div><div class='user-post-text'> Project manager </div>"}]},{xtype:"container",padding:"0 20",layout:{type:"vbox",align:"stretch"},defaults:{margin:"10 0"},items:[{xtype:"textfield",labelAlign:"top",cls:"lock-screen-password-textbox",labelSeparator:"",fieldLabel:"It's been a while. please enter your password to resume",emptyText:"Password",inputType:"password",allowBlank:false,triggers:{glyphed:{cls:"trigger-glyph-noop password-trigger"}}},{xtype:"button",reference:"loginButton",scale:"large",ui:"soft-blue",iconAlign:"right",iconCls:"x-fa fa-angle-right",text:"Login",formBind:true,listeners:{click:"onLoginButton"}},{xtype:"component",html:'<div style="text-align:right"><a href="#login" class="link-forgot-password">or, sign in using other credentials</a></div>'}]}]}]},0,["lockscreen"],["component","box","container","panel","window","lockingwindow","lockscreen"],{component:true,box:true,container:true,panel:true,window:true,lockingwindow:true,lockscreen:true},["widget.lockscreen"],0,[Admin.view.authentication,"LockScreen"],0));(Ext.cmd.derive("Admin.view.authentication.Login",Admin.view.authentication.LockingWindow,{title:"Let's Log In",defaultFocus:"authdialog",items:[{xtype:"authdialog",defaultButton:"loginButton",autoComplete:true,bodyPadding:"20 20",cls:"auth-dialog-login",header:false,width:415,layout:{type:"vbox",align:"stretch"},defaults:{margin:"5 0"},items:[{xtype:"label",text:"Sign into your account"},{xtype:"textfield",cls:"auth-textbox",name:"userid",bind:"{userid}",height:55,hideLabel:true,allowBlank:false,emptyText:"user id",triggers:{glyphed:{cls:"trigger-glyph-noop auth-email-trigger"}}},{xtype:"textfield",cls:"auth-textbox",height:55,hideLabel:true,emptyText:"Password",inputType:"password",name:"password",bind:"{password}",allowBlank:false,triggers:{glyphed:{cls:"trigger-glyph-noop auth-password-trigger"}}},{xtype:"container",layout:"hbox",items:[{xtype:"checkboxfield",flex:1,cls:"form-panel-font-color rememberMeCheckbox",height:30,bind:"{persist}",boxLabel:"Remember me"},{xtype:"box",html:'<a href="#passwordreset" class="link-forgot-password"> Forgot Password ?</a>'}]},{xtype:"button",reference:"loginButton",scale:"large",ui:"soft-green",iconAlign:"right",iconCls:"x-fa fa-angle-right",text:"Login",formBind:true,listeners:{click:"onLoginButton"}},{xtype:"box",html:'<div class="outer-div"><div class="seperator">OR</div></div>',margin:"10 0"},{xtype:"button",scale:"large",ui:"facebook",iconAlign:"right",iconCls:"x-fa fa-facebook",text:"Login with Facebook",listeners:{click:"onFaceBookLogin"}},{xtype:"box",html:'<div class="outer-div"><div class="seperator">OR</div></div>',margin:"10 0"},{xtype:"button",scale:"large",ui:"gray",iconAlign:"right",iconCls:"x-fa fa-user-plus",text:"Create Account",listeners:{click:"onNewAccount"}}]}],initComponent:function(){this.addCls("user-login-register-container");Admin.view.authentication.LockingWindow.prototype.initComponent.apply(this,arguments)}},0,["login"],["component","box","container","panel","window","lockingwindow","login"],{component:true,box:true,container:true,panel:true,window:true,lockingwindow:true,login:true},["widget.login"],0,[Admin.view.authentication,"Login"],0));(Ext.cmd.derive("Admin.view.authentication.PasswordReset",Admin.view.authentication.LockingWindow,{title:"Reset Password",defaultFocus:"authdialog",items:[{xtype:"authdialog",width:455,defaultButton:"resetPassword",autoComplete:true,bodyPadding:"20 20",layout:{type:"vbox",align:"stretch"},defaults:{margin:"10 0"},cls:"auth-dialog-login",items:[{xtype:"label",cls:"lock-screen-top-label",text:"Enter your email address for further reset instructions"},{xtype:"textfield",cls:"auth-textbox",height:55,name:"email",hideLabel:true,allowBlank:false,emptyText:"user@example.com",vtype:"email",triggers:{glyphed:{cls:"trigger-glyph-noop auth-email-trigger"}}},{xtype:"button",reference:"resetPassword",scale:"large",ui:"soft-blue",formBind:true,iconAlign:"right",iconCls:"x-fa fa-angle-right",text:"Reset Password",listeners:{click:"onResetClick"}},{xtype:"component",html:'<div style="text-align:right"><a href="#login" class="link-forgot-password">Back to Log In</a></div>'}]}]},0,["passwordreset"],["component","box","container","panel","window","lockingwindow","passwordreset"],{component:true,box:true,container:true,panel:true,window:true,lockingwindow:true,passwordreset:true},["widget.passwordreset"],0,[Admin.view.authentication,"PasswordReset"],0));(Ext.cmd.derive("Admin.view.authentication.Register",Admin.view.authentication.LockingWindow,{title:"User Registration",defaultFocus:"authdialog",items:[{xtype:"authdialog",bodyPadding:"20 20",width:455,reference:"authDialog",defaultButton:"submitButton",autoComplete:true,cls:"auth-dialog-register",layout:{type:"vbox",align:"stretch"},defaults:{margin:"10 0",selectOnFocus:true},items:[{xtype:"label",cls:"lock-screen-top-label",text:"Create an account"},{xtype:"textfield",cls:"auth-textbox",height:55,hideLabel:true,allowBlank:false,emptyText:"Fullname",name:"fullName",bind:"{fullName}",triggers:{glyphed:{cls:"trigger-glyph-noop auth-email-trigger"}}},{xtype:"textfield",cls:"auth-textbox",height:55,hideLabel:true,allowBlank:false,name:"userid",bind:"{userid}",emptyText:"Username",triggers:{glyphed:{cls:"trigger-glyph-noop auth-email-trigger"}}},{xtype:"textfield",cls:"auth-textbox",height:55,hideLabel:true,allowBlank:false,name:"email",emptyText:"user@example.com",vtype:"email",bind:"{email}",triggers:{glyphed:{cls:"trigger-glyph-noop auth-envelope-trigger"}}},{xtype:"textfield",cls:"auth-textbox",height:55,hideLabel:true,allowBlank:false,emptyText:"Password",name:"password",inputType:"password",bind:"{password}",triggers:{glyphed:{cls:"trigger-glyph-noop auth-password-trigger"}}},{xtype:"checkbox",flex:1,name:"agrees",cls:"form-panel-font-color rememberMeCheckbox",height:32,bind:"{agrees}",allowBlank:false,boxLabel:"I agree with the Terms and Conditions",isValid:function(){var b=this;return b.checked||b.disabled}},{xtype:"button",scale:"large",ui:"soft-blue",formBind:true,reference:"submitButton",bind:false,margin:"5 0",iconAlign:"right",iconCls:"x-fa fa-angle-right",text:"Signup",listeners:{click:"onSignupClick"}},{xtype:"box",html:'<div class="outer-div"><div class="seperator">OR</div></div>'},{xtype:"button",scale:"large",ui:"facebook",margin:"5 0",iconAlign:"right",iconCls:"x-fa fa-facebook",text:"Login with Facebook",listeners:{click:"onFaceBookLogin"}},{xtype:"component",html:'<div style="text-align:right"><a href="#login" class="link-forgot-password">Back to Log In</a></div>'}]}]},0,["register"],["component","box","container","panel","window","lockingwindow","register"],{component:true,box:true,container:true,panel:true,window:true,lockingwindow:true,register:true},["widget.register"],0,[Admin.view.authentication,"Register"],0));(Ext.cmd.derive("Admin.view.charts.Charts",Ext.container.Container,{viewModel:{type:"charts"},layout:"responsivecolumn",defaults:{defaults:{animation:!Ext.isIE9m&&Ext.os.is.Desktop}},items:[{xtype:"chartsareapanel",userCls:"big-50 small-100"},{xtype:"chartspie3dpanel",userCls:"big-50 small-100"},{xtype:"chartspolarpanel",userCls:"big-50 small-100"},{xtype:"chartsstackedpanel",userCls:"big-50 small-100"},{xtype:"chartsbarpanel",userCls:"big-50 small-100"},{xtype:"chartsgaugepanel",userCls:"big-50 small-100"}]},0,["charts"],["component","box","container","charts"],{component:true,box:true,container:true,charts:true},["widget.charts"],0,[Admin.view.charts,"Charts"],0));(Ext.cmd.derive("Admin.view.dashboard.Dashboard",Ext.container.Container,{controller:"dashboard",viewModel:{type:"dashboard"},layout:"responsivecolumn",listeners:{hide:"onHideView"},items:[{xtype:"network",userCls:"big-60 small-100"},{xtype:"hddusage",userCls:"big-20 small-50"},{xtype:"earnings",userCls:"big-20 small-50"},{xtype:"sales",userCls:"big-20 small-50"},{xtype:"topmovies",userCls:"big-20 small-50"},{xtype:"weather",cls:"weather-panel shadow",userCls:"big-40 small-100"},{xtype:"todo",userCls:"big-60 small-100"},{xtype:"services",userCls:"big-40 small-100"}]},0,["admindashboard"],["component","box","container","admindashboard"],{component:true,box:true,container:true,admindashboard:true},["widget.admindashboard"],0,[Admin.view.dashboard,"Dashboard"],0));(Ext.cmd.derive("Admin.view.dashboard.Earnings",Ext.Panel,{title:"Earnings",ui:"light",iconCls:"x-fa fa-dollar",headerPosition:"bottom",cls:"quick-graph-panel shadow",height:130,layout:"fit",items:[{xtype:"cartesian",animation:!Ext.isIE9m&&Ext.os.is.Desktop,background:"#35baf6",colors:["#483D8B","#94ae0a","#a61120","#ff8809","#ffd13e","#a61187","#24ad9a","#7c7474","#a66111"],bind:{store:"{earnings}"},axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["yvalue"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"line",style:{stroke:"#FFFFFF","stroke-width":"2px"},xField:"xvalue",yField:["yvalue"]}],interactions:[{type:"panzoom"}]}],tools:[{xtype:"tool",cls:"quick-graph-panel-tool x-fa fa-ellipsis-v"}]},0,["earnings"],["component","box","container","panel","earnings"],{component:true,box:true,container:true,panel:true,earnings:true},["widget.earnings"],0,[Admin.view.dashboard,"Earnings"],0));(Ext.cmd.derive("Admin.view.dashboard.HDDUsage",Ext.panel.Panel,{title:"HDD Usage",ui:"light",iconCls:"x-fa fa-database",headerPosition:"bottom",cls:"quick-graph-panel shadow",height:130,layout:"fit",items:[{xtype:"cartesian",animation:!Ext.isIE9m&&Ext.os.is.Desktop,constrain:true,constrainHeader:true,background:"#70bf73",colors:["#a9d9ab"],bind:{store:"{hddusage}"},axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["yvalue"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"area",style:{stroke:"#FFFFFF","stroke-width":"2px"},useDarkerStrokeColor:false,xField:"xvalue",yField:["yvalue"]}],interactions:[{type:"panzoom"}]}]},0,["hddusage"],["component","box","container","panel","hddusage"],{component:true,box:true,container:true,panel:true,hddusage:true},["widget.hddusage"],0,[Admin.view.dashboard,"HDDUsage"],0));(Ext.cmd.derive("Admin.view.dashboard.Members",Ext.grid.Panel,{cls:"dashboard-member-grid shadow",bodyPadding:15,scroll:"none",hideHeaders:true,title:"Members",bind:"{subscriptions}",columns:[{xtype:"numbercolumn",cls:"dashboard-member-header-background",minHeight:35,width:20,dataIndex:"id",text:"#",format:"0,000"},{xtype:"gridcolumn",cls:"dashboard-member-header-background",flex:1,dataIndex:"name",text:"Name"},{xtype:"gridcolumn",cls:"dashboard-member-header-background",flex:1,dataIndex:"subscription",text:"Subscription",renderer:function(b){return"<span class='"+b+"'>"+b+"</span>"}},{xtype:"actioncolumn",items:[{xtype:"button",iconCls:"x-fa fa-pencil"},{xtype:"button",iconCls:"x-fa fa-close"}],cls:"dashboard-member-header-background",width:100,align:"left",dataIndex:"bool",text:"Actions",tooltip:"edit ",margin:"0 4 0 0"}],viewConfig:{cls:"dashboard-member-grid-view",width:"100%"}},0,["members"],["component","box","container","panel","tablepanel","gridpanel","grid","members"],{component:true,box:true,container:true,panel:true,tablepanel:true,gridpanel:true,grid:true,members:true},["widget.members"],0,[Admin.view.dashboard,"Members"],0));(Ext.cmd.derive("Admin.view.dashboard.Network",Ext.panel.Panel,{cls:"dashboard-main-chart shadow",height:380,bodyPadding:15,title:"Network",layout:{type:"vbox",align:"stretch"},tools:[{type:"refresh",toggleValue:false,listeners:{click:"onRefreshToggle"}},{type:"wrench"}],items:[{xtype:"container",flex:1,layout:"fit",items:[{xtype:"chartnetwork",bind:"{networkData}"}]},{xtype:"container",cls:"graph-analysis-left",height:138,layout:{type:"hbox",align:"stretch"},items:[{xtype:"container",flex:1,cls:"dashboard-graph-analysis-left",layout:{type:"vbox",align:"stretch"},items:[{xtype:"container",flex:1,padding:"10 0 10 0",layout:{type:"hbox",align:"stretch"},items:[{xtype:"component",flex:1,cls:"top-info-container",html:'<div class="inner"><span class="x-fa fa-pie-chart"></span><span class="dashboard-analytics-percentage"> 25% </span>server load</div>',padding:"15 10 10 0"},{xtype:"component",flex:1,cls:"top-info-container",html:'<div class="inner"><span class="x-fa fa-user"></span><span class="dashboard-analytics-percentage"> 156 </span> online users</div>',padding:"15 10 10 0"}]},{xtype:"progressbar",flex:1,cls:"left-top-text progressbar-no-text",height:3,hideMode:"offsets",margin:"0 15 0 0",maxHeight:5,minHeight:3,value:0.4},{xtype:"component",flex:1,cls:"left-top-text",html:"Tip: Download the analytics mobile app for real time updates on the server.",padding:"15 5 5 0",layout:{type:"hbox",align:"stretch"}}]},{xtype:"container",flex:1,cls:"graph-analysis-right",margin:"15 0 0 0",padding:"0 0 0 15",layout:{type:"vbox",align:"stretch"},itemPadding:"0 0 10 0",items:[{xtype:"container",flex:1,layout:{type:"hbox",align:"stretch"},padding:"0 0 10 0",items:[{xtype:"component",flex:1,cls:"graph-analysis-right-inner-container",html:"Visitors"},{xtype:"chartvisitors",flex:1,cls:"graph-analysis-right-inner-container right-value",bind:{store:"{visitors}"}}]},{xtype:"container",flex:1,layout:{type:"hbox",align:"stretch"},padding:"0 0 10 0",items:[{xtype:"component",flex:1,cls:"graph-analysis-right-inner-container",html:"Bounce Rates"},{xtype:"chartbounces",flex:1,cls:"graph-analysis-right-inner-container right-value",bind:{store:"{bounces}"}}]},{xtype:"container",flex:1,layout:{type:"hbox",align:"stretch"},padding:"0 0 10 0",items:[{xtype:"component",flex:1,cls:"graph-analysis-right-inner-container",html:"Today's Sales"},{xtype:"component",flex:1,cls:"graph-analysis-right-inner-container right-value",html:"189,000"}]},{xtype:"container",flex:1,layout:{type:"hbox",align:"stretch"},padding:"0 0 10 0",items:[{xtype:"component",flex:1,cls:"graph-analysis-right-inner-container",html:"Broken Links"},{xtype:"component",flex:1,cls:"graph-analysis-right-inner-container right-value",html:"4"}]}]}]}]},0,["network"],["component","box","container","panel","network"],{component:true,box:true,container:true,panel:true,network:true},["widget.network"],0,[Admin.view.dashboard,"Network"],0));(Ext.cmd.derive("Admin.view.dashboard.Sales",Ext.panel.Panel,{title:"Sales",ui:"light",iconCls:"x-fa fa-briefcase",headerPosition:"bottom",cls:"quick-graph-panel shadow",height:130,layout:"fit",items:[{xtype:"cartesian",animation:!Ext.isIE9m&&Ext.os.is.Desktop,height:75,background:"#8561c5",colors:["#ffffff"],bind:"{quarterlyGrowth}",axes:[{type:"category",fields:["xvalue"],hidden:true,position:"bottom"},{type:"numeric",fields:["yvalue"],grid:{odd:{fill:"#e8e8e8"}},hidden:true,position:"left"}],series:[{type:"bar",xField:"xvalue",yField:["yvalue"]}],interactions:[{type:"panzoom"}]}]},0,["sales"],["component","box","container","panel","sales"],{component:true,box:true,container:true,panel:true,sales:true},["widget.sales"],0,[Admin.view.dashboard,"Sales"],0));(Ext.cmd.derive("Admin.view.dashboard.Services",Ext.Panel,{cls:"service-type shadow",height:320,bodyPadding:15,title:"Services",layout:{type:"hbox",align:"stretch"},items:[{xtype:"container",width:140,defaults:{height:126,insetPadding:"7.5 7.5 7.5 7.5",background:"rgba(255, 255, 255, 1)",colors:["#6aa5dc","#fdbf00","#ee929d"],bind:"{servicePerformance}",series:[{type:"pie",label:{field:"xField",display:"rotate",contrast:true,font:"12px Arial"},useDarkerStrokeColor:false,xField:"yvalue",donut:50,padding:0}],interactions:[{type:"rotate"}]},items:[{xtype:"polar"},{xtype:"polar"}]},{xtype:"container",flex:1,layout:{type:"vbox",align:"stretch"},items:[{xtype:"component",data:{name:"Finance",value:"20%"},tpl:'<div class="left-aligned-div">{name}</div><div class="right-aligned-div">{value}</div>'},{xtype:"progressbar",cls:"bottom-indent service-finance",height:4,minHeight:4,value:0.2},{xtype:"component",data:{name:"Research",value:"68%"},tpl:'<div class="left-aligned-div">{name}</div><div class="right-aligned-div">{value}</div>'},{xtype:"progressbar",cls:"bottom-indent service-research",height:4,minHeight:4,value:0.68},{xtype:"component",data:{name:"Marketing",value:"12%"},tpl:'<div class="left-aligned-div">{name}</div><div class="right-aligned-div">{value}</div>'},{xtype:"progressbar",cls:"bottom-indent service-marketing",height:4,value:0.12},{xtype:"component",html:'<div class="services-text">The year 2015 saw a significant change in the job market for the industry. With increasing goverment expenditure on research & development, jobs in the research sector rose to 68% from 47% in the previous financial year. Share of jobs in the finance sector remained more or less constant while that in marketing sector dropped to 12%. The reduction in marketing jobs is attributed to increasing use of online advertising in recent years, which is largely automated.</div><div class="services-legend"><span><div class="legend-finance"></div>Finance</span><span><div class="legend-research"></div>Research</span><span><div class="legend-marketing"></div>Marketing</span><div>'}]}]},0,["services"],["component","box","container","panel","services"],{component:true,box:true,container:true,panel:true,services:true},["widget.services"],0,[Admin.view.dashboard,"Services"],0));(Ext.cmd.derive("Admin.view.dashboard.Todos",Ext.panel.Panel,{cls:"todo-list shadow-panel",title:"TODO List",height:320,bodyPadding:15,layout:"fit",items:[{xtype:"gridpanel",cls:"dashboard-todo-list",header:false,title:"My Grid Panel",hideHeaders:true,scroll:"none",bind:{store:"{todos}"},columns:[{xtype:"gridcolumn",dataIndex:"task",text:"Task",flex:1}],dockedItems:[{xtype:"container",layout:"hbox",dock:"bottom",padding:"10 0 0 0",items:[{xtype:"textfield",flex:1,fieldLabel:"Add Task",hideLabel:true,width:540,emptyText:"Add New Task"},{xtype:"button",ui:"soft-green",width:40,iconCls:"x-fa fa-plus",margin:"0 0 0 10"}]}],selModel:{selType:"checkboxmodel"}}]},0,["todo"],["component","box","container","panel","todo"],{component:true,box:true,container:true,panel:true,todo:true},["widget.todo"],0,[Admin.view.dashboard,"Todos"],0));(Ext.cmd.derive("Admin.view.dashboard.TopMovie",Ext.panel.Panel,{title:"Top Movie",ui:"light",iconCls:"x-fa fa-video-camera",headerPosition:"bottom",cls:"quick-graph-panel shadow",height:130,layout:"fit",items:[{xtype:"polar",animation:!Ext.isIE9m&&Ext.os.is.Desktop,height:75,background:"#33abaa",colors:["#115fa6","#94ae0a","#a61120","#ff8809","#ffd13e","#a61187","#24ad9a","#7c7474","#a66111"],radius:100,bind:"{topMovies}",series:[{type:"pie",colors:["#ffffff"],label:{field:"x",display:"rotate",contrast:true,font:"12px Arial"},xField:"yvalue"}],interactions:[{type:"rotate"}]}]},0,["topmovies"],["component","box","container","panel","topmovies"],{component:true,box:true,container:true,panel:true,topmovies:true},["widget.topmovies"],0,[Admin.view.dashboard,"TopMovie"],0));(Ext.cmd.derive("Admin.view.dashboard.Widgets",Ext.Panel,{cls:"dashboard-widget-block shadow",bodyPadding:15,title:"Widgets",layout:{type:"vbox",align:"stretch"},items:[{xtype:"slider",width:400,fieldLabel:"Single Slider",value:40},{xtype:"tbspacer",flex:0.3},{xtype:"multislider",width:400,fieldLabel:"Range Slider",values:[10,40]},{xtype:"tbspacer",flex:0.3},{xtype:"pagingtoolbar",width:360,displayInfo:false},{xtype:"tbspacer",flex:0.3},{xtype:"progressbar",cls:"widget-progressbar",value:0.4},{xtype:"tbspacer"}]},0,["dashboardwidgetspanel"],["component","box","container","panel","dashboardwidgetspanel"],{component:true,box:true,container:true,panel:true,dashboardwidgetspanel:true},["widget.dashboardwidgetspanel"],0,[Admin.view.dashboard,"Widgets"],0));(Ext.cmd.derive("Admin.view.email.Compose",Ext.form.Panel,{viewModel:{type:"emailcompose"},controller:"emailcompose",cls:"email-compose",layout:{type:"vbox",align:"stretch"},bodyPadding:10,scrollable:true,defaults:{labelWidth:60,labelSeparator:""},items:[{xtype:"textfield",fieldLabel:"To"},{xtype:"textfield",fieldLabel:"Subject"},{xtype:"htmleditor",flex:1,minHeight:100,labelAlign:"top",fieldLabel:"Message"}],bbar:{overflowHandler:"menu",items:[{xtype:"filefield",width:400,labelWidth:80,fieldLabel:"Attachment",labelSeparator:"",buttonConfig:{xtype:"filebutton",glyph:"",iconCls:"x-fa fa-cloud-upload",text:"Browse"}},"->",{xtype:"button",ui:"soft-red",text:"Discard",handler:"onComposeDiscardClick"},{xtype:"button",ui:"gray",text:"Save"},{xtype:"button",ui:"soft-green",text:"Send"}]}},0,["emailcompose"],["component","box","container","panel","form","emailcompose"],{component:true,box:true,container:true,panel:true,form:true,emailcompose:true},["widget.emailcompose"],0,[Admin.view.email,"Compose"],0));(Ext.cmd.derive("Admin.view.email.ComposeViewController",Ext.app.ViewController,{onComposeDiscardClick:function(d){var c=d.up("window");if(c){c.close()}}},0,0,0,0,["controller.emailcompose"],0,[Admin.view.email,"ComposeViewController"],0));(Ext.cmd.derive("Admin.view.email.ComposeViewModel",Ext.app.ViewModel,{},0,0,0,0,["viewmodel.emailcompose"],0,[Admin.view.email,"ComposeViewModel"],0));(Ext.cmd.derive("Admin.view.email.DetailsViewModel",Ext.app.ViewModel,{},0,0,0,0,["viewmodel.emaildetails"],0,[Admin.view.email,"DetailsViewModel"],0));(Ext.cmd.derive("Admin.view.email.Details",Ext.form.Panel,{viewModel:{type:"emaildetails"},cls:"shadow",bodyPadding:10,layout:{type:"anchor",anchor:"100%"},listeners:{beforerender:"beforeDetailsRender"},tbar:[{iconCls:"x-fa fa-angle-left",listeners:{click:"onBackBtnClick"}},{iconCls:"x-fa fa-trash"},{iconCls:"x-fa fa-exclamation-circle"},{iconCls:"x-fa fa-print"},{iconCls:"x-fa fa-forward"}],bbar:{cls:"single-mail-action-button",defaults:{margin:"0 15 0 0"},items:["->",{ui:"gray",text:"Save"},{ui:"soft-green",text:"Send"}]},items:[{xtype:"container",height:82,layout:{type:"hbox",align:"stretch"},items:[{xtype:"image",itemId:"userImage",cls:"email-sender-img",alt:"profileImage",height:80,width:80},{xtype:"component",flex:1,cls:"single-mail-email-subject",data:{},itemId:"emailSubjectContainer",padding:10,tpl:['<div class="user-name">{from}</div>','<div class="user-info">{title}</div>']}]},{xtype:"box",cls:"mail-body",itemId:"mailBody"},{xtype:"box",itemId:"attachments",cls:"attachment-container",data:null,tpl:['<tpl for=".">','<img class="single-mail-attachment" src="resources/images/{.}" ','alt="profile image">',"</tpl>"]},{xtype:"htmleditor",height:250,fieldLabel:"Reply",labelAlign:"top",labelSeparator:""}]},0,["emaildetails"],["component","box","container","panel","form","emaildetails"],{component:true,box:true,container:true,panel:true,form:true,emaildetails:true},["widget.emaildetails"],0,[Admin.view.email,"Details"],0));(Ext.cmd.derive("Admin.view.email.Email",Ext.container.Container,{controller:"email",viewModel:{type:"email"},itemId:"emailMainContainer",layout:{type:"hbox",align:"stretch"},margin:"20 0 0 20",items:[{xtype:"container",itemId:"navigationPanel",layout:{type:"vbox",align:"stretch"},width:"30%",minWidth:180,maxWidth:240,defaults:{cls:"navigation-email",margin:"0 20 20 0"},items:[{xtype:"emailmenu",listeners:{click:"onMenuClick"}},{xtype:"emailfriendslist"}]},{xtype:"container",itemId:"contentPanel",margin:"0 20 20 0",flex:1,layout:{type:"anchor",anchor:"100%"}}]},0,["email"],["component","box","container","email"],{component:true,box:true,container:true,email:true},["widget.email"],0,[Admin.view.email,"Email"],0));(Ext.cmd.derive("Admin.view.email.EmailController",Ext.app.ViewController,{init:function(){this.setCurrentView("inbox")},onBackBtnClick:function(){this.setCurrentView("inbox")},onMenuClick:function(c,d){if(d&&d.routeId==="emailcompose"){this.setCurrentView(d.routeId,d.params)}},setCurrentView:function(e,g){var h=this.getView().down("#contentPanel");if(!h||e===""||(h.down()&&h.down().xtype===e)){return false}if(g&&g.openWindow){var f=Ext.apply({xtype:"emailwindow",items:[Ext.apply({xtype:e},g.targetCfg)]},g.windowCfg);Ext.create(f)}else{Ext.suspendLayouts();h.removeAll(true);h.add(Ext.apply({xtype:e},g));Ext.resumeLayouts(true)}},onGridCellItemClick:function(e,g,h,f){if(h>1){this.setCurrentView("emaildetails",{record:f})}else{if(h===1){f.set("favorite",!f.get("favorite"))}}},beforeDetailsRender:function(c){var d=c.record?c.record:{};c.down("#mailBody").setHtml(d.get("contents"));c.down("#attachments").setData(d.get("attachments"));c.down("#emailSubjectContainer").setData(d.data?d.data:{});c.down("#userImage").setSrc("resources/images/user-profile/"+d.get("user_id")+".png")}},0,0,0,0,["controller.email"],0,[Admin.view.email,"EmailController"],0));(Ext.cmd.derive("Admin.view.email.FriendsList",Ext.menu.Menu,{viewModel:{type:"emailfriendslist"},controller:"emailfriendslist",title:"Friends",cls:"navigation-email",iconCls:"x-fa fa-group",floating:false},0,["emailfriendslist"],["component","box","container","panel","menu","emailfriendslist"],{component:true,box:true,container:true,panel:true,menu:true,emailfriendslist:true},["widget.emailfriendslist"],0,[Admin.view.email,"FriendsList"],0));(Ext.cmd.derive("Admin.view.email.FriendsListViewController",Ext.app.ViewController,{init:function(){var d=this,c=d.getViewModel().getStore("friends");c.on("load",function(a){a.sort()});c.on("sort",function(a){d.mutateData(a,a.getRange())});Ext.app.ViewController.prototype.init.apply(this,arguments)},mutateData:function(j,k){var l=this.getView(),g=[],h=k.length,i;for(i=0;i<h;i++){g.push({xtype:"menuitem",text:k[i].get("name"),cls:"font-icon "+(k[i].get("online")?"online-user":"offline-user")})}Ext.suspendLayouts();l.removeAll(true);l.add(g);Ext.resumeLayouts(true)}},0,0,0,0,["controller.emailfriendslist"],0,[Admin.view.email,"FriendsListViewController"],0));(Ext.cmd.derive("Admin.view.email.FriendsListViewModel",Ext.app.ViewModel,{stores:{friends:{type:"emailfriends",autoLoad:true}}},0,0,0,0,["viewmodel.emailfriendslist"],0,[Admin.view.email,"FriendsListViewModel"],0));(Ext.cmd.derive("Admin.view.email.Inbox",Ext.grid.Panel,{cls:"email-inbox-panel shadow",bind:{store:"{inbox}"},viewConfig:{preserveScrollOnRefresh:true,preserveScrollOnReload:true},selModel:{selType:"checkboxmodel",checkOnly:true,showHeaderCheckbox:true},listeners:{cellclick:"onGridCellItemClick"},headerBorders:false,rowLines:false,columns:[{dataIndex:"favorite",menuDisabled:true,text:'<span class="x-fa fa-heart"></span>',width:40,renderer:function(b){return'<span class="x-fa fa-heart'+(b?"":"-o")+'"></span>'}},{dataIndex:"from",text:"From",width:140},{dataIndex:"title",text:"Title",flex:1},{dataIndex:"has_attachments",text:'<span class="x-fa fa-paperclip"></span>',width:40,renderer:function(b){return b?'<span class="x-fa fa-paperclip"></span>':""}},{xtype:"datecolumn",dataIndex:"received_on",width:90,text:"Received"}]},0,["inbox"],["component","box","container","panel","tablepanel","gridpanel","grid","inbox"],{component:true,box:true,container:true,panel:true,tablepanel:true,gridpanel:true,grid:true,inbox:true},["widget.inbox"],0,[Admin.view.email,"Inbox"],0));(Ext.cmd.derive("Admin.view.email.Menu",Ext.menu.Menu,{viewModel:{type:"emailmenu"},title:"Email",iconCls:"x-fa fa-inbox",floating:false,items:[{routeId:"emailcompose",params:{openWindow:true,targetCfg:{},windowCfg:{title:"Compose Message"}},iconCls:"x-fa fa-edit",text:"Compose"},{routeId:"",iconCls:"x-fa fa-inbox",text:"Inbox"},{routeId:"",iconCls:"x-fa fa-check-circle",text:"Sent Mail"},{routeId:"",iconCls:"x-fa fa-exclamation-circle",text:"Spam"},{routeId:"",iconCls:"x-fa fa-trash-o",text:"Trash"}]},0,["emailmenu"],["component","box","container","panel","menu","emailmenu"],{component:true,box:true,container:true,panel:true,menu:true,emailmenu:true},["widget.emailmenu"],0,[Admin.view.email,"Menu"],0));(Ext.cmd.derive("Admin.view.email.MenuViewModel",Ext.app.ViewModel,{},0,0,0,0,["viewmodel.emailmenu"],0,[Admin.view.email,"MenuViewModel"],0));(Ext.cmd.derive("Admin.view.email.Window",Ext.window.Window,{autoShow:true,modal:true,layout:"fit",width:200,height:200,afterRender:function(){var b=this;Ext.window.Window.prototype.afterRender.apply(this,arguments);b.syncSize();Ext.on(b.resizeListeners={resize:b.onViewportResize,scope:b,buffer:50})},onDestroy:function(){Ext.un(this.resizeListeners);Ext.window.Window.prototype.onDestroy.call(this)},onViewportResize:function(){this.syncSize()},syncSize:function(){var c=Ext.Element.getViewportWidth(),d=Ext.Element.getViewportHeight();this.setSize(Math.floor(c*0.9),Math.floor(d*0.9));this.setXY([Math.floor(c*0.05),Math.floor(d*0.05)])}},0,["emailwindow"],["component","box","container","panel","window","emailwindow"],{component:true,box:true,container:true,panel:true,window:true,emailwindow:true},["widget.emailwindow"],0,[Admin.view.email,"Window"],0));(Ext.cmd.derive("Admin.view.forms.WizardFormModel",Ext.app.ViewModel,{data:{atBeginning:true,atEnd:false}},0,0,0,0,["viewmodel.wizardform"],0,[Admin.view.forms,"WizardFormModel"],0));(Ext.cmd.derive("Admin.view.forms.WizardForm",Ext.panel.Panel,{bodyPadding:15,height:340,layout:"card",viewModel:{type:"wizardform"},controller:"wizardform",defaults:{defaultFocus:"textfield:not([value]):focusable:not([disabled])",defaultButton:"nextbutton"},items:[{xtype:"form",defaultType:"textfield",defaults:{labelWidth:90,labelAlign:"top",labelSeparator:"",submitEmptyText:false,anchor:"100%"},items:[{emptyText:"Username must be unique."},{emptyText:"ex: me@somewhere.com"},{emptyText:"Enter a password",inputType:"password",cls:"wizard-form-break"},{emptyText:"Passwords must match",inputType:"password"}]},{xtype:"form",defaultType:"textfield",defaults:{labelWidth:90,labelAlign:"top",labelSeparator:"",submitEmptyText:false,anchor:"100%"},items:[{emptyText:"First Name"},{emptyText:"Last Name"},{emptyText:"Company"},{xtype:"fieldcontainer",cls:"wizard-form-break",fieldLabel:"MemberType",defaultType:"radiofield",defaults:{flex:1},layout:"hbox",items:[{boxLabel:"Free",name:"MemberType",inputValue:"Free"},{boxLabel:"Personal",name:"MemberType",inputValue:"Perosnal"},{boxLabel:"Black",name:"MemberType",inputValue:"Business"}]}]},{xtype:"form",defaultType:"textfield",defaults:{labelWidth:90,labelAlign:"top",labelSeparator:"",submitEmptyText:false,anchor:"100%"},items:[{emptyText:"Phone number"},{emptyText:"Address"},{emptyText:"City"},{emptyText:"Postal Code / Zip Code"}]},{xtype:"form",items:[{html:"<h2>Thank You</h2><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>"}]}],initComponent:function(){this.tbar={reference:"progress",defaultButtonUI:"wizard-"+this.colorScheme,cls:"wizardprogressbar",defaults:{disabled:true,iconAlign:"top"},layout:{pack:"center"},items:[{step:0,iconCls:"fa fa-info",pressed:true,enableToggle:true,text:"Account"},{step:1,iconCls:"fa fa-user",enableToggle:true,text:"Profile"},{step:2,iconCls:"fa fa-home",enableToggle:true,text:"Address"},{step:3,iconCls:"fa fa-heart",enableToggle:true,text:"Finish"}]};this.bbar={reference:"navigation-toolbar",margin:8,items:["->",{text:"Previous",ui:this.colorScheme,formBind:true,bind:{disabled:"{atBeginning}"},listeners:{click:"onPreviousClick"}},{text:"Next",ui:this.colorScheme,formBind:true,reference:"nextbutton",bind:{disabled:"{atEnd}"},listeners:{click:"onNextClick"}}]};Ext.panel.Panel.prototype.initComponent.call(this)}},0,["wizardform"],["component","box","container","panel","wizardform"],{component:true,box:true,container:true,panel:true,wizardform:true},["widget.wizardform"],0,[Admin.view.forms,"WizardForm"],0));(Ext.cmd.derive("Admin.view.forms.WizardFormController",Ext.app.ViewController,{init:function(e){var f=this.lookupReference("navigation-toolbar"),h=f.items.items,g=e.colorScheme;if(g){h[1].setUI(g);h[2].setUI(g)}},onNextClick:function(c){var d=c.up("panel");d.getViewModel().set("atBeginning",false);this.navigate(c,d,"next")},onPreviousClick:function(c){var d=c.up("panel");d.getViewModel().set("atEnd",false);this.navigate(c,d,"prev")},navigate:function(q,u,n){var o=u.getLayout(),v=this.lookupReference("progress"),p=u.getViewModel(),t=v.items.items,i,r,s,m;o[n]();s=o.getActiveItem();m=u.items.indexOf(s);for(r=0;r<t.length;r++){i=t[r];if(m===i.step){i.setPressed(true)}else{i.setPressed(false)}if(Ext.isIE8){i.btnIconEl.syncRepaint()}}s.focus();if(m===0){p.set("atBeginning",true)}if(m===3){p.set("atEnd",true)}}},0,0,0,0,["controller.wizardform"],0,[Admin.view.forms,"WizardFormController"],0));(Ext.cmd.derive("Admin.view.forms.WizardOne",Ext.panel.Panel,{cls:"wizardone shadow",plugins:"responsive",responsiveConfig:{"width >= 1000":{layout:{type:"box",align:"stretch",vertical:false}},"width < 1000":{layout:{type:"box",align:"stretch",vertical:true}}},items:[{xtype:"specialoffer",plugins:"responsive",height:338,responsiveConfig:{"width < 1000":{flex:null},"width >= 1000":{flex:1}}},{xtype:"wizardform",cls:"wizardone",colorScheme:"blue",flex:1}]},0,["formswizardone"],["component","box","container","panel","formswizardone"],{component:true,box:true,container:true,panel:true,formswizardone:true},["widget.formswizardone"],0,[Admin.view.forms,"WizardOne"],0));(Ext.cmd.derive("Admin.view.forms.Wizards",Ext.container.Container,{cls:"wizards",defaultFocus:"wizardform",layout:"responsivecolumn",items:[{xtype:"formswizardone",userCls:"big-100"},{xtype:"wizardform",cls:"wizardtwo shadow",colorScheme:"soft-purple",userCls:"big-50 small-100"},{xtype:"wizardform",cls:"wizardthree shadow",colorScheme:"soft-green",userCls:"big-50 small-100"}]},0,["forms"],["component","box","container","forms"],{component:true,box:true,container:true,forms:true},["widget.forms"],0,[Admin.view.forms,"Wizards"],0));(Ext.cmd.derive("Admin.view.main.MainContainerWrap",Ext.container.Container,{scrollable:"y",layout:{type:"hbox",align:"stretchmax",animate:true,animatePolicy:{x:true,width:true}},beforeLayout:function(){var d=this,e=Ext.Element.getViewportHeight()-64,f=d.getComponent("navigationTreeList");d.minHeight=e;f.setStyle({"min-height":e+"px"});Ext.container.Container.prototype.beforeLayout.apply(this,arguments)}},0,["maincontainerwrap"],["component","box","container","maincontainerwrap"],{component:true,box:true,container:true,maincontainerwrap:true},["widget.maincontainerwrap"],0,[Admin.view.main,"MainContainerWrap"],0));(Ext.cmd.derive("Admin.view.main.MainController",Ext.app.ViewController,{listen:{controller:{"#":{unmatchedroute:"onRouteChange"}}},routes:{":node":"onRouteChange"},lastView:null,setCurrentView:function(x){x=(x||"").toLowerCase();var p=this,n=p.getReferences(),v=n.mainCardPanel,r=v.getLayout(),u=n.navigationTreeList,m=u.getStore(),t=m.findNode("routeId",x)||m.findNode("viewType",x),o=(t&&t.get("viewType"))||"page404",q=p.lastView,w=v.child("component[routeId="+x+"]"),s;if(q&&q.isWindow){q.destroy()}q=r.getActiveItem();if(!w){s=Ext.create({xtype:o,routeId:x,hideMode:"offsets"})}if(!s||!s.isWindow){if(w){if(w!==q){r.setActiveItem(w)}s=w}else{Ext.suspendLayouts();r.setActiveItem(v.add(s));Ext.resumeLayouts(true)}}u.setSelection(t);if(s.isFocusable(true)){s.focus()}p.lastView=s},onNavigationTreeSelectionChange:function(e,d){var f=d&&(d.get("routeId")||d.get("viewType"));if(f){this.redirectTo(f)}},onToggleNavigationSize:function(){var j=this,k=j.getReferences(),i=k.navigationTreeList,l=k.mainContainerWrap,h=!i.getMicro(),g=h?64:250;if(Ext.isIE9m||!Ext.os.is.Desktop){Ext.suspendLayouts();k.senchaLogo.setWidth(g);i.setWidth(g);i.setMicro(h);Ext.resumeLayouts();l.layout.animatePolicy=l.layout.animate=null;l.updateLayout()}else{if(!h){i.setMicro(false)}k.senchaLogo.animate({dynamic:true,to:{width:g}});i.width=g;l.updateLayout({isRoot:true});i.el.addCls("nav-tree-animating");if(h){i.on({afterlayoutanimation:function(){i.setMicro(true);i.el.removeCls("nav-tree-animating")},single:true})}}},onMainViewRender:function(){if(!window.location.hash){this.redirectTo("dashboard")}},onRouteChange:function(b){this.setCurrentView(b)},onSearchRouteChange:function(){this.setCurrentView("searchresults")},onSwitchToModern:function(){Ext.Msg.confirm("Switch to Modern","Are you sure you want to switch toolkits?",this.onSwitchToModernConfirmed,this)},onSwitchToModernConfirmed:function(d){if(d==="yes"){var c=location.search;c=c.replace(/(^\?|&)classic($|&)/,"").replace(/^\?/,"");location.search=("?modern&"+c).replace(/&$/,"")}},onEmailRouteChange:function(){this.setCurrentView("email")}},0,0,0,0,["controller.main"],0,[Admin.view.main,"MainController"],0));(Ext.cmd.derive("Admin.view.main.MainModel",Ext.app.ViewModel,{data:{currentView:null}},0,0,0,0,["viewmodel.main"],0,[Admin.view.main,"MainModel"],0));(Ext.cmd.derive("Admin.view.pages.BlankPage",Ext.container.Container,{anchor:"100% -1",layout:{type:"vbox",pack:"center",align:"center"},items:[{xtype:"box",cls:"blank-page-container",html:"<div class='fa-outer-class'><span class='x-fa fa-clock-o'></span></div><h1>Coming Soon!</h1><span class='blank-page-text'>Stay tuned for updates</span>"}]},0,["pageblank"],["component","box","container","pageblank"],{component:true,box:true,container:true,pageblank:true},["widget.pageblank"],0,[Admin.view.pages,"BlankPage"],0));(Ext.cmd.derive("Admin.view.pages.ErrorBase",Ext.window.Window,{controller:"authentication",autoShow:true,cls:"error-page-container",closable:false,title:"Sencha",titleAlign:"center",maximized:true,modal:true,layout:{type:"vbox",align:"center",pack:"center"}},0,0,["component","box","container","panel","window"],{component:true,box:true,container:true,panel:true,window:true},0,0,[Admin.view.pages,"ErrorBase"],0));(Ext.cmd.derive("Admin.view.pages.Error404Window",Admin.view.pages.ErrorBase,{items:[{xtype:"container",width:400,cls:"error-page-inner-container",layout:{type:"vbox",align:"center",pack:"center"},items:[{xtype:"label",cls:"error-page-top-text",text:"404"},{xtype:"label",cls:"error-page-desc",html:'<div>Seems you\'ve hit a wall!</div><div>Try going back to our <a href="#dashboard"> Home page </a></div>'},{xtype:"tbspacer",flex:1}]}]},0,["page404"],["component","box","container","panel","window","page404"],{component:true,box:true,container:true,panel:true,window:true,page404:true},["widget.page404"],0,[Admin.view.pages,"Error404Window"],0));(Ext.cmd.derive("Admin.view.pages.Error500Window",Admin.view.pages.ErrorBase,{items:[{xtype:"container",width:600,cls:"error-page-inner-container",layout:{type:"vbox",align:"center",pack:"center"},items:[{xtype:"label",cls:"error-page-top-text",text:"500"},{xtype:"label",cls:"error-page-desc",html:'<div>Something went wrong and server could not process your request.</div><div>Try going back to our <a href="#dashboard"> Home page </a></div>'},{xtype:"tbspacer",flex:1}]}]},0,["page500"],["component","box","container","panel","window","page500"],{component:true,box:true,container:true,panel:true,window:true,page500:true},["widget.page500"],0,[Admin.view.pages,"Error500Window"],0));(Ext.cmd.derive("Admin.view.pages.FAQ",Ext.container.Container,{layout:{type:"hbox",align:"stretch"},padding:10,items:[{xtype:"panel",cls:"faq-left-sidebar shadow",margin:10,header:false,ui:"light",responsiveConfig:{"width < 1000":{width:0,visible:false},"width >= 1000 && width < 1600":{width:230,visible:true},"width >= 1600":{width:300,visible:true}},items:[{xtype:"panel",title:"Useful Tips",ui:"light",cls:"shadow pages-faq-container",iconCls:"x-fa fa-lightbulb-o",html:"<p>We have created the following list of tips for our users. We hope that they will help you get the most of this website.</p> \n<ul class='faq-tips-list'><li class='pointone'>Point One</li><li class='pointtwo'>Point Two</li><li class='pointthree'>Point Three</li>\n<li class='pointfour'>Point Four</li></ul>",bodyPadding:15},{xtype:"panel",bodyPadding:20,ui:"light",cls:"shadow pages-faq-container",iconCls:"x-fa fa-question",title:"Can't find the answer?",layout:{type:"vbox",align:"stretch"},items:[{xtype:"box",html:"<p>Help is just an email or a phone call away. If you cannot find what you are looking for on this page, our customer service representatives will be happy to help you.</p><br>"},{xtype:"button",ui:"soft-blue",margin:"20 20 20 20",text:"Contact Us"}]}],plugins:[{ptype:"responsive"}]},{xtype:"panel",ui:"light",margin:10,flex:1,cls:"pages-faq-container shadow",iconCls:"x-fa fa-question-circle",title:"FAQs",bodyPadding:15,items:[{xtype:"panel",cls:"FAQPanel",layout:"accordion",title:"General",height:340,ui:"light",defaults:{html:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},items:[{title:"How can I access high resolution images?",iconCls:"x-fa fa-caret-down"},{title:"Can I download the application on my PC?",iconCls:"x-fa fa-caret-down"},{title:"How often does the database get updated?",iconCls:"x-fa fa-caret-down"},{title:"Can I use the downloaded images on a commercial website?",iconCls:"x-fa fa-caret-down"}]},{xtype:"panel",cls:"FAQPanel",layout:"accordion",title:"Account",height:340,bodyPadding:10,ui:"light",defaults:{html:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},items:[{title:"What are the different membership plans?",iconCls:"x-fa fa-caret-down"},{title:"Can I change my plan in between?",iconCls:"x-fa fa-caret-down"},{title:"How can I deactivate my account?",iconCls:"x-fa fa-caret-down"},{title:"Can I transfer my account to another user?",iconCls:"x-fa fa-caret-down"}]},{xtype:"panel",cls:"FAQPanel",layout:"accordion",title:"Payment",height:300,bodyPadding:10,ui:"light",defaults:{html:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."},items:[{title:"What are the payment methods you accept?",iconCls:"x-fa fa-caret-down"},{title:"What is the refund policy?",iconCls:"x-fa fa-caret-down"},{title:"How long does it take to process my payment?",iconCls:"x-fa fa-caret-down"}]}]}]},0,["faq"],["component","box","container","faq"],{component:true,box:true,container:true,faq:true},["widget.faq"],0,[Admin.view.pages,"FAQ"],0));(Ext.cmd.derive("Admin.view.profile.ShareUpdate",Ext.panel.Panel,{bodyPadding:10,layout:"fit",cls:"share-panel",items:[{xtype:"textareafield",emptyText:"What's on your mind?"}],bbar:{defaults:{margin:"0 10 5 0"},items:[{ui:"header",iconCls:"x-fa fa-video-camera"},{ui:"header",iconCls:"x-fa fa-camera"},{ui:"header",iconCls:"x-fa fa-file"},"->",{text:"Share",ui:"soft-blue"}]}},0,["profileshare"],["component","box","container","panel","profileshare"],{component:true,box:true,container:true,panel:true,profileshare:true},["widget.profileshare"],0,[Admin.view.profile,"ShareUpdate"],0));(Ext.cmd.derive("Admin.view.profile.UserProfile",Admin.view.profile.UserProfileBase,{cls:"userProfile-container",layout:"responsivecolumn",items:[{xtype:"profileshare",userCls:"big-100 small-100 shadow"},{xtype:"profilesocial",userCls:"big-50 small-100 shadow"},{xtype:"profiledescription",userCls:"big-50 small-100 shadow"},{xtype:"profilenotifications",userCls:"big-50 small-100 shadow"},{xtype:"profiletimeline",userCls:"big-50 small-100 shadow"}]},0,["profile"],["component","box","container","profile"],{component:true,box:true,container:true,profile:true},["widget.profile"],0,[Admin.view.profile,"UserProfile"],0));(Ext.cmd.derive("Admin.view.search.Results",Ext.tab.Panel,{controller:"searchresults",viewModel:{type:"searchresults"},cls:"shadow",activeTab:0,margin:20,items:[{xtype:"gridpanel",cls:"allRecordsCls",scrollable:false,hideHeaders:true,border:false,title:"All",routeId:"all",bind:"{allResults}",viewConfig:{preserveScrollOnRefresh:true,stripeRows:false},columns:[{xtype:"gridcolumn",renderer:function(i,f,g,h){var j="<div class='resultsItemCls'><div class='resultsTitleCls'>"+g.data.title+"</div><div class='resultsUrlCls'><a href='#'>"+g.data.url+"</a></div><div class='resultsContentCls'>"+g.data.content+"</div></div>";if(h===3){j="<div class='imageRowCls'><img src='resources/images/img1.jpg' alt='Dandelion' class='search-result-attachment'><img src='resources/images/img2.jpg' alt='Landscape' class='search-result-attachment'></div>"}return j},dataIndex:"content",flex:1}],dockedItems:[{xtype:"pagingtoolbar",dock:"bottom",displayInfo:true,bind:"{allResults}"}]},{xtype:"gridpanel",cls:"user-grid",title:"User Results",routeId:"user",bind:"{usersResults}",columns:[{xtype:"gridcolumn",width:40,dataIndex:"identifier",text:"#"},{xtype:"gridcolumn",renderer:function(b){return"<img src='resources/images/user-profile/"+b+"' alt='Profile Pic' height='40px' width='40px'>"},width:75,dataIndex:"profile_pic",text:"User"},{xtype:"gridcolumn",cls:"content-column",dataIndex:"fullname",text:"Name",flex:1},{xtype:"gridcolumn",cls:"content-column",dataIndex:"email",text:"Email",flex:1},{xtype:"datecolumn",cls:"content-column",width:120,dataIndex:"joinDate",text:"Date"},{xtype:"gridcolumn",cls:"content-column",dataIndex:"subscription",text:"Subscription",flex:1},{xtype:"actioncolumn",items:[{xtype:"button",iconCls:"x-fa fa-pencil"},{xtype:"button",iconCls:"x-fa fa-close"},{xtype:"button",iconCls:"x-fa fa-ban"}],cls:"content-column",width:120,dataIndex:"bool",text:"Actions",tooltip:"edit "}],dockedItems:[{xtype:"pagingtoolbar",dock:"bottom",itemId:"userPaginationToolbar",displayInfo:true,bind:"{usersResults}"}]},{xtype:"gridpanel",cls:"email-inbox-panel",itemId:"messagesGrid",hideHeaders:true,title:"Messages",routeId:"messages",bind:"{inboxResults}",columns:[{xtype:"gridcolumn",renderer:function(b){if(b){return'<span class="x-fa fa-heart"></span>'}return'<span class="x-fa fa-heart-o"></span>'},width:45,dataIndex:"favorite"},{xtype:"gridcolumn",dataIndex:"from",flex:1},{xtype:"gridcolumn",dataIndex:"title",flex:2},{xtype:"gridcolumn",renderer:function(b){return b?'<span class="x-fa fa-paperclip"></span>':""},dataIndex:"has_attachments"},{xtype:"datecolumn",dataIndex:"received_on"}],dockedItems:[{xtype:"pagingtoolbar",dock:"bottom",itemId:"pagingToolbar",prependButtons:true,bind:"{inboxResults}"}]}]},0,["searchresults"],["component","box","container","panel","tabpanel","searchresults"],{component:true,box:true,container:true,panel:true,tabpanel:true,searchresults:true},["widget.searchresults"],0,[Admin.view.search,"Results"],0));(Ext.cmd.derive("Admin.view.search.ResultsController",Ext.app.ViewController,{},0,0,0,0,["controller.searchresults"],0,[Admin.view.search,"ResultsController"],0));(Ext.cmd.derive("Admin.view.search.ResultsModel",Ext.app.ViewModel,{stores:{allResults:{type:"searchresults"},usersResults:{type:"searchusers"},inboxResults:{type:"inbox"}}},0,0,0,0,["viewmodel.searchresults"],0,[Admin.view.search,"ResultsModel"],0));(Ext.cmd.derive("Admin.view.widgets.WidgetA",Ext.panel.Panel,{cls:"admin-widget shadow",items:[{xtype:"image",cls:"widget-top-container-first-img",height:66,width:66,alt:"profile-image",src:"resources/images/user-profile/3.png"},{xtype:"component",cls:"widget-top-first-container postion-class",height:135},{xtype:"container",cls:"widget-bottom-first-container postion-class",height:135,padding:"30 0 0 0",layout:{type:"vbox",align:"center"},items:[{xtype:"label",cls:"widget-name-text",html:"John Doe"},{xtype:"label",html:"Administrator"},{xtype:"toolbar",cls:"widget-tool-button",flex:1,items:[{ui:"soft-green",text:"Follow"},{ui:"soft-blue",text:"Message"}]}]}]},0,["widget-a"],["component","box","container","panel","widget-a"],{component:true,box:true,container:true,panel:true,"widget-a":true},["widget.widget-a"],0,[Admin.view.widgets,"WidgetA"],0));(Ext.cmd.derive("Admin.view.widgets.WidgetB",Ext.panel.Panel,{cls:"admin-widget shadow",items:[{xtype:"image",cls:"widget-top-container-first-img",height:66,width:66,alt:"profile-image",src:"resources/images/user-profile/4.png"},{xtype:"component",cls:"widget-top-second-container postion-class",height:135},{xtype:"container",cls:"widget-bottom-first-container postion-class",height:135,padding:"30 0 0 0",layout:{type:"vbox",align:"center"},items:[{xtype:"label",cls:"widget-name-text",html:"Lucy Moon"},{xtype:"label",html:"Web and Graphic designer"},{xtype:"toolbar",flex:1,items:[{ui:"facebook",iconCls:"x-fa fa-facebook"},{ui:"soft-cyan",iconCls:"x-fa fa-twitter"},{ui:"soft-red",iconCls:"x-fa fa-google-plus"},{ui:"soft-purple",iconCls:"x-fa fa-envelope"}]}]}]},0,["widget-b"],["component","box","container","panel","widget-b"],{component:true,box:true,container:true,panel:true,"widget-b":true},["widget.widget-b"],0,[Admin.view.widgets,"WidgetB"],0));(Ext.cmd.derive("Admin.view.widgets.WidgetC",Ext.panel.Panel,{cls:"admin-widget shadow",items:[{xtype:"image",cls:"widget-top-container-first-img",height:66,width:66,alt:"profile-image",src:"resources/images/user-profile/1.png"},{xtype:"component",cls:"widget-top-first-third-container postion-class",height:135},{xtype:"container",cls:"widget-bottom-first-container postion-class",height:135,padding:"30 0 0 0",layout:{type:"vbox",align:"center",pack:"center"},items:[{xtype:"label",cls:"widget-name-text",html:"Donald Brown"},{xtype:"label",html:"Software Engineer"},{xtype:"toolbar",flex:1,cls:"widget-follower-toolbar",width:"100%",margin:"20 0 0 0",defaults:{xtype:"displayfield",flex:1,labelAlign:"top"},items:[{value:'<div class="label">Following</div><div>1,345</div>'},{cls:"widget-follower-tool-label",value:'<div class="label">Followers</div><div>23,456</div>'},{value:'<div class="label">Likes</div><div>52,678</div>'}]}]}]},0,["widget-c"],["component","box","container","panel","widget-c"],{component:true,box:true,container:true,panel:true,"widget-c":true},["widget.widget-c"],0,[Admin.view.widgets,"WidgetC"],0));(Ext.cmd.derive("Admin.view.widgets.WidgetD",Ext.panel.Panel,{cls:"admin-widget shadow",items:[{xtype:"image",cls:"widget-top-container-first-img",height:66,width:66,alt:"profile-image",src:"resources/images/user-profile/2.png"},{xtype:"component",cls:"widget-top-first-fourth-container postion-class",height:135},{xtype:"container",cls:"widget-bottom-first-container postion-class",height:135,padding:"30 0 0 0",layout:{type:"vbox",align:"center",pack:"center"},items:[{xtype:"label",cls:"widget-name-text",html:"Goff Smith"},{xtype:"label",html:"Project manager"},{xtype:"toolbar",flex:1,cls:"widget-tool-button",items:[{ui:"soft-green",text:"Follow"},{ui:"soft-blue",text:"Message"}]}]}]},0,["widget-d"],["component","box","container","panel","widget-d"],{component:true,box:true,container:true,panel:true,"widget-d":true},["widget.widget-d"],0,[Admin.view.widgets,"WidgetD"],0));(Ext.cmd.derive("Admin.view.widgets.WidgetE",Ext.panel.Panel,{cls:"admin-widget-small sale-panel info-card-item shadow",containerColor:"",height:170,data:{amount:0,type:"",icon:""},tpl:'<div><h2>{amount}</h2><div>{type}</div><span class="x-fa fa-{icon}"></span></div>',initComponent:function(){var b=this;Ext.apply(b,{cls:b.config.containerColor});Ext.panel.Panel.prototype.initComponent.apply(this,arguments)}},0,["widget-e"],["component","box","container","panel","widget-e"],{component:true,box:true,container:true,panel:true,"widget-e":true},["widget.widget-e"],0,[Admin.view.widgets,"WidgetE"],0));(Ext.cmd.derive("Admin.view.widgets.WidgetF",Admin.view.widgets.WidgetE,{cls:"admin-widget info-card-item info-card-large-wrap shadow",height:280,tpl:'<div><span class="x-fa fa-{icon}"></span><h2>{amount}</h2><div class="infodiv">{type}</div></div>'},0,["widget-f"],["component","box","container","panel","widget-e","widget-f"],{component:true,box:true,container:true,panel:true,"widget-e":true,"widget-f":true},["widget.widget-f"],0,[Admin.view.widgets,"WidgetF"],0));(Ext.cmd.derive("Admin.view.widgets.Widgets",Ext.container.Container,{layout:"responsivecolumn",defaults:{xtype:"container"},items:[{xtype:"widget-a",userCls:"big-50 small-100"},{xtype:"widget-b",userCls:"big-50 small-100"},{xtype:"widget-c",userCls:"big-50 small-100"},{xtype:"widget-d",userCls:"big-50 small-100"},{xtype:"widget-e",containerColor:"cornflower-blue",userCls:"big-33 small-50",data:{amount:840,type:"Sales",icon:"shopping-cart"}},{xtype:"widget-e",containerColor:"green",userCls:"big-33 small-50",data:{amount:611,type:"Messages",icon:"envelope"}},{xtype:"widget-e",containerColor:"magenta",userCls:"big-33 small-50",data:{amount:792,type:"Lines of Code",icon:"code"}},{xtype:"widget-e",containerColor:"orange",userCls:"big-33 small-50",data:{amount:637,type:"Users",icon:"plus-circle"}},{xtype:"widget-e",containerColor:"blue",userCls:"big-33 small-50",data:{amount:112,type:"Servers",icon:"tasks"}},{xtype:"widget-e",containerColor:"pink",userCls:"big-33 small-50",data:{amount:244,type:"Files",icon:"file-text"}},{xtype:"widget-f",containerColor:"cornflower-blue",userCls:"big-50 small-100",data:{amount:840,type:"Sales",icon:"shopping-cart"}},{xtype:"widget-f",containerColor:"green",userCls:"big-50 small-100",data:{amount:611,type:"Messages",icon:"envelope"}},{xtype:"widget-f",containerColor:"magenta",userCls:"big-50 small-100",data:{amount:792,type:"Lines of Code",icon:"code"}},{xtype:"widget-f",containerColor:"pink",userCls:"big-50 small-100",data:{amount:244,type:"Files",icon:"file-text"}}]},0,["widgets"],["component","box","container","widgets"],{component:true,box:true,container:true,widgets:true},["widget.widgets"],0,[Admin.view.widgets,"Widgets"],0));Ext.application({name:"Admin",extend:Admin.Application});