/*
This file is part of Ext JS 7.0.0.156

Copyright (c) 2011-2019 Sencha Inc

license: http://www.sencha.com/legal/sencha-software-license-agreement
Contact: http://www.sencha.com/contact

Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial
Software License Agreement referenced above or, alternatively, in accordance with the
terms contained in a written agreement between you and Sencha.

If you are unsure which license is appropriate for your use, please contact the sales department
at http://www.sencha.com/contact.

Version: 7.0.0.156 Build date: 2019-08-22 21:19:41 (23a4f5eb33e19b67a3a5d753d762ff78e836bdf1)

*/
var Ext=Ext||{};Ext.Boot=Ext.Boot||(function(f){var c=document,e=[],k={disableCaching:(/[?&](?:cache|disableCacheBuster)\b/i.test(location.search)||!(/http[s]?\:/i.test(location.href))||/(^|[ ;])ext-cache=1/.test(c.cookie))?!1:!0,disableCachingParam:'_dc',loadDelay:!1,preserveScripts:!0,charset:'UTF-8'},m={},n=/\.css(?:\?|$)/i,i=c.createElement('a'),j=typeof window!=='undefined',d={browser:j,node:!j&&(typeof require==='function'),phantom:(window&&(window._phantom||window.callPhantom))||/PhantomJS/.test(window.navigator.userAgent)},b=(Ext.platformTags={}),g=function(b,a,c){if(c){g(b,c)}if(b&&a&&typeof a==='object'){for(var d in a){b[d]=a[d]}}return b},l=function(){var d=!1,g=Array.prototype.shift.call(arguments),a,c,e,b;if(typeof arguments[arguments.length-1]==='boolean'){d=Array.prototype.pop.call(arguments)}e=arguments.length;for(a=0;a<e;a++){b=arguments[a];if(typeof b==='object'){for(c in b){g[d?c.toLowerCase():c]=b[c]}}}return g},h=(typeof Object.keys=='function')?function(a){if(!a){return []}return Object.keys(a)}:function(b){var c=[],a;for(a in b){if(b.hasOwnProperty(a)){c.push(a)}}return c},a={loading:0,loaded:0,apply:g,env:d,config:k,assetConfig:m,scripts:{},currentFile:null,suspendedQueue:[],currentRequest:null,syncMode:!1,useElements:!0,listeners:[],Request:Request,Entry:Entry,allowMultipleBrowsers:!1,browserNames:{ie:'IE',firefox:'Firefox',safari:'Safari',chrome:'Chrome',opera:'Opera',dolfin:'Dolfin',edge:'Edge',webosbrowser:'webOSBrowser',chromeMobile:'ChromeMobile',chromeiOS:'ChromeiOS',silk:'Silk',other:'Other'},osNames:{ios:'iOS',android:'Android',windowsPhone:'WindowsPhone',webos:'webOS',blackberry:'BlackBerry',rimTablet:'RIMTablet',mac:'MacOS',win:'Windows',tizen:'Tizen',linux:'Linux',bada:'Bada',chromeOS:'ChromeOS',other:'Other'},browserPrefixes:{ie:'MSIE ',edge:'Edge/',firefox:'Firefox/',chrome:'Chrome/',safari:'Version/',opera:'OPR/',dolfin:'Dolfin/',webosbrowser:'wOSBrowser/',chromeMobile:'CrMo/',chromeiOS:'CriOS/',silk:'Silk/'},browserPriority:['edge','opera','dolfin','webosbrowser','silk','chromeiOS','chromeMobile','ie','firefox','safari','chrome'],osPrefixes:{tizen:'(Tizen )',ios:'i(?:Pad|Phone|Pod)(?:.*)CPU(?: iPhone)? OS ',android:'(Android |HTC_|Silk/)',windowsPhone:'Windows Phone ',blackberry:'(?:BlackBerry|BB)(?:.*)Version/',rimTablet:'RIM Tablet OS ',webos:'(?:webOS|hpwOS)/',bada:'Bada/',chromeOS:'CrOS '},fallbackOSPrefixes:{windows:'win',mac:'mac',linux:'linux'},devicePrefixes:{iPhone:'iPhone',iPod:'iPod',iPad:'iPad'},maxIEVersion:12,detectPlatformTags:function(){var c=this,e=navigator.userAgent,i=/Mobile(\/|\s)/.test(e),d=document.createElement('div'),k=function(e,c){if(c===undefined){c=window}var a='on'+e.toLowerCase(),b=(a in d);if(!b){if(d.setAttribute&&d.removeAttribute){d.setAttribute(a,'');b=typeof d[a]==='function';if(typeof d[a]!=='undefined'){d[a]=undefined}d.removeAttribute(a)}}return b},m=function(){var d={},j,g,l,i,b,n,h,a,k;n=c.browserPriority.length;for(b=0;b<n;b++){i=c.browserPriority[b];if(!k){l=c.browserPrefixes[i];h=e.match(new RegExp('('+l+')([\\w\\._]+)'));a=h&&h.length>1?parseInt(h[2]):0;if(a){k=!0}}else {a=0}d[i]=a}if(d.ie){var m=document.documentMode;if(m>=8){d.ie=m}}a=d.ie||!1;j=Math.max(a,c.maxIEVersion);for(b=8;b<=j;++b){g='ie'+b;d[g+'m']=a?a<=b:0;d[g]=a?a===b:0;d[g+'p']=a?a>=b:0}return d},j=function(){var j={},l,d,g,b,m,a,i,k,n;g=h(c.osPrefixes);m=g.length;for(b=0,n=0;b<m;b++){d=g[b];l=c.osPrefixes[d];a=e.match(new RegExp('('+l+')([^\\s;]+)'));i=a?a[1]:null;if(i&&(i==='HTC_'||i==='Silk/')){k=2.3}else {k=a&&a.length>1?parseFloat(a[a.length-1]):0}if(k){n++}j[d]=k}g=h(c.fallbackOSPrefixes);m=g.length;for(b=0;b<m;b++){d=g[b];if(n===0){l=c.fallbackOSPrefixes[d];a=e.toLowerCase().match(new RegExp(l));j[d]=a?!0:0}else {j[d]=0}}return j},n=function(){var g={},j,d,b,a,k,i;b=h(c.devicePrefixes);k=b.length;for(a=0;a<k;a++){d=b[a];j=c.devicePrefixes[d];i=e.match(new RegExp(j));g[d]=i?!0:0}return g},o=m(),q=j(),p=n(),g=a.loadPlatformsParam();l(b,o,q,p,g,!0);b.phone=!!((b.iphone||b.ipod)||(!b.silk&&(b.android&&(b.android<3||i)))||(b.blackberry&&i)||(b.windowsphone));b.tablet=!!(!b.phone&&(b.ipad||b.android||b.silk||b.rimtablet||(b.ie10&&/; Touch/.test(e))));b.touch=k('touchend')||navigator.maxTouchPoints||navigator.msMaxTouchPoints;b.desktop=!b.phone&&!b.tablet;b.cordova=b.phonegap=!!(window.PhoneGap||window.Cordova||window.cordova);b.webview=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(e);b.androidstock=(b.android<=4.3)&&(b.safari||b.silk);l(b,g,!0)},loadPlatformsParam:function(){var k=window.location.search.substr(1),g=k.split("&"),e={},a,h={},b,i,d,j,c;for(a=0;a<g.length;a++){b=g[a].split("=");e[b[0]]=b[1]}if(e.platformTags){b=e.platformTags.split(",");for(i=b.length,a=0;a<i;a++){d=b[a].split(":");j=d[0];c=!0;if(d.length>1){c=d[1];if(c==='false'||c==='0'){c=!1}}h[j]=c}}return h},filterPlatform:function(g,d){g=e.concat(g||e);d=e.concat(d||e);var j=g.length,i=d.length,c=(!j&&i),a,h;for(a=0;a<j&&!c;a++){h=g[a];c=!!b[h]}for(a=0;a<i&&c;a++){h=d[a];c=!b[h]}return c},init:function(){var g=c.getElementsByTagName('script'),b=g[0],m=g.length,n=/\/ext(\-[a-z\-]+)?\.js$/,l,e,h,d,k,i,j;a.hasReadyState=("readyState" in b);a.hasAsync=("async" in b);a.hasDefer=("defer" in b);a.hasOnLoad=("onload" in b);a.isIE8=a.hasReadyState&&!a.hasAsync&&a.hasDefer&&!a.hasOnLoad;a.isIE9=a.hasReadyState&&!a.hasAsync&&a.hasDefer&&a.hasOnLoad;a.isIE10p=a.hasReadyState&&a.hasAsync&&a.hasDefer&&a.hasOnLoad;if(a.isIE8){a.isIE10=!1;a.isIE10m=!0}else {a.isIE10=navigator.appVersion.indexOf('MSIE 10')!==-1;a.isIE10m=a.isIE10||a.isIE9||a.isIE8}a.isIE11=a.isIE10p&&!a.isIE10;for(i=0;i<m;i++){e=(b=g[i]).src;if(!e){continue}h=b.readyState||null;if(!d&&n.test(e)){d=e}if(!a.scripts[k=a.canonicalUrl(e)]){l=new Entry({key:k,url:e,done:h===null||h==='loaded'||h==='complete',el:b,prop:'src'})}}if(!d){b=g[g.length-1];d=b.src}a.baseUrl=d.substring(0,d.lastIndexOf('/')+1);j=window.location.origin||window.location.protocol+"//"+window.location.hostname+(window.location.port?':'+window.location.port:'');a.origin=j;a.detectPlatformTags();Ext.filterPlatform=a.filterPlatform},canonicalUrl:function(g){i.href=g;var b=i.href,e=k.disableCachingParam,c=e?b.indexOf(e+'='):-1,d,a;if(c>0&&((d=b.charAt(c-1))==='?'||d==='&')){a=b.indexOf('&',c);a=(a<0)?'':b.substring(a);if(a&&d==='?'){++c;a=a.substring(1)}b=b.substring(0,c-1)+a}return b},getConfig:function(b){return b?a.config[b]:a.config},setConfig:function(b,d){if(typeof b==='string'){a.config[b]=d}else {for(var c in b){a.setConfig(c,b[c])}}return a},getHead:function(){return a.docHead||(a.docHead=c.head||c.getElementsByTagName('head')[0])},create:function(e,c,d){var b=d||{};b.url=e;b.key=c;return a.scripts[c]=new Entry(b)},getEntry:function(d,g,e){var c,b;c=e?d:a.canonicalUrl(d);b=a.scripts[c];if(!b){b=a.create(d,c,g);if(e){b.canonicalPath=!0}}return b},registerContent:function(e,c,b){var d={content:b,loaded:!0,css:c==='css'};return a.getEntry(e,d)},processRequest:function(a,b){a.loadEntries(b)},load:function(b){var b=new Request(b);if(b.sync||a.syncMode){return a.loadSync(b)}if(a.currentRequest){b.getEntries();a.suspendedQueue.push(b)}else {a.currentRequest=b;a.processRequest(b,!1)}return a},loadSync:function(b){var b=new Request(b);a.syncMode++;a.processRequest(b,!0);a.syncMode--;return a},loadBasePrefix:function(b){b=new Request(b);b.prependBaseUrl=!0;return a.load(b)},loadSyncBasePrefix:function(b){b=new Request(b);b.prependBaseUrl=!0;return a.loadSync(b)},requestComplete:function(c){var b;if(a.currentRequest===c){a.currentRequest=null;while(a.suspendedQueue.length>0){b=a.suspendedQueue.shift();if(!b.done){a.load(b);break}}}if(!a.currentRequest&&a.suspendedQueue.length==0){a.fireListeners()}},isLoading:function(){return !a.currentRequest&&a.suspendedQueue.length==0},fireListeners:function(){var b;while(a.isLoading()&&(b=a.listeners.shift())){b()}},onBootReady:function(b){if(!a.isLoading()){b()}else {a.listeners.push(b)}},getPathsFromIndexes:function(a,d){if(!('length' in a)){var c=[],b;for(b in a){if(!isNaN(+b)){c[+b]=a[b]}}a=c}return Request.prototype.getPathsFromIndexes(a,d)},createLoadOrderMap:function(a){return Request.prototype.createLoadOrderMap(a)},fetch:function(k,e,j,b){b=(b===undefined)?!!e:b;var a=new XMLHttpRequest(),c,i,h,g=!1,d=function(){if(a&&a.readyState==4){i=(a.status===1223)?204:(a.status===0&&((self.location||{}).protocol==='file:'||(self.location||{}).protocol==='ionp:'))?200:a.status;h=a.responseText;c={content:h,status:i,exception:g};if(e){e.call(j,c)}a.onreadystatechange=f;a=null}};if(b){a.onreadystatechange=d}try{a.open('GET',k,b);a.send(null)}catch(o){g=o;d();return c}if(!b){d()}return c},notifyAll:function(a){a.notifyRequests()}};function Request(b){if(b.$isRequest){return b}var b=b.url?b:{url:b},c=b.url,e=c.charAt?[c]:c,d=b.charset||a.config.charset;g(this,b);delete this.url;this.urls=e;this.charset=d}Request.prototype={$isRequest:!0,createLoadOrderMap:function(d){var e=d.length,c={},a,b;for(a=0;a<e;a++){b=d[a];c[b.path]=b}return c},getLoadIndexes:function(b,e,o,m,n){var g=[],k=[b],i=b.idx,k,j,d,c,h,l;if(e[i]){return g}e[i]=g[i]=!0;while(b=k.shift()){if(b.canonicalPath){j=a.getEntry(b.path,null,!0)}else {j=a.getEntry(this.prepareUrl(b.path))}if(!(n&&j.done)){if(m&&b.uses&&b.uses.length){d=b.requires.concat(b.uses)}else {d=b.requires}for(h=0,l=d.length;h<l;h++){c=d[h];if(!e[c]){e[c]=g[c]=!0;k.push(o[c])}}}}return g},getPathsFromIndexes:function(b,e){var c=[],a,d;for(a=0,d=b.length;a<d;a++){if(b[a]){c.push(e[a].path)}}return c},expandUrl:function(d,a,e,i,g,h){var c,b;if(a){c=e[d];if(c){b=this.getLoadIndexes(c,i,a,g,h);if(b.length){return this.getPathsFromIndexes(b,a)}}}return [d]},expandUrls:function(a,n){var e=this,j=e.loadOrder,c=[],k={},o=[],b,i,g,m,h,l,d;if(typeof a==="string"){a=[a]}if(j){b=e.loadOrderMap;if(!b){b=e.loadOrderMap=e.createLoadOrderMap(j)}}for(g=0,m=a.length;g<m;g++){i=this.expandUrl(a[g],j,b,o,n,!1);for(h=0,l=i.length;h<l;h++){d=i[h];if(!k[d]){k[d]=!0;c.push(d)}}}if(c.length===0){c=a}return c},expandLoadOrder:function(){var a=this,c=a.urls,b;if(!a.expanded){b=this.expandUrls(c,!0);a.expanded=!0}else {b=c}a.urls=b;if(c.length!=b.length){a.sequential=!0}return a},getUrls:function(){this.expandLoadOrder();return this.urls},prepareUrl:function(b){if(this.prependBaseUrl){return a.baseUrl+b}return b},getEntries:function(){var b=this,c=b.entries,e,h,d,g,i,j;if(!c){c=[];i=b.getUrls();if(b.loadOrder){e=b.loadOrderMap}for(d=0;d<i.length;d++){j=b.prepareUrl(i[d]);if(e){h=e[j]}g=a.getEntry(j,{buster:b.buster,charset:b.charset},h&&h.canonicalPath);g.requests.push(b);c.push(g)}b.entries=c}return c},loadEntries:function(g){var a=this,c=a.getEntries(),h=c.length,i=a.loadStart||0,d,c,e,b;if(g!==undefined){a.sync=g}a.loaded=a.loaded||0;a.loading=a.loading||h;for(b=i;b<h;b++){e=c[b];if(!e.loaded){d=c[b].load(a.sync)}else {d=!0}if(!d){a.loadStart=b;e.onDone(function(){a.loadEntries(g)});break}}a.processLoadedEntries()},processLoadedEntries:function(){var a=this,d=a.getEntries(),g=d.length,e=a.startIndex||0,c,b;if(!a.done){for(c=e;c<g;c++){b=d[c];if(!b.loaded){a.startIndex=c;return}if(!b.evaluated){b.evaluate()}if(b.error){a.error=!0}}a.notify()}},notify:function(){var b=this;if(!b.done){var e=b.error,d=b[e?'failure':'success'],c=('delay' in b)?b.delay:(e?1:a.config.chainDelay),g=b.scope||b;b.done=!0;if(d){if(c===0||c>0){setTimeout(function(){d.call(g,b)},c)}else {d.call(g,b)}}b.fireListeners();a.requestComplete(b)}},onDone:function(b){var a=this,c=a.listeners||(a.listeners=[]);if(a.done){b(a)}else {c.push(b)}},fireListeners:function(){var a=this.listeners,b;if(a){while((b=a.shift())){b(this)}}}};function Entry(c){if(c.$isEntry){return c}var j=c.charset||a.config.charset,i=Ext.manifest,e=i&&i.loader,d=(c.cache!==undefined)?c.cache:(e&&e.cache),b,h;if(a.config.disableCaching){if(d===undefined){d=!a.config.disableCaching}if(d===!1){b=+new Date()}else if(d!==!0){b=d}if(b){h=(e&&e.cacheParam)||a.config.disableCachingParam;b=h+"="+b}}g(this,c);this.charset=j;this.buster=b;this.requests=[]}Entry.prototype={$isEntry:!0,done:!1,evaluated:!1,loaded:!1,isCrossDomain:function(){var b=this;if(b.crossDomain===undefined){b.crossDomain=(b.getLoadUrl().indexOf(a.origin)!==0)}return b.crossDomain},isCss:function(){var b=this;if(b.css===undefined){if(b.url){var c=a.assetConfig[b.url];b.css=c?c.type==="css":n.test(b.url)}else {b.css=!1}}return this.css},getElement:function(e){var d=this,b=d.el;if(!b){if(d.isCss()){e=e||"link";b=c.createElement(e);if(e=="link"){b.rel='stylesheet';d.prop='href'}else {d.prop="textContent"}b.type="text/css"}else {e=e||"script";b=c.createElement(e);b.type='text/javascript';d.prop='src';if(d.charset){b.charset=d.charset}if(a.hasAsync){b.async=!1}}d.el=b}return b},getLoadUrl:function(){var b=this,c;c=b.canonicalPath?b.url:a.canonicalUrl(b.url);if(!b.loadUrl){b.loadUrl=!!b.buster?(c+(c.indexOf('?')===-1?'?':'&')+b.buster):c}return b.loadUrl},fetch:function(b){var e=this.getLoadUrl(),d=!!b.async,c=b.complete;a.fetch(e,c,this,d)},onContentLoaded:function(c){var a=this,b=c.status,e=c.content,g=c.exception,h=this.getLoadUrl();a.loaded=!0;if((g||b===0)&&!d.phantom){a.error=!0;a.evaluated=!0}else if((b>=200&&b<300)||b===304||d.phantom||(b===0&&e.length>0)){a.content=e}else {a.error=!0;a.evaluated=!0}},createLoadElement:function(b){var c=this,d=c.getElement();c.preserve=!0;d.onerror=function(){c.error=!0;if(b){b();b=null}};if(a.isIE10m){d.onreadystatechange=function(){if(this.readyState==='loaded'||this.readyState==='complete'){if(b){b();b=this.onreadystatechange=this.onerror=null}}}}else {d.onload=function(){b();b=this.onload=this.onerror=null}}d[c.prop]=c.getLoadUrl()},onLoadElementReady:function(){a.getHead().appendChild(this.getElement());this.evaluated=!0},inject:function(h,m){var g=this,d=a.getHead(),l=g.url,i=g.key,b,e,k,j;if(g.isCss()){g.preserve=!0;j=i.substring(0,i.lastIndexOf("/")+1);b=c.createElement('base');b.href=j;if(d.firstChild){d.insertBefore(b,d.firstChild)}else {d.appendChild(b)}b.href=b.href;if(l){h+="\n/*# sourceURL="+i+" */"}e=g.getElement("style");k=('styleSheet' in e);d.appendChild(b);if(k){d.appendChild(e);e.styleSheet.cssText=h}else {e.textContent=h;d.appendChild(e)}d.removeChild(b)}else {if(l){h+="\n//# sourceURL="+i}Ext.globalEval(h)}return g},loadCrossDomain:function(){var a=this,b=function(){a.el.onerror=a.el.onload=f;a.el=null;a.loaded=a.evaluated=a.done=!0;a.notifyRequests()};a.createLoadElement(function(){b()});a.evaluateLoadElement();return !1},loadElement:function(){var a=this,b=function(){a.el.onerror=a.el.onload=f;a.el=null;a.loaded=a.evaluated=a.done=!0;a.notifyRequests()};a.createLoadElement(function(){b()});a.evaluateLoadElement();return !0},loadSync:function(){var a=this;a.fetch({async:!1,complete:function(b){a.onContentLoaded(b)}});a.evaluate();a.notifyRequests()},load:function(c){var b=this;if(!b.loaded){if(b.loading){return !1}b.loading=!0;if(!c){if(a.isIE10||b.isCrossDomain()){return b.loadCrossDomain()}else if(!b.isCss()&&a.hasReadyState){b.createLoadElement(function(){b.loaded=!0;b.notifyRequests()})}else if(a.useElements&&!(b.isCss()&&d.phantom)){return b.loadElement()}else {b.fetch({async:!c,complete:function(a){b.onContentLoaded(a);b.notifyRequests()}})}}else {b.loadSync()}}return !0},evaluateContent:function(){this.inject(this.content);this.content=null},evaluateLoadElement:function(){a.getHead().appendChild(this.getElement())},evaluate:function(){var a=this;if(!a.evaluated){if(a.evaluating){return}a.evaluating=!0;if(a.content!==undefined){a.evaluateContent()}else if(!a.error){a.evaluateLoadElement()}a.evaluated=a.done=!0;a.cleanup()}},cleanup:function(){var c=this,a=c.el,b;if(!a){return}if(!c.preserve){c.el=null;a.parentNode.removeChild(a);for(b in a){try{if(b!==c.prop){a[b]=null}delete a[b]}catch(o){}}}a.onload=a.onerror=a.onreadystatechange=f},notifyRequests:function(){var b=this.requests,d=b.length,a,c;for(a=0;a<d;a++){c=b[a];c.processLoadedEntries()}if(this.done){this.fireListeners()}},onDone:function(b){var a=this,c=a.listeners||(a.listeners=[]);if(a.done){b(a)}else {c.push(b)}},fireListeners:function(){var a=this.listeners,b;if(a&&a.length>0){while((b=a.shift())){b(this)}}}};Ext.disableCacheBuster=function(b,d){var a=new Date();a.setTime(a.getTime()+(b?10*365:-1)*24*60*60*1000);a=a.toGMTString();c.cookie='ext-cache=1; expires='+a+'; path='+(d||'/')};a.init();return a}(function(){}));Ext.globalEval=Ext.globalEval||(this.execScript?function(a){execScript(a)}:function(a){eval.call(window,a)});if(!Function.prototype.bind){(function(){var a=Array.prototype.slice,b=function(d){var b=a.call(arguments,1),c=this;if(b.length){return function(){var e=arguments;return c.apply(d,e.length?b.concat(a.call(e)):b)}}b=null;return function(){return c.apply(d,arguments)}};Function.prototype.bind=b;b.$extjs=!0}())}Ext.setResourcePath=function(b,d){var a=Ext.manifest||(Ext.manifest={}),c=a.resources||(a.resources={});if(a){if(typeof b!=='string'){Ext.apply(c,b)}else {c[b]=d}a.resources=c}};Ext.getResourcePath=function(b,f,d){if(typeof b!=='string'){f=b.pool;d=b.packageName;b=b.path}var e=Ext.manifest,g=e&&e.resources,a=g[f],c=[];if(a==null){a=g.path;if(a==null){a='resources'}}if(a){c.push(a)}if(d){c.push(d)}c.push(b);return c.join('/')};var Ext=Ext||{};(function(){var d=this,l=Object.prototype,c=l.toString,b=['valueOf','toLocaleString','toString','constructor'],a=Ext.fireIdle=function(){},f=function(){},e=function(a){return a},k=function(){var a=k.caller.caller;return a.$owner.prototype[a.$name].apply(this,arguments)},o=Ext.manifest||{},m=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/,n=/^\\?\/Date\(([-+])?(\d+)(?:[+-]\d{4})?\)\\?\/$/,h,j,i,g,p;Ext.global=d;Ext.$nextIid=0;Ext.now=Date.now||(Date.now=function(){return +new Date()});Ext.ticks=(d.performance&&d.performance.now)?function(){return performance.now()}:Ext.now;Ext._startTime=Ext.ticks();a.$nullFn=e.$nullFn=a.$emptyFn=e.$identityFn=f.$nullFn=!0;f.$privacy='framework';a.$noClearOnDestroy=e.$noClearOnDestroy=!0;f.$noClearOnDestroy=!0;Ext['suspendLayouts']=Ext['resumeLayouts']=a;for(p in {toString:1}){b=null}Ext.enumerables=b;Ext.apply=function(c,a,g){var e,f,d;if(c){if(g){Ext.apply(c,g)}if(a&&typeof a==='object'){for(e in a){c[e]=a[e]}if(b){for(f=b.length;f--;){d=b[f];if(a.hasOwnProperty(d)){c[d]=a[d]}}}}}return c};function addInstanceOverrides(d,e,c){var a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];if(typeof b==='function'){b.$name=a;b.$owner=e;b.$previous=d.hasOwnProperty(a)?d[a]:k}d[a]=b}}}Ext.buildSettings=Ext.apply({baseCSSPrefix:'x-'},Ext.buildSettings||{});Ext.apply(Ext,{idSeed:0,idPrefix:'ext-',isRobot:!1,isSecure:/^https/i.test(window.location.protocol),enableGarbageCollector:!1,enableListenerCollection:!0,name:Ext.sandboxName||'Ext',privateFn:f,emptyFn:a,identityFn:e,frameStartTime:Ext.now(),manifest:o,enableAria:!0,startsWithHashRe:/^#/,validIdRe:/^[a-z_][a-z0-9\-_]*$/i,BLANK_IMAGE_URL:'data:image/gif;base64,R0lGODlhAQABAID/AMDAwAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',makeIdSelector:function(a){return '#'+a},id:function(a,c){if(a&&a.id){return a.id}var b=(c||Ext.idPrefix)+(++Ext.idSeed);if(a){a.id=b}return b},returnId:function(a){return a.getId()},returnTrue:function(){return !0},emptyString:new String(),emptyArray:Object.freeze?Object.freeze([]):[],baseCSSPrefix:Ext.buildSettings.baseCSSPrefix,$eventNameMap:{},$vendorEventRe:/^(DOMMouse|Moz.+|MS.+|webkit.+)/,canonicalEventName:function(a){return Ext.$eventNameMap[a]||(Ext.$eventNameMap[a]=(Ext.$vendorEventRe.test(a)?a:a.toLowerCase()))},applyIf:function(c,b){var a;if(c&&b&&typeof b==='object'){for(a in b){if(c[a]===undefined){c[a]=b[a]}}}return c},destroy:function(){var c=arguments.length,b,a;for(b=0;b<c;b++){a=arguments[b];if(a){if(Ext.isArray(a)){this.destroy.apply(this,a)}else if(Ext.isFunction(a.destroy)&&!a.destroyed){a.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(a,b){if(a.$isClass){a.override(b)}else if(typeof a==='function'){Ext.apply(a.prototype,b)}else {var c=a.self,d;if(c&&c.$isClass){d=b.privates;if(d){b=Ext.apply({},b);delete b.privates;addInstanceOverrides(a,c,d)}addInstanceOverrides(a,c,b)}else {Ext.apply(a,b)}}return a},valueFrom:function(a,b,c){return Ext.isEmpty(a,c)?b:a},isEmpty:function(a,b){return (a==null)||(!b?a==='':!1)||(Ext.isArray(a)&&a.length===0)},isArray:('isArray' in Array)?Array.isArray:function(a){return c.call(a)==='[object Array]'},isDate:function(a){return c.call(a)==='[object Date]'},isMSDate:function(a){if(!Ext.isString(a)){return !1}return n.test(a)},isObject:(c.call(null)==='[object Object]')?function(a){return a!=null&&c.call(a)==='[object Object]'&&a.ownerDocument===undefined}:function(a){return c.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&&c.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:!1},isTextNode:function(a){return a?a.nodeName==="#text":!1},isDefined:function(a){return typeof a!=='undefined'},isIterable:function(a){if(!a||typeof a.length!=='number'||typeof a==='string'||Ext.isFunction(a)){return !1}if(!a.propertyIsEnumerable){return !!a.item}if(a.hasOwnProperty('length')&&!a.propertyIsEnumerable('length')){return !0}return m.test(c.call(a))},isDebugEnabled:a,clone:function(a,g){if(a==null){return a}if(g!==!1&&a.nodeType&&a.cloneNode){return a.cloneNode(!0)}var h=c.call(a),e,j,f,d,i;if(h==='[object Date]'){return new Date(a.getTime())}if(h==='[object Array]'){e=a.length;d=[];while(e--){d[e]=Ext.clone(a[e],g)}}else if(h==='[object Object]'&&a.constructor===Object){d={};for(i in a){d[i]=Ext.clone(a[i],g)}if(b){for(j=b.length;j--;){f=b[j];if(a.hasOwnProperty(f)){d[f]=a[f]}}}}return d||a},getUniqueGlobalNamespace:function(){var a=this.uniqueGlobalNamespace,b;if(a===undefined){b=0;do{a='ExtBox'+(++b)}while(d[a]!==undefined);d[a]=Ext;this.uniqueGlobalNamespace=a}return a},functionFactoryCache:{},cacheableFunctionFactory:function(){var f=this,a=Array.prototype.slice.call(arguments),e=f.functionFactoryCache,d,b,c;if(Ext.isSandboxed){c=a.length;if(c>0){c--;a[c]='var Ext=window.'+Ext.name+';'+a[c]}}d=a.join('');b=e[d];if(!b){b=Function.prototype.constructor.apply(Function.prototype,a);e[d]=b}return b},functionFactory:function(){var b=Array.prototype.slice.call(arguments),a;if(Ext.isSandboxed){a=b.length;if(a>0){a--;b[a]='var Ext=window.'+Ext.name+';'+b[a]}}return Function.prototype.constructor.apply(Function.prototype,b)},Logger:{verbose:a,log:a,info:a,warn:a,error:function(a){throw new Error(a)},deprecate:a},ariaWarn:function(a,b){if(Ext.enableAria&&!Ext.slicer){if(!Ext.ariaWarn.first){Ext.ariaWarn.first=!0;Ext.log.warn("WAI-ARIA compatibility warnings can be suppressed "+"by adding the following to application startup code:");Ext.log.warn("    Ext.ariaWarn = Ext.emptyFn;")}Ext.log.warn({msg:b,dump:a})}},getElementById:function(a){return document.getElementById(a)},splitAndUnescape:(function(){var a={};return function(e,c){if(!e){return []}else if(!c){return [e]}var g=a[c]||(a[c]=new RegExp('\\\\'+c,'g')),f=[],d,b;d=e.split(c);while((b=d.shift())!==undefined){while(b.charAt(b.length-1)==='\\'&&d.length>0){b=b+c+d.shift()}b=b.replace(g,c);f.push(b)}return f}})(),doElevate:function(){var c=j,b=h,a=g;j=h=g=null;i=b?c.apply(a,b):c.call(a);Ext.fireIdle()},elevate:function(d,b,a){var c;if(a&&!a.length){a=null}Ext._suppressIdle=!1;if(Ext.elevateFunction){j=d;g=b;h=a;Ext.elevateFunction(Ext.doElevate);c=i;i=null}else {c=a?d.apply(b,a):d.call(b);Ext.fireIdle()}return c},getExpando:function(b,c){var a=b.$expandos;return a&&a[c]||null},setExpando:function(c,d,b){var a=c.$expandos;if(b!==undefined){(a||(c.$expandos={}))[d]=b}else if(a){delete a[d]}return b}});Ext.returnTrue.$nullFn=Ext.returnId.$nullFn=!0}());Ext.platformTags.classic=!(Ext.platformTags.modern=Ext.isModern=!0);(function(){function toString(){var d=this,b=d.sourceClass,a=d.sourceMethod,c=d.msg;if(a){if(c){a+='(): ';a+=c}else {a+='()'}}if(b){a=a?(b+'.'+a):b}return a||c||''}Ext.Error=function(b){var a=new Error();if(Ext.isString(b)){b={msg:b}}Ext.apply(a,b);a.message=a.message||a.msg;a.toString=toString;return a};Ext.apply(Ext.Error,{ignore:!1,raise:function(a){var d=this,b=d.raise.caller,e,c;a=a||{};if(Ext.isString(a)){a={msg:a}}if(b===Ext.raise){b=b.caller}if(b){if(!a.sourceMethod&&(c=b.$name)){a.sourceMethod=c}if(!a.sourceClass&&(c=b.$owner)&&(c=c.$className)){a.sourceClass=c}}if(d.handle(a)!==!0){e=toString.call(a);throw new Ext.Error(a)}},handle:function(){return this.ignore}})})();Ext.deprecated=function(a){return Ext.emptyFn};Ext.raise=function(){Ext.Error.raise.apply(Ext.Error,arguments)};Ext.Array=(function(){var c=Array.prototype,b=c.slice,f=(function(){var a=[],b,c=20;if(!a.splice){return !1}while(c--){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");b=a.length;a.splice(13,0,"XXX");if(b+1!==a.length){return !1}return !0}()),i='indexOf' in c,h=!0;function stableSort(b,e){var d=b.length,c=new Array(d),a;for(a=0;a<d;a++){c[a]=a}c.sort(function(a,c){return e(b[a],b[c])||(a-c)});for(a=0;a<d;a++){c[a]=b[c[a]]}for(a=0;a<d;a++){b[a]=c[a]}return b}try{if(typeof document!=='undefined'){b.call(document.getElementsByTagName('body'))}}catch(q){h=!1}var g=function(b,a){return (a<0)?Math.max(0,b.length+a):Math.min(b.length,a)},e=function(a,n,m,d){var e=d?d.length:0,i=a.length,f=g(a,n);if(f===i){if(e){a.push.apply(a,d)}}else {var k=Math.min(m,i-f),c=f+k,h=c+e-k,l=i-c,j=i-k,b;if(h<c){for(b=0;b<l;++b){a[h+b]=a[c+b]}}else if(h>c){for(b=l;b--;){a[h+b]=a[c+b]}}if(e&&f===j){a.length=j;a.push.apply(a,d)}else {a.length=j+e;for(b=0;b<e;++b){a[f+b]=d[b]}}}return a},k=function(a,c,d,b){if(b&&b.length){if(c===0&&!d){a.unshift.apply(a,b)}else if(c<a.length){a.splice.apply(a,[c,d].concat(b))}else {a.push.apply(a,b)}}else {a.splice(c,d)}return a},o=function(b,c,a){return e(b,c,a)},m=function(a,c,b){a.splice(c,b);return a},n=function(a,h,c){var i=arguments.length,d=g(a,h),f;if(i<3){c=a.length-d}f=a.slice(h,g(a,d+c));if(i<4){e(a,d,c)}else {e(a,d,c,b.call(arguments,3))}return f},l=function(a){return a.splice.apply(a,b.call(arguments,1))},d=f?m:o,j=f?k:e,p=f?l:n,a={binarySearch:function(h,i,c,b,d){var g=h.length,e,f;if(c instanceof Function){d=c;c=0;b=g}else if(b instanceof Function){d=b;b=g}else {if(c===undefined){c=0}if(b===undefined){b=g}d=d||a.lexicalCompare}--b;while(c<=b){e=(c+b)>>1;f=d(i,h[e]);if(f>=0){c=e+1}else if(f<0){b=e-1}}return c},defaultCompare:function(a,b){return (a<b)?-1:((a>b)?1:0)},lexicalCompare:function(a,b){a=String(a);b=String(b);return (a<b)?-1:((a>b)?1:0)},each:function(c,f,e,g){var b,d;c=a.from(c);d=c.length;if(g!==!0){for(b=0;b<d;b++){if(f.call(e||c[b],c[b],b,c)===!1){return b}}}else {for(b=d-1;b>-1;b--){if(f.call(e||c[b],c[b],b,c)===!1){return b}}}return !0},findInsertionIndex:function(e,d,c,b){var h=d.length,f,g;c=c||a.lexicalCompare;if(0<=b&&b<h){f=b>0?c(e,d[b-1]):0;g=(b<h)?c(e,d[b]):0;if(0<=f&&g<1){return b}}return a.binarySearch(d,e,c)},forEach:('forEach' in c)?function(a,c,b){a.forEach(c,b)}:function(b,e,d){var a,c;for(a=0,c=b.length;a<c;a++){e.call(d,b[a],a,b)}},indexOf:i?function(a,d,b){return a?c.indexOf.call(a,d,b):-1}:function(b,e,c){var a,d=b?b.length:0;for(a=(c<0)?Math.max(0,d+c):c||0;a<d;a++){if(b[a]===e){return a}}return -1},contains:i?function(a,b){return c.indexOf.call(a,b)!==-1}:function(b,d){var a,c;for(a=0,c=b.length;a<c;a++){if(b[a]===d){return !0}}return !1},toArray:function(a,d,c){var f=[],e;if(!a||!a.length){return f}if(typeof a==='string'){a=a.split('')}if(h){return b.call(a,d||0,c||a.length)}d=d||0;c=c?((c<0)?a.length+c:c):a.length;for(e=d;e<c;e++){f.push(a[e])}return f},pluck:function(b,f){var d=[],a,e,c;for(a=0,e=b.length;a<e;a++){c=b[a];d.push(c[f])}return d},map:('map' in c)?function(a,c,b){return a.map(c,b)}:function(b,f,e){var d=b.length,c=new Array(d),a;for(a=0;a<d;a++){c[a]=f.call(e,b[a],a,b)}return c},every:('every' in c)?function(a,c,b){return a.every(c,b)}:function(b,e,d){var a,c;for(a=0,c=b.length;a<c;++a){if(!e.call(d,b[a],a,b)){return !1}}return !0},some:('some' in c)?function(a,c,b){return a.some(c,b)}:function(b,e,d){var a,c;for(a=0,c=b.length;a<c;++a){if(e.call(d,b[a],a,b)){return !0}}return !1},equals:function(b,c){var d=b.length,e=c.length,a;if(b===c){return !0}if(d!==e){return !1}for(a=0;a<d;++a){if(b[a]!==c[a]){return !1}}return !0},clean:function(d){var c=[],a,e,b;for(a=0,e=d.length;a<e;a++){b=d[a];if(!Ext.isEmpty(b)){c.push(b)}}return c},unique:function(e){var c=[],b,f,d;for(b=0,f=e.length;b<f;b++){d=e[b];if(a.indexOf(c,d)===-1){c.push(d)}}return c},filter:('filter' in c)?function(a,c,b){return a.filter(c,b)}:function(b,f,e){var c=[],a,d;for(a=0,d=b.length;a<d;a++){if(f.call(e,b[a],a,b)){c.push(b[a])}}return c},findBy:function(b,e,d){var a,c;for(a=0,c=b.length;a<c;a++){if(e.call(d||b,b[a],a)){return b[a]}}return null},from:function(c,e){var d;if(c===undefined||c===null){return []}if(Ext.isArray(c)){return (e)?b.call(c):c}d=typeof c;if(c&&c.length!==undefined&&d!=='string'&&(d!=='function'||!c.apply)){return a.toArray(c)}return [c]},remove:function(b,e){var c=a.indexOf(b,e);if(c!==-1){d(b,c,1)}return b},removeAt:function(c,b,a){var e=c.length;if(b>=0&&b<e){a=a||1;a=Math.min(a,e-b);d(c,b,a)}return c},include:function(b,c){if(!a.contains(b,c)){b.push(c)}},clone:function(a){return b.call(a)},merge:function(){var e=b.call(arguments),d=[],c,f;for(c=0,f=e.length;c<f;c++){d=d.concat(e[c])}return a.unique(d)},intersect:function(){var m=[],f=b.call(arguments),g,o,r,e,k,j,q,n,p,l,c,h,i;if(!f.length){return m}g=f.length;for(c=k=0;c<g;c++){j=f[c];if(!e||j.length<e.length){e=j;k=c}}e=a.unique(e);d(f,k,1);q=e.length;g=f.length;for(c=0;c<q;c++){n=e[c];l=0;for(h=0;h<g;h++){o=f[h];r=o.length;for(i=0;i<r;i++){p=o[i];if(n===p){l++;break}}}if(l===g){m.push(n)}}return m},difference:function(i,f){var c=b.call(i),h=c.length,e,a,g;for(e=0,g=f.length;e<g;e++){for(a=0;a<h;a++){if(c[a]===f[e]){d(c,a,1);a--;h--}}}return c},reduce:Array.prototype.reduce?function(b,a,c){if(arguments.length===3){return Array.prototype.reduce.call(b,a,c)}return Array.prototype.reduce.call(b,a)}:function(a,f,e){a=Object(a);var b=0,d=a.length>>>0,c=e;if(arguments.length<3){while(!0){if(b in a){c=a[b++];break}if(++b>=d){throw new TypeError('Reduce of empty array with no initial value')}}}for(;b<d;++b){if(b in a){c=f(c,a[b],b,a)}}return c},slice:([1,2].slice(1,undefined).length?function(a,c,d){return b.call(a,c,d)}:function(a,c,d){if(typeof c==='undefined'){return b.call(a)}if(typeof d==='undefined'){return b.call(a,c)}return b.call(a,c,d)}),sort:function(c,b){return stableSort(c,b||a.lexicalCompare)},flatten:function(b){var a=[];function rFlatten(f){var c,e,d;for(c=0,e=f.length;c<e;c++){d=f[c];if(Ext.isArray(d)){rFlatten(d)}else {a.push(d)}}return a}return rFlatten(b)},min:function(d,e){var b=d[0],c,f,a;for(c=0,f=d.length;c<f;c++){a=d[c];if(e){if(e(b,a)===1){b=a}}else {if(a<b){b=a}}}return b},max:function(d,e){var b=d[0],c,f,a;for(c=0,f=d.length;c<f;c++){a=d[c];if(e){if(e(b,a)===-1){b=a}}else {if(a>b){b=a}}}return b},mean:function(b){return b.length>0?a.sum(b)/b.length:undefined},sum:function(b){var d=0,a,e,c;for(a=0,e=b.length;a<e;a++){c=b[a];d+=c}return d},toMap:function(b,d,e){var c,a;if(!b){return null}c={};a=b.length;if(typeof b==='string'){c[b]=1}else if(!d){while(a--){c[b[a]]=a+1}}else if(typeof d==='string'){while(a--){c[b[a][d]]=a+1}}else {while(a--){c[d.call(e,b[a])]=a+1}}return c},toValueMap:function(g,d,k,f){var b={},e=g.length,j,i,h,l,c,a;if(!d){while(e--){a=g[e];b[a]=a}}else {if(!(l=(typeof d!=='string'))){f=k}i=f===1;j=f===2;while(e--){a=g[e];c=l?d.call(k,a):a[d];if(i){if(c in b){b[c].push(a)}else {b[c]=[a]}}else if(j&&(c in b)){if((h=b[c]) instanceof Array){h.push(a)}else {b[c]=[h,a]}}else {b[c]=a}}}return b},erase:d,insert:function(a,b,c){return j(a,b,0,c)},move:function(c,b,d){if(d===b){return}var f=c[b],e=d>b?1:-1,a;for(a=b;a!==d;a+=e){c[a]=c[a+e]}c[d]=f},replace:j,splice:p,push:function(a){var d=arguments,e=d.length,b,c;if(a===undefined){a=[]}else if(!Ext.isArray(a)){a=[a]}for(b=1;b<e;b++){c=d[b];Array.prototype.push[Ext.isIterable(c)?'apply':'call'](a,c)}return a},numericSortFn:function(a,b){return a-b}};Ext.each=a.each;a.union=a.merge;Ext.min=a.min;Ext.max=a.max;Ext.sum=a.sum;Ext.mean=a.mean;Ext.flatten=a.flatten;Ext.clean=a.clean;Ext.unique=a.unique;Ext.pluck=a.pluck;Ext.toArray=function(){return a.toArray.apply(a,arguments)};return a}());Ext.String=(function(){var n=/^[\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,o=/('|\\)/g,i=/([-.*+?\^${}()|\[\]\/\\])/g,l=/^\s+|\s+$/g,k=/\s+/,m=/(^[^a-z]*|[^\w])/gi,c,a,b,d,h=function(b,a){return c[a]},g=function(c,b){return (b in a)?a[b]:String.fromCharCode(parseInt(b.substr(2),10))},e=function(b,a){if(b===null||b===undefined||a===null||a===undefined){return !1}return a.length<=b.length},j=String.fromCharCode,f;return f={fromCodePoint:String.fromCodePoint||function(){var a,e='',b=[],c=-1,d=arguments.length;while(++c<d){a=Number(arguments[c]);if(!isFinite(a)||a<0||a>1114111||Math.floor(a)!==a){Ext.raise('Invalid code point: '+a)}if(a<=65535){b.push(a)}else {a-=65536;b.push((a>>10)+55296,(a%1024)+56320)}if(c+1===d){e+=j(b);b.length=0}}return e},insert:function(b,c,a){var d;if(!b){return c}if(!c){return b}d=b.length;if(!a&&a!==0){a=d}if(a<0){a*=-1;if(a>=d){a=0}else {a=d-a}}if(a===0){b=c+b}else if(a>=b.length){b+=c}else {b=b.substr(0,a)+c+b.substr(a)}return b},startsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.lastIndexOf(a,0)===0}return c},endsWith:function(b,a,d){var c=e(b,a);if(c){if(d){b=b.toLowerCase();a=a.toLowerCase()}c=b.indexOf(a,b.length-a.length)!==-1}return c},createVarName:function(a){return a.replace(m,'')},htmlEncode:function(a){return (!a)?a:String(a).replace(b,h)},htmlDecode:function(a){return (!a)?a:String(a).replace(d,g)},hasHtmlCharacters:function(a){return b.test(a)},addCharacterEntities:function(g){var i=[],h=[],e,f;for(e in g){f=g[e];a[e]=f;c[f]=e;i.push(f);h.push(e)}b=new RegExp('('+i.join('|')+')','g');d=new RegExp('('+h.join('|')+'|&#[0-9]{1,5};'+')','g')},resetCharacterEntities:function(){c={};a={};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(n,"")}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(b,c,e){var a,d;if(b&&b.length>c){if(e){a=b.substr(0,c-2);d=Math.max(a.lastIndexOf(' '),a.lastIndexOf('.'),a.lastIndexOf('!'),a.lastIndexOf('?'));if(d!==-1&&d>=(c-15)){return a.substr(0,d)+"..."}}return b.substr(0,c-3)+"..."}return b},escapeRegex:function(a){return a.replace(i,"\\$1")},createRegex:function(b,d,e,c){var a=b;if(b!=null&&!b.exec){a=f.escapeRegex(String(b));if(d!==!1){a='^'+a}if(e!==!1){a+='$'}a=new RegExp(a,(c!==!1)?'i':'')}return a},escape:function(a){return a.replace(o,"\\$1")},toggle:function(b,a,c){return b===a?c:a},leftPad:function(c,d,b){var a=String(c);b=b||" ";while(a.length<d){a=b+a}return a},repeat:function(d,a,e){var b=[],c;if(a<1){a=0}for(c=a;c--;){b.push(d)}return b.join(e||'')},splitWords:function(a){if(a&&typeof a==='string'){return a.replace(l,'').split(k)}return a||[]}}}());Ext.String.resetCharacterEntities();Ext.htmlEncode=Ext.String.htmlEncode;Ext.htmlDecode=Ext.String.htmlDecode;Ext.urlAppend=Ext.String.urlAppend;Ext.Date=(function(){var a,b=Date,e=/(\\.)/g,k=/([gGhHisucUOPZ]|MS)/,j=/([djzmnYycU]|MS)/,m=/\\/gi,g=/\{(\d+)\}/g,i=new RegExp('\\/Date\\(([-+])?(\\d+)(?:[+-]\\d{4})?\\)\\/'),h=/^(?:(\d{1,4})|(\w{3,}))[/\-.\\\s](?:(\d{1,2})|(\w{3,}))[/\-.\\\s](\d{1,4})$/,c=Ext.String.leftPad,l={d:!0,j:!0},f={F:!0,m:!0,M:!0,n:!0},d={o:!0,Y:!0,y:!0},n=["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 c(a.getUTCFullYear(),4,'0')+'-'+c(a.getUTCMonth()+1,2,'0')+'-'+c(a.getUTCDate(),2,'0')+'T'+c(a.getUTCHours(),2,'0')+':'+c(a.getUTCMinutes(),2,'0')+':'+c(a.getUTCSeconds(),2,'0')+'.'+c(a.getUTCMilliseconds(),3,'0')+'Z'}}function xf(a){var b=Array.prototype.slice.call(arguments,1);return a.replace(g,function(d,c){return b[c]})}a={now:b.now,toString:function(a){if(!a){a=new b()}return a.getFullYear()+"-"+c(a.getMonth()+1,2,'0')+"-"+c(a.getDate(),2,'0')+"T"+c(a.getHours(),2,'0')+":"+c(a.getMinutes(),2,'0')+":"+c(a.getSeconds(),2,'0')},getElapsed:function(b,c){return Math.abs(b-(c||a.now()))},useStrict:!1,formatCodeToRegex:function(c,d){var b=a.parseCodes[c];if(b){b=typeof b==='function'?b():b;a.parseCodes[c]=b}return b?Ext.applyIf({c:b.c?xf(b.c,d||"{0}"):b.c},b):{g:0,c:null,s:Ext.String.escapeRegex(c)}},parseFunctions:{"MS":function(c,d){var a=(c||'').match(i);return a?new b(((a[1]||'')+a[2])*1):null},"time":function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a)}return null},"timestamp":function(c,d){var a=parseInt(c,10);if(a||a===0){return new b(a*1000)}return null}},parseRegexes:[],formatFunctions:{"MS":function(){return '\\/Date('+this.getTime()+')\\/'},"time":function(){return this.getTime().toString()},"timestamp":function(){return a.format(this,'U')}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",DAYS_IN_WEEK:7,MONTHS_IN_YEAR:12,MAX_DAYS_IN_MONTH:31,SUNDAY:0,MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6,defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:'m/d/Y',defaultTimeFormat:'h:i A',firstDayOfWeek:0,weekendDays:[0,6],getShortMonthName:function(b){return a.monthNames[b].substring(0,3)},getShortDayName:function(b){return a.dayNames[b].substring(0,3)},getMonthNumber:function(b){return a.monthNumbers[b.substring(0,1).toUpperCase()+b.substring(1,3).toLowerCase()]},formatContainsHourInfo:function(a){return k.test(a.replace(e,''))},formatContainsDateInfo:function(a){return j.test(a.replace(e,''))},isMonthFormat:function(a){return !!f[a]},isYearFormat:function(a){return !!d[a]},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 e="Y-m-dTH:i:sP",d=[],f=e.length,b,c;for(b=0;b<f;++b){c=e.charAt(b);d.push(c==="T"?"'T'":a.getFormatCode(c))}return d.join(" + ")},C:function(){return 'm.toISOString()'},U:"Math.round(m.getTime() / 1000)"},isValid:function(d,i,j,h,f,g,e){var c;h=h||0;f=f||0;g=g||0;e=e||0;c=a.add(new b(d<100?100:d,i-1,j,h,f,g,e),a.YEAR,d<100?d-100:0);return d===c.getFullYear()&&i===c.getMonth()+1&&j===c.getDate()&&h===c.getHours()&&f===c.getMinutes()&&g===c.getSeconds()&&e===c.getMilliseconds()},parse:function(e,b,d){var c;if(!b){return a.flexParse(e)}c=a.parseFunctions;if(c[b]==null){a.createParser(b)}return c[b].call(a,e,Ext.isDefined(d)?d:a.useStrict)},parseDate:function(d,b,c){return a.parse(d,b,c)},getFormatCode:function(c){var b=a.formatCodes[c];if(b){b=typeof b==='function'?b():b;a.formatCodes[c]=b}return b||("'"+Ext.String.escape(c)+"'")},createFormat:function(f){var d=[],c=!1,b='',e;for(e=0;e<f.length;++e){b=f.charAt(e);if(!c&&b==="\\"){c=!0}else if(c){c=!1;d.push("'"+Ext.String.escape(b)+"'")}else {if(b==='\n'){d.push("'\\n'")}else {d.push(a.getFormatCode(b))}}}a.formatFunctions[f]=Ext.functionFactory("var m = this; return "+d.join('+'))},createParser:function(f){var j=a.parseRegexes.length,i=1,d=[],g=[],c=!1,e="",h=0,l=f.length,k=[],b;for(;h<l;++h){e=f.charAt(h);if(!c&&e==="\\"){c=!0}else if(c){c=!1;g.push(Ext.String.escape(e))}else {b=a.formatCodeToRegex(e,i);i+=b.g;g.push(b.s);if(b.g&&b.c){if(b.calcAtEnd){k.push(b.c)}else {d.push(b.c)}}}}d=d.concat(k);a.parseRegexes[j]=new RegExp("^"+g.join('')+"$",'i');a.parseFunctions[f]=Ext.functionFactory("input","strict",xf(n,j,d.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(){var c=[],b;for(b=0;b<7;b++){c.push(a.getShortDayName(b))}return {g:0,c:null,s:"(?:"+c.join("|")+")"}},l:function(){return {g:0,c:null,s:"(?:"+a.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:"("+a.monthNames.join("|")+")"}},M:function(){var c=[],b;for(b=0;b<12;b++){c.push(a.getShortMonthName(b))}return Ext.applyIf({s:"("+c.join("|")+")"},a.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);\n"+"y = ty > me.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{2})"},a:{g:1,c:"if (/(am)/i.test(results[{0}])) {\n"+"if (!h || h == 12) { h = 0; }\n"+"} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(am|pm|AM|PM)",calcAtEnd:!0},A:{g:1,c:"if (/(am)/i.test(results[{0}])) {\n"+"if (!h || h == 12) { h = 0; }\n"+"} else { if (!h || h < 12) { h = (h || 0) + 12; }}",s:"(AM|PM|am|pm)",calcAtEnd:!0},g:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|[1-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;\n"+"zz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function(){var d=[],b=[a.formatCodeToRegex("Y",1),a.formatCodeToRegex("m",2),a.formatCodeToRegex("d",3),a.formatCodeToRegex("H",4),a.formatCodeToRegex("i",5),a.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) {",a.formatCodeToRegex("P",8).c,"}","else {",a.formatCodeToRegex("O",8).c,"}","}"].join('\n')}],c,e;for(c=0,e=b.length;c<e;++c){d.push(b[c].c)}return {g:1,c:d.join(""),s:[b[0].s,"(?:","-",b[1].s,"(?:","-",b[2].s,"(?:","(?:T| )?",b[3].s,":",b[4].s,"(?::",b[5].s,")?","(?:(?:\\.|,)(\\d+))?","(Z|(?:[-+]\\d{2}(?::)?\\d{2}))?",")?",")?",")?"].join("")}},U:{g:1,c:"u = parseInt(results[{0}], 10);\n",s:"(-?\\d+)"}},compare:function(c,d,e){var a,b;if(typeof c==='string'){c=Ext.Date.parse(c)}if(typeof d==='string'){d=Ext.Date.parse(d)}a=Ext.Date.format(c,'C');b=Ext.Date.format(d,'C');if(!e){a=a.substr(0,10);b=b.substr(0,10)}return (a<b)?-1:((b<a)?1:0)},dateFormat:function(c,b){return a.format(c,b)},isEqual:function(a,b){if(a&&b){return +a===+b}return !(a||b)},format:function(d,b){var c=a.formatFunctions;if(!Ext.isDate(d)){return ''}if(c[b]==null){a.createFormat(b)}return c[b].call(d)+''},getTimezone:function(a){return a.toString().replace(/^.* (?:\((.*)\)|([A-Z]{1,5})(?:[\-+][0-9]{4})?(?: -?\d+)?)$/,"$1$2").replace(/[^A-Z]/g,"")},getGMTOffset:function(c,b){var a=c.getTimezoneOffset();return (a>0?"-":"+")+Ext.String.leftPad(Math.floor(Math.abs(a)/60),2,"0")+(b?":":"")+Ext.String.leftPad(Math.abs(a%60),2,"0")},getDayOfYear:function(c){var e=0,b=a.clone(c),f=c.getMonth(),d;for(d=0,b.setDate(1),b.setMonth(0);d<f;b.setMonth(++d)){e+=a.getDaysInMonth(b)}return e+c.getDate()-1},getWeekOfYear:(function(){var a=86400000,c=7*a;return function(d){var f=b.UTC(d.getFullYear(),d.getMonth(),d.getDate()+3)/a,e=Math.floor(f/7),g=new b(e*c).getUTCFullYear();return e-Math.floor(b.UTC(g,0,7)/c)+1}}()),isLeapYear:function(b){var a=b.getFullYear();return !!((a&3)===0&&(a%100||(a%400===0&&a)))},getFirstDayOfMonth:function(b){var a=(b.getDay()-(b.getDate()-1))%7;return (a<0)?(a+7):a},getLastDayOfMonth:function(b){return a.getLastDateOfMonth(b).getDay()},getFirstDateOfMonth:function(a){return new b(a.getFullYear(),a.getMonth(),1)},getLastDateOfMonth:function(c){return new b(c.getFullYear(),c.getMonth(),a.getDaysInMonth(c))},getDaysInMonth:(function(){var b=[31,28,31,30,31,30,31,31,30,31,30,31];return function(c){var d=c.getMonth();return d===1&&a.isLeapYear(c)?29:b[d]}}()),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 b(a.getTime())},isDST:function(a){return new b(a.getFullYear(),0,1).getTimezoneOffset()!==a.getTimezoneOffset()},clearTime:function(b,f){var e,c,d;if(isNaN(b.getTime())){return b}if(f){return a.clearTime(a.clone(b))}e=b.getDate();b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0);if(b.getDate()!==e){for(c=1,d=a.add(b,a.HOUR,c);d.getDate()!==e;c++,d=a.add(b,a.HOUR,c)){}b.setDate(e);b.setHours(d.getHours())}return b},add:function(f,i,c,g){var b=a.clone(f),e=0,d,h;if(!i||c===0){return b}h=c-parseInt(c,10);c=parseInt(c,10);if(c){switch(i.toLowerCase()){case a.MILLI:if(g){b.setMilliseconds(b.getMilliseconds()+c)}else {b.setTime(b.getTime()+c)};break;case a.SECOND:if(g){b.setSeconds(b.getSeconds()+c)}else {b.setTime(b.getTime()+c*1000)};break;case a.MINUTE:if(g){b.setMinutes(b.getMinutes()+c)}else {b.setTime(b.getTime()+c*60*1000)};break;case a.HOUR:if(g){b.setHours(b.getHours()+c)}else {b.setTime(b.getTime()+c*60*60*1000)};break;case a.DAY:if(g===!1){b.setTime(b.getTime()+c*24*60*60*1000)}else {b.setDate(b.getDate()+c)};break;case a.MONTH:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.MONTH,c)).getDate())};b.setDate(d);b.setMonth(f.getMonth()+c);break;case a.YEAR:d=f.getDate();if(d>28){d=Math.min(d,a.getLastDateOfMonth(a.add(a.getFirstDateOfMonth(f),a.YEAR,c)).getDate())};b.setDate(d);b.setFullYear(f.getFullYear()+c);break;}}if(h){switch(i.toLowerCase()){case a.MILLI:e=1;break;case a.SECOND:e=1000;break;case a.MINUTE:e=1000*60;break;case a.HOUR:e=1000*60*60;break;case a.DAY:e=1000*60*60*24;break;case a.MONTH:d=a.getDaysInMonth(b);e=1000*60*60*24*d;break;case a.YEAR:d=(a.isLeapYear(b)?366:365);e=1000*60*60*24*d;break;}if(e){b.setTime(b.getTime()+e*h)}}return b},subtract:function(e,c,d,b){return a.add(e,c,-d,b)},between:function(c,b,d){var a=c.getTime();return b.getTime()<=a&&a<=d.getTime()},isWeekend:function(a){return Ext.Array.indexOf(this.weekendDays,a.getDay())>-1},utcToLocal:function(a){return new Date(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate(),a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds())},localToUtc:function(b){return a.utc(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds(),b.getMilliseconds())},utc:function(c,a,d,b,e,g,f){return new Date(Date.UTC(c,a,d,b||0,e||0,g||0,f||0))},compat:function(){var c,g=['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'],h=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],j=g.length,i=h.length,f,e,d;for(d=0;d<j;d++){f=g[d];b[f]=a[f]}for(c=0;c<i;c++){e=h[c];b.prototype[e]=function(){var b=Array.prototype.slice.call(arguments);b.unshift(this);return a[e].apply(a,b)}}},diff:function(e,d,f){var c=+d-e,b;switch(f){case a.MILLI:return c;case a.SECOND:return Math.floor(c/1000);case a.MINUTE:return Math.floor(c/60000);case a.HOUR:return Math.floor(c/3600000);case a.DAY:return Math.floor(c/86400000);case 'w':return Math.floor(c/604800000);case a.MONTH:b=(d.getFullYear()*12+d.getMonth())-(e.getFullYear()*12+e.getMonth());if(a.add(e,f,b)>d){return b-1};return b;case a.YEAR:b=d.getFullYear()-e.getFullYear();if(a.add(e,f,b)>d){return b-1}else {return b};}},align:function(e,f,d){var c=new b(+e);switch(f.toLowerCase()){case a.MILLI:return c;case a.SECOND:c.setUTCSeconds(c.getUTCSeconds()-c.getUTCSeconds()%d);c.setUTCMilliseconds(0);return c;case a.MINUTE:c.setUTCMinutes(c.getUTCMinutes()-c.getUTCMinutes()%d);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.HOUR:c.setUTCHours(c.getUTCHours()-c.getUTCHours()%d);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.DAY:if(d===7||d===14){c.setUTCDate(c.getUTCDate()-c.getUTCDay()+1)};c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.MONTH:c.setUTCMonth(c.getUTCMonth()-(c.getUTCMonth()-1)%d,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return c;case a.YEAR:c.setUTCFullYear(c.getUTCFullYear()-c.getUTCFullYear()%d,1,1);c.setUTCHours(0);c.setUTCMinutes(0);c.setUTCSeconds(0);c.setUTCMilliseconds(0);return e;}},flexParse:function(m,k){var b=h.exec(m),i,g,c,e,j;if(!b){return Ext.Date.parse(m,'C')}if(!k){k=Ext.Date.defaultFormat}if(!(b[2]||b[4])){i=k[0];if(!d[i]&&(l[i]||(b[1]>12&&b[3]<13))){g=parseInt(b[1]);c=parseInt(b[3])-1;e=parseInt(b[5])}else if(!d[i]&&(f[i]||(b[3]>12&&b[1]<13))){c=parseInt(b[1])-1;g=parseInt(b[3]);e=parseInt(b[5])}else {e=parseInt(b[1]);c=parseInt(b[3])-1;g=parseInt(b[5])}}else {if(b[2]&&b[4]){return null}if(b[2]){c=a.monthNumbers[Ext.String.capitalize(b[2].substr(0,3))];g=parseInt(b[3]);e=parseInt(b[5])}else {g=parseInt(b[1]);c=a.monthNumbers[Ext.String.capitalize(b[4].substr(0,3))];e=parseInt(b[5])}}if(isNaN(c)||(c<0||c>11)){return null}if(e<a.y2kYear){e+=2000}j=new Date(e,c,1,0,0,0);if(g<1||g>Ext.Date.getDaysInMonth(j)){return null}j.setDate(g);return j}};a.parseCodes.C=a.parseCodes.c;return a}());Ext.Function=(function(){var i=0,g,d=[],l=[],n=0,f={},b=Array.prototype.slice,e=window,c=Ext.global,h=!Ext.disableImmediate&&!!(c.setImmediate&&c.clearImmediate),k=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(d){var b=Ext.now(),a=Math.max(0,16-(b-i)),f=function(){d(b+a)},c;c=e.setTimeout(f,a);i=b+a;return c},m=function(){var h=d.length,e,b,a;g=null;for(b=0;b<h;b++){a=d[b];e=a[3];if(f[e]){delete f[e];a[0].apply(a[1]||c,a[2]||l)}}d=d.slice(h)},j=function(){Ext.elevate(m)},a={flexSetter:function(a){return function(b,e){var c,d;if(b!==null){if(typeof b!=='string'){for(c in b){if(b.hasOwnProperty(c)){a.call(this,c,b[c])}}if(Ext.enumerables){for(d=Ext.enumerables.length;d--;){c=Ext.enumerables[d];if(b.hasOwnProperty(c)){a.call(this,c,b[c])}}}}else {a.call(this,b,e)}}return this}},bind:function(f,e,d,a){if(arguments.length<=2){return f.bind(e)}var g=f;return function(){var h=d||arguments;if(a===!0){h=b.call(arguments,0);h=h.concat(d)}else if(typeof a==='number'){h=b.call(arguments,0);Ext.Array.insert(h,a,d)}return g.apply(e||c,h)}},bindCallback:function(c,f,a,e,d){return function(){var g=b.call(arguments);return Ext.callback(c,f,a?a.concat(g):g,e,d)}},pass:function(c,a,b){if(!Ext.isArray(a)){if(Ext.isIterable(a)){a=Ext.Array.clone(a)}else {a=a!==undefined?[a]:[]}}return function(){var d=a.slice();d.push.apply(d,arguments);return c.apply(b||this,d)}},alias:function(a,b){return function(){return a[b].apply(a,arguments)}},clone:function(a){var c,b;c=function(){return a.apply(this,arguments)};for(b in a){if(a.hasOwnProperty(b)){c[b]=a[b]}}return c},createInterceptor:function(b,d,e,a){if(!Ext.isFunction(d)){return b}else {a=Ext.isDefined(a)?a:null;return function(){var g=this,f=arguments;return (d.apply(e||g||c,f)!==!1)?b.apply(g||c,f):a}}},createDelayed:function(e,g,c,d,f){var a=e;if(c||d){a=Ext.Function.bind(e,c,d,f)}return function(){var k=this,j=b.call(arguments),h,i;h=function(){Ext.elevate(a,k,j)};i=setTimeout(h,g)}},defer:function(h,e,f,g,b){var d=0,c,a;if(!f&&!g&&!b){a=h}else {a=Ext.Function.bind(h,f,g,b)}if(e>0){c=function(){Ext.elevate(a)};d=setTimeout(c,e)}else {a()}return d},interval:function(h,e,f,g,d){var b,c,a;a=Ext.Function.bind(h,f,g,d);b=function(){Ext.elevate(a)};c=setInterval(b,e);return c},createSequence:function(a,b,c){if(!b){return a}else {return function(){var d=a.apply(this,arguments);b.apply(c||this,arguments);return d}}},createBuffered:function(g,d,e,f){var a,c=function(){var i=f||b.call(arguments,0),j=e||this,h;if(a){Ext.undefer(a)}h=function(){Ext.elevate(g,j,i)};c.timer=a=setTimeout(h,d)};return c},createAnimationFrame:function(h,f,g,d){var e,c;d=d||3;e=function(){var i,j=g||b.call(arguments,0);f=f||this;if(d===3&&c){a.cancelAnimationFrame(c)}if((d&1)||!c){i=function(){c=e.timerId=null;h.apply(f,j)};c=e.timerId=a.requestAnimationFrame(i)}};return e},requestAnimationFrame:function(i,e,h){var a=++n,c=b.call(arguments,0);c[3]=a;f[a]=1;d.push(c);if(!g){g=k(j)}return a},cancelAnimationFrame:function(a){delete f[a]},createThrottled:function(h,f,d){var e=0,c,b,a,g=function(){h.apply(d,b);e=Ext.now();b=a=null};return function(){if(!d){d=this}c=Ext.now()-e;b=Ext.Array.slice(arguments);if(c>=f){Ext.undefer(a);g()}else if(!a){a=Ext.defer(g,f-c)}}},createBarrier:function(b,d,c){var a=function(){if(!--b){d.apply(c,arguments)}};return a},interceptBefore:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return (b[a]=function(){var f=e.apply(d||this,arguments);c.apply(this,arguments);return f})},interceptAfter:function(b,a,e,d){var c=b[a]||Ext.emptyFn;return (b[a]=function(){c.apply(this,arguments);return e.apply(d||this,arguments)})},interceptAfterOnce:function(d,a,f,e){var b=d[a],c;c=function(){var g;if(b){b.apply(this,arguments)}g=f.apply(e||this,arguments);d[a]=b;d=a=f=e=b=c=null;return g};d[a]=c;return c},makeCallback:function(b,a){return function(){return a[b].apply(a,arguments)}},memoize:function(e,c,a){var b={},d=a&&Ext.isFunction(a);return function(g){var f=d?a.apply(c,arguments):g;if(!(f in b)){b[f]=e.apply(c,arguments)}return b[f]}},toCode:function(a){var b=a?a.toString():'';return b}};Ext.asap=h?function(g,f,b){var c=g,d,e;if(f!=null||b!=null){c=a.bind(g,f,b)}d=function(){Ext.elevate(c)};e=setImmediate(d);return e}:function(g,f,b){var c=g,d,e;if(f!=null||b!=null){c=a.bind(g,f,b)}d=function(){Ext.elevate(c)};e=setTimeout(d,0,!0);return e};Ext.unasap=h?function(a){if(a){clearImmediate(a)}return null}:function(a){return Ext.undefer(a)};Ext.asapCancel=function(a){return Ext.unasap(a)};Ext.defer=a.defer;Ext.undefer=function(a){if(a){clearTimeout(a)}return null};Ext.interval=a.interval;Ext.uninterval=function(a){if(a){clearInterval(a)}return null};Ext.pass=a.pass;Ext.bind=a.bind;Ext.raf=function(){return a.requestAnimationFrame.apply(a,arguments)};Ext.unraf=function(b){a.cancelAnimationFrame(b)};return a})();Ext.Number=(new function(){var b=this,d=(0.9).toFixed()!=='1',a=Math,c={count:!1,inclusive:!1,wrap:!0};Number.MIN_SAFE_INTEGER=Number.MIN_SAFE_INTEGER||-(a.pow(2,53)-1);Number.MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||a.pow(2,53)-1;Ext.apply(b,{MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,floatRe:/^[-+]?(?:\d+|\d*\.\d*)(?:[Ee][+-]?\d+)?$/,intRe:/^[-+]?\d+(?:[Ee]\+?\d+)?$/,Clip:{DEFAULT:c,COUNT:Ext.applyIf({count:!0},c),INCLUSIVE:Ext.applyIf({inclusive:!0},c),NOWRAP:Ext.applyIf({wrap:!1},c)},parseFloat:function(a){if(a===undefined){a=null}if(a!==null&&typeof a!=='number'){a=String(a);a=b.floatRe.test(a)?+a:null;if(isNaN(a)){a=null}}return a},parseInt:function(a){if(a===undefined){a=null}if(typeof a==='number'){a=Math.floor(a)}else if(a!==null){a=String(a);a=b.intRe.test(a)?+a:null}return a},binarySearch:function(e,f,a,b){var c,d;if(a===undefined){a=0}if(b===undefined){b=e.length}--b;while(a<=b){c=(a+b)>>>1;d=e[c];if(f===d){return c}if(d<f){a=c+1}else {b=c-1}}return a},bisectTuples:function(e,f,g,a,b){var c,d;if(a===undefined){a=0}if(b===undefined){b=e.length}--b;while(a<=b){c=(a+b)>>>1;d=e[c][g];if(f===d){return c}if(d<f){a=c+1}else {b=c-1}}return a},clipIndices:function(d,b,f){var h=0,i,g,a,e;f=f||c;i=f.wrap;b=b||[];for(e=0;e<2;++e){g=a;a=b[e];if(a==null){a=h}else if(e&&f.count){a+=g;a=(a>d)?d:a}else {if(i){a=(a<0)?(d+a):a}if(e&&f.inclusive){++a}a=(a<0)?0:((a>d)?d:a)}h=d}b[0]=g;b[1]=(a<g)?g:a;return b},constrain:function(c,b,a){var d=parseFloat(c);if(b===null){b=c}if(a===null){a=c}return (d<b)?b:((d>a)?a:d)},snap:function(a,c,e,f){var d;if(a===undefined||a<e){return e||0}if(c){d=a%c;if(d!==0){a-=d;if(d*2>=c){a+=c}else if(d*2<-c){a-=c}}}return b.constrain(a,e,f)},snapInRange:function(a,d,c,e){var f;c=(c||0);if(a===undefined||a<c){return c}if(d&&(f=((a-c)%d))){a-=f;f*=2;if(f>=d){a+=d}}if(e!==undefined){if(a>(e=b.snapInRange(e,d,c))){a=e}}return a},roundToNearest:function(c,b){b=b||1;return b*a.round(c/b)},roundToPrecision:function(d,c){var b=a.pow(10,c||1);return a.round(d*b)/b},truncateToPrecision:function(d,c){var b=a.pow(10,c||1);return parseInt(d*b,10)/b},sign:a.sign||function(a){a=+a;if(a===0||isNaN(a)){return a}return (a>0)?1:-1},log10:a.log10||function(b){return a.log(b)*a.LOG10E},isEqual:function(c,d,b){return a.abs(c-d)<b},isFinite:Number.isFinite||function(a){return typeof a==='number'&&isFinite(a)},isInteger:Number.isInteger||function(a){return ~~(a+0)===a},toFixed:d?function(d,b){var c;b=b||0;c=a.pow(10,b);return (a.round(d*c)/c).toFixed(b)}:function(b,a){return b.toFixed(a)},from:function(a,b){if(isFinite(a)){a=parseFloat(a)}return !isNaN(a)?a:b},randomInt:function(b,c){return a.floor(a.random()*(c-b+1)+b)},correctFloat:function(a){return parseFloat(a.toPrecision(14))}});Ext.num=function(){return b.from.apply(this,arguments)}}());(function(){var b=function(){},d=/^\?/,f=/(\[):?([^\]]*)\]/g,e=/^([^\[]+)/,c=/\+/g,a;a=Ext.Object={chain:Object.create||function(c){var a;b.prototype=c;a=new b();b.prototype=null;return a},clear:function(a){var b;for(b in a){delete a[b]}return a},freeze:Object.freeze?function(b,c){var d;if(b&&typeof b==='object'&&!Object.isFrozen(b)){Object.freeze(b);if(c){for(d in b){a.freeze(b[d],c)}}}return b}:Ext.identityFn,toQueryObjects:function(e,c,f){var g=a.toQueryObjects,d=[],b,h;if(Ext.isArray(c)){for(b=0,h=c.length;b<h;b++){if(f){d=d.concat(g(e+'['+b+']',c[b],!0))}else {d.push({name:e,value:c[b]})}}}else if(Ext.isObject(c)){for(b in c){if(c.hasOwnProperty(b)){if(f){d=d.concat(g(e+'['+b+']',c[b],!0))}else {d.push({name:e,value:c[b]})}}}}else {d.push({name:e,value:c})}return d},toQueryString:function(g,j){var c=[],h=[],d,e,i,f,b;for(d in g){if(g.hasOwnProperty(d)){c=c.concat(a.toQueryObjects(d,g[d],j))}}for(e=0,i=c.length;e<i;e++){f=c[e];b=f.value;if(Ext.isEmpty(b)){b=''}else if(Ext.isDate(b)){b=Ext.Date.toString(b)}h.push(encodeURIComponent(f.name)+'='+encodeURIComponent(String(b)))}return h.join('&')},fromQueryString:function(u,v){var s=u.replace(d,'').split('&'),i={},j,o,a,g,n,t,q,h,l,m,r,k,b,p;for(n=0,t=s.length;n<t;n++){q=s[n];if(q.length>0){o=q.split('=');a=o[0];a=a.replace(c,'%20');a=decodeURIComponent(a);g=o[1];if(g!==undefined){g=g.replace(c,'%20');g=decodeURIComponent(g)}else {g=''}if(!v){if(i.hasOwnProperty(a)){if(!Ext.isArray(i[a])){i[a]=[i[a]]}i[a].push(g)}else {i[a]=g}}else {m=a.match(f);r=a.match(e);a=r[0];k=[];if(m===null){i[a]=g;continue}for(h=0,l=m.length;h<l;h++){b=m[h];b=(b.length===2)?'':b.substring(1,b.length-1);k.push(b)}k.unshift(a);j=i;for(h=0,l=k.length;h<l;h++){b=k[h];if(h===l-1){if(Ext.isArray(j)&&b===''){j.push(g)}else {j[b]=g}}else {if(j[b]===undefined||typeof j[b]==='string'){p=k[h+1];j[b]=(Ext.isNumeric(p)||p==='')?[]:{}}j=j[b]}}}}}return i},each:function(a,f,c){var d=Ext.enumerables,e,b;if(a){c=c||a;for(b in a){if(a.hasOwnProperty(b)){if(f.call(c,b,a[b],a)===!1){return}}}if(d){for(e=d.length;e--;){if(a.hasOwnProperty(b=d[e])){if(f.call(c,b,a[b],a)===!1){return}}}}}},eachValue:function(a,f,c){var d=Ext.enumerables,e,b;c=c||a;for(b in a){if(a.hasOwnProperty(b)){if(f.call(c,a[b])===!1){return}}}if(d){for(e=d.length;e--;){if(a.hasOwnProperty(b=d[e])){if(f.call(c,a[b])===!1){return}}}}},merge:function(d){var g=1,h=arguments,k=h.length,j=a.merge,i=Ext.clone,f,c,b,e;for(;g<k;g++){f=h[g];for(c in f){b=f[c];if(b&&b.constructor===Object){e=d[c];if(e&&e.constructor===Object){j(e,b)}else {d[c]=i(b)}}else {d[c]=b}}}return d},mergeIf:function(c){var e=1,g=arguments.length,f=Ext.clone,d,b,a;for(;e<g;e++){d=arguments[e];for(b in d){if(!(b in c)){a=d[b];if(a&&a.constructor===Object){c[b]=f(a)}else {c[b]=a}}}}return c},getAllKeys:function(c){var b=[],a;for(a in c){b.push(a)}return b},getKey:function(b,c){var a;for(a in b){if(b.hasOwnProperty(a)&&b[a]===c){return a}}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(b){var c=[],a;for(a in b){if(b.hasOwnProperty(a)){c.push(a)}}return c},getSize:function(b){var c=0,a;for(a in b){if(b.hasOwnProperty(a)){c++}}return c},isEmpty:function(a){var b;for(b in a){if(a.hasOwnProperty(b)){return !1}}return !0},equals:(function(){var a=function(b,c){var a;for(a in b){if(b.hasOwnProperty(a)){if(b[a]!==c[a]){return !1}}}return !0};return function(b,c){if(b===c){return !0}if(b&&c){return a(b,c)&&a(c,b)}else if(!b&&!c){return b===c}else {return !1}}})(),fork:function(c){var d,e,b;if(c&&c.constructor===Object){d=a.chain(c);for(e in c){b=c[e];if(b){if(b.constructor===Object){d[e]=a.fork(b)}else if(b instanceof Array){d[e]=Ext.Array.clone(b)}}}}else {d=c}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(c){var h=c,e=[],g={},f,b,d;f=function(){var b,a,d;for(a=0,d=e.length;a<d;a++){b=e[a];this[b]=new g[b]()}};for(b in c){if(c.hasOwnProperty(b)){d=c[b];if(d&&d.constructor===Object){e.push(b);g[b]=a.classify(d)}}}f.prototype=h;return f}};Ext.merge=Ext.Object.merge;Ext.mergeIf=Ext.Object.mergeIf}());Ext.apply(Ext,{_namedScopes:{'this':{isThis:1},controller:{isController:1},owner:{isOwner:1},up:{isUp:1},self:{isSelf:1},'self.controller':{isSelf:1,isController:1}},scrollbar:{_size:null,size:function(g){var e=Ext.scrollbar,b=e._size;if(g||!b){var f=document.body,a=document.createElement('div'),c,d;a.style.width=a.style.height='100px';a.style.overflow='scroll';a.style.position='absolute';f.appendChild(a);e._size=b={width:d=a.offsetWidth-a.clientWidth,height:c=a.offsetHeight-a.clientHeight};b.reservedWidth=d?'calc(100% - '+d+'px)':'';b.reservedHeight=c?'calc(100% - '+c+'px)':'';f.removeChild(a)}return b},height:function(a){return Ext.scrollbar.size(a).height},width:function(a){return Ext.scrollbar.size(a).width}},escapeId:(function(){var c=/^[a-zA-Z_][a-zA-Z0-9_\-]*$/i,e=/([\W]{1})/g,a=/^(\d)/g,d=function(b,a){return "\\"+a},b=function(b,a){return '\\00'+a.charCodeAt(0).toString(16)+' '};return function(f){return c.test(f)?f:f.replace(e,d).replace(a,b)}}()),lookUpFn:function(d,c){var b,a;for(a=d.up();a&&!a[c];a=a.up()){b=a.controller;if(b&&b[c]){a=b;break}}return a},callback:function(b,a,e,g,c,f){if(!b){return}var d=(a in Ext._namedScopes),h;if(b.charAt){if(b[2]==='.'){a=Ext.lookUpFn(c,b=b.substr(3))}else if(c){if(d&&d.isUp){a=Ext.lookUpFn(c,b)}else if(!a||d){a=c.resolveListenerScope(d?a:f)}}b=a[b]}else if(d){a=f||c}else if(!a){a=c}if(b&&Ext.isFunction(b)){a=a||Ext.global;if(g){Ext.defer(b,g,a,e)}else {h=e?b.apply(a,e):b.call(a)}}return h},coerce:function(a,e){var d=Ext.typeOf(a),c=Ext.typeOf(e),b=typeof a==='string';if(d!==c){switch(c){case 'string':return String(a);case 'number':return Number(a);case 'boolean':return b&&(!a||a==='false'||a==='0')?!1:Boolean(a);case 'null':return b&&(!a||a==='null')?null:!1;case 'undefined':return b&&(!a||a==='undefined')?undefined:!1;case 'date':return b&&isNaN(a)?Ext.Date.parse(a,Ext.Date.defaultFormat):Date(Number(a));}}return a},copyTo:function(e,d,a,g){var b,c,f;if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(c=0,f=a?a.length:0;c<f;c++){b=a[c];if(g||d.hasOwnProperty(b)){e[b]=d[b]}}return e},copy:function(e,d,a,g){var b,c,f;if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(c=0,f=a?a.length:0;c<f;c++){b=a[c];if(d.hasOwnProperty(b)||(g&&b in d)){e[b]=d[b]}}return e},propertyNameSplitRe:/[,;\s]+/,copyToIf:function(d,f,a){var b,c,e;if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(c=0,e=a?a.length:0;c<e;c++){b=a[c];if(d[b]===undefined){d[b]=f[b]}}return d},copyIf:function(d,e,a){var b,c,f;if(typeof a==='string'){a=a.split(Ext.propertyNameSplitRe)}for(c=0,f=a?a.length:0;c<f;c++){b=a[c];if(!(b in d)&&(b in e)){d[b]=e[b]}}return d},extend:(function(){var a=Object.prototype.constructor,b=function(b){var a;for(a in b){if(!b.hasOwnProperty(a)){continue}this[a]=b[a]}};return function(c,d,g){if(Ext.isObject(d)){g=d;d=c;c=g.constructor!==a?g.constructor:function(){d.apply(this,arguments)}}var h=function(){},f=d.prototype,e;h.prototype=f;e=c.prototype=new h();e.constructor=c;c.superclass=f;if(f.constructor===a){f.constructor=d}c.override=function(a){Ext.override(c,a)};e.override=b;e.proto=e;c.override(g);c.extend=function(a){return Ext.extend(c,a)};return c}}()),isOnline:function(){return Ext.global.navigator.onLine},iterate:function(a,c,b){if(Ext.isEmpty(a)){return}if(b===undefined){b=a}if(Ext.isIterable(a)){Ext.Array.each.call(Ext.Array,a,c,b)}else {Ext.Object.each.call(Ext.Object,a,c,b)}},_resourcePoolRe:/^[<]([^<>@:]*)(?:[@]([^<>@:]+))?[>](.+)$/,resolveResource:function(b){var c=b,a;if(b&&b.charAt(0)==='<'){a=Ext._resourcePoolRe.exec(b);if(a){c=Ext.getResourcePath(a[3],a[1],a[2])}}return c},urlEncode:function(){var a=Ext.Array.from(arguments),b='';if(Ext.isString(a[1])){b=a[1]+'&';a[1]=!1}return b+Ext.Object.toQueryString.apply(Ext.Object,a)},urlDecode:function(){return Ext.Object.fromQueryString.apply(Ext.Object,arguments)},getScrollbarSize:function(a){return Ext.scrollbar.size(a)},typeOf:(function(){var a=/\S/,d=Object.prototype.toString,c={number:1,string:1,'boolean':1,'undefined':1},b={'[object Array]':'array','[object Date]':'date','[object Boolean]':'boolean','[object Number]':'number','[object RegExp]':'regexp'};return function(e){if(e===null){return 'null'}var f=typeof e,g,h;if(c[f]){return f}g=b[h=d.call(e)];if(g){return g}if(f==='function'){return 'function'}if(f==='object'){if(e.nodeType!==undefined){if(e.nodeType===3){return a.test(e.nodeValue)?'textnode':'whitespace'}else {return 'element'}}return 'object'}return h}}()),factory:function(a,f,b,d){var e=Ext.ClassManager,c;if(!a||a.isInstance){if(b&&b!==a){b.destroy()}return a}if(d){if(typeof a==='string'){return e.instantiateByAlias(d+'.'+a)}else if(Ext.isObject(a)&&'type' in a){return e.instantiateByAlias(d+'.'+a.type,a)}}if(a===!0){return b||Ext.create(f)}if('xtype' in a){c=e.instantiateByAlias('widget.'+a.xtype,a)}else if('xclass' in a){c=Ext.create(a.xclass,a)}if(c){if(b){b.destroy()}return c}if(b){return b.setConfig(a)}return Ext.create(f,a)},convertKeyedItems:function(b,g,f){if(b&&!b.isInstance&&Ext.isObject(b)){var c=b,a,e,d;b=[];if(c.xtype||c.xclass||c.itemId||c.id){b.push(c)}else {for(e in c){a=c[e];if(a){if(a===!0){a={}}else if(typeof a==='function'){d=a;a={};a[f]=d}else if(typeof a==='string'){d=a;a={};a[g||'xtype']=d}else {a=Ext.apply({},a)}a.itemId=e;b.push(a)}}}}return b},sortByWeight:function(a){if(a){Ext.Array.sort(a,Ext.weightSortFn)}},weightSortFn:function(a,b){return (a.weight||0)-(b.weight||0)},concat:function(a,c){var d=c==null,b=Ext.emptyArray;return (a==null)?(d?a:b.concat(c)):(d?b.concat(a):b.concat(a,c))},log:(function(){var a=function(){};a.info=a.warn=a.error=Ext.emptyFn;return a}())});(function(){var b=[''],c=/([^\d.])/,f=/[^\d]/g,g=/[-+]/g,h=/\s/g,e=/_/g,d={classic:1,modern:1},a;Ext.Version=a=function(k,p){var b=this,n=b.padModes,o,m,d,h,j,l,i;if(k.isVersion){k=k.version}b.version=i=String(k).toLowerCase().replace(e,'.').replace(g,'');o=i.charAt(0);if(o in n){i=i.substring(1);d=n[o]}else {d=p?n[p]:0}b.pad=d;l=i.search(c);b.shortVersion=i;if(l!==-1){b.release=j=i.substr(l,k.length);b.shortVersion=i.substr(0,l);j=a.releaseValueMap[j]||j}b.releaseValue=j||d;b.shortVersion=b.shortVersion.replace(f,'');b.parts=h=i.split('.');for(m=h.length;m--;){h[m]=parseInt(h[m],10)}if(d===Infinity){h.push(d)}b.major=h[0]||d;b.minor=h[1]||d;b.patch=h[2]||d;b.build=h[3]||d;return b};a.prototype={isVersion:!0,padModes:{'~':NaN,'^':Infinity},release:'',compareTo:function(f){var g=this,m=g.pad,j=g.parts,h=j.length,e=f.isVersion?f:new a(f),n=e.pad,k=e.parts,i=k.length,l=Math.max(h,i),b,c,d;for(b=0;b<l;b++){c=(b<h)?j[b]:m;d=(b<i)?k[b]:n;if(c<d){return -1}if(c>d){return 1}}c=g.releaseValue;d=e.releaseValue;if(c<d){return -1}if(c>d){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(a,{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(b,c){var d=b.isVersion?b:new a(b);return d.compareTo(c)},set:function(g,f,c){var b=a.aliases.to[f],d=c.isVersion?c:new a(c),e;g[f]=d;if(b){for(e=b.length;e-->0;){g[b[e]]=d}}return d}});Ext.apply(Ext,{compatVersions:{},versions:{},lastRegisteredVersion:null,getCompatVersion:function(b){var c=Ext.compatVersions,d;if(!b){d=c.ext||c.touch||c.core}else {d=c[a.aliases.from[b]||b]}return d||Ext.getVersion(b)},setCompatVersion:function(b,c){a.set(Ext.compatVersions,b,c)},setVersion:function(b,c){if(b in d){Ext.toolkit=b}Ext.lastRegisteredVersion=a.set(Ext.versions,b,c);return this},getVersion:function(c){var b=Ext.versions;if(!c){return b.ext||b.touch||b.core}return b[a.aliases.from[c]||c]},checkVersion:function(o,j){var p=Ext.isArray(o),s=a.aliases.from,q=p?o:b,t=q.length,n=Ext.versions,r=n.ext||n.touch,l,c,f,i,g,m,d,e,k;if(!p){b[0]=o}for(l=0;l<t;++l){if(!Ext.isString(d=q[l])){f=Ext.checkVersion(d.and||d.or,!d.or);if(d.not){f=!f}}else {if(d.indexOf(' ')>=0){d=d.replace(h,'')}c=d.indexOf('@');if(c<0){e=d;k=r}else {m=d.substring(0,c);if(!(k=n[s[m]||m])){if(j){return !1}continue}e=d.substring(c+1)}c=e.indexOf('-');if(c<0){if(e.charAt(c=e.length-1)==='+'){i=e.substring(0,c);g=null}else {i=g=e}}else if(c>0){i=e.substring(0,c);g=e.substring(c+1)}else {i=null;g=e.substring(c+1)}f=!0;if(i){i=new a(i,'~');f=i.ltEq(k)}if(f&&g){g=new a(g,'~');f=g.gtEq(k)}}if(f){if(!j){return !0}}else if(j){return !1}}return !!j},deprecate:function(b,e,c,d){if(a.compare(Ext.getVersion(b),e)<1){c.call(d)}}})}());(function(c){var d=(c&&c.packages)||{},b=c&&c.compatibility,a,e;for(a in d){e=d[a];if(e&&e.version){Ext.setVersion(a,e.version)}}if(b){if(Ext.isString(b)){Ext.setCompatVersion('core',b)}else {for(a in b){Ext.setCompatVersion(a,b[a])}}}if(!d.ext&&!d.touch){Ext.setVersion('ext','7.0.0.156');Ext.setVersion('core','7.0.0.156')}})(Ext.manifest);Ext.Config=function(b){var c=this,a=b.charAt(0).toUpperCase()+b.substr(1);c.name=b;c.names={internal:'_'+b,initializing:'is'+a+'Initializing',apply:'apply'+a,update:'update'+a,get:'get'+a,set:'set'+a,initGet:'initGet'+a,changeEvent:b.toLowerCase()+'change'};c.root=c};Ext.Config.map={};Ext.Config.get=function(a){var b=Ext.Config.map,c=b[a]||(b[a]=new Ext.Config(a));return c};Ext.Config.prototype={self:Ext.Config,isConfig:!0,combine:function(a,b,e,c){var d=this;if(d.merge){a=d.merge(c?Ext.clone(a):a,b,e)}else if(a&&a.constructor===Object&&b&&b.constructor===Object){a=Ext.merge({},b,a)}else if(c&&a){a=Ext.clone(a)}return a},equals:function(a,b){return a===b},getGetter:function(){return this.getter||(this.root.getter=this.makeGetter())},getInitGetter:function(){return this.initGetter||(this.root.initGetter=this.makeInitGetter())},getSetter:function(){return this.setter||(this.root.setter=this.makeSetter())},getEventedSetter:function(){return this.eventedSetter||(this.root.eventedSetter=this.makeEventedSetter())},getInternalName:function(a){return a.$configPrefixed?this.names.internal:this.name},mergeNew:function(b,d,f,e){var a,c;if(!d){a=b}else if(!b){a=d}else {a=Ext.Object.chain(d);for(c in b){if(!e||!(c in a)){a[c]=b[c]}}}return a},mergeSets:function(a,f,e){var b=f?Ext.Object.chain(f):{},c,d;if(a instanceof Array){for(c=a.length;c--;){d=a[c];if(!e||!(d in b)){b[d]=!0}}}else if(a){if(a.constructor===Object){for(c in a){d=a[c];if(!e||!(c in b)){b[c]=d}}}else if(!e||!(a in b)){b[a]=!0}}return b},makeGetter:function(){var b=this.name,a=this.names.internal;return function(){var c=this.$configPrefixed?a:b;return this[c]}},makeInitGetter:function(){var e=this.name,a=this.names,d=a.set,c=a.get,b=a.initializing;return function(){var a=this;a[b]=!0;delete a[c];a[d](a.config[e]);delete a[b];return a[c].apply(a,arguments)}},makeSetter:function(){var c=this.name,a=this.names,f=a.internal,g=a.get,e=a.apply,d=a.update,b;b=function(b){var a=this,h=a.$configPrefixed?f:c,i=a[h],j;delete a[g];if(!a[e]||(b=a[e](b,i))!==undefined){if(b!==(i=a[h])){a[h]=b;if(a[d]){a[d](b,i)}j=a.$configWatch;if(j&&!a.isConfiguring){j.fire(c,[a,c,a[h],i])}}}return a};b.$isDefault=!0;return b},makeEventedSetter:function(){var d=this.name,a=this.names,g=a.internal,i=a.get,e=a.apply,b=a.update,f=a.changeEvent,h=function(a,c,e,g){a[g]=c;if(a[b]){a[b](c,e)}var f=a.$configWatch;if(f){f.fire(d,[a,d,c,e])}},c;c=function(c){var a=this,k=a.$configPrefixed?g:d,j=a[k];delete a[i];if(!a[e]||(c=a[e](c,j))!==undefined){if(c!==(j=a[k])){if(a.isConfiguring){a[k]=c;if(a[b]){a[b](c,j)}}else {a.fireEventedAction(f,[a,c,j],h,a,[a,c,j,k])}}}return a};c.$isDefault=!0;return c}};(function(){var c=Ext.Config,b=c.map,a=Ext.Object;Ext.Configurator=function(d){var b=this,e=d.prototype,c=d.superclass?d.superclass.self.$config:null;b.cls=d;b.superCfg=c;if(c){b.configs=a.chain(c.configs);b.cachedConfigs=a.chain(c.cachedConfigs);b.initMap=a.chain(c.initMap);b.values=a.chain(c.values);b.needsFork=c.needsFork}else {b.configs={};b.cachedConfigs={};b.initMap={};b.values={}}e.config=e.defaultConfig=b.values;d.$config=b};Ext.Configurator.prototype={self:Ext.Configurator,needsFork:!1,initList:null,add:function(s,k){var h=this,m=h.cls,j=h.configs,u=h.cachedConfigs,p=h.initMap,f=m.prototype,r=k&&k.$config.configs,t=h.values,l,e,o,g,a,i,d,q,n,b;for(d in s){b=s[d];l=b&&b.constructor===Object;e=l&&'$value' in b?b:null;o=!1;if(e){o=!!e.cached;b=e.$value;l=b&&b.constructor===Object}g=e&&e.merge;a=j[d];if(a){if(k){g=a.merge;if(!g){continue}e=null}else {g=g||a.merge}i=t[d];if(g){b=g.call(a,b,i,m,k)}else if(l){if(i&&i.constructor===Object){b=Ext.merge({},i,b)}}}else {if(r){a=r[d];e=null}else {a=c.get(d)}j[d]=a;if(a.cached||o){u[d]=!0}q=a.names;if(!f[n=q.get]){f[n]=a.getter||a.getGetter()}if(!f[n=q.set]){f[n]=(e&&e.evented)?(a.eventedSetter||a.getEventedSetter()):(a.setter||a.getSetter())}}if(e){if(a.owner!==m){j[d]=a=Ext.Object.chain(a);a.owner=m}Ext.apply(a,e);delete a.$value}if(!h.needsFork&&b&&(b.constructor===Object||b instanceof Array)){h.needsFork=!0}if(b!==null){p[d]=!0}else {if(f.$configPrefixed){f[j[d].names.internal]=null}else {f[j[d].name]=null}if(d in p){p[d]=!1}}t[d]=b}},configure:function(b,i){var j=this,v=j.configs,x=j.initMap,s=j.initListMap,p=j.initList,m=j.cls.prototype,l=j.values,t=0,w=!p,o,c,n,d,q,f,g,e,h,u,r,y,k;l=j.needsFork?a.fork(l):a.chain(l);b.isConfiguring=!0;if(w){j.initList=p=[];j.initListMap=s={};b.isFirstInstance=!0;for(e in x){c=v[e];u=c.cached;if(x[e]){g=c.names;h=l[e];if(!m[g.set].$isDefault||m[g.apply]||m[g.update]||typeof h==='object'){if(u){(o||(o=[])).push(c)}else {p.push(c);s[e]=!0}b[g.get]=c.initGetter||c.getInitGetter()}else {m[c.getInternalName(m)]=h}}else if(u){m[c.getInternalName(m)]=undefined}}}f=o&&o.length;if(f){for(d=0;d<f;++d){q=o[d].getInternalName(m);b[q]=null}for(d=0;d<f;++d){g=(c=o[d]).names;n=g.get;if(b.hasOwnProperty(n)){b[g.set](l[c.name]);delete b[n]}}for(d=0;d<f;++d){q=o[d].getInternalName(m);m[q]=b[q];delete b[q]}}if(i&&i.platformConfig){i=j.resolvePlatformConfig(b,i)}if(w){if(b.afterCachedConfig&&!b.afterCachedConfig.$nullFn){b.afterCachedConfig(i)}}b.config=l;for(d=0,f=p.length;d<f;++d){c=p[d];b[c.names.get]=c.initGetter||c.getInitGetter()}if(!(k=b.self.$configTransforms)){b.self.$configTransforms=k=[];f=b.$configTransforms;for(e in f){k.push([e,f[e]])}f=k.length;if(f>1){k.sort(j.transformSorter);for(d=0;d<f;++d){k[d]=k[d][0]}}else if(f){k[0]=k[0][0]}}for(d=0;d<k.length;++d){e=k[d];if(b[e]){i=b[e](i,j)}}if(i){for(e in i){h=i[e];c=v[e];if(!c){b[e]=h}else {if(!c.lazy){++t}if(!s[e]){b[c.names.get]=c.initGetter||c.getInitGetter()}r=l[e];if(c.merge){h=c.merge(h,r,b)}else if(h&&h.constructor===Object){if(r&&r.constructor===Object){h=Ext.merge(l[e],h)}else {h=Ext.clone(h,!1)}}}l[e]=h}}if(b.beforeInitConfig&&!b.beforeInitConfig.$nullFn){if(b.beforeInitConfig(i)===!1){return}}if(i){for(e in i){if(!t){break}c=v[e];if(c&&!c.lazy){--t;g=c.names;n=g.get;if(b.hasOwnProperty(n)){b[g.set](l[e]);delete b[g.get]}}}}for(d=0,f=p.length;d<f;++d){c=p[d];g=c.names;n=g.get;if(!c.lazy&&b.hasOwnProperty(n)){b[g.set](l[c.name]);delete b[n]}}delete b.isConfiguring},getCurrentConfig:function(c){var e=c.defaultConfig,d={},a;for(a in e){d[a]=c[b[a].names.get]()}return d},hoistConfigs:function(e,d,g){var f=e.config,j=this.configs,i=this.initListMap,h=!1,b,c,a;for(c=0;c<g.length;++c){a=g[c];if(d&&a in d){b=j[a];f[a]=b.combine(d[a],f[a],e);if(!i[a]){e[b.names.get]=b.initGetter||b.getInitGetter()}}if(f[a]!=null){h=!0}}return h},merge:function(g,b,f,i){var h=this.configs,d,a,c,e;if(i){b=Ext.clone(b,!1)}for(d in f){a=f[d];e=h[d];if(e){c=b[d];if(e.merge){a=e.merge(a,c,g)}else if(a&&a.constructor===Object){if(c&&c.constructor===Object){a=Ext.merge(c,a)}else {a=Ext.clone(a,!1)}}}b[d]=a}return b},reconfigure:function(c,f,g){var n=c.config,i=[],p=c.$configStrict&&!(g&&g.strict===!1),l=this.configs,o=g&&g.defaults,d,j,h,m,a,e,k;for(a in f){d=l[a];if(o&&c.hasOwnProperty(d&&c.$configPrefixed?d.names.internal:a)){continue}n[a]=f[a];if(d){c[d.names.get]=d.initGetter||d.getInitGetter()}else {k=c.self.prototype[a];if(p){if((typeof k==='function')&&!k.$nullFn){continue}}}i.push(a)}for(h=0,m=i.length;h<m;h++){a=i[h];d=l[a];if(d){e=d.names;j=e.get;if(c.hasOwnProperty(j)){c[e.set](f[a]);delete c[j]}}else {d=b[a]||Ext.Config.get(a);e=d.names;if(c[e.set]){c[e.set](f[a])}else {c[a]=f[a]}}}},resolvePlatformConfig:function(g,e){var f=e&&e.platformConfig,b=e,c,a,d;if(f){a=Ext.getPlatformConfigKeys(f);d=a.length;if(d){b=Ext.merge({},b);for(c=0,d=a.length;c<d;++c){this.merge(g,b,f[a[c]])}}}return b},transformSorter:function(a,b){return a[1]-b[1]}}}());Ext.Base=(function(l){var d=[],e,h=[],i=function(a,b){if(!a.hasOwnProperty(b)){a[b]=Ext.Object.chain(i(a.superclass,b))}return a[b]},k=function(a){return function(){return this[a].apply(this,arguments)}},m=Ext.Version,j=/^\d/,g={},f={},b=function(){},c=b.prototype,a;Ext.Reaper=a={delay:100,queue:[],timer:null,add:function(b){if(!a.timer){a.timer=Ext.defer(a.tick,a.delay)}a.queue.push(b)},flush:function(){if(a.timer){Ext.undefer(a.timer);a.timer=null}var d=a.queue,e=d.length,c,b;a.queue=[];for(c=0;c<e;++c){b=d[c];if(b&&b.$reap){b.$reap()}}},tick:function(){a.timer=null;a.flush()}};Ext.apply(b,{$className:'Ext.Base',$isClass:!0,create:function(){return Ext.create.apply(Ext,[this].concat(Array.prototype.slice.call(arguments,0)))},addConfigTransform:function(a,c){var b=i(this.prototype,'$configTransforms');b[a]=c},addDeprecations:function(o){var s=this,n=[],t=Ext.getCompatVersion(o.name),c,g,r,u,e,h,p,f,i,b,v,a,q,d;for(g in o){if(j.test(g)){d=new Ext.Version(g);d.deprecations=o[g];n.push(d)}}n.sort(m.compare);for(r=n.length;r--;){c=(d=n[r]).deprecations;e=s.prototype;q=c.statics;h=t&&t.lt(d);if(!h){break}while(c){i=c.methods;if(i){for(b in i){a=i[b];f=null;if(!a){}else if(Ext.isString(a)){if(h){f=k(a)}}else {u='';if(a.message||a.fn){a=a.fn}p=e.hasOwnProperty(b)&&e[b];if(h&&a){a.$owner=s;a.$name=b;if(p){a.$previous=p}f=a}}if(f){e[b]=f}}}c=q;q=null;e=s}}},extend:function(d){var b=this,f=d.prototype,e,a,g;e=b.prototype=Ext.Object.chain(f);e.self=b;b.superclass=e.superclass=f;if(!d.$isClass){for(a in c){if(a in e){e[a]=c[a]}}}g=f.$inheritableStatics;if(g){for(a in g){if(!b.hasOwnProperty(a)){b[a]=d[a]}}}if(d.$onExtended){b.$onExtended=d.$onExtended.slice()}b.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,!0);return this},addInheritableStatics:function(e){var b=this,g=b.prototype,d=b.$inheritableStatics,a,f,c;if(!d){d=Ext.apply({},g.$inheritableStatics);b.$inheritableStatics=g.$inheritableStatics=d}for(a in e){if(e.hasOwnProperty(a)){f=e[a];c=b[a];if(typeof c==='function'&&!c.$isClass&&!c.$nullFn){f.$previous=c}b[a]=f;d[a]=!0}}return b},addMembers:function(d,f,q){var e=this,m=Ext.Function.clone,c=f?e:e.prototype,n=!f&&c.defaultConfig,k=Ext.enumerables,g=d.privates,h,i,p,a,b,o,j;if(g){delete d.privates;if(!f){j=g.statics;delete g.statics}e.addMembers(g,f,o);if(j){e.addMembers(j,!0,o)}}for(b in d){if(d.hasOwnProperty(b)){a=d[b];if(typeof a==='function'&&!a.$isClass&&!a.$nullFn){if(a.$owner){a=m(a)}if(c.hasOwnProperty(b)){a.$previous=c[b]}a.$owner=e;a.$name=b}else if(n&&(b in n)&&!c.config.hasOwnProperty(b)){(h||(h={}))[b]=a;continue}c[b]=a}}if(h){e.addConfig(h)}if(k){for(i=0,p=k.length;i<p;++i){if(d.hasOwnProperty(b=k[i])){a=d[b];if(a&&!a.$nullFn){if(a.$owner){a=m(a)}a.$owner=e;a.$name=b;if(c.hasOwnProperty(b)){a.$previous=c[b]}}c[b]=a}}}return this},addMember:function(a,c,b){g[a]=c;this.addMembers(g,!1,b);delete g[a];return this},hookMember:function(b,c){var a=this.prototype[b];return this.addMember(b,c,a&&a.$privacy)},borrow:function(f,a){var g=f.prototype,d={},b,e,c;a=Ext.Array.from(a);for(b=0,e=a.length;b<e;b++){c=a[b];d[c]=g[c]}return this.addMembers(d)},override:function(a){var b=this,d=a.statics,c=a.inheritableStatics,e=a.config,g=a.mixins,f=a.cachedConfig;if(d||c||e){a=Ext.apply({},a)}if(d){b.addMembers(d,!0);delete a.statics}if(c){b.addInheritableStatics(c);delete a.inheritableStatics}if(a.platformConfig){b.addPlatformConfig(a)}if(e){b.addConfig(e);delete a.config}if(f){b.addCachedConfig(f);delete a.cachedConfig}delete a.mixins;b.addMembers(a);if(g){b.mixin(g)}return b},addPlatformConfig:function(n){var m=this,j=m.prototype,h=n.platformConfig,a,i,e,d,g,b,f,c,k;delete j.platformConfig;d=m.getConfigurator();i=d.configs;g=Ext.getPlatformConfigKeys(h);for(c=0,k=g.length;c<k;++c){e=h[g[c]];a=null;for(b in e){f=e[b];if(b in i){(a||(a={}))[b]=f}else {j[b]=f}}if(a){d.add(a)}}},callParent:function(b){var a;return (a=this.callParent.caller)&&(a.$previous||((a=a.$owner?a:a.caller)&&a.$owner.superclass.self[a.$name])).apply(this,b||d)},callSuper:function(b){var a;return (a=this.callSuper.caller)&&((a=a.$owner?a:a.caller)&&a.$owner.superclass.self[a.$name]).apply(this,b||d)},mixin:function(n,f){var c=this,a,b,d,m,h,o,k,j,e,i,g;if(typeof n!=='string'){e=n;if(e instanceof Array){for(h=0,o=e.length;h<o;h++){a=e[h];c.mixin(a.prototype.mixinId||a.$className,a)}}else {for(k in e){c.mixin(k,e[k])}}return}a=f.prototype;b=c.prototype;if(a.onClassMixedIn){a.onClassMixedIn.call(f,c)}if(!b.hasOwnProperty('mixins')){if('mixins' in b){b.mixins=Ext.Object.chain(b.mixins)}else {b.mixins={}}}for(d in a){j=a[d];if(d==='mixins'){Ext.applyIf(b.mixins,j)}else if(!(d==='mixinId'||d==='config'||d==='$inheritableStatics')&&(b[d]===undefined)){b[d]=j}}m=a.$inheritableStatics;if(m){i={};for(g in m){if(!c.hasOwnProperty(g)){i[g]=f[g]}}c.addInheritableStatics(i)}if('config' in a){c.addConfig(a.config,f)}b.mixins[n]=a;if(a.afterClassMixedIn){a.afterClassMixedIn.call(f,c)}return c},addConfig:function(b,a){var c=this.$config||this.getConfigurator();c.add(b,a)},addCachedConfig:function(c,d){var b={},a;for(a in c){b[a]={cached:!0,$value:c[a]}}this.addConfig(b,d)},getConfigurator:function(){return this.$config||new Ext.Configurator(this)},getName:function(){return Ext.getClassName(this)},createAlias:l(function(a,b){f[a]=function(){return this[b].apply(this,arguments)};this.override(f);delete f[a]})});for(e in b){if(b.hasOwnProperty(e)){h.push(e)}}b.$staticMembers=h;b.getConfigurator();b.addMembers({$className:'Ext.Base',$configTransforms:{},isInstance:!0,$configPrefixed:!0,$configStrict:!0,isConfiguring:!1,isFirstInstance:!1,destroyed:!1,clearPropertiesOnDestroy:!0,clearPrototypeOnDestroy:!1,statics:function(){var a=this.statics.caller,b=this.self;if(!a){return b}return a.$owner},callParent:function(c){var a,b=(a=this.callParent.caller)&&(a.$previous||((a=a.$owner?a:a.caller)&&a.$owner.superclass[a.$name]));return b.apply(this,c||d)},callSuper:function(c){var a,b=(a=this.callSuper.caller)&&((a=a.$owner?a:a.caller)&&a.$owner.superclass[a.$name]);return b.apply(this,c||d)},self:b,constructor:function(){return this},initConfig:function(b){var a=this,c=a.self.getConfigurator();a.initConfig=Ext.emptyFn;a.initialConfig=b||{};c.configure(a,b);return a},beforeInitConfig:Ext.emptyFn,getConfig:function(d,g,f){var a=this,b,e,c;if(d){e=a.self.$config.configs[d];if(e){c=a.$configPrefixed?e.names.internal:d;if(f){b=a.hasOwnProperty(c)?a[c]:null}else if(g){b=a.hasOwnProperty(c)?a[c]:a.config[d]}else {b=a[e.names.get]()}}else {b=a[d]}}else {b=a.getCurrentConfig()}return b},destroyMembers:function(){var b=this,f=b.self.$config.configs,g=arguments.length,e,a,d,c;for(c=0;c<g;c++){a=arguments[c];e=f[a];a=e&&b.$configPrefixed?e.names.internal:a;d=b.hasOwnProperty(a)&&b[a];if(d){Ext.destroy(d);b[a]=null}}},freezeConfig:function(d){var a=this,c=Ext.Config.get(d),b=c.names,e=a[b.get]();a[b.set]=function(b){return a}},setConfig:function(b,e,g){var a=this,d,c,f;if(b){d=a.self.getConfigurator();if(typeof b==='string'){c=d.configs[b];if(!c){if(a.$configStrict){f=a.self.prototype[b];if((typeof f==='function')&&!f.$nullFn){return a}}c=Ext.Config.map[b]||Ext.Config.get(b)}if(a[c.names.set]){a[c.names.set](e)}else {a[b]=e}}else {d.reconfigure(a,b,g||e)}}return a},getConfigWatcher:function(){return this.$configWatch||(this.$configWatch=new Ext.mixin.Watchable())},watchConfig:function(c,d,b){var a=this.getConfigWatcher();return a.on.apply(a,arguments)},$configWatch:null,getCurrentConfig:function(){var a=this.self.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(c,b){var a=this,d=a.$links||(a.$links={});d[c]=!0;a[c]=b;return b},unlink:function(e){var d=this,b,f,c,a;for(b=0,f=e.length;b<f;b++){c=e[b];a=d[c];if(a){if(a.isInstance&&!a.destroyed){a.destroy()}else if(a.parentNode&&'nodeType' in a){a.parentNode.removeChild(a)}}d[c]=null}return d},$reap:function(){var a=this,g=a.$noClearOnDestroy,e,b,c,f,d,h;e=Ext.Object.getKeys(a);for(d=0,h=e.length;d<h;d++){b=e[d];c=a[b];if(c&&!(g&&g[b])){f=typeof c;if(f==='object'||(f==='function'&&!c.$noClearOnDestroy)){a[b]=null}}}a.$nulled=!0},destroy:function(){var b=this,d=b.$links,c=b.clearPropertiesOnDestroy;if(d){b.$links=null;b.unlink(Ext.Object.getKeys(d))}b.destroy=Ext.emptyFn;b.isDestroyed=b.destroyed=!0;if(c===!0){if(!b.isObservable){b.$reap()}}else if(c){a.add(b)}}});c.callOverridden=c.callParent;return b}(Ext.Function.flexSetter));(function(b,a){(Ext.util||(Ext.util={})).LRU=b=function(e){var d=this,c;if(e){Ext.apply(d,e)}d.head=c={key:null,value:null};d.map={};c.next=c.prev=c};b.prototype=a={count:0,add:function(e,g){var d=this,f=d.map,c=f[e];if(c){d.unlink(c);--d.count}f[e]=c={key:e,value:g};d.link(c);++d.count;return c},clear:function(e,g){var f=this,d=f.head,c=d.next;d.next=d.prev=d;f.count=0;if(e&&!e.$nullFn){for(;c!==d;c=c.next){e.call(g||f,c.key,c.value)}}},each:function(f,d){var e,c;d=d||this;for(e=this.head,c=e.next;c!==e;c=c.next){if(f.call(d,c.key,c.value)){break}}},prune:function(f,g){var c=this,d=c.head.prev,e;if(c.count){e=d.value;c.unlink(d);--c.count;if(f){f.call(g||c,d.key,e)}}return e},remove:function(f){var d=this,g=d.map,c=g[f],e;if(c){d.unlink(c);e=c.value;delete g[f];--d.count}return e},touch:function(f){var d=this,e=d.head,c=d.map[f];if(c&&c.prev!==e){d.unlink(c);d.link(c)}},trim:function(d,e,c){while(this.count>d){this.prune(e,c)}},link:function(c){var d=this.head,e=d.next;c.next=e;c.prev=d;d.next=c;e.prev=c},unlink:function(c){var d=c.next,e=c.prev;e.next=d;d.prev=e}};a.destroy=function(){this.clear.apply(this,arguments)}}());(function(a,c,b){Ext.util.Cache=b=function(d){a.call(this,d)};c.prototype=a.prototype;b.prototype=Ext.apply(new c(),{maxSize:100,clear:function(){a.prototype.clear.call(this,this.evict)},get:function(f){var d=this,g=d.map[f],e;if(g){e=g.value;d.touch(f)}else {e=d.miss.apply(d,arguments);d.add(f,e);d.trim(d.maxSize,d.evict)}return e},evict:Ext.emptyFn})}(Ext.util.LRU,function(){}));(function(){var a,d=Ext.Base,b=d.$staticMembers,c=function(a,b){return (a.length-b.length)||((a<b)?-1:((a>b)?1:0))};function makeCtor(a){function constructor(){return this.constructor.apply(this,arguments)||null}return constructor}Ext.Class=a=function(b,c,d){if(typeof b!=='function'){d=c;c=b;b=null}if(!c){c={}}b=a.create(b,c);a.process(b,c,d);return b};Ext.apply(a,{makeCtor:makeCtor,onBeforeCreated:function(a,c,b){a.addMembers(c);b.onCreated.call(a,a)},create:function(a,f){var e=b.length,c;if(!a){a=makeCtor()}while(e--){c=b[e];a[c]=d[c]}return a},process:function(l,f,k){var j=f.preprocessors||a.defaultPreprocessors,o=this.preprocessors,e={onBeforeCreated:this.onBeforeCreated},d=[],b,c,g,n,h,m,i;delete f.preprocessors;l._classHooks=e;for(g=0,n=j.length;g<n;g++){b=j[g];if(typeof b==='string'){b=o[b];c=b.properties;if(c===!0){d.push(b.fn)}else if(c){for(h=0,m=c.length;h<m;h++){i=c[h];if(f.hasOwnProperty(i)){d.push(b.fn);break}}}}else {d.push(b)}}e.onCreated=k?k:Ext.emptyFn;e.preprocessors=d;this.doProcess(l,f,e)},doProcess:function(f,g,b){var c=this,d=b.preprocessors,a=d.shift(),e=c.doProcess;for(;a;a=d.shift()){if(a.call(c,f,g,b,e)===!1){return}}b.onBeforeCreated.apply(c,arguments)},preprocessors:{},registerPreprocessor:function(a,e,b,c,d){if(!c){c='last'}if(!b){b=[a]}this.preprocessors[a]={name:a,properties:b||!1,fn:e};this.setDefaultPreprocessorPosition(a,c,d);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(d,a,e){var b=this.defaultPreprocessors,c;if(typeof a==='string'){if(a==='first'){b.unshift(d);return this}else if(a==='last'){b.push(d);return this}a=(a==='after')?1:-1}c=Ext.Array.indexOf(b,e);if(c!==-1){Ext.Array.splice(b,Math.max(0,c+a),0,d)}return this}});a.registerPreprocessor('extend',function(b,c,i){var h=Ext.Base,g=h.prototype,f=c.extend,a,e,d;delete c.extend;if(f&&f!==Object){a=f}else {a=h}e=a.prototype;if(!a.$isClass){for(d in g){if(!e[d]){e[d]=g[d]}}}b.extend(a);b.triggerExtended.apply(b,arguments);if(c.onClassExtended){b.onExtended(c.onClassExtended,b);delete c.onClassExtended}},!0);a.registerPreprocessor('privates',function(d,e){var a=e.privates,c=a.statics,b=a.privacy||!0;delete e.privates;delete a.statics;d.addMembers(a,!1,b);if(c){d.addMembers(c,!0,b)}});a.registerPreprocessor('statics',function(b,a){b.addStatics(a.statics);delete a.statics});a.registerPreprocessor('inheritableStatics',function(b,a){b.addInheritableStatics(a.inheritableStatics);delete a.inheritableStatics});Ext.createRuleFn=function(a){return new Function('$c','with($c) { try { return ('+a+'); } catch(e) { return false;}}')};Ext.expressionCache=new Ext.util.Cache({miss:Ext.createRuleFn});Ext.ruleKeySortFn=c;Ext.getPlatformConfigKeys=function(e){var b=[],a,d;for(a in e){d=Ext.expressionCache.get(a);if(d(Ext.platformTags)){b.push(a)}}b.sort(c);return b};a.registerPreprocessor('config',function(b,a){if(a.hasOwnProperty('$configPrefixed')){b.prototype.$configPrefixed=a.$configPrefixed}b.addConfig(a.config);delete a.config});a.registerPreprocessor('cachedConfig',function(b,a){if(a.hasOwnProperty('$configPrefixed')){b.prototype.$configPrefixed=a.$configPrefixed}b.addCachedConfig(a.cachedConfig);delete a.cachedConfig});a.registerPreprocessor('mixins',function(e,b,a){var d=b.mixins,c=a.onCreated;delete b.mixins;a.onCreated=function(){a.onCreated=c;e.mixin(d);return a.onCreated.apply(this,arguments)}});Ext.extend=function(d,c,b){var e,f;if(arguments.length===2&&Ext.isObject(c)){b=c;c=d;d=null}if(!c){throw new Error("[Ext.extend] Attempting to extend from a class which has not "+"been loaded on the page.")}b.extend=c;b.preprocessors=['extend','statics','inheritableStatics','mixins','config'];if(d){e=new a(d,b);e.prototype.constructor=d}else {e=new a(b)}e.prototype.override=function(a){for(f in a){if(a.hasOwnProperty(f)){this[f]=a[f]}}};return e}}());Ext.Inventory=function(){var a=this;a.names=[];a.paths={};a.alternateToName={};a.aliasToName={};a.nameToAliases={};a.nameToAlternates={};a.nameToPrefix={}};Ext.Inventory.prototype={_array1:[0],prefixes:null,dotRe:/\./g,wildcardRe:/\*/g,addAlias:function(a,c,b){return this.addMapping(a,c,this.aliasToName,this.nameToAliases,b)},addAlternate:function(b,a){return this.addMapping(b,a,this.alternateToName,this.nameToAlternates)},addMapping:function(h,m,k,j,n){var f=h.$className||h,c=f,l=this._array1,d,a,b,e,i,g;if(Ext.isString(f)){c={};c[f]=m}for(b in c){a=c[b];if(Ext.isString(a)){l[0]=a;a=l}i=a.length;g=j[b]||(j[b]=[]);for(e=0;e<i;++e){if(!(d=a[e])){continue}if(k[d]!==b){k[d]=b;g.push(d)}}}},getAliasesByName:function(a){return this.nameToAliases[a]||null},getAlternatesByName:function(a){return this.nameToAlternates[a]||null},getNameByAlias:function(a){return this.aliasToName[a]||''},getNameByAlternate:function(a){return this.alternateToName[a]||''},getNamesByExpression:function(k,e,r){var g=this,q=g.aliasToName,p=g.alternateToName,m=g.nameToAliases,o=g.nameToAlternates,i=r?e:{},l=[],n=Ext.isString(k)?[k]:k,t=n.length,s=g.wildcardRe,f,j,c,b,d,a,h;for(j=0;j<t;++j){if((f=n[j]).indexOf('*')<0){if(!(a=q[f])){if(!(a=p[f])){a=f}}if(!(a in i)&&!(e&&(a in e))){i[a]=1;l.push(a)}}else {h=new RegExp('^'+f.replace(s,'(.*?)')+'$');for(a in m){if(!(a in i)&&!(e&&(a in e))){if(!(b=h.test(a))){d=(c=m[a]).length;while(!b&&d-->0){b=h.test(c[d])}c=o[a];if(c&&!b){d=c.length;while(!b&&d-->0){b=h.test(c[d])}}}if(b){i[a]=1;l.push(a)}}}}}return l},getPath:function(a){var c=this,e=c.paths,b='',d;if(a in e){b=e[a]}else {d=c.nameToPrefix[a]||(c.nameToPrefix[a]=c.getPrefix(a));if(d){a=a.substring(d.length+1);b=e[d];if(b){b+='/'}}b+=a.replace(c.dotRe,'/')+'.js'}return b},getPrefix:function(a){if(a in this.paths){return a}else if(a in this.nameToPrefix){return this.nameToPrefix[a]}var h=this.getPrefixes(),b=a.length,c,f,e,d,g;while(b-->0){c=h[b];if(c){f=a.charAt(b);if(f!=='.'){continue}for(d=0,g=c.length;d<g;d++){e=c[d];if(e===a.substring(0,b)){return e}}}}return ''},getPrefixes:function(){var f=this,a=f.prefixes,d,e,c,g,b,h;if(!a){d=f.names.slice(0);f.prefixes=a=[];for(b=0,h=d.length;b<h;b++){e=d[b];c=e.length;g=a[c]||(a[c]=[]);g.push(e)}}return a},removeName:function(a){var c=this,j=c.aliasToName,h=c.alternateToName,i=c.nameToAliases,g=c.nameToAlternates,f=i[a],e=g[a],b,d;delete i[a];delete g[a];delete c.nameToPrefix[a];if(f){for(b=f.length;b--;){if(a===j[d=f[b]]){delete j[d]}}}if(e){for(b=e.length;b--;){if(a===h[d=e[b]]){delete h[d]}}}},resolveName:function(a){var c=this,b;if(!(a in c.nameToAliases)){if(!(b=c.aliasToName[a])){b=c.alternateToName[a]}}return b||a},select:function(b,f){var e=this,a={},d={excludes:a,exclude:function(){e.getNamesByExpression(arguments[0],a,!0);return this}},c;for(c in b){d[c]=e.selectMethod(a,b[c],f||b)}return d},selectMethod:function(a,c,b){var d=this;return function(f){var e=Ext.Array.slice(arguments,1);e.unshift(d.getNamesByExpression(f,a));return c.apply(b,e)}},setPath:Ext.Function.flexSetter(function(b,c){var a=this;a.paths[b]=c;a.names.push(b);a.prefixes=null;a.nameToPrefix={};return a})};Ext.ClassManager=(function(n,e,o,g,r){var q=Ext.Class.makeCtor,i=[],b={Ext:{name:'Ext',value:Ext}},a=Ext.apply(new Ext.Inventory(),{classes:{},classState:{},existCache:{},instantiators:[],isCreated:function(b){if(a.classes[b]||a.existCache[b]){return !0}if(!a.lookupName(b,!1)){return !1}a.triggerCreated(b);return !0},createdListeners:[],nameCreatedListeners:{},existsListeners:[],nameExistsListeners:{},overrideMap:{},triggerCreated:function(b,c){a.existCache[b]=c||1;a.classState[b]+=40;a.notify(b,a.createdListeners,a.nameCreatedListeners)},onCreated:function(d,c,b){a.addListener(d,c,b,a.createdListeners,a.nameCreatedListeners)},notify:function(k,c,m){var l=a.getAlternatesByName(k),f=[k],b,i,j,p,d,h;for(b=0,i=c.length;b<i;b++){d=c[b];d.fn.call(d.scope,k)}while(f){for(b=0,i=f.length;b<i;b++){h=f[b];c=m[h];if(c){for(j=0,p=c.length;j<p;j++){d=c[j];d.fn.call(d.scope,h)}delete m[h]}}f=l;l=null}},addListener:function(b,f,a,h,c){var d;if(Ext.isArray(a)){b=Ext.Function.createBarrier(a.length,b,f);for(d=0;d<a.length;d++){this.addListener(b,null,a[d],h,c)}return}var i={fn:b,scope:f};if(a){if(this.isCreated(a)){b.call(f,a);return}if(!c[a]){c[a]=[]}c[a].push(i)}else {h.push(i)}},$namespaceCache:b,addRootNamespaces:function(c){var a;for(a in c){b[a]={name:a,value:c[a]}}},clearNamespaceCache:function(){var a;i.length=0;for(a in b){if(!b[a].value){delete b[a]}}},getNamespaceEntry:function(c){var d,f;if(typeof c!=='string'){return c}d=b[c];if(!d){f=c.lastIndexOf('.');if(f<0){d={name:c}}else {d={name:c.substring(f+1),parent:a.getNamespaceEntry(c.substring(0,f))}}b[c]=d}return d},lookupName:function(j,h){var k=a.getNamespaceEntry(j),c=Ext.global,d=0,b,f;for(b=k;b;b=b.parent){i[d++]=b}while(c&&d-->0){b=i[d];f=c;c=b.value||c[b.name];if(!c&&h){f[b.name]=c={}}}return c},setNamespace:function(f,d){var b=a.getNamespaceEntry(f),c=Ext.global;if(b.parent){c=a.lookupName(b.parent,!0)}c[b.name]=d;return d},setXType:function(i,d){var f=i.$className,k=f?i:a.get(f=i),b=k.prototype,j=b.xtypes,c=b.xtypesChain,h=b.xtypesMap;if(!b.hasOwnProperty('xtypes')){b.xtypes=j=[];b.xtypesChain=c=c?c.slice(0):[];b.xtypesMap=h=Ext.apply({},h)}a.addAlias(f,'widget.'+d,!0);j.push(d);c.push(d);h[d]=!0},set:function(b,d){var c=a.getName(d);a.classes[b]=a.setNamespace(b,d);if(c&&c!==b){a.addAlternate(c,b)}return a},get:function(b){return a.classes[b]||a.lookupName(b,!1)},addNameAliasMappings:function(b){a.addAlias(b)},addNameAlternateMappings:function(b){a.addAlternate(b)},getByAlias:function(b){return a.get(a.getNameByAlias(b))},getByConfig:function(c,d){var f=c.xclass,b;if(f){b=f}else {b=c.xtype;if(b){d='widget.'}else {b=c.type}b=a.getNameByAlias(d+b)}return a.get(b)},getName:function(a){return a&&a.$className||''},getClass:function(a){return a&&a.self||null},create:function(c,b,f){var d;d=q(c);if(typeof b==='function'){b=b(d)}b.$className=c;return new n(d,b,function(){var m=b.postprocessors||a.defaultPostprocessors,s=a.postprocessors,i=[],d,j,q,k,p,h,l;delete b.postprocessors;for(j=0,q=m.length;j<q;j++){d=m[j];if(typeof d==='string'){d=s[d];h=d.properties;if(h===!0){i.push(d.fn)}else if(h){for(k=0,p=h.length;k<p;k++){l=h[k];if(b.hasOwnProperty(l)){i.push(d.fn);break}}}}else {i.push(d)}}b.postprocessors=i;b.createdFn=f;a.processCreate(c,this,b)})},processCreate:function(a,b,d){var c=this,f=d.postprocessors.shift(),h=d.createdFn;if(!f){if(a){c.set(a,b)}delete b._classHooks;if(h){h.call(b,b)}if(a){c.triggerCreated(a)}return}if(f.call(c,a,b,d,c.processCreate)!==!1){c.processCreate(a,b,d)}},createOverride:function(j,c,m){var h=this,f=c.override,p=c.requires,q=c.uses,b=c.mixins,l,d=1,k,i;i=function(){var a,s,d,t,u;if(!k){s=p?p.slice(0):[];if(b){if(!(l=b instanceof Array)){for(t in b){if(Ext.isString(a=b[t])){s.push(a)}}}else {for(d=0,u=b.length;d<u;++d){if(Ext.isString(a=b[d])){s.push(a)}}}}k=!0;if(s.length){Ext.require(s,i);return}}if(l){for(d=0,u=b.length;d<u;++d){if(Ext.isString(a=b[d])){b[d]=Ext.ClassManager.get(a)}}}else if(b){for(t in b){if(Ext.isString(a=b[t])){b[t]=Ext.ClassManager.get(a)}}}a=f.$isClass?f:h.get(f);delete c.override;delete c.compatibility;delete c.requires;delete c.uses;Ext.override(a,c);Ext.Loader.history.push(j);if(q){Ext['Loader'].addUsedClasses(q)}if(m){m.call(a,a)}};if(j){a.overrideMap[j]=!0}if('compatibility' in c){d=c.compatibility;if(!d){d=!1}else if(typeof d==='number'){d=!0}else if(typeof d!=='boolean'){d=Ext.checkVersion(d)}}if(d){if(f.$isClass){i()}else {h.onCreated(i,h,f)}}h.triggerCreated(j,2);return h},instantiateByAlias:function(){var c=arguments[0],a=o.call(arguments),b=this.getNameByAlias(c);a[0]=b;return Ext.create.apply(Ext,a)},dynInstantiate:function(b,a){a=g(a,!0);a.unshift(b);return Ext.create.apply(Ext,a)},getInstantiator:function(c){var f=this.instantiators,b,d,a;b=f[c];if(!b){a=c;d=[];for(a=0;a<c;a++){d.push('a['+a+']')}b=f[c]=new Function('c','a','return new c('+d.join(',')+')')}return b},postprocessors:{},defaultPostprocessors:[],registerPostprocessor:function(a,f,b,c,d){if(!c){c='last'}if(!b){b=[a]}this.postprocessors[a]={name:a,properties:b||!1,fn:f};this.setDefaultPostprocessorPosition(a,c,d);return this},setDefaultPostprocessors:function(a){this.defaultPostprocessors=g(a);return this},setDefaultPostprocessorPosition:function(d,a,f){var b=this.defaultPostprocessors,c;if(typeof a==='string'){if(a==='first'){b.unshift(d);return this}else if(a==='last'){b.push(d);return this}a=(a==='after')?1:-1}c=Ext.Array.indexOf(b,f);if(c!==-1){Ext.Array.splice(b,Math.max(0,c+a),0,d)}return this}});a.registerPostprocessor('platformConfig',function(c,a,b){a.addPlatformConfig(b)});a.registerPostprocessor('alias',function(h,f,d){var b=Ext.Array.from(d.alias),a,c;for(a=0,c=b.length;a<c;a++){e=b[a];this.addAlias(f,e)}},['xtype','alias']);a.registerPostprocessor('singleton',function(b,c,a,d){if(a.singleton){d.call(this,b,new c(),a)}else {return !0}return !1});a.registerPostprocessor('alternateClassName',function(i,h,f){var a=f.alternateClassName,b,d,c;if(!(a instanceof Array)){a=[a]}for(b=0,d=a.length;b<d;b++){c=a[b];this.set(c,h)}});a.registerPostprocessor('debugHooks',function(d,a,c){var b;b=a.isInstance?a.self:a;delete b.prototype.debugHooks});a.registerPostprocessor('deprecated',function(d,b,c){var a;a=b.isInstance?b.self:b;a.addDeprecations(c.deprecated);delete a.prototype.deprecated});Ext.apply(Ext,{create:function(){var b=arguments[0],f=typeof b,c=o.call(arguments,1),d;if(f==='function'){d=b}else {if(f!=='string'&&c.length===0){c=[b];if(!(b=b.xclass)){b=c[0].xtype;if(b){b='widget.'+b}}}b=a.resolveName(b);d=a.get(b)}if(!d){Ext.syncRequire(b);d=a.get(b)}return a.getInstantiator(c.length)(d,c)},widget:function(i,b){var f=i,d,c,h;if(typeof f!=='string'){b=i;f=b.xtype;c=b.xclass}else {b=b||{}}if(b.isComponent){return b}if(!c){d='widget.'+f;c=a.getNameByAlias(d)}if(c){h=a.get(c)}if(!h){return Ext.create(c||d,b)}return new h(b)},createByAlias:e(a,'instantiateByAlias'),define:function(b,c,d){if(c.override){a.classState[b]=20;return a.createOverride.apply(a,arguments)}a.classState[b]=10;return a.create.apply(a,arguments)},undefine:function(b){var h=a.classes;delete h[b];delete a.existCache[b];delete a.classState[b];a.removeName(b);Ext.Factory.clearCaches();var d=a.getNamespaceEntry(b),f=d.parent?a.lookupName(d.parent,!1):Ext.global,c;if(f){c=d.name;try{delete f[c]}catch(t){f[c]=undefined}}},getClassName:e(a,'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:e(a,'getClass'),namespace:function(){var c=r,b;for(b=arguments.length;b-->0;){c=a.lookupName(arguments[b],!0)}return c}});Ext.addRootNamespaces=a.addRootNamespaces;Ext.createWidget=Ext.widget;Ext.ns=Ext.namespace;n.registerPreprocessor('className',function(b,a){if('$className' in a){b.$className=a.$className}},!0,'first');n.registerPreprocessor('alias',function(m,f){var q=m.prototype,c=g(f.xtype),i=g(f.alias),j='widget.',p=j.length,k=Array.prototype.slice.call(q.xtypesChain||[]),h=Ext.merge({},q.xtypesMap||{}),a,d,l,b;for(a=0,d=i.length;a<d;a++){l=i[a];if(l.substring(0,p)===j){b=l.substring(p);Ext.Array.include(c,b)}}m.xtype=f.xtype=c[0];f.xtypes=c;for(a=0,d=c.length;a<d;a++){b=c[a];if(!h[b]){h[b]=!0;k.push(b)}}f.xtypesChain=k;f.xtypesMap=h;Ext.Function.interceptAfterOnce(m,'onClassCreated',function(){var q=this,p=q.prototype,i=p.mixins,j,l;for(j in i){if(i.hasOwnProperty(j)){l=i[j];c=l.xtypes;if(c){for(a=0,d=c.length;a<d;a++){b=c[a];if(!h[b]){h[b]=!0;k.push(b)}}}}}});for(a=0,d=c.length;a<d;a++){b=c[a];Ext.Array.include(i,j+b)}f.alias=i},['xtype','alias']);if(Ext.manifest){var k=Ext.manifest,m=k.classes,d=k.paths,l={},j={},c,f,s,h,p;if(d){if(k.bootRelative){p=Ext.Boot.baseUrl;for(h in d){if(d.hasOwnProperty(h)){d[h]=p+d[h]}}}a.setPath(d)}if(m){for(c in m){j[c]=[];l[c]=[];f=m[c];if(f.alias){l[c]=f.alias}if(f.alternates){j[c]=f.alternates}}}a.addAlias(l);a.addAlternate(j)}return a}(Ext.Class,Ext.Function.alias,Array.prototype.slice,Ext.Array.from,Ext.global));Ext.define('Ext.mixin.Watchable',{on:function(b,c,a){return this._watchUpdate(!1,'_watchAdd',b,c,a)},fire:function(h,e){var i=this,g=i.watching,a=g&&g[h],c,d,f,b;if(a){++a.$firing;for(d=0;d<a.length;++d){b=a[d][0];c=a[d][1];if(c.charAt){f=e?b[c].apply(b,e):b[c]()}else {f=e?c.apply(b,e):c.call(b)}if(f===!1){return f}}--a.$firing}},fireEvent:function(){var a=Ext.Array.slice(arguments),b=a.shift();return this.fire(b,a)},un:function(b,c,a){return this._watchUpdate(!0,'_watchRemove',b,c,a)},privates:{watching:null,$watchOptions:{destroyable:1,scope:1},_watchAdd:function(d,b,i,f,h){var a=d[b],e=[f,i],g,c;if(!a){d[b]=a=[];a.$firing=0}else {for(g=a.length;g-->0;){c=a[g];if(i===c[1]){if(f?c[0]===f:!c[0]){return}}}if(a.$firing){d[b]=a=a.slice();a.$firing=0}}a.push(e);if(h){e.push(b);h.items.push(e)}},_watchRemove:function(c,d,f,e){var a=c[d],b;if(a){if(a.$firing){c[d]=a=a.slice();a.$firing=0}for(b=a.length;b-->0;){if(a[b][0]===e&&a[b][1]===f){a.splice(b,1)}}}},_watchUpdate:function(h,g,a,i,f){var b=this,d=a,c=b.watching,e;if(!c){if(h){return}b.watching=c={}}if(typeof a==='string'){b[g](c,a,i,f)}else {e=d.destroyable?{owner:b,items:[],destroy:b._watcherDestroyer}:null;f=d.scope;for(a in d){if(!b.$watchOptions[a]){b[g](c,a,d[a],f,e)}}}return e},_watcherDestroyer:function(){var d=this.owner,e=d.watching,c=this.items,a,b;for(b=0;b<c.length;++b){a=c[b];d._watchRemove(e,a[2],a[1],a[0])}}}});(Ext.env||(Ext.env={})).Browser=function(d,q){var m=this,r=Ext.Boot.browserPrefixes,i=Ext.Boot.browserNames,s=m.enginePrefixes,j=m.engineNames,f=d.match(new RegExp('((?:'+Ext.Object.getValues(r).join(')|(?:')+'))([\\w\\._]+)')),n=d.match(new RegExp('((?:'+Ext.Object.getValues(s).join(')|(?:')+'))([\\w\\._]+)')),a=i.other,g=j.other,e='',k='',b='',p=!1,t=/(Edge\/)([\w.]+)/,u='',c,o,h;m.userAgent=d;this.is=function(a){return !!this.is[a]};if(/Edge\//.test(d)){f=d.match(t);n=d.match(t)}if(f){a=i[Ext.Object.getKey(r,f[1])];if(a==='Safari'&&/^Opera/.test(d)){a='Opera'}e=new Ext.Version(f[2])}if(n){g=j[Ext.Object.getKey(s,n[1])];k=new Ext.Version(n[2])}if(g==='Trident'&&a!=='IE'){a='IE';var l=d.match(/.*rv:(\d+.\d+)/);if(l&&l.length){l=l[1];e=new Ext.Version(l)}}if(a&&e){Ext.setVersion(a,e)}if(d.match(/FB/)&&a==='Other'){a=i.safari;g=j.webkit}else if(d.match(/Android.*Chrome/g)){a='ChromeMobile'}else {f=d.match(/OPR\/(\d+.\d+)/);if(f){a='Opera';e=new Ext.Version(f[1])}}Ext.apply(this,{engineName:g,engineVersion:k,name:a,version:e});this.setFlag(a,!0,q);if(e){b=e.getMajor()||'';if(m.is.IE){b=document.documentMode||parseInt(b,10);for(c=7;c<=11;++c){o='isIE'+c;Ext[o]=b===c;Ext[o+'m']=b<=c;Ext[o+'p']=b>=c}}if(m.is.Opera&&parseInt(b,10)<=12){Ext.isOpera12m=!0}Ext.chromeVersion=Ext.isChrome?b:0;Ext.firefoxVersion=Ext.isFirefox?b:0;Ext.ieVersion=Ext.isIE?b:0;Ext.operaVersion=Ext.isOpera?b:0;Ext.safariVersion=Ext.isSafari?b:0;Ext.webKitVersion=Ext.isWebKit?b:0;this.setFlag(a+b,!0,q);this.setFlag(a+e.getShortVersion())}for(c in i){if(i.hasOwnProperty(c)){h=i[c];this.setFlag(h,a===h)}}this.setFlag(h);if(k){this.setFlag(g+(k.getMajor()||''));this.setFlag(g+k.getShortVersion())}for(c in j){if(j.hasOwnProperty(c)){h=j[c];this.setFlag(h,g===h,q)}}this.setFlag('Standalone',!!navigator.standalone);try{u=window.top.ripple}catch(v){}this.setFlag('Ripple',!!document.getElementById("tinyhippos-injected")&&!Ext.isEmpty(u));this.setFlag('WebWorks',!!window.blackberry);if(window.PhoneGap!==undefined||window.Cordova!==undefined||window.cordova!==undefined){p=!0;this.setFlag('PhoneGap');this.setFlag('Cordova')}if(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)(?!.*FBAN)/i.test(d)){p=!0}this.setFlag('WebView',p);this.isStrict=Ext.isStrict=document.compatMode==="CSS1Compat";this.isSecure=Ext.isSecure;this.identity=a+b+(this.isStrict?'Strict':'Quirks')};Ext.env.Browser.prototype={constructor:Ext.env.Browser,engineNames:{edge:'Edge',webkit:'WebKit',gecko:'Gecko',presto:'Presto',trident:'Trident',other:'Other'},enginePrefixes:{edge:'Edge/',webkit:'AppleWebKit/',gecko:'Gecko/',presto:'Presto/',trident:'Trident/'},styleDashPrefixes:{WebKit:'-webkit-',Gecko:'-moz-',Trident:'-ms-',Presto:'-o-',Other:''},stylePrefixes:{WebKit:'Webkit',Gecko:'Moz',Trident:'ms',Presto:'O',Other:''},propertyPrefixes:{WebKit:'webkit',Gecko:'moz',Trident:'ms',Presto:'o',Other:''},name:null,version:null,engineName:null,engineVersion:null,setFlag:function(b,a,c){if(a===undefined){a=!0}this.is[b]=a;this.is[b.toLowerCase()]=a;if(c){Ext['is'+b]=a}return this},getStyleDashPrefix:function(){return this.styleDashPrefixes[this.engineName]},getStylePrefix:function(){return this.stylePrefixes[this.engineName]},getVendorProperyName:function(b){var a=this.propertyPrefixes[this.engineName];if(a.length>0){return a+Ext.String.capitalize(b)}return b}};(function(a){Ext.browser=new Ext.env.Browser(a,!0);Ext.userAgent=a.toLowerCase();Ext.SSL_SECURE_URL=Ext.isSecure&&Ext.isIE?'javascript:\'\'':'about:blank'}(Ext.global.navigator.userAgent));Ext.env.OS=function(h,i,b){var n=this,g=Ext.Boot.osNames,j=Ext.Boot.osPrefixes,a,c='',m=n.is,d,l,f,k,e;b=b||Ext.browser;for(d in j){if(j.hasOwnProperty(d)){l=j[d];f=h.match(new RegExp('(?:'+l+')([^\\s;]+)'));if(f){a=g[d];e=f[1];if(e&&e==="HTC_"){c=new Ext.Version("2.3")}else if(e&&e==="Silk/"){c=new Ext.Version("2.3")}else {c=new Ext.Version(f[f.length-1])}break}}}if(!a){a=g[(h.toLowerCase().match(/mac|win|linux/)||['other'])[0]];c=new Ext.Version('')}this.name=a;this.version=c;if(h.match(/ipad/i)){i='iPad'}if(i){this.setFlag(i.replace(/ simulator$/i,''))}this.setFlag(a);if(c){this.setFlag(a+(c.getMajor()||''));this.setFlag(a+c.getShortVersion())}for(d in g){if(g.hasOwnProperty(d)){k=g[d];if(!m.hasOwnProperty(a)){this.setFlag(k,(a===k))}}}if(this.name==="iOS"&&window.screen.height===568){this.setFlag('iPhone5')}if(b.is.Safari||b.is.Silk){if(this.is.Android2||this.is.Android3||b.version.shortVersion===501){b.setFlag("AndroidStock")}if(this.is.Android4){b.setFlag("AndroidStock");b.setFlag("AndroidStock4")}}};Ext.env.OS.prototype={constructor:Ext.env.OS,is:function(a){return !!this[a]},name:null,version:null,setFlag:function(b,a){if(a===undefined){a=!0}if(this.flags){this.flags[b]=a}this.is[b]=a;this.is[b.toLowerCase()]=a;return this}};(function(){var h=Ext.global.navigator,i=h.userAgent,e=Ext.env.OS,f=(Ext.is||(Ext.is={})),a,c,b;e.prototype.flags=f;Ext.os=a=new e(i,h.platform);c=a.name;Ext['is'+c]=!0;Ext.isMac=f.Mac=f.MacOS;Ext.isApple=Ext.isMac||Ext.isiOS;var d=window.location.search.match(/deviceType=(Tablet|Phone)/),g=window.deviceType;if(d&&d[1]){b=d[1]}else if(g==='iPhone'){b='Phone'}else if(g==='iPad'){b='Tablet'}else {if(!a.is.Android&&!a.is.iOS&&!a.is.WindowsPhone&&/Windows|Linux|MacOS|ChromeOS/.test(c)){b='Desktop';Ext.browser.is.WebView=!!Ext.browser.is.Ripple}else if(a.is.iPad||a.is.RIMTablet||a.is.Android3||Ext.browser.is.Silk||(a.is.Android&&i.search(/mobile/i)===-1)){b='Tablet'}else {b='Phone'}}a.setFlag(b,!0);a.deviceType=b;delete e.prototype.flags}());Ext.feature={has:function(a){return !!this.has[a]},testElements:{},getTestElement:function(a,b){if(a===undefined){a='div'}else if(typeof a!=='string'){return a}if(b){return document.createElement(a)}if(!this.testElements[a]){this.testElements[a]=document.createElement(a)}return this.testElements[a]},isStyleSupported:function(a,d){var b=this.getTestElement(d).style,c=Ext.String.capitalize(a);if(typeof b[a]!=='undefined'||typeof b[Ext.browser.getStylePrefix(a)+c]!=='undefined'){return !0}return !1},isStyleSupportedWithoutPrefix:function(b,c){var a=this.getTestElement(c).style;if(typeof a[b]!=='undefined'){return !0}return !1},isEventSupported:function(e,d){if(d===undefined){d=window}var a=this.getTestElement(d),b='on'+e.toLowerCase(),c=(b in a);if(!c){if(a.setAttribute&&a.removeAttribute){a.setAttribute(b,'');c=typeof a[b]==='function';if(typeof a[b]!=='undefined'){a[b]=undefined}a.removeAttribute(b)}}return c},getStyle:function(a,c){var b=a.ownerDocument.defaultView,d=(b?b.getComputedStyle(a,null):a.currentStyle);return (d||a.style)[c]},getSupportedPropertyName:function(c,a){var b=Ext.browser.getVendorProperyName(a);if(b in c){return b}else if(a in c){return a}return null},detect:function(h){var c=this,g=document,m=c.toRun||c.tests,i=m.length,f=g.createElement('div'),k=[],j=Ext.supports,n=c.has,a,e,b,l,d;f.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(h){g.body.appendChild(f)}l=c.preDetected[Ext.browser.identity]||[];while(i--){b=m[i];d=l[i];a=b.name;e=b.names;if(d===undefined){if(!h&&b.ready){k.push(b);continue}d=b.fn.call(c,g,f)}if(a){j[a]=n[a]=d}else if(e){while(e.length){a=e.pop();j[a]=n[a]=d}}}if(h){g.body.removeChild(f)}c.toRun=k},report:function(){var b=[],c=this.tests.length,a;for(a=0;a<c;++a){b.push(this.has[this.tests[a].name]?1:0)}Ext.log(Ext.browser.identity+': ['+b.join(',')+']')},preDetected:{},tests:[{name:'CloneNodeCopiesExpando',fn:function(){var a=document.createElement('div');a.expandoProp={};return a.cloneNode().expandoProp===a.expandoProp}},{name:'CSSPointerEvents',fn:function(a){return 'pointerEvents' in a.documentElement.style}},{name:'CSS3BoxShadow',fn:function(a){return 'boxShadow' in a.documentElement.style||'WebkitBoxShadow' in a.documentElement.style||'MozBoxShadow' in a.documentElement.style}},{name:'CSS3NegationSelector',fn:function(a){try{a.querySelectorAll("foo:not(bar)")}catch(b){return !1}return !0}},{name:'ClassList',fn:function(a){return !!a.documentElement.classList}},{name:'Canvas',fn:function(){var a=this.getTestElement('canvas');return !!(a&&a.getContext&&a.getContext('2d'))}},{name:'Svg',fn:function(a){return !!(a.createElementNS&&!!a.createElementNS("http:/"+"/www.w3.org/2000/svg","svg").createSVGRect)}},{name:'Vml',fn:function(){var a=this.getTestElement(),b=!1;a.innerHTML="<!--[if vml]><br><![endif]-->";b=(a.childNodes.length===1);a.innerHTML="";return b}},{name:'Touch',fn:function(){var a=navigator.msMaxTouchPoints||navigator.maxTouchPoints;if(Ext.browser.is.Chrome&&Ext.browser.version.isLessThanOrEqual(39)){return (Ext.supports.TouchEvents&&a!==1)||a>1}else {return Ext.supports.TouchEvents||a>0}}},{name:'PointerEvents',fn:function(){var b=window.PointerEvent,c=window.navigator,a=!!(b&&(c.pointerEnabled||!Ext.isIE));return a&&!Ext.supports.TouchEvents}},{name:'MSPointerEvents',fn:function(){return Ext.isIE10}},{name:'TouchEvents',fn:function(){return this.isEventSupported('touchend')}},{name:'TouchAction',ready:!0,fn:function(h,e){if(!window.getComputedStyle){return 0}var c=['pan-x','pan-y','pinch-zoom','double-tap-zoom'],f=[1,2,4,8],g=c.length,d=0,a,b;for(a=0;a<g;a++){b=c[a];e.style.touchAction=b;if(getComputedStyle(e).touchAction===b){d|=f[a]}}return d}},{name:'Orientation',fn:function(){return ('orientation' in window)&&this.isEventSupported('orientationchange')}},{name:'OrientationChange',fn:function(){return this.isEventSupported('orientationchange')}},{name:'DeviceMotion',fn:function(){return this.isEventSupported('devicemotion')}},{names:['Geolocation','GeoLocation'],fn:function(){return 'geolocation' in window.navigator}},{name:'SqlDatabase',fn:function(){return 'openDatabase' in window}},{name:'WebSockets',fn:function(){return 'WebSocket' in window}},{name:'Range',fn:function(){return !!document.createRange}},{name:'CreateContextualFragment',fn:function(){var a=!!document.createRange?document.createRange():!1;return a&&!!a.createContextualFragment}},{name:'History',fn:function(){return ('history' in window&&'pushState' in window.history)}},{name:'Css3dTransforms',fn:function(){return this.has('CssTransforms')&&this.isStyleSupported('perspective')}},{name:'CssTransforms',fn:function(){return this.isStyleSupported('transform')}},{name:'CssTransformNoPrefix',fn:function(){return this.isStyleSupportedWithoutPrefix('transform')}},{name:'CssAnimations',fn:function(){return this.isStyleSupported('animationName')}},{names:['CssTransitions','Transitions'],fn:function(){return this.isStyleSupported('transitionProperty')}},{names:['Audio','AudioTag'],fn:function(){return !!this.getTestElement('audio').canPlayType}},{name:'Video',fn:function(){return !!this.getTestElement('video').canPlayType}},{name:'LocalStorage',fn:function(){try{if('localStorage' in window&&window['localStorage']!==null){localStorage.setItem('sencha-localstorage-test','test success');localStorage.removeItem('sencha-localstorage-test');return !0}}catch(a){}return !1}},{name:'XmlQuerySelector',fn:function(){var b='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><root></root>',a;if(window.ActiveXObject){a=new ActiveXObject("Microsoft.xmlDOM");a.async=!1;a.loadXML(b)}else if(window.DOMParser){var c=new DOMParser();a=c.parseFromString(b,'text/xml')}return a?!!a.lastChild.querySelector:!1}},{name:'XHR2',fn:function(){return window.ProgressEvent&&window.FormData&&window.XMLHttpRequest&&('withCredentials' in new XMLHttpRequest())}},{name:'XHRUploadProgress',fn:function(){var a;if(window.XMLHttpRequest&&!Ext.browser.is.AndroidStock){a=new XMLHttpRequest();return a&&('upload' in a)&&('onprogress' in a.upload)}return !1}},{name:'NumericInputPlaceHolder',fn:function(){return !(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()<2)}},{name:'matchesSelector',fn:function(){var a=document.documentElement,d='matches',e='webkitMatchesSelector',b='msMatchesSelector',c='mozMatchesSelector';return a[d]?d:a[e]?e:a[b]?b:a[c]?c:null}},{name:'RightMargin',ready:!0,fn:function(c,b){var a=c.defaultView;return !(a&&a.getComputedStyle(b.firstChild.firstChild,null).marginRight!=='0px')}},{name:'DisplayChangeInputSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0<a&&a<533}},{name:'DisplayChangeTextAreaSelectionBug',fn:function(){var a=Ext.webKitVersion;return 0<a&&a<534.24}},{name:'TransparentColor',ready:!0,fn:function(c,b,a){a=c.defaultView;return !(a&&a.getComputedStyle(b.lastChild,null).backgroundColor!=='transparent')}},{name:'ComputedStyle',ready:!0,fn:function(b,c,a){a=b.defaultView;return !!(a&&a.getComputedStyle)}},{name:'Float',fn:function(a){return 'cssFloat' in a.documentElement.style}},{name:'CSS3BorderRadius',ready:!0,fn:function(d){var b=['borderRadius','BorderRadius','MozBorderRadius','WebkitBorderRadius','OBorderRadius','KhtmlBorderRadius'],c=!1,a;for(a=0;a<b.length;a++){if(d.documentElement.style[b[a]]!==undefined){c=!0}}return c&&!Ext.isIE9}},{name:'CSS3LinearGradient',fn:function(i,c){var a='background-image:',e='-webkit-gradient(linear, left top, right bottom, from(black), to(white))',b='linear-gradient(left top, black, white)',g='-moz-'+b,h='-ms-'+b,f='-o-'+b,d=[a+e,a+b,a+g,a+h,a+f];c.style.cssText=d.join(';');return ((""+c.style.backgroundImage).indexOf('gradient')!==-1)&&!Ext.isIE9}},{name:'MouseEnterLeave',fn:function(a){return ('onmouseenter' in a.documentElement&&'onmouseleave' in a.documentElement)}},{name:'MouseWheel',fn:function(a){return ('onmousewheel' in a.documentElement)}},{name:'Opacity',fn:function(b,a){if(Ext.isIE8){return !1}a.firstChild.style.cssText='opacity:0.73';return a.firstChild.style.opacity=='0.73'}},{name:'Placeholder',fn:function(a){return 'placeholder' in a.createElement('input')}},{name:'Direct2DBug',fn:function(a){return Ext.isString(a.documentElement.style.msTransformOrigin)&&Ext.isIE9m}},{name:'BoundingClientRect',fn:function(a){return 'getBoundingClientRect' in a.documentElement}},{name:'RotatedBoundingClientRect',ready:!0,fn:function(e){var d=e.body,c=!1,b=e.createElement('div'),a=b.style;if(b.getBoundingClientRect){a.position='absolute';a.top="0";a.WebkitTransform=a.MozTransform=a.msTransform=a.OTransform=a.transform='rotate(90deg)';a.width='100px';a.height='30px';d.appendChild(b);c=b.getBoundingClientRect().height!==100;d.removeChild(b)}return c}},{name:'ChildContentClearedWhenSettingInnerHTML',ready:!0,fn:function(){var a=this.getTestElement(),b;a.innerHTML='<div>a</div>';b=a.firstChild;a.innerHTML='<div>b</div>';return b.innerHTML!=='a'}},{name:'IncludePaddingInWidthCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetWidth===210}},{name:'IncludePaddingInHeightCalculation',ready:!0,fn:function(b,a){return a.childNodes[1].firstChild.offsetHeight===210}},{name:'TextAreaMaxLength',fn:function(a){return ('maxlength' in a.createElement('textarea'))}},{name:'GetPositionPercentage',ready:!0,fn:function(b,a){return Ext.feature.getStyle(a.childNodes[2],'left')==='10%'}},{name:'PercentageHeightOverflowBug',ready:!0,fn:function(d){var c=!1,b,a;if(Ext.getScrollbarSize().height){a=this.getTestElement('div',!0);b=a.style;b.height='50px';b.width='50px';b.overflow='auto';b.position='absolute';a.innerHTML=['<div style="display:table;height:100%;">','<div style="width:51px;"></div>','</div>'].join('');d.body.appendChild(a);if(a.firstChild.offsetHeight===50){c=!0}d.body.removeChild(a)}return c}},{name:'xOriginBug',ready:!0,fn:function(e,b){b.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 a=document.getElementById('b1').getBoundingClientRect(),c=document.getElementById('b2').getBoundingClientRect(),d=document.getElementById('b3').getBoundingClientRect();return (c.left!==a.left&&d.right!==a.right)}},{name:'ScrollWidthInlinePaddingBug',ready:!0,fn:function(c){var d=!1,a,b;b=c.createElement('div');a=b.style;a.height='50px';a.width='50px';a.padding='10px';a.overflow='hidden';a.position='absolute';b.innerHTML='<span style="display:inline-block;zoom:1;height:60px;width:60px;"></span>';c.body.appendChild(b);if(b.scrollWidth===70){d=!0}c.body.removeChild(b);return d}},{name:'rtlVertScrollbarOnRight',ready:!0,fn:function(d,c){c.innerHTML='<div style="height:100px;width:100px;direction:rtl;overflow:scroll">'+'<div style="width:20px;height:200px;"></div>'+'</div>';var a=c.firstChild,b=a.firstChild;return (b.offsetLeft+b.offsetWidth!==a.offsetLeft+a.offsetWidth)}},{name:'rtlVertScrollbarOverflowBug',ready:!0,fn:function(e,c){c.innerHTML='<div style="height:100px;width:100px;direction:rtl;overflow:auto">'+'<div style="width:95px;height:200px;"></div>'+'</div>';var a=c.firstChild,b=c.style,d=b.position;b.position='absolute';a.offsetHeight;b.position=d;return a.clientHeight===a.offsetHeight}},{identity:'defineProperty',fn:function(){if(Ext.isIE8m){Ext.Object.defineProperty=Ext.emptyFn;return !1}return !0}},{identify:'nativeXhr',fn:function(){if(typeof XMLHttpRequest!=='undefined'){return !0}XMLHttpRequest=function(){try{return new ActiveXObject('MSXML2.XMLHTTP.3.0')}catch(a){return null}};return !1}},{name:'SpecialKeyDownRepeat',fn:function(){return Ext.isWebKit?parseInt(navigator.userAgent.match(/AppleWebKit\/(\d+)/)[1],10)>=525:!(!(Ext.isGecko||Ext.isIE||Ext.isEdge)||(Ext.isOpera&&Ext.operaVersion<12))}},{name:'EmulatedMouseOver',fn:function(){return Ext.os.is.iOS}},{name:'Hashchange',fn:function(){var a=document.documentMode;return 'onhashchange' in window&&(a===undefined||a>7)}},{name:'FixedTableWidthBug',ready:!0,fn:function(){if(Ext.isIE8){return !1}var a=document.createElement('div'),b=document.createElement('div'),c;a.setAttribute('style','display:table;table-layout:fixed;');b.setAttribute('style','display:table-cell;min-width:50px;');a.appendChild(b);document.body.appendChild(a);a.offsetWidth;a.style.width='25px';c=a.offsetWidth;document.body.removeChild(a);return c===50}},{name:'FocusinFocusoutEvents',fn:function(){return !(Ext.isGecko&&Ext.firefoxVersion<52)}},{name:'AsyncFocusEvents',fn:function(){return Ext.asyncFocus=!!Ext.isIE}},{name:'accessibility',ready:!0,fn:function(f){var g=f.body,b,c,a,e,d;function getColor(a){var c=[],e=0,g,b;if(a.indexOf('rgb(')!==-1){c=a.replace('rgb(','').replace(')','').split(', ')}else if(a.indexOf('#')!==-1){g=a.length===7?/^#(\S\S)(\S\S)(\S\S)$/:/^#(\S)(\S)(\S)$/;b=a.match(g);if(b){c=['0x'+b[1],'0x'+b[2],'0x'+b[3]]}}for(var d=0;d<c.length;d++){e+=parseInt(c[d])}return e}b=f.createElement('div');c=f.createElement('img');a=b.style;Ext.apply(a,{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+')'});c.alt='';c.src=Ext.BLANK_IMAGE_URL;b.appendChild(c);g.appendChild(b);a=b.currentStyle||b.style;d=a.backgroundImage;e={Images:c.offsetWidth===1&&c.readyState!=='uninitialized',BackgroundImages:!(d!==null&&(d==="none"||d==="url(invalid-url:)")),BorderColors:a.borderTopColor!==a.borderRightColor,LightOnDark:getColor(a.color)-getColor(a.backgroundColor)>0};Ext.supports.HighContrastMode=!e.BackgroundImages;g.removeChild(b);b=c=null;return e}},{name:'ViewportUnits',ready:!0,fn:function(f){if(Ext.isIE8){return !1}var d=f.body,a=document.createElement('div'),e=a.currentStyle||a.style,c,b;d.appendChild(a);Ext.apply(e,{width:'50vw'});c=parseInt(window.innerWidth/2,10);b=parseInt((window.getComputedStyle?getComputedStyle(a,null):a.currentStyle).width,10);d.removeChild(a);a=null;return c===b}},{name:'CSSVariables',ready:!1,fn:function(){if(!window.getComputedStyle){return !1}return window.CSS&&window.CSS.supports&&window.CSS.supports('--test-var',0)}},{name:'Selectors2',ready:!1,fn:function(a){try{return !!a.querySelectorAll(':scope')}catch(b){return !1}}},{name:'CSSScrollSnap',ready:!1,fn:function(b){var a=b.documentElement.style;return 'scrollSnapType' in a||'webkitScrollSnapType' in a||'msScrollSnapType' in a}},{name:'TranslateYCausesHorizontalScroll',ready:!0,fn:function(b,a){a.innerHTML='<div style="position: relative; overflow: auto; height: 200px; width: 200px;">'+'<div>'+'<div style="transform: translateY(260px); width: 50px;">a</div>'+'</div>'+'</div>';return a.firstChild.scrollWidth>a.firstChild.clientWidth}},{name:'FlexBoxBasisBug',ready:!0,fn:function(){if(Ext.isIE11||(Ext.os.is.iOS&&Ext.os.version.major<=10)||(Ext.isSafari&&Ext.browser.version.isLessThan(11))||(Ext.os.is.Android&&Ext.os.version.isLessThan(6))){return !0}return !1}},{name:'PercentageSizeFlexBug',ready:!0,fn:function(c,b){if(Ext.isIE9m){return !1}var a=b.style;a.display='flex';a.flexDirection='column';a.height=a.width='100px';b.innerHTML='<div style="flex: 1 1;"><div style="height:50%"></div></div>';return b.firstChild.firstChild.offsetHeight!==50}},{name:'CannotScrollExactHeight',fn:function(){return Ext.isIE10p}},{name:'WebKitInputTableBoxModelBug',ready:!0,fn:function(i,j){var c=document.createElement('div'),d=document.createElement('div'),b=document.createElement('input'),e=c.style,h=d.style,a=b.style,g=i.body,f;b.type='text';e.display='table';e.height='100px';h.display='table-cell';a.border='0';a.padding='10px';a.boxSizing='border-box';a.height='100%';d.appendChild(b);c.appendChild(d);g.appendChild(c);f=b.offsetHeight===80;g.removeChild(c);return f}},{name:'PassiveEventListener',fn:function(d,c){var b=!1,a;try{a=Object.defineProperty({},'passive',{get:function(){b=!0}});window.addEventListener('e',null,a);window.removeEventListener('e',null,a)}catch(e){}return b}},{name:'CSSMinContent',ready:!0,fn:function(b,a){a.innerHTML='<div style="height:4px;width:4px;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content"><div style="height:8px;width:8px"></div></div>';return a.firstChild.offsetHeight===8}},{name:'ComputedSizeIncludesPadding',ready:!0,fn:function(f,e){var b=!1,c=document.body,a,d;if(window.getComputedStyle){a=document.createElement('div');a.style.cssText='width:10px;padding:2px;'+'-webkit-box-sizing:border-box;box-sizing:border-box;';c.appendChild(a);d=window.getComputedStyle(a,null).width;b=d==='10px';c.removeChild(a)}return b}},{name:'inputEventData',ready:!1,fn:function(){return !!(window.InputEvent&&'data' in new InputEvent('input'))}},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:!1,generation:0,listeners:[],nextId:0,sortGeneration:0,state:0,timer:null,bind:function(){var a=Ext.env.Ready,b=document;if(!a.bound){if(b.readyState==='complete'){a.onReadyEvent({type:b.readyState||'body'})}else {a.bound=1;if(Ext.browser.is.PhoneGap&&!Ext.os.is.Desktop){a.bound=2;b.addEventListener('deviceready',a.onReadyEvent,!1)}b.addEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.addEventListener('load',a.onReadyEvent,!1)}}},block:function(){++this.blocks;Ext.isReady=!1},fireReady:function(){var a=Ext.env.Ready;if(!a.state){Ext._readyTime=Ext.ticks();Ext.isDomReady=!0;a.state=1;Ext.feature.detect(!0);if(!a.delay){a.handleReady()}else if(navigator.standalone){a.timer=Ext.defer(function(){a.timer=null;a.handleReadySoon()},1)}else {a.handleReadySoon()}}},handleReady:function(){var a=this;if(a.state===1){a.state=2;Ext._beforeReadyTime=Ext.ticks();a.invokeAll();Ext._afterReadyTime=Ext.ticks()}},handleReadySoon:function(b){var a=this;if(!a.timer){a.timer=Ext.defer(function(){a.timer=null;a.handleReady()},b||a.delay)}},invoke:function(a){var b=a.delay;if(b){Ext.defer(a.fn,b,a.scope)}else {if(Ext.elevateFunction){Ext.elevateFunction(a.fn,a.scope)}else {a.fn.call(a.scope)}}},invokeAll:function(){if(Ext.elevateFunction){Ext.elevateFunction(this.doInvokeAll,this)}else {this.doInvokeAll()}},doInvokeAll:function(){var a=this,b=a.listeners,c;if(!a.blocks){Ext.isReady=!0}a.firing=!0;while(b.length){if(a.sortGeneration!==a.generation){a.sortGeneration=a.generation;b.sort(a.sortFn)}c=b.pop();if(a.blocks&&!c.dom){b.push(c);break}a.invoke(c)}a.firing=!1},makeListener:function(d,c,b){var a={fn:d,id:++this.nextId,scope:c,dom:!1,priority:0};if(b){Ext.apply(a,b)}a.phase=a.dom?0:1;return a},on:function(e,d,c){var a=Ext.env.Ready,b=a.makeListener(e,d,c);if(a.state===2&&!a.firing&&(b.dom||!a.blocks)){a.invoke(b)}else {a.listeners.push(b);++a.generation;if(!a.bound){a.bind()}}},onReadyEvent:function(b){var a=Ext.env.Ready;if(Ext.elevateFunction){Ext.elevateFunction(a.doReadyEvent,a,arguments)}else {a.doReadyEvent(b)}},doReadyEvent:function(b){var a=this;if(a.bound>0){a.unbind();a.bound=-1}if(!a.state){a.fireReady()}},sortFn:function(a,b){return -((a.phase-b.phase)||(b.priority-a.priority)||(a.id-b.id))},unblock:function(){var a=this;if(a.blocks){if(!--a.blocks){if(a.state===2&&!a.firing){a.invokeAll()}}}},unbind:function(){var a=this,b=document;if(a.bound>1){b.removeEventListener('deviceready',a.onReadyEvent,!1)}b.removeEventListener('DOMContentLoaded',a.onReadyEvent,!1);window.removeEventListener('load',a.onReadyEvent,!1)}};(function(){var a=Ext.env.Ready;if(Ext.isIE9m){Ext.apply(a,{scrollTimer:null,readyStatesRe:/complete/i,pollScroll:function(){var b=!0;try{document.documentElement.doScroll('left')}catch(c){b=!1}if(b&&document.body){a.onReadyEvent({type:'doScroll'})}else {a.scrollTimer=Ext.defer(a.pollScroll,20)}return b},bind:function(){var b=document,c;if(a.bound){return}try{c=window.frameElement===undefined}catch(d){}if(!c||!b.documentElement.doScroll){a.pollScroll=Ext.emptyFn}else if(a.pollScroll()){return}if(b.readyState==='complete'){a.onReadyEvent({type:'already '+(b.readyState||'body')})}else {b.attachEvent('onreadystatechange',a.onReadyStateChange);window.attachEvent('onload',a.onReadyEvent);a.bound=1}},unbind:function(){document.detachEvent('onreadystatechange',a.onReadyStateChange);window.detachEvent('onload',a.onReadyEvent);if(Ext.isNumber(a.scrollTimer)){Ext.undefer(a.scrollTimer);a.scrollTimer=null}},onReadyStateChange:function(){var b=document.readyState;if(a.readyStatesRe.test(b)){a.onReadyEvent({type:b})}}})}Ext.onDocumentReady=function(e,d,b){var c={dom:!0};if(b){Ext.apply(c,b)}a.on(e,d,c)};Ext.onReady=function(d,c,b){a.on(d,c,b)};Ext.onInternalReady=function(d,c,b){a.on(d,c,Ext.apply({priority:1000},b))};a.bind()}());Ext.Loader=(new function(){var a=this,b=Ext.ClassManager,h=Ext.Boot,n=Ext.Class,c=Ext.env.Ready,j=Ext.Function.alias,g=['extend','mixins','requires'],i={},l=[],e=[],f=[],k={},d={enabled:!0,scriptChainDelay:!1,disableCaching:!0,disableCachingParam:'_dc',paths:b.paths,preserveScripts:!0,scriptCharset:undefined},m={disableCaching:!0,disableCachingParam:!0,preserveScripts:!0,scriptChainDelay:'loadDelay'};Ext.apply(a,{isInHistory:i,isLoading:!1,history:l,config:d,readyListeners:e,optionalRequires:f,requiresMap:k,hasFileLoadError:!1,scriptsLoading:0,classesLoading:{},missingCount:0,missingQueue:{},syncModeEnabled:!1,init:function(){var k=document.getElementsByTagName('script'),m=k[k.length-1].src,n=m.substring(0,m.lastIndexOf('/')+1),l=Ext._classPathMetadata,h=Ext.Microloader,g=Ext.manifest,d,i,j,f,e;if(!b.getPath("Ext")){b.setPath('Ext',n+'src')}if(l){Ext._classPathMetadata=null;a.addClassPathMappings(l)}if(g){d=g.loadOrder;i=Ext.Boot.baseUrl;if(d&&g.bootRelative){for(j=d.length,f=0;f<j;f++){e=d[f];e.path=i+e.path;e.canonicalPath=!0}}}if(h){c.block();h.onMicroloaderReady(function(){c.unblock()})}},setConfig:Ext.Function.flexSetter(function(b,e){var c=m[b];if(b==='paths'){a.setPath(e)}else {d[b]=e;if(c){h.setConfig((c===!0)?b:c,e)}}return a}),getConfig:function(a){return a?d[a]:d},setPath:function(){b.setPath.apply(b,arguments);return a},addClassPathMappings:function(c){b.setPath(c);return a},addBaseUrlClassPathMappings:function(a){var b;for(b in a){a[b]=h.baseUrl+a[b]}Ext.Loader.addClassPathMappings(a)},getPath:function(a){return b.getPath(a)},require:function(c,g,f,e){var d;if(e){return a.exclude(e).require(c,g,f)}d=b.getNamesByExpression(c);return a.load(d,g,f)},syncRequire:function(){var c=a.syncModeEnabled,b;a.syncModeEnabled=!0;b=a.require.apply(a,arguments);a.syncModeEnabled=c;return b},exclude:function(d){var c=b.select({require:function(b,e,c){return a.load(b,e,c)},syncRequire:function(c,g,f){var e=a.syncModeEnabled,b;a.syncModeEnabled=!0;b=a.load(c,g,f);a.syncModeEnabled=e;return b}});c.exclude(d);return c},load:function(g,c,k){if(c){if(c.length){c=a.makeLoadCallback(g,c)}c=c.bind(k||Ext.global)}var n=b.classState,f=[],l=[],j={},m=g.length,e,h,i;for(h=0;h<m;++h){e=b.resolveName(g[h]);if(!b.isCreated(e)){f.push(e);if(!n[e]){j[e]=a.getPath(e);l.push(j[e])}}}i=f.length;if(i){a.missingCount+=i;b.onCreated(function(){if(c){Ext.callback(c,k,arguments)}a.checkReady()},a,f);if(!d.enabled){Ext.raise("Ext.Loader is not enabled, so dependencies cannot be resolved "+"dynamically. Missing required class"+((f.length>1)?"es":"")+": "+f.join(', '))}if(l.length){a.loadScripts({url:l,_classNames:f,_urlByClass:j})}else {a.checkReady()}}else {if(c){c.call(k)}a.checkReady()}if(a.syncModeEnabled){if(m===1){return b.get(g[0])}}return a},makeLoadCallback:function(a,c){return function(){var e=[],d=a.length;while(d-->0){e[d]=b.get(a[d])}return c.apply(this,e)}},onLoadFailure:function(h){var d=this,f=h.entries||[],g=d.onError,b,e,c;a.hasFileLoadError=!0;--a.scriptsLoading;if(g){for(c=0;c<f.length;c++){e=f[c];if(e.error){b=new Error('Failed to load: '+e.url);break}}b=b||new Error('Failed to load');g.call(d.userScope,d,b,h)}a.checkReady()},onLoadSuccess:function(){var c=this,g=c.onLoad,f=c._classNames,j=c._urlByClass,k=b.classState,i=a.missingQueue,d,e,h;--a.scriptsLoading;if(g){g.call(c.userScope,c)}for(e=0,h=f.length;e<h;e++){d=f[e];if(!k[d]){i[d]=j[d]}}a.checkReady()},onReady:function(g,f,h,d){var b;if(h){c.on(g,f,d)}else {b=c.makeListener(g,f,d);if(a.isLoading){e.push(b)}else {c.invoke(b)}}},addUsedClasses:function(b){var c,d,e;if(b){b=(typeof b==='string')?[b]:b;for(d=0,e=b.length;d<e;d++){c=b[d];if(typeof c==='string'&&!Ext.Array.contains(f,c)){f.push(c)}}}return a},triggerReady:function(){var d,b=f;if(a.isLoading&&b.length){f=[];a.require(b)}else {a.isLoading=!1;e.sort(c.sortFn);while(e.length&&!a.isLoading){d=e.pop();c.invoke(d)}c.unblock()}},historyPush:function(c){if(c&&!i[c]&&!b.overrideMap[c]){i[c]=!0;l.push(c)}return a},loadScripts:function(g){var c=Ext.manifest,f=c&&c.loadOrder,e=c&&c.loadOrderMap,b;++a.scriptsLoading;if(f&&!e){c.loadOrderMap=e=h.createLoadOrderMap(f)}a.checkReady();b=Ext.apply({loadOrder:f,loadOrderMap:e,charset:d.scriptCharset,success:a.onLoadSuccess,failure:a.onLoadFailure,sync:a.syncModeEnabled,_classNames:[]},g);b.userScope=b.scope;b.scope=b;h.load(b)},loadScriptsSync:function(c){var b=a.syncModeEnabled;a.syncModeEnabled=!0;a.loadScripts({url:c});a.syncModeEnabled=b},loadScriptsSyncBasePrefix:function(c){var b=a.syncModeEnabled;a.syncModeEnabled=!0;a.loadScripts({url:c,prependBaseUrl:!0});a.syncModeEnabled=b},loadScript:function(b){var d=typeof b==='string',e=b instanceof Array,c=!e&&!d,j=c?b.url:b,f=c&&b.onError,h=c&&b.onLoad,i=c&&b.scope,g={url:j,scope:i,onLoad:h,onError:f,_classNames:[]};a.loadScripts(g)},checkMissingQueue:function(){var d=a.missingQueue,e={},f=0,c;for(c in d){if(!(b.classState[c]||b.isCreated(c))){e[c]=d[c];f++}}a.missingCount=f;a.missingQueue=e},checkReady:function(){var d=a.isLoading,b;a.checkMissingQueue();b=a.missingCount+a.scriptsLoading;if(b&&!d){c.block();a.isLoading=!!b}else if(!b&&d){a.triggerReady()}}});Ext.require=j(a,'require');Ext.syncRequire=j(a,'syncRequire');Ext.exclude=j(a,'exclude');n.registerPreprocessor('loader',function(n,f,q,p){var r=this,i=[],t,j=b.getName(n),l,h,o,m,d,e,c,s;for(l=0,o=g.length;l<o;l++){e=g[l];if(f.hasOwnProperty(e)){c=f[e];if(typeof c==='string'){i.push(c)}else if(c instanceof Array){for(h=0,m=c.length;h<m;h++){d=c[h];if(typeof d==='string'){i.push(d)}}}else if(typeof c!=='function'){for(h in c){if(c.hasOwnProperty(h)){d=c[h];if(typeof d==='string'){i.push(d)}}}}}}if(i.length===0){return}if(j){k[j]=i}(j?a.exclude(j):a).require(i,function(){var h,k,a,j,i;for(h=0,k=g.length;h<k;h++){e=g[h];if(f.hasOwnProperty(e)){c=f[e];if(typeof c==='string'){f[e]=b.get(c)}else if(c instanceof Array){for(a=0,j=c.length;a<j;a++){d=c[a];if(typeof d==='string'){f[e][a]=b.get(d)}}}else if(typeof c!=='function'){for(i in c){if(c.hasOwnProperty(i)){d=c[i];if(typeof d==='string'){f[e][i]=b.get(d)}}}}}}p.call(r,n,f,q)});return !1},!0,'after','className');b.registerPostprocessor('uses',function(f,g,d){var e=d.uses,c;if(e){c=b.getNamesByExpression(d.uses);a.addUsedClasses(c)}});b.onCreated(a.historyPush);a.init()}());Ext._endTime=Ext.ticks();if(Ext._beforereadyhandler){Ext._beforereadyhandler()}Ext.define('Ext.Mixin',function(a){return {statics:{addHook:function(e,c,d,h){var g=Ext.isFunction(e),b=function(){var b=arguments,i=g?e:h[e],f=this.callParent(b);i.apply(this,b);return f},f=c.hasOwnProperty(d)&&c[d];if(g){e.$previous=Ext.emptyFn}b.$name=d;b.$owner=c.self;if(f){b.$previous=f.$previous;f.$previous=b}else {c[d]=b}}},onClassExtended:function(n,c){var b=c.mixinConfig,d=c.xhooks,m=n.superclass,l=c.onClassMixedIn,k=c.afterClassMixedIn,g,f,j,e,h,i;if(d){delete c.xhooks;(b||(c.mixinConfig=b={})).on=d}if(b){i=m.mixinConfig;if(i){c.mixinConfig=b=Ext.merge({},i,b)}c.mixinId=b.id;g=b.after;f=b.before;j=b.configs;e=b.extended;d=b.on;h=b.mixed}if(g||f||d||e){c.onClassMixedIn=function(b){var h=this.prototype,j=b.prototype,i;if(f){Ext.Object.each(f,function(e,d){b.hookMember(e,function(){if(h[d].apply(this,arguments)!==!1){return this.callParent(arguments)}})})}if(g){Ext.Object.each(g,function(e,d){b.hookMember(e,function(){var f=this.callParent(arguments);h[d].apply(this,arguments);return f})})}if(d){for(i in d){a.addHook(d[i],j,i,h)}}if(e){b.onExtended(function(){var d=Ext.Array.slice(arguments,0);d.unshift(b);return e.apply(this,d)},this)}if(l){l.apply(this,arguments)}}}if(j||h){c.afterClassMixedIn=function(g){if(j){var e=g.prototype,i=this.$config.configs,f,b,d;for(b in e){f=i[b];if(f&&f.isConfig&&e.hasOwnProperty(b)){(d||(d={}))[b]=e[b];delete e[b]}}if(d){g.$config.add(d)}}if(k){k.apply(this,arguments)}if(h){h.apply(this,arguments)}}}}}});Ext.util=Ext.util||{};Ext.util.DelayedTask=function(c,b,g,d,e){var a=this,f,h=function(){a.id=null;if(!(b&&b.destroyed)){if(g){c.apply(b,g)}else {c.call(b)}}if(e===!1){Ext._suppressIdle=!0}};d=typeof d==='boolean'?d:!0;a.id=null;a.delay=function(i,l,j,k){if(d){a.cancel()}if(typeof i==='number'){f=i}c=l||c;b=j||b;g=k||g;a.delayTime=f;if(!a.id){if(f===-1){a.id=Ext.raf(h)}else {a.id=Ext.defer(h,f||1)}}return a.id};a.cancel=function(){if(a.id){if(a.delayTime===-1){Ext.unraf(a.id)}else {Ext.undefer(a.id)}a.id=null}};a.flush=function(){var f;if(a.id){a.cancel();f=e;e=!0;h();e=f}};a.stop=function(h,f){if(h&&h===c&&(!f||f===b)){a.cancel()}}};Ext.define('Ext.util.Event',function(){var d=Array.prototype.slice,c=Ext.Array.insert,b=Ext.Array.toArray,a={};return {isEvent:!0,suspended:0,noOptions:{},constructor:function(a,b){this.name=b;this.observable=a;this.listeners=[]},addListener:function(p,o,b,u,j){var a=this,t=!1,m=a.observable,s=a.name,e,n,i,h,g,l,k,d,f,q,r;if(a.findListener(p,o)===-1){n=a.createListener(p,o,b,u,j);if(a.firing){a.listeners=a.listeners.slice(0)}e=a.listeners;d=k=e.length;i=b&&b.priority;g=a._highestNegativePriorityIndex;l=g!==undefined;if(i){h=(i<0);if(!h||l){for(f=(h?g:0);f<k;f++){q=e[f].o?e[f].o.priority||0:0;if(q<i){d=f;break}}}else {a._highestNegativePriorityIndex=d}}else if(l){d=g}if(!h&&d<=g){a._highestNegativePriorityIndex++}if(d===k){e[k]=n}else {c(e,d,[n])}if(m.isElement){m._getPublisher(s,b.translate===!1).subscribe(m,s,b.delegated!==!1,b.capture)}if(j){r=j.managedListeners||(j.managedListeners=[]);r.push({item:a.observable,ename:(b&&b.managedName)||a.name,fn:p,scope:o,options:b})}t=!0}return t},createListener:function(g,e,b,l,k){var f=this,i=Ext._namedScopes,j=i[e],a={fn:g,scope:e,ev:f,caller:l,manager:k,namedScope:j,defaultScope:j?(e||f.observable):undefined,lateBound:typeof g==='string'},c=g,d=!1,h;if(a.lateBound&&g[2]==='.'){a.defaultScope=null;a.namedScope=i[a.scope=e='up'];a.fn=c=g.substr(3)}if(b){a.o=b;if(b.single){c=f.createSingle(c,a,b,e);d=!0}if(b.target){c=f.createTargeted(c,a,b,e,d);d=!0}if(b.onFrame){c=f.createAnimFrame(c,a,b,e,d);d=!0}if(b.delay){c=f.createDelayed(c,a,b,e,d);d=!0}if(b.buffer){c=f.createBuffered(c,a,b,e,d);d=!0}if(f.observable.isElement){h=b.type;if(h){a.type=h}}}a.fireFn=c;a.wrapped=d;return a},findListener:function(e,d){var c=this.listeners,b=c.length,a;while(b--){a=c[b];if(a){if(a.fn===e&&a.scope==d){return b}}}return -1},removeListener:function(m,l,c){var a=this,k=!1,h=a.observable,i=a.name,b,g,j,e,f,d;c=c!=null?c:a.findListener(m,l);if(c!==-1){b=a.listeners[c];if(a.firing){a.listeners=a.listeners.slice(0)}a.listeners.splice(c,1);if(a._highestNegativePriorityIndex){if(c<a._highestNegativePriorityIndex){a._highestNegativePriorityIndex--}else if(c===a._highestNegativePriorityIndex&&c===a.listeners.length){delete a._highestNegativePriorityIndex}}if(b){g=b.o;if(b.task){b.task.cancel();delete b.task}d=b.tasks&&b.tasks.length;if(d){while(d--){b.tasks[d].cancel()}delete b.tasks}b.fireFn.timerId=Ext.undefer(b.fireFn.timerId);j=b.manager;if(j){e=j.managedListeners;if(e){for(d=e.length;d--;){f=e[d];if(f.item===a.observable&&f.ename===i&&f.fn===m&&f.scope===l){e.splice(d,1)}}}}if(h.isElement){h._getPublisher(i,g.translate===!1).unsubscribe(h,i,g.delegated!==!1,g.capture)}}k=!0}return k},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 e=this,x=Ext.ComponentQuery,s=e.listeners,t=s.length,q=e.observable,n=q.isElement,w=q.isComponent,v=e.firingObservable,b,f,h,l,c,i,u,m,o,r,j,p,a,k,g;if(!e.suspended&&t>0){e.firing=!0;c=arguments.length?d.call(arguments,0):[];u=c.length;if(n){a=c[0]}for(l=0;l<t;l++){i=s[l];if(!i){continue}b=i.o;if(n){if(o){a.setCurrentTarget(o)}r=i.type;if(r){j=a;a=c[0]=j.chain({type:r,isGesture:!1})}Ext.EventObject=a}p=c;if(b){f=b.delegate;if(f){if(n){m=a.getTarget(typeof f==='function'?f:'#'+a.currentTarget.id+' '+f);if(m){c[1]=m;o=a.currentTarget;a.setCurrentTarget(m)}else {continue}}else if(w&&!x.is(v,f,q)){continue}}if(n){if(b.preventDefault){a.preventDefault()}if(b.stopPropagation){a.stopPropagation()}if(b.stopEvent){a.stopEvent()}}c[u]=b;if(b.args){p=b.args.concat(c)}}h=e.getFireInfo(i);k=h.fn;g=h.scope;h.fn=h.scope=null;if(g&&g.destroyed){e.removeListener(k,g,l);k=null}if(k&&k.apply(g,p)===!1){Ext.EventObject=null;return (e.firing=!1)}if(b){c.length--}if(j){a=c[0]=j;j=null}Ext.EventObject=null}}e.firing=!1;return !0},getFireInfo:function(b,h){var f=this.observable,i=b.fireFn,c=b.scope,d=b.namedScope,e,g;if(!h&&b.wrapped){a.fn=i;return a}e=h?b.fn:i;if(b.lateBound){g=b.caller||f;if(d&&d.isUp){c=Ext.lookUpFn(g,e)}else if(!c||d){c=g.resolveListenerScope(b.defaultScope)}e=c[e]}else if(d&&d.isController){c=(b.caller||f).resolveListenerScope(b.defaultScope)}else if(!c||d){c=f}a.fn=e;a.scope=c;return a},createAnimFrame:function(c,b,f,d,e){var a;if(!e){a=b.ev.getFireInfo(b,!0);c=a.fn;d=a.scope;a.fn=a.scope=null}return Ext.Function.createAnimationFrame(c,d,f.args)},createTargeted:function(b,a,e,c,d){return function(){var f;if(e.target===arguments[0]){if(!d){f=a.ev.getFireInfo(a,!0);b=f.fn;c=f.scope;f.fn=f.scope=null}return b.apply(c,arguments)}}},createBuffered:function(c,a,f,d,e){a.task=new Ext.util.DelayedTask();return function(){var g;if(a.task){if(!e){g=a.ev.getFireInfo(a,!0);c=g.fn;d=g.scope;g.fn=g.scope=null}a.task.delay(f.buffer,c,d,b(arguments))}}},createDelayed:function(c,a,f,d,e){return function(){var h=new Ext.util.DelayedTask(),g;if(!e){g=a.ev.getFireInfo(a,!0);c=g.fn;d=g.scope;g.fn=g.scope=null}if(!a.tasks){a.tasks=[]}a.tasks.push(h);h.delay(f.delay||10,c,d,b(arguments))}},createSingle:function(c,b,e,a,d){return function(){var g=b.ev,h=g.observable,i=b.fn,f;if(h){if(!h.destroyed){h.removeListener(g.name,i,a)}}else {g.removeListener(i,a)}if(!d){f=g.getFireInfo(b,!0);c=f.fn;a=f.scope;f.fn=f.scope=null}return c.apply(a,arguments)}}}});Ext.define('Ext.mixin.Identifiable',function(a){return {isIdentifiable:!0,mixinId:'identifiable',getId:function(){var c=this,b=c.id,d;if(!(b||b===0)){d=c.initialConfig;if(d&&d.id){b=d.id}else {b=c.generateAutoId();c.autoGenId=!0}c.setId(b)}c.getId=a._getId;return b},setId:function(b){this.id=this.id=b},privates:{statics:{_idCleanRe:/\.|[^\w-]/g,uniqueIds:{},_getId:function(){return this.id}},defaultIdPrefix:'ext-',defaultIdSeparator:'-',id:null,autoGenId:!1,generateAutoId:function(){var d=this,f=d.self.prototype,c=d.defaultIdSeparator,g=a.uniqueIds,h,e,b,i;if(!f.hasOwnProperty('identifiablePrefix')){h=a._idCleanRe;e=d.defaultIdPrefix;i=d.xtype;if(i){b=e+i.replace(h,c)+c}else if(!(b=f.$className)){b=e+'anonymous'+c}else {b=b.replace(h,c).toLowerCase()+c}f.identifiablePrefix=b}b=d.identifiablePrefix;if(!g.hasOwnProperty(b)){g[b]=0}return b+(++g[b])}}}});Ext.define('Ext.mixin.Observable',function(d){var e=Ext.emptyFn,g=[],f=Array.prototype,b=f.slice,a=function(c){if(c instanceof a){return c}this.observable=c;if(arguments[1].isObservable){this.managedListeners=!0}this.args=b.call(arguments,1)},c=['events','hasListeners','managedListeners','eventedBeforeEventNames'];a.prototype.destroy=function(){var b=this,c=b.args,a=b.observable,e=c[0].element||(c[3]&&c[3].element);if(e){a=a[e]}if(!a.destroyed){a[b.managedListeners?'mun':'un'].apply(a,b.args)}b.destroy=Ext.emptyFn};return {extend:Ext.Mixin,mixinConfig:{id:'observable',after:{destroy:'destroyObservable'}},mixins:[Ext.mixin.Identifiable],statics:{releaseCapture:function(a){a.fireEventArgs=this.prototype.fireEventArgs},capture:function(e,c,a){var b=function(b,f){return c.apply(a,[b].concat(f))};this.captureArgs(e,b,a)},captureArgs:function(a,c,b){a.fireEventArgs=Ext.Function.createInterceptor(a.fireEventArgs,c,b)},observe:function(a,b){if(a){if(!a.isObservable){Ext.applyIf(a,new this());this.captureArgs(a.prototype,a.fireEventArgs,a)}if(Ext.isObject(b)){a.on(b)}}return a},prepareClass:function(a,f,o){var k=a.listeners=[],l=o||a.prototype,e=l.listeners,i=f?f.listeners:a.superclass.self.listeners,b,h,g,m;if(i){k.push(i)}if(e){b=e.scope;if(!b){e.scope='self'}else {h=Ext._namedScopes[b];if(h&&h.isController){e.scope='self.controller'}}k.push(e);l.listeners=null}if(!a.HasListeners){var j=function(){},n=a.superclass.HasListeners||(f&&f.HasListeners)||d.HasListeners;a.prototype.HasListeners=a.HasListeners=j;j.prototype=a.hasListeners=new n()}b=a.prototype.$noClearOnDestroy||{};for(g=0,m=c.length;g<m;g++){b[c[g]]=!0}a.prototype.$noClearOnDestroy=b}},isObservable:!0,$vetoClearingPrototypeOnDestroy:!0,eventsSuspended:0,constructor:function(c){var a=this,h=a.self,f,b,g,i,e;if(a.$observableInitialized){return}a.$observableInitialized=!0;a.hasListeners=a.hasListeners=new a.HasListeners();a.eventedBeforeEventNames={};a.events=a.events||{};f=h.listeners;if(f&&!a._addDeclaredListeners(f)){h.listeners=null}b=(c&&c.listeners)||a.listeners;if(b){if(b instanceof Array){for(e=0,i=b.length;e<i;++e){a.addListener(b[e])}}else {a.addListener(b)}}g=(c&&c.bubbleEvents)||a.bubbleEvents;if(g){a.enableBubble(g)}if(a.$applyConfigs){if(c){Ext.apply(a,c)}}else {a.initConfig(c)}if(b){a.listeners=null}},onClassExtended:function(a,b){if(!a.HasListeners){d.prepareClass(a,a.prototype.$observableMixedIn?undefined:b)}},$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=!0;a.addListener(b)}return a._addedDeclaredListeners},addManagedListener:function(h,c,j,i,b,l){var f=this,g,k;f.managedListeners=f.managedListeners||[];if(typeof c!=='string'){k=arguments.length>4?b:c;b=c;for(c in b){if(b.hasOwnProperty(c)){g=b[c];if(!h.$eventOptions[c]){f.addManagedListener(h,c,g.fn||g,g.scope||b.scope||i,g.fn?g:k,!0)}}}if(b&&b.destroyable){return new a(f,h,b)}}else {if(j!==e){h.doAddListener(c,j,i,b,null,f,f);if(!l&&b&&b.destroyable){return new a(f,h,c,j,i)}}}},removeManagedListener:function(e,a,k,j){var f=this,b,c,h,i,g;if(e.$observableDestroyed){return}if(typeof a!=='string'){b=a;for(a in b){if(b.hasOwnProperty(a)){c=b[a];if(!e.$eventOptions[a]){f.removeManagedListener(e,a,c.fn||c,c.scope||b.scope||j)}}}}else {h=f.managedListeners?f.managedListeners.slice():[];a=Ext.canonicalEventName(a);for(g=0,i=h.length;g<i;g++){f.removeManagedListenerItem(!1,h[g],e,a,k,j)}}},fireEvent:function(a){return this.fireEventArgs(a,b.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(a,h){var c=this,e=c.events,f=!0,b;a=Ext.canonicalEventName(a);b=e&&e[a];if(c.hasListeners[a]){f=c.doFireEvent(a,h||g,b?b.bubble:!1)}return f},fireAction:function(c,g,b,e,a,f){if(typeof b==='string'&&!e){b=this[b]}a=a?Ext.Object.chain(a):{};a.single=!0;a.priority=((f==='after')?-99.5:99.5);this.doAddListener(c,b,e,a);this.fireEventArgs(c,g)},$eventedController:{_paused:1,pause:function(){++this._paused},resume:function(){var a=this,b=a.fn,c=a.scope,g=a.fnArgs,e,f;if(!--a._paused){if(b){e=Ext.Array.slice(g||a.args);if(g===!1){e.shift()}a.fn=null;e.push(a);if(Ext.isFunction(b)){f=b.apply(c,e)}else if(c&&Ext.isString(b)&&Ext.isFunction(c[b])){f=c[b].apply(c,e)}if(f===!1){return !1}}if(!a._paused){return a.owner.fireEventArgs(a.eventName,a.args)}}}},fireEventedAction:function(a,b,k,j,i){var c=this,e=c.eventedBeforeEventNames,h=e[a]||(e[a]='before'+a),f=Ext.apply({owner:c,eventName:a,fn:k,scope:j,fnArgs:i,args:b},c.$eventedController),g;b.push(f);g=c.fireEventArgs(h,b);b.pop();if(g===!1){return !1}return f.resume()},doFireEvent:function(e,g,h){var a=this,f,b,c=!0;do{if(a.eventsSuspended){if((f=a.eventQueue)){f.push([e,g])}return c}else {b=a.events&&a.events[e];if(b&&b!==!0){if((c=b.fire.apply(b,g))===!1){break}}}}while(h&&(a=a.getBubbleParent()));return c},getBubbleParent:function(){var b=this,a=b.getBubbleTarget&&b.getBubbleTarget();if(a&&a.isObservable){return a}return null},addListener:function(e,o,h,b,n,m){var c=this,l=Ext._namedScopes,g,f,j,i,k;if(typeof e!=='string'){b=e;h=b.scope;f=h&&l[h];j=f&&f.isSelf;k=((c.isComponent||c.isWidget)&&b.element)?c.$elementEventOptions:c.$eventOptions;for(e in b){g=b[e];if(!k[e]){i=g.scope;if(i&&j){f=l[i];if(f&&f.isController){i='self.controller'}}c.doAddListener(e,g.fn||g,i||h,g.fn?g:b,n,m)}}if(b&&b.destroyable){return new a(c,b)}}else {c.doAddListener(e,o,h,b,n,m);if(b&&b.destroyable){return new a(c,e,o,h,b)}}return c},removeListener:function(a,h,g,f){var c=this,e,b;if(typeof a!=='string'){b=a;f=f||c.$eventOptions;for(a in b){if(b.hasOwnProperty(a)){e=b[a];if(!c.$eventOptions[a]){c.doRemoveListener(a,e.fn||e,e.scope||b.scope)}}}}else {c.doRemoveListener(a,h,g)}return c},onBefore:function(a,e,c,b){return this.addListener(a,e,c,b,'before')},onAfter:function(a,e,c,b){return this.addListener(a,e,c,b,'after')},unBefore:function(a,e,c,b){return this.removeListener(a,e,c,b,'before')},unAfter:function(a,e,c,b){return this.removeListener(a,e,c,b,'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 c=this,a=c.events,f=c.hasListeners,e,b;if(a){for(b in a){if(a.hasOwnProperty(b)){e=a[b];if(e.isEvent){delete f[b];e.clearListeners()}}}c.events=null}c.clearManagedListeners()},clearManagedListeners:function(){var b=this,a=b.managedListeners,c,e;if(a){b.managedListeners=null;for(c=0,e=a.length;c<e;c++){b.removeManagedListenerItem(!0,a[c])}a.length=0}b.managedListeners=a},removeManagedListenerItem:function(b,a,g,f,e,c){if(b||(a.item===g&&a.ename===f&&(!e||a.fn===e)&&(!c||a.scope===c))){if(!a.item.destroyed){a.item.doRemoveListener(a.ename,a.fn,a.scope,a.options)}if(!b){Ext.Array.remove(this.managedListeners,a)}}},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 e=this,f=e.events,g=arguments.length,c,b,a;for(c=0;c<g;c++){a=arguments[c];a=Ext.canonicalEventName(a);b=f[a];if(!b||!b.isEvent){b=e._initEvent(a)}b.suspend()}},resumeEvent:function(){var c=this.events||0,f=c&&arguments.length,b,a,e;for(b=0;b<f;b++){e=Ext.canonicalEventName(arguments[b]);a=c[e];if(a&&a.resume){a.resume()}}},resumeEvents:function(f){var a=this,c=a.eventQueue,e,b;if(a.eventsSuspended&&!--a.eventsSuspended){delete a.eventQueue;if(!f&&c){e=c.length;for(b=0;b<e;b++){a.fireEventArgs.apply(a,c[b])}}}},relayEvents:function(i,c,j){var g=this,k=c.length,b=0,f,h,e={};if(Ext.isObject(c)){for(b in c){h=c[b];e[b]=g.createRelayer(h)}}else {for(;b<k;b++){f=c[b];e[f]=g.createRelayer(j?j+f:f)}}g.mon(i,e,null,null,undefined);return new a(g,i,e)},createRelayer:function(e,a){var c=this;return function(){return c.fireEventArgs.call(c,e,a?b.apply(arguments,a):arguments)}},enableBubble:function(e){if(e){var f=this,h=(typeof e==='string')?arguments:e,g=f.events,i=g&&h.length,a,b,c;for(c=0;c<i;++c){a=h[c];a=Ext.canonicalEventName(a);b=g[a];if(!b||!b.isEvent){b=f._initEvent(a)}f.hasListeners._incr_(a);b.bubble=!0}}},destroy:function(){this.clearListeners();this.callParent();this.destroyObservable(!0)},destroyObservable:function(c){var a=this,b=a.clearPropertiesOnDestroy;if(a.$observableDestroyed){return}if(!c){a.clearListeners()}if(a.destroyed){if(b){if(b===!0&&!a.$nulled){a.$reap()}if(!a.clearPrototypeOnDestroy){a.fireEvent=a.fireEventArgs=a.fireAction=a.fireEventedAction=Ext.emptyFn}a.events=a.managedListeners=a.eventedBeforeEventNames=null;a.$observableDestroyed=!0}}},privates:{doAddListener:function(c,l,g,a,h,m,i){var b=this,k=!1,f,j;h=h||(a&&a.order);if(h){j=(a&&a.priority);if(!j){a=a?Ext.Object.chain(a):{};a.priority=b.$orderToPriority[h]}}c=Ext.canonicalEventName(c);f=(b.events||(b.events={}))[c];if(!f||!f.isEvent){f=b._initEvent(c)}if(l!==e){if(!i&&(g&&g.isObservable&&(g!==b))){i=g}if(f.addListener(l,g,a,m,i)){b.hasListeners._incr_(c);k=!0}}return k},doRemoveListener:function(a,h,g){var f=this,e=!1,c=f.events,b;a=Ext.canonicalEventName(a);b=c&&c[a];if(b&&b.isEvent){if(b.removeListener(h,g)){f.hasListeners._decr_(a);e=!0}}return e},_initEvent:function(a){return (this.events[a]=new Ext.util.Event(this,a))}},deprecated:{'5.0':{methods:{addEvents:null}}}}},function(){var a=this,c=a.prototype,d=function(){},b=function(c){var d=c.prototype;if(!c.HasListeners){d.$observableMixedIn=1;a.prepareClass(c,this);c.onExtended(function(d,b){a.prepareClass(d,null,b)});if(d.onClassMixedIn){Ext.override(c,{onClassMixedIn:function(a){b.call(this,a);this.callParent(arguments)}})}else {d.onClassMixedIn=function(a){b.call(this,a)}}}e.call(this,c)},e=c.onClassMixedIn;d.prototype={_decr_:function(b,a){if(a==null){a=1}if(!(this[b]-=a)){delete this[b]}},_incr_:function(a){if(this.hasOwnProperty(a)){++this[a]}else {this[a]=1}}};c.HasListeners=a.HasListeners=d;a.createAlias({on:'addListener',un:'removeListener',mon:'addManagedListener',mun:'removeManagedListener',setListeners:'addListener'});a.observeClass=a.observe;function getMethodEvent(e){var a=(this.methodEvents=this.methodEvents||{})[e],c,b,d,f=this,g;if(!a){f.methodEvents[e]=a={};a.originalFn=f[e];a.methodName=e;a.before=[];a.after=[];g=function(g,a,h){a=a||f;if(typeof g==='string'){g=a[g]}if((b=g.apply(a,h))!==undefined){if(typeof b==='object'){if(b.returnValue!==undefined){c=b.returnValue}else {c=b}d=!!b.cancel}else if(b===!1){d=!0}else {c=b}}};f[e]=function(){var i=Array.prototype.slice.call(arguments,0),l=i.length,h,j,k;c=b=undefined;d=!1;for(j=0,k=a.before.length;j<k;j++){h=a.before[j];if(h.extraArgs){i.push.apply(i,h.extraArgs)}g(h.fn,h.scope,i);i.length=l;if(d||h.preventDefault){return c}}if((b=a.originalFn.apply(f,i))!==undefined){c=b}for(j=0,k=a.after.length;j<k;j++){h=a.after[j];if(h.extraArgs){i.push.apply(i,h.extraArgs)}g(h.fn,h.scope,i);i.length=l;if(d||h.preventDefault){return c}}return c}}return a}Ext.apply(c,{onClassMixedIn:b,beforeMethod:function(c,e,d,a,b){getMethodEvent.call(this,c).before.push({fn:e,scope:d,extraArgs:b,preventDefault:a})},afterMethod:function(c,e,d,a,b){getMethodEvent.call(this,c).after.push({fn:e,scope:d,extraArgs:b,preventDefault:a})},removeMethodListener:function(f,e,d){var b=getMethodEvent.call(this,f),a,c;for(a=0,c=b.before.length;a<c;a++){if(b.before[a].fn==e&&b.before[a].scope==d){Ext.Array.erase(b.before,a,1);return}}for(a=0,c=b.after.length;a<c;a++){if(b.after[a].fn==e&&b.after[a].scope==d){Ext.Array.erase(b.after,a,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.define('Ext.util.HashMap',{mixins:[Ext.mixin.Observable],generation:0,config:{keyFn:null},constructor:function(c){var a=this,b;a.mixins.observable.constructor.call(a,c);a.clear(!0);b=a.getKeyFn();if(b){a.getKey=b}},getCount:function(){return this.length},getData:function(b,a){if(a===undefined){a=b;b=this.getKey(a)}return [b,a]},getKey:function(a){return a.id},add:function(c,b){var a=this;if(arguments.length===1){b=c;c=a.getKey(b)}if(a.containsKey(c)){return a.replace(c,b)}a.map[c]=b;++a.length;a.generation++;if(a.hasListeners.add){a.fireEvent('add',a,c,b)}return b},replace:function(b,c){var a=this,d=a.map,e;if(arguments.length===1){c=b;b=a.getKey(c)}if(!a.containsKey(b)){a.add(b,c)}e=d[b];d[b]=c;a.generation++;if(a.hasListeners.replace){a.fireEvent('replace',a,b,c,e)}return c},remove:function(b){var a=this.findKey(b);if(a!==undefined){return this.removeAtKey(a)}return !1},removeAtKey:function(b){var a=this,c;if(a.containsKey(b)){c=a.map[b];delete a.map[b];--a.length;a.generation++;if(a.hasListeners.remove){a.fireEvent('remove',a,b,c)}return !0}return !1},get:function(a){var b=this.map;return b.hasOwnProperty(a)?b[a]:undefined},clear:function(b){var a=this;if(b||a.generation){a.map={};a.length=0;a.generation=b?0:a.generation+1}if(b!==!0&&a.hasListeners.clear){a.fireEvent('clear',a)}return a},containsKey:function(a){var b=this.map;return b.hasOwnProperty(a)&&b[a]!==undefined},contains:function(a){return this.containsKey(this.findKey(a))},getKeys:function(){return this.getArray(!0)},getValues:function(){return this.getArray(!1)},getArray:function(d){var c=[],a,b=this.map;for(a in b){if(b.hasOwnProperty(a)){c.push(d?a:b[a])}}return c},each:function(e,c){var b=Ext.apply({},this.map),a,d=this.length;c=c||this;for(a in b){if(b.hasOwnProperty(a)){if(e.call(c,a,b[a],d)===!1){break}}}return this},clone:function(){var a=new this.self(this.initialConfig),c=this.map,b;a.suspendEvents();for(b in c){if(c.hasOwnProperty(b)){a.add(b,c[b])}}a.resumeEvents();return a},findKey:function(c){var a,b=this.map;for(a in b){if(b.hasOwnProperty(a)&&b[a]===c){return a}}return undefined}},function(b){var a=b.prototype;a.removeByKey=a.removeAtKey});Ext.define('Ext.AbstractManager',{typeName:'type',constructor:function(a){Ext.apply(this,a||{});this.all=new Ext.util.HashMap();this.types={}},get:function(a){return this.all.get(a)},register:function(a){this.all.add(a)},unregister:function(a){this.all.remove(a)},registerType:function(a,b){this.types[a]=b;b[this.typeName]=a},isRegistered:function(a){return this.types[a]!==undefined},create:function(a,c){var d=a[this.typeName]||a.type||c,b=this.types[d];return new b(a)},onAvailable:function(d,f,e){var a=this.all,c,b;if(a.containsKey(d)){c=a.get(d);f.call(e||c,c)}else {b=function(h,g,c){if(g===d){f.call(e||c,c);a.un('add',b)}};a.on('add',b)}},each:function(b,a){this.all.each(b,a||this)},getCount:function(){return this.all.getCount()}});Ext.define('Ext.promise.Consequence',function(a){return {promise:null,deferred:null,onFulfilled:null,onRejected:null,onProgress:null,constructor:function(c,e,d){var b=this;b.onFulfilled=c;b.onRejected=e;b.onProgress=d;b.deferred=new Ext.promise.Deferred();b.promise=b.deferred.promise},trigger:function(e,d){var b=this,c=b.deferred;switch(e){case 'fulfill':b.propagate(d,b.onFulfilled,c,c.resolve);break;case 'reject':b.propagate(d,b.onRejected,c,c.reject);break;}},update:function(b){if(Ext.isFunction(this.onProgress)){b=this.onProgress(b)}this.deferred.update(b)},propagate:function(d,b,c,e){if(Ext.isFunction(b)){this.schedule(function(){try{c.resolve(b(d))}catch(f){c.reject(f)}})}else {e.call(this.deferred,d)}},schedule:function(c){var b=a.queueSize++;a.queue[b]=c;if(!b){Ext.asap(a.dispatch)}},statics:{queue:new Array(10000),queueSize:0,dispatch:function(){var c=a.queue,d,b;for(b=0;b<a.queueSize;++b){d=c[b];c[b]=null;d()}a.queueSize=0}}}});Ext.define('Ext.promise.Deferred',{promise:null,consequences:[],completed:!1,completionAction:null,completionValue:null,constructor:function(){var a=this;a.promise=new Ext.promise.Promise(a);a.consequences=[];a.completed=!1;a.completionAction=null;a.completionValue=null},then:function(c,e,d){var a=this,b=new Ext.promise.Consequence(c,e,d);if(a.completed){b.trigger(a.completionAction,a.completionValue)}else {a.consequences.push(b)}return b.promise},resolve:function(a){var b=this,c,d;if(b.completed){return}try{if(a===b.promise){throw new TypeError('A Promise cannot be resolved with itself.')}if(a!=null&&(typeof a==='object'||Ext.isFunction(a))&&Ext.isFunction(d=a.then)){c=!1;try{d.call(a,function(d){if(!c){c=!0;b.resolve(d)}},function(d){if(!c){c=!0;b.reject(d)}})}catch(e){if(!c){b.reject(e)}}}else {b.complete('fulfill',a)}}catch(f){b.reject(f)}},reject:function(a){if(this.completed){return}this.complete('reject',a)},update:function(e){var b=this.consequences,c,a,d;if(this.completed){return}for(a=0,d=b.length;a<d;a++){c=b[a];c.update(e)}},complete:function(f,g){var a=this,c=a.consequences,d,b,e;a.completionAction=f;a.completionValue=g;a.completed=!0;for(b=0,e=c.length;b<e;b++){d=c[b];d.trigger(a.completionAction,a.completionValue)}a.consequences=null}});Ext.define('Ext.promise.Promise',function(a){var b;return {statics:{CancellationError:Ext.global.CancellationError||Error,_ready:function(){b=Ext.promise.Deferred},all:function(c){return a.when(c).then(function(f){var g=new b(),e=f.length,h=new Array(e),d,j,k,i,l;if(!e){g.resolve(h)}else {k=function(d,b){return a.when(d).then(function(i){h[b]=i;if(!--e){g.resolve(h)}return i},function(e){return g.reject(e)})};for(d=i=0,l=f.length;i<l;d=++i){j=f[d];if(d in f){k(j,d)}else {e--}}}return g.promise})},is:function(b){return b!=null&&(typeof b==='object'||Ext.isFunction(b))&&Ext.isFunction(b.then)},race:function(e){var d=new b(),f=e.length,c;for(c=0;c<f;++c){d.resolve(e[c])}return d.promise},rethrowError:function(b){Ext.asap(function(){throw b})},when:function(d){var c=new b();c.resolve(d);return c.promise}},owner:null,constructor:function(b){this.owner=b},then:function(b,d,c,e){var f;if(arguments.length===1&&Ext.isObject(arguments[0])){f=arguments[0];b=f.success;d=f.failure;c=f.progress;e=f.scope}if(e){if(b){b=b.bind(e)}if(d){d=d.bind(e)}if(c){c=c.bind(e)}}return this.owner.then(b,d,c)},'catch':function(b,c){var d;if(arguments.length===1&&Ext.isObject(arguments[0])){d=arguments[0];b=d.fn;c=d.scope}if(c!=null){b=b.bind(c)}return this.owner.then(null,b)},otherwise:function(b,c){return this['catch'].apply(this,arguments)},always:function(b,c){var d;if(arguments.length===1&&Ext.isObject(arguments[0])){d=arguments[0];b=d.fn;c=d.scope}if(c!=null){b=b.bind(c)}return this.owner.then(function(d){try{b()}catch(e){a.rethrowError(e)}return d},function(d){try{b()}catch(e){a.rethrowError(e)}throw d})},done:function(){this.owner.then(null,a.rethrowError)},cancel:function(b){if(b==null){b=null}this.owner.reject(new this.self.CancellationError(b))},log:function(b){if(b==null){b=''}return this.owner.then(function(c){Ext.log(""+(b||'Promise')+" resolved with value: "+c);return c},function(c){Ext.log(""+(b||'Promise')+" rejected with reason: "+c);throw c})}}},function(a){a._ready()});Ext.define('Ext.Promise',function(){var a;return {statics:{_ready:function(){a=Ext.promise.Promise},all:function(){return a.all.apply(a,arguments)},race:function(){return a.race.apply(a,arguments)},reject:function(b){var a=new Ext.promise.Deferred();a.reject(b);return a.promise},resolve:function(b){var a=new Ext.promise.Deferred();a.resolve(b);return a.promise}},constructor:function(b){var a=new Ext.promise.Deferred();b(a.resolve.bind(a),a.reject.bind(a));return a.promise}}},function(b){var a=Ext.global.Promise;if(a&&a.resolve&&!Ext.useExtPromises){Ext.Promise=a}else {b._ready()}});Ext.define('Ext.Deferred',function(a){var b,c,d,e;return {extend:Ext.promise.Deferred,statics:{_ready:function(){b=Ext.promise.Promise;e=Ext.Promise.resolve},all:function(){return b.all.apply(b,arguments)},any:function(b){return a.some(b,1).then(function(c){return c[0]},function(c){if(c instanceof Error&&c.message==='Too few Promises were resolved.'){Ext.raise('No Promises were resolved.')}else {throw c}})},delay:function(d,c){var b;if(arguments.length===1){c=d;d=undefined}c=Math.max(c,1);b=new a();b.timeoutId=Ext.defer(function(){delete b.timeoutId;b.resolve(d)},c);return b.promise},getCachedRejected:function(){if(!c){c=Ext.Promise.reject()}return c},getCachedResolved:function(){if(!d){d=Ext.Promise.resolve()}return d},map:function(b,c){return a.resolved(b).then(function(d){var e,g,j,h,k,f,i,l;h=d.length;f=new Array(d.length);e=new a();if(!h){e.resolve(f)}else {k=function(i,g){return a.resolved(i).then(function(e){return c(e,g,f)}).then(function(j){f[g]=j;if(!--h){e.resolve(f)}return j},function(f){return e.reject(f)})};for(g=i=0,l=d.length;i<l;g=++i){j=d[g];if(g in d){k(j,g)}else {h--}}}return e.promise})},memoize:function(e,b,d){var c=Ext.Function.memoize(e,b,d);return function(){return a.all(Ext.Array.slice(arguments)).then(function(f){return c.apply(b,f)})}},parallel:function(d,b){var c;if(b==null){b=null}c=Ext.Array.slice(arguments,2);return a.map(d,function(e){if(!Ext.isFunction(e)){throw new Error('Invalid parameter: expected a function.')}return e.apply(b,c)})},pipeline:function(d,c,b){if(b==null){b=null}return a.reduce(d,function(f,e){if(!Ext.isFunction(e)){throw new Error('Invalid parameter: expected a function.')}return e.call(b,f)},c)},race:function(){return b.race.apply(b,arguments)},reduce:function(e,d,c){var b;b=arguments.length===3;return a.resolved(e).then(function(f){var g=[f,function(b,g,h){return a.resolved(b).then(function(i){return a.resolved(g).then(function(j){return d(i,j,h,f)})})}];if(b){g.push(c)}return Ext.Array.reduce.apply(Ext.Array,g)})},rejected:function(c){var b=new Ext.Deferred();b.reject(c);return b.promise},resolved:function(c){var b=new Ext.Deferred();b.resolve(c);return b.promise},sequence:function(d,b){var c;if(b==null){b=null}c=Ext.Array.slice(arguments,2);return a.reduce(d,function(e,f){if(!Ext.isFunction(f)){throw new Error('Invalid parameter: expected a function.')}return a.resolved(f.apply(b,c)).then(function(c){e.push(c);return e})},[])},some:function(c,b){return a.resolved(c).then(function(e){var f,g,m,l,k,h,d,i,j,n;i=[];d=b;h=(e.length-d)+1;f=new a();if(e.length<b){f.reject(new Error('Too few Promises were resolved.'))}else {l=function(g){if(d>0){i.push(g)}d--;if(d===0){f.resolve(i)}return g};m=function(d){h--;if(h===0){f.reject(new Error('Too few Promises were resolved.'))}return d};for(g=j=0,n=e.length;j<n;g=++j){k=e[g];if(g in e){a.resolved(k).then(l,m)}}}return f.promise})},timeout:function(d,e){var c=new a(),b;b=Ext.defer(function(){if(b){c.reject(new Error('Promise timed out.'))}},e);a.resolved(d).then(function(f){Ext.undefer(b);b=null;c.resolve(f)},function(f){Ext.undefer(b);b=null;c.reject(f)});return c.promise}}}},function(a){a._ready()});Ext.Factory=function(b){var a=this;a.aliasPrefix=b+'.';a.cache={};a.name=b.replace(a.fixNameRe,a.fixNameFn);a.type=b;a.creator='create'+Ext.String.capitalize(a.name)};Ext.Factory.prototype={defaultProperty:'type',instanceProp:'isInstance',typeProperty:'type',create:function(a,f){var e=this,g=Ext.ClassManager,j=e.cache,i=e.typeProperty,h,d,b,c;if(a){if(a[e.instanceProp]){return a}if(typeof a==='string'){c=a;a={};a[e.defaultProperty]=c}d=a.xclass;c=a[i]}if(f&&f.constructor===Object){a=Ext.apply({},a,f);f=f[i]}if(d){if(!(b=g.get(d))){return g.instantiate(d,a)}}else {if(!(c=c||f||e.defaultType)){b=e.defaultClass}if(!b&&!(b=j[c])){h=e.aliasPrefix+c;d=g.getNameByAlias(h);if(!(b=d&&g.get(d))){return g.instantiateByAlias(h,a)}j[c]=b}}return b.isInstance?b:new b(a)},fixNameRe:/\.[a-z]/ig,fixNameFn:function(a){return a.substring(1).toUpperCase()},clearCache:function(){this.cache={};this.instanceCache={}},hook:function(c){var a=this,b=a.create;a.create=function(f,e){var d=c.call(a,b,f,e);if(d===undefined){d=b.call(a,f,e)}return d}},update:function(c,a,h,g,j){var f=this,d,e,i,b;if(!a||a.isInstance){if(c&&c!==a){c.destroy()}return a}if(typeof a==='string'){b=a;a={};a[f.defaultProperty]=b}if(c){if(a===!0){return c}if(!(b=a.xclass)){if(!(b=a.xtype)){b=a[f.typeProperty];if(b){b=f.aliasPrefix+b;d=c.self.prototype;if(d.hasOwnProperty('alias')){d=d.alias;if(d){i=d===b||d.indexOf(b)>-1}}}}else {i=c.isXType(b,!0)}}else {i=c.$className===b}if(i){c.setConfig(a);return c}c.destroy()}if(a===!0){a={}}if(h){if(j){e=Ext.Config.map[j];e=h[e.names.get]();if(e){a=Ext.merge(Ext.clone(e),a)}}g=g||f.creator;if(h[g]){a=h[g](a)}}return f.create(a)}};Ext.Factory.define=function(e,b){var d=Ext.Factory,g=b&&b.cacheable,f,a,c;if(e.constructor===Object){Ext.Object.each(e,d.define,d)}else {a=new Ext.Factory(e);if(b){if(b.constructor===Object){Ext.apply(a,b);if(typeof (f=a.xclass)==='string'){a.defaultClass=Ext.ClassManager.get(f)}}else {a.defaultType=b}}d[a.name]=c=function(d,c){return a.create(d,c)};if(g){a.instanceCache={};a.hook(function(g,c,f){var d=this.instanceCache,a;if(typeof c==='string'&&!(a=d[c])){a=g.call(this,c,f);if(a.cacheable!==!1){d[c]=a}}return a})}c.instance=a;c.update=function(f,h,g,d,c){return a.update(f,h,g,d,c)}}return c};Ext.Factory.clearCaches=function(){var b=Ext.Factory,c,a;for(c in b){a=b[c];a=a.instance;if(a){a.clearCache()}}};Ext.Factory.on=function(a,b){Ext.Factory[a].instance.hook(b)};Ext.define('Ext.mixin.Factoryable',{mixinId:'factoryable',onClassMixedIn:function(c){var d=c.prototype,f=d.factoryConfig,a=d.alias,b={},e,g;a=a&&a.length&&a[0];if(a&&(e=a.lastIndexOf('.'))>0){b.type=a.substring(0,e);b.defaultType=a.substring(e+1)}if(f){delete d.factoryConfig;Ext.apply(b,f)}g=Ext.Factory.define(b.type,b);if(c.create===Ext.Base.create){c.create=g}}});Ext.define('Ext.data.request.Base',{mixins:[Ext.mixin.Factoryable],factoryConfig:{type:'request',defaultType:'ajax'},result:null,success:null,timer:null,constructor:function(a){var b=this;Ext.apply(b,a.options||{},a.ownerConfig);b.id=++Ext.data.Connection.requestId;b.owner=a.owner;b.options=a.options;b.requestOptions=a.requestOptions},start:function(){var a=this,b=a.getTimeout();if(b&&a.async){a.timer=Ext.defer(a.onTimeout,b,a)}},abort:function(){var a=this;a.clearTimer();if(!a.timedout){a.aborted=!0}a.abort=Ext.emptyFn},createDeferred:function(){var a=this,c=a.result,b=new Ext.Deferred();if(a.completed){if(a.success){b.resolve(c)}else {b.reject(c)}}a.deferred=b;return b},getDeferred:function(){return this.deferred||this.createDeferred()},getPromise:function(){return this.getDeferred().promise},then:function(){var a=this.getPromise();return a.then.apply(a,arguments)},onComplete:function(){var a=this,b=a.deferred,c=a.result;a.clearTimer();if(b){if(a.success){b.resolve(c)}else {b.reject(c)}}a.completed=!0},onTimeout:function(){var a=this;a.timedout=!0;a.timer=null;a.abort(!0)},getTimeout:function(){return this.timeout},clearTimer:function(){this.timer=Ext.undefer(this.timer)},destroy:function(){var a=this;a.abort();a.owner=a.options=a.requestOptions=a.result=null;a.callParent()},privates:{createException:function(){var a=this,b;b={request:a,requestId:a.id,status:a.aborted?-1:0,statusText:a.aborted?'transaction aborted':'communication failure',getResponseHeader:a._getHeader,getAllResponseHeaders:a._getHeaders};if(a.aborted){b.aborted=!0}if(a.timedout){b.timedout=!0}return b},_getHeader:function(b){var a=this.headers;return a&&a[b.toLowerCase()]},_getHeaders:function(){return this.headers}}});Ext.define('Ext.data.flash.BinaryXhr',{statics:{flashPluginActivated:function(){Ext.data.flash.BinaryXhr.flashPluginActive=!0;Ext.data.flash.BinaryXhr.flashPlugin=document.getElementById("ext-flash-polyfill");Ext.GlobalEvents.fireEvent("flashready")},flashPluginActive:!1,flashPluginInjected:!1,connectionIndex:1,liveConnections:{},flashPlugin:null,onFlashStateChange:function(b,c,d){var a;a=this.liveConnections[Number(b)];if(a){a.onFlashStateChange(c,d)}},registerConnection:function(b){var a=this.connectionIndex;this.conectionIndex=this.connectionIndex+1;this.liveConnections[a]=b;return a},injectFlashPlugin:function(){var c=this,b,a;c.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'}]}]});b=[Ext.Loader.getPath('Ext.data.Connection'),'../../../plugins/flash/swfobject.js'].join('/');a="/plugins/flash/FlashPlugin.swf";if(Ext.flashPluginPath){a=Ext.flashPluginPath}Ext.Loader.loadScript({url:b,onLoad:function(){var d="11.4.0",e="playerProductInstall.swf",f={},b={},c={};b.quality="high";b.bgcolor="#ffffff";b.allowscriptaccess="sameDomain";b.allowfullscreen="true";c.id="ext-flash-polyfill";c.name="polyfill";c.align="middle";swfobject.embedSWF(a,"ext-flash-polyfill","0","0",d,e,f,b,c)},onError:function(){},scope:c});Ext.data.flash.BinaryXhr.flashPluginInjected=!0}},readyState:0,status:0,statusText:"",responseBytes:null,javascriptId:null,constructor:function(b){var a=this;if(!Ext.data.flash.BinaryXhr.flashPluginInjected){Ext.data.flash.BinaryXhr.injectFlashPlugin()}Ext.apply(a,b);a.requestHeaders={}},abort:function(){var a=this;if(a.readyState===4){return}a.aborted=!0;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.removeListener("flashready",a.onFlashReady,a);return}Ext.data.flash.BinaryXhr.flashPlugin.abortRequest(a.javascriptId);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]},getAllResponseHeaders:function(){var a=[];Ext.Object.each(this.responseHeaders,function(c,b){a.push(c+': '+b)});return a.join('\r\n')},getResponseHeader:function(b){var a=this.responseHeaders;return (a&&a[b])||null},open:function(d,f,c,e,b){var a=this;a.method=d;a.url=f;a.async=c!==!1;a.user=e;a.password=b},overrideMimeType:function(a){this.mimeType=a},send:function(b){var a=this;a.body=b;if(!Ext.data.flash.BinaryXhr.flashPluginActive){Ext.GlobalEvents.addListener("flashready",a.onFlashReady,a)}else {this.onFlashReady()}},onFlashReady:function(){var a=this,b;a.javascriptId=Ext.data.flash.BinaryXhr.registerConnection(a);b={method:a.method,url:a.url,user:a.user,password:a.password,mimeType:a.mimeType,requestHeaders:a.requestHeaders,body:a.body,javascriptId:a.javascriptId};Ext.data.flash.BinaryXhr.flashPlugin.postBinary(b)},setReadyState:function(b){var a=this;if(a.readyState!==b){a.readyState=b;a.onreadystatechange()}},setRequestHeader:function(a,b){this.requestHeaders[a]=b},onreadystatechange:Ext.emptyFn,parseData:function(a){var b=this;this.status=a.status||0;b.responseHeaders={};if(b.mimeType){b.responseHeaders["content-type"]=b.mimeType}if(a.reason==="complete"){this.responseBytes=a.data;b.responseHeaders["content-length"]=a.data.length}else if(a.reason==="error"||a.reason==="securityError"){this.statusText=a.text;b.responseHeaders["content-length"]=0}},onFlashStateChange:function(b,c){var a=this;if(b===4){a.parseData(c);delete Ext.data.flash.BinaryXhr.liveConnections[a.javascriptId]}a.setReadyState(b)}});Ext.define('Ext.data.request.Ajax',{extend:Ext.data.request.Base,alias:'request.ajax',statics:{parseStatus:function(a,c){var b,d,f,e;if(c){b=c.responseType;if(b==='arraybuffer'){d=c.byteLength}else if(b==='blob'){d=c.response.size}else if((b==='json'||b==='document')&&c.response){d=0}else if((b==='text'||b===''||!b)&&c.responseText){d=c.responseText.length}}a=a===1223?204:a;e=!1;f=(a>=200&&a<300)||a===304||(a===0&&Ext.isNumber(d));if(!f){switch(a){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:e=!0;break;}}return {success:f,isException:e}}},start:function(f){var a=this,e=a.options,c=a.requestOptions,d=a.isXdr,b;b=a.xhr=a.openRequest(e,c,a.async,a.username,a.password);if(!d){a.setupHeaders(b,e,c.data,c.params)}if(a.async){if(!d){b.onreadystatechange=a.bindStateChange()}}if(d){a.processXdrRequest(a,b)}a.callParent([f]);b.send(f);if(!a.async){return a.onComplete()}return a},abort:function(c){var a=this,b=a.xhr;if(c||a.isLoading()){try{b.onreadystatechange=null}catch(d){b.onreadystatechange=Ext.emptyFn}b.abort();a.callParent([c]);a.onComplete();a.cleanup()}},cleanup:function(){this.xhr=null;delete this.xhr},isLoading:function(){var c=this,a=c.xhr,b=a&&a.readyState,d=Ext.data.flash&&Ext.data.flash.BinaryXhr;if(!a||c.aborted||c.timedout){return !1}if(d&&a instanceof d){return b!==4}return b!==0&&b!==4},openRequest:function(c,b,f,e,g){var d=this,a=d.newRequest(c);if(e){a.open(b.method,b.url,f,e,g)}else {if(d.isXdr){a.open(b.method,b.url)}else {a.open(b.method,b.url,f)}}if(c.binary||d.binary){if(window.Uint8Array){a.responseType='arraybuffer'}else if(a.overrideMimeType){a.overrideMimeType('text/plain; charset=x-user-defined')}}if(c.responseType){a.responseType=c.responseType}if(c.withCredentials||d.withCredentials){a.withCredentials=!0}return a},newRequest:function(c){var a=this,b;if(c.binaryData){if(window.Uint8Array){b=a.getXhrInstance()}else {b=new Ext.data.flash.BinaryXhr()}}else if(a.cors&&Ext.isIE9m){b=a.getXdrInstance();a.isXdr=!0}else {b=a.getXhrInstance();a.isXdr=!1}return b},setupHeaders:function(m,f,j,l){var d=this,a=Ext.apply({},f.headers||{},d.defaultHeaders),e=d.defaultPostHeader,h=f.jsonData,i=f.xmlData,b='Content-Type',k=d.useDefaultXhrHeader,c,g;if(!a.hasOwnProperty(b)&&(j||l)){if(j){if(f.rawData){e='text/plain'}else {if(i&&Ext.isDefined(i)){e='text/xml'}else if(h&&Ext.isDefined(h)){e='application/json'}}}a[b]=e}if(k&&!a['X-Requested-With']){a['X-Requested-With']=d.defaultXhrHeader}if(a[b]===undefined||a[b]===null){delete a[b]}try{for(c in a){if(a.hasOwnProperty(c)){g=a[c];m.setRequestHeader(c,g)}}}catch(n){d.owner.fireEvent('exception',c,g)}return a},getXdrInstance:function(){var a;if(Ext.ieVersion>=8){a=new XDomainRequest()}else {Ext.raise({msg:'Your browser does not support CORS'})}return a},getXhrInstance:function(){return new XMLHttpRequest()},processXdrRequest:function(a,b){var c=this;delete a.headers;a.contentType=a.options.contentType||c.defaultXdrContentType;b.onload=c.bindStateChange(!0);b.onerror=b.ontimeout=c.bindStateChange(!1)},processXdrResponse:function(a,b){a.getAllResponseHeaders=function(){return []};a.getResponseHeader=function(){return ''};a.contentType=b.contentType||this.defaultXdrContentType},bindStateChange:function(a){var b=this;return function(){Ext.elevate(function(){b.onStateChange(a)})}},onStateChange:function(c){var a=this,b=a.xhr;if((b&&b.readyState===4)||a.isXdr){a.clearTimer();a.onComplete(c);a.cleanup()}},onComplete:function(h){var a=this,d=a.owner,b=a.options,e=a.xhr,i={success:!1,isException:!1},f,g,c;if(!e||a.destroyed){return a.result=i}try{f=Ext.data.request.Ajax.parseStatus(e.status,e);if(f.success){f.success=e.readyState===4}}catch(j){f=i}g=a.success=a.isXdr?h:f.success;if(g){c=a.createResponse(e);if(d.hasListeners.requestcomplete){d.fireEvent('requestcomplete',d,c,b)}if(b.success){Ext.callback(b.success,b.scope,[c,b])}}else {if(f.isException||a.aborted||a.timedout){c=a.createException(e)}else {c=a.createResponse(e)}if(d.hasListeners.requestexception){d.fireEvent('requestexception',d,c,b)}if(b.failure){Ext.callback(b.failure,b.scope,[c,b])}}a.result=c;if(b.callback){Ext.callback(b.callback,b.scope,[b,g,c])}d.onRequestComplete(a);a.callParent([h]);return c},createResponse:function(a){var d=this,h=d.isXdr,f={},i=h?[]:a.getAllResponseHeaders().replace(/\r\n/g,'\n').split('\n'),g=i.length,e,c,j,b;while(g--){e=i[g];c=e.indexOf(':');if(c>=0){j=e.substr(0,c).toLowerCase();if(e.charAt(c+1)===' '){++c}f[j]=e.substr(c+1)}}b={request:d,requestId:d.id,status:a.status,statusText:a.statusText,getResponseHeader:function(b){return f[b.toLowerCase()]},getAllResponseHeaders:function(){return f}};if(h){d.processXdrResponse(b,a)}if(d.binary){b.responseBytes=d.getByteArray(a)}else {if(a.responseType){b.responseType=a.responseType}if(a.responseType==='blob'){b.responseBlob=a.response}else if(a.responseType==='json'){b.responseJson=a.response}else if(a.responseType==='document'){b.responseXML=a.response}else {b.responseText=a.responseText;b.responseXML=a.responseXML}}return b},destroy:function(){this.xhr=null;this.callParent()},privates:{getByteArray:function(b){var e=b.response,g=b.responseBody,h=Ext.data.flash&&Ext.data.flash.BinaryXhr,a,d,f,c;if(b instanceof h){a=b.responseBytes}else if(window.Uint8Array){a=e?new Uint8Array(e):[]}else if(Ext.isIE9p){try{a=new VBArray(g).toArray()}catch(i){a=[]}}else if(Ext.isIE){if(!this.self.vbScriptInjected){this.injectVBScript()}getIEByteArray(b.responseBody,a=[])}else {a=[];d=b.responseText;f=d.length;for(c=0;c<f;c++){a.push(d.charCodeAt(c)&255)}}return a},injectVBScript:function(){var a=document.createElement('script');a.type='text/vbscript';a.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(a);this.self.vbScriptInjected=!0}}});Ext.define('Ext.data.request.Form',{extend:Ext.data.request.Base,alias:'request.form',start:function(d){var a=this,c=a.options,b=a.requestOptions;a.callParent([d]);a.form=a.upload(c.form,b.url,b.data,c);return a},abort:function(c){var a=this,b;if(a.isLoading()){try{b=a.frame.dom;if(b.stop){b.stop()}else {b.document.execCommand('Stop')}}catch(d){}}a.callParent([c]);a.onComplete();a.cleanup()},cleanup:function(){var a=this,b=a.frame;if(b){b.un('load',a.onComplete,a);Ext.removeNode(b)}a.frame=a.form=null},isLoading:function(){return !!this.frame},upload:function(a,s,o,n){a=Ext.getDom(a);n=n||{};var m=document.createElement('iframe'),e=Ext.get(m),g=e.id,j=[],l='multipart/form-data',r={target:a.target,method:a.method,encoding:a.encoding,enctype:a.enctype,action:a.action},k=function(c,b){d=document.createElement('input');Ext.fly(d).set({type:'hidden',value:b,name:c});a.appendChild(d);j.push(d)},d,f,b,c,q,i,p,h;e.set({name:g,cls:Ext.baseCSSPrefix+'hidden-display',src:Ext.SSL_SECURE_URL,tabIndex:-1});document.body.appendChild(m);document.body.appendChild(a);if(document.frames){document.frames[g].name=g}Ext.fly(a).set({target:g,method:'POST',enctype:l,encoding:l,action:s||r.action});if(o){f=Ext.Object.fromQueryString(o)||{};for(c in f){if(f.hasOwnProperty(c)){b=f[c];if(Ext.isArray(b)){q=b.length;for(i=0;i<q;i++){k(c,b[i])}}else {k(c,b)}}}}this.frame=e;e.on({load:this.onComplete,scope:this,single:!Ext.isOpera});a.submit();document.body.removeChild(a);Ext.fly(a).set(r);for(p=j.length,h=0;h<p;h++){Ext.removeNode(j[h])}return a},getDoc:function(){var a=this.frame.dom;return (a&&(a.contentWindow.document||a.contentDocument))||(window.frames[a.id]||{}).document},getTimeout:function(){return this.options.timeout},onComplete:function(){var b=this,h=b.frame,i=b.owner,d=b.options,g,c,f,e,a;if(!h){return}if(b.aborted||b.timedout){b.result=a=b.createException();a.responseXML=null;a.responseText=Ext.encode({success:!1,message:Ext.String.trim(a.statusText)});a.request=b;g=d.failure;f=!1}else {try{c=b.getDoc();b.result=a={responseText:'',responseXML:null,request:b};if(c){if(Ext.isOpera&&c.location===Ext.SSL_SECURE_URL){return}if(c.body){if((e=c.body.firstChild)&&/pre/i.test(e.tagName)){a.responseText=e.textContent||e.innerText}else if((e=c.getElementsByTagName('textarea')[0])){a.responseText=e.value}else {a.responseText=c.body.textContent||c.body.innerText}}a.responseXML=c.XMLDocument||c;g=d.success;f=!0;a.status=200}else {Ext.raise("Could not acquire a suitable connection for the "+"file upload service.")}}catch(j){b.result=a=b.createException();a.status=400;a.statusText=(j.message||j.description)+'';a.responseText=Ext.encode({success:!1,message:Ext.String.trim(a.statusText)});a.responseXML=null;g=d.failure;f=!1}}b.frame=null;b.success=f;i.fireEvent(f?'requestcomplete':'requestexception',i,a,d);Ext.callback(g,d.scope,[a,d]);Ext.callback(d.callback,d.scope,[d,f,a]);i.onRequestComplete(b);Ext.asap(h.destroy,h);b.callParent()},destroy:function(){this.cleanup();this.callParent()}});Ext.define('Ext.data.Connection',{mixins:{observable:Ext.mixin.Observable},statics:{requestId:0},enctypeRe:/multipart\/form-data/i,config:{url:null,async:!0,username:'',password:'',disableCaching:!0,withCredentials:!1,binary:!1,cors:!1,isXdr:!1,defaultXdrContentType:'text/plain',disableCachingParam:'_dc',timeout:30000,extraParams:null,autoAbort:!1,method:null,defaultHeaders:null,defaultPostHeader:'application/x-www-form-urlencoded; charset=UTF-8',useDefaultXhrHeader:!0,defaultXhrHeader:'XMLHttpRequest'},constructor:function(a){this.mixins.observable.constructor.call(this,a);this.requests={}},request:function(a){var c=this,d,b;a=a||{};if(c.fireEvent('beforerequest',c,a)!==!1){d=c.setOptions(a,a.scope||Ext.global);b=c.createRequest(a,d);return b.start(d.data)}b={status:-1,statusText:'Request cancelled in beforerequest event handler'};Ext.callback(a.callback,a.scope,[a,!1,b]);return Ext.Deferred.rejected([a,!1,b])},createRequest:function(c,e){var a=this,d=c.type||e.type,b;if(!d){d=a.isFormUpload(c)?'form':'ajax'}if(c.autoAbort||a.getAutoAbort()){a.abort()}b=Ext.Factory.request({type:d,owner:a,options:c,requestOptions:e,ownerConfig:a.getConfig()});a.requests[b.id]=b;a.latestId=b.id;return b},isFormUpload:function(a){var b=this.getForm(a);if(b){return a.isUpload||this.enctypeRe.test(b.getAttribute('enctype'))}return !1},getForm:function(a){return Ext.getDom(a.form)},setOptions:function(a,k){var e=this,b=a.params||{},g=e.getExtraParams(),f=a.urlParams,c=a.url||e.getUrl(),l=a.cors,i=a.jsonData,h,j,d;if(l!==undefined){e.setCors(l)}if(Ext.isFunction(b)){b=b.call(k,a)}if(Ext.isFunction(c)){c=c.call(k,a)}c=this.setupUrl(a,c);d=a.rawData||a.binaryData||a.xmlData||i||null;if(i&&!Ext.isPrimitive(i)){d=Ext.encode(d)}if(a.binaryData){if(e.nativeBinaryPostSupport()){d=(new Uint8Array(a.binaryData));if((Ext.isChrome&&Ext.chromeVersion<22)||Ext.isSafari||Ext.isGecko){d=d.buffer}}}if(Ext.isObject(b)){b=Ext.Object.toQueryString(b)}if(Ext.isObject(g)){g=Ext.Object.toQueryString(g)}b=b+((g)?((b)?'&':'')+g:'');f=Ext.isObject(f)?Ext.Object.toQueryString(f):f;b=this.setupParams(a,b);h=(a.method||e.getMethod()||((b||d)?'POST':'GET')).toUpperCase();this.setupMethod(a,h);j=a.disableCaching!==!1?(a.disableCaching||e.getDisableCaching()):!1;if(h==='GET'&&j){c=Ext.urlAppend(c,(a.disableCachingParam||e.getDisableCachingParam())+'='+(new Date().getTime()))}if((h==='GET'||d)&&b){c=Ext.urlAppend(c,b);b=null}if(f){c=Ext.urlAppend(c,f)}return {url:c,method:h,data:d||b||null}},setupUrl:function(c,a){var b=this.getForm(c);if(b){a=a||b.action}return a},setupParams:function(c,a){var d=this.getForm(c),b;if(d&&!this.isFormUpload(c)){b=Ext.Element.serializeForm(d);a=a?(a+'&'+b):b}return a},setupMethod:function(a,b){if(this.isFormUpload(a)){return 'POST'}return b},isLoading:function(a){if(!a){a=this.getLatest()}return a?a.isLoading():!1},abort:function(a){if(!a){a=this.getLatest()}if(a&&a.isLoading()){a.abort()}},abortAll:function(){var a=this.requests,b;for(b in a){this.abort(a[b])}},getLatest:function(){var b=this.latestId,a;if(b){a=this.requests[b]}return a||null},clearTimeout:function(a){if(!a){a=this.getLatest()}if(a){a.clearTimer()}},onRequestComplete:function(a){delete this.requests[a.id]},nativeBinaryPostSupport:function(){return Ext.isChrome||(Ext.isSafari&&Ext.isDefined(window.Uint8Array))||(Ext.isGecko&&Ext.isDefined(window.Uint8Array))}});Ext.define('Ext.Ajax',{extend:Ext.data.Connection,singleton:!0,autoAbort:!1});Ext.define('Ext.AnimationQueue',{singleton:!0,constructor:function(){var a=this;a.queue=[];a.taskQueue=[];a.runningQueue=[];a.idleQueue=[];a.isRunning=!1;a.isIdle=!0;a.run=a.run.bind(a);if(Ext.os.is.iOS){a.watchdogTimer=Ext.interval(a.watch,500,a)}},start:function(d,b,c){var a=this;a.queue.push(arguments);if(!a.isRunning){if(a.hasOwnProperty('idleTimer')){Ext.undefer(a.idleTimer);delete a.idleTimer}if(a.hasOwnProperty('idleQueueTimer')){Ext.undefer(a.idleQueueTimer);delete a.idleQueueTimer}a.isIdle=!1;a.isRunning=!0;a.doStart()}},clear:function(){var a=this;Ext.undefer(a.idleTimer);Ext.undefer(a.idleQueueTimer);Ext.unraf(a.animationFrameId);a.idleTimer=a.idleQueueTimer=a.animationFrameId=null;a.queue.length=a.taskQueue.length=a.runningQueue.length=a.idleQueue.length=0;a.isRunning=!1;a.isIdle=!0},watch:function(){if(this.isRunning&&Ext.now()-this.lastRunTime>=500){this.run()}},run:function(){var a=this,c=a.runningQueue,f,d,e,b,g;a.animationFrameId=null;if(!a.isRunning){return}f=Ext.now();a.lastRunTime=f;a.frameStartTime=f;b=a.queue.length;while(b--){d=a.queue[b];e=d[1]&&d[1].getElement&&d[1].getElement();if(e&&e.destroyed){a.queue.splice(b,1)}}c.push.apply(c,a.queue);for(b=0,g=c.length;b<g;b++){a.invoke(c[b])}c.length=0;if(!a.queue.length){a.stop()}if(a.isRunning){a.doIterate()}},doStart:function(){if(!this.animationFrameId){this.animationFrameId=Ext.raf(this.run)}this.lastRunTime=Ext.now()},doIterate:function(){if(!this.animationFrameId){this.animationFrameId=Ext.raf(this.run)}},doStop:function(){if(this.animationFrameId){Ext.unraf(this.animationFrameId)}this.animationFrameId=null},stop:function(h,f,g){var a=this,d=a.queue,e=d.length,b,c;if(!a.isRunning){return}for(b=0;b<e;b++){c=d[b];if(c[0]===h&&c[1]===f&&c[2]===g){d.splice(b,1);b--;e--}}if(e===0){a.doStop();a.isRunning=!1;if(a.idleQueue.length&&!a.idleTimer){a.idleTimer=Ext.defer(a.whenIdle,100,a)}}},onIdle:function(h,f,g){var a=this,d=a.idleQueue,c,e,b;for(c=0,e=d.length;c<e;c++){b=d[c];if(h===b[0]&&f===b[1]&&g===b[2]){return}}d.push(arguments);if(a.isIdle){a.processIdleQueue()}else if(!a.idleTimer){a.idleTimer=Ext.defer(a.whenIdle,100,a)}},unIdle:function(h,f,g){var a=this,b=a.idleQueue,c,e,d;for(c=0,e=b.length;c<e;c++){d=b[c];if(h===d[0]&&f===d[1]&&g===d[2]){b.splice(c,1);return !0}}if(!b.length&&a.idleTimer){Ext.undefer(a.idleTimer);delete a.idleTimer}if(!b.length&&a.idleQueueTimer){Ext.undefer(a.idleQueueTimer);delete a.idleQueueTimer}return !1},queueTask:function(c,a,b){this.taskQueue.push(arguments);this.processTaskQueue()},dequeueTask:function(g,e,f){var c=this.taskQueue,a,d,b;for(a=0,d=c.length;a<d;a++){b=c[a];if(g===b[0]&&e===b[1]&&f===b[2]){c.splice(a,1);a--;d--}}},invoke:function(b){var a=b[0],c=b[1],d=b[2];a=(typeof a==='string'?c[a]:a);if(Ext.isArray(d)){a.apply(c,d)}else {a.call(c,d)}},whenIdle:function(){delete this.idleTimer;this.isIdle=!0;this.processIdleQueue()},processIdleQueue:function(){if(!this.hasOwnProperty('idleQueueTimer')){this.idleQueueTimer=Ext.defer(this.processIdleQueueItem,1,this)}},processIdleQueueItem:function(){var a=this.idleQueue,b;delete this.idleQueueTimer;if(!this.isIdle){return}if(a.length>0){b=a.shift();this.invoke(b);this.processIdleQueue()}},processTaskQueue:function(){if(!this.hasOwnProperty('taskQueueTimer')){this.taskQueueTimer=Ext.defer(this.processTaskQueueItem,15,this)}},processTaskQueueItem:function(){var a=this.taskQueue,b;delete this.taskQueueTimer;if(a.length>0){b=a.shift();this.invoke(b);this.processTaskQueue()}}});Ext.define('Ext.mixin.Bufferable',function(a){return {extend:Ext.Mixin,mixinConfig:{id:'bufferable',after:{destroy:'cancelAllCalls'},before:{$reap:'cancelAllCalls'},extended:function(e,d,c){var b=c.bufferableMethods;if(b){delete c.bufferableMethods;a.processClass(d,b)}}},afterClassMixedIn:function(b){a.processClass(b)},privates:{cancelAllCalls:function(){var b=this.bufferables,c;if(b){for(c in b){b[c].cancel();delete b[c]}}},cancelBufferedCall:function(e,d){var c=this.bufferables,b=c&&c[e];if(b){b[d?'invoke':'cancel']()}return !!b},flushBufferedCall:function(b){return this.cancelBufferedCall(b,!0)},initBufferables:function(){var b=this,c=b.hasOwnProperty('bufferableMethods')&&b.bufferableMethods,d;if(c){a._canonicalize(c);d=b.self.prototype.bufferableMethods;b.bufferableMethods=Ext.merge(Ext.clone(d),c)}return (b.bufferables={})},isCallPending:function(d){var b=this.bufferables,c=b&&b[d];return !!c},statics:{SINGLE:{single:!0},_canonicalize:function(f){var d,b,e,c;for(c in f){e=Ext.String.capitalize(c);b=f[c];d=typeof b;if(d==='number'||d==='string'){f[c]=b={delay:b}}if(typeof (d=b.delay)==='string'){b[d]=!0;delete b.delay}b.capitalized=e;b.name=c;if(!b.fn){b.fn='do'+e}if(!b.flag){b.flag='is'+e+'Pending'}}},_canceller:function(){var b=this,c=b.id;if(c){if(b.delay){Ext.undefer(c)}else if(b.asap){Ext.unasap(c)}else if(b.idle){Ext.un('idle',c,null,a.SINGLE)}else if(b.raf){Ext.unraf(c)}b.id=null}b.args=null;b.target[b.flag]=!1},_invoker:function(){var b=this,d=b.args||Ext.emptyArray,c=b.target;b.cancel();c[b.fn].apply(c,d)},delayCall:function(d,c,i){if(d.destroying){return}var f=d.bufferables||d.initBufferables(),h=c.name,b=f[h]||(f[h]=Ext.apply({args:null,cancel:a._canceller,id:null,target:d,invoke:a._invoker},c)),g=c.delay,e=function(){if(b.id){b.id=null;b.invoke()}};if(b.id){b.cancel()}b.args=i;d[b.flag]=!0;if(g){b.id=Ext.defer(e,g)}else if(c.asap){b.id=Ext.asap(e)}else if(c.idle){b.id=e;Ext.on('idle',e,null,a.SINGLE)}else if(c.raf){b.id=Ext.raf(e)}else {b.invoke()}},processClass:function(g,b){var d=g.prototype,c=d.bufferableMethods,f,e;if(b){a._canonicalize(b);if(c){c=Ext.merge(Ext.clone(c),b)}d.bufferableMethods=c||b}else {b=c;a._canonicalize(b);d.bufferables=null}if(b){for(e in b){if(!d[e]){f=b[e];a.processMethod(d,f,Array.prototype.slice)}}}},processMethod:function(b,d,f){var c=d.name,e=d.capitalized;b[c]=function(){return a.delayCall(this,d,f.call(arguments))};b['cancel'+e]=function(){return this.cancelBufferedCall(c)};b['flush'+e]=function(){return this.flushBufferedCall(c)}}}}}});Ext.define('Ext.ComponentManager',{alternateClassName:'Ext.ComponentMgr',singleton:!0,mixins:[Ext.mixin.Bufferable],count:0,fixReferencesTimer:null,referenceRepairs:0,typeName:'xtype',bufferableMethods:{handleDocumentMouseDown:'asap'},constructor:function(b){var a=this;Ext.apply(a,b);a.all={};a.byInstanceId={};a.holders={};a.onAvailableCallbacks={}},create:function(a,b){if(typeof a==='string'){return Ext.widget(a)}if(a.isComponent){return a}if('xclass' in a){return Ext.create(a.xclass,a)}return Ext.widget(a.xtype||b,a)},get:function(a){return this.all[a]},register:function(a){var b=this,d=a.getId(),c=b.onAvailableCallbacks;b.all[d]=a;b.byInstanceId[a.$iid]=a;if(a.nameHolder||a.referenceHolder){b.holders[d]=a}++b.count;if(!b.hasFocusListener){b.installFocusListener()}c=c&&c[d];if(c&&c.length){b.notifyAvailable(a)}},unregister:function(e){var b=this,f=b.all,d=b.byInstanceId,c=b.holders,a=e.getId();if(a in c){c[a]=null;delete c[a]}f[a]=null;delete f[a];a=e.$iid;d[a]=null;delete d[a];--b.count},markReferencesDirty:function(){var b=this,c=b.holders,a,d;if(!Ext.referencesDirty){for(d in c){a=c[d];a.refs=a.nameRefs=null;if(a.invalidateChildDirty){a.invalidateChildDirty()}}Ext.referencesDirty=!0;b.fixReferencesTimer=Ext.asap(function(){b.fixReferencesTimer=null;b.fixReferences()})}},fixReferences:function(){var c=this,e=c.all,d=c.holders,a,b;if(Ext.referencesDirty){c.fixReferencesTimer=Ext.unasap(c.fixReferencesTimer);Ext.referencesDirty=0;++c.referenceRepairs;for(b in d){a=d[b];if(a.beginSyncChildDirty){a.beginSyncChildDirty()}}for(b in e){e[b]._fixReference()}for(b in d){a=d[b];if(a.finishSyncChildDirty){a.finishSyncChildDirty()}}Ext.referencesDirty=!1}},onAvailable:function(a,f,d){var g=this,b=g.onAvailableCallbacks,e=g.all,c;if(a in e){c=e[a];f.call(d||c,c)}else if(a){if(!Ext.isArray(b[a])){b[a]=[]}b[a].push(function(b){f.call(d||b,b)})}},notifyAvailable:function(a){var b=this.onAvailableCallbacks[a&&a.getId()]||[];while(b.length){(b.shift())(a)}},each:function(b,a){Ext.Object.each(this.all,b,a)},getCount:function(){return this.count},getAll:function(){return Ext.Object.getValues(this.all)},getActiveComponent:function(){return Ext.Component.from(Ext.dom.Element.getActiveElement())},onGlobalFocus:function(g){var h=this,d=g.event.chain(),e=Ext.applyIf({event:d},g),c,b,f,a;c=d.toComponent=e.toComponent=Ext.Component.from(g.toElement);b=d.fromComponent=e.fromComponent=Ext.Component.from(g.fromElement);f=h.getCommonAncestor(b,c);if(c!==b){if(b&&!b.destroyed&&!b.isDestructing()){if(b.handleBlurEvent){b.handleBlurEvent(e)}for(a=b;a&&a!==f;a=a.getRefOwner()){if(!(a.destroyed||a.destroying)){d.type='focusleave';a.onFocusLeave(d)}}}if(c&&!c.destroyed&&!c.isDestructing()){if(c.handleFocusEvent){c.handleFocusEvent(e)}for(a=c;a&&a!==f;a=a.getRefOwner()){d.type='focusenter';a.onFocusEnter(d)}}}for(a=f;a;a=a.getRefOwner()){if(!(a.destroying||a.destroyed)){a.onFocusMove(e)}}},getCommonAncestor:function(a,b){if(a===b){return a}while(a&&!(a.isAncestor(b)||a===b)){a=a.getRefOwner()}return a},privates:{doHandleDocumentMouseDown:function(c){var b=Ext.Widget.prototype.floatedSelector,a;if(b){a=Ext.Component.from(c.getTarget(b,Ext.getBody()));if(a){a.toFront(!0)}}},installFocusListener:function(){var a=this;Ext.on('focus',a.onGlobalFocus,a);a.hasFocusListener=!0},clearAll:function(){var a=this;a.all={};a.byInstanceId={};a.holders={};a.onAvailableCallbacks={}},from:function(b,c,f){var i=this.all,h=0,a,g,e,d;if(b&&b.isEvent){b=b.target}a=Ext.getDom(b);if(typeof c!=='number'){g=Ext.getDom(c);c=Number.MAX_VALUE}while(a&&a.nodeType===1&&h<c&&a!==g){e=a.getAttribute('data-componentid')||a.id;if(e){d=i[e];if(d&&(!f||Ext.ComponentQuery.is(d,f))){return d}h++}a=a.parentNode}return null}}},function(a){a.fromElement=a.from;Ext.referencesDirty=!1;Ext.fixReferences=function(){a.fixReferences()};Ext.markReferencesDirty=function(){a.markReferencesDirty()};Ext.getCmp=function(b){return a.get(b)};Ext.iidToCmp=function(b){return a.byInstanceId[b]||null};Ext.doEv=function(f,d){var b,c,e;b=Ext.Component.from(d.target);if(b&&!b.destroying&&!b.destroyed&&b.getEventHandlers){c=b.getEventHandlers()[d.type];if(c&&b[c]){e=new Ext.event.Event(d);return b[c](e)}}return !0}});Ext.ns('Ext.util').Operators={"=":function(a,b){return a==b},"!=":function(a,b){return a!=b},"^=":function(a,b){return a&&a.substr(0,b.length)==b},"$=":function(a,b){return a&&a.substr(a.length-b.length)==b},"*=":function(a,b){return a&&a.indexOf(b)!==-1},"%=":function(a,b){return (a%b)===0},"|=":function(a,b){return a&&(a==b||a.substr(0,b.length+1)==b+'-')},"~=":function(a,b){return a&&(' '+a+' ').indexOf(' '+b+' ')!=-1}};Ext.define('Ext.util.LruCache',{extend:Ext.util.HashMap,config:{maxSize:null},add:function(d,e){var a=this,b,c;a.removeAtKey(d);c=a.last;b={prev:c,next:null,key:d,value:e};if(c){c.next=b}else {a.first=b}a.last=b;a.callParent([d,b]);a.prune();return e},insertBefore:function(f,d,a){var c=this,e,b;if(a=this.map[this.findKey(a)]){e=c.findKey(d);if(e){c.unlinkEntry(b=c.map[e])}else {b={prev:a.prev,next:a,key:f,value:d}}if(a.prev){b.prev.next=b}else {c.first=b}b.next=a;a.prev=b;c.prune();return d}else {return c.add(f,d)}},get:function(b){var a=this.map[b];if(a){if(a.next){this.moveToEnd(a)}return a.value}},removeAtKey:function(a){this.unlinkEntry(this.map[a]);return this.callParent(arguments)},clear:function(a){this.first=this.last=null;return this.callParent([a])},unlinkEntry:function(a){if(a){if(a.next){a.next.prev=a.prev}else {this.last=a.prev}if(a.prev){a.prev.next=a.next}else {this.first=a.next}a.prev=a.next=null}},moveToEnd:function(a){this.unlinkEntry(a);if(a.prev=this.last){this.last.next=a}else {this.first=a}this.last=a},getArray:function(c){var b=[],a=this.first;while(a){b.push(c?a.key:a.value);a=a.next}return b},each:function(f,c,d){var b=this,a=d?b.last:b.first,e=b.length;c=c||b;while(a){if(f.call(c,a.key,a.value,e)===!1){break}a=d?a.prev:a.next}return b},findKey:function(c){var a,b=this.map;for(a in b){if(b.hasOwnProperty(a)&&b[a].value===c){return a}}return undefined},clone:function(){var a=new this.self(this.initialConfig),c=this.map,b;a.suspendEvents();for(b in c){if(c.hasOwnProperty(b)){a.add(b,c[b].value)}}a.resumeEvents();return a},prune:function(){var a=this,c=a.getMaxSize(),b=c?(a.length-c):0;if(b>0){for(;a.first&&b;b--){a.removeAtKey(a.first.key)}}}});Ext.define('Ext.ComponentQuery',{singleton:!0},function(){var a=this,h=Ext.util.Operators,r=/(\d*)n\+?(\d*)/,q=/\D/,d=/^(\s)+/,c=/\\(.)/g,j=new Ext.util.LruCache({maxSize:100}),m=['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(''),b=function(b,a){return a.method.apply(this,[b].concat(a.args))},g=function(d,g){var b=[],c=0,e=d.length,a,f=g!=='>';for(;c<e;c++){a=d[c];if(a.getRefItems){b=b.concat(a.getRefItems(f))}}return b},e=function(d){var c=[],b=0,e=d.length,a;for(;b<e;b++){a=d[b];while(!!(a=a.getRefOwner())){c.push(a)}}return c},i=function(b,e,f){if(e==='*'){return b.slice()}else {var d=[],c=0,g=b.length,a;for(;c<g;c++){a=b[c];if(!a.destroyed&&a.isXType(e,f)){d.push(a)}}return d}},l=function(n,c,f,d){var e=[],o=n.length,j,l,b,a,k,g,i,m;if(c.charAt(0)==='@'){j=!0;c=c.substr(1)}if(c.charAt(0)==='?'){j=!0;l=!0;c=c.substr(1)}for(g=0;g<o;g++){b=n[g];k=b.self&&b.self.getConfigurator&&b.self.$config.configs[c];if(k){a=b[k.names.get]()}else if(j&&!b.hasOwnProperty(c)){continue}else {a=b[c]}if(l){e.push(b)}else if(f==='~='){if(a){if(!Ext.isArray(a)){a=a.split(' ')}for(i=0,m=a.length;i<m;i++){if(h[f](Ext.coerce(a[i],d),d)){e.push(b);break}}}}else if(f==='/='){if(a!=null&&d.test(a)){e.push(b)}}else if(!d?!!a:h[f](Ext.coerce(a,d),d)){e.push(b)}}return e},f=function(e,h,f){var c=[],b=0,g=e.length,a,d;for(;b<g;b++){a=e[b];d=f?a.id:a.getItemId();if(d===h){c.push(a)}}return c},n=function(b,d,c){return a.pseudos[d](b,c)},p=/^(\s?([>\^])\s?|\s|$)/,o=/^(#)?((?:\\\.|[\w\-])+|\*)(?:\((true|false)\))?/,k=[{re:/^\.((?:\\\.|[\w\-])+)(?:\((true|false)\))?/,method:i,argTransform:function(a){if(a[1]!==undefined){a[1]=a[1].replace(c,'$1')}return a.slice(1)}},{re:/^(?:\[((?:[@?$])?[\w\-]*)\s*(?:([\^$*~%!\/]?=)\s*(['"])?((?:\\\]|.)*?)\3)?(?!\\)\])/,method:l,argTransform:function(b){var g=b[0],f=b[1],e=b[2],a=b[4],d;if(a!==undefined){a=a.replace(c,'$1')}if(e==='/='){d=j.get(a);if(d){a=d}else {a=j.add(a,new RegExp(a))}}return [f,e,a]}},{re:/^#((?:\\\.|[\w\-])+)/,method:f},{re:/^\:([\w\-]+)(?:\(((?:\{[^\}]+\})|(?:(?!\{)[^\s>\/]*?(?!\})))\))?/,method:n,argTransform:function(a){if(a[2]!==undefined){a[2]=a[2].replace(c,'$1')}return a.slice(1)}},{re:/^(?:\{([^\}]+)\})/,method:m}];a.Query=Ext.extend(Object,{constructor:function(a){a=a||{};Ext.apply(this,a)},execute:function(f){var c=this.operations,b=[],e,a,d;for(a=0,d=c.length;a<d;a++){e=c[a];b=b.concat(this._execute(f,e))}return b},_execute:function(c,h){var f=0,i=h.length,d,a;if(!c){a=Ext.ComponentManager.getAll()}else if(Ext.isIterable(c)){a=c}else if(c.isMixedCollection){a=c.items}for(;f<i;f++){d=h[f];if(d.mode==='^'){a=e(a||[c])}else if(d.mode){a=g(a||[c],d.mode)}else {a=b(a||g([c]),d)}if(f===i-1){return a}}return []},is:function(f,g){var c=this.operations,b=!1,d=c.length,e,a;if(d===0){return !0}for(a=0;a<d;a++){e=c[a];b=this._is(f,g,e);if(b){return b}}return !1},_is:function(o,n,m){var l=m.length,a=[o],i,d,h,c,j,k;for(d=l-1;d>=0;--d){i=m[d];c=i.mode;if(c){if(c==='^'){a=g(a,' ')}else if(c==='>'){j=[];for(h=0,l=a.length;h<l;++h){k=a[h].getRefOwner();if(k){j.push(k)}}a=j}else {a=e(a)}}else {a=b(a,i)}if(a.length===0){return !1}}if(n){if(!c){a=e(a)}if(a.length>0){a=b(a,{method:f,args:[n.id,!0]})}if(a.length===0){return !1}}return !0},getMatches:function(a,d){var e=d.length,c;for(c=0;c<e;++c){a=b(a,d[c]);if(a.length===0){break}}return a},isMultiMatch:function(){return this.operations.length>1}});Ext.apply(a,{cache:new Ext.util.LruCache({maxSize:100}),pseudos:{not:function(d,f){var c=0,g=d.length,e=[],h=-1,b;for(;c<g;++c){b=d[c];if(!a.is(b,f)){e[++h]=b}}return e},first:function(a){var b=[];if(a.length>0){b.push(a[0])}return b},last:function(a){var b=a.length,c=[];if(b>0){c.push(a[b-1])}return c},focusable:function(d){var e=d.length,c=[],b=0,a;for(;b<e;b++){a=d[b];if(a.isFocusable&&a.isFocusable()){c.push(a)}}return c},canfocus:function(d,e){var f=d.length,c=[],b=0,a;for(;b<f;b++){a=d[b];if(a.canFocus&&a.canFocus(!1,e)){c.push(a)}}return c},"nth-child":function(i,a){var e=[],g,f,c,b,h,d;g=r.exec(a==="even"&&"2n"||a==="odd"&&"2n+1"||!q.test(a)&&"n+"+a||a);f=(g[1]||1)-0;b=g[2]-0;for(c=0;h=i[c];c++){d=c+1;if(f===1){if(b===0||d===b){e.push(h)}}else if((d+b)%f===0){e.push(h)}}return e},scrollable:function(d){var e=d.length,c=[],b=0,a;for(;b<e;b++){a=d[b];if(a.scrollable||a._scrollable){c.push(a)}}return c},visible:function(e,a){var f=e.length,d=[],c=0,b;a=a==='true';for(;c<f;c++){b=e[c];if(b.isVisible(a)){d.push(b)}}return d}},query:function(c,j){if(!c){return Ext.ComponentManager.getAll()}var b=[],g=[],h={},d=a.cache.get(c),i,e,f;if(!d){d=a.cache.add(c,a.parse(c))}b=d.execute(j);if(d.isMultiMatch()){i=b.length;for(f=0;f<i;f++){e=b[f];if(!h[e.id]){g.push(e);h[e.id]=!0}}b=g}return b},visitPreOrder:function(c,e,f,d,b){a._visit(!0,c,e,f,d,b)},visitPostOrder:function(c,e,f,d,b){a._visit(!1,c,e,f,d,b)},_visit:function(i,c,b,l,k,e){var j=a.cache.get(c),g=[b],h,m=0,d,f;if(!j){j=a.cache.add(c,a.parse(c))}f=j.is(b);if(b.getRefItems){h=b.getRefItems();m=h.length}if(e){Ext.Array.push(g,e)}if(i){if(f){if(l.apply(k||b,g)===!1){return !1}}}for(d=0;d<m;d++){if(a._visit.call(a,i,c,h[d],l,k,e)===!1){return !1}}if(!i){if(f){if(l.apply(k||b,g)===!1){return !1}}}},is:function(d,b,e){var c;if(!b){return !0}if(typeof b==='function'){return b(d)}else {c=a.cache.get(b);if(!c){c=a.cache.add(b,a.parse(b))}return c.is(d,e)}},parse:function(g){var d=[],c,f,b,e;c=Ext.splitAndUnescape(g,',');for(b=0,e=c.length;b<e;b++){f=Ext.String.trim(c[b]);d.push(a._parse(f))}return new a.Query({operations:d})},_parse:function(a){var h=[],v=Ext.String.trim,t=k.length,r,e,n,s,j,b,m,l,g,u,q;while(a&&r!==a){r=a;e=a.match(o);if(e){s=e[1];n=v(e[2]).replace(c,'$1');if(s==='#'){h.push({method:f,args:[n]})}else {h.push({method:i,args:[n,Boolean(e[3])]})}a=a.replace(e[0],'').replace(d,'$1')}while(!(j=a.match(p))){for(l=0;a&&l<t;l++){g=k[l];b=a.match(g.re);u=g.method;m=g.argTransform;if(b){if(m){q=m(b)}else {q=b.slice(1)}h.push({method:Ext.isString(g.method)?Ext.functionFactory('items',Ext.String.format.apply(Ext.String,[u].concat(b.slice(1)))):g.method,args:q});a=a.replace(b[0],'').replace(d,'$1');break}if(l===(t-1)){Ext.raise('Invalid ComponentQuery selector: "'+arguments[0]+'"')}}}if(j[1]){h.push({mode:j[2]||j[1]});a=a.replace(j[0],'').replace(d,'')}}return h}});Ext.all=function(){return a.query.apply(a,arguments)};Ext.first=function(){var b=a.query.apply(a,arguments);return (b&&b[0])||null}});Ext.define('Ext.Evented',{alternateClassName:'Ext.EventedBase',mixins:[Ext.mixin.Observable],initialized:!1,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.initialized=!0},onClassExtended:function(f,b){if(!b.hasOwnProperty('eventedConfig')){return}var e=b.config,a=b.eventedConfig,d,c;if(e){Ext.applyIf(e,a)}else {f.addConfig(a)}for(d in a){if(a.hasOwnProperty(d)){c=Ext.Config.get(d);b[c.names.set]=c.eventedSetter||c.getEventedSetter()}}}});Ext.define('Ext.util.Positionable',{mixinId:'positionable',_positionTopLeft:['position','top','left'],clippedCls:Ext.baseCSSPrefix+'clipped',afterSetPosition:Ext.emptyFn,adjustForConstraints:function(a,c){var b=this.getConstrainVector(c,a);if(b){a[0]+=b[0];a[1]+=b[1]}return a},alignTo:function(e,d,f,b){var a=this,c=a.el;return a.setXY(a.getAlignToXY(e,d,f),c.anim&&!!b?c.anim(b):!1)},calculateAnchorXY:function(c,d,e,b){var a=this.getRegion();a.setPosition(0,0);a.translateBy(d||0,e||0);if(b){a.setWidth(b.width);a.setHeight(b.height)}return a.getAnchorPoint(c)},convertPositionSpec:function(a){return Ext.util.Region.getAlignInfo(a)},getAlignToXY:function(b,c,d){var a=this.getAlignToRegion(b,c,d);return [a.x,a.y]},getAlignToRegion:function(a,c,g,h){var d=this,b,f,e;a=Ext.fly(a.el||a);if(!a||!a.dom){}c=d.convertPositionSpec(c);if(c.constrain){if(c.constrain==='!'){b=a}else {b=d.constrainTo||d.container||d.el.parent()}b=Ext.fly(b.el||b).getConstrainRegion()}if(a===Ext.getBody()){e=a.getScroll();g=[e.left,e.top]}f=d.getRegion().alignTo({target:a.getRegion(),inside:b,minHeight:h,offset:g,align:c,axisLock:!0});return f},getAnchorXY:function(g,h,b){var e=this,a=e.getRegion(),c=e.el,f=c.dom.nodeName==='BODY'||c.dom.nodeType===9,d=c.getScroll();if(h){a.setPosition(0,0)}else if(f){a.setPosition(d.left,d.top)}if(b){a.setWidth(b.width);a.setHeight(b.height)}return a.getAnchorPoint(g)},getBox:function(j,k){var a=this,i=k?a.getLocalXY():a.getXY(),e=i[0],f=i[1],d,c,b,g,h;if(a.el.dom.nodeName==='BODY'||a.el.dom.nodeType===9){d=Ext.Element.getViewportWidth();c=Ext.Element.getViewportHeight()}else {d=a.getWidth();c=a.getHeight()}if(j){b=a.getBorderPadding();g=b.beforeX;h=b.beforeY;e+=g;f+=h;d-=(g+b.afterX);c-=(h+b.afterY)}return {x:e,left:e,0:e,y:f,top:f,1:f,width:d,height:c,right:e+d,bottom:f+c}},calculateConstrainedPosition:function(h,c,j,l){var a=this,e,k=a.floatParent,i=k?k.getTargetEl():null,d,g,b,f=!1;if(j&&k){d=i.getXY();g=i.getBorderPadding();d[0]+=g.beforeX;d[1]+=g.beforeY;if(c){b=[c[0]+d[0],c[1]+d[1]]}}else {b=c}h=h||a.constrainTo||i||a.container||a.el.parent();if(j&&b){b=a.reverseTranslateXY(b)}e=((a.constrainHeader&&a.header.rendered)?a.header:a).getConstrainVector(h,b,l);if(e){f=c||a.getPosition(j);f[0]+=e[0];f[1]+=e[1]}return f},getConstrainRegion:function(){var k=this,a=k.el,j=a.dom.nodeName==='BODY',h=a.dom,g=a.getBorders(),i=a.getXY(),e=i[0]+g.beforeX,f=i[1]+g.beforeY,c,d,b;if(j){c=a.getScroll();e=c.left;f=c.top;d=Ext.Element.getViewportWidth();b=Ext.Element.getViewportHeight()}else {d=h.clientWidth;b=h.clientHeight}return new Ext.util.Region(f,e+d,f+b,e)},getConstrainVector:function(a,h,i){var e=this,b=e.getRegion(),d=[0,0],g=(e.shadow&&e.constrainShadow&&!e.shadowDisabled)?e.el.shadow.getShadowSize():undefined,f=!1,c=e.constraintInsets;if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a);a=a.getConstrainRegion()}if(c){c=Ext.isObject(c)?c:Ext.Element.parseBox(c);a.adjust(c.top,c.right,c.bottom,c.left)}if(h){b.translateBy(h[0]-b.x,h[1]-b.y)}if(i){b.right=b.left+i[0];b.bottom=b.top+i[1]}if(g){a.adjust(g[0],-g[1],-g[2],g[3])}if(b.right>a.right){f=!0;d[0]=(a.right-b.right)}if(b.left+d[0]<a.left){f=!0;d[0]=(a.left-b.left)}if(b.bottom>a.bottom){f=!0;d[1]=(a.bottom-b.bottom)}if(b.top+d[1]<a.top){f=!0;d[1]=(a.top-b.top)}return f?d:!1},getOffsetsTo:function(a){var c=this.getXY(),b=a.isRegion?[a.x,a.y]:Ext.fly(a.el||a).getXY();return [c[0]-b[0],c[1]-b[1]]},getRegion:function(b,c){var a=this.getBox(b,c);return new Ext.util.Region(a.top,a.right,a.bottom,a.left)},getClientRegion:function(){var i=this,d=i.el,f=d.dom,b=i.getBox(!0),e=f.offsetHeight>f.clientHeight,c=f.offsetWidth>f.clientWidth,a,g,h;if(e||c){g=Ext.getScrollbarSize();if(c){c=g.width;h=d.getStyle('direction')==='rtl'&&!Ext.supports.rtlVertScrollbarOnRight;if(h){a=d.getPadding('l');b.left-=a+Math.max(a,c)}else {a=d.getPadding('r');b.right+=a-Math.max(a,c)}}if(e){e=g.height;a=d.getPadding('b');b.bottom+=a-Math.max(a,e)}}return new Ext.util.Region(b.top,b.right,b.bottom,b.left)},getViewRegion:function(){var a=this,i=a.el,j=i.dom.nodeName==='BODY',d,f,h,c,b,g,e;if(j){f=i.getScroll();b=f.left;c=f.top;g=Ext.Element.getViewportWidth();e=Ext.Element.getViewportHeight()}else {d=a.getBorderPadding();h=a.getXY();b=h[0]+d.beforeX;c=h[1]+d.beforeY;g=a.getWidth(!0);e=a.getHeight(!0)}return new Ext.util.Region(c,b+g,c+e,b)},move:function(a,b,l){var j=this,k=j.getXY(),c=k[0],d=k[1],i=[c-b,d],g=[c+b,d],f=[c,d-b],e=[c,d+b],h={l:i,left:i,r:g,right:g,t:f,top:f,up:f,b:e,bottom:e,down:e};a=a.toLowerCase();j.setXY([h[a][0],h[a][1]],l)},setBox:function(a){var b=this,c,d;if(a.isRegion){a={x:a.left,y:a.top,width:a.right-a.left,height:a.bottom-a.top}}b.constrainBox(a);c=a.x;d=a.y;b.setXY([c,d]);b.setSize(a.width,a.height);b.afterSetPosition(c,d);return b},constrainBox:function(a){var c=this,b,d,e;if(c.constrain||c.constrainHeader){d=('x' in a)?a.x:a.left;e=('y' in a)?a.y:a.top;b=c.calculateConstrainedPosition(null,[d,e],!1,[a.width,a.height]);if(b){a.x=b[0];a.y=b[1]}}},translatePoints:function(b,c){var a=this.translateXY(b,c);return {left:a.x,top:a.y}},translateXY:function(a,g){var f=this,e=f.el,d=e.getStyle(f._positionTopLeft),h=d.position==='relative',b=parseFloat(d.left),c=parseFloat(d.top),i=f.getXY();if(Ext.isArray(a)){g=a[1];a=a[0]}if(isNaN(b)){b=h?0:e.dom.offsetLeft}if(isNaN(c)){c=h?0:e.dom.offsetTop}b=(typeof a==='number')?a-i[0]+b:undefined;c=(typeof g==='number')?g-i[1]+c:undefined;return {x:b,y:c}},reverseTranslateXY:function(d){var h=d,b=this.el,i=b.dom,a=i.offsetParent,g,c,e,f;if(a){g=b.isStyle('position','relative');c=Ext.fly(a).getXY();e=d[0]+c[0]+a.clientLeft;f=d[1]+c[1]+a.clientTop;if(g){e+=b.getPadding('l');f+=b.getPadding('t')}h=[e,f]}return h},privates:{clipTo:function(h,g){var f,b=this.el,j=b.getRegion(),e,c,a=[],l=this.clippedCls,d,i,k;if(h.isRegion){f=h}else {f=(h.isComponent?h.el:Ext.fly(h)).getConstrainRegion()}if(!g){g=15}if(g&1&&(e=f.top-j.top)>0){a[0]=e;i=!0}else {a[0]=-10000}if(g&2&&(e=j.right-f.right)>0){a[1]=Math.max(0,b.getWidth()-e);i=!0}else {a[1]=10000}if(g&4&&(e=j.bottom-f.bottom)>0){a[2]=Math.max(0,b.getHeight()-e);i=!0}else {a[2]=10000}if(g&8&&(e=f.left-j.left)>0){a[3]=e;i=!0}else {a[3]=-10000}d='rect(';for(c=0;c<4;++c){d+=Ext.Element.addUnits(a[c],'px');d+=(c===3)?')':','}b.dom.style.clip=d;b.addCls(l);if((k=b.shadow)&&(b=k.el)&&b.dom){a[2]-=k.offsets.y;a[3]-=k.offsets.x;d='rect(';for(c=0;c<4;++c){d+=Ext.Element.addUnits(a[c],'px');d+=(c===3)?')':','}b.dom.style.clip=d;if(i&&!Ext.supports.CSS3BoxShadow){b.dom.style.display='none'}else {b.dom.style.display='';b.addCls(l)}}},clearClip:function(){var a=this.el,b=this.clippedCls;a.dom.style.clip=Ext.isIE8?'auto':'';a.removeCls(b);if(a.shadow&&a.shadow.el&&a.shadow.el.dom){a.shadow.el.dom.style.clip=Ext.isIE8?'auto':'';if(!Ext.supports.CSS3BoxShadow){a.dom.style.display='';a.removeCls(b)}}}}});Ext.define('Ext.dom.UnderlayPool',{constructor:function(a){this.elementConfig=a;this.cache=[]},checkOut:function(){var a=this.cache.shift();if(!a){a=Ext.Element.create(this.elementConfig);a.setVisibilityMode(2)}return a},checkIn:function(a){this.cache.push(a);Ext.getDetachedBody().dom.appendChild(a.dom)},reset:function(){var a=this.cache,b=a.length;while(b--){a[b].destroy()}this.cache=[]}});Ext.define('Ext.dom.Underlay',{constructor:function(a){Ext.apply(this,a)},beforeShow:Ext.emptyFn,getInsertionTarget:function(){return this.target},getPool:function(){return this.pool||(this.self.prototype.pool=new Ext.dom.UnderlayPool(this.elementConfig))},hide:function(){var b=this,a=b.el;if(a){if(a.dom){a.hide();b.getPool().checkIn(a)}b.el=null}b.hidden=!0},realign:function(d,e,c,b){var h=this,g=h.el,f=h.target,a=h.offsets,i=Math.max;if(g){if(d==null){d=f.getX()}if(e==null){e=f.getY()}if(c==null){c=f.getWidth()}if(b==null){b=f.getHeight()}if(a){d=d+a.x;e=e+a.y;c=i(c+a.w,0);b=i(b+a.h,0)}g.setXY([d,e]);g.setSize(c,b)}},setZIndex:function(a){this.zIndex=a;if(this.el){this.el.setStyle("z-index",a)}},show:function(){var a=this,f=a.target,c=a.zIndex,b=a.el,e=a.getInsertionTarget().dom,d;if(!b){b=a.el=a.getPool().checkOut()}a.beforeShow();if(c==null){c=(parseInt(f.getStyle("z-index"),10))}if(c){b.setStyle("z-index",c)}b.setStyle('position',a.fixed?'fixed':'');d=b.dom;if(d.nextSibling!==e){f.dom.parentNode.insertBefore(d,e)}b.show();a.realign();a.hidden=!1}});Ext.define('Ext.dom.Shadow',{extend:Ext.dom.Underlay,alternateClassName:'Ext.Shadow',mode:'drop',offset:4,cls:Ext.baseCSSPrefix+(!Ext.supports.CSS3BoxShadow?'ie':'css')+'-shadow',constructor:function(f){var d=this,e,c,a,b;d.callParent([f]);d.elementConfig={cls:d.cls,role:'presentation'};a=d.offset;b=Math.floor(a/2);d.opacity=50;switch(d.mode.toLowerCase()){case "drop":e={x:0,y:0,w:a,h:a};if(Ext.supports.CSS3BoxShadow){c={x:a,y:a,h:-a,w:-a}}else {c={x:-b,y:-b,h:-b,w:-b}};break;case "sides":e={x:-a,y:0,w:a*2,h:a};if(Ext.supports.CSS3BoxShadow){c={x:0,y:a,h:-a,w:0}}else {c={x:1+b-2*a,y:-(1+b),h:-1,w:b-1}};break;case "frame":e={x:-a,y:-a,w:a*2,h:a*2};if(Ext.supports.CSS3BoxShadow){c={x:0,y:0,h:0,w:0}}else {c={x:1+b-2*a,y:1+b-2*a,h:a-b-1,w:a-b-1}};break;case "bottom":e={x:-a,y:0,w:a*2,h:a};if(Ext.supports.CSS3BoxShadow){c={x:0,y:a,h:-a,w:0}}else {c={x:0,y:a,h:0,w:0}};break;}d.offsets=c;d.outerOffsets=e},getShadowSize:function(){var b=this,a=b.el?b.offset:0,c=[a,a,a,a],d=b.mode.toLowerCase();if(b.el&&d!=='frame'){c[0]=0;if(d==='drop'){c[3]=0}}return c},boxShadowProperty:(function(){var a='boxShadow',b=document.documentElement.style;if(!('boxShadow' in b)){if('WebkitBoxShadow' in b){a='WebkitBoxShadow'}else if('MozBoxShadow' in b){a='MozBoxShadow'}}return a}()),beforeShow:function(){var a=this,b=a.el.dom.style,c=a.shim;if(Ext.supports.CSS3BoxShadow){b[a.boxShadowProperty]='0 0 '+(a.offset+2)+'px #888'}else {b.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+a.opacity+") progid:DXImageTransform.Microsoft.Blur(pixelradius="+(a.offset)+")"}if(c){c.realign()}},setOpacity:function(a){var b=this.el;if(b){if(Ext.isIE&&!Ext.supports.CSS3BoxShadow){a=Math.floor(a*100/2)/100}this.opacity=a;b.setOpacity(a)}}});Ext.define('Ext.dom.Shim',{extend:Ext.dom.Underlay,cls:Ext.baseCSSPrefix+'shim',constructor:function(a){this.callParent([a]);this.elementConfig={tag:'iframe',cls:this.cls,role:'presentation',frameBorder:'0',src:Ext.SSL_SECURE_URL,tabindex:'-1'}},getInsertionTarget:function(){var a=this.shadow;return (a&&a.el)||this.target}});Ext.define('Ext.dom.ElementEvent',{extend:Ext.util.Event,addListener:function(h,f,a,e,d){var b=this,c=!1,g=b.name,j=Ext.event.publisher.Dom.instance.directEvents[g],k,l,i;a=a||{};if(a.delegated===!1||j){if(j&&a.delegate){a.capture=!0}if(a.capture){i=b.directCaptures||(b.directCaptures=new Ext.util.Event(b.observable,g));c=i.addListener(h,f,a,e,d)}else {l=b.directs||(b.directs=new Ext.util.Event(b.observable,g));c=l.addListener(h,f,a,e,d)}}else if(a.capture){k=b.captures||(b.captures=new Ext.util.Event(b.observable,g));c=k.addListener(h,f,a,e,d)}else {c=b.callParent([h,f,a,e,d])}return c},removeListener:function(c,b){var e=this,g=e.captures,h=e.directs,f=e.directCaptures,d=!1,a=e.findListener(c,b);if(a!==-1){d=e.callParent([c,b,a])}else {if(h){a=h.findListener(c,b)}if(a!==-1){d=h.removeListener(c,b,a)}else {if(g){a=g.findListener(c,b)}if(a!==-1){d=g.removeListener(c,b,a)}else if(f){a=f.findListener(c,b);if(a!==-1){d=f.removeListener(c,b,a)}}}}return d},clearListeners:function(){var a=this,b=a.directCaptures,d=a.directs,c=a.captures;if(b){b.clearListeners()}if(d){d.clearListeners()}if(c){c.clearListeners()}a.callParent()},suspend:function(){var a=this,b=a.directCaptures,d=a.directs,c=a.captures;if(b){b.suspend()}if(d){d.suspend()}if(c){c.suspend()}a.callParent()},resume:function(){var a=this,b=a.directCaptures,d=a.directs,c=a.captures;if(b){b.resume()}if(d){d.resume()}if(c){c.resume()}a.callParent()}});Ext.define('Ext.event.publisher.Publisher',{isEventPublisher:!0,$vetoClearingPrototypeOnDestroy:!0,handledEvents:[],statics:{publishers:{},publishersByEvent:{}},constructor:function(){var a=this,b=a.type;a.handles={};a.registerEvents();Ext.event.publisher.Publisher.publishers[b]=a},registerEvents:function(f){var c=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=f||c.handledEvents,g=d.length,b,a;for(a=0;a<g;a++){b=d[a];c.handles[b]=1;e[b]=c}},fire:function(c,b,d){var a;if(c.hasListeners[b]){a=c.events[b];if(a){a.fire.apply(a,d)}}}});Ext.define('Ext.util.Offset',{statics:{fromObject:function(a){if(a instanceof this){return a}if(typeof a==='number'){return new this(a,a)}if(a.length){return new this(a[0],a[1])}return new this(a.x,a.y)}},constructor:function(a,b){this.x=(a!=null&&!isNaN(a))?a:0;this.y=(b!=null&&!isNaN(b))?b:0;return this},copy:function(){return new Ext.util.Offset(this.x,this.y)},copyFrom:function(a){this.x=a.x;this.y=a.y},toString:function(){return "Offset["+this.x+","+this.y+"]"},equals:function(a){return (this.x===a.x&&this.y===a.y)},add:function(a){this.x+=a.x;this.y+=a.y},round:function(b){var a;if(!isNaN(b)){a=Math.pow(10,b);this.x=Math.round(this.x*a)/a;this.y=Math.round(this.y*a)/a}else {this.x=Math.round(this.x);this.y=Math.round(this.y)}},isZero:function(){return this.x===0&&this.y===0}});Ext.define('Ext.util.Region',function(){var a=Ext.util,j=/([^\?!]*)(!|\?)?$/,p=/^(?:(?:([trbl])(\d+))|(tl|t|tc|tr|l|c|r|bl|b|bc|br))(?:-(?:(?:([trbl])(\d+))|(tl|t|tc|tr|l|c|r|bl|b|bc|br)))?$/i,e={l:0,r:100,t:0,b:100,c:50},f={l:100,r:0,t:0,b:100,c:50},d={b:0,l:1,t:2,r:3},o={"tl-tr":"l0-r0","tl-r":"l0-r50","bl-r":"l100-r50","bl-br":"l100-r100","tr-tl":"r0-l0","tr-l":"r0-l50","br-l":"r100-l50","br-bl":"r100-l100"},l={"tl-tr":"r0-l0","tl-r":"r0-l50","bl-r":"r100-l50","bl-br":"r100-l100","tr-tl":"l0-r0","tr-l":"l0-r50","br-l":"l100-r50","br-bl":"l100-r100"},b=[],m=new a.Offset(0,0),k=function(b){var g=a.Region,h=typeof b,f,d,c,e;if(b==null){return g.EMPTY}if(b.isRegion){return b}if(b.isElement||b.nodeType===1){return this.getRegion(b)}if(h==='string'){b=b.split(' ');switch(b.length){case 1:b[1]=b[2]=b[3]=b[0];break;case 2:b[2]=b[0];b[3]=b[1];break;case 3:b[3]=b[1];}f=parseInt(b[0],10)||0;d=parseInt(b[1],10)||0;c=parseInt(b[2],10)||0;e=parseInt(b[3],10)||0}else if(h==='number'){f=d=c=e=b}else if(typeof b.x==='number'){f=b.y;e=b.x;if(typeof b.right==='number'){d=b.right;c=b.bottom}else {d=e+b.width;c=f+b.height}}return new g(f,d,c,e)},n=[-1,1,1,-1],g=function(c,e,d){if(d!=null&&e){b[0]=b[1]=b[2]=b[3]=0;b[d]=e.y*n[d];c=a.Region.from(c);c.adjust.apply(c,b)}return c},c=function(d,b,i,m,l){var h=Math.ceil(m.x),k=Math.ceil(h/2)+3,g,f,c,e,j,n,o;if(l&&!l.intersect(d)){return}if(i!=null){if(i&1){if(b.getHeight()<h+4){return}g=d.top+k-b.height;f=d.bottom-k-1;b.setPosition(b.x,Math.min(Math.max(b.y,g),f));g=b.top+2;f=b.bottom-(h+2);e=i===3;n=e?b.right:b.left;j=new a.Region(Math.max(b.top,d.top),n,Math.min(b.bottom,d.bottom),n);c=new a.Region(0,0,0,0).setWidth(m.y).setHeight(h).alignTo({target:j,align:e?'l-r':'r-l',overlap:!0});c.setPosition(c.x,Math.min(Math.max(c.y,g),f));c.position=e?'right':'left'}else {if(b.getWidth()<h+4){return}g=d.left+k-b.width;f=d.right-k-1;b.setPosition(Math.min(Math.max(b.x,g),f),b.y);g=b.left+2;f=b.right-(h+2);e=i===0;o=e?b.bottom:b.top;j=new a.Region(o,Math.min(b.right,d.right),o,Math.max(b.left,d.left));c=new a.Region(0,0,0,0).setWidth(h).setHeight(m.y).alignTo({target:j,align:e?'t-b':'b-t',overlap:!0});c.setPosition(Math.min(Math.max(c.x,g),f),c.y);c.position=e?'bottom':'top'}if(l&&!l.contains(c)){return}b.anchor=c;b.anchor.align=i}},h=function(c,a,e,b){var d;if(c&&b){if(a.top>=e.bottom&&a.bottom>b.bottom){a.setHeight(Math.max(a.getHeight()+b.bottom-a.bottom,c));a.constrainHeight=!0}else if(a.bottom<=e.top&&a.top<b.top){d=Math.max(a.getHeight()+a.top-b.top,c);a.adjust(a.getHeight()-d);a.constrainHeight=!0}else if(a.getHeight()>b.getHeight()){a.setHeight(Math.max(c,b.getHeight()));a.setPosition(a.x,0);a.constrainHeight=!0}}},i=function(c,a,e,b){var d;if(c&&b){if(a.left>=e.right&&a.right>b.right){a.setWidth(Math.max(a.getWidth()+b.right-a.right,c));a.constrainWidth=!0}else if(a.right<=e.left&&a.left<b.left){d=Math.max(a.getWidth()+a.left-b.left,c);a.adjust(0,0,0,a.getWidth()-d);a.constrainWidth=!0}else if(a.getWidth()>b.getWidth()){a.setWidth(Math.max(c,b.getWidth()));a.setPosition(0,a.y);a.constrainWidth=!0}}};return {isRegion:!0,statics:{getRegion:function(a){return Ext.fly(a).getRegion()},from:function(a){return new this(a.top,a.right,a.bottom,a.left)},getAlignInfo:function(a,i){if(typeof a==='object'){return a}a=a?((a.indexOf('-')<0)?'tl-'+a:a):'tl-bl';g=j.exec(a);a=g[1];a=(i?l:o)[a]||a;var h=i?f:e,g,c=p.exec(a),b;b={myEdge:c[1],myOffset:c[2],otherEdge:c[4],otherOffset:c[5],constrain:g[2]};if(c[3]){b.myEdge=c[3][0];b.myOffset=h[c[3][1]];if(b.myOffset==null){b.myOffset=50}}if(c[6]){b.otherEdge=c[6][0];b.otherOffset=h[c[6][1]];if(b.otherOffset==null){b.otherOffset=50}}b.position=d[b.myEdge];return b}},constructor:function(e,c,b,d){var a=this;a.y=a.top=a[1]=e;a.right=c;a.bottom=b;a.x=a.left=a[0]=d;a.height=a.bottom-a.top;a.width=a.right-a.left},setPosition:function(a,b){if(arguments.length===1){b=a[1];a=a[0]}return this.translateBy(a-this.x,b-this.y)},contains:function(a){var b=this;return (a.x>=b.x&&(a.right||a.x)<=b.right&&a.y>=b.y&&(a.bottom||a.y)<=b.bottom)},intersect:function(a){var b=this,f=Math.max(b.y,a.y),e=Math.min(b.right,a.right),c=Math.min(b.bottom,a.bottom),d=Math.max(b.x,a.x);if(c>f&&e>d){return new this.self(f,e,c,d)}else {return !1}},union:function(a){var b=this,f=Math.min(b.y,a.y),e=Math.max(b.right,a.right),c=Math.max(b.bottom,a.bottom),d=Math.min(b.x,a.x);return new this.self(f,e,c,d)},constrainTo:function(b){var a=this,c=Ext.Number.constrain;a.top=a.y=c(a.top,b.y,b.bottom);a.bottom=c(a.bottom,b.y,b.bottom);a.left=a.x=c(a.left,b.x,b.right);a.right=c(a.right,b.x,b.right);a.height=a.bottom-a.top;a.width=a.right-a.left;return a},adjust:function(e,c,b,d){var a=this;a.top=a.y+=e||0;a.left=a.x+=d||0;a.right+=c||0;a.bottom+=b||0;a.height=a.bottom-a.top;a.width=a.right-a.left;return a},getOutOfBoundOffset:function(d,b){var c;if(!Ext.isObject(d)){if(d==='x'){return this.getOutOfBoundOffsetX(b)}else {return this.getOutOfBoundOffsetY(b)}}else {b=d;c=new a.Offset();c.x=this.getOutOfBoundOffsetX(b.x);c.y=this.getOutOfBoundOffsetY(b.y);return c}},getOutOfBoundOffsetX:function(a){if(a<=this.x){return this.x-a}else if(a>=this.right){return this.right-a}return 0},getOutOfBoundOffsetY:function(a){if(a<=this.y){return this.y-a}else if(a>=this.bottom){return this.bottom-a}return 0},isOutOfBound:function(b,a){if(!Ext.isObject(b)){if(b==='x'){return this.isOutOfBoundX(a)}else {return this.isOutOfBoundY(a)}}else {a=b;return (this.isOutOfBoundX(a.x)||this.isOutOfBoundY(a.y))}},isOutOfBoundX:function(a){return (a<this.x||a>this.right)},isOutOfBoundY:function(a){return (a<this.y||a>this.bottom)},restrict:function(d,a,b){var c;if(Ext.isObject(d)){b=a;a=d;if(a.copy){c=a.copy()}else {c={x:a.x,y:a.y}}c.x=this.restrictX(a.x,b);c.y=this.restrictY(a.y,b);return c}else {if(d==='x'){return this.restrictX(a,b)}else {return this.restrictY(a,b)}}},restrictX:function(a,b){if(!b){b=1}if(a<=this.x){a-=(a-this.x)*b}else if(a>=this.right){a-=(a-this.right)*b}return a},restrictY:function(a,b){if(!b){b=1}if(a<=this.y){a-=(a-this.y)*b}else if(a>=this.bottom){a-=(a-this.bottom)*b}return a},alignTo:function(h){var l=this,r=l.self,x=a.Offset,w=Ext.Element,e=k(h.target),p,o=h.rtl,q=h.overlap,f=h.align,i=h.anchorSize,m=h.offset,d=h.inside,j=h.position,t=h.allowXTranslate,u=h.allowYTranslate,n,b,v,s;if(m){m=x.fromObject(m)}if(i){i=x.fromObject(i)}if(d&&!d.isRegion){if(Ext.getDom(d)===document.body){d=new r(0,w.getDocumentWidth(),w.getDocumentHeight(),0)}else {d=Ext.fly(d).getRegion()}}if(j){if(j.length===2){j=new a.Point(j[0],j[1])}b=new r().copyFrom(l).setPosition(j.x,j.y)}else {f=l.getAlignInfo(f,o);if(d){if(e.x>=d.right){e.setPosition(d.right-1,e.y);if(f.position!==3){f=l.getAlignInfo('r-l',o)}}else if(e.right<d.x){e.setPosition(d.x-e.getWidth()+1,e.y);if(f.position!==1){f=l.getAlignInfo('l-r',o)}}if(e.y>=d.bottom){e.setPosition(e.x,d.bottom-1);if(f.position!==0){f=l.getAlignInfo('b-t',o)}}else if(e.bottom<d.y){e.setPosition(e.x,d.y-e.getHeight()+1);if(f.position!==2){f=l.getAlignInfo('t-b',o)}}}p=i?g(e,i,f.position):e;b=r.from(l).translateBy(l.getAlignToVector(p,f));q=!!b.intersect(p);if(m&&(q||!i)){b.translateBy(m)}if(i){c(e,b,f.position,i,d)}}if(d){v=b.copy();if(b.left<d.left){b.translateBy(d.left-b.left,0);n=!0}if(b.right>d.right&&b.left>d.left){b.translateBy(d.right-b.right,0);n=!0}if(b.top<d.top){b.translateBy(0,d.top-b.top);n=!0}if(b.bottom>d.bottom&&b.top>d.top){b.translateBy(0,d.bottom-b.bottom);n=!0}if(n&&!q){b.anchor=null;if(h.axisLock){if(f.position&1){u=!1}else {t=!1}}if(j){if(b.contains(j)){j.exclude(b,{inside:d,centerOnSideChange:!1})}}else {s=b.copy();if(b.intersect(p)){f.position=e.exclude(b,{initialPosition:v,defaultPosition:f.position,inside:d,minHeight:h.minHeight,minWidth:h.minWidth,allowX:t,allowY:u,offset:m,anchorHeight:i?i.y:0,centerOnSideChange:!!i})}else if(h.minWidth&&b.getWidth()>d.getWidth()){b.setPosition(0,b.y);b.setWidth(Math.max(d.getWidth(),h.minWidth));b.constrainWidth=!0}else if(h.minHeight&&b.getHeight()>d.getHeight()){b.setPosition(b.x,0);b.setHeight(Math.max(d.getHeight(),h.minHeight));b.constrainHeight=!0}b.align=f;if(d.contains(b)){if(i){c(e,b,f.position,i,d)}}else {b=s}}}}return b},exclude:function(d,e){e=e||{};var j=this,s=e.initialPosition||d,n=e.inside,r=e.defaultPosition,u=e.centerOnSideChange,v=e.minHeight,w=e.minWidth,x=e.allowX!==!1,y=e.allowY!==!1,k=e.anchorHeight,g=e.offset,l=[],c,b,t,f,q,p,o;if(!g){g=m}if(y){l.push([0,j.top-d.bottom-k+g.y,'b-t',0,Math.abs(j.top-s.bottom-k+g.y)]);l.push([0,j.bottom-d.top+k+g.y,'t-b',2,Math.abs(j.bottom-s.top+k+g.y)])}else {u=!1}if(x){l.push([j.left-d.right-k+g.x,0,'r-l',3,Math.abs(j.left-s.right-k+g.x)]);l.push([j.right-d.left+k+g.x,0,'l-r',1,Math.abs(j.right-s.left+k+g.x)])}else {u=!1}Ext.Array.sort(l,function(b,c){var a=b[4]-c[4];if(!a){if(b[3]===r){return -1}if(c[3]===r){return 1}}return a});if(n){for(t=0;t<l.length;t++){b=l[t];c=a.Region.from(d);c.translateBy.apply(c,b);if(n.contains(c)){d.copyFrom(c);o={align:b[2],position:b[3],distance:b[4]};break}if(v){h(v,c,j,n);if(n.contains(c)){if(!f||c.getArea()>f.region.getArea()){f={region:c,align:b[2],position:b[3],distance:b[4]}}}}if(w){i(w,c,j,n);if(n.contains(c)){if(!f||c.getArea()>f.region.getArea()){f={region:c,align:b[2],position:b[3],distance:b[4]}}}}p=n.intersect(c);if(p){p=p.getArea();if(!q||(p&&q.area<p)){q={region:c,align:b[2],position:b[3],distance:b[4],area:p}}}}if(!o){if(f){d.copyFrom(f.region);o=f;d.constrainWidth=f.region.constrainWidth;d.constrainHeight=f.region.constrainHeight}else if(q){d.copyFrom(q.region);o=q}}if(o){if((o.position&1)!==(r&1)){if(o.distance&&u){b=d.alignTo({align:o.align,target:j,anchorSize:k,offset:g,axisLock:!0,inside:n,minHeight:e.minHeight,minWidth:e.minWidth});if(n.contains(b)){d.setPosition(b.x,b.y)}}}return o.position}}else {d.translateBy.apply(d,l[0]);return l[0][3]}return r},getAlignToXY:function(b,c,d){var a=this.getAlignToVector(b,c,d);return [this.x+a[0],this.y+a[1]]},getAnchorPoint:function(a,b){a=(typeof a==='string')?this.getAlignInfo(a+'-tl',b):a;return this['getAnchorPoint_'+a.myEdge](a.myOffset)},getAlignToVector:function(d,a,e){a=(typeof a==='string')?this.getAlignInfo(a,e):a;var c=this['getAnchorPoint_'+a.myEdge](a.myOffset),b=d['getAnchorPoint_'+a.otherEdge](a.otherOffset);return [b[0]-c[0],b[1]-c[1]]},getAnchorPoint_t:function(a){return [this.x+Math.round(this.getWidth()*(a/100)),this.y]},getAnchorPoint_b:function(a){return [this.x+Math.round(this.getWidth()*(a/100)),this.bottom]},getAnchorPoint_l:function(a){return [this.x,this.y+Math.round(this.getHeight()*(a/100))]},getAnchorPoint_r:function(a){return [this.right,this.y+Math.round(this.getHeight()*(a/100))]},getAnchorPoint_c:function(){return [this.x+Math.round(this.getWidth()/2),this.y+Math.round(this.getHeight()/2)]},getCenter:function(){return [this.x+this.width/2,this.y+this.height/2]},getHeight:function(){return this.bottom-this.y},getWidth:function(){return this.right-this.x},getArea:function(){return this.getHeight()*this.getWidth()},setHeight:function(a){this.height=a;this.bottom=this.top+a;return this},setWidth:function(a){this.width=a;this.right=this.left+a;return this},getSize:function(){return {width:this.right-this.x,height:this.bottom-this.y}},setSize:function(b,a){if(a===undefined){a=b}this.setWidth(b);return this.setHeight(a)},copy:function(){return new this.self(this.y,this.right,this.bottom,this.x)},copyFrom:function(b){var a=this;a.top=a.y=a[1]=b.y;a.right=b.right;a.bottom=b.bottom;a.left=a.x=a[0]=b.x;return a},toString:function(){return "Region["+this.top+","+this.right+","+this.bottom+","+this.left+"]"},translateBy:function(a,c){var b=this;if(a.length){c=a[1];a=a[0]}else if(arguments.length===1){c=a.y;a=a.x}b.top=b.y+=c;b.right+=a;b.bottom+=c;b.left=b.x+=a;return b},round:function(){var a=this;a.top=a.y=Math.round(a.y);a.right=Math.round(a.right);a.bottom=Math.round(a.bottom);a.left=a.x=Math.round(a.x);return a},equals:function(a){return (this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left)},getOffsetsTo:function(a){return {x:this.x-a.x,y:this.y-a.y}}}},function(a){a.prototype.getAlignInfo=a.getAlignInfo;a.EMPTY=new a(0,0,0,0)});Ext.define('Ext.util.Point',{extend:Ext.util.Region,isPoint:!0,radianToDegreeConstant:180/Math.PI,origin:{x:0,y:0},statics:{fromEvent:function(b){var a=b.changedTouches,c=(a&&a.length>0)?a[0]:b;return this.fromTouch(c)},fromTouch:function(a){return new this(a.pageX,a.pageY)},from:function(a){if(!a){return new this(0,0)}if(!(a instanceof this)){return new this(a.x,a.y)}return a}},constructor:function(a,b){if(a==null){a=0}if(b==null){b=0}this.callParent([b,a,b,a])},clone:function(){return new this.self(this.x,this.y)},copy:function(){return this.clone.apply(this,arguments)},copyFrom:function(a){this.x=a.x;this.y=a.y;return this},toString:function(){return "Point["+this.x+","+this.y+"]"},equals:function(a){return (this.x===a.x&&this.y===a.y)},isCloseTo:function(b,a){if(typeof a==='number'){return this.getDistanceTo(b)<=a}var e=b.x,f=b.y,c=a.x,d=a.y;return (this.x<=e+c&&this.x>=e-c&&this.y<=f+d&&this.y>=f-d)},isWithin:function(){return this.isCloseTo.apply(this,arguments)},isContainedBy:function(a){if(!(a instanceof Ext.util.Region)){a=Ext.get(a.el||a).getRegion()}return a.contains(this)},roundedEquals:function(a){if(!a||typeof a!=='object'){a=this.origin}return (Math.round(this.x)===Math.round(a.x)&&Math.round(this.y)===Math.round(a.y))},getDistanceTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.sqrt(b*b+c*c)},getAngleTo:function(a){if(!a||typeof a!=='object'){a=this.origin}var b=this.x-a.x,c=this.y-a.y;return Math.atan2(c,b)*this.radianToDegreeConstant}},function(){this.prototype.translate=this.prototype.translateBy});Ext.define('Ext.event.Event',{alternateClassName:'Ext.EventObjectImpl',stopped:!1,claimed:!1,defaultPrevented:!1,isEvent:!0,geckoRelatedTargetEvents:{blur:1,dragenter:1,dragleave:1,focus:1},statics:{resolveTextNode:function(a){return (a&&a.nodeType===3)?a.parentNode:a},gestureEvents:{},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,focusin:1,focusenter:1},blurEvents:{blur:1,focusout:1,focusleave:1},wheelEvents:{wheel:1,mousewheel:1},pointerTypeMap:{2:'touch',3:'pen',4:'mouse',touch:'touch',pen:'pen',mouse:'mouse'},keyEventRe:/^key/,keyFlags:{CTRL:'ctrlKey',CONTROL:'ctrlKey',ALT:'altKey',SHIFT:'shiftKey',CMD:'metaKey',COMMAND:'metaKey',CMDORCTRL:Ext.isMac?'metaKey':'ctrlKey',COMMANDORCONTROL:Ext.isMac?'metaKey':'ctrlKey',META:'metaKey'},modifierGlyphs:{ctrlKey:'⌃',altKey:'⌥',metaKey:Ext.isMac?'⌘':'⊞',shiftKey:'⇧'},specialKeyGlyphs:{BACKSPACE:'⌫',TAB:'⇥',ENTER:'⏎',RETURN:'⏎',SPACE:'␣',PAGE_UP:'⇞',PAGE_DOWN:'⇟',END:'⇲',HOME:'⌂',LEFT:'←',UP:'↑',RIGHT:'→',DOWN:'↓',PRINT_SCREEN:'⎙',INSERT:'⎀',DELETE:'⌦',CONTEXT_MENU:'☰'},_hyphenRe:/^[a-z]+\-/i,getKeyId:function(b){if(typeof b==='number'){b=this.keyCodes[b]}else {b=b.toUpperCase()}var c=this,e=c._hyphenRe.test(b)?'-':'+',f=(b===e)?[e]:b.split(e),g=f.length-1,i=f[g],a=[],h,d;for(d=0;d<g;d++){h=c.keyFlags[f[d]];a[h]=!0}if(a.ctrlKey){a.push(c.modifierGlyphs.ctrlKey)}if(a.altKey){a.push(c.modifierGlyphs.altKey)}if(a.shiftKey){a.push(c.modifierGlyphs.shiftKey)}if(a.metaKey){a.push(c.modifierGlyphs.metaKey)}a.push(this.specialKeyGlyphs[i]||i);return a.join('')},globalTabKeyDown:function(a){if(a.keyCode===9){Ext.event.Event.forwardTab=!a.shiftKey}},globalTabKeyUp:function(a){if(a.keyCode===9){delete Ext.event.Event.forwardTab}}},constructor:function(b){var a=this,c=a.self,g=a.self.resolveTextNode,i=b.changedTouches,f=i?i[0]:b,d=b.type,e,h;a.timeStamp=a.time=Ext.ticks();a.pageX=f.pageX;a.pageY=f.pageY;a.clientX=f.clientX;a.clientY=f.clientY;a.target=a.delegatedTarget=g(b.target);a.currentTarget=g(b.currentTarget);h=b.relatedTarget;if(h){if(Ext.isGecko&&a.geckoRelatedTargetEvents[d]){try{a.relatedTarget=g(h)}catch(j){a.relatedTarget=null}}else {a.relatedTarget=g(h)}}a.browserEvent=a.event=b;a.type=d;a.button=b.button||0;a.shiftKey=b.shiftKey;a.ctrlKey=b.ctrlKey||b.metaKey||!1;a.altKey=b.altKey;a.charCode=b.charCode;a.keyCode=b.keyCode;a.buttons=b.buttons;if(a.button===0&&a.buttons===0){a.buttons=1}if(c.focusEvents[d]||c.blurEvents[d]){if(c.forwardTab!==undefined){a.forwardTab=c.forwardTab}if(c.focusEvents[d]){a.fromElement=b.relatedTarget;a.toElement=b.target}else {a.fromElement=b.target;a.toElement=b.relatedTarget}}else if(d!=='keydown'){delete c.forwardTab}if(c.mouseEvents[d]){e='mouse'}else if(c.clickEvents[d]){e=c.pointerTypeMap[b.pointerType]||(((Ext.now()-Ext.event.publisher.Dom.lastTouchEndTime)<1000)?'touch':'mouse')}else if(c.pointerEvents[d]){e=c.pointerTypeMap[b.pointerType]||'mouse'}else if(c.touchEvents[d]){e='touch'}if(e){a.pointerType=e}a.isMultitouch=b.isPrimary===!1||(b.touches&&b.touches.length>1);if(c.wheelEvents[d]){a.getWheelDeltas()}},chain:function(b){var a=Ext.Object.chain(this);a.parentEvent=this;return Ext.apply(a,b)},correctWheelDelta:function(b){var c=this,d=c.browserEvent.deltaMode,a=b;if(d===0){a=b*c.WHEEL_PIXEL_SIZE}else if(d===1){a=b*c.WHEEL_LINE_SIZE}else if(d===2){a=b*c.WHEEL_PAGE_SIZE}return Math.round(a)},getChar:function(){var a=this.which();return String.fromCharCode(a)},getCharCode:function(){return this.charCode||this.keyCode},getKey:function(){return this.keyCode||this.charCode},getKeyName:function(){return this.type==='keypress'?String.fromCharCode(this.getCharCode()):this.keyCodes[this.keyCode]},key:function(){return this.browserEvent.key},which:function(){var c=this,b=c.browserEvent,a=b.which;if(a==null){if(c.self.keyEventRe.test(b.type)){a=b.charCode||b.keyCode}else if((a=b.button)!==undefined){a=(a&1)?1:((a&4)?2:((a&2)?3:0))}}return a},getClipboardData:function(a){var b=this.browserEvent.clipboardData,c=Ext.global.clipboardData,d=null,e;a=a||'text/plain';if(b&&b.getData){d=b.getData(a)}else if(c&&c.getData){e=this.ieMimeType[a];if(e){d=c.getData(e)}}return d},getPoint:function(){var b=this,a=b.point,c;if(!a){c=b.getXY();a=b.point=new Ext.util.Point(c[0],c[1])}return a},getRelatedTarget:function(d,e,c){var a=this.relatedTarget,b=null;if(a&&a.nodeType){if(d){b=Ext.fly(a).findParent(d,e,c)}else {b=c?Ext.get(a):a}}return b},getTarget:function(b,c,a){return b?Ext.fly(this.target).findParent(b,c,a):(a?Ext.get(this.target):this.target)},getTime:function(){return this.time},getWheelDelta:function(){var a=this.getWheelDeltas();return a.y},getWheelDeltas:function(){var a=this,d=a.wheelDeltas,c,e,b;if(!d){c=a.browserEvent;e=a.correctWheelDelta(c.deltaX||0);b=c.deltaY;b=a.correctWheelDelta(b==null?-c.wheelDelta:b);a.deltaX=e;a.deltaY=b;a.wheelDeltas=d={x:e,y:b}}return d},getX:function(){return this.getXY()[0]},getXY:function(){var d=this,c=d.xy;if(!c){c=d.xy=[d.pageX,d.pageY];var g=c[0],e,f,a,b;if(!g&&g!==0){e=d.browserEvent;f=document;a=f.documentElement;b=f.body;c[0]=e.clientX+(a&&a.scrollLeft||b&&b.scrollLeft||0)-(a&&a.clientLeft||b&&b.clientLeft||0);c[1]=e.clientY+(a&&a.scrollTop||b&&b.scrollTop||0)-(a&&a.clientTop||b&&b.clientTop||0)}}return c},getLocalXY:function(f){var e=this.getXY(),d=Ext.fly(this.currentTarget).getXY(),a=e[0]-d[0],b=e[1]-d[1],c;if(f){c=Ext.fly(this.currentTarget).getSize();a=Math.max(0,Math.min(a,c.width));b=Math.max(0,Math.min(b,c.height))}return [a,b]},getY:function(){return this.getXY()[1]},hasModifier:function(){var a=this;return !!(a.ctrlKey||a.altKey||a.shiftKey||a.metaKey)},isNavKeyPress:function(c){var a=this,b=a.keyCode,d=a.type==='keypress';return ((!d||Ext.isGecko)&&b>=33&&b<=40)||(!c&&(b===a.RETURN||b===a.TAB||b===a.ESC))},isSpecialKey:function(){var b=this,a=b.keyCode,d=Ext.isGecko,c=b.type==='keypress';return (d&&c&&b.charCode===0)||(this.isNavKeyPress())||(a===b.BACKSPACE)||(a===b.ENTER)||(a>=16&&a<=20)||((!c||d)&&a>=44&&a<=46)},makeUnpreventable:function(){this.browserEvent.preventDefault=Ext.emptyFn},preventDefault:function(){var a=this,b=a.parentEvent;a.defaultPrevented=!0;if(b){b.defaultPrevented=!0}a.browserEvent.preventDefault();return a},setCurrentTarget:function(a){this.currentTarget=this.delegatedTarget=a},stopEvent:function(){return this.preventDefault().stopPropagation()},mousedownEvents:{mousedown:1,pointerdown:1,touchstart:1},mouseupEvents:{mouseup:1,pointerup:1,touchend:1},stopPropagation:function(){var a=this,b=a.browserEvent,c=a.parentEvent;if(a.mousedownEvents[a.type]){Ext.GlobalEvents.fireMouseDown(a)}if(a.mouseupEvents[a.type]){Ext.GlobalEvents.fireMouseUp(a)}a.stopped=!0;if(c&&!a.isGesture){c.stopped=!0}if(!b.stopPropagation){b.cancelBubble=!0;return a}b.stopPropagation();return a},claimGesture:function(){var a=this,b=a.parentEvent;a.claimed=!0;if(b&&!a.isGesture){b.claimGesture()}else {a.preventDefault()}return a},within:function(b,d,c){var a;if(b){a=d?this.getRelatedTarget():this.getTarget()}if(!a||(c===!1&&a===Ext.getDom(b))){return !1}return Ext.fly(b).contains(a)},privates:{ieMimeType:{"text/plain":'Text'}},deprecated:{'4.0':{methods:{getPageX:'getX',getPageY:'getY'}}}},function(b){var d={BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,RETURN:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,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_PIXEL_SIZE:1,WHEEL_LINE_SIZE:20,WHEEL_PAGE_SIZE:600},h={},f=b.gestureEvents,c=b.prototype,a,g,i,e;Ext.apply(f,b.mouseEvents);Ext.apply(f,b.pointerEvents);Ext.apply(f,b.touchEvents);Ext.apply(b,d);Ext.apply(c,d);delete d.RETURN;for(g in d){i=d[g];h[i]=g}b.keyCodes=c.keyCodes=h;if(!Ext.isIE9m){document.addEventListener('keydown',b.globalTabKeyDown,!0);document.addEventListener('keyup',b.globalTabKeyUp,!0)}c.getTrueXY=c.getXY;if(typeof KeyboardEvent!=='undefined'&&!('key' in KeyboardEvent.prototype)){c._keys=e={3:'Cancel',6:'Help',8:'Backspace',9:'Tab',12:'Clear',13:'Enter',16:'Shift',17:'Control',18:'Alt',19:'Pause',20:'CapsLock',27:'Escape',28:'Convert',29:'NonConvert',30:'Accept',31:'ModeChange',32:' ',33:'PageUp',34:'PageDown',35:'End',36:'Home',37:'ArrowLeft',38:'ArrowUp',39:'ArrowRight',40:'ArrowDown',41:'Select',42:'Print',43:'Execute',44:'PrintScreen',45:'Insert',46:'Delete',48:['0',')'],49:['1','!'],50:['2','@'],51:['3','#'],52:['4','$'],53:['5','%'],54:['6','^'],55:['7','&'],56:['8','*'],57:['9','('],91:'OS',93:'ContextMenu',144:'NumLock',145:'ScrollLock',181:'VolumeMute',182:'VolumeDown',183:'VolumeUp',186:[';',':'],187:['=','+'],188:[',','<'],189:['-','_'],190:['.','>'],191:['/','?'],192:['`','~'],219:['[','{'],220:['\\','|'],221:[']','}'],222:["'",'"'],224:'Meta',225:'AltGraph',246:'Attn',247:'CrSel',248:'ExSel',249:'EraseEof',250:'Play',251:'ZoomOut'};for(a=1;a<25;++a){e[a+111]='F'+a}for(a=0;a<26;++a){e[a]=[String.fromCharCode(a+97),String.fromCharCode(a+65)]}c.key=function(){var a=e[this.browserEvent.which||this.keyCode];if(a&&typeof a!=='string'){a=a[+this.shiftKey]}return a}}});Ext.define('Ext.event.publisher.Dom',{extend:Ext.event.publisher.Publisher,type:'dom',handledDomEvents:[],reEnterCount:0,captureEvents:{animationstart:1,animationend:1,resize:1,focus:1,blur:1},directEvents:{mouseenter:1,mouseleave:1,pointerenter:1,pointerleave:1,MSPointerEnter:1,MSPointerLeave:1,load:1,unload:1,beforeunload:1,error:1,DOMContentLoaded:1,DOMFrameContentLoaded:1,hashchange:1,scroll:1,online:1,offline:1},blockedPointerEvents:{pointerover:1,pointerout:1,pointerenter:1,pointerleave:1,MSPointerOver:1,MSPointerOut:1,MSPointerEnter:1,MSPointerLeave:1},blockedCompatibilityMouseEvents:{mouseenter:1,mouseleave:1},constructor:function(){var a=this,b=Ext.supports.PassiveEventListener;a.listenerOptions=b?{passive:!1}:!1;a.captureOptions=b?{passive:!1,capture:!0}:!0;a.bubbleSubscribers={};a.captureSubscribers={};a.directSubscribers={};a.directCaptureSubscribers={};a.delegatedListeners={};a.initHandlers();Ext.onInternalReady(a.onReady,a);a.callParent();a.registerDomEvents()},registerDomEvents:function(){var c=this,e=Ext.event.publisher.Publisher.publishersByEvent,d=c.handledDomEvents,f=d.length,a,b;for(a=0;a<f;a++){b=d[a];c.handles[b]=1;e[b]=c}},onReady:function(){var a=this,c=a.handledDomEvents,d,b;if(c){for(b=0,d=c.length;b<d;b++){a.addDelegatedListener(c[b])}}Ext.getWin().on('unload',a.destroy,a,{priority:-10000})},initHandlers:function(){var a=this;a.onDelegatedEvent=Ext.bind(a.onDelegatedEvent,a);a.onDirectEvent=Ext.bind(a.onDirectEvent,a);a.onDirectCaptureEvent=Ext.bind(a.onDirectCaptureEvent,a)},addDelegatedListener:function(b){var a=this;a.delegatedListeners[b]=1;a.target.addEventListener(b,a.onDelegatedEvent,a.captureEvents[b]?a.captureOptions:a.listenerOptions)},removeDelegatedListener:function(b){var a=this;delete a.delegatedListeners[b];a.target.removeEventListener(b,a.onDelegatedEvent,a.captureEvents[b]?a.captureOptions:a.listenerOptions)},addDirectListener:function(c,d,b){var a=this;d.dom.addEventListener(c,b?a.onDirectCaptureEvent:a.onDirectEvent,b?a.captureOptions:a.listenerOptions)},removeDirectListener:function(c,d,b){var a=this;d.dom.removeEventListener(c,b?a.onDirectCaptureEvent:a.onDirectEvent,b?a.captureOptions:a.listenerOptions)},subscribe:function(f,b,g,e){var c=this,a,d;if(g&&!c.directEvents[b]){a=e?c.captureSubscribers:c.bubbleSubscribers;if(!c.handles[b]&&!c.delegatedListeners[b]){c.addDelegatedListener(b)}if(a[b]){++a[b]}else {a[b]=1}}else {a=e?c.directCaptureSubscribers:c.directSubscribers;d=f.id;a=a[b]||(a[b]={});if(a[d]){++a[d]}else {a[d]=1;c.addDirectListener(b,f,e)}}},unsubscribe:function(h,b,i,g){var c=this,e,f,a,d;if(i&&!c.directEvents[b]){e=c.captureSubscribers;f=c.bubbleSubscribers;a=g?e:f;if(a[b]){--a[b]}if(!c.handles[b]&&!f[b]&&!e[b]){this.removeDelegatedListener(b)}}else {a=g?c.directCaptureSubscribers:c.directSubscribers;d=h.id;a=a[b];if(a[d]){--a[d]}if(!a[d]){delete a[d];c.removeDirectListener(b,h,g)}}},getPropagatingTargets:function(d){var a=d,c=[],b;while(a){c.push(a);b=a.parentNode;if(!b){b=a.defaultView}a=b}return c},publish:function(a,i,h){var f=this,j=!1,k=!1,c,m,l,e,d,n,b,g;h=h||!1;if(!i){l=a.target;if(f.captureEvents[a.type]){e=Ext.cache[l.id];i=e?[e]:[]}else {i=f.getPropagatingTargets(l)}}c=Ext.Array.from(a);n=i.length;g=c.length;for(d=0;d<g;d++){m=c[d].type;if(!j&&f.captureSubscribers[m]){j=!0}if(!k&&f.bubbleSubscribers[m]){k=!0}}if(j){for(d=n;d--;){e=Ext.cache[i[d].id];if(e){for(b=0;b<g;b++){a=c[b];f.fire(e,a.type,a,!1,!0);if(!h&&a.claimed){h=!0;b=f.filterClaimed(c,a);g=c.length}if(a.stopped){c.splice(b,1);b--;g--}}}}}if(k&&!a.stopped){for(d=0;d<n;d++){e=Ext.cache[i[d].id];if(e){for(b=0;b<g;b++){a=c[b];f.fire(e,a.type,a,!1,!1);if(!h&&a.claimed&&f.filterClaimed){h=!0;b=f.filterClaimed(c,a);g=c.length}if(a.stopped){c.splice(b,1);b--;g--}}}}}},publishDelegatedDomEvent:function(a){this.publish(a)},fire:function(b,d,c,f,e){var a;if(b.hasListeners[d]){a=b.events[d];if(a){if(e&&f){a=a.directCaptures}else if(e){a=a.captures}else if(f){a=a.directs}if(a){c.setCurrentTarget(b.dom);a.fire(c,c.target)}}}},onDelegatedEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDelegatedEvent,this,[a])}else {this.doDelegatedEvent(a)}},doDelegatedEvent:function(b){var a=this,c;b=new Ext.event.Event(b);c=b.time;if(!a.isEventBlocked(b)){a.beforeEvent(b);Ext.frameStartTime=c;a.reEnterCountAdjusted=!1;a.reEnterCount++;a.publishDelegatedDomEvent(b);if(!a.reEnterCountAdjusted){a.reEnterCount--}a.afterEvent(b)}},onDirectEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[a,!1])}else {this.doDirectEvent(a,!1)}},onDirectCaptureEvent:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doDirectEvent,this,[a,!0])}else {this.doDirectEvent(a,!0)}},doDirectEvent:function(a,f){var b=this,e=a.currentTarget,d,c;a=new Ext.event.Event(a);d=a.time;if(b.isEventBlocked(a)){return}b.beforeEvent(a);Ext.frameStartTime=d;c=Ext.cache[e.id];if(c){b.reEnterCountAdjusted=!1;b.reEnterCount++;b.fire(c,a.type,a,!0,f);if(!b.reEnterCountAdjusted){b.reEnterCount--}}b.afterEvent(a)},beforeEvent:function(e){var c=e.browserEvent,d=Ext.event.publisher.Dom,a,b;if(c.type==='touchstart'){a=c.touches;if(a.length===1){b=a[0];d.lastTouchStartX=b.pageX;d.lastTouchStartY=b.pageY}}},afterEvent:function(b){var e=b.browserEvent,a=e.type,c=Ext.event.publisher.Dom,d=Ext.GlobalEvents;if(b.self.pointerEvents[a]&&b.pointerType!=='mouse'){c.lastScreenPointerEventTime=Ext.now()}if(a==='touchend'){c.lastTouchEndTime=Ext.now()}if(!this.reEnterCount&&!d.idleEventMask[a]){Ext.fireIdle()}},isEventBlocked:function(a){var d=this,c=a.type,b=Ext.event.publisher.Dom,e=Ext.now();if(Ext.isGecko&&a.type==='click'&&a.button===2){return !0}return (d.blockedPointerEvents[c]&&a.pointerType!=='mouse')||(d.blockedCompatibilityMouseEvents[c]&&(e-b.lastScreenPointerEventTime<1000))||(Ext.supports.TouchEvents&&a.self.mouseEvents[a.type]&&Math.abs(a.pageX-b.lastTouchStartX)<15&&Math.abs(a.pageY-b.lastTouchStartY)<15&&(Ext.now()-b.lastTouchEndTime)<1000)},destroy:function(){var b=Ext.dom['GarbageCollector'],a;for(a in this.delegatedListeners){this.removeDelegatedListener(a)}Ext.Reaper.flush();if(b){b.collect()}this.callParent()},reset:function(){var a=Ext.event.publisher.Dom;this.reEnterCount=0;a.lastScreenPointerEventTime=a.lastTouchEndTime=a.lastTouchStartX=a.lastTouchStartY=undefined}},function(b){var d=document,a=d.defaultView,c=b.prototype;if((Ext.os.is.iOS&&window.self!==window.top)||Ext.browser.is.AndroidStock||!(a&&a.addEventListener)){c.target=d}else {c.target=a}b.instance=new b()});Ext.define('Ext.event.publisher.Gesture',{extend:Ext.event.publisher.Dom,type:'gesture',isCancelEvent:{touchcancel:1,pointercancel:1,MSPointerCancel:1},isEndEvent:{mouseup:1,touchend:1,pointerup:1,MSPointerUp:1},handledEvents:[],handledDomEvents:[],constructor:function(h){var a=this,c=a.handledDomEvents,g=Ext.supports,f=g.TouchEvents,d=a.onTouchStart,e=a.onTouchMove,b=a.onTouchEnd;a.handlers={touchstart:d,touchmove:e,touchend:b,touchcancel:b,pointerdown:d,pointermove:e,pointerup:b,pointercancel:b,MSPointerDown:d,MSPointerMove:e,MSPointerUp:b,MSPointerCancel:b,mousedown:d,mousemove:e,mouseup:b};a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.recognizers=[];a.eventToRecognizer={};a.cancelEvents=[];if(f){a.onTargetTouchMove=a.onTargetTouchMove.bind(a);a.onTargetTouchEnd=a.onTargetTouchEnd.bind(a)}if(g.PointerEvents){c.push('pointerdown','pointermove','pointerup','pointercancel');a.mousePointerType='mouse'}else if(g.MSPointerEvents){c.push('MSPointerDown','MSPointerMove','MSPointerUp','MSPointerCancel');a.mousePointerType=4}else if(f){c.push('touchstart','touchmove','touchend','touchcancel')}if(!c.length||(f&&Ext.os.is.Desktop)){c.push('mousedown','mousemove','mouseup')}a.initConfig(h);return a.callParent()},onReady:function(){this.callParent();Ext.Array.sort(this.recognizers,function(c,d){var a=c.priority,b=d.priority;return (a>b)?1:(a<b)?-1:0})},registerRecognizer:function(b){var a=this,d=b.handledEvents,f=d.length,e,c;b.setOnRecognized(a.onRecognized);b.setCallbackScope(a);for(c=0;c<f;c++){e=d[c];a.handledEvents.push(e);a.eventToRecognizer[e]=b}a.registerEvents(d);a.recognizers.push(b)},onRecognized:function(n,o,b,a,p){var c=this,h=b.touches,d=b.changedTouches,k=d.length,i=c.events,l=!i.length,m=c.cancelEvents,f,g,e,j;a=a||{};a.type=o;a.target=d[0].target;a.stopped=!1;a.claimed=!1;a.isGesture=!0;b=b.chain(a);if(!c.gestureTargets){if(k>1){f=[];for(e=0;e<k;e++){j=d[e];f.push(j.targets)}g=c.getCommonTargets(f)}else {g=d[0].targets}c.gestureTargets=g}if(p&&n.isSingleTouch&&(h.length>1)){b.target=h[0].target;m.push(b)}else {i.push(b)}if(l){c.publishGestures()}},getCommonTargets:function(e){var d=e[0],h=e.length,a=[],g=1,b,f,c;if(h===1){return d}while(!0){b=d[d.length-g];if(!b){return a}for(c=1;c<h;c++){f=e[c];if(f[f.length-g]!==b){return a}}a.unshift(b);g++}return a},invokeRecognizers:function(d,f){var c=this.recognizers,e=c.length,a,b;if(d==='onStart'){for(a=0;a<e;a++){c[a].isActive=!0}}for(a=0;a<e;a++){b=c[a];if(b.isActive&&b[d].call(b,f)===!1){b.isActive=!1}}},filterClaimed:function(c,j){var i=this,g=i.eventToRecognizer,h=j.type,d=g[h],b,e,f,a;for(a=c.length;a--;){f=c[a].type;if(f===h){b=a}else {e=g[f];if(!d||(e&&(e!==d))){c.splice(a,1);if(b){b--}}}}i.claimRecognizer(d,c[0]);return b},claimRecognizer:function(f,g){var c=this,d=c.recognizers,b,e,a;for(b=0,e=d.length;b<e;b++){a=d[b];if(a!==f){a.isActive=!1;a.cancel(g)}}if(c.events.length){c.publishGestures(!0)}},publishGestures:function(e){var a=this,b=a.cancelEvents,c=a.events,d=a.gestureTargets;if(b.length){a.cancelEvents=[];a.publish(b,a.getPropagatingTargets(b[0].target),!0)}if(c.length){a.events=[];a.gestureTargets=null;a.publish(c,d||a.getPropagatingTargets(c[0].target),e)}},updateTouches:function(e){var d=this,m=e.browserEvent,o=e.type,n=m.changedTouches||[m],h=d.activeTouches,g=d.activeTouchesMap,l=[],b,c,a,i,f,p,j,k;for(f=0,p=n.length;f<p;f++){b=n[f];if('identifier' in b){c=b.identifier}else if('pointerId' in b){c=b.pointerId}else {c=1}a=g[c];if(!a){i=Ext.event.Event.resolveTextNode(b.target);a=g[c]={identifier:c,target:i,targets:d.getPropagatingTargets(i)};h.push(a)}if(d.isEndEvent[o]||d.isCancelEvent[o]){delete g[c];Ext.Array.remove(h,a)}j=Math.round(b.pageX);k=Math.round(b.pageY);a.pageX=j;a.pageY=k;a.point=new Ext.util.Point(j,k);l.push(a)}e.touches=Ext.Array.clone(h);e.changedTouches=l},publishDelegatedDomEvent:function(a){var b=this;if(!a.button||a.button<1){b.events=[a];a.browserEvent.$extHandled=!0;b.handlers[a.type].call(b,a)}else {b.callParent([a])}},onTouchStart:function(b){var a=this,d=b.target,c=b.browserEvent.touches;if(b.browserEvent.type==='touchstart'){d.addEventListener('touchmove',a.onTargetTouchMove);d.addEventListener('touchend',a.onTargetTouchEnd);d.addEventListener('touchcancel',a.onTargetTouchEnd)}if(c&&c.length<=a.activeTouches.length){a.removeGhostTouches(c)}a.updateTouches(b);if(!a.isStarted){if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.pause()}a.isStarted=!0;a.invokeRecognizers('onStart',b)}a.invokeRecognizers('onTouchStart',b);a.publishGestures()},onTouchMove:function(a){var b=this,c=b.mousePointerType,d=b.isStarted;if(d||(a.pointerType!=='mouse')){b.updateTouches(a)}if(d){if(c&&a.browserEvent.pointerType===c&&a.buttons===0){a.type=Ext.dom.Element.prototype.eventMap.touchend;a.button=0;b.onTouchEnd(a);return}if(a.changedTouches.length>0){b.invokeRecognizers('onTouchMove',a)}}b.publishGestures()},onTouchEnd:function(b){var a=this,d=a.isStarted,c;if(d||(b.pointerType!=='mouse')){a.updateTouches(b)}if(!d){a.publishGestures();return}c=a.activeTouches.length;try{a.invokeRecognizers(a.isCancelEvent[b.type]?'onTouchCancel':'onTouchEnd',b)}finally{try{if(!c){a.isStarted=!1;a.invokeRecognizers('onEnd',b)}}finally{try{a.publishGestures()}finally{if(!c){if(Ext.enableGarbageCollector){Ext.dom.GarbageCollector.resume()}}a.reEnterCountAdjusted=!0;a.reEnterCount--}}}},onTargetTouchMove:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchMove,this,[a])}else {this.doTargetTouchMove(a)}},doTargetTouchMove:function(b){var a=this;if(!Ext.getBody().contains(b.target)){a.reEnterCountAdjusted=!1;a.reEnterCount++;this.onTouchMove(new Ext.event.Event(b));if(!a.reEnterCountAdjusted){a.reEnterCount--}}},onTargetTouchEnd:function(a){if(Ext.elevateFunction){Ext.elevateFunction(this.doTargetTouchEnd,this,[a])}else {this.doTargetTouchEnd(a)}},doTargetTouchEnd:function(c){var a=this,b=c.target;b.removeEventListener('touchmove',a.onTargetTouchMove);b.removeEventListener('touchend',a.onTargetTouchEnd);b.removeEventListener('touchcancel',a.onTargetTouchEnd);if(!Ext.getBody().contains(b)){a.reEnterCountAdjusted=!1;a.reEnterCount++;a.onTouchEnd(new Ext.event.Event(c));if(!a.reEnterCountAdjusted){a.reEnterCount--}}},reset:function(){var a=this,d=a.recognizers,e=d.length,b,c;a.activeTouchesMap={};a.activeTouches=[];a.changedTouches=[];a.isStarted=!1;a.gestureTargets=null;a.events=[];a.cancelEvents=[];for(b=0;b<e;b++){c=d[b];c.reset();c.isActive=!1}this.callParent()},privates:{removeGhostTouches:function(c){var f={},g=c.length,b=this.activeTouches,h=this.activeTouchesMap,a,e,d;for(a=0;a<g;++a){f[c[a].identifier]=!0}a=b.length;while(a--){d=b[a];e=d.identifier;if(!c[e]){Ext.Array.remove(b,d);delete h[e]}}}}},function(a){var c=Event.prototype,b=c.stopPropagation;if(b){c.stopPropagation=function(){var d=this,c=a.instance,f=d.type,e;if(!d.$extHandled&&c.handles[f]){e=new Ext.event.Event(d);c.updateTouches(e);c.invokeRecognizers('onTouchCancel',e);c.reset();c.reEnterCountAdjusted=!0}b.apply(d,arguments)}}a.instance=Ext.$gesturePublisher=new a()});Ext.define('Ext.mixin.Templatable',{extend:Ext.Mixin,mixinConfig:{id:'templatable'},referenceAttributeName:'reference',referenceSelector:'[reference]',getElementConfig:function(){return {reference:'element'}},getElementTemplate:function(){var a=document.createDocumentFragment();a.appendChild(Ext.Element.create(this.getElementConfig(),!0));return a},initElement:function(){var a=this.self.prototype;a.elementTemplate=this.getElementTemplate();a.initElement=a.doInitElement;this.initElement.apply(this,arguments)},linkElement:function(a,b){this.link(a,b)},doInitElement:function(){var d=this.referenceAttributeName,e,c,b,g,a,f;e=this.elementTemplate.cloneNode(!0);c=e.querySelectorAll(this.referenceSelector);for(b=0,g=c.length;b<g;b++){a=c[b];f=a.getAttribute(d);a.removeAttribute(d);this.linkElement(f,a)}}});Ext.define('Ext.TaskQueue',{singleton:!0,pending:!1,mode:!0,readQueue:[],writeQueue:[],readRequestId:0,writeRequestId:0,timer:null,constructor:function(){var a=this;a.run=a.run.bind(a);if(Ext.os.is.iOS){a.watchdogTimer=Ext.interval(this.watch,500,this)}},requestRead:function(d,b,c){var a={id:++this.readRequestId,fn:d,scope:b,args:c};this.readQueue.push(a);this.request(!0);return a.id},cancelRead:function(a){this.cancelRequest(this.readQueue,a,!0)},requestWrite:function(e,c,d){var a=this,b={id:++a.writeRequestId,fn:e,scope:c,args:d};a.writeQueue.push(b);a.request(!1);return b.id},cancelWrite:function(a){this.cancelRequest(this.writeQueue,a,!1)},request:function(c,b){var a=this;if(!a.pending){a.pendingTime=Date.now();a.pending=!0;a.mode=c;if(c){a.timer=Ext.defer(a[b]||a.run,1)}else {a.timer=Ext.raf(a[b]||a.run)}}},cancelRequest:function(b,d,c){var a;for(a=0;a<b.length;a++){if(b[a].id===d){b.splice(a,1);break}}if(!b.length&&this.mode===c&&this.timer){Ext.undefer(this.timer)}},watch:function(){if(this.pending&&Date.now()-this.pendingTime>=500){this.run()}},run:function(e,d,m){var b=this,h=null,f,g,i,c,a,k,j,l;e=e||b.readQueue;d=d||b.writeQueue;b.pending=!1;b.pending=b.timer=!1;if(b.mode){f=e;if(d.length>0){h=!1}}else {f=d;if(e.length>0){h=!0}}g=f.slice();f.length=0;for(j=0,l=g.length;j<l;j++){i=g[j];c=i.fn;a=i.scope;k=i.args;if(a&&(a.destroying||a.destroyed)){continue}if(typeof c==='string'){c=a[c]}if(k){c.apply(a,k)}else {c.call(a)}}g.length=0;if(h!==null){b.request(h,m)}},clear:function(){var a=this,b=a.timer;if(b){if(a.mode){Ext.undefer(b)}else {Ext.unraf(b)}}a.readQueue.length=a.writeQueue.length=0;a.pending=a.timer=!1;a.mode=!0}});Ext.define('Ext.util.sizemonitor.Abstract',{mixins:[Ext.mixin.Templatable],config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},width:null,height:null,contentWidth:null,contentHeight:null,constructor:function(b){var a=this;a.refresh=a.refresh.bind(a);a.info={width:0,height:0,contentWidth:0,contentHeight:0,flag:0};a.initElement();a.initConfig(b);a.bindListeners(!0)},bindListeners:Ext.emptyFn,applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){a.append(this.detectorsContainer,!0);a.addCls(Ext.baseCSSPrefix+'size-monitored')},applyArgs:function(a){return a.concat([this.info])},refreshMonitors:Ext.emptyFn,forceRefresh:function(){Ext.TaskQueue.requestRead('refresh',this)},getContentBounds:function(){return this.detectorsContainer.getBoundingClientRect()},getContentWidth:function(){return this.detectorsContainer.clientWidth},getContentHeight:function(){return this.detectorsContainer.clientHeight},refreshSize:function(){var e=this.getElement();if(!e||e.destroyed){return !1}var a=this,j=e.measure(),i=j.width,h=j.height,d=a.getContentWidth(),c=a.getContentHeight(),l=a.contentWidth,k=a.contentHeight,b=a.info,g=!1,f;a.width=i;a.height=h;a.contentWidth=d;a.contentHeight=c;f=((l!==d?1:0)+(k!==c?2:0));if(f>0){b.width=i;b.height=h;b.contentWidth=d;b.contentHeight=c;b.flag=f;g=!0;a.getCallback().apply(a.getScope(),a.getArgs())}return g},refresh:function(){if(this.destroying||this.destroyed){return}this.refreshSize();Ext.TaskQueue.requestWrite('refreshMonitors',this)},destroy:function(){var a=this,b=a.getElement();a.bindListeners(!1);if(b&&!b.destroyed){b.removeCls(Ext.baseCSSPrefix+'size-monitored')}delete a._element;a.refresh=null;a.callParent()}});Ext.define('Ext.util.sizemonitor.Scroll',{extend:Ext.util.sizemonitor.Abstract,getElementConfig:function(){return {reference:'detectorsContainer',classList:[Ext.baseCSSPrefix+'size-monitors','scroll'],children:[{reference:'expandMonitor',className:'expand'},{reference:'shrinkMonitor',className:'shrink'}]}},constructor:function(a){this.onScroll=this.onScroll.bind(this);this.callParent(arguments)},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a]('scroll',this.onScroll,!0);this.shrinkMonitor[a]('scroll',this.onScroll,!0)},onScroll:function(){if(!this.destroyed){Ext.TaskQueue.requestRead('refresh',this)}},refreshMonitors:function(){var a=this.expandMonitor,b=this.shrinkMonitor,c=1000000;if(a&&!a.destroyed){a.scrollLeft=c;a.scrollTop=c}if(b&&!b.destroyed){b.scrollLeft=c;b.scrollTop=c}},destroy:function(){this.onScroll=null;this.callParent()}});Ext.define('Ext.util.SizeMonitor',{constructor:function(a){return new Ext.util.sizemonitor.Scroll(a)}});Ext.define('Ext.event.publisher.ElementSize',{extend:Ext.event.publisher.Publisher,type:'size',handledEvents:['resize'],constructor:function(){this.monitors={};this.subscribers={};this.callParent(arguments)},subscribe:function(b){var a=b.id,c=this.subscribers,d=this.monitors;if(c[a]){++c[a]}else {c[a]=1;d[a]=new Ext.util.SizeMonitor({element:b,callback:this.onElementResize,scope:this,args:[b]})}b.on('painted','forceRefresh',d[a]);return !0},unsubscribe:function(b){var a=b.id,d=this.subscribers,e=this.monitors,c;if(d[a]&&!--d[a]){delete d[a];c=e[a];b.un('painted','forceRefresh',c);c.destroy();delete e[a]}if(b.activeRead){Ext.TaskQueue.cancelRead(b.activeRead)}},fireElementResize:function(a,b){delete a.activeRead;this.fire(a,'resize',[a,b])},onElementResize:function(a,b){if(!a.activeRead){a.activeRead=Ext.TaskQueue.requestRead('fireElementResize',this,[a,b])}}},function(a){a.instance=new a()});Ext.define('Ext.util.paintmonitor.Abstract',{config:{element:null,callback:Ext.emptyFn,scope:null,args:[]},eventName:'',monitorClass:'',constructor:function(a){this.onElementPainted=this.onElementPainted.bind(this);this.initConfig(a)},bindListeners:function(a){this.monitorElement[a?'addEventListener':'removeEventListener'](this.eventName,this.onElementPainted,!0)},applyElement:function(a){if(a){return Ext.get(a)}},updateElement:function(a){this.monitorElement=Ext.Element.create({classList:[Ext.baseCSSPrefix+'paint-monitor',this.monitorClass]},!0);a.appendChild(this.monitorElement,!0);a.addCls(Ext.baseCSSPrefix+'paint-monitored');this.bindListeners(!0)},onElementPainted:function(){},destroy:function(){var a=this,c=a.monitorElement,d=c.parentNode,b=a.getElement();a.bindListeners(!1);delete a.monitorElement;if(b&&!b.destroyed){b.removeCls(Ext.baseCSSPrefix+'paint-monitored');delete a._element}if(d){d.removeChild(c)}a.callParent()}});Ext.define('Ext.util.paintmonitor.CssAnimation',{extend:Ext.util.paintmonitor.Abstract,eventName:Ext.browser.is.WebKit?'webkitAnimationEnd':'animationend',monitorClass:'cssanimation',onElementPainted:function(a){if(a.animationName===Ext.baseCSSPrefix+'paint-monitor-helper'){this.getCallback().apply(this.getScope(),this.getArgs())}}});Ext.define('Ext.util.PaintMonitor',{constructor:function(a){return new Ext.util.paintmonitor.CssAnimation(a)}});Ext.define('Ext.event.publisher.ElementPaint',{extend:Ext.event.publisher.Publisher,type:'paint',handledEvents:['painted'],constructor:function(){this.monitors={};this.subscribers={};this.callParent(arguments)},subscribe:function(d){var b=this,a=d.id,c=b.subscribers;if(c[a]){++c[a]}else {c[a]=1;b.monitors[a]=new Ext.util.PaintMonitor({element:d,callback:b.onElementPainted,scope:b,args:[d]})}},unsubscribe:function(c){var a=c.id,b=this.subscribers,d=this.monitors;if(b[a]&&!--b[a]){delete b[a];d[a].destroy();delete d[a]}if(c.activeRead){Ext.TaskQueue.cancelRead(c.activeRead)}},fireElementPainted:function(a){delete a.activeRead;this.fire(a,'painted',[a])},onElementPainted:function(a){if(!a.activeRead){a.activeRead=Ext.TaskQueue.requestRead('fireElementPainted',this,[a])}}},function(a){a.instance=new a()});Ext.define('Ext.dom.Element',function(a){var j=window,b=document,i=b.documentElement,l=j.top,P=[],m,z,x,Q='width',O='height',aa='min-width',Z='min-height',_='max-width',Y='max-height',ao='top',aj='right',af='bottom',am='left',$='visibility',ag='hidden',M="display",C="none",ai="z-index",y="position",ab="relative",ah="static",ae=/\w/g,q=/\s+/,S=/[\s]+/,W=/^(?:transparent|(?:rgba[(](?:\s*\d+\s*[,]){3}\s*0\s*[)]))$/i,U=/\?$/,al=/top/i,ak={},d={t:'border-top-width',r:'border-right-width',b:'border-bottom-width',l:'border-left-width'},h={t:'padding-top',r:'padding-right',b:'padding-bottom',l:'padding-left'},A={t:'margin-top',r:'margin-right',b:'margin-bottom',l:'margin-left'},L={b:'backward',back:'backward',f:'forward'},X=[h.l,h.r,h.t,h.b],I=[d.l,d.r,d.t,d.b],ac=/\d+$/,B=/\d+(px|r?em|%|vh|vw|vmin|vmax|en|ch|ex|pt|in|cm|mm|pc)$/i,J='px',an=/^-ms-/,ad=/(-[a-z])/gi,R=/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*);?/gi,v=/^\d+(?:\.\d*)?px$/i,V=/(%|r?em|auto|vh|vw|vmin|vmax|ch|ex)$/i,H={},F='originalDisplay',T=function(c,b){return b.charAt(1).toUpperCase()},K=function(d,e){var c,b,f;if(d.nodeType===1){d._extData=null;if(e){c=d.childNodes;for(b=0,f=c.length;b<f;++b){K(c[b],e)}}}},e=function(b){return parseFloat(b)||0},p=Ext.baseCSSPrefix+'hidden-opacity',n=Ext.baseCSSPrefix+'hidden-visibility',k=Ext.baseCSSPrefix+'hidden-display',o=Ext.baseCSSPrefix+'hidden-offsets',r=Ext.baseCSSPrefix+'hidden-clip',G=0,D=0,E=!1,t=!1,w=/text|password|search|tel|url/i,s,c,f,N,g,u;try{m=l.__elementIdCounter__;l.__elementIdCounter__=m}catch(ap){l=j}l.__elementIdCounter__=m=(l.__elementIdCounter__||0)+1;z='ext-window-'+m;x='ext-document-'+m;return {alternateClassName:['Ext.Element'],mixins:[Ext.util.Positionable,Ext.mixin.Observable],observableType:'element',isElement:!0,skipGarbageCollection:!0,$applyConfigs:!0,identifiablePrefix:'ext-element-',_selectDir:L,styleHooks:{transform:{set:function(e,b,f){var d='',c;if(typeof b!=='string'){for(c in b){if(d){d+=' '}if(c.indexOf('translate')===0){d+=c+'('+a.addUnits(b[c],'px')+')'}else {d+=c+'('+b[c]+')'}}b=d}e.style.transform=b}}},validIdRe:Ext.validIdRe,blockedEvents:Ext.supports.EmulatedMouseOver?{mouseover:1}:{},longpressEvents:{longpress:1,taphold:1},constructor:function(d){var c=this,e;if(typeof d==='string'){d=b.getElementById(d)}if(!d){return null}c.dom=d;if(!(e=d.id)){d.id=e=c.generateAutoId()}c.id=e;c.el=c;Ext.cache[e]=c;c.longpressListenerCount=0;c.mixins.observable.constructor.call(c)},inheritableStatics:{cache:Ext.cache={},editableSelector:'input,textarea,[contenteditable="true"]',VISIBILITY:1,DISPLAY:2,OFFSETS:3,CLIP:4,OPACITY:5,minKeyboardHeight:100,unitRe:B,useDelegatedEvents:!0,validNodeTypes:{1:1,9:1},namespaceURIs:{html:'http://www.w3.org/1999/xhtml',svg:'http://www.w3.org/2000/svg'},selectableCls:Ext.baseCSSPrefix+'selectable',unselectableCls:Ext.baseCSSPrefix+'unselectable',maxRippleDiameter:75,addUnits:function(b,c){if(typeof b==='number'){return b+(c||J)}if(b===""||b==="auto"||b==null){return b||''}if(ac.test(b)){return b+(c||J)}if(!B.test(b)){return b||''}return b},create:function(d,l,r){var n=this,e,f,o,i,c,g,h,p,m,j;d=d||{};if(d.isElement){return l?d.dom:d}else if('nodeType' in d){return l?d:Ext.get(d)}if(typeof d==='string'){return b.createTextNode(d)}i=d.tag;if(!i){i='div'}j=d.namespace||r;if(j){f=b.createElementNS(n.namespaceURIs[j]||j,i)}else {f=b.createElement(i)}o=f.style;for(g in d){if(g!=='tag'&&g!=='namespace'){c=d[g];switch(g){case 'style':if(typeof c==='string'){f.setAttribute(g,c)}else {for(h in c){o[h]=c[h]}};break;case 'className':case 'cls':m=c.split(q);e=e?e.concat(m):m;break;case 'classList':e=e?e.concat(c):c;break;case 'text':f.textContent=c;break;case 'html':f.innerHTML=c;break;case 'hidden':if(e){e.push(k)}else {e=[k]};break;case 'children':if(c!=null){for(h=0,p=c.length;h<p;h++){f.appendChild(n.create(c[h],!0,j))}};break;default:if(c!=null){f.setAttribute(g,c)};}}}if(e){f.className=e.join(' ')}if(l){return f}else {return n.get(f)}},fly:function(c,b){return Ext.fly(c,b)},fromPoint:(function(){var c;if(Ext.isIE||Ext.isEdge){try{c=window.self!==window.top}catch(aq){c=!0}}return function(e,f,g){var d=null;d=b.elementFromPoint(e,f);if(!d&&c){d=b.elementFromPoint(e,f)}return g?d:Ext.get(d)}})(),fromPagePoint:function(d,e,c){var b=Ext.getDoc().getScroll();return a.fromPoint(d-b.left,e-b.top,c)},get:function(c){var m=this,g=Ext.cache,f,i,d,e,l,h,k;if(!c){return null}if(c.isFly){c=c.dom}if(typeof c==='string'){d=c;if(g.hasOwnProperty(d)){e=g[d];if(e.skipGarbageCollection||!Ext.isGarbage(e.dom)){return e}else {e.destroy()}}if(d===z){return a.get(j)}else if(d===x){return a.get(b)}i=Ext.getElementById?Ext.getElementById(d):b.getElementById(d);if(i){return new a(i)}}f=c.nodeType;if(f){l=(f===9);k=m.validNodeTypes[f]}else {h=(c.window==c)}if(k||h){d=c.id;if(c===b){c.id=d=x}else if(c==j){c.id=d=z}if(g.hasOwnProperty(d)){e=g[d];if(e.skipGarbageCollection||c===e.dom||!Ext.isGarbage(e.dom)){return e}else {e.destroy()}}c=new a(c);if(h||l){c.skipGarbageCollection=!0}return c}if(c.isElement){return c}if(c.isComposite){return c}if(Ext.isIterable(c)){return m.select(c)}return null},getActiveElement:function(d){var c=b.activeElement;if(!c||!c.focus){c=b.body}return d?Ext.get(c):c},getDocumentHeight:function(){return Math.max(!Ext.isStrict?b.body.scrollHeight:i.scrollHeight,this.getViewportHeight())},getDocumentWidth:function(){return Math.max(!Ext.isStrict?b.body.scrollWidth:i.scrollWidth,this.getViewportWidth())},getOrientation:function(){if(Ext.supports.OrientationChange){return (j.orientation==0)?'portrait':'landscape'}return (j.innerHeight>j.innerWidth)?'portrait':'landscape'},getViewportHeight:function(){var c=a._viewportHeight;if(Ext.isIE9m){return b.documentElement.clientHeight}return (c!=null)?c:i.clientHeight},getViewportWidth:function(){var c=a._viewportWidth;if(Ext.isIE9m){return b.documentElement.clientWidth}return (c!=null)?c:i.clientWidth},getViewportScale:function(){var b=l;return ((Ext.isiOS||Ext.isAndroid)?1:(b.devicePixelRatio||b.screen.deviceXDPI/b.screen.logicalXDPI))*this.getViewportTouchScale()},getViewportTouchScale:function(e){var c=1,d=l,b;if(!e){b=this._viewportTouchScale;if(b){return b}}if(Ext.isIE10p||Ext.isEdge||Ext.isiOS){c=i.offsetWidth/j.innerWidth}else if(Ext.isChromeMobile){c=d.outerWidth/d.innerWidth}return c},getViewSize:function(){return {width:a.getViewportWidth(),height:a.getViewportHeight()}},hasUnit:function(b){return !!(b&&B.test(b))},isRelativeUnit:function(b){return !b||V.test(b)},maskIframes:function(){var b=document.getElementsByTagName('iframe'),c=new Ext.dom.Fly();Ext.each(b,function(d){var b;b=c.attach(d.parentNode).mask();b.setStyle('background-color','transparent')})},normalize:function(b){return H[b]||(H[b]=b.replace(an,'ms-').replace(ad,T))},_onWindowFocusChange:function(b){if(Ext.fly(b.target).is(a.editableSelector)){G=new Date();E=(b.type==='focusin'||b.type==='pointerup')}},_onWindowResize:function(){var c=i.clientWidth,b=i.clientHeight,g=new Date(),f=1000,d,e;d=c-a._documentWidth;e=b-a._documentHeight;a._documentWidth=c;a._documentHeight=b;if(((g-G)<f)||((g-D)<f)){if(d===0&&(E&&(e<=-a.minKeyboardHeight))){t=!0;return}}if(t&&(d===0)&&(e>=a.minKeyboardHeight)){t=!1;D=new Date()}if(t){return}a._viewportWidth=c;a._viewportHeight=b},parseBox:function(c){var e,b,d;c=c||0;e=typeof c;if(e==='number'){return {top:c,right:c,bottom:c,left:c}}else if(e!=='string'){return c}b=c.split(' ');d=b.length;if(d===1){b[1]=b[2]=b[3]=b[0]}else if(d===2){b[2]=b[0];b[3]=b[1]}else if(d===3){b[3]=b[1]}return {top:parseFloat(b[0])||0,right:parseFloat(b[1])||0,bottom:parseFloat(b[2])||0,left:parseFloat(b[3])||0}},parseStyles:function(c){var d={},b;if(c){R.lastIndex=0;while((b=R.exec(c))){d[b[1]]=b[2]||''}}return d},select:function(d,c,e){return Ext.fly(e||b).select(d,c)},query:function(c,d,e){return Ext.fly(e||b).query(c,d)},unitizeBox:function(b,d){var c=this;b=c.parseBox(b);return c.addUnits(b.top,d)+' '+c.addUnits(b.right,d)+' '+c.addUnits(b.bottom,d)+' '+c.addUnits(b.left,d)},unmaskIframes:function(){var b=document.getElementsByTagName('iframe'),c=new Ext.dom.Fly();Ext.each(b,function(b){c.attach(b.parentNode).unmask()})},serializeForm:function(l){var m=l.elements||(b.forms[l]||Ext.getDom(l)).elements,n=!1,f=encodeURIComponent,g='',q=m.length,c,h,d,k,o,i,j,p,e;for(i=0;i<q;i++){c=m[i];h=c.name;d=c.type;k=c.options;if(!c.disabled&&h){if(/select-(one|multiple)/i.test(d)){p=k.length;for(j=0;j<p;j++){e=k[j];if(e.selected){o=e.hasAttribute('value');g+=Ext.String.format('{0}={1}&',f(h),f(o?e.value:e.text))}}}else if(!(/file|undefined|reset|button/i.test(d))){if(!(/radio|checkbox/i.test(d)&&!c.checked)&&!(d==='submit'&&n)){g+=f(h)+'='+f(c.value)+'&';n=/submit/i.test(d)}}}}return g.substr(0,g.length-1)},getCommonAncestor:function(d,e,c){f=f||new Ext.dom.Fly();f.attach(Ext.getDom(d));while(!f.isAncestor(e)){if(f.dom.parentNode){f.attach(f.dom.parentNode)}else {f.attach(b.body);break}}return c?f.dom:Ext.get(f)}},selectable:function(){var b=this;b.dom.unselectable='';b.removeCls(a.unselectableCls);b.addCls(a.selectableCls);return b},unselectable:function(){var b=this;if(Ext.isOpera){b.dom.unselectable='on'}b.removeCls(a.selectableCls);b.addCls(a.unselectableCls);return b},statics:{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:!0,IFRAME:!0,EMBED:!0,INPUT:!0,OBJECT:!0,SELECT:!0,TEXTAREA:!0,HTML:Ext.isIE?!0:!1,BODY:Ext.isIE?!1:!0},naturallyTabbableTags:{BUTTON:!0,IFRAME:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,OBJECT:Ext.isIE8m?!0:!1},inputTags:{INPUT:!0,TEXTAREA:!0},tabbableSavedCounterAttribute:'data-tabindex-counter',tabbableSavedValueAttribute:'data-tabindex-value',splitCls:function(b){if(typeof b==='string'){b=b.split(q)}return b}},_init:function(b){b.tabbableSelector+=',['+b.tabbableSavedCounterAttribute+']'},addCls:function(d,b,c){return this.replaceCls(null,d,b,c)},addClsOnClick:function(c,d,f){var b=this,e=Ext.isFunction(d);b.on("mousedown",function(){if(e&&d.call(f||b,b)===!1){return !1}b.addCls(c);Ext.getDoc().on({mouseup:function(){if(b.dom){b.removeCls(c)}},single:!0})});return b},addClsOnFocus:function(c,d,f){var b=this,e=Ext.isFunction(d);b.on("focus",function(){if(e&&d.call(f||b,b)===!1){return !1}b.addCls(c)});b.on("blur",function(){if(b.dom){b.removeCls(c)}});return b},addClsOnOver:function(c,d,f){var b=this,e=Ext.isFunction(d);b.hover(function(){if(e&&d.call(f||b,b)===!1){return}b.addCls(c)},function(){b.removeCls(c)});return b},addStyles:function(i,h){var g=0,d=(i||'').match(ae),c=[],f=d.length,e,b;if(f===1){g=parseFloat(this.getStyle(h[d[0]]))||0}else if(f){for(b=0;b<f;b++){e=d[b];c.push(h[e])}c=this.getStyle(c);for(b=0;b<f;b++){e=d[b];g+=parseFloat(c[h[e]])||0}}return g},addUnits:function(c,b){return a.addUnits(c,b)},animate:function(b){b=new Ext.fx.Animation(b);b.setElement(this);this._activeAnimation=b;b.on({animationend:this._onAnimationEnd,scope:this});Ext.Animator.run(b);return b},_onAnimationEnd:function(){this._activeAnimation=null},getActiveAnimation:function(){return this._activeAnimation},append:function(){return this.appendChild.apply(this,arguments)},appendChild:function(c,d){var g=this,e,h,f;if(c.nodeType||c.dom||typeof c==='string'){c=Ext.getDom(c);g.dom.appendChild(c);return !d?Ext.get(c):c}else if(c.length){e=Ext.fly(b.createDocumentFragment());h=c.length;for(f=0;f<h;f++){e.appendChild(c[f],d)}c=Ext.Array.toArray(e.dom.childNodes);g.dom.appendChild(e.dom);return d?c:new Ext.dom.CompositeElementLite(c)}else {return g.createChild(c,null,d)}},appendTo:function(b){Ext.getDom(b).appendChild(this.dom);return this},applyStyles:function(b){if(b){if(typeof b==="function"){b=b.call()}if(typeof b==="string"){b=a.parseStyles(b)}if(typeof b==="object"){this.setStyle(b)}}return this},blur:function(){var d=this,c=d.dom;if(c!==b.body){try{c.blur()}catch(aq){}return d}else {return d.focus(undefined,c)}},cacheScrollValues:function(){var i=this,g=[],e=[],f,b,d,h;c=c||new Ext.dom.Fly();f=i.query('*');for(d=0,h=f.length;d<h;d++){b=f[d];if(b.scrollTop>0||b.scrollLeft!==0){e.push(b);g.push(c.attach(b).getScroll())}}return function(){var d,b,f;for(b=0,f=e.length;b<f;b++){d=g[b];c.attach(e[b]);c.setScrollLeft(d.left);c.setScrollTop(d.top)}}},center:function(c){return this.alignTo(c||b,'c-c')},child:function(d,c){var b=this,e;if(Ext.supports.Selectors2){return b.selectNode(':scope>'+d,!!c)}else {e=b.id!=null?b.id:Ext.get(b).id;return b.selectNode(Ext.makeIdSelector(e)+" > "+d,!!c)}},clone:function(c,d){var b=this.dom.cloneNode(c);if(Ext.supports.CloneNodeCopiesExpando){K(b,c)}return d?b:Ext.get(b)},constrainScrollLeft:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollWidth-b.clientWidth),0)},constrainScrollTop:function(c){var b=this.dom;return Math.max(Math.min(c,b.scrollHeight-b.clientHeight),0)},createChild:function(b,c,d){b=b||{tag:'div'};if(c){return Ext.DomHelper.insertBefore(c,b,d!==!0)}else {return Ext.DomHelper.append(this.dom,b,d!==!0)}},contains:function(b){if(!b){return !1}var d=this,c=Ext.getDom(b);return (c===d.dom)||d.isAncestor(c)},destroy:function(){var c=this,b=c.dom;if(b&&b.parentNode){b.parentNode.removeChild(b)}if(c.$ripples){c.destroyAllRipples()}c.collect()},detach:function(){var b=this.dom,c=this.component;if(b&&b.parentNode&&b.tagName!=='BODY'){if(c){c.revertFocus()}b.parentNode.removeChild(b)}return this},disableShadow:function(){var b=this.shadow;if(b){b.hide();b.disabled=!0}},disableShim:function(){var b=this.shim;if(b){b.hide();b.disabled=!0}},doReplaceWith:function(c){var b=this.dom;b.parentNode.replaceChild(Ext.getDom(c),b)},doScrollIntoView:function(b,o,d,m,l,n){c=c||new Ext.dom.Fly();var e=this,k=e.dom,i=c.attach(b)[l](),j=b.scrollTop,h=e.getScrollIntoViewXY(b,i,j),f=h.x,g=h.y;if(m){if(d){d=Ext.apply({listeners:{afteranimate:function(){c.attach(k).highlight()}}},d)}else {c.attach(k).highlight()}}if(g!==j){c.attach(b).scrollTo('top',g,d)}if(o!==!1&&(f!==i)){c.attach(b)[n]('left',f,d)}return e},down:function(c,b){return this.selectNode(c,!!b)},enableShadow:function(f,e){var c=this,b=c.shadow||(c.shadow=new Ext.dom.Shadow(Ext.apply({target:c},f))),d=c.shim;if(d){d.offsets=b.outerOffsets;d.shadow=b;b.shim=d}if(e===!0||(e!==!1&&c.isVisible())){b.show()}else {b.hide()}b.disabled=!1},enableShim:function(f,e){var c=this,b=c.shim||(c.shim=new Ext.dom.Shim(Ext.apply({target:c},f))),d=c.shadow;if(d){b.offsets=d.outerOffsets;b.shadow=d;d.shim=b}if(e===!0||(e!==!1&&c.isVisible())){b.show()}else {b.hide()}b.disabled=!1;return b},findParent:function(f,c,g){var h=this,b=h.dom,d=i,e=0;if(c||c===0){if(typeof c!=='number'){d=Ext.getDom(c);c=Number.MAX_VALUE}}else {c=50}while(b&&b.nodeType===1&&e<c&&b!==d){if(Ext.fly(b).is(f)){return g?Ext.get(b):b}e++;b=b.parentNode}return null},findParentNode:function(c,e,d){var b=Ext.fly(this.dom.parentNode);return b?b.findParent(c,e,d):null},first:function(c,b){return this.matchNode('nextSibling','firstChild',c,b)},focus:function(d,b){var c=this;b=b||c.dom;if(Number(d)){Ext.defer(c.focus,d,c,[null,b])}else {Ext.fireEvent('beforefocus',b);b.focus()}return c},collect:function(){var b=this,e=b.dom,c=b.shadow,d=b.shim;if(!b.isFly){b.mixins.observable.destroy.call(b);delete Ext.cache[b.id];b.el=null}if(e){e._extData=b.dom=null}if(c){c.hide();b.shadow=null}if(d){d.hide();b.shim=null}},getAnchorToXY:function(e,b,d,c){return e.getAnchorXY(b,d,c)},getAttribute:function(b,d){var c=this.dom;return d?(c.getAttributeNS(d,b)||c.getAttribute(d+":"+b)):(c.getAttribute(b)||c[b]||null)},getAttributes:function(){var d=this.dom.attributes,e={},c,b,f;for(b=0,f=d.length;b<f;b++){c=d[b];e[c.name]=c.value}return e},getBottom:function(b){return (b?this.getLocalY():this.getY())+this.getHeight()},getById:function(d,e){var c=b.getElementById(d)||this.dom.querySelector(Ext.makeIdSelector(d));return e?c:(c?Ext.get(c):null)},getBorderPadding:function(){var c=this.getStyle(X),b=this.getStyle(I);return {beforeX:(parseFloat(b[d.l])||0)+(parseFloat(c[h.l])||0),afterX:(parseFloat(b[d.r])||0)+(parseFloat(c[h.r])||0),beforeY:(parseFloat(b[d.t])||0)+(parseFloat(c[h.t])||0),afterY:(parseFloat(b[d.b])||0)+(parseFloat(c[h.b])||0)}},getBorders:function(){var b=this.getStyle(I);return {beforeX:(parseFloat(b[d.l])||0),afterX:(parseFloat(b[d.r])||0),beforeY:(parseFloat(b[d.t])||0),afterY:(parseFloat(b[d.b])||0)}},getBorderWidth:function(b){return this.addStyles(b,d)},getClassMap:function(c){var b=this.getData();if(b){b=b.classMap;if(c!==!1){b=Ext.apply({},b)}}return b},getData:function(d){var c=this.dom,b;if(c){b=c._extData||(c._extData={});if(d!==!1&&!b.isSynchronized){this.synchronize()}}return b||null},getFirstChild:function(){return Ext.get(this.dom.firstElementChild)},getLastChild:function(){return Ext.get(this.dom.lastElementChild)},getHeight:function(g,f){var c=this,e=c.dom,h=c.isStyle('display','none'),b,d;if(h){return 0}if(e.nodeName==='BODY'){b=a.getViewportHeight()}else {if(f){b=e.getBoundingClientRect().height}else {b=e.offsetHeight;if(b==null){b=e.getBoundingClientRect().height}}}if(Ext.supports.Direct2DBug){d=c.adjustDirect2DDimension(O);if(f){b+=d}else if(d>0&&d<0.5){b++}}if(g){b-=c.getBorderWidth("tb")+c.getPadding("tb")}return (b<0)?0:b},getHtml:function(){return this.dom?this.dom.innerHTML:''},getLeft:function(b){return b?this.getLocalX():this.getX()},getLocalX:function(){var d=this,c,b=d.getStyle('left');if(!b||b==='auto'){b=0}else if(v.test(b)){b=parseFloat(b)}else {b=d.getX();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getX()}}return b},getLocalXY:function(){var e=this,d,f=e.getStyle(['left','top']),b=f.left,c=f.top;if(!b||b==='auto'){b=0}else if(v.test(b)){b=parseFloat(b)}else {b=e.getX();d=e.dom.offsetParent;if(d){b-=Ext.fly(d).getX()}}if(!c||c==='auto'){c=0}else if(v.test(c)){c=parseFloat(c)}else {c=e.getY();d=e.dom.offsetParent;if(d){c-=Ext.fly(d).getY()}}return [b,c]},getLocalY:function(){var d=this,c,b=d.getStyle('top');if(!b||b==='auto'){b=0}else if(v.test(b)){b=parseFloat(b)}else {b=d.getY();c=d.dom.offsetParent;if(c){b-=Ext.fly(c).getY()}}return b},getMargin:(function(){var c={t:"top",l:"left",r:"right",b:"bottom"},b=['margin-top','margin-left','margin-right','margin-bottom'];return function(g){var h=this,e,f,d;if(!g){e=h.getStyle(b);d={};if(e&&typeof e==='object'){d={};for(f in A){d[f]=d[c[f]]=parseFloat(e[A[f]])||0}}}else {d=h.addStyles(g,A)}return d}})(),getPadding:function(b){return this.addStyles(b,h)},getParent:function(){return Ext.get(this.dom.parentNode)},getRight:function(b){return (b?this.getLocalX():this.getX())+this.getWidth()},getScroll:function(){var h=this,d=h.dom,g=i,e,f,c=b.body;if(d===b||d===c){e=g.scrollLeft||(c?c.scrollLeft:0);f=g.scrollTop||(c?c.scrollTop:0)}else {e=d.scrollLeft;f=d.scrollTop}return {left:e,top:f}},getScrollIntoViewXY:function(b,h,i,c){var d=this,j=d.dom,g,f,e;c=c||ak;if(b.isRegion){e=b.height;f=b.width}else {b=Ext.getDom(b);e=b.clientHeight;f=b.clientWidth}g=d.getOffsetsTo(b);return {y:d.calcScrollPos(g[1]+i,j.offsetHeight,i,e,c.y),x:d.calcScrollPos(g[0]+h,j.offsetWidth,h,f,c.x)}},calcScrollPos:function(e,h,g,c,b){var i=e+h,j=g+c,d=b&&!U.test(b),f=g;if(!d){if(b){b=b.slice(0,-1)}if(h>c||e<g){b=b||'start';d=!0}else if(i>j){b=b||'end';d=!0}}if(d){if(b==='start'){f=e}else if(b==='center'){f=Math.max(0,e-Math.floor((c/2)))}else if(b==='end'){f=Math.max(0,i-c)}}return f},getScrollLeft:function(){var c=this.dom;if(c===b||c===b.body){return this.getScroll().left}else {return c.scrollLeft}},getScrollTop:function(){var c=this.dom;if(c===b||c===b.body){return this.getScroll().top}else {return c.scrollTop}},getSize:function(b){return {width:this.getWidth(b),height:this.getHeight(b)}},getStyle:function(n,i){var k=this,e=k.dom,m=typeof n!=='string',p=k.styleHooks,b=n,j=b,q=1,h,o,f,d,g,c,l;if(m){f={};b=j[0];l=0;if(!(q=j.length)){return f}}if(!e||e.documentElement){return f||''}h=e.style;if(i){c=h}else {c=e.ownerDocument.defaultView.getComputedStyle(e,null);if(!c){i=!0;c=h}}do{d=p[b];if(!d){p[b]=d={name:a.normalize(b)}}if(d.get){g=d.get(e,k,i,c)}else {o=d.name;g=c[o]}if(!m){return g}f[b]=g;b=j[++l]}while(l<q);return f},getStyleValue:function(b){return this.dom.style.getPropertyValue(b)},getCaretPos:function(){var d=this.dom,b,c;if(w.test(d.type)){b=d.selectionStart;c=(typeof b!=='number')&&this.getTextSelection();if(c){b=c[0]}}return b},setCaretPos:function(b){this.selectText(b,b)},getTextSelection:function(){var b=this.dom;if(w.test(b.type)){return [b.selectionStart,b.selectionEnd,b.selectionDirection]}else {return []}},selectText:function(c,d,e){var h=this,f,b=h.dom,g;if(b&&w.test(b.type)){c=c||0;g=b.value.length;if(d===undefined){d=g}e=L[e]||e||'forward';if(b.setSelectionRange){b.setSelectionRange(c,d,e)}else if(b.createTextRange){if(c>d){c=d}f=b.createTextRange();f.moveStart('character',c);f.moveEnd('character',-(g-d));f.select()}}return h},getTop:function(b){return b?this.getLocalY():this.getY()},getTouchAction:function(){return Ext.dom.TouchAction.get(this.dom)},getValue:function(c){var b=this.dom.value;return c?parseInt(b,10):b},getViewSize:function(){var c=this.dom;if(c===b||c===b.body){return {width:a.getViewportWidth(),height:a.getViewportHeight()}}else {return {width:c.clientWidth,height:c.clientHeight}}},getVisibilityMode:function(){var d=this,c=d.getData(),b=c.visibilityMode;if(b===undefined){c.visibilityMode=b=a.DISPLAY}return b},getWidth:function(h,f){var c=this,g=c.dom,i=c.isStyle('display','none'),d,b,e;if(i){return 0}if(Ext.supports.BoundingClientRect){d=g.getBoundingClientRect();b=(c.vertical&&!Ext.supports.RotatedBoundingClientRect)?(d.bottom-d.top):(d.right-d.left);b=f?b:Math.ceil(b)}else {b=g.offsetWidth}if(Ext.supports.Direct2DBug&&!c.vertical){e=c.adjustDirect2DDimension(Q);if(f){b+=e}else if(e>0&&e<0.5){b++}}if(h){b-=c.getBorderWidth("lr")+c.getPadding("lr")}return (b<0)?0:b},getX:function(){return this.getXY()[0]},getXY:function(){var f=Math.round,e=this.dom,g=b.body,h=0,i=0,c,d;if(e!==b&&e!==g){try{c=g.getBoundingClientRect();d=e.getBoundingClientRect();h=d.left-c.left;i=d.top-c.top}catch(aq){}}return [f(h),f(i)]},getY:function(){return this.getXY()[1]},getZIndex:function(){return parseInt(this.getStyle('z-index'),10)},hasCls:function(c){var b=this.getClassMap();return b.hasOwnProperty(c)},hide:function(){return this.setVisible(!1)},hover:function(e,f,d,c){var b=this;b.on('mouseenter',e,d||b.dom,c);b.on('mouseleave',f,d||b.dom,c);return b},indexOf:function(c){var b=this.dom,d=c&&Ext.getDom(c);b=b&&b.childNodes;return (d&&b)?Array.prototype.indexOf.call(b,d):-1},insertAfter:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b.nextSibling);return this},insertBefore:function(b){b=Ext.getDom(b);b.parentNode.insertBefore(this.dom,b);return this},insertFirst:function(b,c){b=b||{};if(b.nodeType||b.dom||typeof b==='string'){b=Ext.getDom(b);this.dom.insertBefore(b,this.dom.firstChild);return !c?Ext.get(b):b}else {return this.createChild(b,this.dom.firstChild,c)}},insertHtml:function(d,e,c){var b=Ext.DomHelper.insertHtml(d,this.dom,e);return c?Ext.get(b):b},insertSibling:function(c,l,g){var e=this,k=Ext.DomHelper,i=(l||'before').toLowerCase()==='after',d,h,j,f;if(Ext.isIterable(c)){j=c.length;h=Ext.fly(b.createDocumentFragment());if(Ext.isArray(c)){for(f=0;f<j;f++){d=h.appendChild(c[f],g)}}else {for(f=0;f<j;f++){h.dom.appendChild(d=c[0])}if(g===!1){d=Ext.get(d)}}e.dom.parentNode.insertBefore(h.dom,i?e.dom.nextSibling:e.dom);return d}c=c||{};if(c.nodeType||c.dom){d=e.dom.parentNode.insertBefore(Ext.getDom(c),i?e.dom.nextSibling:e.dom);if(!g){d=Ext.get(d)}}else {if(i&&!e.dom.nextSibling){d=k.append(e.dom.parentNode,c,!g)}else {d=k[i?'insertAfter':'insertBefore'](e.dom,c,!g)}}return d},is:function(c){var d=this.dom,b;if(!c){b=!0}else if(!d.tagName){b=!1}else if(Ext.isFunction(c)){b=c(d)}else {b=d[Ext.supports.matchesSelector](c)}return b},isAncestor:function(e){var d=!1,c=this.dom,b=Ext.getDom(e);if(c&&b){if(!b.nodeType){return !1}if(c.contains){return c.contains(b)}else if(c.compareDocumentPosition){return !!(c.compareDocumentPosition(b)&16)}else {while((b=b.parentNode)){d=b===c||d}}}return d},isPainted:(function(){return !Ext.browser.is.IE?function(){var b=this.dom;return Boolean(b&&b.offsetParent)}:function(){var b=this.dom;return Boolean(b&&(b.offsetHeight!==0||b.offsetWidth!==0))}})(),isScrollable:function(){var b=this.dom;return b.scrollHeight>b.clientHeight||b.scrollWidth>b.clientWidth},isStyle:function(b,c){return this.getStyle(b)===c},isVisible:function(f,d){var b=this.dom,c=!0,e;if(!b){return !1}d=d||3;if(!s){s=new Ext.dom.Fly()}for(e=b.ownerDocument.documentElement;b!==e;b=b.parentNode){if(!b||b.nodeType===11){c=!1}if(c){s.attach(b);if(d&1){c=!s.isStyle(M,C)}if(c&&(d&2)){c=!s.isStyle($,ag)}}if(!c||!f){break}}return c},last:function(c,b){return this.matchNode('previousSibling','lastChild',c,b)},matchNode:function(g,f,c,e){var d=this.dom,b;if(!d){return null}b=d[f];while(b){if(b.nodeType===1&&(!c||Ext.fly(b,'_matchNode').is(c))){return !e?Ext.get(b):b}b=b[g]}return null},measure:function(f){var m=this,g=m.dom,h=f!=='h',j=f!=='w',d=0,c=0,i=!Ext.supports.ComputedSizeIncludesPadding,b,l,k;if(g.nodeName==='BODY'){c=j&&a.getViewportHeight();d=h&&a.getViewportWidth()}else {k=g.offsetParent;b=g.ownerDocument.defaultView.getComputedStyle(g,null);i|=b.boxSizing==='content-box';if(k!==null||b.position==='fixed'){if(j){c=e(b.height);if(i){c+=e(b.paddingTop)+e(b.paddingBottom)+e(b.borderTopWidth)+e(b.borderBottomWidth)}}if(h){d=e(b.width);if(i){d+=e(b.paddingLeft)+e(b.paddingRight)+e(b.borderLeftWidth)+e(b.borderRightWidth)}}}}l=f?null:{width:d,height:c};return f?(h?d:c):l},measureContent:function(b){var c=this,g=b!=='h',d=c.measure(b),e=b?d:d.height,f=b?d:d.width;if(b!=='w'){e-=c.getBorderWidth('tb')+c.getPadding('tb')}if(g){f-=c.getBorderWidth('lr')+c.getPadding('lr')}return b?(g?f:e):{width:f,height:e}},monitorMouseLeave:function(f,e,g){var b=this,d,c={mouseleave:function(c){if(Ext.isIE9m){c.enableIEAsync()}d=Ext.defer(e,f,g||b,[c])},mouseenter:function(){Ext.undefer(d)},destroy:function(){Ext.undefer(d);if(!b.destroyed){b.un(c)}}};b.on(c);return c},next:function(c,b){return this.matchNode('nextSibling','nextSibling',c,b)},parent:function(c,b){return this.matchNode('parentNode','parentNode',c,b)},peekData:function(){var b=this.dom;return b&&b._extData||null},position:function(c,d,e,f){var b=this;if(b.dom.tagName!=='BODY'){if(!c&&b.isStyle(y,ah)){b.setStyle(y,ab)}else if(c){b.setStyle(y,c)}if(d){b.setStyle(ai,d)}if(e||f){b.setXY([e||!1,f||!1])}}},prev:function(c,b){return this.matchNode('previousSibling','previousSibling',c,b)},query:function(b,e,j){var i=this.dom,g,l,k,h,f,c,d;if(!i){return null}e=(e!==!1);b=b.split(",");if(!j){g=[]}for(c=0,l=b.length;c<l;c++){if(typeof b[c]==='string'){if(j){h=i.querySelector(b[c]);return e?h:Ext.get(h)}f=i.querySelectorAll(b[c]);for(d=0,k=f.length;d<k;d++){g.push(e?f[d]:Ext.get(f[d]))}}}return g},radioCls:function(b){var f=this.dom.parentNode.childNodes,d,c,e;b=Ext.isArray(b)?b:[b];for(c=0,e=f.length;c<e;c++){d=f[c];if(d&&d.nodeType===1){Ext.fly(d).removeCls(b)}}return this.addCls(b)},redraw:function(){var c=this.dom,b=c.style;b.display='none';c.offsetHeight;b.display=''},remove:function(){this.destroy()},removeChild:function(b){this.dom.removeChild(Ext.getDom(b));return this},removeCls:function(d,b,c){return this.replaceCls(d,null,b,c)},repaint:function(c,d){var b=this,e,f;if(!c){c=Ext.baseCSSPrefix+'repaint';f=!(e=!1)}else if(d!=null){f=d;e=!d}b.toggleCls(c,f);if(!b.repaintTimer){b.repaintTimer=Ext.defer(function(){b.repaintTimer=null;if(b.dom){b.toggleCls(c,e)}},1)}return b},replace:function(b,f){b=Ext.getDom(b);var c=b.parentNode,e=b.id,d=this.dom;if(f!==!1&&e&&Ext.cache[e]){c.insertBefore(d,b);Ext.get(b).destroy()}else {c.replaceChild(d,b)}return this},replaceCls:function(o,e,c,d){var j=this,n=j.dom,p=0,l=0,g=o,m=(e||o)&&j.getData(),h,i,f,k,b;if(m){h=m.classList;i=m.classMap;e=e?((typeof e==='string')?e.split(q):e):P;g=g?((typeof g==='string')?g.split(q):g):P;c=c||'';if(c&&c[c.length-1]!=='-'){c+='-'}d=d||'';if(d&&d[0]!=='-'){d='-'+d}for(f=0,k=g.length;f<k;f++){if(!(b=g[f])){continue}b=c+b+d;if(i[b]){delete i[b];++l}}for(f=0,k=e.length;f<k;f++){if(!(b=e[f])){continue}b=c+b+d;if(!i[b]){i[b]=!0;if(!l){h.push(b);++p}}}if(l){j.setClassMap(i,!0)}else if(p){h=h.join(' ');if(!Ext.isIE8&&n instanceof SVGElement){n.setAttribute('class',h)}else {n.className=h}}}return j},replaceWith:function(c){var b=this,e=b.dom,f=e.parentNode,g=Ext.cache,d;b.clearListeners();if(c.nodeType||c.dom||typeof c==='string'){c=Ext.get(c);d=f.insertBefore(c.dom,e)}else {d=Ext.DomHelper.insertBefore(e,c)}f.removeChild(e);b.dom=d;if(!b.isFly){delete g[b.id];g[b.id=Ext.id(d)]=b}return b},resolveListenerScope:function(c){var b=this.component;return b?b.resolveListenerScope(c):this},scroll:function(b,e,j){if(!this.isScrollable()){return !1}b=b.charAt(0);var f=this,i=f.dom,h=b==='r'||b==='l'?'left':'top',g=!1,c,d;if(b==='l'||b==='t'||b==='u'){e=-e}if(h==='left'){c=i.scrollLeft;d=f.constrainScrollLeft(c+e)}else {c=i.scrollTop;d=f.constrainScrollTop(c+e)}if(d!==c){this.scrollTo(h,d,j);g=!0}return g},scrollBy:function(b,c,e){var d=this,f=d.dom;if(b.length){e=c;c=b[1];b=b[0]}else if(typeof b!=='number'){e=c;c=b.y;b=b.x}if(b){d.scrollTo('left',d.constrainScrollLeft(f.scrollLeft+b),e)}if(c){d.scrollTo('top',d.constrainScrollTop(f.scrollTop+c),e)}return d},scrollChildIntoView:function(c,b){Ext.fly(c).scrollIntoView(this,b)},scrollIntoView:function(b,e,d,c){b=Ext.getDom(b)||Ext.getBody().dom;return this.doScrollIntoView(b,e,d,c,'getScrollLeft','scrollTo')},scrollTo:function(h,e,d){var i=al.test(h),c=this,f=i?'scrollTop':'scrollLeft',g=c.dom,b;if(!d||!c.anim){g[f]=e;g[f]=e}else {b={to:{}};b.to[f]=e;if(Ext.isObject(d)){Ext.applyIf(b,d)}c.animate(b)}return c},select:function(c,e){var d,b;if(typeof c==="string"){b=this.query(c,!e)}else {b=c;d=!0}return e?new Ext.CompositeElement(b,!d):new Ext.CompositeElementLite(b,!0)},selectNode:function(b,c){return this.query(b,c,!0)},set:function(e,g){var f=this,d=f.dom,b,c;for(b in e){if(e.hasOwnProperty(b)){c=e[b];if(b==='style'){f.applyStyles(c)}else if(b==='cls'){d.className=c}else if(g!==!1){if(c===undefined){d.removeAttribute(b)}else {d.setAttribute(b,c)}}else {d[b]=c}}}return f},setBottom:function(b){this.dom.style[af]=a.addUnits(b);return this},setClassMap:function(b,e){var c=this.getData(!1),d;if(c){b=(e&&b)||Ext.apply({},b);c.classMap=b;c.classList=d=Ext.Object.getKeys(b);c.isSynchronized=!0;this.dom.className=d.join(' ')}},setCls:function(c){var h=this,e=h.getData(!1),d,g,f,b;if(typeof c==='string'){c=c.split(q)}e.classList=b=c.slice();e.classMap=f={};for(d=0,g=b.length;d<g;d++){f[b[d]]=!0}h.dom.className=b.join(' ')},setDisplayed:function(c){var b=this;if(typeof c==="boolean"){c=c?b._getDisplay():C}b.setStyle(M,c);if(b.shadow||b.shim){b.setUnderlaysVisible(c!==C)}return b},setHeight:function(c){var b=this;b.dom.style[O]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setHtml:function(b){if(this.dom){this.dom.innerHTML=b}return this},setId:function(c){var b=this,d=b.id,e=Ext.cache;if(d){delete e[d]}b.dom.id=c;b.id=c;e[c]=b;return b},setLeft:function(c){var b=this;b.dom.style[am]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocalX:function(d){var b=this,c=b.dom.style;c.right='';c.left=(d===null)?'auto':d+'px';if(b.shadow||b.shim){b.syncUnderlays()}return b},setLocalXY:function(b,e){var d=this,c=d.dom.style;c.right='';if(b&&b.length){e=b[1];b=b[0]}if(b===null){c.left='auto'}else if(b!==undefined){c.left=b+'px'}if(e===null){c.top='auto'}else if(e!==undefined){c.top=e+'px'}if(d.shadow||d.shim){d.syncUnderlays()}return d},setLocalY:function(c){var b=this;b.dom.style.top=(c===null)?'auto':c+'px';if(b.shadow||b.shim){b.syncUnderlays()}return b},setMargin:function(b){var d=this,c=d.dom.style;if(b||b===0){b=d.self.unitizeBox((b===!0)?5:b);c.setProperty('margin',b,'important')}else {c.removeProperty('margin-top');c.removeProperty('margin-right');c.removeProperty('margin-bottom');c.removeProperty('margin-left')}},setMaxHeight:function(b){this.dom.style[Y]=a.addUnits(b);return this},setMaxWidth:function(b){this.dom.style[_]=a.addUnits(b);return this},setMinHeight:function(b){this.dom.style[Z]=a.addUnits(b);return this},setMinWidth:function(b){this.dom.style[aa]=a.addUnits(b);return this},setOpacity:function(c){var b=this;if(b.dom){b.setStyle('opacity',c)}return b},setPadding:function(b){var d=this,c=d.dom.style;if(b||b===0){b=d.self.unitizeBox((b===!0)?5:b);c.setProperty('padding',b,'important')}else {c.removeProperty('padding-top');c.removeProperty('padding-right');c.removeProperty('padding-bottom');c.removeProperty('padding-left')}},setRight:function(b){this.dom.style[aj]=a.addUnits(b);return this},setScrollLeft:function(b){this.dom.scrollLeft=b;return this},setScrollTop:function(b){this.dom.scrollTop=b;return this},setSize:function(b,d){var c=this,e=c.dom.style;if(Ext.isObject(b)){d=b.height;b=b.width}if(b!==undefined){e.width=a.addUnits(b)}if(d!==undefined){e.height=a.addUnits(d)}if(c.shadow||c.shim){c.syncUnderlays()}return c},setStyle:function(h,c){var e=this,f=e.dom,g=e.styleHooks,i=f.style,d=h,b;if(typeof d==='string'){b=g[d];if(!b){g[d]=b={name:a.normalize(d)}}c=(c==null)?'':c;if(b.set){b.set(f,c,e)}else {i[b.name]=c}if(b.afterSet){b.afterSet(f,c,e)}}else {for(d in h){b=g[d];if(!b){g[d]=b={name:a.normalize(d)}}c=h[d];c=(c==null)?'':c;if(b.set){b.set(f,c,e)}else {i[b.name]=c}if(b.afterSet){b.afterSet(f,c,e)}}}return e},setText:function(b){this.dom.textContent=b},getText:function(){return this.dom.textContent},setTop:function(c){var b=this;b.dom.style[ao]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setTouchAction:function(b){Ext.dom.TouchAction.set(this.dom,b)},setUnderlaysVisible:function(d){var b=this.shadow,c=this.shim;if(b&&!b.disabled){if(d){b.show()}else {b.hide()}}if(c&&!c.disabled){if(d){c.show()}else {c.hide()}}},setVisibility:function(c){var b=this.dom.style;if(c){b.removeProperty('visibility')}else {b.setProperty('visibility','hidden','important')}},setVisibilityMode:function(b){this.getData().visibilityMode=b;return this},setVisible:function(d){var b=this,e=b.getVisibilityMode(),c=d?'removeCls':'addCls';switch(e){case a.DISPLAY:b.removeCls([n,o,r,p]);b[c](k);break;case a.VISIBILITY:b.removeCls([k,o,r,p]);b[c](n);break;case a.OFFSETS:b.removeCls([n,k,r,p]);b[c](o);break;case a.CLIP:b.removeCls([n,k,o,p]);b[c](r);break;case a.OPACITY:b.removeCls([n,k,o,r]);b[c](p);break;}if(b.shadow||b.shim){b.setUnderlaysVisible(d)}if(!d&&b.$ripples){b.destroyAllRipples()}return b},setWidth:function(c){var b=this;b.dom.style[Q]=a.addUnits(c);if(b.shadow||b.shim){b.syncUnderlays()}return b},setX:function(b){return this.setXY([b,!1])},setXY:function(f){var b=this,d=b.translatePoints(f),e=b.dom.style,c;b.position();e.right='';for(c in d){if(!isNaN(d[c])){e[c]=d[c]+'px'}}if(b.shadow||b.shim){b.syncUnderlays()}return b},setY:function(b){return this.setXY([!1,b])},setZIndex:function(c){var b=this;if(b.shadow){b.shadow.setZIndex(c)}if(b.shim){b.shim.setZIndex(c)}return b.setStyle('z-index',c)},show:function(){return this.setVisible(!0)},swallowEvent:function(b,g){var h=this,c,e,d={destroyable:!0},f=function(c){c.stopPropagation();if(g){c.preventDefault()}};if(Ext.isArray(b)){e=b.length;for(c=0;c<e;c++){d[b[c]]=f}}else {d[b]=f}return h.on(d)},swapCls:function(h,g,c,b){if(c===undefined){c=!0}var f=this,e=c?h:g,d=c?g:h;if(d){f.removeCls(b?b+'-'+d:d)}if(e){f.addCls(b?b+'-'+e:e)}return f},synchronize:function(){var e=this,i=e.dom,f={},g=i.className,b,c,j,h,d=e.getData(!1);if(g&&g.length>0){b=i.className.split(S);for(c=0,j=b.length;c<j;c++){h=b[c];f[h]=!0}}else {b=[]}d.classList=b;d.classMap=f;d.isSynchronized=!0;return e},syncUnderlays:function(){var b=this,c=b.shadow,d=b.shim,j=b.dom,e,h,i,g,f;if(b.isVisible()){e=b.getXY();h=e[0];i=e[1];g=j.offsetWidth;f=j.offsetHeight;if(c&&!c.hidden){c.realign(h,i,g,f)}if(d&&!d.hidden){d.realign(h,i,g,f)}}},toggleCls:function(b,c){if(c==null){c=!this.hasCls(b)}return c?this.addCls(b):this.removeCls(b)},toggle:function(){this.setVisible(!this.isVisible());return this},translate:function(){var c='webkitTransform' in b.createElement('div').style?'webkitTransform':'transform';return function(b,d,e){b=Math.round(b);d=Math.round(d);e=Math.round(e);this.dom.style[c]='translate3d('+(b||0)+'px, '+(d||0)+'px, '+(e||0)+'px)'}}(),unwrap:function(){var i=this.dom,f=i.parentNode,e=(u||(u=new Ext.dom.Fly())).attach(Ext.Element.getActiveElement()),d,c,h,j;g=g||new Ext.dom.Fly();c=Ext.cache[e.dom.id];if(c){e=c}if(this.contains(e)){if(c){c.suspendFocusEvents()}h=!0}if(f){d=f.parentNode;if(h){j=d.getAttribute('tabIndex');g.attach(d);g.set({tabIndex:-1});g.suspendFocusEvents();g.focus()}d.insertBefore(i,f);d.removeChild(f)}else {d=b.createDocumentFragment();d.appendChild(i)}if(h){if(c){c.focus();c.resumeFocusEvents()}else {e.focus()}if(g){g.resumeFocusEvents();g.set({tabIndex:j})}}return this},up:function(b,d,c){return this.findParentNode(b,d,!c)},update:function(b){return this.setHtml(b)},wrap:function(m,g,h){var l=this,k=l.dom,j=Ext.DomHelper.insertBefore(k,m||{tag:"div"},!g),c=(N||(N=new Ext.dom.Fly())).attach(Ext.getDom(j)),e=c,d=(u||(u=new Ext.dom.Fly())).attach(Ext.Element.getActiveElement()),b,f,i;b=Ext.cache[d.dom.id];if(b){d=b}if(h){e=c.selectNode(h,g)}if(l.contains(d)){if(b){b.suspendFocusEvents()}i=Ext.getDom(c).getAttribute('tabIndex');c.set({tabIndex:-1});c.suspendFocusEvents();c.focus();f=!0}(e.dom||e).appendChild(k);if(f){if(b){b.focus();b.resumeFocusEvents()}else {d.focus()}c.resumeFocusEvents();c.set({tabIndex:i})}return j},isFocusable:function(e){var b=this.dom,c=!1,d;if(b&&!b.disabled){d=b.nodeName;c=!!Ext.Element.naturallyFocusableTags[d]||((d==='A'||d==='LINK')&&!!b.href)||b.getAttribute('tabIndex')!=null||b.contentEditable==='true';if(Ext.isIE8&&d==='INPUT'&&b.type==='hidden'){c=!1}c=c&&(e||this.isVisible(!0))}return c},isInputField:function(){var b=this.dom,c=b.contentEditable;if((Ext.Element.inputTags[b.tagName]&&b.type!=='button')||(c===''||c==='true')){return !0}return !1},isTabbable:function(g){var d=this.dom,b=!1,f,e,c;if(d&&!d.disabled){f=d.nodeName;c=d.getAttribute('tabIndex');e=c!=null;c-=0;if(f==='A'||f==='LINK'){if(d.href){b=e&&c<0?!1:!0}else {if(d.contentEditable==='true'){b=!e||(e&&c>=0)?!0:!1}else {b=e&&c>=0?!0:!1}}}else if(d.contentEditable==='true'||Ext.Element.naturallyTabbableTags[f]){b=e&&c<0?!1:!0}else {if(e&&c>=0){b=!0}}if(Ext.isIE8&&f==='INPUT'&&d.type==='hidden'){b=!1}b=b&&(g||((!this.component||this.component.isVisible(!0))&&this.isVisible(!0)))}return b},ripplingCls:Ext.baseCSSPrefix+'rippling',ripplingTransitionCls:Ext.baseCSSPrefix+'ripple-transition',ripplingUnboundCls:Ext.baseCSSPrefix+'rippling-unbound',rippleBubbleCls:Ext.baseCSSPrefix+'ripple-bubble',rippleContainerCls:Ext.baseCSSPrefix+'ripple-container',rippleWrapperCls:Ext.baseCSSPrefix+'ripple-wrapper',noRippleDisplayMap:{table:1,'table-row':1,'table-row-group':1},noRippleTagMap:{TABLE:1,TR:1,TBODY:1},ripple:function(e,b){if(b===!0||!b){b={}}else if(Ext.isString(b)){b={color:b}}var d=this,c=Ext.isString(b.delegate)?d.down(b.delegate):d,t=Ext.isString(b.measureSelector)?d.down(b.measureSelector):null,J=window.getComputedStyle(c.dom).color,k=b.bound===!1,D=b.position,v=d.ripplingCls,z=d.ripplingTransitionCls,H=d.ripplingUnboundCls,B=d.rippleBubbleCls,l=d.rippleContainerCls,I=d.rippleWrapperCls,j,r,q,f,E,C,A,n,x,F,G,i,h,g,s,u,y,o,p,m,w;if(c){j=c.getXY();r=c.getWidth();q=c.getHeight();w=c.$rippleClearTimeout;if(w){c.$rippleClearTimeout=Ext.undefer(w)}if(t){C=t.getWidth();A=t.getHeight();f=Math.max(C,A)}else {f=r>q?r:q}if(b.diameterLimit===undefined||b.diameterLimit===!0){f=Math.min(f,a.maxRippleDiameter)}else if(b.diameterLimit&&b.diameterLimit!==!1&&b.diameterLimit!==0){f=Math.min(f,b.diameterLimit)}E=[j[0]+r/2,j[1]+q/2];if(k){if(b.fit!==!1){n=f*2.15;o=c.getRegion();o.setPosition(o.getCenter()).setSize(n).translateBy(-n/2,-n/2);p=d.up(function(c){var f=Ext.fly(c,'ripple');return !(c.tagName in d.noRippleTagMap)&&!(f.getStyle('display') in d.noRippleDisplayMap)&&(f.getRegion().contains(o))})||Ext.getBody()}else {p=c}}if(Ext.isString(e)){b.color=e;e=null}else if(e&&!e.isEvent){e=new Ext.event.Event(e)}if(e&&e.isEvent){if(e.browserEvent.$preventRipple){return}D=e.getXY();e.browserEvent.$preventRipple=!0}x=(!k&&!b.centered&&D)||E;F=x[0]-j[0]-(f/2);G=x[1]-j[1]-(f/2);c.addCls(z);if(!k){c.addCls(v);h=c.child('.'+l)}else {m=p.getData();i=m.rippleWrapper;if(!i){m.rippleWrapper=i=p.insertFirst({style:'position: absolute; top: 0; left: 0',cls:I+' '+v+' '+H})}}if(!h){if(k){h=i.append({cls:l});h.setXY(j)}else {h=c.append({cls:l})}}g=h.append({cls:B});if(b.color!=='default'){g.setStyle('backgroundColor',b.color||J)}g.setWidth(f);g.setHeight(f);g.setTop(G);g.setLeft(F);u=function(){if(!c.destroyed){c.$rippleClearTimeout=Ext.defer(function(){c.removeCls([v,z]);c.$rippleClearTimeout=null},50)}};s=function(){var f,j;g.destroy();if(d.$ripples){delete d.$ripples[g.id]}j=c.$rippleClearTimeout;if(j){c.$rippleClearTimeout=Ext.undefer(j)}if(k){h.destroy();f=i.child('.'+l);if(!f){m.rippleWrapper=null;i.destroy();u()}}else {f=h.child('.'+B);if(!f){h.destroy();u()}}};y=Ext.defer(s,b.destroyTime||1000,d);if(!d.$ripples){d.$ripples={}}d.$ripples[g.id]={timerId:y,destructor:s};g.addCls(Ext.baseCSSPrefix+'ripple')}},destroyAllRipples:function(){var c=this,d,b;for(d in c.$ripples){b=c.$ripples[d];Ext.undefer(b.timerId);if(b.destructor){b.destructor()}}c.$ripples=null},privates:{findTabbableElements:function(e){var m,l,b,i,h,f=this.dom,o=Ext.Element.tabbableSavedCounterAttribute,c=[],q=0,j,d,p,g,k,n;if(!f){return c}if(e){m=e.skipSelf;l=e.skipChildren;b=e.excludeRoot;i=e.includeSaved;h=e.includeHidden}b=b&&Ext.getDom(b);if(b&&b.contains(f)){return c}if(!m&&((i&&f.hasAttribute(o))||this.isTabbable(h))){c[q++]=f}if(l){return c}j=f.querySelectorAll(Ext.Element.tabbableSelector);k=j.length;if(!k){return c}p=new Ext.dom.Fly();for(g=0;g<k;g++){d=j[g];n=+d.getAttribute('tabIndex');if(((i&&d.hasAttribute(o))||(!(n<0)&&p.attach(d).isTabbable(h)))&&!(b&&(b===d||b.contains(d)))){c[q++]=d}}return c},saveTabbableState:function(c){var f=Ext.Element.tabbableSavedCounterAttribute,h=Ext.Element.tabbableSavedValueAttribute,g,d,b,e,i;if(!c||c.includeSaved==null){c=Ext.Object.chain(c||null);c.includeSaved=!0}d=this.findTabbableElements(c);for(e=0,i=d.length;e<i;e++){b=d[e];g=+b.getAttribute(f);if(g>0){b.setAttribute(f,++g)}else {if(b.hasAttribute('tabIndex')){b.setAttribute(h,b.getAttribute('tabIndex'))}else {b.setAttribute(h,'none')}b.setAttribute('tabIndex','-1');b.setAttribute(f,'1')}}return d},restoreTabbableState:function(c){var i=this.dom,d=Ext.Element.tabbableSavedCounterAttribute,g=Ext.Element.tabbableSavedValueAttribute,e=[],m=c&&c.skipSelf,l=c&&c.skipChildren,n=c&&c.reset,j,h,b,f,k;if(!i){return this}if(!l){e=Ext.Array.from(i.querySelectorAll('['+d+']'))}if(!m){e.unshift(i)}for(f=0,k=e.length;f<k;f++){b=e[f];if(!b.hasAttribute(d)||!b.hasAttribute(g)){continue}h=+b.getAttribute(d);if(!n&&h>1){b.setAttribute(d,--h);continue}j=b.getAttribute(g);if(j==='none'){b.removeAttribute('tabIndex')}else {b.setAttribute('tabIndex',j)}b.removeAttribute(g);b.removeAttribute(d)}return e},setTabIndex:function(c){var b=this.dom,d=Ext.Element.tabbableSavedValueAttribute;if(b.hasAttribute(d)){if(c==null){b.setAttribute(d,'none');b.removeAttribute('tabIndex')}else {b.setAttribute(d,c)}}else {if(c==null){b.removeAttribute('tabIndex')}else {b.setAttribute('tabIndex',c)}}},doAddListener:function(b,l,k,c,j,i,f){var d=this,m=b,g,h,e;b=Ext.canonicalEventName(b);if(!d.blockedEvents[b]){g=d.mixins.observable.doAddListener;c=c||{};if(a.useDelegatedEvents===!1){c.delegated=c.delegated||!1}if(c.translate!==!1){h=d.additiveEvents[b];if(h){c.type=b;b=h;g.call(d,b,l,k,c,j,i,f)}e=d.eventMap[b];if(e){c.type=c.type||b;if(f){c.managedName=m}b=e}}if(g.call(d,b,l,k,c,j,i,f)){if(d.longpressEvents[b]&&(++d.longpressListenerCount===1)){d.on('MSHoldVisual','preventMsHoldVisual',d)}}if(f&&e){delete c.managedName}delete c.type}},doRemoveListener:function(c,i,h){var b=this,d,f,g,e;c=Ext.canonicalEventName(c);if(!b.blockedEvents[c]){d=b.mixins.observable.doRemoveListener;g=b.additiveEvents[c];if(g){c=g;d.call(b,c,i,h)}f=b.eventMap[c];if(f){e=d.call(b,f,i,h)}e=d.call(b,c,i,h)||e;if(e){if(b.longpressEvents[c]&&!--b.longpressListenerCount){b.un('MSHoldVisual','preventMsHoldVisual',b)}}}},_initEvent:function(b){return (this.events[b]=new Ext.dom.ElementEvent(this,b))},_getDisplay:function(){var c=this.getData(),b=c[F];if(b===undefined){c[F]=b=''}return b},_getPublisher:function(b,e){var d=Ext.event.publisher.Publisher,c=d.publishersByEvent[b],f=e&&!Ext.event.Event.gestureEvents[b];if(f||!c||(this.dom===window&&b==='resize')){c=d.publishers.dom}return c},isFocusSuspended:function(){var b=this.peekData();return b&&b.suspendFocusEvents},preventMsHoldVisual:function(b){b.preventDefault()},suspendFocusEvents:function(){if(!this.isFly){this.suspendEvent('focus','blur')}this.getData().suspendFocusEvents=!0},resumeFocusEvents:function(){function resumeFn(){var b;if(!this.destroyed){b=this.getData();if(b){b.suspendFocusEvents=!1}if(!this.isFly){this.resumeEvent('focus','blur')}}}if(!this.destroyed&&this.getData().suspendFocusEvents){if(Ext.isIE&&!this.isFly){this.resumeFocusEventsTimer=Ext.asap(resumeFn,this)}else {resumeFn.call(this)}}}},deprecated:{'5.0':{methods:{getHTML:'getHtml',getPageBox:function(l){var e=this,c=e.dom,d=c.nodeName==='BODY',k=d?a.getViewportWidth():c.offsetWidth,g=d?a.getViewportHeight():c.offsetHeight,b=e.getXY(),j=b[1],i=b[0]+k,f=b[1]+g,h=b[0];if(l){return new Ext.util.Region(j,i,f,h)}else {return {left:h,top:j,width:k,height:g,right:i,bottom:f}}},isTransparent:function(c){var b=this.getStyle(c);return b?W.test(b):!1},purgeAllListeners:'clearListeners',removeAllListeners:'clearListeners',setHTML:'setHtml'}}}}},function(b){var e=document,y=e.documentElement,i=b.prototype,n=Ext.supports,o='pointerdown',p='pointermove',q='pointerup',r='pointercancel',s='MSPointerDown',t='MSPointerMove',u='MSPointerUp',v='MSPointerCancel',g='mousedown',h='mousemove',c='mouseup',w='mouseover',x='mouseout',A='mouseenter',B='mouseleave',j='touchstart',k='touchmove',l='touchend',m='touchcancel',E='click',D='dblclick',F='tap',C='doubletap',a=i.eventMap={},d=i.additiveEvents={},z=Ext.id,f;i._init(b);delete i._init;Ext.id=function(c,f){var d=c&&Ext.getDom(c,!0),e,a;if(!d){a=z(c,f)}else if(!(a=d.id)){a=z(null,f||b.prototype.identifiablePrefix);if(Ext.isSandboxed){e=Ext.sandboxPrefix||(Ext.sandboxPrefix=Ext.sandboxName.toLowerCase()+'-');a=e+a}d.id=a}return a};if(n.PointerEvents){a[g]=o;a[h]=p;a[c]=q;a[j]=o;a[k]=p;a[l]=q;a[m]=r;a[w]='pointerover';a[x]='pointerout';a[A]='pointerenter';if(!Ext.isIE11){a[B]='pointerleave'}}else if(n.MSPointerEvents){a[o]=s;a[p]=t;a[q]=u;a[r]=v;a[g]=s;a[h]=t;a[c]=u;a[j]=s;a[k]=t;a[l]=u;a[m]=v;a[w]='MSPointerOver';a[x]='MSPointerOut'}else if(n.TouchEvents){a[o]=j;a[p]=k;a[q]=l;a[r]=m;a[g]=j;a[h]=k;a[c]=l;a[E]=F;a[D]=C;if(Ext.os.is.Desktop){a[j]=g;a[k]=h;a[l]=c;a[m]=c;d[g]=g;d[h]=h;d[c]=c;d[j]=j;d[k]=k;d[l]=l;d[m]=m;d[o]=g;d[p]=h;d[q]=c;d[r]=c}}else {a[o]=g;a[p]=h;a[q]=c;a[r]=c;a[j]=g;a[k]=h;a[l]=c;a[m]=c}if(Ext.isWebKit){a.transitionend=Ext.browser.getVendorProperyName('transitionEnd');a.animationstart=Ext.browser.getVendorProperyName('animationStart');a.animationend=Ext.browser.getVendorProperyName('animationEnd')}if(!Ext.supports.MouseWheel&&!Ext.isOpera){a.mousewheel='DOMMouseScroll'}f=i.$eventOptions=Ext.Object.chain(i.$eventOptions);f.translate=f.capture=f.delegate=f.delegated=f.stopEvent=f.preventDefault=f.stopPropagation=f.element=1;i.styleHooks.opacity={name:'opacity',afterSet:function(e,c,d){var a=d.shadow;if(a){a.setOpacity(c)}}};i.getTrueXY=i.getXY;Ext.getViewportHeight=b.getViewportHeight;Ext.getViewportWidth=b.getViewportWidth;Ext.select=b.select;Ext.query=b.query;Ext.apply(Ext,{get:function(a){return b.get(a)},getDom:function(a){if(!a||!e){return null}return typeof a==='string'?Ext.getElementById(a):'dom' in a?a.dom:a},getBody:function(){if(!Ext._bodyEl){if(!e.body){throw new Error("[Ext.getBody] document.body does not yet exist")}Ext._bodyEl=Ext.get(e.body);Ext._bodyEl.skipGarbageCollection=!0}return Ext._bodyEl},getHead:function(){if(!Ext._headEl){Ext._headEl=Ext.get(e.head||e.getElementsByTagName('head')[0]);Ext._headEl.skipGarbageCollection=!0}return Ext._headEl},getDoc:function(){if(!Ext._docEl){Ext._docEl=Ext.get(e);Ext._docEl.skipGarbageCollection=!0}return Ext._docEl},getWin:function(){if(!Ext._winEl){Ext._winEl=Ext.get(window);Ext._winEl.skipGarbageCollection=!0}return Ext._winEl},removeNode:function(a){a=a.dom||a;var e=a&&a.id,d=Ext.cache[e],c;if(d){d.destroy()}else if(a&&(a.nodeType===3||a.tagName.toUpperCase()!=='BODY')){c=a.parentNode;if(c){c.removeChild(a)}}}});Ext.isGarbage=function(a){return a&&a.nodeType===1&&a.tagName!=='BODY'&&a.tagName!=='HTML'&&(!a.parentNode||(a.offsetParent===null&&((Ext.isIE8?e.all[a.id]:e.getElementById(a.id))!==a)&&!(Ext.detachedBodyEl&&Ext.detachedBodyEl.isAncestor(a))))};Ext.onInternalReady(function(){var a=[],c;Ext.getDoc().on('selectstart',function(h,a){var g=b.selectableCls,f=b.unselectableCls,c=a&&a.tagName,d=new Ext.dom.Fly();c=c&&c.toLowerCase();if(c==='input'||c==='textarea'){return}while(a&&a.nodeType===1&&a!==e.documentElement){d.attach(a);if(d.hasCls(g)){return}if(d.hasCls(f)){h.stopEvent();return}a=a.parentNode}});if(Ext.os.is.Android||(Ext.os.is.Windows&&Ext.supports.Touch)){var d=Ext.getWin();b._documentWidth=b._viewportWidth=y.clientWidth;b._documentHeight=b._viewportHeight=y.clientHeight;d.on({focusin:'_onWindowFocusChange',focusout:'_onWindowFocusChange',pointerup:'_onWindowFocusChange',capture:!0,delegated:!1,delay:1,scope:b});d.on({resize:'_onWindowResize',priority:2000,scope:b})}if(n.Touch){a.push(Ext.baseCSSPrefix+'touch')}if(Ext.isIE&&Ext.isIE9m){a.push(Ext.baseCSSPrefix+'ie',Ext.baseCSSPrefix+'ie9m');a.push(Ext.baseCSSPrefix+'ie8p');if(Ext.isIE8){a.push(Ext.baseCSSPrefix+'ie8')}else {a.push(Ext.baseCSSPrefix+'ie9',Ext.baseCSSPrefix+'ie9p')}if(Ext.isIE8m){a.push(Ext.baseCSSPrefix+'ie8m')}}if(Ext.isIE10){a.push(Ext.baseCSSPrefix+'ie10')}if(Ext.isIE10p){a.push(Ext.baseCSSPrefix+'ie10p')}if(Ext.isIE11){a.push(Ext.baseCSSPrefix+'ie11')}if(Ext.isEdge){a.push(Ext.baseCSSPrefix+'edge')}if(Ext.isGecko){a.push(Ext.baseCSSPrefix+'gecko')}if(Ext.isOpera){a.push(Ext.baseCSSPrefix+'opera')}if(Ext.isOpera12m){a.push(Ext.baseCSSPrefix+'opera12m')}if(Ext.isWebKit){a.push(Ext.baseCSSPrefix+'webkit')}if(Ext.isSafari){a.push(Ext.baseCSSPrefix+'safari')}if(Ext.isSafari9){a.push(Ext.baseCSSPrefix+'safari9')}if(Ext.isSafari10){a.push(Ext.baseCSSPrefix+'safari10')}if(Ext.isSafari){if(Ext.browser.version.isLessThan(11)){a.push(Ext.baseCSSPrefix+'safari10m')}if(Ext.browser.version.isLessThan(9)){a.push(Ext.baseCSSPrefix+'safari8m')}}if(Ext.isChrome){a.push(Ext.baseCSSPrefix+'chrome')}if(Ext.isMac){a.push(Ext.baseCSSPrefix+'mac')}if(Ext.isWindows){a.push(Ext.baseCSSPrefix+'windows')}if(Ext.isLinux){a.push(Ext.baseCSSPrefix+'linux')}if(!n.CSS3BorderRadius){a.push(Ext.baseCSSPrefix+'nbr')}if(!n.CSS3LinearGradient){a.push(Ext.baseCSSPrefix+'nlg')}if(n.Touch){a.push(Ext.baseCSSPrefix+'touch')}if(Ext.os.deviceType){a.push(Ext.baseCSSPrefix+Ext.os.deviceType.toLowerCase())}if(Ext.os.is.BlackBerry){a.push(Ext.baseCSSPrefix+'bb');if(Ext.browser.userAgent.match(/Kbd/gi)){a.push(Ext.baseCSSPrefix+'bb-keyboard')}}if(Ext.os.is.iOS&&Ext.isSafari){a.push(Ext.baseCSSPrefix+'mobile-safari')}if(Ext.os.is.iOS&&Ext.browser.is.WebView&&!Ext.browser.is.Standalone){a.push(Ext.baseCSSPrefix+'ios-native')}if(Ext.supports.FlexBoxBasisBug){a.push(Ext.baseCSSPrefix+'has-flexbasis-bug')}Ext.getBody().addCls(a);c=Ext.theme;if(c&&c.getDocCls){Ext.fly(document.documentElement).addCls(c.getDocCls())}},null,{priority:1500})});Ext.define('Ext.overrides.dom.Element',{override:'Ext.dom.Element',_positionTopLeft:['position','top','left'],setX:function(b,a){return this.setXY([b,this.getY()],a)},setXY:function(b,a){var c=this;if(!a){c.callParent([b])}else {if(!Ext.isObject(a)){a={}}c.animate(Ext.applyIf({to:{x:b[0],y:b[1]}},a))}return this},setY:function(b,a){return this.setXY([this.getX(),b],a)},translateXY:function(a,g){var f=this,e=f.el,d=e.getStyle(f._positionTopLeft),h=d.position==='relative',b=parseFloat(d.left),c=parseFloat(d.top),i=f.getXY();if(Ext.isArray(a)){g=a[1];a=a[0]}if(isNaN(b)){b=h?0:e.dom.offsetLeft}if(isNaN(c)){c=h?0:e.dom.offsetTop}b=(typeof a==='number')?a-i[0]+b:undefined;c=(typeof g==='number')?g-i[1]+c:undefined;return {x:b,y:c}},visit:function(b){var m=this,c=m.dom,k=b.skipSelf,f=b.excludeRoot,j=b.callback||b.fn,l=b.scope||this,h=b.reverse,g=b.selector,i=b.include||NodeFilter.SHOW_ELEMENT,d=document.createTreeWalker(c,i,null,!1),e=null,a=c;if(h){for(a=c.lastElementChild;a.lastElementChild;a=a.lastElementChild){}d.currentNode=a}for(;e!==!1&&a;a=h?d.previousNode():d.nextNode()){if(!(f&&f.contains(a))){if(!(a===c&&k)){if(!(g&&!a[Ext.supports.matchesSelector](g))){e=Ext.callback(j,l,[a])}}}}return e}});Ext.define('Ext.GlobalEvents',{extend:Ext.mixin.Observable,alternateClassName:'Ext.globalEvents',observableType:'global',singleton:!0,resizeBuffer:100,idleEventMask:{mousemove:1,touchmove:1,pointermove:1,MSPointerMove:1,unload:1},windowListeners:{resize:{fn:'fireResize'}},constructor:function(){var a=this;a.callParent();Ext.onInternalReady(function(){a.attachListeners()})},setPressedComponent:function(c,d){var a=this,b=a.pressedComponent;if(b&&b.onRelease){b.onRelease(d)}a.pressedComponent=c;if(c){a.pressedScrollStart=Ext.on({scrollstart:function(){a.setPressedComponent(null,d)},destroyable:!0})}else {a.pressedScrollStart=Ext.destroy(a.pressedScrollStart)}},attachListeners:function(){var a=this,c=Ext.getWin(),b=a.windowListeners;a.onlineState=Ext.isOnline();a.curHeight=Ext.Element.getViewportHeight();a.curWidth=Ext.Element.getViewportWidth();c.on({scope:a,online:'handleOnlineChange',offline:'handleOnlineChange'});if(b){b.scope=a;if(Ext.isModern){b.resize.onFrame=!0}else {b.resize.buffer=a.resizeBuffer}c.on(b)}Ext.getDoc().on({touchstart:'fireMouseDown',mousedown:'fireMouseDown',mouseup:'fireMouseUp',touchend:'fireMouseUp',drop:'fireMouseUp',dragend:'fireMouseUp',scope:a})},fireMouseDown:function(a){this.fireEvent('mousedown',a);Ext.ComponentManager.handleDocumentMouseDown(a)},fireMouseUp:function(a){this.fireEvent('mouseup',a);this.setPressedComponent(null,a)},fireResize:function(){var a=this,d=Ext.Element,c=d.getViewportWidth(),b=d.getViewportHeight();if(a.curHeight!==b||a.curWidth!==c){a.curHeight=b;a.curWidth=c;if(a.hasListeners.resize){a.fireEvent('resize',c,b)}}},handleOnlineChange:function(){var a=Ext.isOnline();if(a!==this.onlineState){this.onlineState=a;this.fireEvent('onlinechange',a)}}},function(a){Ext.hasListeners=a.hasListeners;Ext.on=function(){return a.addListener.apply(a,arguments)};Ext.un=function(){return a.removeListener.apply(a,arguments)};Ext.fireEvent=function(){return a.fireEvent.apply(a,arguments)};Ext.fireIdle=function(){if(a.hasListeners.idle&&!Ext._suppressIdle){a.fireEventArgs('idle')}Ext._suppressIdle=!1};Ext._suppressIdle=!1});Ext.define('Ext.Glyph',{isGlyph:!0,constructor:function(a){if(a){this.setGlyph(a)}},setGlyph:function(a){var b;this.glyphConfig=a;if(typeof a==='string'){b=a.split('@');a=isNaN(b[0])?parseInt('0'+b[0],16):parseInt(b[0],10);if(isNaN(a)||!a){a=b[0].charCodeAt(0)}this.fontFamily=b[1]||Ext._glyphFontFamily}else {this.fontFamily=Ext._glyphFontFamily}this.codepoint=a;this.character=Ext.String.fromCodePoint(this.codepoint);return this},getStyle:function(){return {'font-family':this.fontFamily}},isEqual:function(a){return a&&a.isGlyph&&a.codepoint===this.codepoint&&a.fontFamily===this.fontFamily},statics:(function(){var a;return {fly:function(b){return b.isGlyph?b:(a||(a=new Ext.Glyph())).setGlyph(b)}}})()});Ext.USE_NATIVE_JSON=!0;Ext.JSON=(new (function(){var me=this,hasNative=window.JSON&&JSON.toString()==='[object JSON]',useHasOwn=!!{}.hasOwnProperty,pad=function(a){return a<10?"0"+a:a},doDecode=function(json){return eval("("+json+')')},doEncode=function(a,b){if(a===null||a===undefined){return "null"}else if(Ext.isDate(a)){return me.encodeDate(a)}else if(Ext.isString(a)){if(Ext.isMSDate(a)){return me.encodeMSDate(a)}else {return me.encodeString(a)}}else if(typeof a==="number"){return isFinite(a)?String(a):"null"}else if(Ext.isBoolean(a)){return String(a)}else if(typeof a.toJSON==='function'){return doEncode(a.toJSON())}else if(Ext.isArray(a)){return encodeArray(a,b)}else if(Ext.isObject(a)){return encodeObject(a,b)}else if(typeof a==="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(a){return '"'+a.replace(charToReplace,function(b){var c=m[b];return typeof c==='string'?c:'\\u'+('0000'+b.charCodeAt(0).toString(16)).slice(-4)})+'"'},encodeMSDate=function(a){return '"'+a+'"'},encodeArrayPretty=function(e,d){var f=e.length,c=d+'   ',g=','+c,a=["[",c],b;for(b=0;b<f;b+=1){a.push(me.encodeValue(e[b],c),g)}a[a.length-1]=d+']';return a.join('')},encodeObjectPretty=function(e,f){var d=f+'   ',g=','+d,b=["{",d],c,a;for(c in e){a=e[c];if(!useHasOwn||e.hasOwnProperty(c)){if(typeof a==='function'||a===undefined||a.isInstance){continue}b.push(me.encodeValue(c)+': '+me.encodeValue(a,d),g)}}b[b.length-1]=f+'}';return b.join('')},encodeArray=function(c,d){if(d){return encodeArrayPretty(c,d)}var a=["[",""],e=c.length,b;for(b=0;b<e;b+=1){a.push(me.encodeValue(c[b]),',')}a[a.length-1]=']';return a.join("")},encodeObject=function(d,e){if(e){return encodeObjectPretty(d,e)}var b=["{",""],c,a;for(c in d){a=d[c];if(!useHasOwn||d.hasOwnProperty(c)){if(typeof a==='function'||a===undefined){continue}b.push(me.encodeValue(c),":",me.encodeValue(a),',')}}b[b.length-1]='}';return b.join("")};me.encodeString=encodeString;me.encodeValue=doEncode;me.encodeDate=function(a){return '"'+a.getFullYear()+"-"+pad(a.getMonth()+1)+"-"+pad(a.getDate())+"T"+pad(a.getHours())+":"+pad(a.getMinutes())+":"+pad(a.getSeconds())+'"'};me.encode=function(a){if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.stringify(a)}return me.encodeValue(a)};me.decode=function(a,b){try{if(hasNative&&Ext.USE_NATIVE_JSON){return JSON.parse(a)}return doDecode(a)}catch(c){if(b){return null}Ext.raise({sourceClass:"Ext.JSON",sourceMethod:"decode",msg:"You're trying to decode an invalid JSON String: "+a})}};me.encodeMSDate=encodeMSDate;if(!Ext.util){Ext.util={}}Ext.util.JSON=me;Ext.encode=me.encode;Ext.decode=me.decode})());Ext.define('Ext.mixin.Inheritable',{extend:Ext.Mixin,mixinConfig:{id:'inheritable'},getInherited:function(i){var a=this,b=(i&&a.inheritedStateInner)||a.inheritedState,h=a.getRefOwner(),f=a.isContainer,d,e,g,c;if(!b||b.invalid){d=a.getRefOwner();c=a.ownerLayout;if(h){g=c?c===h.layout:!0}a.inheritedState=b=Ext.Object.chain(d?d.getInherited(g):Ext.rootInheritedState);if(f){a.inheritedStateInner=e=Ext.Object.chain(b)}a.initInheritedState(b,e);b=(f&&i)?a.inheritedStateInner:a.inheritedState}return b},getInheritedConfig:function(b,e){var a=this.inheritedState,d,c;if(!a||a.invalid){a=this.getInherited()}c=a[b];if(e&&a.hasOwnProperty(b)){d=c;delete a[b];c=a[b];a[b]=d}return c},resolveListenerScope:function(f,d){var a=this,e=(typeof d==='boolean'),b=Ext._namedScopes[f],c;if(!b){c=a.getInheritedConfig('defaultListenerScope',e?d:!0)||f||a}else if(b.isController){c=a.getInheritedConfig('controller',e?d:!b.isSelf)}else if(b.isOwner){c=a.getRefOwner()}else if(b.isSelf){c=a.getInheritedConfig('defaultListenerScope',e&&d)||a}else if(b.isThis){c=a}return c||null},resolveSatelliteListenerScope:function(e,d){var c=this,b=Ext._namedScopes[d],a;if(!b){a=c.getInheritedConfig('defaultListenerScope')||d||c}else if(b.isController){a=c.getInheritedConfig('controller')}else if(b.isSelf){a=c.getInheritedConfig('defaultListenerScope')||e}else if(b.isThis){a=e}return a||null},lookupNameHolder:function(a){return this.getInheritedConfig('nameHolder',a!==!1)||null},lookupReferenceHolder:function(a){return this.getInheritedConfig('referenceHolder',a!==!1)||null},getRefOwner:function(){var a=this;return a.ownerCmp||a.ownerCt||a.parent||a.$initParent||a.floatParent},bubble:function(d,b,c){var a;for(a=this;a;a=a.getRefOwner()){if(d.apply(b||a,c||[a])===!1){break}}},isDescendantOf:function(a){return a?a.isAncestor(this):!1},isAncestor:function(a){while(a){if(a.getRefOwner()===this){return !0}a=a.getRefOwner()}return !1},invalidateInheritedState:function(){var a=this.inheritedState;if(a){a.invalid=!0;delete this.inheritedState}},privates:{_fixReference:function(){var b=this,a;if(b.name&&b.nameable){a=b.lookupNameHolder();if(a&&!a.destroyed){a.attachNameRef(b)}}if(b.reference){a=b.lookupReferenceHolder();if(a&&!a.destroyed){a.attachReference(b)}}},onInheritedAdd:function(c,b){var a=this;if(a.inheritedState&&b){a.invalidateInheritedState()}Ext.ComponentManager.markReferencesDirty()},onInheritedRemove:function(b){var a=this;Ext.ComponentManager.markReferencesDirty();if(a.inheritedState&&!b){a.invalidateInheritedState()}}}},function(){Ext.rootInheritedState={}});Ext.define('Ext.mixin.Bindable',{mixinId:'bindable',config:{bind:{$value:null,lazy:!0},controller:null,defaultListenerScope:!1,publishes:{$value:null,lazy:!0,merge:function(a,b){return this.mergeSets(a,b)}},session:{$value:null,lazy:!0},twoWayBindable:{$value:null,lazy:!0,merge:function(a,b){return this.mergeSets(a,b)}},viewModel:{$value:null,lazy:!0}},defaultBindProperty:null,nameable:!1,shareableName:!1,reference:null,validRefRe:/^[a-z_][a-z0-9_]*$/i,getReference:function(){return this.reference},initInheritedState:function(b){var a=this,f=a.reference,c=a.getController(),d=a.getConfig('viewModel',!0),e=a.getConfig('session',!0),g=a.getDefaultListenerScope();if(c){b.controller=c}if(g){b.defaultListenerScope=a}else if(c){b.defaultListenerScope=c}if(d){if(!d.isViewModel){d=a}b.viewModel=d}if(e){if(!e.isSession){e=a}b.session=e}if(f){a.referenceKey=(b.referencePath||'')+f;a.viewModelKey=(b.viewModelPath||'')+f}},isBound:function(b){var a=this.getBind();return !!(a&&(a[b||this.defaultBindProperty]))},lookupController:function(a){return this.getInheritedConfig('controller',a)||null},lookupSession:function(b){var a=b?null:this.getSession();if(!a){a=this.getInheritedConfig('session',b);if(a&&!a.isSession){a=a.getInherited().session=a.getSession()}}return a||null},lookupViewModel:function(b){var a=b?null:this.getViewModel();if(!a){a=this.getInheritedConfig('viewModel',b);if(a&&!a.isViewModel){a=a.getInherited().viewModel=a.getViewModel()}}return a||null},publishState:function(c,a){var b=this,e=b.publishedState,i=b.getBind(),d=i&&c&&i[c],j=0,h,g,k,f;if(d&&!d.syncing&&!d.isReadOnly()){if(d.calls||!(a==null||a===b.getInitialConfig()[c])){d.setValue(a)}}if(!(g=b.getPublishes())){return}if(!(k=b.lookupViewModel())){return}if(!(f=b.viewModelKey)){return}e=e||(b.publishedState={});if(c){if(!g[c]){return}if(!(a&&a.constructor===Object)&&!(a instanceof Array)){if(e[c]===a){return}}f+='.';f+=c}else {for(h in g){++j;e[h]=b.getConfig(h)}if(!j){return}a=e}k.set(f,a)},privates:{applyBind:function(e,c){if(!e){return c}var b=this,j=b.lookupViewModel(),h=b.getTwoWayBindable(),i=b._getBindTemplateScope,a,f,d,g;if(typeof e==='string'){a=e;e={};e[b.defaultBindProperty]=a}for(d in e){g=e[d];a=c&&c[d];if(a){a.destroy();delete c[d]}if(g){if(!a&&h&&h[d]){(f||(f={}))[d]='_onConfigPropChange'}a=j.bind(g,b.onBindNotify,b);a._config=Ext.Config.get(d);a.getTemplateScope=i;(c||(c={}))[d]=a}}if(f){f.scope=b;b.watchConfig(f)}b.$bindings=c;return c},applyController:function(a){if(a){a=Ext.Factory.controller(a);a.setView(this)}this.controller=a;return a},updatePublishes:function(b){var d=this,c,a;if(b&&d.lookupViewModel()){for(c in b){if(b[c]){(a||(a={}))[c]='_onConfigPropChange'}}if(a){a.scope=d;d.watchConfig(a)}}return b},applySession:function(a){var b,c;if(!a){return null}if(!a.isSession){b=this.lookupSession(!0);c=(a===!0)?{}:a;if(b){a=b.spawn(c)}else {a=new Ext.data['Session'](c)}}return a},applyViewModel:function(a){var c=this,b,d;if(!a){return null}if(!a.isViewModel){b={parent:c.lookupViewModel(!0),view:c};b.session=c.getSession();if(!d&&!b.parent){b.session=c.lookupSession()}if(a){if(a.constructor===Object){Ext.apply(b,a)}else if(typeof a==='string'){b.type=a}}a=Ext.Factory.viewModel(b)}return a},_getBindTemplateScope:function(){return this.scope.resolveListenerScope()},destroyBindable:function(){var a=this,c=a.getConfig('viewModel',!0),b=a.getConfig('session',!0),d=a.getController();if(c&&c.isViewModel){c.destroy();a.setViewModel(null)}if(b&&b.isSession){if(b.getAutoDestroy()){b.destroy()}a.setSession(null)}if(d){a.setController(null);d.destroy()}},initBindable:function(){var a=this,b=a.controller;a.initBindable=Ext.emptyFn;a.getBind();a.getPublishes();if(!a.viewModel){a.getViewModel()}if(b){b.initBindings()}if(a.reference){a.publishState()}},isSyncing:function(d){var b=this.getBind(),c=!1,a;if(b){a=b[d];if(a){c=a.syncing>0}}return c},notifyIf:function(b){var a=this.lookupViewModel(b);if(a){a.notify()}},onBindNotify:function(b,c,a){a.syncing=(a.syncing+1)||1;this[a._config.names.set](b);--a.syncing},_onConfigPropChange:function(c,b,a){c.publishState(b,a)},removeBindings:function(){var d=this,b=d.$bindings,a,c;if(b){for(c in b){a=b[c];if(a){a.destroy();a._config=a.getTemplateScope=null;b[c]=null}}}},updateSession:function(a){var b=this.getInherited();if(a){b.session=a}else {delete b.session}},updateViewModel:function(a,e){var b=this,d=b.getInherited(),c=b.getController();if(a){b.hasVM=!0;d.viewModel=a;a.setView(b);if(c){c.initViewModel(a)}}else {delete d.viewModel}b.viewModel=a}}});Ext.define('Ext.mixin.ComponentDelegation',{extend:Ext.Mixin,mixinConfig:{id:'componentDelegation'},privates:{addDelegatedListener:function(b,k,j,a,d,i,h){var c=this,e,g,f;b=Ext.canonicalEventName(b);d=d||a.order;if(d){f=(a&&a.priority);if(!f){a=a?Ext.Object.chain(a):{};a.priority=c.$orderToPriority[d]}}e=c.$delegatedEvents||(c.$delegatedEvents={});g=e[b]||(e[b]=new Ext.util.Event(c,b));if(g.addListener(k,j,a,i,h)){c.$hasDelegatedListeners._incr_(b)}},clearDelegatedListeners:function(){var e=this,a=e.$delegatedEvents,b,c,d;if(a){for(b in a){c=a[b];d=c.listeners.length;c.clearListeners();e.$hasDelegatedListeners._decr_(b,d);delete a[b]}}},doFireDelegatedEvent:function(f,g){var e=this,d=!0,a,b,c;if(e.$hasDelegatedListeners[f]){a=e.getRefOwner();while(a){b=a.$delegatedEvents;if(b){c=b[f];if(c){d=c.fireDelegated(e,g);if(d===!1){break}}}a=a.getRefOwner()}}return d},removeDelegatedListener:function(c,f,e){var d=this,b=d.$delegatedEvents,a;if(b){a=b[c];if(a&&a.removeListener(f,e)){d.$hasDelegatedListeners._decr_(c);if(a.listeners.length===0){delete b[c]}}}},destroyComponentDelegation:function(){if(this.clearPropertiesOnDestroy){this.$delegatedEvents=null}}},onClassMixedIn:function(a){function HasListeners(){}a.prototype.HasListeners=a.HasListeners=HasListeners;HasListeners.prototype=a.hasListeners=new Ext.mixin.ComponentDelegation.HasDelegatedListeners()}},function(a){function HasDelegatedListeners(){}a.HasDelegatedListeners=HasDelegatedListeners;HasDelegatedListeners.prototype=a.prototype.$hasDelegatedListeners=new Ext.mixin.Observable.HasListeners()});Ext.define('Ext.plugin.Abstract',{alternateClassName:'Ext.AbstractPlugin',mixins:[Ext.mixin.Identifiable],isPlugin:!0,constructor:function(a){if(a){this.cmp=a.cmp;this.pluginConfig=a;this.initConfig(a)}},init:Ext.emptyFn,destroy:function(){var a=this;a.destroy=Ext.emptyFn;a.destroying=!0;a.cmp=a.pluginConfig=null;a.doDestroy();a.callParent()},doDestroy:Ext.emptyFn,clonePlugin:function(a){return new this.self(Ext.apply({},a,this.pluginConfig))},getCmp:function(){return this.cmp},setCmp:function(a){this.cmp=a},getStatefulOwner:function(){return [this.cmp,'plugins']},onClassExtended:function(d,b,e){var a=b.alias,c=d.prototype;if(a&&!b.ptype){if(Ext.isArray(a)){a=a[0]}c.ptype=a.split('plugin.')[1]}},resolveListenerScope:function(b){var a=this,d=a.getCmp(),c;if(d){c=d.resolveSatelliteListenerScope(a,b)}return c||a.mixins.observable.resolveListenerScope.call(a,b)},statics:{decode:function(a,e,f){if(a){var h=Ext.typeOf(a),c,d,b,g;if(h==='string'){b={};b[e]=a;a=[b]}else if(a.isInstance){a=[a]}else if(h==='object'){if(a[e]){a=[a]}else {b=f?Ext.merge(Ext.clone(f),a):a;a=[];for(d in b){if(!(g=b[d])){continue}c={id:d};c[e]=d;Ext.apply(c,g);a.push(c)}Ext.sortByWeight(a)}}else {a=a.slice()}}return a}}});Ext.define('Ext.mixin.Pluggable',function(a){return {mixinId:'pluggable',config:{plugins:null},addPlugin:function(b){var c=this,d=c.getPlugins();if(d){b=c.createPlugin(b);b.init(c);d.push(b)}else {c.setPlugins(b);b=c.getPlugins()[0]}return b},destroyPlugin:function(b){return this.removePlugin(b,!0)},findPlugin:function(f){var d=this.getPlugins(),g=d&&d.length,c,b,e;for(c=0;c<g&&!e;c++){b=d[c];if(b.type===f||b.ptype===f){e=b}}return e||null},getPlugin:function(f){var d=this.getPlugins(),g=d&&d.length,c,b,e;for(c=0;c<g&&!e;c++){b=d[c];if(b.id===f||b.pluginId===f){e=b}}return e||null},removePlugin:function(e,f){var c=this.getPlugins(),d=c&&c.length||0,b;while(d-->0){b=c[d];if(b===e||b.id===e){c.splice(d,1);if(f){if(b.destroy){b.destroy()}}else if(b.detachCmp){b.detachCmp();if(b.setCmp){b.setCmp(null)}}break}b=null}return b},privates:{statics:{idSeed:0},activatePlugin:function(h){var e=this,d=e.initialConfig,b=d&&d.plugins,i=null,f,c,g;if(b){c=e.config.plugins;c=(c&&typeof c==='object')?c:null;b=Ext.plugin.Abstract.decode(b,'type',c);for(f=b.length;f-->0;){g=b[f];if(g===h||g.type===h){e.initialConfig=d=Ext.apply({},d);d.plugins=b;b[f]=i=e.createPlugin(g);break}}}return i},applyPlugins:function(c,e){var h=this,g=e&&e.length||0,f,b,d;if(c){c=Ext.plugin.Abstract.decode(c,'type')}for(b=0;b<g;++b){e[b].$dead=!0}f=c&&c.length||0;for(b=0;b<f;++b){c[b]=h.createPlugin(c[b])}for(b=0;b<f;++b){d=c[b];if(d.$dead){delete d.$dead}else {d.init(h)}}for(b=0;b<g;++b){if((d=e[b]).$dead){delete d.$dead;Ext.destroy(d)}}return c},createPlugin:function(b){var c;if(typeof b==='string'){b={type:b}}c=b;if(!b.isInstance){b.cmp=this;c=Ext.factory(b,null,null,'plugin');delete b.cmp}if(!c.id){c.id=++a.idSeed}if(c.setCmp){c.setCmp(this)}return c}}}});Ext.define('Ext.mixin.Keyboard',function(a){return {extend:Ext.Mixin,mixinConfig:{id:'keyboard'},config:{keyMap:{$value:null,cached:!0,merge:function(c,h,j,i){var e,d,f,b,g;if(c===null){return c}e=(h&&!j.isInstance)?Ext.Object.chain(h):{};for(d in c){if(d!=='scope'){f=d.toUpperCase();if(!i||e[f]===undefined){b=c[d];if(b){if(typeof b==='string'||typeof b==='function'){b={handler:b}}else {b=Ext.apply({handler:b.fn},b)}g=b.scope||c.scope||'self';b.scope=(g==='controller')?'self.controller':g}e[f]=b}}}return e}},keyMapEnabled:null},keyMapTarget:'el',applyKeyMap:function(d,c){var b=this,e=b.hasOwnProperty('config');if(e&&c&&c.$owner!==b){c=Ext.apply({},c)}d=d?a.combineKeyMaps(c,d,e&&b):null;if(b._keyMapReady){b.setKeyMapListener(d&&b.getKeyMapEnabled())}return d},initKeyMap:function(){var b=this,c=b.getKeyMapEnabled();b._keyMapReady=!0;if(c===null){b.setKeyMapEnabled(!0)}else {b.setKeyMapListener(c&&b.getKeyMap())}},disableKeyMapGroup:function(b){this.setKeyMapGroupEnabled(b,!1)},enableKeyMapGroup:function(b){this.setKeyMapGroupEnabled(b,!0)},setKeyMapGroupEnabled:function(d,e){var b=this,c=b.disabledKeyMapGroups||(b.disabledKeyMapGroups={});c[d]=!e},updateKeyMapEnabled:function(b){this.setKeyMapListener(b&&this._keyMapReady&&this.getKeyMap())},privates:{_keyMapReady:!1,comparePriorities:function(b,c){return (c.priority||0)-(b.priority||0)},findKeyMapEntries:function(j){var e=this,f=e.disabledKeyMapGroups,g=e.getKeyMap(),b=g&&a.getKeyName(j),h=[],c,i,d;b=b&&g[b];if(b){if(!b.sorted){Ext.Array.sort(b,e.comparePriorities);b.sorted=!0}i=b.length;for(d=0;d<i;d++){c=b[d];if(!f||!f[c.group]){if(a.matchEntry(c,j)){h.push(c)}}}}return h},onKeyMapEvent:function(g){var f=this,c=f.getKeyMapEnabled()?f.findKeyMapEntries(g):null,h=c&&c.length,b,e,d;f.lastKeyMapEvent=g;for(b=0;b<h&&d!==!1;b++){e=c[b];d=Ext.callback(e.handler,e.scope,[g,this],0,this)}return d},setKeyMapListener:function(e){var b=this,d=b._keyMapListener,c;if(d){d.destroy();d=null}if(e){if(e){c=b[b.keyMapTarget];if(typeof c==='function'){c=c.call(b)}d=c.on({destroyable:!0,scope:b,keydown:'onKeyMapEvent',keypress:'onKeyMapEvent'})}}b._keyMapListener=d||null},statics:{_charCodeRe:/^#([\d]+)$/,_keySpecRe:/^(?:(?:(\*)[\+\-])|(?:([a-z\+\-]*)[\+\-]))?(?:([a-z0-9_]+|[\+\-]|(?:#?\d+))(?:\:([a-z]+))?)$/i,_delimiterRe:/-|\+/,_keyMapEvents:{charCode:'keypress',keyCode:'keydown'},combineKeyMaps:function(d,h,e){var i=h.scope||'controller',f,g,b,c;for(g in h){if(g==='scope'){continue}if(!(b=h[g])){if(!d){continue}}else {if(typeof b==='string'||typeof b==='function'){b={handler:b,scope:i}}else if(b){b=Ext.apply({handler:b.fn,scope:i},b)}d=d||{}}if(a.parseEntry(g,f=b||{})){c=d[f.name];if(c){if(e&&c.$owner!==e){d[f.name]=c=c.slice();c.$owner=e}c.push(b);c.sorted=!1}else {c=d[f.name]=[b];c.$owner=e;c.sorted=!0}}}if(d&&e){d.$owner=e}return d||null},getKeyName:function(b){var c;if(b.isEvent){c=b.keyCode||b.charCode;b=b.browserEvent;if(c===229&&'code' in b){if(Ext.String.startsWith(b.code,'Key')){return b.key.substr(3)}if(Ext.String.startsWith(b.code,'Digit')){return b.key.substr(5)}}}else {c=b}return Ext.event.Event.keyCodes[c]||String.fromCharCode(c)},matchEntry:function(b,d){var c=d.browserEvent,e;if(d.type!==b.event){return !1}if(!(e=b.charCode)){if(b.keyCode!==d.keyCode||(!b.ignoreModifiers&&!b.shiftKey!==!c.shiftKey)){return !1}}else if(d.getCharCode()!==e){return !1}return b.ignoreModifiers||(!b.ctrlKey===!c.ctrlKey&&!b.altKey===!c.altKey&&!b.metaKey===!c.metaKey&&!b.shiftKey===!c.shiftKey)},parseEntry:function(i,c){i=i.toUpperCase();var f=this,j=Ext.event.Event,m=j.keyFlags,b=f._keySpecRe.exec(i),h='keyCode',e,d,g,k,l;if(b){e=b[3];if(b[4]){c.group=b[4]}if(!(c.ignoreModifiers=!!b[1])&&b[2]){b=b[2].split(f._delimiterRe);l=b.length;for(g=0;g<l;g++){c[m[b[g]]]=!0}}c.name=e;if(isNaN(d=j[e])){if(!(k=f._charCodeRe.exec(e))){if(e.length===1){d=e.charCodeAt(0)}}else {d=+k[1]}if(d){h='charCode'}else {d=+e}c.name=a.getKeyName(d)}c.event=c.event||f._keyMapEvents[h];return !isNaN(d)&&(c[h]=d)}}}}}});Ext.define('Ext.mixin.Focusable',{mixinId:'focusable',$isFocusableEntity:!0,focusable:!1,hasFocus:!1,containsFocus:!1,focusCls:Ext.baseCSSPrefix+'focused',focusEl:'el',getFocusEl:function(){var a=this.focusEl;return a&&a.dom?a:null},getFocusClsEl:function(){return this.getFocusEl()},initFocusable:Ext.emptyFn,initFocusableEvents:function(a){this.initFocusableElement(a)},enableFocusable:Ext.emptyFn,disableFocusable:function(){var a=this;if(a.hasFocus){a.revertFocus()}a.removeFocusCls()},destroyFocusable:function(){var a=this;Ext.destroy(a.focusListeners);a.focusListeners=a.focusEnterEvent=a.focusTask=null;a.focusEl=a.ariaEl=null},isFocusable:function(c){var b=this,a;if(!b.focusable&&(!b.isContainer||!c)){return !1}a=b.getFocusEl();if(a&&b.canFocus()){return a&&!a.destroyed&&a.isFocusable(c)}return !1},isDestructing:function(){var a;for(a=this;a;a=a.getRefOwner()){if(a.destroying||a.destroyed){return !0}}return !1},canFocus:function(f,e){var a=this,c=a.ownerFocusableContainer,d=c&&c.allowFocusingDisabledChildren,b;b=!a.destroyed&&a.rendered&&!a.isDestructing()&&(a.isContainer||a.focusable)&&(!a.isDisabled()||d)&&(f||a.isVisible(!0));return b||(e&&!!a.findFocusTarget())},focus:function(d){var b=this,a,c;if((!b.focusable&&!b.isContainer)||b.destroyed||b.destroying){return !1}if(b.canFocus()&&(a=b.getFocusEl())){if(a.$isFocusableEntity){return a.focus.apply(a,arguments)}c=a.dom;if(c){a.focus();if(d&&(b.selectText||c.select)){if(b.selectText){if(Ext.isArray(d)){b.selectText.apply(b,d)}else {b.selectText()}}else {c.select()}}}else if(a.focus){a.focus()}else {return !1}}else {a=b.findFocusTarget();if(a&&a!==b){return a.focus.apply(a,arguments)}else {return !1}}return !0},onBlur:function(b){var a=this,c=a.ownerFocusableContainer;a.hasFocus=!1;if(a.beforeBlur&&!a.beforeBlur.$emptyFn){a.beforeBlur(b)}if(c){c.beforeFocusableChildBlur(a,b)}a.removeFocusCls(b);if(a.hasListeners.blur){a.fireEvent('blur',a,b)}if(a.postBlur&&!a.postBlur.$emptyFn){a.postBlur(b)}if(c){c.afterFocusableChildBlur(a,b)}},onFocus:function(b){var a=this,c=a.ownerFocusableContainer;if(a.canFocus()){if(a.beforeFocus&&!a.beforeFocus.$emptyFn){a.beforeFocus(b)}if(c){c.beforeFocusableChildFocus(a,b)}a.addFocusCls(b);if(!a.hasFocus){a.hasFocus=!0;a.fireEvent('focus',a,b)}if(a.postFocus&&!a.postFocus.$emptyFn){a.postFocus(b)}if(c){c.afterFocusableChildFocus(a,b)}}},getTabIndex:function(){var c=this,b,a;if(!c.focusable){return}b=c.getFocusEl();if(b){if(b.$isFocusableEntity){a=b.getTabIndex()}else if(b.isElement&&b.dom){a=b.dom.getAttribute('tabIndex');if(a!==null){a-=0}}else {return}}if(typeof a!=='number'){a=c.tabIndex}return a},setTabIndex:function(c,g){var a=this,e=a.ownerFocusableContainer,f=e&&e.allowFocusingDisabledChildren,d=a.focusable,b;if(!d&&!(a.forceTabIndex||c==null)){return}a.tabIndex=c;if(a.destroying||a.destroyed||(a.isDisabled()&&!f)){return}a.focusable=!0;b=g||a.getFocusEl();a.focusable=d;if(b){if(b.$isFocusableEntity){b.setTabIndex(c)}else if(b.isElement&&b.dom){b.setTabIndex(c)}}},onFocusEnter:function(b){var a=this;if(a.destroying||a.destroyed){return}a.focusEnterEvent=b;a.containsFocus=!0;if(a.hasListeners.focusenter){a.fireEvent('focusenter',a,b)}},onFocusLeave:function(b){var a=this;if(a.destroying||a.destroyed){return}a.focusEnterEvent=null;a.containsFocus=!1;if(a.hasListeners.focusleave){a.fireEvent('focusleave',a,b)}},onFocusMove:Ext.emptyFn,privates:{forceTabIndex:!1,revertFocus:function(){var d=this,c=d.focusEnterEvent,e=Ext.Element.getActiveElement(),a,b,f;if(c&&!d.preventRefocus&&d.el.contains(e)){b=c.fromComponent;if(b&&(b.destroyed||b.isDestructing())){a=document.body}else {a=c.relatedTarget}if(a===document.body){b=d.findFocusTarget();if(b){a=b.getFocusEl()}}if(a&&a.$isFocusableEntity){if(!a.destroyed&&a.isFocusable()){a.focus()}}else if(Ext.getDoc().contains(a)&&Ext.fly(a).isFocusable()){b=Ext.Component.from(a);if(b){b.revertFocusTo(a)}else {a.focus()}}else if(c.fromComponent&&c.fromComponent.focus){f=c.fromComponent.focus();if(!f){e.blur()}}}},revertFocusTo:function(a){a.focus()},findFocusTarget:function(){var g=this,c,a,f,b,d,e;if(g.preventRefocus){return null}for(c=[],a=g.getRefOwner();a;a=a.getRefOwner()){if(!a.isDisabled()){c.unshift(a)}}for(b=0,f=c.length;b<f;b++){a=c[b];if(a.destroying||!a.isVisible()){c.length=b;break}}for(b=c.length-1;b>=0;b--){a=c[b];d=Ext.ComponentQuery.query(':canfocus()',a);if(d.length){e=Ext.Array.indexOf(d,Ext.ComponentManager.getActiveComponent());return d[e+1]||d[e-1]||d[0]}if(a.isFocusable&&a.isFocusable()){return a}}},initFocusableElement:function(d){var b=this,c=b.getTabIndex(),a=b.getFocusEl();if(a&&!a.$isFocusableEntity){if(c!=null&&(d||b.canFocus(!0))){b.setTabIndex(c,a)}if(!a.dom.hasAttribute('data-componentid')){a.dom.setAttribute('data-componentid',b.id)}}},addFocusCls:function(c){var b=this.focusCls,a;a=this.getFocusClsEl();if(b){a=this.getFocusClsEl(c);if(a){a.addCls(b)}}},removeFocusCls:function(c){var b=this.focusCls,a;if(b){a=this.getFocusClsEl(c);if(a){a.removeCls(b)}}},handleFocusEvent:function(c){var b=this,a;if(!b.focusable||b.destroying||b.destroyed){return}if(b.isFocusing(c)){a=new Ext.event.Event(c.event);a.type='focus';a.relatedTarget=c.fromElement;a.target=c.toElement;b.onFocus(a)}},handleBlurEvent:function(b){var c=this,a;if(!c.focusable||c.destroying||c.destroyed){return}if(b.toElement===document.body||c.isBlurring(b)){a=new Ext.event.Event(b.event);a.type='blur';a.target=b.fromElement;a.relatedTarget=b.toElement;c.onBlur(a)}},isFocusing:function(b){var a=this.getFocusEl();if(a){if(a.isFocusing){return a.isFocusing(b)}else {return a.dom===document.activeElement&&b.toElement===a.dom&&b.fromElement!==b.toElement}}return !1},isBlurring:function(b){var a=this.getFocusEl();if(a){if(a.isFocusing){return a.isBlurring(b)}else {return a.dom!==document.activeElement&&b.fromElement===a.dom&&b.fromElement!==b.toElement}}return !1},blur:function(){var a=this,b;if(!a.focusable||!a.canFocus()){return}b=a.getFocusEl();if(b){a.blurring=!0;b.blur();delete a.blurring}},isTabbable:function(){var b=this,a;if(b.focusable){a=b.getFocusEl();if(a&&a.isTabbable()){return a.isTabbable()}}return !1},disableTabbing:function(){var c=this,b=c.el,a;if(c.destroying||c.destroyed){return}if(b){b.saveTabbableState()}a=c.getFocusEl();if(a){if(a.$isFocusableEntity){a.disableTabbing()}else if(a.isElement&&b&&!b.contains(a)){a.saveTabbableState()}}},enableTabbing:function(d){var c=this,b=c.el,a;if(c.destroying||c.destroyed){return}a=c.getFocusEl();if(a){if(a.$isFocusableEntity){a.enableTabbing()}else if(a.isElement&&b&&!b.contains(a)){a.restoreTabbableState()}}if(b){b.restoreTabbableState({reset:d})}}}},function(){var b=Ext.baseCSSPrefix+'keyboard-mode',a=!1;Ext.enableKeyboardMode=Ext.isModern||!Ext.os.is.Desktop;Ext.setKeyboardMode=Ext.setKeyboardMode||function(a){Ext.keyboardMode=a;Ext.getBody().toggleCls(b,a)};Ext.isTouchMode=function(){return (Ext.now()-Ext.lastTouchTime)<500};Ext.syncKeyboardMode=function(c){var b;if(!Ext.enableKeyboardMode){return}b=c.type;if(b==='pointermove'){a=!1}else {a=(b==='keydown');Ext.lastTouchTime=c.pointerType==='touch'&&Ext.now();Ext.setKeyboardMode(a)}};function keyboardModeFocusHandler(){if(a!==Ext.getBody().hasCls(b)){Ext.setKeyboardMode(a)}}Ext.getEnableKeyboardMode=function(){return Ext.enableKeyboardMode};Ext.setEnableKeyboardMode=function(b){var a={pointerdown:Ext.syncKeyboardMode,pointermove:Ext.syncKeyboardMode,keydown:Ext.syncKeyboardMode,capture:!0,delegated:!1};Ext.enableKeyboardMode=!!b;if(Ext.enableKeyboardMode){Ext.getWin().on(a);Ext.on('focus',keyboardModeFocusHandler)}else {Ext.getWin().un(a);Ext.un('focus',keyboardModeFocusHandler)}};Ext.onReady(function(){if(!Ext.enableKeyboardMode){Ext.getBody().addCls(b)}Ext.setEnableKeyboardMode(Ext.enableKeyboardMode)})});Ext.define('Ext.mixin.Accessible',{extend:Ext.Mixin,mixinConfig:{id:'accessible'},config:{ariaAttributes:{$value:null,lazy:!0}},ariaEl:'el',privates:{getAriaLabelEl:function(a){var e=[],c,b,f,d;if(a){if(Ext.isFunction(a)){return a.call(this)}else {if(!Ext.isArray(a)){a=[a]}c=this.lookupReferenceHolder();if(c){for(b=0,f=a.length;b<f;b++){d=c.lookupReference(a[b]);if(d){e.push(d.ariaEl.id)}}}}}return e.length?e.join(' '):null}}});Ext.define('Ext.Widget',{extend:Ext.Evented,xtype:'widget',alternateClassName:'Ext.Gadget',mixins:[Ext.mixin.Inheritable,Ext.mixin.Bindable,Ext.mixin.ComponentDelegation,Ext.mixin.Pluggable,Ext.mixin.Keyboard,Ext.mixin.Factoryable,Ext.mixin.Focusable,Ext.mixin.Accessible],isWidget:!0,factoryConfig:{creator:null,defaultProperty:'xtype',defaultType:'component',typeProperty:'xtype'},element:{reference:'element'},observableType:'component',cachedConfig:{cls:null,margin:null,style:null,border:null,touchAction:null,eventHandlers:{focus:'handleFocusEvent',blur:'handleBlurEvent'}},name:null,config:{renderTo:null,ui:null,userCls:null,ripple:null,hideMode:null,instanceCls:null},eventedConfig:{width:null,height:null,hidden:null,disabled:null},template:[],baseCls:null,classCls:null,classClsRoot:!0,classClsList:[],clearPropertiesOnDestroy:'async',focusEl:'element',ariaEl:'element',spaceRe:/\s+/,noBorderCls:Ext.baseCSSPrefix+'noborder-trbl',borderedCls:Ext.baseCSSPrefix+'bordered',disabledCls:Ext.baseCSSPrefix+'disabled',heightedCls:Ext.baseCSSPrefix+'heighted',widthedCls:Ext.baseCSSPrefix+'widthed',constructor:function(b){var a=this,e=a.baseCls,d=b&&b.renderTo,c;a.$iid=++Ext.$nextIid;if(e==null||e===!0){a.baseCls=a.classCls||Ext.baseCSSPrefix+a.xtype}if((b&&b.controller)||a.config.controller){a.referenceHolder=!0}a.initId(b);a.initElement();if(d){b=Ext.apply({},b);delete b.renderTo}a.mixins.observable.constructor.call(a,b);if(a.focusable){a.initFocusableEvents(!0)}a.syncUiCls();Ext.ComponentManager.register(a);c=a.getController();if(c){c.init(a)}if(d){a.setRenderTo(d)}},afterCachedConfig:function(){var c=this,j=c.self.prototype,f=c.referenceList,i=c.renderElement,d,h,a,b,g,e;j.renderTemplate=d=document.createDocumentFragment();d.appendChild(i.clone(!0,!0));e=d.querySelectorAll('[id]');for(a=0,b=e.length;a<b;a++){h=e[a];h.removeAttribute('id')}for(a=0,b=f.length;a<b;a++){g=f[a];c[g].dom.removeAttribute('reference')}},applyHidden:function(a){return !!a},applyDisabled:function(a){return !!a},updateDisabled:function(c){var b=this,a=b.ownerFocusableContainer;if(a){if(c){if(!a.beforeFocusableChildDisable.$nullFn){a.beforeFocusableChildDisable(b)}}else {if(!a.beforeFocusableChildEnable.$nullFn){a.beforeFocusableChildEnable(b)}}}b.element.toggleCls(b.disabledCls,c);if(b.focusable){if(c){b.disableFocusable()}else {b.enableFocusable()}}if(a){if(c){if(!a.onFocusableChildDisable.$nullFn){a.onFocusableChildDisable(b)}}else {if(!a.onFocusableChildEnable.$nullFn){a.onFocusableChildEnable(b)}}}},disable:function(){this.setDisabled(!0)},enable:function(){this.setDisabled(!1)},isDisabled:function(){return this.getDisabled()},isEnabled:function(){return !this.getDisabled()},applyTouchAction:function(a,b){if(b!=null){a=Ext.merge({},b,a)}return a},applyWidth:function(a){return this.filterLengthValue(a)},applyHeight:function(a){return this.filterLengthValue(a)},updateBorder:function(a){var b=this;a=a||a===null;b.toggleCls(b.noBorderCls,!a);b.toggleCls(b.borderedCls,!!a)},clearListeners:function(){var a=this;a.mixins.observable.clearListeners.call(a);a.mixins.componentDelegation.clearDelegatedListeners.call(a)},destroy:function(){var a=this;a.isDestroying=a.destroying=!0;a.destroy=Ext.emptyFn;a.doDestroy();a.clearListeners();a.mixins.componentDelegation.destroyComponentDelegation.call(a);a.callParent()},doDestroy:function(){var a=this,e=a.referenceList,d=a.ownerFocusableContainer,c,f,b;a.ownerCmp=null;if(d&&!d.onFocusableChildDestroy.$nullFn){d.onFocusableChildDestroy(a)}for(c=0,f=e.length;c<f;c++){b=e[c];if(a.hasOwnProperty(b)){a[b].destroy();a[b]=null}}a.destroyBindable();Ext.ComponentManager.unregister(a)},doFireEvent:function(c,e,f){var a=this,d,b;b=a.mixins.observable.doFireEvent.call(a,c,e,f);if(b!==!1&&!a.destroyed){d=a.events[c];if(!d||!d.suspended){b=a.mixins.componentDelegation.doFireDelegatedEvent.call(a,c,e)}}return b},getBubbleTarget:function(){return this.getRefOwner()},getElementConfig:function(){var b=this,a=b.element;if(!('children' in a)){a=Ext.apply({children:b.getTemplate()},a)}return a},getSize:function(){return this.el.getSize()},getTemplate:function(){return Ext.clone(this.template)},getClassCls:function(){var e=this.self.prototype,a=e,b,c,d,f;while(a){c=a.hasOwnProperty('classCls')?a.classCls:null;if(c){if(c instanceof Array){for(d=0,f=c.length;d<f;d++){(b||(b=[])).push(c[d])}}else {(b||(b=[])).push(c)}}if(a.classClsRoot&&a.hasOwnProperty('classClsRoot')){break}a=a.superclass}if(b){e.classClsList=b}return b},hide:function(){this.setHidden(!0)},initElement:function(){var a=this,i=a.self.prototype,q=a.getId(),s=a.referenceList=a.referenceList=[],k=!i.hasOwnProperty('renderTemplate'),p=i.hasOwnProperty('uiReferences')?i.uiReferences:(i.uiReferences={element:''}),f,g,o,h,e,d,m,b,c,n,j,l,r;if(k){f=document.createDocumentFragment();o=a.processElementConfig.call(i);g=Ext.Element.create(o,!0);f.appendChild(g);e=f.querySelectorAll('[uiCls]');for(d=0,m=e.length;d<m;d++){b=e[d];c=b.getAttribute('reference');j=b.getAttribute('uiCls');p[c]=j;b.removeAttribute('uiCls')}}else {f=a.renderTemplate.cloneNode(!0);g=f.firstChild}e=f.querySelectorAll('[reference]');for(d=0,m=e.length;d<m;d++){b=e[d];c=b.getAttribute('reference');if(!k){b.removeAttribute('reference')}if(c==='element'){b.id=q;h=a.el=a.addElementReference(c,b);h.dom.setAttribute('data-componentid',q);if(k){n=a.getClassCls();if(n){h.addCls(n)}l=a.baseCls;if(l&&(l!==a.classCls)){h.addCls(l)}}}else {j=p[c];if(j&&k){r=a.addElementReference(c,b);a.initUiReference(c,j,!1)}else {a.addElementReferenceOnDemand(c,b)}}if(c===a.focusEl){a.addElementReference('focusEl',b)}if(c===a.ariaEl){a.addElementReferenceOnDemand('ariaEl',b)}s.push(c)}if(g===h.dom){a.renderElement=h}else {a.addElementReferenceOnDemand('renderElement',g)}g.setAttribute(a.dataXid,a.$iid)},dataXid:'data-'+Ext.baseCSSPrefix.substr(0,Ext.baseCSSPrefix.length-1)+'id',is:function(a){return Ext.ComponentQuery.is(this,a)},isHidden:function(c){var b=!!this.getHidden(),a;if(!b&&c){a=this.getRefOwner();while(a&&a!==c&&!b){b=!!a.getHidden();a=a.getRefOwner()}}return b},isVisible:function(a){return this.rendered&&!this.destroyed&&!this.isHidden(a)},isXType:function(a,b){return b?(Ext.Array.indexOf(this.xtypes,a)!==-1):!!this.xtypesMap[a]},lookupTpl:function(a){return Ext.XTemplate.getTpl(this,a)},owns:function(a){var c=!1,b;if(a.isEvent){a=a.target}else if(a.isElement){a=a.dom}b=Ext.Component.from(a);if(b){c=(b===this)||(!!b.up(this))}return c},render:function(a,d){if(a&&a.isWidget){a=a.el}var e=this.renderElement.dom,c=Ext.getDom(a),b;if(Ext.isNumber(b)){d=c.childNodes[d]}b=Ext.getDom(d);if(c){if(b){c.insertBefore(e,b)}else {c.appendChild(e)}this.setRendered(Ext.getBody().contains(e),!0)}},toggleCls:function(a,b){this.element.toggleCls(a,b);return this},resolveListenerScope:function(a,b){return this.mixins.inheritable.resolveListenerScope.call(this,a,b)},setSize:function(a,b){if(a&&typeof a==='object'){return this.setSize(a.width,a.height)}if(a!==undefined){this.setWidth(a)}if(b!==undefined){this.setHeight(b)}},show:function(){this.setHidden(!1)},addCls:function(c,a,b){if(!this.destroyed){this.el.replaceCls(null,c,a,b)}},applyCls:function(a){return a&&Ext.dom.Element.splitCls(a)},applyUi:function(a){return this.parseUi(a,!0)},removeCls:function(c,a,b){if(!this.destroyed){this.el.replaceCls(c,null,a,b)}},replaceCls:function(b,a,c,d){if(!this.destroyed){this.el.replaceCls(b,a,c,d)}},hasCls:function(a){return this.el.hasCls(a)},updateCls:function(a,b){this.element.replaceCls(b,a)},updateHidden:function(c){var b=this,d=b.renderElement,a=b.ownerFocusableContainer;if(a){if(c){if(!a.beforeFocusableChildHide.$nullFn){a.beforeFocusableChildHide(b)}}else {if(!a.beforeFocusableChildShow.$nullFn){a.beforeFocusableChildShow(b)}}}else if(c){b.revertFocus()}if(d&&!d.destroyed){if(c){d.hide()}else {d.show()}}if(b.focusableContainer&&b.activateFocusableContainer){b.activateFocusableContainer(!c)}if(a){if(c){if(!a.onFocusableChildHide.$nullFn){a.onFocusableChildHide(b)}}else {if(!a.onFocusableChildShow.$nullFn){a.onFocusableChildShow(b)}}}},updateMargin:function(a){this.element.setMargin(a)},updateRipple:function(c){var b=this,a=b.el;if(a){a.un('touchstart','onRippleStart',b);a.un('touchend','onRippleStart',b);a.destroyAllRipples();if(c.release){a.on('touchend','onRippleStart',b)}else {a.on('touchstart','onRippleStart',b)}}},shouldRipple:function(e){var a=this,f=a.getDisabled&&a.getDisabled(),d=a.el,c=!f&&a.getRipple(),b;if(c&&e){b=e.getTarget(a.noRippleSelector);if(b){if((d.dom===b)||d.contains(b)){c=null}}}return c},onRippleStart:function(a){var b=this.shouldRipple(a);if(a.button===0&&b){this.el.ripple(a,b)}},applyStyle:function(a,b){if(b&&a===b&&Ext.isObject(b)){a=Ext.apply({},a)}this.element.applyStyles(a);return null},updateRenderTo:function(a){this.render(a)},updateTouchAction:function(b){var c,a,e,d;for(c in b){a=this[c];e=b[c];if(a&&a.isElement){a.setTouchAction(e)}else {d=!0}}if(d){this.el.setTouchAction(b)}},updateUi:function(){if(!this.isConfiguring){this.syncUiCls()}},updateWidth:function(a){var b=this.el;b.setWidth(a);b.toggleCls(this.widthedCls,a!=null&&a!=='auto')},updateHeight:function(a){var b=this.el;b.setHeight(a);b.toggleCls(this.heightedCls,a!=null&&a!=='auto')},isWidthed:function(){var a=this.getWidth();return a!=null&&a!=='auto'},isHeighted:function(){var a=this.getHeight();return a!=null&&a!=='auto'},up:function(c,b){var a=this.getRefOwner(),f=typeof b==='string',g=typeof b==='number',e=b&&b.isComponent,d=0;if(c){for(;a;a=a.getRefOwner()){if(a.destroyed){return null}d++;if(c.isComponent||c.isWidget){if(a===c){return a}}else {if(Ext.ComponentQuery.is(a,c)){return a}}if(f&&a.is(b)){return}if(g&&d===b){return}if(e&&a===b){return}}}return a},updateLayout:Ext.emptyFn,updateInstanceCls:function(c,d){var a=this,m=a.el,l=a.classClsList,k=Ext.Array,h=a.uiReferences,e,g,b,j,f,i;if(d){m.removeCls(d);d=k.from(d);for(b=0,j=d.length;b<j;b++){f=d[b];k.remove(l,f);for(e in h){g=a[e];i=h[e];g.removeCls(f+'-'+i)}}}if(c){m.addCls(c);c=k.from(c);a.classClsList=l.concat(c);for(b=0,j=c.length;b<j;b++){f=c[b];for(e in h){g=a[e];i=h[e];g.addCls(f+'-'+i)}}}if(!a.isConfiguring){a.syncUiCls()}},getBaseCls:function(){return this.baseCls},privates:{_hideModes:{clip:'CLIP',display:'DISPLAY',offsets:'OFFSETS',opacity:'OPACITY',visibility:'VISIBILITY'},noRippleSelector:'.'+Ext.baseCSSPrefix+'no-ripple',addElementReferenceOnDemand:function(a,b){if(this._elementListeners[a]){this.addElementReference(a,b)}else {Ext.Object.defineProperty(this,a,{get:function(){if(this.destroyed){return null}delete this[a];return this.addElementReference(a,b)},configurable:!0})}},addElementReference:function(f,g){var b=this,c=b[f]=Ext.get(g),a=b._elementListeners[f],e,d;c.skipGarbageCollection=!0;c.component=b;if(a){a=Ext.clone(a);for(e in a){d=a[e];if(typeof d==='object'){d.scope=b}}a.scope=b;c.on(a)}return c},detachFromBody:function(){Ext.getDetachedBody().appendChild(this.element,!0);this.isDetached=!0},reattachToBody:function(){var a;if(this.isDetached){a=Ext.getDetachedBody();if(a.contains(this.element)){Ext.getBody().appendChild(this.element,!0)}}this.isDetached=!1},doAddListener:function(f,g,e,a,l,k,j){var c=this,i=a&&a.element,m=a&&a.delegate,b,h,d;if(i){b={};b[f]=g;if(e){b.scope=e}h=Ext.Element.prototype.$eventOptions;for(d in a){if(h[d]){b[d]=a[d]}}c.mon(c[i],b);return}else if(m){c.mixins.componentDelegation.addDelegatedListener.call(c,f,g,e,a,l,k,j);return}c.callParent([f,g,e,a,l,k,j])},doRemoveListener:function(b,d,c){var a=this;a.mixins.observable.doRemoveListener.call(a,b,d,c);a.mixins.componentDelegation.removeDelegatedListener.call(a,b,d,c)},filterLengthValue:function(a){if(!a&&a!==0){return null}return a},initElementListeners:function(a){var c=this,k=c.self.superclass,d=k._elementListeners,h=a.reference,i=a.children,f,b,g,j,e;if(c.hasOwnProperty('_elementListeners')){f=c._elementListeners}else {f=c._elementListeners=(d?Ext.Object.chain(d):{})}if(h){b=a.listeners;if(b){if(d){g=d[h];if(g){b=Ext.Object.chain(g);Ext.apply(b,a.listeners)}}f[h]=b;a.listeners=null}}if(i){for(e=0,j=i.length;e<j;e++){c.initElementListeners(i[e])}}},initId:function(d){var a=this,c=a.config,b=(d&&d.id)||(c&&c.id);if(b){a.setId(b);a.id=b}else {a.getId()}},measure:function(a){return this.element.measure(a)},processElementConfig:function(){var a=this,c=a.self.superclass,b;if(a.hasOwnProperty('_elementConfig')){b=a._elementConfig}else {b=a._elementConfig=a.getElementConfig();if(c.isWidget){a.processElementConfig.call(c)}a.initElementListeners(b)}return b},parseUi:function(a,b){a=Ext.String.splitWords(a);if(b){a=a.join(' ')}return a},addUi:function(a){this.setUi(this.doAddUi(a,this.getUi()))},doAddUi:function(b,a){var g=this,e=null,c,d,f;if(b){b=g.parseUi(b);f=b.length;a=g.parseUi(a);for(c=0;c<f;c++){d=b[c];if(Ext.Array.indexOf(a,d)===-1){a.push(d)}}e=a.join(' ')}return e},removeUi:function(a){this.setUi(this.doRemoveUi(a,this.getUi()))},doRemoveUi:function(b,a){var g=this,e=null,c,h,d,f;if(b){b=g.parseUi(b);f=b.length;a=g.parseUi(a);for(c=0;c<f;c++){h=b[c];d=Ext.Array.indexOf(a,h);if(d!==-1){a.splice(d,1)}}e=a.join(' ')}return e},initUiReference:function(h,b,c){var a=this,j=a[h],f=a.baseCls,e=a.classClsList,g=[],d,i;c=(c!==!1);if(c){if(!a.hasOwnProperty('uiReferences')){a.uiReferences=Ext.clone(a.uiReferences)}a.uiReferences[h]=b}b='-'+b;if(f&&(f!==a.classCls)){g.push(f+b)}if(e){for(d=0,i=e.length;d<i;d++){g.push(e[d]+b)}}j.addCls(g);if(c&&!a.isConfiguring){a.syncUiCls()}},syncUiCls:function(q){var a=this,b=a.getUi(),m=a.currentUiCls||(a.currentUiCls={}),k=a.baseCls,n=q||a.uiReferences,f=a.classClsList,p=f?f.length:0,e,o,c,g,l,d,j,h,i;if(b){b=a.parseUi(b);o=b.length}for(c in n){g=a[c];e=[];if(g){l=m[c];if(l){g.removeCls(l)}if(b){d=n[c];d=d?('-'+d):'';for(h=0;h<o;h++){j='-'+b[h]+d;if(k&&(k!==a.classCls)){e.push(k+j)}if(f){for(i=0;i<p;i++){e.push(f[i]+j)}}}g.addCls(e);m[c]=e}}}},applyHideMode:function(a){return a||'display'},updateHideMode:function(d){var a=this,c=a.el,b=a.getHidden();if(b){c.show()}a.renderElement.setVisibilityMode(Ext.Element[a._hideModes[d]]);if(b){c.hide()}},updateUserCls:function(a,b){this.element.replaceCls(b,a)}}},function(b){var a=b.prototype;(a.$elementEventOptions=Ext.Object.chain(Ext.Element.prototype.$eventOptions)).element=1;(a.$eventOptions=Ext.Object.chain(a.$eventOptions)).delegate=1;Ext.updateWidget=Ext.Factory.widget.update});Ext.define('Ext.mixin.Traversable',{extend:Ext.Mixin,mixinConfig:{id:'traversable'},setParent:function(a){this.parent=a;return this},hasParent:function(){return Boolean(this.getParent())},is:function(){return !0},getParent:function(){return this.parent||this.$initParent},getAncestors:function(){var b=[],a=this.getParent();while(a){b.push(a);a=a.getParent()}return b},getAncestorIds:function(){var b=[],a=this.getParent();while(a){b.push(a.getId());a=a.getParent()}return b},previousNode:function(b,h){var d=this,f=d.getRefOwner(),a,g,e,c;if(h&&d.is(b)){return d}if(f){for(g=f.items.items,e=Ext.Array.indexOf(g,d)-1;e>-1;e--){c=g[e];if(c.query){a=c.query(b);a=a[a.length-1];if(a){return a}}if(!b||c.is(b)){return c}}return f.previousNode(b,!0)}return null},previousSibling:function(c){var e=this.getRefOwner(),b,a,d;if(e){b=e.items;a=b.indexOf(this);if(a!==-1){if(c){for(--a;a>=0;a--){if((d=b.getAt(a)).is(c)){return d}}}else {if(a){return b.getAt(--a)}}}}return null},nextNode:function(a,i){var c=this,f=c.getRefOwner(),g,d,h,e,b;if(i&&c.is(a)){return c}if(f){for(d=f.items.items,e=Ext.Array.indexOf(d,c)+1,h=d.length;e<h;e++){b=d[e];if(!a||b.is(a)){return b}if(b.down){g=b.down(a);if(g){return g}}}return f.nextNode(a)}return null},nextSibling:function(c){var e=this.getRefOwner(),b,f,a,d;if(e){b=e.items;a=b.indexOf(this)+1;if(a){if(c){for(f=b.getCount();a<f;a++){if((d=b.getAt(a)).is(c)){return d}}}else {if(a<b.getCount()){return b.getAt(a)}}}}return null}});Ext.define('Ext.fx.easing.Abstract',{config:{startTime:0,startValue:0},isEasing:!0,isEnded:!1,constructor:function(a){this.initConfig(a);return this},applyStartTime:function(a){if(!a){a=Ext.Date.now()}return a},updateStartTime:function(a){this.reset()},reset:function(){this.isEnded=!1},getValue:Ext.emptyFn});Ext.define('Ext.fx.easing.Linear',{extend:Ext.fx.easing.Abstract,alias:'easing.linear',config:{duration:0,endValue:0},updateStartValue:function(a){this.distance=this.getEndValue()-a},updateEndValue:function(a){this.distance=a-this.getStartValue()},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration();if(a>b){this.isEnded=!0;return this.getEndValue()}else {return this.getStartValue()+((a/b)*this.distance)}}});Ext.define('Ext.util.translatable.Abstract',{extend:Ext.Evented,mixins:[Ext.mixin.Factoryable],factoryConfig:{type:'translatable',defaultType:'csstransform'},config:{easing:null,easingX:{duration:300},easingY:{duration:300},offsetX:0,offsetY:0},x:0,y:0,activeEasingX:null,activeEasingY:null,isAnimating:!1,isTranslatable:!0,constructor:function(a){this.callParent([a]);this.position={x:0,y:0}},factoryEasing:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')},applyEasing:function(a){if(!this.getEasingX()){this.setEasingX(this.factoryEasing(a))}if(!this.getEasingY()){this.setEasingY(this.factoryEasing(a))}},applyEasingX:function(a){return this.factoryEasing(a)},applyEasingY:function(a){return this.factoryEasing(a)},updateOffsetX:function(){var a=this;if(!a.isConfiguring&&!a.isAnimating){a.translateXY(a.x,a.y)}},updateOffsetY:function(){var a=this;if(!a.isConfiguring&&!a.isAnimating){a.translateXY(a.x,a.y)}},translate:function(b,c,d){var a=this;if(d){return a.translateAnimated(b,c,d)}if(a.isAnimating){a.stopAnimation()}if(!isNaN(b)&&typeof b==='number'){a.x=b}else {b=a.x}if(!isNaN(c)&&typeof c==='number'){a.y=c}else {c=a.y}a.translateXY(b,c)},translateXY:function(b,c){var a=this;if(!a.destroyed){a.doTranslate(b+a.getOffsetX(),c+a.getOffsetY());if(a.hasListeners.translate){a.fireEvent('translate',a,b,c)}}},translateAxis:function(e,a,d){var b,c;if(e==='x'){b=a}else {c=a}return this.translate(b,c,d)},getPosition:function(){var b=this,a=b.position;a.x=-b.x;a.y=-b.y;return a},animate:function(b,c){var a=this;a.activeEasingX=b;a.activeEasingY=c;a.isAnimating=!0;if(a.ownerCmp){a.ownerCmp.isTranslating=!0}a.lastX=null;a.lastY=null;Ext.AnimationQueue.start(a.doAnimationFrame,a);a.fireEvent('animationstart',a,a.x,a.y);return a},translateAnimated:function(g,h,a){var b=this,f,e,c,d;if(!Ext.isObject(a)){a={}}if(b.isAnimating){b.stopAnimation()}b.callback=a.callback;b.callbackScope=a.scope;f=Ext.Date.now();e=a.easing;c=(typeof g==='number')?(a.easingX||e||b.getEasingX()||!0):null;d=(typeof h==='number')?(a.easingY||e||b.getEasingY()||!0):null;if(c){c=b.factoryEasing(c);c.setStartTime(f);c.setStartValue(b.x);c.setEndValue(g);if('duration' in a){c.setDuration(a.duration)}}if(d){d=b.factoryEasing(d);d.setStartTime(f);d.setStartValue(b.y);d.setEndValue(h);if('duration' in a){d.setDuration(a.duration)}}return b.animate(c,d)},doAnimationFrame:function(){var a=this,d=a.activeEasingX,e=a.activeEasingY,f=Date.now(),b,c;if(!a.isAnimating){return}a.lastRun=f;if(d===null&&e===null){a.stopAnimation();return}if(d!==null){a.x=b=Math.round(d.getValue());if(d.isEnded){a.activeEasingX=null;a.fireEvent('axisanimationend',a,'x',b)}}else {b=a.x}if(e!==null){a.y=c=Math.round(e.getValue());if(e.isEnded){a.activeEasingY=null;a.fireEvent('axisanimationend',a,'y',c)}}else {c=a.y}if(a.lastX!==b||a.lastY!==c){a.translateXY(b,c);a.lastX=b;a.lastY=c}a.fireEvent('animationframe',a,b,c)},stopAnimation:function(){var a=this;if(!a.isAnimating){return}a.activeEasingX=null;a.activeEasingY=null;a.isAnimating=!1;if(a.ownerCmp){a.ownerCmp.isTranslating=!1}Ext.AnimationQueue.stop(a.doAnimationFrame,a);a.fireEvent('animationend',a,a.x,a.y);if(a.callback){a.callback.call(a.callbackScope);a.callback=null}},refresh:function(){this.translate(this.x,this.y)},resolveListenerScope:function(){var a=this.ownerCmp,b=arguments;if(a){return a.resolveListenerScope.apply(a,b)}return this.callParent(b)},destroy:function(){var a=this;a.destroying=!0;if(a.isAnimating){a.stopAnimation()}a.callParent();a.destroyed=!0}});Ext.define('Ext.overrides.Widget',{override:'Ext.Widget',mixins:[Ext.mixin.Traversable],statics:{floatInset:8,onModalMaskTap:function(b){var a=this.topModal;if(a&&a.onModalMaskTap&&a.onModalMaskTap(b)){this.topModal=null}},range:document.createRange()},config:{flex:{evented:!0,$value:null},itemId:undefined,floated:null,relative:null,x:null,y:null,shadow:null,shim:null,alwaysOnTop:null,toFrontOnShow:!0,translatable:{lazy:!0,$value:null},constrainAlign:null,alignSelf:null},inheritUi:!1,floatedCls:Ext.baseCSSPrefix+'floated',floatedSelector:'.'+Ext.baseCSSPrefix+'floated',shadowCls:Ext.baseCSSPrefix+'shadow',noShadowCls:Ext.baseCSSPrefix+'no-shadow',floatWrapCls:Ext.baseCSSPrefix+'float-wrap',shimCls:Ext.baseCSSPrefix+'shim',rootCls:Ext.baseCSSPrefix+'root',isInner:!0,clearPropertiesOnDestroy:'async',beforeHide:Ext.emptyFn,afterHide:function(){var a=this,b=a.getParent();if(b&&b.afterItemHide){b.afterItemHide(a)}if(a.getFloated()){a.syncShim()}},beforeShow:Ext.emptyFn,afterShow:function(){var b=this,a=b.getParent();if(a&&a.afterItemShow){a.afterItemShow(b)}},applyItemId:function(a){return a||this.getId()},doDestroy:function(){var a=this,b=a.getParent(),c=a.floatWrap;if(b&&b.remove){b.remove(a,!1)}a.setShim(!1);Ext.destroy(a.getTranslatable());if(c){a.un('resize','syncFloatWrap',a);c.destroy();a.floatWrap=null}a.removeBindings();a.callParent()},isInnerItem:function(){return this.isInner},isCentered:function(){return !1},isDocked:function(){return Boolean(this.getDocked())},isPositioned:function(){return !1},getDocked:function(){return this._docked},isHidden:function(c){var a=this,b;if(a.isConfiguring){b=a.getConfig('hidden',!0);if(a.getConfig('floated',!0)){return b!==!1}else {return !!b}}return a.callParent([c])},onAdded:function(c,d){var a=this,b=a.parent;if(b&&b!==c){b.remove(a,!1)}a.parent=c;a.onInheritedAdd(c,d);a.isDetached=!1;if(a.getFloated()){a.findFloatParent()}if(a.inheritUi){a.doInheritUi()}},onRemoved:function(b){var a=this;if(a.inheritUi&&!b){a.doUninheritUi()}a.onInheritedRemove(b);a.parent=null},setIsInner:function(a){var b;if(a!==this.isInner){this.isInner=a;b=this.initialized&&this.getParent();if(b){b.onItemInnerStateChange(this,a)}}},refreshInnerState:function(){this.setIsInner(!this.getFloated()&&!this.isCentered()&&!this.isPositioned()&&!this.isDocked())},toFront:function(c){var a=this,b;b=a.getFloatParent();if(!a.hasListeners.beforetofront||a.fireEvent('beforetofront',a)!==!1){a.syncAlwaysOnTop(c);if(b&&b.getFloated()){b.toFront(c)}if(a.hasListeners.tofront){a.fireEvent('tofront',a)}}return a},applyTranslatable:function(b,a){return Ext.Factory.translatable.update(a,b,this,'createTranslatable')},createTranslatable:function(b){var c=this,a=b.listeners;b=Ext.apply({type:'cssposition',ownerCmp:c,element:c.renderElement},b);if(a&&a.scope==='this'){b.listeners=a=Ext.apply({},a);a.scope=c}return b},ensureTranslatable:function(){var b=this,a=b.getTranslatable();if(!a){b.setTranslatable(!0);a=b.getTranslatable()}return a},translate:function(){var a=this.ensureTranslatable();a.translate.apply(a,arguments)},getAlignmentInfo:function(b,h){var c=this,a=b.isRegion?b:(b.isWidget?b.renderElement:Ext.fly(b)).getBox(),i=c.renderElement,g=i.getBox(),f={alignToBox:a,alignment:h,top:a.top,left:a.left,alignToWidth:a.width||0,alignToHeight:a.height||0,width:g.width,height:g.height,anchor:!!(c.getAnchor&&c.getAnchor())},e=c.getCurrentAlignmentInfo(),d=!0;if(!Ext.isEmpty(e)){Ext.Object.each(f,function(c,a){if(!Ext.isObject(a)&&e[c]!==a){d=!1;return !1}return !0})}else {d=!1}return {isAligned:d,stats:f}},getCurrentAlignmentInfo:function(){return this.$currentAlignmentInfo},setCurrentAlignmentInfo:function(a){this.$currentAlignmentInfo=Ext.isEmpty(a)?null:Ext.merge({},a.stats?a.stats:a)},alignTo:function(e,d,h){var a=this,c=a.getAlignmentInfo(e,d),i=a.initialConfig,f=!a.getFloated(),k=f?a.setLeft:a.setX,j=f?a.setTop:a.setY,g,b;if(c.isAligned){return}if('unconstrainedWidth' in a){a.setWidth(a.unconstrainedWidth)}if('unconstrainedHeight' in a){a.setHeight(a.unconstrainedHeight)}b=a.getAlignRegion(e,d,h);k.call(a,b.x);j.call(a,b.y);if(b.constrainWidth){a.unconstrainedWidth=i.width||a.self.prototype.width;g=a.el.getHeight();a.setWidth(c.stats.width=b.getWidth());if(b.align.position===0){j.call(a,b.y+(g-a.el.getHeight()))}}if(b.constrainHeight){a.unconstrainedHeight=i.height||a.self.prototype.height;a.setHeight(c.stats.height=b.getHeight())}a.alignToArgs=[e,d,h];a.setCurrentAlignmentInfo(c)},realign:function(c,b,d){var a=this.alignToArgs;if(this.isVisible()){this.alignTo.call(this,c||a[0],b||a[1],d||a[2])}},getAlignRegion:function(d,a,k){var b=this,e=b.getAlignmentInfo(d,a),g,i,f,c,h,j;if(e.isAligned){return}f=e.stats.alignToBox;c=b.getConstrainAlignRegion();h=e.stats.height;j=e.stats.width;if(c&&(!a||a==='auto')){if(c.bottom-f.bottom<h){if(f.top-c.top<h){if(f.left-c.left<j){a='l-r?'}else {a='r-l?'}}else {a='b-t?'}}else {a='t-b?'}}g=a[a.length-1];if(g==='!'){i=d.isRegion?d:(d.isWidget?d.renderElement:Ext.fly(d)).getBox();a=a.substr(0,a.length-1)}else {i=c;if(g==='?'){a=a.substr(0,a.length-1)}}return b.el.getRegion().alignTo(Ext.apply({target:Ext.util.Region.from(e.stats.alignToBox),align:a,inside:i,minWidth:b.getMinWidth&&b.getMinWidth(),minHeight:b.getMinHeight&&b.getMinHeight()},k))},afterRender:Ext.emptyFn,onRender:Ext.emptyFn,applyFloated:function(a){return Boolean(a)},updateFloated:function(b,f){var a=this,e=a.floatWrap,d,c;if(b){a.refreshInnerState=Ext.emptyFn;if(a.isPositioned()){a.resetPositioned()}if(a.isDocked()){a.setDocked(!1)}delete a.refreshInnerState}else {if(e){e.dom.removeChild(a.el.dom);a.un('resize','syncFloatWrap',a);e.destroy();a.floatWrap=null;a.setRendered(!1)}}a.refreshInnerState();a.el.toggleCls(a.floatedCls,b);if(a.hasOwnProperty('_modal')){d=a.getModal&&a.getModal();if(d){a.setModal(!1);if(b){Ext.destroy(d);if(a.isVisible()){a.showModalMask()}}else {c=a.getModalSibling();if(c){c.showModalMask()}else {a.hideModalMask()}}a.setModal(!0)}if(a.getHideOnMaskTap&&a.getHideOnMaskTap()){a.setHideOnMaskTap(!1);a.setHideOnMaskTap(!0)}}a.syncFloatedState(b,f,a.rendered&&f===!1)},applyUi:function(a){var b=this,c=b._inheritedUi;a=b.callParent([a]);if(c){a=b.doAddUi(c,a)}return a},updateUi:function(g,f){var b=this,a,d,c,e;b.callParent([g,f]);if(b.$inheritUiCount&&!b.destroying){d=b.getRefItems();for(c=0,e=d.length;c<e;c++){a=d[c];if(a.inheritUi){a.doUninheritUi();a.doInheritUi()}}}},updateHidden:function(b,d){var a=Ext.GlobalEvents,c=b?'hide':'show';this.callParent([b,d]);if(!this.isConfiguring&&a.hasListeners[c]){a.fireEvent(c,this)}},updateAlignSelf:function(a){this.el.setStyle({'align-self':a})},privates:{setRendered:function(d,h){var a=this,c,b,e,g,f;if(!d&&a.rendered&&a.getFloated()){a.floatWrap.dom.parentNode.removeChild(a.floatWrap.dom)}a.rendered=d;if(!a.destroying&&!a.destroyed){if(d&&a.onRender){a.initBindable();a.initKeyMap();if(!a.onRender.$nullFn){a.onRender()}a.onRender=null;if(!a.afterRender.$nullFn){(Ext._afterRenderQueue||(Ext._afterRenderQueue=[])).push(a)}}e=a.getRefItems&&a.getRefItems();g=e&&e.length;for(f=0;f<g;f++){b=e[f];if(b.setRendered){a.setChildRendered(d,b)}}if(a.focusableContainer&&a.initFocusableContainer){a.initFocusableContainer()}if(h){c=Ext._afterRenderQueue;if(c){while(c.length){b=c.pop();if(!b.destroyed){b.afterRender()}}}}}},setChildRendered:function(a,b){if(!a||!b.getFloated()){b.setRendered(a)}},hideFromModal:function(){this.hide()},owns:function(a){var c=!1,b;if(a.isEvent){a=a.target}else if(a.isElement){a=a.dom}b=Ext.Component.from(a);if(b){c=(b===this)||(!!b.up(this))}return c},doInheritUi:function(){var a=this,c,b;if(a.inheritUi){a._ownUi=a.getUi();c=a.getRefOwner();b=c.getUi();if(b){a.addUi(b);a._inheritedUi=b}c.$inheritUiCount=(c.$inheritUiCount||0)+1}},doUninheritUi:function(){var a=this,d=a.inheritUi,c,b;if(d){b=a.getRefOwner();c=a._ownUi;a._ownUi=null;a._inheritedUi=null;a.setUi(c||null);if(b.$inheritUiCount){--b.$inheritUiCount}}},getBubbleTarget:function(){return this.getParent()},getConstrainAlignRegion:function(){var c=this,f=c.getFloated(),a=c.getConstrainAlign(),b,e,d;if(a!==!1){if(typeof a==='string'){a=b=c.up(a)}if(c.floatParentNode.destroyed&&!c.destroyed){c.findFloatParent()}if(!a){b=f?c.floatParentNode.getData().component:c.getParent()}if(b){if(b.getFloated()&&!b.getRelative()){a=Ext.getBody();e=!0}else {a=b.getRenderTarget?b.getRenderTarget():(b.bodyElement||b.element);e=b.isViewport}}else if(!a){if(f){e=!0;a=Ext.getBody()}else {a=c.element.parent()}}if(!a.isRegion){a=Ext.fly(a).getConstrainRegion();if(e){d=Math.round(Ext.Widget.floatInset);a.adjust(d,-d,-d,d)}}return a}},getFloatParent:function(){var a=this.floatParentNode.getData().component;return a&&a.getFloated()?a:null},syncFloatedState:function(d,e,c){var a=this,b=a.isHidden();if(d){if(c){if(a.isCentered()){a.getWidth();a.getHeight();a.center()}else {a.syncXYPosition()}if(!b){a.showModalMask()}}else {if(!b){a.findFloatParent()}else {a.setHidden(!0)}}}else {a.translate(0,0,0)}},findFloatParent:function(c){var b=this,a=b.getRefOwner();while(a&&!a.getFloated()){a=a.getRefOwner()}if(!a){b.floatParentNode=Ext.getFloatRoot()}else {b.floatParentNode=a.getFloatWrap()}b.insertFloatedDom(c)},getFloatWrap:function(){var a=this,b=a.floatWrap;if(!b){a.floatWrap=b=Ext.get(Ext.DomHelper.createDom({cls:a.floatWrapCls,id:a.id+'-floatWrap',"data-componentId":a.id}));a.on('resize','syncFloatWrap',a);b.getData().component=a;if(a.isContainer&&(!a.isWidthed()||!a.isHeighted())){a.setAutoSize(!0)}b.dom.appendChild(a.element.dom);b.getData().alwaysOnTop=a.element.getData().alwaysOnTop;a.syncFloatWrap()}return b},syncFloatWrap:function(){var b=this,c=b.floatWrap,d=b.el.getSize(),a;if(b.getRelative()){c.setSize(d)}else {a=c.getData().modalMask;if(a){a.setSize(d)}}},insertFloatedDom:function(c){var a=this,d=a.getFloatWrap(),b=a.floatParentNode;if(d.dom.parentNode!==b.dom){b.dom.appendChild(a.getFloatWrap().dom);if(c){a.setVisibility(!0);a._hidden=!1}a.setRendered(!0,!0);a.syncXYPosition()}},applyShim:function(a){if(a){return Ext.getBody().createChild(Ext.apply({cls:this.shimCls},a))}else {Ext.destroy(this.shim);return null}},updateShim:function(c,b){var a=this;if(c){a.syncShim();if(!b){a.on('resize','syncShim',a)}}else if(b){a.un('resize','syncShim',a)}},hideModalMask:function(){var e=this,d=Ext.getFloatRoot(),c=e.floatParentNode,b,a;if(c){b=c.getData();if(c!==d&&!b.component.getRelative()){b=d.getData()}a=b.modalMask;if(a&&a.dom.parentNode){a=a.dom;Ext.getDetachedBody().appendChild(a)}}if(Ext.Viewport){Ext.Viewport.enableTabbing()}},showModalMask:function(){var c=this,h=Ext.Widget,g=Ext.getFloatRoot(),f=c.getFloatWrap(),d=c.getParent(),a=c.floatParentNode,e=a.getData(),b;if(c.getFloated()&&c.getModal&&c.getModal()){if(a!==g&&!e.component.getRelative()){e=g.getData()}b=e.modalMask;if(b){if(f.dom.parentElement===a.dom){a.dom.insertBefore(b.dom,f.dom)}else {a.dom.appendChild(b.dom)}}else {b=e.modalMask=a.createChild({cls:'x-mask'},f);b.on({tap:h.onModalMaskTap,scope:h});if(Ext.isiOS&&a===g){b.on({touchmove:function(a){a.preventDefault()}})}}h.topModal=c;if(d&&d.getFloated()&&!d.getRelative()){d.syncXYPosition()}if(Ext.Viewport){Ext.Viewport.disableTabbing()}}},syncShim:function(){var b=this,a=b.getShim();if(a){if(b.isVisible(!0)){a.show();b.getFloatWrap().dom.insertBefore(a.dom,b.el.dom);a.setSize(b.getSize())}else {a.hide()}}},updateAlwaysOnTop:function(b){var a=this;a.getFloatWrap().getData().alwaysOnTop=Number(b);if(!a.floatParentNode){a.findFloatParent()}if(!a.isConfiguring){a.syncAlwaysOnTop()}},syncAlwaysOnTop:function(o){var d=this,e=d.getFloatWrap().dom,f=d.floatParentNode,b=f.dom.childNodes,m=b.length,j=Number(d.getAlwaysOnTop()),l=d.statics().range,h=Ext.Mask.prototype.baseCls,a,g,k,c,n,i;g=f===Ext.floatRoot?0:1;n=d.getModal&&d.getModal()&&e.previousSibling&&Ext.fly(e.previousSibling).hasCls(h);if(e.nextSibling){for(a=m-1;a>=g;a--){k=Ext.fly(b[a]);if(!k.hasCls(d.shimCls)&&!k.hasCls(h)&&b[a]!==e){if(j>=(Ext.get(b[a]).getData().alwaysOnTop||0)){c=b[a].nextSibling;break}}}if(c===e){return}if(a<g){c=b[0]}if(d.containsFocus||o){l.setStartAfter(e);l.setEndAfter(c||b[m-1]);f.dom.insertBefore(l.extractContents(),e)}else {f.dom.insertBefore(e,c)}}else if(e.previousSibling){for(a=m-2;a>=g;a--){if(!Ext.fly(b[a]).is('.'+d.shimCls)&&b[a]!==e){i=(Ext.get(b[a]).getData().alwaysOnTop);if(j<i){c=b[a];f.dom.insertBefore(c,null);if(b[a-1]&&Ext.fly(b[a-1]).hasCls(h)){f.dom.insertBefore(b[a-1],c);a-=1}j=i}}}}if(n){d.showModalMask()}d.syncShim();if(c&&!Ext.fly(c).hasCls(h)){Ext.Component.from(c).syncShim()}else {return !0}},updateRelative:function(){this.syncXYPosition()},updateShadow:function(a){this.el.toggleCls(this.shadowCls,a);this.el.toggleCls(this.noShadowCls,a===!1)},updateX:function(){if(!this.$updatingXY){this.syncXYPosition()}},updateY:function(){if(!this.$updatingXY){this.syncXYPosition()}},syncXYPosition:function(e){var a=this,c=a.getFloatWrap(),d=e,b,f=a.getX()||0,g=a.getY()||0;if(a.getRelative()){c.translate(f,g,e);c.setWidth(a.el.getWidth());c.setHeight(a.el.getHeight());a.translate(0,0);b=c.getData().modalMask;if(b){b.translate(0,0)}}else {a.translate(f,g,e);b=c.getData().modalMask;if(b){if(d){d=Ext.apply({},d);delete d.callback}b.translate(f,g,d)}}a.syncShim()}}},function(a){this.borrow(Ext.util.Positionable,['clipTo','clearClip']);a.createAlias({prev:'previousSibling',next:'nextSibling'});Ext.getFloatRoot=function(){var b=Ext.floatRoot,d=a.prototype,c=a.range;if(b){if(b.el.dom.nextSibling){if(b.el.contains(document.activeElement)){c.setStartBefore(b.el.dom.nextSibling);c.setEndAfter(b.el.dom.parentNode.lastChild);b.el.dom.parentNode.insertBefore(c.extractContents(),b.el.dom)}else {b.el.dom.parentNode.appendChild(b.dom)}}}else {b=Ext.getBody().createChild({cls:d.floatWrapCls+' '+d.rootCls,id:'ext-global-floatWrap',"data-sticky":!0});Ext.floatRoot=b}return b}});Ext.define('Ext.util.Bag',{isBag:!0,constructor:function(){this.items=[];this.map={}},generation:0,length:0,beginUpdate:Ext.emptyFn,endUpdate:Ext.emptyFn,add:function(d){var c=this,h=c.items,k=c.map,l=1,a,g,e,j,b,f,i;if(Ext.isArray(d)){a=f=[];l=d.length}for(g=0;g<l;g++){j=c.getKey(b=a?d[g]:d);e=k[j];if(e===undefined){h.push(b);k[j]=c.length++;if(a){a.push(b)}else {f=b}}else {i=h[e];if(a){a.push(i)}else {f=i}h[e]=b}}++c.generation;return f},clear:function(){var a=this,b=a.generation||a.length,c=b?a.items:[];if(b){a.items=[];a.length=0;a.map={};++a.generation}return c},clone:function(){var a=this,b=new a.self(),c=a.length;if(c){Ext.apply(b.map,a.map);b.items=a.items.slice();b.length=a.length}return b},contains:function(a){var d=!1,c=this.map,b;if(a!=null){b=this.getKey(a);if(b in c){d=this.items[c[b]]===a}}return d},containsKey:function(a){return a in this.map},destroy:function(){this.items=this.map=null;this.callParent()},each:function(f,c){var b=this.items,d=b.length,a,e;if(d){c=c||this;b=b.slice(0);for(a=0;a<d;a++){e=f.call(c,b[a],a,d);if(e===!1){break}}}return e},getAt:function(a){var b=null;if(a<this.length){b=this.items[a]}return b},get:function(a){return this.getByKey(a)},getByKey:function(a){var b=this.map,c=(a in b)?this.items[b[a]]:null;return c},indexOfKey:function(a){var b=this.map,c=(a in b)?b[a]:-1;return c},last:function(){return this.items[this.length-1]},updateKey:function(e,a){var c=this,b=c.map,d;if(!e||!a){return}if((d=c.getKey(e))!==a){if(c.getAt(b[a])===e&&!(d in b)){c.generation++;b[d]=b[a];delete b[a]}}},getCount:function(){return this.length},getKey:function(a){return a.id||a.getId()},getRange:function(d,e){var c=this.items,b=c.length,a;if(!b){a=[]}else {a=Ext.Number.clipIndices(b,[d,e]);a=c.slice(a[0],a[1])}return a},remove:function(c){var a=this,h=a.map,f=a.items,i=null,m=1,k,d,e,b,l,g,j;if(Ext.isArray(c)){m=c.length;d=i=[]}if(a.length){for(e=0;e<m;e++){b=h[l=a.getKey(d?c[e]:c)];if(b!==undefined){delete h[l];j=f[b];if(d){d.push(j)}else {i=j}g=f.pop();if(b<--a.length){f[b]=g;h[a.getKey(g)]=b}k=!0}}if(k){++a.generation}}return i},removeByKey:function(b){var a=this.getByKey(b);if(a){this.remove(a)}return a||null},replace:function(a){this.add(a);return a},sort:function(e){var a=this,c=a.items,b=c.length,d;if(b){Ext.Array.sort(c,e);a.map={};while(b-->0){d=c[b];a.map[a.getKey(d)]=b}++a.generation}}});Ext.define('Ext.state.Provider',function(a){return {mixins:[Ext.mixin.Bufferable],statics:{get:function(){return a._default},register:function(b){var c=a._default;if(c!==b){a._default=b;if(b){b.global=!0}if(c){c.global=!1}if(Ext.hasListeners.stateproviderchange){Ext.fireEvent('stateproviderchange',b,c)}}}},bufferableMethods:{saveState:50},constructor:function(b){this.queue=new Ext.util.Bag();this.state={};this.initConfig(b)},clear:function(){var b=this;b.cancelSaveState();b.queue.clear();b.state={}},get:function(d,c){var b=this.state[d];return b===undefined?c:b},remove:function(b){return this.set(b,null)},set:function(b,c){var f=this,e=f.state,d=b;if(typeof b==='string'){d={};d[b]=c}for(b in d){c=d[b];if(c==null){delete e[b];c=null}else {e[b]=c}}},decodeValue:function(b){return Ext.decode(b)},encodeValue:function(b){return Ext.encode(b)},privates:{doSave:function(b){b.$saveStatePending=!1;b.persistState()},doSaveState:function(){var b=this,c=b.queue;c.each(b.doSave,b);c.clear()},save:function(b){b.$saveStatePending=!0;this.queue.add(b);this.saveState()}}}},function(a){a.register(new a())});Ext.define('Ext.state.Stateful',function(a){return {extend:Ext.Mixin,mixinConfig:{id:'state',configs:!0,before:{destroy:'_flushStateful'},mixed:function(b){b.addConfigTransform('transformStatefulConfig',20)}},isStateful:!0,config:{stateful:{$value:null,merge:function(b,c){if(b===!0){return c||b}if(!b){return !1}return this.mergeSets(b,c)}},statefulDefaults:{$value:null,cached:!0,merge:function(b,c){return this.mergeSets(b,c)}},stateId:null},getStatefulOwner:Ext.emptyFn,loadState:function(f,d){var b=d&&f.data,c,e;b=b&&b.$;if(b){for(c in d){if(d[c]&&(c in b)){(e||(e={}))[c]=b[c]}}}return e},saveState:function(d,b){var e=this,c;if(b){for(c in b){d.save(e,c)}}},applyStateful:function(d,c){var g=this,b=!1,i='onStatefulChange',j=(d||c)&&g.getConfigWatcher(),f=g.isConfiguring,e,h;if(d){if(d===!0){b={};f=!0}else if(typeof d==='string'){b={};b[d]=!0}else if(Ext.isObject(d)){b=d}else {b=Ext.Array.toMap(d)}f=f&&g.getStatefulDefaults();if(f){b=Ext.merge({},f,b)}c=c||{};for(e in b){h=b[e];if(!h!==!c[e]){j[h?'on':'un'](e,i,g);if(h){c[e]=!0}else {delete c[e]}}}b=Ext.Object.isEmpty(c)?!1:c}else if(c){for(e in c){j.un(e,i,g)}}return b},privates:{statics:{_configNames:['stateful','stateId']},_flushStateful:function(){if(this.$saveStatePending){var b=Ext.state.Provider.get();if(b&&b.isSaveStatePending){b.flushSaveState()}}},getStateBuilder:function(f){var d=this,g=d._getStateId(),b=(f&&d.$state)||null,i=g&&Ext.state.Provider.get(),e,h,c;if(i&&!b){if(!(c=d.getStatefulOwner())){b=new Ext.state.Builder();if(f){b.data=i.get(g)}}else {if(!(h=c).isStateful){h=c[0];e=1}b=h.getStateBuilder(f);if(b){for(;e&&e<c.length;++e){b=b.child(c[e])}b=b.child(g)}}if(b){b.owner=d;b.id=g}d.$state=f?b:null}return b},_getStateId:function(){var b=this,c=b.getStateId();b._getStateId=b.getStateId;if(!c){c=b.id||b.getId();if(b.autoGenId){c=null}else {b.setStateId(c)}}return c},onStatefulChange:function(){var b=this;if(!b.destroying&&b._getStateId()){Ext.state.Provider.get().save(b)}},persistState:function(){var f=this,b=f.getStateBuilder(),e,d,c;if(b){d=Ext.state.Provider.get();c=b.root;e=c.id;if(b.parent){c.data=d.get(e);b.clear()}f.saveState(b,f.getStateful());d.set(e,c.data)}},readStateObject:function(){var c=this,b=c.getStateBuilder(!0),d;if(b){b.getData();d=c.loadState(b,c.getStateful())}return d||null},transformStatefulConfig:function(g,h){var d=this,c=g,f,e,b,i;if(h.hoistConfigs(d,g,a._configNames)){b=d.readStateObject();if(b){i=d.getStateful();f={};for(e in b){if(i[e]){f[e]=!0}else {delete b[e]}}b=Ext.Object.isEmpty(b)?null:b;d.$statefulConfigs=b&&f}if(b){c=h.merge(d,c,b,!0)}else {c=Ext.apply({},c)}delete c.stateful;delete c.stateId}return c}}}});Ext.define('Ext.util.Format',function(){var a;return {singleton:!0,defaultDateFormat:'m/d/Y',thousandSeparator:',',decimalSeparator:'.',currencyPrecision:2,currencySign:'$',currencySpacer:'',percentSign:'%',currencyAtEnd:!1,stripTagsRe:/<\/?[^>]+>/gi,stripScriptsRe:/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe:/\r?\n/g,hashRe:/#+$/,allHashes:/^#+$/,formatPattern:/[\d,.#]+/,formatCleanRe:/[^\d.#]/g,I18NFormatCleanRe:null,formatFns:{},constructor:function(){a=this},nbsp:function(a,b){b=b!==!1;if(b?a===''||a==null:!a){a='\xa0'}return a},undef:function(a){return a!==undefined?a:""},defaultValue:function(a,b){return a!==undefined&&a!==''?a:b},substr:'ab'.substr(-1)!=='b'?function(d,a,c){var b=String(d);return (a<0)?b.substr(Math.max(b.length+a,0),c):b.substr(a,c)}:function(c,b,a){return String(c).substr(b,a)},lowercase:function(a){return String(a).toLowerCase()},uppercase:function(a){return String(a).toUpperCase()},usMoney:function(b){return a.currency(b,'$',2)},currency:function(b,g,c,i,d){var e='',f=",0",h=0;b=b-0;if(b<0){b=-b;e='-'}c=Ext.isDefined(c)?c:a.currencyPrecision;f+=(c>0?'.':'');for(;h<c;h++){f+='0'}b=a.number(b,f);if(d==null){d=a.currencySpacer}if((i||a.currencyAtEnd)===!0){return Ext.String.format("{0}{1}{2}{3}",e,b,d,g||a.currencySign)}else {return Ext.String.format("{0}{1}{2}{3}",e,g||a.currencySign,d,b)}},date:function(a,b){if(!a){return ""}if(!Ext.isDate(a)){a=new Date(Date.parse(a))}return Ext.Date.dateFormat(a,b||Ext.Date.defaultFormat)},dateRenderer:function(b){return function(c){return a.date(c,b)}},hex:function(c,b){var a=parseInt(c||0,10).toString(16);if(b){if(b<0){b=-b;if(a.length>b){a=a.substring(a.length-b)}}while(a.length<b){a='0'+a}}return a},or:function(b,a){return b||a},pick:function(a,d,c){var b;if(Ext.isNumber(a)){b=arguments[a+1];if(b){return b}}return a?c:d},lessThanElse:function(h,e,g,a,b){var d=Ext.Number.from(h,0),c=Ext.Number.from(e,0),f=!Ext.isDefined(b);return d<c?g:(d>c?a:(f?a:b))},sign:function(e,d,c,b){if(b===undefined){b=c}return a.lessThanElse(e,0,d,c,b)},stripTags:function(b){return !b?b:String(b).replace(a.stripTagsRe,"")},stripScripts:function(b){return !b?b:String(b).replace(a.stripScriptsRe,"")},fileSize:(function(){var a=1024,b=1048576,c=1073741824;return function(d){var e;if(d<a){if(d===1){e='1 byte'}else {e=d+' bytes'}}else if(d<b){e=(Math.round(((d*10)/a))/10)+' KB'}else if(d<c){e=(Math.round(((d*10)/b))/10)+' MB'}else {e=(Math.round(((d*10)/c))/10)+' GB'}return e}})(),math:(function(){var a={};return function(c,b){if(!a[b]){a[b]=Ext.functionFactory('v','return v '+b+';')}return a[b](c)}}()),round:function(c,a){var b=Number(c);if(typeof a==='number'){a=Math.pow(10,a);b=Math.round(c*a)/a}else if(a===undefined){b=Math.round(b)}return b},number:function(k,c){var h;if(!c){return k}if(isNaN(k)){return ''}h=a.formatFns[c];if(!h){var n=c,o=a.thousandSeparator,g=a.decimalSeparator,d=0,l='',i,e,j,f,b,m;if(c.substr(c.length-2)==='/i'){if(!a.I18NFormatCleanRe||a.lastDecimalSeparator!==g){a.I18NFormatCleanRe=new RegExp('[^\\d\\'+g+'#]','g');a.lastDecimalSeparator=g}c=c.substr(0,c.length-2);i=c.indexOf(o)!==-1;e=c.replace(a.I18NFormatCleanRe,'').split(g)}else {i=c.indexOf(',')!==-1;e=c.replace(a.formatCleanRe,'').split('.')}j=c.replace(a.formatPattern,'');if(e.length>2){}else if(e.length===2){d=e[1].length;f=e[1].match(a.hashRe);if(f){m=f[0].length;l='trailingZeroes=new RegExp(Ext.String.escapeRegex(utilFormat.decimalSeparator) + "*0{0,'+m+'}$")'}}b=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,absVal,fnum,parts'+(i?',thousandSeparator,thousands=[],j,n,i':'')+(j?',formatString="'+c+'",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, '+d+');',l,';'];if(i){if(d){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(d){b[b.length]='fnum += utilFormat.decimalSeparator+parts[1];'}}else if(d){b[b.length]='if(utilFormat.decimalSeparator!=="."){'+'parts=fnum.split(".");'+'fnum=parts[0]+utilFormat.decimalSeparator+parts[1];'+'}'}b[b.length]='if(neg&&fnum!=="'+(d?'0.'+Ext.String.repeat('0',d):'0')+'") { fnum="-"+fnum; }';if(f){b[b.length]='fnum=fnum.replace(trailingZeroes,"");'}b[b.length]='return ';if(j){b[b.length]='formatString.replace(formatPattern, fnum);'}else {b[b.length]='fnum;'}b[b.length]='};';h=a.formatFns[n]=Ext.functionFactory('Ext',b.join(''))(Ext)}return h(k)},numberRenderer:function(b){return function(c){return a.number(c,b)}},percent:function(c,b){return a.number(c*100,b||'0')+a.percentSign},repeat:function(a,b,c){return Ext.String.repeat(b,a,c)},attributes:function(a){var c,b;if(typeof a==='object'){c=[];for(b in a){if(a.hasOwnProperty(b)){c.push(b,'="',b==='style'?Ext.DomHelper.generateStyles(a[b],null,!0):Ext.htmlEncode(a[b]),'" ')}}a=c.join('')}return a||''},plural:function(c,a,b){return c+' '+(c===1?a:(b?b:a+'s'))},nl2br:function(b){return Ext.isEmpty(b)?'':b.replace(a.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(b){b=b||0;if(typeof b==='number'){return {top:b,right:b,bottom:b,left:b}}var 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:parseInt(a[0],10)||0,right:parseInt(a[1],10)||0,bottom:parseInt(a[2],10)||0,left:parseInt(a[3],10)||0}},resource:function(b,a){a=a||'';return Ext.resolveResource(a+b)},uri:function(a){return encodeURI(a)},uriCmp:function(a){return encodeURIComponent(a)},wordBreakRe:/[\W\s]+/,word:function(e,c,b){var f=b?(typeof b==='string'?new RegExp(b):b):a.wordBreakRe,d=(e||'').split(f);return d[c||0]||''}}});Ext.define('Ext.Template',{inheritableStatics:{from:function(a,b){a=Ext.getDom(a);return new this(a.value||a.innerHTML,b||'')}},useEval:Ext.isGecko,constructor:function(g){var d=this,c=arguments,f=[],b=c.length,e,a;d.initialConfig={};if(b===1&&Ext.isArray(g)){c=g;b=c.length}if(b>1){for(e=0;e<b;e++){a=c[e];if(typeof a==='object'){Ext.apply(d.initialConfig,a);Ext.apply(d,a)}else {f.push(a)}}}else {f.push(g)}d.html=f.join('')},isTemplate:!0,disableFormats:!1,tokenRe:/\{(?:(?:(\d+)|([a-z_$][\w\-$]*))(?::([a-z_.]+)(?:\(([^)]*?)?\))?)?)\}/gi,apply:function(b){var a=this;if(a.compiled){if(!a.fn){a.compile()}return a.fn(b).join('')}return a.evaluate(b)},evaluate:function(a){var b=this,e=!b.disableFormats,c=Ext.util.Format,d=b;function fn(i,h,b,g,f){if(b==null||b===''){b=h}if(g&&e){if(f){f=[a[b]].concat(Ext.functionFactory('return ['+f+'];')())}else {f=[a[b]]}if(g.substr(0,5)==="this."){return d[g.substr(5)].apply(d,f)}else if(c[g]){return c[g].apply(c,f)}else {return i}}else {return a[b]!==undefined?a[b]:""}}return b.html.replace(b.tokenRe,fn)},applyOut:function(c,b){var a=this;if(a.compiled){if(!a.fn){a.compile()}b.push.apply(b,a.fn(c))}else {b.push(a.apply(c))}return b},applyTemplate:function(){return this.apply.apply(this,arguments)},set:function(c,b){var a=this;a.html=c;a.compiled=!!b;a.fn=null;return a},compileARe:/\\/g,compileBRe:/(\r\n|\n)/g,compileCRe:/'/g,compile:function(){var a=this,b;b=a.html.replace(a.compileARe,'\\\\').replace(a.compileBRe,'\\n').replace(a.compileCRe,"\\'").replace(a.tokenRe,a.regexReplaceFn.bind(a));b=(this.disableFormats!==!0?'var fm=Ext.util.Format;':'')+(a.useEval?'$=':'return')+" function(v){return ['"+b+"'];};";a.fn=a.useEval?a.evalCompiled(b):(new Function('Ext',b))(Ext);a.compiled=!0;return a},evalCompiled:function($){eval($);return $},regexReplaceFn:function(d,b,e,a,c){if(b==null||b===''){b='"'+e+'"'}else if(this.stringFormat){b=parseInt(b)+1}if(a&&this.disableFormats!==!0){c=c?','+c:"";if(a.substr(0,5)==="this."){a=a+'('}else if(Ext.util.Format[a]){a="fm."+a+'('}else {return d}return "',"+a+"v["+b+"]"+c+"),'"}else {return "',v["+b+"] == undefined ? '' : v["+b+"],'"}},insertFirst:function(c,b,a){return this.doInsert('afterBegin',c,b,a)},insertBefore:function(c,b,a){return this.doInsert('beforeBegin',c,b,a)},insertAfter:function(c,b,a){return this.doInsert('afterEnd',c,b,a)},append:function(c,b,a){return this.doInsert('beforeEnd',c,b,a)},doInsert:function(d,e,c,b){var a=Ext.DomHelper.insertHtml(d,Ext.getDom(e),this.apply(c));return b?Ext.get(a):a},overwrite:function(d,c,b){var a=Ext.DomHelper.overwrite(Ext.getDom(d),this.apply(c));return b?Ext.get(a):a}},function(d){var e=/\{\d+\}/,b=function(a){if(e.test(a)){a=new d(a,c);return function(){return a.apply(arguments)}}else {return function(){return a}}},c={useFormat:!1,compiled:!0,stringFormat:!0},a={};Ext.String.format=Ext.util.Format.format=function(c){var e=a[c]||(a[c]=b(c));return e.apply(this,arguments)};Ext.String.formatEncode=function(){return Ext.String.htmlEncode(Ext.String.format.apply(this,arguments))}});Ext.define('Ext.util.XTemplateParser',{constructor:function(a){Ext.apply(this,a)},doTpl:Ext.emptyFn,parse:function(g){var b=this,q=g.length,s={elseif:'elif'},p=b.topRe,r=b.actionsRe,j,e,d,c,h,n,l,m,i,f,a,k,o;b.level=0;b.stack=e=[];for(j=0;j<q;j=f){p.lastIndex=j;c=p.exec(g);if(!c){b.doText(g.substring(j,q));break}i=c.index;f=p.lastIndex;if(j<i){d=g.substring(j,i);if(!(o&&Ext.String.trim(d)==='')){b.doText(d)}}o=!1;if(c[1]){f=g.indexOf('%}',i+2);b.doEval(g.substring(i+2,f));f+=2}else if(c[2]){f=g.indexOf(']}',i+2);b.doExpr(g.substring(i+2,f));f+=2}else if(c[3]){b.doTag(c[3])}else if(c[4]){a=null;while((m=r.exec(c[4]))!==null){d=m[2]||m[3];if(d){d=Ext.String.htmlDecode(d);h=m[1];h=s[h]||h;a=a||{};n=a[h];if(typeof n==='string'){a[h]=[n,d]}else if(n){a[h].push(d)}else {a[h]=d}}}if(!a){if(b.elseRe.test(c[4])){b.doElse()}else if(b.defaultRe.test(c[4])){b.doDefault()}else {b.doTpl();e.push({type:'tpl'})}}else if(a['if']){b.doIf(a['if'],a);e.push({type:'if'})}else if(a['switch']){b.doSwitch(a['switch'],a);e.push({type:'switch'});o=!0}else if(a['case']){b.doCase(a['case'],a)}else if(a['elif']){b.doElseIf(a['elif'],a)}else if(a['for']){++b.level;if(k=b.propRe.exec(c[4])){a.propName=k[1]||k[2]}b.doFor(a['for'],a);e.push({type:'for',actions:a})}else if(a['foreach']){++b.level;if(k=b.propRe.exec(c[4])){a.propName=k[1]||k[2]}b.doForEach(a['foreach'],a);e.push({type:'foreach',actions:a})}else if(a.exec){b.doExec(a.exec,a);e.push({type:'exec',actions:a})}}else if(c[0].length===5){e.push({type:'tpl'})}else {l=e.pop();b.doEnd(l.type,l.actions);if(l.type==='for'||l.type==='foreach'){--b.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*$/});Ext.define('Ext.util.XTemplateCompiler',{extend:Ext.util.XTemplateParser,useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:!0,propNameRe:/^[\w\d$]*$/,compile:function(c){var a=this,b=a.generate(c);return a.useEval?a.evalTpl(b):(new Function('Ext',b))(Ext)},generate:function(d){var a=this,b='var fm=Ext.util.Format,ts=Object.prototype.toString;',c;a.maxLevel=0;a.body=['var c0=values, a0='+a.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(a.definitions){if(typeof a.definitions==='string'){a.definitions=[a.definitions,b]}else {a.definitions.push(b)}}else {a.definitions=[b]}a.switches=[];a.parse(d);a.definitions.push((a.useEval?'$=':'return')+' function ('+a.fnArgs+') {',a.body.join(''),'}');c=a.definitions.join('\n');a.definitions.length=a.body.length=a.switches.length=0;a.definitions=a.body=a.switches=0;return c},doText:function(a){var b=this,c=b.body;a=a.replace(b.aposRe,"\\'").replace(b.newLineRe,'\\n');if(b.useIndex){c.push('out[out.length]=\'',a,'\'\n')}else {c.push('out.push(\'',a,'\')\n')}},doExpr:function(b){var a=this.body;a.push('if ((v='+b+') != null) out');if(this.useIndex){a.push('[out.length]=v\n')}else {a.push('.push(v)\n')}},doTag:function(b){var a=this.parseTag(b);if(a){this.doExpr(a)}else {this.doText('{'+b+'}')}},doElse:function(){this.body.push('} else {\n')},doEval:function(a){this.body.push(a,'\n')},doIf:function(b,c){var a=this;if(b==='.'){a.body.push('if (values) {\n')}else if(a.propNameRe.test(b)){a.body.push('if (',a.parseTag(b),') {\n')}else {a.body.push('if (',a.addFn(b),a.callFn,') {\n')}if(c.exec){a.doExec(c.exec)}},doElseIf:function(b,c){var a=this;if(b==='.'){a.body.push('else if (values) {\n')}else if(a.propNameRe.test(b)){a.body.push('} else if (',a.parseTag(b),') {\n')}else {a.body.push('} else if (',a.addFn(b),a.callFn,') {\n')}if(c.exec){a.doExec(c.exec)}},doSwitch:function(b){var a=this,c;if(b==='.'||b==='#'){c=b==='.'?'values':'xindex';a.body.push('switch (',c,') {\n')}else if(a.propNameRe.test(b)){a.body.push('switch (',a.parseTag(b),') {\n')}else {a.body.push('switch (',a.addFn(b),a.callFn,') {\n')}a.switches.push(0)},doCase:function(e){var a=this,c=Ext.isArray(e)?e:[e],d=a.switches.length-1,f,b;if(a.switches[d]){a.body.push('break;\n')}else {a.switches[d]++}for(b=0,d=c.length;b<d;++b){f=a.intRe.exec(c[b]);c[b]=f?f[1]:("'"+c[b].replace(a.aposRe,"\\'")+"'")}a.body.push('case ',c.join(': case '),':\n')},doDefault:function(){var a=this,b=a.switches.length-1;if(a.switches[b]){a.body.push('break;\n')}else {a.switches[b]++}a.body.push('default:\n')},doEnd:function(c,d){var a=this,b=a.level-1;if(c==='for'||c==='foreach'){if(d.exec){a.doExec(d.exec)}a.body.push('}\n');a.body.push('parent=p',b,';values=r',b+1,';xcount=n'+b+';xindex=i',b,'+1;xkey=k',b,';\n')}else if(c==='if'||c==='switch'){a.body.push('}\n')}},doFor:function(c,d){var b=this,f,a=b.level,e=a-1,g;if(c==='.'){f='values'}else if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}if(b.maxLevel<a){b.maxLevel=a;b.body.push('var ')}if(c==='.'){g='c'+a}else {g='a'+e+'?c'+e+'[i'+e+']:c'+e}b.body.push('i',a,'=0,n',a,'=0,c',a,'=',f,',a',a,'=',b.createArrayTest(a),',r',a,'=values,p',a,',k',a,';\n','p',a,'=parent=',g,'\n','if (c',a,'){if(a',a,'){n',a,'=c',a,'.length;}else if (c',a,'.isMixedCollection){c',a,'=c',a,'.items;n',a,'=c',a,'.length;}else if(c',a,'.isStore){c',a,'=c',a,'.data.items;n',a,'=c',a,'.length;}else{c',a,'=[c',a,'];n',a,'=1;}}\n','for (xcount=n',a,';i',a,'<n'+a+';++i',a,'){\n','values=c',a,'[i',a,']');if(d.propName){b.body.push('.',d.propName)}b.body.push('\n','xindex=i',a,'+1\n');if(d.between){b.body.push('if(xindex>1){ out.push("',d.between,'"); } \n')}},doForEach:function(c,d){var b=this,a=b.level,e=a-1,f,g;if(c==='.'){f='values'}else if(b.propNameRe.test(c)){f=b.parseTag(c)}else {f=b.addFn(c)+b.callFn}if(b.maxLevel<a){b.maxLevel=a;b.body.push('var ')}if(c==='.'){g='c'+a}else {g='a'+e+'?c'+e+'[i'+e+']:c'+e}b.body.push('i',a,'=-1,n',a,'=0,c',a,'=',f,',a',a,'=',b.createArrayTest(a),',r',a,'=values,p',a,',k',a,';\n','p',a,'=parent=',g,'\n','for(k',a,' in c',a,'){\n','xindex=++i',a,'+1;\n','xkey=k',a,';\n','values=c',a,'[k',a,'];');if(d.propName){b.body.push('.',d.propName)}if(d.between){b.body.push('if(xindex>1){ out.push("',d.between,'"); } \n')}},createArrayTest:('isArray' in Array)?function(a){return 'Array.isArray(c'+a+')'}:function(a){return 'ts.call(c'+a+')==="[object Array]"'},doExec:function(d,e){var a=this,c='f'+a.definitions.length,b=a.guards[a.strict?0:1];a.definitions.push('function '+c+'('+a.fnArgs+') {',b.doTry,' var $v = values; with($v) {','  '+d,' }',b.doCatch,'}');a.body.push(c+a.callFn+'\n')},guards:[{doTry:'',doCatch:''},{doTry:'try { ',doCatch:' } catch(e) {\n'+'}'}],addFn:function(c){var a=this,b='f'+a.definitions.length,d=a.guards[a.strict?0:1];if(c==='.'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return values','}')}else if(c==='..'){a.definitions.push('function '+b+'('+a.fnArgs+') {',' return parent','}')}else {a.definitions.push('function '+b+'('+a.fnArgs+') {',d.doTry,' var $v = values; with($v) {','  return('+c+')',' }',d.doCatch,'}')}return b},parseTag:function(h){var e=this,f=e.tagRe.exec(h),a,c,d,g,b;if(!f){return null}a=f[1];c=f[2];d=f[3];g=f[4];if(a==='.'){if(!e.validTypes){e.definitions.push('var validTypes={string:1,number:1,boolean:1};');e.validTypes=!0}b='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else if(a==='#'){b='xindex'}else if(a==='$'){b='xkey'}else if(a.substr(0,7)==="parent."){b=a}else if(isNaN(a)&&a.indexOf('-')===-1&&a.indexOf('.')!==-1){b="values."+a}else {b="values['"+a+"']"}if(g){b='('+b+g+')'}if(c&&e.useFormat){d=d?','+d:"";if(c.substr(0,5)!=="this."){c="fm."+c+'('}else {c+='('}}else {return b}return c+b+d+')'},evalTpl:function($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},function(){var a=this.prototype;a.fnArgs='out,values,parent,xindex,xcount,xkey';a.callFn='.call(this,'+a.fnArgs+')'});Ext.define('Ext.XTemplate',{extend:Ext.Template,isXTemplate:!0,emptyObj:{},fn:null,strict:!1,apply:function(c,b,e,d){var a=this.applyOut(c,[],b,e,d);return a.length===1?a[0]:a.join('')},applyOut:function(g,d,f,c,b){var a=this,e;if(!a.fn){e=new Ext.util.XTemplateCompiler({useFormat:a.disableFormats!==!0,definitions:a.definitions,strict:a.strict});a.fn=e.compile(a.html)}c=c||1;b=b||1;if(a.strict){a.fn(d,g,f||a.emptyObj,c,b)}else {try{a.fn(d,g,f||a.emptyObj,c,b)}catch(h){}}return d},compile:function(){return this},statics:{get:function(a,d,c){var b=a;if(a==null){if(d&&c){b=this.getTpl(d,c)}}else if((a||a==='')&&!a.isTemplate){b=new this(a)}return b},getTpl:function(c,d){var b=c[d],a;if(b){if(!b.isTemplate){b=Ext.XTemplate.get(b)}if(!b.owner){if(c.hasOwnProperty(d)){a=c}else {for(a=c.self.prototype;a&&!a.hasOwnProperty(d);a=a.superclass){}}a[d]=b;b.owner=a}}return b||null}}});Ext.define('Ext.util.translatable.Dom',{extend:Ext.util.translatable.Abstract,alias:'translatable.dom',config:{element:null},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(){this.refresh()},translateXY:function(b,c){var a=this.getElement();if(a&&!a.destroyed){this.callParent([b,c])}}});Ext.define('Ext.util.translatable.CssPosition',{extend:Ext.util.translatable.Dom,alias:'translatable.cssposition',doTranslate:function(b,c){var a=this.getElement().dom.style;if(typeof b==='number'){a.left=b+'px'}if(typeof c==='number'){a.top=c+'px'}},syncPosition:function(){var a=this.getElement().dom.style;return [this.x=parseFloat(a.left),this.y=parseFloat(a.top)]},destroy:function(){var a=this.getElement().dom.style;a.left=null;a.top=null;this.callParent()}});Ext.define('Ext.util.translatable.CssTransform',{extend:Ext.util.translatable.Dom,alias:'translatable.csstransform',isCssTransform:!0,posRegex:/(\d+)px[^\d]*(\d+)px/,doTranslate:function(a,b){this.getElement().translate(a,b)},syncPosition:function(){var a=this.posRegex.exec(this.getElement().dom.style.tranform);if(a){this.x=parseFloat(a[1]);this.y=parseFloat(a[2])}return [this.x,this.y]},destroy:function(){var a=this.getElement();if(a&&!a.destroyed){a.dom.style.webkitTransform=null}this.callParent()}});Ext.define('Ext.scroll.Scroller',{extend:Ext.Evented,alias:'scroller.scroller',mixins:[Ext.mixin.Factoryable,Ext.mixin.Bufferable],isScroller:!0,factoryConfig:{defaultType:'native'},bufferableMethods:{onScrollEnd:100},config:{direction:undefined,element:null,size:null,x:!0,y:!0,touchAction:null,translatable:'scrollposition'},constructor:function(b){var a=this;a.position={x:0,y:0};a.configuredSize={x:!1,y:!1};a.callParent([b])},destroy:function(){var a=this;a.destroying=!0;a.destroy=Ext.emptyFn;a.doDestroy();a.callParent()},doDestroy:function(){var a=this,b,c;a.component=null;b=a._partners;if(b){for(c in b){a.removePartner(b[c].scroller)}}a._partners=null;a.setElement(null);a.setTranslatable(null)},addPartner:function(b,c){var a=this,e=a._partners||(a._partners={}),d=b._partners||(b._partners={});c=a.axisConfigs[c||'both'];e[b.getId()]={scroller:b,axes:c,called:!1,calledPrimary:!1};d[a.getId()]={scroller:a,axes:c,called:!1,calledPrimary:!1}},convertX:function(a){return a},ensureVisible:function(a,b){var c=this,g=c.getPosition(),e,d,f;if(a){if(a&&a.element&&!a.isElement){b=a;a=b.element}b=b||{};e=b.highlight;d=c.getEnsureVisibleXY(a,b);if(d.y!==g.y||d.x!==g.x){if(e){c.on({scrollend:'doHighlight',scope:c,single:!0,args:[a,e]})}f=c.doScrollTo(d.x,d.y,b.animation)}else {if(e){c.doHighlight(a,e)}f=Ext.Deferred.getCachedResolved()}}else {f=Ext.Deferred.getCachedRejected()}return f},getPosition:function(){return this.position},isInView:function(c,h){var f=this,g=f.component,d={x:!1,y:!1},e=f.getElement(),b,a;if(c&&(h===!1||e.contains(c)||(g&&g.owns(c)))){a=e.getRegion();b=Ext.fly(c).getRegion();d.x=b.right>a.left&&b.left<a.right;d.y=b.bottom>a.top&&b.top<a.bottom}return d},refresh:function(){this.fireEvent('refresh',this);return this},removePartner:function(c){var b=this._partners,a=c._partners;if(b){delete b[c.getId()]}if(a){delete (a[this.getId()])}},scrollBy:function(a,b,c){var d=this.getPosition();if(a){if(a.length){c=b;b=a[1];a=a[0]}else if(typeof a!=='number'){c=b;b=a.y;a=a.x}}a=(typeof a==='number')?a+d.x:null;b=(typeof b==='number')?b+d.y:null;return this.doScrollTo(a,b,c)},scrollIntoView:function(d,c,b,a){return this.ensureVisible(d,{animation:b,highlight:a,x:c})},scrollTo:function(a,b,d){var e=this,c;if(a){if(Ext.isArray(a)){d=b;b=a[1];a=a[0]}else if(typeof a!=='number'){d=b;b=a.y;a=a.x}}if(a<0||b<0){c=e.getMaxPosition();if(a<0){a+=c.x}if(b<0){b+=c.y}}return e.doScrollTo(a,b,d)},applyElement:function(a){if(a){if(!a.isElement){a=Ext.get(a)}}return a},updateElement:function(c,b){var e=this,d=e.scrollerCls,a;if(b&&!b.destroyed){b.removeCls(d)}if(c){if(!this.isConfiguring){a=this.getTouchAction();if(a){c.setTouchAction(a)}}c.addCls(d)}},updateDirection:function(a){var d=this,b,c;if(!a){b=d.getX();c=d.getY();if(b&&c){a=(c==='scroll'&&b==='scroll')?'both':'auto'}else if(c){a='vertical'}else if(b){a='horizontal'}d._direction=a}else {if(a==='auto'){b=!0;c=!0}else if(a==='vertical'){b=!1;c=!0}else if(a==='horizontal'){b=!0;c=!1}else if(a==='both'){b='scroll';c='scroll'}d.setX(b);d.setY(c)}},applySize:function(d,a){var f='number',e=this.configuredSize,b,c;if(d==null||typeof d===f){b=c=d}else if(d){b=d.x;c=d.y}if(typeof b===f){e.x=!0}else if(b===null){e.x=!1}if(typeof c===f){e.y=!0}else if(c===null){e.y=!1}if(b===undefined){b=(a?a.x:null)}if(c===undefined){c=(a?a.y:null)}return (a&&b===a.x&&c===a.y)?a:{x:b,y:c}},updateTouchAction:function(b){var a=this.getElement();if(a){a.setTouchAction(b)}},statics:{create:function(a,b){return Ext.Factory.scroller(a,b)},getScrollingElement:function(){return Ext.get(document.scrollingElement||document.documentElement)}},privates:{scrollerCls:Ext.baseCSSPrefix+'scroller',axisConfigs:{x:{x:1,y:0},y:{x:0,y:1},both:{x:1,y:1}},callPartners:function(k,i,j){var l=this,f=l._partners,g,h,b,c,a,d,e;if(!l.suspendSync){for(h in f){b=f[h];a=b.scroller;if(!a.isPrimary&&!b.called){b.called=!0;g=f[h].axes;c=a.position;d=(!g.x||i===undefined)?c.x:i;e=(!g.y||j===undefined)?c.y:j;a[k](d,e,(d-c.x)||0,(e-c.y)||0);a.callPartners(k,d,e);b.called=!1}}}},contains:function(b){var c=this.getElement(),a=b;while(a&&a!==Ext.Viewport){if(c.contains(a.el)){return !0}a=a.getRefOwner()}return !1},fireScrollStart:function(b,c,e,f){var a=this,d=a.component;a.startX=b-e;a.startY=c-f;if(a.hasListeners.scrollstart){a.fireEvent('scrollstart',a,b,c)}if(d&&d.onScrollStart){d.onScrollStart(b,c)}Ext.GlobalEvents.fireEvent('scrollstart',a,b,c)},fireScroll:function(e,f,c,d){var a=this,b=a.component;if(a.hasListeners.scroll){a.fireEvent('scroll',a,e,f,c,d)}if(b&&b.onScrollMove){b.onScrollMove(e,f,c,d)}Ext.fireEvent('scroll',a,e,f,c,d)},fireScrollEnd:function(b,c){var a=this,d=a.component,e=b-a.startX,f=c-a.startY;if(a.hasListeners.scrollend){a.fireEvent('scrollend',a,b,c,e,f)}if(d&&d.onScrollEnd){d.onScrollEnd(b,c,e,f)}Ext.fireEvent('scrollend',a,b,c,e,f)},getEnsureVisibleXY:function(d,b){var e=this.getPosition(),f=this.component?this.component.getScrollableClientRegion():this.getElement(),c,a;if(d&&d.element&&!d.isElement){b=d;d=b.element}b=b||{};a=b.align;if(a){if(Ext.isString(a)){a={x:b.x===!1?null:a,y:b.y===!1?null:a}}else if(Ext.isObject(a)){if(a.x&&b.x===!1){a.x=null}if(a.y&&b.y===!1){a.y=null}}}c=Ext.fly(d).getScrollIntoViewXY(f,e.x,e.y,a);c.x=b.x===!1?e.x:c.x;c.y=b.y===!1?e.y:c.y;return c},onPartnerScroll:function(a,b){this.doScrollTo(a,b)},onPartnerScrollStart:function(c,d,a,b){this.isScrolling=!0;if(a||b){this.doScrollTo(c,d)}},onPartnerScrollEnd:function(){this.isScrolling=!1},restoreState:Ext.privateFn,resumePartnerSync:function(e){var a=this,d,b,c;if(a.suspendSync){a.suspendSync--}if(!a.suspendSync&&e){d=a.position;b=d.x;c=d.y;a.callPartners('onPartnerScrollStart',undefined,undefined);a.callPartners('fireScrollStart',undefined,undefined);a.callPartners('onPartnerScroll',b,c);a.callPartners('fireScroll',b,c);a.callPartners('onPartnerScrollEnd');a.callPartners('fireScrollEnd',b,c)}},setPrimary:function(c){var a=this,d=a._partners,b,e,f;if(c){for(f in d){b=d[f];e=b.scroller;if(!b.calledPrimary){b.calledPrimary=!0;e.setPrimary(!1);b.calledPrimary=!1}}a.isScrolling=Ext.isScrolling=!0}else if(a.isScrolling){a.cancelOnScrollEnd();a.doOnScrollEnd()}a.isPrimary=c},suspendPartnerSync:function(){this.suspendSync=(this.suspendSync||0)+1},syncWithPartners:function(){var c=this,g=c._partners,d=c.position,m,l,j,k,e,f,a,b,h,i;for(m in g){l=g[m].axes;j=l.x;k=l.y;e=g[m].scroller;f=e.position;e.setPrimary(!0);a=j?d.x:null;b=k?d.y:null;h=i=0;c.onPartnerScrollStart(a,b,0,0);c.fireScrollStart(a,b,0,0);a=j?f.x:null;b=k?f.y:null;h=(a===null)?0:(a-d.x);i=(b===null)?0:(b-d.y);c.onPartnerScroll(a,b);c.fireScroll(a,b,h,i);c.onPartnerScrollEnd();c.fireScrollEnd(a,b);e.setPrimary(null)}},applyTranslatable:function(b,a){return Ext.Factory.translatable.update(a,b,this,'createTranslatable')}},deprecated:{'5':{methods:{getScroller:function(){return this}}},'5.1.0':{methods:{scrollToTop:function(a){return this.scrollTo(0,0,a)},scrollToEnd:function(a){return this.scrollTo(Infinity,Infinity,a)}}}}});Ext.define('Ext.Component',{extend:Ext.Widget,mixins:[Ext.state.Stateful],alternateClassName:['Ext.lib.Component','Ext.Gadget'],xtype:'component',cachedConfig:{padding:null,tabIndex:null},eventedConfig:{left:null,top:null,right:null,bottom:null,minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,scrollable:null,docked:null,centered:{lazy:!0,$value:null}},config:{displayed:null,html:null,draggable:null,zIndex:null,tpl:null,enterAnimation:null,exitAnimation:null,showAnimation:null,hideAnimation:null,tplWriteMode:'overwrite',data:null,contentEl:null,record:null,tooltip:null,axisLock:null,modal:{lazy:!0,$value:null},hideOnMaskTap:null,weight:null,userSelectable:null},modelValidation:null,defaultBindProperty:'html',isComponent:!0,positioned:!1,rendered:!1,activeAnimation:null,dockPositions:{top:!0,right:!0,bottom:!0,left:!0},bodyElement:null,classCls:Ext.baseCSSPrefix+'component',floatingCls:Ext.baseCSSPrefix+'floating',hiddenCls:Ext.baseCSSPrefix+'hidden',_scrollableCfg:{x:{x:!0,y:!1},y:{x:!1,y:!0},horizontal:{x:!0,y:!1},vertical:{x:!1,y:!0},both:{x:!0,y:!0},'true':{x:!0,y:!0},'false':{x:!1,y:!1}},statics:{from:function(c,b,a){return Ext.ComponentManager.from(c,b,a)},fromElement:function(c,b,a){return Ext.ComponentManager.from(c,b,a)}},initialConfig:null,$initParent:null,userSelectableClsMap:{"true":Ext.baseCSSPrefix+'user-selectable-auto',"false":Ext.baseCSSPrefix+'user-selectable-none',all:Ext.baseCSSPrefix+'user-selectable-all',auto:Ext.baseCSSPrefix+'user-selectable-auto',text:Ext.baseCSSPrefix+'user-selectable-text',none:Ext.baseCSSPrefix+'user-selectable-none'},constructor:function(b){var a=this,g=Ext['Viewport'],f=b&&b.renderTo,d,e,c;a.lastSize={};a.onInitializedListeners=[];if(b){a.initialConfig=b;a.$initParent=b.$initParent}if(f){b=Ext.apply({},b);delete b.renderTo}a.callParent([b]);c=a.el;if(!a.getRefOwner()){c.addCls(a.rootCls)}a.refreshPositioned=a.doRefreshPositioned;if(a.refreshPositionedOnInitialized){a.refreshPositioned()}a.initialize();a.triggerInitialized();if(a.isCentered()){a.center()}d=a.hasListeners;e=d.resize;if(a.hasListeners.painted){c.on('painted','handleElementPainted',a)}if((e||a.onResize)&&!a.isViewport){if(!e){d._incr_('resize')}c.on({scope:a,resize:'handleElementResize',priority:1000})}if(a.fullscreen&&g){g.setItemFullScreen(a)}a.fireEvent('initialize',a);if(f){a.setRenderTo(f)}},beforeInitConfig:function(a){this.beforeInitialize.apply(this,arguments)},beforeInitialize:Ext.emptyFn,initialize:Ext.emptyFn,center:function(){var a=this,b=a.getParent(),d,f,c,e;if((!b||b.rendered)&&a.shouldRecenter()){f=!!b;b=b?b.bodyElement:Ext.getBody();d=b.getConstrainRegion();e=a.measure();c=[(d.getWidth()-e.width)/2,(d.getHeight()-e.height)/2];a.needsCenter=!1;a._centering=!0;if(a.getFloated()){if(f){c=b.reverseTranslateXY(c)}a.setXY(c)}else {a.setLeft(c[0]);a.setTop(c[1])}a._centering=!1}else {a.needsCenter=!0}return a},shouldRecenter:function(){return this.rendered&&!this.$isShowing&&(this.el.isVisible()||this.el.getVisibilityMode()!==Ext.Element.DISPLAY)},getModalSibling:function(){var d=this,g=Ext.getFloatRoot().dom,b,f,c,a,e;for(b=d.floatParentNode&&d.floatParentNode.dom;b;b=(b===g||f.getRelative())?null:b.parentNode){f=Ext.fly(b).getData().component;c=b.childNodes;for(e=c?c.length:0;e-->0;){a=Ext.fly(c[e]);if(a.hasCls(d.floatWrapCls)){a=a.getData().component;if(a&&a!==d&&a.isVisible()&&a.getModal()){return a}}}}return null},triggerInitialized:function(){var e=this.onInitializedListeners,g=e.length,a,c,b,f,d;if(!this.initialized){this.initialized=!0;if(g>0){for(d=0;d<g;d++){a=e[d];c=a.fn;b=a.scope;f=a.args;if(typeof c==='string'){b[c].apply(b,f)}else {c.apply(b,f)}}e.length=0}}},onInitialized:function(d,b,a){var c=this,e=c.onInitializedListeners;if(!b){b=c}if(a){a=a.slice();a.unshift(c)}else {a=[c]}if(c.initialized){if(typeof d==='string'){b[d].apply(b,a)}else {d.apply(b,a)}}else {e.push({fn:d,scope:b,args:a})}},initElement:function(){var a=this;a.callParent();if(!a.bodyElement){a.bodyElement=a.element}a.innerElement=a.innerElement||a.bodyElement},initInheritedState:function(b){var a=this;if(a.modelValidation!==null){b.modelValidation=a.modelValidation}a.callParent([b])},applyScrollable:function(a,b){var c=this;if((typeof a==='boolean')||(typeof a==='string')){a=c._scrollableCfg[a]}return Ext.Factory.scroller.update(b,a,this,'createScrollable')},applyHidden:function(a){if(!a&&this.isConfiguring&&this.getFloated()){this.preprocessShow()}return !!a},createScrollable:function(a){return Ext.apply({component:this,element:this.getScrollerTarget()},a)},getScrollerTarget:function(){return this.bodyElement},getScrollableClientRegion:function(){var d=this,c=d.getScrollerTarget().getClientRegion(),b=d.getScrollable(),a;if(b&&b.isVirtualScroller){a=b.getScrollbarSize();c.adjust(0,0,-a.height,-a.width)}return c},updatePadding:function(a){this.bodyElement.setPadding(a)},updateWeight:function(c,d){var a=this,b=!a.isConfiguring&&a.getRefOwner();a.weight=c;if(b&&b.onItemWeightChange){b.onItemWeightChange(a,c,d)}},applyContentEl:function(a){if(a){return Ext.get(a)}},updateContentEl:function(a,b){if(b){b.hide();Ext.getBody().append(b)}if(a){this.setHtml(a.dom);a.show()}},createTranslatable:function(a){var c=this,b=c.callParent([a]);if(a&&!a.type&&c.getFloated()){b.type='csstransform'}return b},isCentered:function(){return Boolean(this.getCentered())},isPositioned:function(){return this.positioned},isDocked:function(){return Boolean(this.getDocked())},applyTop:function(a){return this.filterLengthValue(a)},applyRight:function(a){return this.filterLengthValue(a)},applyBottom:function(a){return this.filterLengthValue(a)},applyLeft:function(a){return this.filterLengthValue(a)},applyMinWidth:function(a){return this.filterLengthValue(a)},applyMinHeight:function(a){return this.filterLengthValue(a)},applyMaxWidth:function(a){return this.filterLengthValue(a)},applyMaxHeight:function(a){return this.filterLengthValue(a)},updateTop:function(a){if(!this.$updatingXY){this.element.setTop(a)}this.refreshPositioned()},updateRight:function(a){if(!this.$updatingXY){this.element.setRight(a)}this.refreshPositioned()},updateBottom:function(a){if(!this.$updatingXY){this.element.setBottom(a)}this.refreshPositioned()},updateLeft:function(a){if(!this.$updatingXY){this.element.setLeft(a)}this.refreshPositioned()},onResize:null,updateMinWidth:function(a){this.element.setMinWidth(a)},updateMinHeight:function(a){this.element.setMinHeight(a)},updateMaxWidth:function(a){this.element.setMaxWidth(a)},updateMaxHeight:function(a){this.element.setMaxHeight(a)},applyCentered:function(b){var a=this,c=a.getLeft()===null&&a.getRight()===null&&a.getTop()===null&&a.getBottom()===null;if(c){return !!b}},updateCentered:function(c){var a=this,b;if(a.getFloated()){if(c){a.center();if(!a.centerResizeListener&&!a.needsCenter){b=a.floatParentNode;b=(b===Ext.floatRoot)?Ext:b;a.centerResizeListener=b.on({resize:'center',scope:a,destroyable:!0})}}else {a.centerResizeListener=Ext.destroy(a.centerResizeListener)}}else {a.el.toggleCls(a.floatingCls,c);if(c){a.refreshInnerState=Ext.emptyFn;if(a.isContainer&&(!a.isWidthed()||!a.isHeighted())){a.setAutoSize(!0)}if(a.isPositioned()){a.resetPositioned()}if(a.isDocked()){a.setDocked(!1)}a.setIsInner(!1);delete a.refreshInnerState}else {a.refreshInnerState()}}},applyDocked:function(b){var a=this;if(!b){return null}a.refreshInnerState=Ext.emptyFn;if(a.isPositioned()){a.resetPositioned()}if(a.isCentered()){a.setCentered(!1)}a.setIsInner(!1);delete a.refreshInnerState;return b},getDisplayed:function(){return !this.getHidden()},setDisplayed:function(a){var b=this,c=b.getHidden()!==!1;if(a===c){b._displayed=a;b.updateDisplayed(a,!a)}return b},updateDisplayed:function(a){this[a?'show':'hide']()},updateDocked:function(b,c){var a=this;if(!a.isConfiguring){a.fireEvent('afterdockedchange',a,b,c);if(!b){a.refreshInnerState()}}},updateUserSelectable:function(b,c){var f=this,e=f.userSelectableClsMap,g=f.el,a,d;if(typeof c==='boolean'||typeof c==='string'){g.removeCls(e[c])}else {for(a in c){d=f[a];d.removeCls(e[c[a]])}}if(typeof b==='boolean'||typeof b==='string'){g.addCls(e[b])}else {for(a in b){d=f[a];d.addCls(e[b[a]])}}},resetPositioned:function(){var a=this;a.setTop(null);a.setRight(null);a.setBottom(null);a.setLeft(null)},refreshPositioned:function(){this.refreshPositionedOnInitialized=!0},doRefreshPositioned:function(){var a=this,b=!a.getConfig('floated',!1,!0)&&(a.getTop()!==null||a.getBottom()!==null||a.getRight()!==null||a.getLeft()!==null);if(b!==this.positioned){a.positioned=b;if(b){a.refreshInnerState=Ext.emptyFn;if(a.isContainer&&(!a.isWidthed()||!a.isHeighted())){a.setAutoSize(!0)}if(a.isCentered()){a.setCentered(!1)}if(a.isDocked()){a.setDocked(!1)}a.setIsInner(!1);delete a.refreshInnerState}a.element.toggleCls(a.floatingCls,b);if(a.initialized){a.fireEvent('floatingchange',a,b);a.fireEvent('positionedchange',a,b)}if(!b){a.refreshInnerState()}}},applyZIndex:function(a){if(!a&&a!==0){a=null}if(a!==null){a=Number(a);if(isNaN(a)){a=null}}return a},updateZIndex:function(c){var b=this.element,d=!this.getFloated()&&this.getModal(),a;if(b&&!b.destroyed){a=b.dom.style;if(c!==null){a.setProperty('z-index',c,'important')}else {a.removeProperty('z-index')}}if(d&&!d.destroyed){d.setZIndex(c-1)}},getInnerHtmlElement:function(){var b=this,a=b.innerHtmlElement;if(!a||!a.dom||!a.dom.parentNode){b.innerHtmlElement=a=Ext.Element.create({cls:Ext.baseCSSPrefix+'innerhtml'});b.getRenderTarget().appendChild(a)}return a},updateHtml:function(b){var a;if(!this.destroyed){a=this.getInnerHtmlElement();if(Ext.isElement(b)){a.setHtml('');a.append(b)}else {a.setHtml(b)}}},updateHidden:function(b,f){var a=this,d=a.renderElement,c=a.getModal(),e;if(a.rendered){if(c&&!c.destroyed){if(a.getFloated()){if(b){c=a.getModalSibling();if(c){c.showModalMask()}else {a.hideModalMask()}}else {a.showModalMask()}}else {if(c!==!0){c.setZIndex(a.getZIndex()-1);if(c.getHidden()!==b){c.setHidden(b)}}}}if(!a.destroying&&d&&!d.destroyed){d.toggleCls(a.hiddenCls,b)}a.callParent([b,f])}else {d.toggleCls(a.hiddenCls,b);a.callParent([b,f])}if(!a.isConfiguring&&!a.destroying){e=b?'hide':'show';if(a.hasListeners[e]){a.fireEvent(e,a)}a[b?'afterHide':'afterShow'](a)}},hide:function(b){var a=this,d=a.activeAnimation,c;if(a.isVisible()){if(a.hasListeners.beforehide&&a.fireEvent('beforehide',a)===!1){return}if(a.beforeHide()===!1){return}a.viewportResizeListener=Ext.destroy(a.viewportResizeListener);a.setCurrentAlignmentInfo(null);if(d){d.on({animationend:function(){a.hide(b)},single:!0});return a}if(!a.getHidden()){if(b===undefined||(b&&!Ext.isObject(b))){b=a.getHideAnimation()}if(b){a.on({beforehiddenchange:'onBeforeHiddenChange',scope:a,single:!0,args:[b]})}a.setHidden(!0)}if(!a.getFloated()){c=a.getModal();if(c&&c!==!0&&!c.destroyed){c.setHidden(!0)}}}else {a.setHidden(!0)}return a},preprocessShow:function(c,e,f){var a=this,d=a.getHideMode(),b;if(a.isContainer){a.getItems()}a.getHtml();if(a.getFloated()){b=(!d||d==='display')&&a.getHidden();if(a.rendered){if(b){a.setVisibility(!0);a._hidden=!1}}else {b=b!==!1;a.findFloatParent(b)}if(c){a.notifyIf();a.alignTo(c,e,f)}else {if(a.isCentered()){a.notifyIf();a.updateCentered(!0)}else {a.syncXYPosition()}}if(a.getModal()){a.showModalMask()}if(a.getToFrontOnShow()){a.toFront()}else {a.syncAlwaysOnTop()}if(b){a.setVisibility(!1);a._hidden=!0}}},showBy:function(d,c,b){var a=this,e;if(Ext.isArray(b)){e=b;b={offset:e}}if(a.isVisible()){a.alignTo(d,c,b)}else {if(!a.getFloated()){if(!a.getParent()){a.setFloated(!0)}else {a.positioned=!0}}a.alignToArgs=[d,c,b];a.show({animation:!0,alignment:{component:d,alignment:c,options:b}})}},show:function(b,c){var a=this,f=a.getHidden(),g=a.getFloated(),d,e;if(b&&typeof b==='object'&&'animation' in b){c=b;b=c.animation}else {c=Ext.apply({animation:b},c)}if(a.hasListeners.beforeshow&&a.fireEvent('beforeshow',a,c)===!1){return !1}if(a.beforeShow(c)===!1){return}d=c.alignment||{};a.preprocessShow(d.component,d.alignment,d.options);if(a.activeAnimation){if(!a.$isShowing){a.activeAnimation.on({animationend:function(){if(!a.destroying&&!a.destroyed){a.show(b,c)}},single:!0})}return a}if(f||f===null){if(b===undefined||(b&&!Ext.isObject(b))){b=a.getShowAnimation()}if(b&&!a.isConfiguring){a.on({beforehiddenchange:'onBeforeHiddenChange',scope:a,single:!0,args:[b]})}a.setHidden(!1)}if(!g){e=a.getModal();if(e&&e.setHidden){e.setHidden(!1)}}return a},onAnimationStart:function(f,g,d){var a=this,e=a.element,b=d.from.transform,c=d.to.transform;if(!f){a.renderElement.show();e.removeCls(a.hiddenCls);if(a.needsCenter){a.center()}}a.$isShowing=!0;if(a.getFloated()&&b&&c&&!(b.translateX|c.translateX|b.translateY|c.translateY)){b.translateX=c.translateX=null;b.translateY=c.translateY=null}},onBeforeHiddenChange:function(b,e,c,f,d){var a=this;if(b&&(!c||(c&&a.isPainted()))){if(!b.isAnimation){b=c?a.createHideAnimation(b):a.createShowAnimation(b);b=Ext.Factory.animation(b)}a.activeAnimation=b;b.on({animationstart:'onAnimationStart',scope:a,single:!0,args:[c]});if(!Ext.isEmpty(c)){b.setOnEnd(function(){a.activeAnimation=null;a.$isShowing=!1;if(!a.destroyed){d.resume();if(a.destroying||a.destroyed){return}if(a.getFloated()){a.syncXYPosition()}}});if(!c){a._hidden=!1}d.pause()}Ext.Animator.run(b)}},setVisibility:function(a){this.renderElement.setVisible(a)},isRendered:function(){return this.rendered},isPainted:function(){return this.renderElement.isPainted()},applyTpl:function(a){return Ext.XTemplate.get(a)},updateTpl:function(a){if(!this.isConfiguring){if(a){this.doUpdateTpl()}else {this.getInnerHtmlElement().setHtml('')}}},applyData:function(a){if(Ext.isObject(a)){return Ext.apply({},a)}else if(!a){a={}}return a},updateData:function(b){var a=this;if(b){a.doUpdateTpl(b);if(!a.isConfiguring){a.fireEvent('updatedata',a,b)}}},applyRecord:function(a){if(a&&Ext.isObject(a)&&a.isModel){return a}return null},updateRecord:function(b,c){var a=this;if(c){c.unjoin(a)}if(!b){a.updateData('')}else {b.join(a);a.doUpdateTpl(b.getData(!0))}},afterEdit:function(){this.updateRecord(this.getRecord())},afterErase:function(){this.setRecord(null)},getXTypes:function(){return this.xtypesChain.join('/')},applyDraggable:function(a,b){if(b){if(a){b.setConfig(a)}else {b.destroy()}}else if(a){a=this.createDraggable(a);a=new Ext.drag.Source(a);if(this.initDragConstraints){a.on('initdragconstraints','initDragConstraints',this)}}return a},createDraggable:function(a){var c=this,b=a.listeners;a=Ext.apply({autoDestroy:!1,component:c,ownerCmp:c,local:!0},a);if(b&&b.scope==='this'){a.listeners=b=Ext.apply({},b);b.scope=c}return a},updateDraggable:function(b,a){if(a){if(b){a.setConfig(b)}else {a.destroy()}}},onModalMaskTap:function(a){if(this.getHideOnMaskTap()){this.hide()}},translateAxis:function(e,a,d){var b,c;if(e==='x'){b=a}else {c=a}return this.translate(b,c,d)},alignTo:function(c,b,d){var a=this;if(!a.viewportResizeListener){a.viewportResizeListener=Ext.on({resize:'onViewportResize',scope:a,destroyable:!0})}a.aligning=!0;a.callParent([c,b,Ext.apply({axisLock:a.getAxisLock()},d)]);a.aligning=!1},onViewportResize:function(){if(this.isVisible()){this.realign()}},showAt:function(b,c){var a=this;if(a.getFloated()||a.isPositioned()){if(arguments.length===1){if(b.x){c=b.y;b=b.x}else {c=b[1];b=b[0]}}a.show();if(a.isPositioned()){a.setLeft(b);a.setTop(c)}else {a.setX(b);a.setY(c)}}return a},onAdded:function(c,d){var a=this,b;a.callParent([c,d]);if(!a.getFloated()){b=a.getModal();if(b){c.insertBefore(b,a);b.setZIndex(a.getZIndex()-1)}}a.el.removeCls(a.rootCls)},onRemoved:function(a){if(!a){this.el.addCls(this.rootCls)}this.callParent([a])},applyTooltip:function(a){if(a){if(a.isInstance){a.setTarget(this);return a}else if(typeof a==='string'){a={html:a}}else {a=Ext.merge({},a)}if(a.autoCreate||a.autoHide===!1){delete a.autoCreate;a.target=this;a.xtype=a.xtype||'tooltip';a=Ext.create(a)}else {delete a.xtype}}return a},updateTooltip:function(c,b){var g=this.el,e,a,d,f;if(b){if(b.isInstance){Ext.destroy(b)}else {d=Ext.fly(b.target);e=d&&d.peekData();if(e){delete e.qtip}}}if(c&&!c.isInstance){g.getData().qtip=c;a=Ext['tip'];a=a&&a.Manager;a=a&&a.instance;if(a){f=a.tip;if(f.currentTarget.dom===g.dom){a.onBeforeShow(f)}}}},applyModal:function(b,a){var c;if(this.getFloated()){return !!b}c=this.isVisible();if(b===!1){b=!0;c=!1}a=Ext.factory(b,Ext['Mask'],typeof a==='boolean'?null:a);if(a){a.setVisibility(c);a.on('tap','onModalMaskTap',this)}return a},updateModal:function(b){var a=this,d=a.getParent(),e=(a.floatWrap||a.element).dom,c;if(a.getFloated()){if(b){if(a.isVisible()&&!e.nextSibling){a.showModalMask()}}else {c=a.getModalSibling();if(c){c.showModalMask()}else {a.hideModalMask()}}}else {if(d){if(b){d.insertBefore(b,a);b.setZIndex(a.getZIndex()-1)}else {d.remove(b)}}}},applyHideAnimation:function(b,a){return Ext.Factory.animation.update(a,b,this,'createHideAnimation')},createHideAnimation:function(a){return Ext.apply({type:'fadeOut',element:this.element},a)},applyShowAnimation:function(b,a){return Ext.Factory.animation.update(a,b,this,'createShowAnimation')},createShowAnimation:function(a){return Ext.apply({type:'fadeIn',element:this.element},a)},doDestroy:function(){var a=this,b;if(a.isVisible()){a.revertFocus();if(a.getModal()&&a.getFloated()){b=a.getModalSibling();if(b){b.showModalMask()}else {a.hideModalMask()}}}if(a.hasListeners.destroy){a.fireEvent('destroy',a)}a.destroyMembers('modal','innerHtmlElement','scrollerElement','scrollable','showAnimation','hideAnimation','centerResizeListener','visibleListener');a.setPlugins(null);a.setRecord(null);a.setTooltip(null);a.callParent()},privates:{preciseWidth:!1,clearWhenVisible:function(c){var a=this,b=a.pendingVisible;if(b){delete b[c];if(Ext.Object.isEmpty(b)){a.pendingVisible=null;a.visibleListener=Ext.destroy(a.visibleListener)}}},convertToLocalXY:function(e){var a=this,d=a.element.getXY(),b=0,c=0;if(a.isPositioned()){b=a.getLeft()||0;c=a.getTop()||0}else {b=a.getX()||0;c=a.getY()||0}return [e[0]-d[0]+b,e[1]-d[1]+c]},doAddListener:function(b,i,h,e,g,f,d){var a=this,c=a.element;if(a.initialized){if(b==='painted'){if(!a.hasListeners.painted){c.on('painted','handleElementPainted',a)}}else if(b==='resize'&&!a.isViewport){if(!a.hasListeners.resize){c.on({scope:a,resize:'handleElementResize',priority:1000})}}}return a.callParent([b,i,h,e,g,f,d])},doRemoveListener:function(b,f,e){var a=this,d=a.element,c=a.callParent([b,f,e]);if(c&&a.initialized){if(b==='painted'){if(!a.hasListeners.painted){d.un('painted','handleElementPainted',a)}}else if(b==='resize'&&!a.isViewport){if(!a.hasListeners.resize){d.un('resize','handleElementResize',a)}}}return c},doUpdateTpl:function(b){var a=this,d=a.getTpl(),c;if(d){c=a.getTplWriteMode();b=b||a.getData()||{};d[c](a.getInnerHtmlElement(),b)}},getRenderTarget:function(){var a=this.getScrollable();return (a&&a.isVirtualScroller)?a.getInnerElement():this.bodyElement},handleElementPainted:function(a){this.fireEvent('painted',this,a)},handleElementResize:function(i,d){var a=this,h=Math.ceil,e=a.lastSize,g=e.width||null,f=e.height||null,c,b;if(d.flag){c=d.width;b=d.height;if(c===0&&b===0){return}if(!a.preciseWidth){c=h(c);b=h(b)}e.width=c;e.height=b;if(a.onResize){a.onResize(c,b,g,f,d)}if(a.isCentered()){a.center()}a.fireEvent('resize',this,c,b,g,f,d)}},handleGlobalShow:function(b){var a=this;if(a.isVisible(!0)&&(b===a||a.isDescendantOf(b))){a.runWhenVisible()}},hasHiddenContent:function(){return this.getHidden()},runWhenVisible:function(){var a=this,c=a.pendingVisible,b;a.pendingVisible=null;a.visibleListener=Ext.destroy(a.visibleListener);for(b in c){a[b].apply(a,c[b])}},whenVisible:function(e,c){var a=this,f,b,d;c=c||Ext.emptyArray;f=a.visibleListener;b=a.pendingVisible;d=a.isVisible(!0);if(!d&&!f){a.visibleListener=Ext.on({scope:a,show:'handleGlobalShow',destroyable:!0})}if(d){if(b){b[e]=c;a.runWhenVisible()}else {a[e].apply(a,c)}}else {if(!b){a.pendingVisible=b={}}b[e]=c}return d},setXY:function(b,c,d){var a=this,e=a.getFloated();if(typeof b!=='number'){d=c;c=b[1];b=b[0]}a.$updatingXY=!0;if(e){if(b!=null){a.setX(b)}if(c!=null){a.setY(c)}}else {if(b!=null){a.setLeft(b)}if(c!=null){a.setTop(c)}}a.$updatingXY=!1;if(e){a.syncXYPosition(d)}else {a.translate(b,c,d)}},syncXYPosition:function(b){var a=this;if(!a.aligning){a.viewportResizeListener=Ext.destroy(a.viewportResizeListener)}a.callParent([b])}},deprecated:{"6.2.0":{methods:{resetFloating:'resetPositioned'}},'6.5':{configs:{styleHtmlCls:null,styleHtmlContent:null}}}},function(a){});Ext.define('Ext.mixin.Responsive',function(a){return {extend:Ext.Mixin,mixinConfig:{id:'responsive',after:{destroy:'destroy'}},config:{responsiveConfig:{$value:undefined,merge:function(e,f,i,h){var g,b,d,c;if(!e){return f}d=f?Ext.Object.chain(f):{};g=a.context;for(c in e){if(!h||!(c in d)){b=e[c];if(b.fn!==g){b={fn:g,config:b}}d[c]=b}}return d}},responsiveFormulas:{$value:null,merge:function(c,d,e,b){return this.mergeNew(c,d,e,b)}}},destroy:function(){a.unregister(this)},privates:{statics:{active:!1,all:{},_configNames:['responsiveConfig','responsiveFormulas'],context:Ext.Object.chain(Ext.platformTags),count:0,nextId:0,activate:function(){a.active=!0;a.updateContext();Ext.on('resize',a.onResize,a)},deactivate:function(){a.active=!1;Ext.un('resize',a.onResize,a)},notify:function(){var b=a.all,d=a.context,e=a.timer,c;if(e){a.timer=Ext.unasap(e)}a.updateContext();Ext.suspendLayouts();Ext.fireEvent('beforeresponsiveupdate',d);for(c in b){b[c].setupResponsiveContext()}Ext.fireEvent('beginresponsiveupdate',d);for(c in b){b[c].updateResponsiveState()}Ext.fireEvent('responsiveupdate',d);Ext.resumeLayouts(!0)},onResize:function(){if(!a.timer){a.timer=Ext.asap(a.onTimer)}},onTimer:function(){a.timer=null;a.notify()},register:function(b){var c=b.$responsiveId;if(!c){b.$responsiveId=c=++a.nextId;a.all[c]=b;if(++a.count===1){a.activate()}}},unregister:function(b){var c=b.$responsiveId;if(c in a.all){b.$responsiveId=null;delete a.all[c];if(--a.count===0){a.deactivate()}}},updateContext:function(){var e=Ext.Element,d=e.getViewportWidth(),c=e.getViewportHeight(),b=a.context;b.width=d;b.height=c;b.tall=d<c;b.wide=!b.tall;b.landscape=b.portrait=!1;if(!b.platform){b.platform=Ext.platformTags}b[Ext.dom.Element.getOrientation()]=!0}},afterClassMixedIn:function(f){var c=f.prototype,e=c.responsiveConfig,d=c.responsiveFormulas,b;if(e||d){b={};if(e){delete c.responsiveConfig;b.responsiveConfig=e}if(d){delete c.responsiveFormulas;b.responsiveFormulas=d}f.getConfigurator().add(b)}f.addConfigTransform('transformResponsiveConfig',10)},applyResponsiveConfig:function(b){var c;for(c in b){b[c].fn=Ext.createRuleFn(c)}return b},applyResponsiveFormulas:function(c){var b,d,e;if(c){e={};for(d in c){if(Ext.isString(b=c[d])){b=Ext.createRuleFn(b)}e[d]=b}}return e},getResponsiveState:function(){var f=a.context,c=this.getResponsiveConfig(),b,d,e;if(c){d={};for(e in c){b=c[e];if(b.fn.call(this,f)){Ext.merge(d,b.config)}}}return d},setupResponsiveContext:function(){var b=this.getResponsiveFormulas(),d=a.context,c;if(b){for(c in b){d[c]=b[c].call(this,d)}}},transformResponsiveConfig:function(d,f){var c=this,b=d,e;if(f.hoistConfigs(c,d,a._configNames)){a.register(c);c.setupResponsiveContext();e=c.getResponsiveState();if(e){b=Ext.merge({},d,e);delete b.responsiveConfig;delete b.responsiveFormulas}}return b},updateResponsiveState:function(){var b=this.getResponsiveState();this.setConfig(b)}}}});Ext.define('Ext.Responsive',{override:'Ext.Widget',mixins:[Ext.mixin.Responsive]});Ext.define('Ext.Stateful',{override:'Ext.Widget',mixins:[Ext.state.Stateful]});Ext.define('Ext.ProgressBase',{mixinId:'progressbase',config:{value:0,textTpl:null},applyTextTpl:function(a){if(!a.isTemplate){a=new Ext.XTemplate(a)}return a},applyValue:function(a){return a||0}});Ext.define('Ext.Progress',{extend:Ext.Gadget,xtype:['progress','progressbarwidget'],alternateClassName:'Ext.ProgressBarWidget',mixins:[Ext.ProgressBase],config:{text:null,animate:!1},cachedConfig:{textCls:Ext.baseCSSPrefix+'progress-text',cls:null},baseCls:Ext.baseCSSPrefix+'progress',template:[{reference:'backgroundEl'},{reference:'barEl',cls:Ext.baseCSSPrefix+'progress-bar',children:[{reference:'textEl'}]}],defaultBindProperty:'value',updateCls:function(b,a){var c=this.element;if(a){c.removeCls(a)}if(b){c.addCls(b)}},updateUi:function(c,b){var d=this.element,e=this.barEl,a=this.baseCls+'-';this.callParent([c,b]);if(b){d.removeCls(a+b);e.removeCls(a+'bar-'+b)}d.addCls(a+c);e.addCls(a+'bar-'+c)},updateTextCls:function(a){this.backgroundEl.addCls(a+' '+a+'-back');this.textEl.addCls(a)},updateValue:function(b,d){var a=this,c=a.getTextTpl();if(c){a.setText(c.apply({value:b,percent:Math.round(b*100)}))}if(!a.isConfiguring&&a.getAnimate()){a.stopBarAnimation();a.startBarAnimation(Ext.apply({from:{width:(d*100)+'%'},to:{width:(b*100)+'%'}},a.animate))}else {a.barEl.setStyle('width',(b*100)+'%')}},updateText:function(a){this.backgroundEl.setHtml(a);this.textEl.setHtml(a)},doDestroy:function(){this.stopBarAnimation();this.callParent()},privates:{startBarAnimation:Ext.privateFn,stopBarAnimation:Ext.privateFn}});Ext.define('Ext.fx.State',{isAnimatable:{'background-color':!0,'background-image':!0,'background-position':!0,'border-bottom-color':!0,'border-bottom-width':!0,'border-color':!0,'border-left-color':!0,'border-left-width':!0,'border-right-color':!0,'border-right-width':!0,'border-spacing':!0,'border-top-color':!0,'border-top-width':!0,'border-width':!0,'bottom':!0,'color':!0,'crop':!0,'font-size':!0,'font-weight':!0,'height':!0,'left':!0,'letter-spacing':!0,'line-height':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'opacity':!0,'outline-color':!0,'outline-offset':!0,'outline-width':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'right':!0,'text-indent':!0,'text-shadow':!0,'top':!0,'vertical-align':!0,'visibility':!0,'width':!0,'word-spacing':!0,'z-index':!0,'zoom':!0,'transform':!0},constructor:function(a){this.data={};this.set(a)},setConfig:function(a){this.set(a);return this},setRaw:function(a){this.data=a;return this},clear:function(){return this.setRaw({})},setTransform:function(d,a){var g=this.data,e=Ext.isArray(a),b=g.transform,c,f;if(!b){b=g.transform={translateX:0,translateY:0,translateZ:0,scaleX:1,scaleY:1,scaleZ:1,rotate:0,rotateX:0,rotateY:0,rotateZ:0,skewX:0,skewY:0}}if(typeof d==='string'){switch(d){case 'translate':if(e){c=a.length;if(c===0){break}b.translateX=a[0];if(c===1){break}b.translateY=a[1];if(c===2){break}b.translateZ=a[2]}else {b.translateX=a};break;case 'rotate':if(e){c=a.length;if(c===0){break}b.rotateX=a[0];if(c===1){break}b.rotateY=a[1];if(c===2){break}b.rotateZ=a[2]}else {b.rotate=a};break;case 'scale':if(e){c=a.length;if(c===0){break}b.scaleX=a[0];if(c===1){break}b.scaleY=a[1];if(c===2){break}b.scaleZ=a[2]}else {b.scaleX=a;b.scaleY=a};break;case 'skew':if(e){c=a.length;if(c===0){break}b.skewX=a[0];if(c===1){break}b.skewY=a[1]}else {b.skewX=a};break;default:b[d]=a;}}else {for(f in d){if(d.hasOwnProperty(f)){a=d[f];this.setTransform(f,a)}}}},set:function(b,a){var d=this.data,c;if(typeof b!=='string'){for(c in b){a=b[c];if(c==='transform'){this.setTransform(a)}else {d[c]=a}}}else {if(b==='transform'){this.setTransform(a)}else {d[b]=a}}return this},unset:function(b){var a=this.data;if(a.hasOwnProperty(b)){delete a[b]}return this},getData:function(){return this.data}});Ext.define('Ext.fx.animation.Abstract',{extend:Ext.Evented,mixins:[Ext.mixin.Factoryable],factoryConfig:{type:'animation'},isAnimation:!0,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:!1,replacePrevious:!0},STATE_FROM:'0%',STATE_TO:'100%',DIRECTION_UP:'up',DIRECTION_TOP:'top',DIRECTION_DOWN:'down',DIRECTION_BOTTOM:'bottom',DIRECTION_LEFT:'left',DIRECTION_RIGHT:'right',stateNameRegex:/^(?:[\d.]+)%$/,constructor:function(){this.states={};this.callParent(arguments);return this},applyElement:function(a){return Ext.get(a)},applyBefore:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},applyAfter:function(a,b){if(a){return Ext.factory(a,Ext.fx.State,b)}},setFrom:function(a){return this.setState(this.STATE_FROM,a)},setTo:function(a){return this.setState(this.STATE_TO,a)},getFrom:function(){return this.getState(this.STATE_FROM)},getTo:function(){return this.getState(this.STATE_TO)},setStates:function(b){var c=this.stateNameRegex,a;for(a in b){if(c.test(a)){this.setState(a,b[a])}}return this},getStates:function(){return this.states},updateCallback:function(a){if(a){this.setOnEnd(a)}},end:function(){this.stop()},stop:function(){this.fireEvent('stop',this)},destroy:function(){this.destroying=!0;this.stop();this.callParent();this.destroying=!1;this.destroyed=!0},setState:function(c,d){var b=this.getStates(),a;a=Ext.factory(d,Ext.fx.State,b[c]);if(a){b[c]=a}return this},getState:function(a){return this.getStates()[a]},getData:function(){var a=this,b=a.getStates(),d={},e=a.getBefore(),f=a.getAfter(),k=b[a.STATE_FROM],l=b[a.STATE_TO],i=k.getData(),j=l.getData(),h,c,g;for(c in b){if(b.hasOwnProperty(c)){g=b[c];h=g.getData();d[c]=h}}return {before:e?e.getData():{},after:f?f.getData():{},states:d,from:i,to:j,duration:a.getDuration(),iteration:a.getIteration(),direction:a.getDirection(),easing:a.getEasing(),delay:a.getDelay(),onEnd:a.getOnEnd(),onBeforeEnd:a.getOnBeforeEnd(),onBeforeStart:a.getOnBeforeStart(),scope:a.getScope(),preserveEndState:a.getPreserveEndState(),replacePrevious:a.getReplacePrevious()}}});Ext.define('Ext.fx.animation.Slide',{extend:Ext.fx.animation.Abstract,alternateClassName:'Ext.fx.animation.SlideIn',alias:['animation.slide','animation.slideIn'],config:{direction:'left',out:!1,offset:0,easing:'auto',containerBox:'auto',elementBox:'auto',isElementBoxFit:!0,useCssTransform:!0},reverseDirectionMap:{up:'down',top:'down',down:'up',bottom:'up',left:'right',right:'left'},applyEasing:function(a){if(a==='auto'){return 'ease-'+((this.getOut())?'in':'out')}return a},getContainerBox:function(){var a=this._containerBox;if(a==='auto'){a=this.getElement().getParent().getBox()}return a},getElementBox:function(){var a=this._elementBox;if(this.getIsElementBoxFit()){return this.getContainerBox()}if(a==='auto'){a=this.getElement().getBox()}return a},getData:function(){var p=this.getElementBox(),c=this.getContainerBox(),a=p?p:c,k=this.getFrom(),n=this.getTo(),d=this.getOut(),b=this.getOffset(),h=this.getDirection(),o=this.getUseCssTransform(),q=this.getReverse(),e=0,f=0,g,i,j,l,m;if(typeof b==='string'){g=!0;b=parseFloat(b)}if(q){h=this.reverseDirectionMap[h]}switch(h){case this.DIRECTION_UP:case this.DIRECTION_TOP:if(g){b=a.height*b/100};if(d){f=c.top-a.top-a.height-b}else {f=c.bottom-a.bottom+a.height+b};break;case this.DIRECTION_DOWN:case this.DIRECTION_BOTTOM:if(g){b=a.height*b/100};if(d){f=c.bottom-a.bottom+a.height+b}else {f=c.top-a.height-a.top-b};break;case this.DIRECTION_RIGHT:if(g){b=a.width*b/100};if(d){e=c.right-a.right+a.width+b}else {e=c.left-a.left-a.width-b};break;case this.DIRECTION_LEFT:if(g){b=a.width*b/100};if(d){e=c.left-a.left-a.width-b}else {e=c.right-a.right+a.width+b};break;}i=(d)?0:e;j=(d)?0:f;if(o){k.setTransform({translateX:i,translateY:j})}else {k.set('left',i);k.set('top',j)}l=(d)?e:0;m=(d)?f:0;if(o){n.setTransform({translateX:l,translateY:m})}else {n.set('left',l);n.set('top',m)}return this.callParent(arguments)}});Ext.define('Ext.fx.animation.SlideOut',{extend:Ext.fx.animation.Slide,alias:['animation.slideOut'],config:{out:!0}});Ext.define('Ext.fx.animation.Fade',{extend:Ext.fx.animation.Abstract,alternateClassName:'Ext.fx.animation.FadeIn',alias:['animation.fade','animation.fadeIn'],config:{out:!1,before:{display:null,opacity:0},after:{opacity:null},reverse:null},updateOut:function(c){var b=this.getTo(),a=this.getFrom();if(c){a.set('opacity',1);b.set('opacity',0)}else {a.set('opacity',0);b.set('opacity',1)}}});Ext.define('Ext.fx.animation.FadeOut',{extend:Ext.fx.animation.Fade,alias:'animation.fadeOut',config:{out:!0,before:{}}});Ext.define('Ext.fx.animation.Flip',{extend:Ext.fx.animation.Abstract,alias:'animation.flip',config:{easing:'ease-in',direction:'right',half:!1,out:null},getData:function(){var c=this,k=c.getFrom(),m=c.getTo(),j=c.getDirection(),b=c.getOut(),l=c.getHalf(),a=l?90:180,h=1,i=1,d=0,e=0,f=0,g=0;if(b){i=0.8}else {h=0.8}switch(j){case this.DIRECTION_UP:case this.DIRECTION_TOP:if(b){f=a}else {d=-a};break;case this.DIRECTION_DOWN:case this.DIRECTION_BOTTOM:if(b){f=-a}else {d=a};break;case this.DIRECTION_RIGHT:if(b){g=a}else {e=-a};break;case this.DIRECTION_LEFT:if(b){g=-a}else {e=a};break;}k.setTransform({rotateX:d,rotateY:e,scale:h});m.setTransform({rotateX:f,rotateY:g,scale:i});return this.callParent()}});Ext.define('Ext.fx.animation.Pop',{extend:Ext.fx.animation.Abstract,alias:['animation.pop','animation.popIn'],alternateClassName:'Ext.fx.animation.PopIn',config:{out:!1,before:{display:null,opacity:0},after:{opacity:null}},getData:function(){var b=this.getTo(),a=this.getFrom(),c=this.getOut();if(c){a.set('opacity',1);a.setTransform({scale:1});b.set('opacity',0);b.setTransform({scale:0})}else {a.set('opacity',0);a.setTransform({scale:0});b.set('opacity',1);b.setTransform({scale:1})}return this.callParent(arguments)}});Ext.define('Ext.fx.animation.PopOut',{extend:Ext.fx.animation.Pop,alias:'animation.popOut',config:{out:!0,before:{}}});Ext.define('Ext.fx.Animation',{constructor:function(a){var c=Ext.fx.animation.Abstract,b;if(typeof a==='string'){b=a;a={}}else if(a&&a.type){b=a.type}if(b){c=Ext.ClassManager.getByAlias('animation.'+b)}return Ext.factory(a,c)}});Ext.define('Ext.overrides.Progress',{override:'Ext.Progress',initialize:function(){this.callParent();this.on('painted','onPainted',this)},onPainted:function(){this.syncWidth()},onResize:function(a){this.syncWidth(a)},syncWidth:function(a){var b=this;if(a==null){a=b.element.getWidth()}b.backgroundEl.setWidth(a);b.textEl.setWidth(a)},privates:{startBarAnimation:function(b){var a=this;a.barAnim=new Ext.fx.Animation(Ext.apply(b,{element:a.barEl,preserveEndState:!0,callback:function(){delete a.barAnim}}));Ext.Animator.run(a.barAnim)},stopBarAnimation:function(){var a=this.barAnim;if(a){a.destroy()}this.barAnim=null}}});Ext.define('Ext.app.EventDomain',{statics:{instances:{}},isEventDomain:!0,isInstance:!1,constructor:function(){var a=this;if(!a.isInstance){Ext.app.EventDomain.instances[a.type]=a}a.bus={};a.monitoredClasses=[]},dispatch:function(l,h,m){h=Ext.canonicalEventName(h);var j=this,n=j.bus,b=n[h],c,a,i,g,e,k,d,f;if(!b){return !0}for(c in b){if(b.hasOwnProperty(c)&&j.match(l,c,j.controller)){a=b[c];for(i in a){if(a.hasOwnProperty(i)){g=a[i];if(g.controller.isActive()){e=g.list;k=e.length;for(d=0;d<k;d++){f=e[d];if(f.fire.apply(f,m)===!1){return !1}}}}}}}return !0},listen:function(p,e){var i=this,r=i.bus,t=i.idProperty,n=i.monitoredClasses,s=n.length,o=e.getId(),m=(i.type==='component'),u=m?e.getRefMap():null,j,f,q,a,d,b,h,l,g,c,k;for(a in p){g=p[a];if(m){a=u[a]||a}if(g){if(t){a=a==='*'?a:a.substring(1)}for(c in g){d=null;b=g[c];h=e;c=Ext.canonicalEventName(c);l=new Ext.util.Event(e,c);if(Ext.isObject(b)){d=b;b=d.fn;h=d.scope||e;delete d.fn;delete d.scope}if(typeof b==='string'){b=h[b]}l.addListener(b,h,d);for(j=0;j<s;++j){k=n[j].hasListeners;if(k){k._incr_(c)}}f=r[c]||(r[c]={});f=f[a]||(f[a]={});q=f[o]||(f[o]={controller:e,list:[]});q.list.push(l)}}}},match:function(c,b){var a=this.idProperty;if(a){return b==='*'||c[a]===b}return !1},monitor:function(a){var c=this,b=a.isInstance?a:a.prototype,d=b.doFireEvent;c.monitoredClasses.push(a);b.doFireEvent=function(f,g){var e=this,b;b=d.apply(e,arguments);if(b!==!1&&!e.destroyed&&!e.isSuspended(f)){b=c.dispatch(e,f,g)}return b}},unlisten:function(f){var k=this.bus,l=f,m=this.monitoredClasses,p=m.length,g,a,b,o,j,n,h,c,d,i,e;if(f.isController){l=f.getId()}for(a in k){a=Ext.canonicalEventName(a);if(k.hasOwnProperty(a)&&(h=k[a])){for(n in h){g=h[n];i=g[l];if(i){b=i.list;if(b){for(c=0,o=b.length;c<o;++c){j=b[c];j.clearListeners();for(d=0;d<p;++d){e=m[d].hasListeners;if(e){e._decr_(j.name)}}}delete g[l]}}}}}},destroy:function(){this.monitoredClasses=this.bus=null;this.callParent()}});Ext.define('Ext.app.domain.Component',{extend:Ext.app.EventDomain,singleton:!0,type:'component',constructor:function(){this.callParent();this.monitor(Ext.Widget)},dispatch:function(c,f,e){var a=c.lookupController(!1),b,d;while(a){b=a.compDomain;if(b){if(b.dispatch(c,f,e)===!1){return !1}}d=a.getView();a=d?d.lookupController(!0):null}return this.callParent([c,f,e])},match:function(b,a){return b.is(a)}});Ext.define('Ext.app.EventBus',{singleton:!0,constructor:function(){var a=this,b=Ext.app.EventDomain.instances;a.callParent();a.domains=b;a.bus=b.component.bus},control:function(b,a){return this.domains.component.listen(b,a)},listen:function(b,c){var d=this.domains,a;for(a in b){if(b.hasOwnProperty(a)){d[a].listen(b[a],c)}}},unlisten:function(c){var a=Ext.app.EventDomain.instances,b;for(b in a){a[b].unlisten(c)}}});Ext.define('Ext.app.domain.Global',{extend:Ext.app.EventDomain,singleton:!0,type:'global',constructor:function(){var a=this;a.callParent();a.monitor(Ext.GlobalEvents)},listen:function(b,a){this.callParent([{global:b},a])},match:Ext.returnTrue});Ext.define('Ext.route.Handler',{lazy:!1,statics:{fromRouteConfig:function(a,c){var b={action:a.action,before:a.before,lazy:a.lazy,exit:a.exit,scope:c,single:a.single};return new this(b)}},constructor:function(a){Ext.apply(this,a)}});Ext.define('Ext.route.Action',{config:{actions:null,befores:null,urlParams:[]},started:!1,stopped:!1,constructor:function(b){var a=this;a.deferred=new Ext.Deferred();a.resume=a.resume.bind(a);a.stop=a.stop.bind(a);a.initConfig(b);a.callParent([b])},applyActions:function(a){if(a){a=Ext.Array.from(a)}return a},applyBefores:function(a){if(a){a=Ext.Array.from(a)}return a},destroy:function(){this.deferred=null;this.setBefores(null).setActions(null).setUrlParams(null);this.callParent()},resume:function(){return this.next()},stop:function(){this.stopped=!0;return this.done()},next:function(){var a=this,c=a.getActions(),d=a.getBefores(),g=a.getUrlParams(),b,f,e;if(Ext.isArray(g)){e=g.slice()}else {e=[g]}if(a.stopped||(d?!d.length:!0)&&(c?!c.length:!0)){a.done()}else {if(d&&d.length){b=d.shift();e.push(a);f=Ext.callback(b.fn,b.scope,e);if(f&&f.then){f.then(function(b){a.resume(b)},function(b){a.stop(b)})}}else if(c&&c.length){b=c.shift();Ext.callback(b.fn,b.scope,e);a.next()}else {a.next()}}return a},run:function(){var a=this.deferred;if(!this.started){this.next();this.started=!0}return a.promise},done:function(){var a=this.deferred;if(this.stopped){a.reject()}else {a.resolve()}this.destroy();return this},before:function(a,d,e){if(!Ext.isBoolean(a)){e=d;d=a;a=!1}var b=this.getBefores(),c={fn:d,scope:e};if(b){if(a){b.unshift(c)}else {b.push(c)}}else {this.setBefores(c)}return this},action:function(a,d,e){if(!Ext.isBoolean(a)){e=d;d=a;a=!1}var b=this.getActions(),c={fn:d,scope:e};if(b){if(a){b.unshift(c)}else {b.push(c)}}else {this.setActions(c)}return this},then:function(a,b){return this.deferred.then(a,b)}});Ext.define('Ext.route.Route',{config:{name:null,url:null,allowInactive:!1,conditions:{},caseInsensitive:!1,handlers:[],types:{cached:!0,$value:{alpha:{re:'([a-zA-Z]+)'},alphanum:{re:'([a-zA-Z0-9]+|[0-9]+(?:\\.[0-9]+)?|[0-9]*(?:\\.[0-9]+){1})',parse:function(a){var b;if(a&&this.numRe.test(a)){b=parseFloat(a);if(!isNaN(b)){a=b}}return a}},num:{re:'([0-9]+(?:\\.[0-9]+)?|[0-9]*(?:\\.[0-9]+){1})',parse:function(a){if(a){a=parseFloat(a)}return a}},'...':{re:'(.+)?',split:'/',parse:function(a){var d,b,c;if(a){d=a.length;for(b=0;b<d;b++){c=parseFloat(a[b]);if(!isNaN(c)){a[b]=c}}}return a}}}}},defaultMatcher:'([%a-zA-Z0-9\\-\\_\\s,]+)',numRe:/^[0-9]*(?:\.[0-9]*)?$/,typeParamRegex:/:{([0-9A-Za-z_]+)(?::?([0-9A-Za-z_]+|.{3})?)}/g,optionalGroupRegex:/\((.+?)\)/g,paramMatchingRegex:/:([0-9A-Za-z_]+)/g,isRoute:!0,constructor:function(c){var a=this,b;this.initConfig(c);b=a.getUrl().replace(a.optionalGroupRegex,function(b,a){return '(?:'+a+')?'});if(b.match(a.typeParamRegex)){a.handleNamedPattern(b)}else {a.handlePositionalPattern(b)}},handlePositionalPattern:function(b){var a=this;a.paramsInMatchString=b.match(a.paramMatchingRegex)||[];a.matcherRegex=a.createMatcherRegex(b);a.mode='positional'},handleNamedPattern:function(g){var a=this,d=a.typeParamRegex,e=a.getConditions(),f=a.getTypes(),c=a.defaultMatcher,b={},h=g.replace(d,function(j,h,d){var i=d&&f[d],a=e[h]||i||c;if(Ext.isObject(a)){a=a.re}b[h]={matcher:a,type:d};return a});a.paramsInMatchString=b;a.matcherRegex=new RegExp('^'+h+'$',a.getCaseInsensitive()?'i':'');a.mode='named'},recognize:function(a){var b=this,j=b.recognizes(a),d,i,e,g,h,f,c;if(j){d=b.getHandlers();i=d.length;for(c=0;c<i;c++){g=d[c];if(g.lastToken!==a){e=!0;break}}if(!e&&a===b.lastToken){return !0}h=b.matchesFor(a);f=b.getUrlParams(a);return Ext.applyIf(h,{historyUrl:a,urlParams:f})}return !1},getUrlParams:function(a){if(this.mode==='named'){return this.getNamedUrlParams(a)}else {return this.getPositionalUrlParams(a)}},getPositionalUrlParams:function(j){var e=[],d=this.getConditions(),h=this.paramsInMatchString,g=j.match(this.matcherRegex),i=h.length,c,b,f,a;g.shift();for(c=0;c<i;c++){b=h[c];a=g[c];if(d[b]){f=d[b]}else if(b[0]===':'){b=b.substr(1);if(d[b]){f=d[b]}}a=this.parseValue(a,f);if(Ext.isDefined(a)&&a!==''){if(Ext.isArray(a)){e.push.apply(e,a)}else {e.push(a)}}}return e},getNamedUrlParams:function(k){var j=this.getConditions(),g=this.getTypes(),e={},i=this.paramsInMatchString,f=k.match(this.matcherRegex),a,d,h,b,c;f.shift();for(a in i){d=i[a];h=f.shift();c=j[a];b=g[d.type];if(c||b){b=Ext.merge({},c,g[d.type])}e[a]=this.parseValue(h,b)}return e},parseValue:function(a,b){if(b){if(a&&b.split){a=a.split(b.split);if(!a[0]){a.shift()}if(!a[a.length-1]){a.pop()}}if(b.parse){a=b.parse.call(this,a)}}if(!a&&Ext.isString(a)){a=undefined}return a},recognizes:function(a){return this.matcherRegex.test(a)},execute:function(h,j){var c=this,n=c.getAllowInactive(),m=c.getHandlers(),d=Ext.route.Router.getQueueRoutes(),o=m.length,l=(j&&j.urlParams)||[],i,b,e,a,k,g,f;c.lastToken=h;if(!d){k=[]}return new Ext.Promise(function(q,p){if(j===!1){p()}else {if(d){a=new Ext.route.Action({urlParams:l})}for(i=0;i<o;i++){b=m[i];if(h!=null&&b.lastToken===h){continue}e=b.scope;b.lastToken=h;if(!n&&e.isActive&&!e.isActive()){continue}if(!d){a=new Ext.route.Action({urlParams:l})}g=b.single;if(b.before){a.before(b.before,e)}if(b.action){a.action(b.action,e)}if(g){f=Ext.bind(c.removeHandler,c,[null,b]);if(g===!0){if(b.action){a.action(f,c)}else {a.before(function(){f();return Ext.Promise.resolve()},c)}}else {a.before(g==='before',function(){f();return Ext.Promise.resolve()},c)}}if(!d){if(Ext.fireEvent('beforeroute',a,c)===!1){a.destroy()}else {k.push(a.run())}}}if(d){if(Ext.fireEvent('beforeroute',a,c)===!1){a.destroy();p()}else {a.run().then(q,p)}}else {Ext.Promise.all(k).then(q,p)}}})},matchesFor:function(f){var b={},d=this.mode==='named'?Ext.Object.getKeys(this.paramsInMatchString):this.paramsInMatchString,c=f.match(this.matcherRegex),e=d.length,a;c.shift();for(a=0;a<e;a++){b[d[a].replace(':','')]=c[a]}return b},createMatcherRegex:function(c){var e=this,g=e.paramsInMatchString,d=e.getConditions(),h=e.defaultMatcher,j=g.length,i=e.getCaseInsensitive()?'i':'',f,b,a;if(c==='*'){c=c.replace('*','\\*')}else {for(f=0;f<j;f++){b=g[f];if(d[b]){a=d[b]}else if(b[0]===':'&&d[b.substr(1)]){a=d[b.substr(1)]}else {a=h}if(Ext.isObject(a)){a=a.re}c=c.replace(new RegExp(b),a||h)}}return new RegExp('^'+c+'$',i)},addHandler:function(a){var b=this.getHandlers();if(!a.isInstance){a=new Ext.route.Handler(a)}b.push(a);return a.route=this},removeHandler:function(g,e){var d=this.getHandlers(),f=d.length,c=[],b,a;for(b=0;b<f;b++){a=d[b];if(e){if(a!==e){c.push(a)}}else if(a.scope!==g){c.push(a)}}this.setHandlers(c);return this},clearLastTokens:function(){var b=this.getHandlers(),c=b.length,a;for(a=0;a<c;a++){b[a].lastToken=null}this.lastToken=null},onExit:function(){var a=this,f=a.getHandlers(),g=a.getAllowInactive(),h=f.length,c=new Ext.route.Action({urlParams:[a.lastToken]}),e,b,d;a.clearLastTokens();for(e=0;e<h;e++){b=f[e];if(b.exit){d=b.scope;if(!g&&d.isActive&&!d.isActive()){continue}c.action(b.exit,d)}}if(Ext.fireEvent('beforerouteexit',c,a)===!1){c.destroy()}else {c.run()}}});Ext.define('Ext.util.Observable',{extend:Ext.mixin.Observable,$applyConfigs:!0},function(a){var b=Ext.mixin.Observable;a.releaseCapture=b.releaseCapture;a.capture=b.capture;a.captureArgs=b.captureArgs;a.observe=a.observeClass=b.observe});Ext.define('Ext.util.History',{singleton:!0,alternateClassName:'Ext.History',mixins:{observable:Ext.util.Observable},useTopWindow:!1,hashRe:/^(#?!?)/,constructor:function(){var a=this;a.ready=!1;a.currentToken=null;a.mixins.observable.constructor.call(a)},getHash:function(){return (this.win.location.hash||'').replace(this.hashRe,'')},setHash:function(a,e){var b=this,c=b.hashRe,d=b.win.location;a=a.replace(c,b.hashbang?'#!':'#');try{if(e){d.replace(a)}else {d.hash=a}b.currentToken=a.replace(c,'')}catch(f){}},handleStateChange:function(a){a=a.replace(this.hashRe,'');this.fireEvent('change',this.currentToken=a)},startUp:function(){var a=this;a.currentToken=a.getHash();Ext.get(a.win).on('hashchange',a.onHashChange,a);a.ready=!0;a.fireEvent('ready',a)},onHashChange:function(){var a=this,b=a.getHash();if(b!==a.hash){a.hash=b;a.handleStateChange(b)}},init:function(b,c){var a=this;if(a.ready){Ext.callback(b,c,[a]);return}if(!Ext.isReady){Ext.onInternalReady(function(){a.init(b,c)});return}a.win=a.useTopWindow?window.top:window;a.hash=a.getHash();if(b){a.on('ready',b,c,{single:!0})}a.startUp()},add:function(a,d){var c=this,b=!1;if(d===!1||c.getToken()!==a){c.setHash(a);b=!0}return b},replace:function(a,c){var d=this,b=!1;if(c===!1||d.getToken()!==a){this.setHash(a,!0);b=!0}return b},back:function(){this.win.history.go(-1)},forward:function(){this.win.history.go(1)},getToken:function(){return this.ready?this.currentToken:this.getHash()}});Ext.define('Ext.route.Router',{singleton:!0,config:{hashbang:null,multipleToken:'|',queueRoutes:!0},constructor:function(){var a=Ext.util.History;if(!a.ready){a.init()}a.on('change',this.onStateChange,this);this.initConfig();this.clear()},updateHashbang:function(a){Ext.util.History.hashbang=a},onStateChange:function(b){var c=this,e=b.split(c.getMultipleToken()),a,d,f;if(c.isSuspended){a=c.suspendedQueue;d=0;f=e.length;if(a){for(;d<f;d++){b=e[d];if(!Ext.Array.contains(a,b)){a.push(b)}}}}else {c.handleBefore(e)}},handleBefore:function(b){var c=this,a=new Ext.route.Action();if(Ext.fireEvent('beforeroutes',a,b)===!1){a.destroy()}else {a.run().then(c.handleBeforeRoute.bind(c,b),Ext.emptyFn)}},handleBeforeRoute:function(c){var a=this,b=a.getByName('*');if(b){b.execute().then(a.doRun.bind(a,c),Ext.emptyFn)}else {a.doRun(c)}},doRun:function(l){var g=this,m=g.application,k=g.routes,a=0,i=l.length,h={},f=[],c,j,d,b,e;for(;a<i;a++){c=l[a];j=!1;for(d in k){b=k[d];e=b.recognize(c);if(e){j=!0;if(e!==!0){b.execute(c,e).then(null,Ext.bind(g.onRouteRejection,g,[b],0))}Ext.Array.remove(f,b);if(!h[d]){h[d]=1}}else if(!h[d]){f.push(b)}}if(!j){if(m){m.fireEvent('unmatchedroute',c)}Ext.fireEvent('unmatchedroute',c)}}a=0;i=f.length;for(;a<i;a++){f[a].onExit()}},onRouteRejection:function(b,a){Ext.fireEvent('routereject',b,a);if(a){Ext.raise(a)}},connect:function(c,a,m){var j=this.routes,i=this.getMultipleToken(),h=a.name||c,d,b;if(c[0]==='!'){c=c.substr(1);this.setHashbang(!0)}if(Ext.isString(a)){a={action:a}}d=Ext.route.Handler.fromRouteConfig(a,m);b=j[h];if(!b){a.name=h;a.url=c;b=j[h]=new Ext.route.Route(a)}b.addHandler(d);if(d.lazy){var l=Ext.util.History.getToken(),k=l.split(i),n=k.length,g=[],f,e;for(f=0;f<n;f++){e=k[f];if(Ext.Array.indexOf(g,e)===-1&&b.recognize(e)){g.push(e)}}this.onStateChange(g.join(i))}return d},disconnect:function(c,a){var d=this.routes,b,e;if(a){b=a.route||this.getByName(a.name||a.url);if(b){b.removeHandler(c,a)}}else {for(e in d){b=d[e];b.removeHandler(c)}}},recognize:function(i){var g=this.routes,d=[],h,a,b,e,f,c;for(h in g){a=g[h];e=a&&a.length;if(e){b=0;for(;b<e;b++){f=a[b];c=f.recognize(i);if(c){d.push({route:f,urlParams:c})}}}}return d.length?d:!1},draw:function(a){a.call(this,this)},clear:function(){this.routes={}},clearLastTokens:function(c){var b=this.routes,d,a;for(d in b){a=b[d];if(!c||a.recognize(c)){a.clearLastTokens()}}},getByName:function(b){var a=this.routes;if(a){return a[b]}},suspend:function(a){this.isSuspended=!0;if(!this.suspendedQueue&&a!==!1){this.suspendedQueue=[]}},resume:function(d){var a=this,b=a.suspendedQueue,c;if(a.isSuspended){a.isSuspended=!1;a.suspendedQueue=null;if(!d&&b){c=b.join(a.getMultipleToken());a.onStateChange(c)}}}});Ext.define('Ext.route.Mixin',{extend:Ext.Mixin,mixinConfig:{id:'routerable',before:{destroy:'destroyRouterable'}},config:{routes:null},destroyRouterable:function(){Ext.route.Router.disconnect(this)},applyRoutes:function(b,c){var d=Ext.route.Router,a;if(b){for(a in b){b[a]=d.connect(a,b[a],this)}}if(c){for(a in c){d.disconnect(this,c[a])}}return b},redirectTo:function(b,e){var k=Ext.util.History.getToken(),i=Ext.route.Router,n=i.getMultipleToken(),d=k?k.split(n):[],f=d.length,j,c,m,a,g,h,l;if(b===-1){return Ext.util.History.back()}else if(b===1){return Ext.util.History.forward()}else if(b.isModel){b=b.toUrl()}else if(Ext.isObject(b)){for(m in b){a=b[m];if(!Ext.isObject(a)){a={token:a}}if(f){g=i.getByName(m);if(g){l=!1;for(c=0;c<f;c++){h=d[c];if(g.matcherRegex.test(h)){l=!0;if(a.token){if(a.fn&&a.fn.call(this,h,d,a)===!1){continue}d[c]=a.token;if(a.force){g.lastToken=null}}else {d.splice(c,1);c--;f--;g.lastToken=null}}}if(a&&a.token&&!l){d.push(a.token)}}}else if(a&&a.token){d.push(a.token)}}b=d.join(n)}if(e===!0){j=e;e=null}else if(e){j=e.force}f=d.length;if(j&&f){for(c=0;c<f;c++){h=d[c];i.clearLastTokens(h)}}if(k===b){if(j){i.onStateChange(b)}return !1}if(e&&e.replace){Ext.util.History.replace(b)}else {Ext.util.History.add(b)}return !0},privates:{afterClassMixedIn:function(a){var c=a.prototype,b=c.routes;if(b){delete c.routes;a.getConfigurator().add({routes:b})}}}});Ext.define('Ext.app.BaseController',{mixins:[Ext.mixin.Observable,Ext.route.Mixin],isController:!0,config:{id:undefined,control:null,listen:null},constructor:function(b){var a=this;Ext.apply(a,b);delete a.control;delete a.listen;a.eventbus=Ext.app.EventBus;a.mixins.observable.constructor.call(a,b)},updateId:function(a){this.id=a},applyListen:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},applyControl:function(a){if(Ext.isObject(a)){a=Ext.clone(a)}return a},updateControl:function(a){this.getId();if(a){this.control(a)}},updateListen:function(a){this.getId();if(a){this.listen(a)}},isActive:function(){return !0},control:function(b,c,f){var e=this,d=f,a;if(Ext.isString(b)){a={};a[b]=c}else {a=b;d=c}e.eventbus.control(a,d||e)},listen:function(b,a){this.eventbus.listen(b,a||this)},destroy:function(){var a=this,b=a.eventbus;if(b){b.unlisten(a);a.eventbus=null}a.callParent()}});Ext.define('Ext.app.Util',{},function(){Ext.apply(Ext.app,{namespaces:{Ext:{}},addNamespaces:function(a){var d=Ext.app.namespaces,b,c;if(!Ext.isArray(a)){a=[a]}for(b=0,c=a.length;b<c;b++){d[a[b]]=!0}},clearNamespaces:function(){Ext.app.namespaces={}},getNamespace:function(d){var c=Ext.apply({},Ext.ClassManager.paths,Ext.app.namespaces),b='',a;for(a in c){if(c.hasOwnProperty(a)&&a.length>b.length&&(a+'.'===d.substring(0,a.length+1))){b=a}}return b===''?undefined:b},setupPaths:function(e,b,c){var a=Ext.manifest,d;if(e&&b!==null){a=a&&a.paths;if(!a||b!==undefined){Ext.Loader.setPath(e,(b===undefined)?'app':b)}}if(c){for(d in c){if(c.hasOwnProperty(d)){Ext.Loader.setPath(d,c[d])}}}}});Ext.getNamespace=Ext.app.getNamespace});Ext.define('Ext.util.BasicFilter',{isFilter:!0,config:{id:null,disabled:!1,serializer:null},generation:0,constructor:function(a){this.initConfig(a)},updateDisabled:function(){if(!this.isConfiguring){++this.generation}}});Ext.define('Ext.util.Filter',{extend:Ext.util.BasicFilter,config:{property:null,root:null,value:null,filterFn:null,anyMatch:!1,exactMatch:!1,caseSensitive:!1,disableOnEmpty:!1,operator:null,convert:null},scope:null,$configStrict:!1,statics:{createFilterFn:function(a){if(!a){return Ext.returnTrue}return function(f){var e=a.isCollection?a.items:a,g=e.length,d=!0,b,c;for(b=0;d&&b<g;b++){c=e[b];if(!c.getDisabled()){d=c.filter(f)}}return d}},isEqual:function(a,b){if(a.getProperty()!==b.getProperty()){return !1}if(a.getOperator()!==b.getOperator()){return !1}if(a.getValue()===b.getValue()){return !0}if(Ext.isArray(a)&&Ext.isArray(b)){return Ext.Array.equals(a,b)}return !1},isInvalid:function(a){if(!a.filterFn){if(!a.property){return 'A Filter requires either a property or a filterFn to be set'}if(!a.hasOwnProperty('value')&&!a.operator){return 'A Filter requires either a property and value, or a filterFn to be set'}}return !1}},preventConvert:{'in':1,notin:1},filter:function(e){var a=this,d=a._filterFn||a.getFilterFn(),c=a.getConvert(),b=a._value;a._filterValue=b;a.isDateValue=Ext.isDate(b);if(a.isDateValue){a.dateValue=b.getTime()}if(c&&!a.preventConvert[a.getOperator()]){a._filterValue=c.call(a.scope||a,b)}return d.call(a.scope||a,e)},getId:function(){var b=this,a=b._id;if(!a){a=b.getProperty();if(!a){a=Ext.id(null,'ext-filter-')}b._id=a}return a},getFilterFn:function(){var a=this,b=a._filterFn,c;if(!b){c=a.getOperator();if(c){b=a.operatorFns[c]}else {b=a.createRegexFilter()}a._filterFn=b;a.generatedFilterFn=!0}return b},createRegexFilter:function(){var a=this,b=!!a.getAnyMatch(),d=!!a.getExactMatch(),e=a.getValue(),c=Ext.String.createRegex(e,!b,!b&&d,!a.getCaseSensitive());return function(d){var b=a.getPropertyValue(d);return c?c.test(b):(b==null)}},getPropertyValue:function(a){var b=this._root,c=(b==null)?a:a[b];return c[this._property]},getState:function(){var c=this.getInitialConfig(),a={},b;for(b in c){if(c.hasOwnProperty(b)){a[b]=c[b]}}delete a.root;a.value=this.getValue();return a},getScope:function(){return this.scope},serialize:function(){var a=this.getState(),c=this.getSerializer(),b;delete a.id;delete a.serializer;if(c){b=c.call(this,a);if(b){a=b}}return a},serializeTo:function(d){var a=this,c,b;a.getFilterFn();if(a.generatedFilterFn){d.push(b=a.serialize());c=a.primitiveRe.test(typeof b)}return !c},updateOperator:function(){this.onConfigMutation()},updateConvert:function(){this.onConfigMutation()},updateProperty:function(){this.onConfigMutation()},updateAnyMatch:function(){this.onConfigMutation()},updateExactMatch:function(){this.onConfigMutation()},updateCaseSensitive:function(){this.onConfigMutation()},updateValue:function(a){this.onConfigMutation();if(this.getDisableOnEmpty()){this.setDisabled(Ext.isEmpty(a))}},updateFilterFn:function(a){delete this.generatedFilterFn},onConfigMutation:function(){this.generation++;if(this.generatedFilterFn){this._filterFn=null}},updateDisableOnEmpty:function(a){if(a){this.setDisabled(Ext.isEmpty(this.getValue()))}},privates:{primitiveRe:/string|number|boolean/,getCandidateValue:function(e,f,d){var b=this,c=b._convert,a=b.getPropertyValue(e);if(c){a=c.call(b.scope||b,a)}else if(!d){a=Ext.coerce(a,f)}return a}}},function(c){var b=c.prototype,a=(b.operatorFns={"<":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)<a},"<=":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)<=a},"=":function(a){var b=this,d=b._filterValue;a=b.getCandidateValue(a,d);if(b.isDateValue&&a instanceof Date){a=a.getTime();d=b.dateValue}return a==d},"===":function(a){var b=this,d=b._filterValue;a=b.getCandidateValue(a,d,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();d=b.dateValue}return a===d},">=":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>=a},">":function(b){var a=this._filterValue;return this.getCandidateValue(b,a)>a},"!=":function(a){var b=this,d=b._filterValue;a=b.getCandidateValue(a,d);if(b.isDateValue&&a instanceof Date){a=a.getTime();d=b.dateValue}return a!=d},"!==":function(a){var b=this,d=b._filterValue;a=b.getCandidateValue(a,d,!0);if(b.isDateValue&&a instanceof Date){a=a.getTime();d=b.dateValue}return a!==d},"in":function(b){var a=this._filterValue;return Ext.Array.contains(a,this.getCandidateValue(b,a))},notin:function(b){var a=this._filterValue;return !Ext.Array.contains(a,this.getCandidateValue(b,a))},like:function(b){var a=this._filterValue;return a&&this.getCandidateValue(b,a).toLowerCase().indexOf(a.toLowerCase())>-1},"/=":function(d){var a=this,b=a._filterValue;d=a.getCandidateValue(d,b);if(b!==a.lastRegExpSource){a.lastRegExpSource=b;try{a.regex=new RegExp(b,'i')}catch(e){a.regex=null}}return a.regex?a.regex.test(d):!1}});a['==']=a['='];a.gt=a['>'];a.ge=a['>='];a.lt=a['<'];a.le=a['<='];a.eq=a['='];a.ne=a['!=']});Ext.define('Ext.util.AbstractMixedCollection',{mixins:{observable:Ext.util.Observable},isMixedCollection:!0,generation:0,indexGeneration:0,constructor:function(b,c){var a=this;if(arguments.length===1&&Ext.isObject(b)){a.initialConfig=b;Ext.apply(a,b)}else {a.allowFunctions=b===!0;if(c){a.getKey=c}a.initialConfig={allowFunctions:a.allowFunctions,getKey:a.getKey}}a.items=[];a.map={};a.keys=[];a.indexMap={};a.length=0;a.mixins.observable.constructor.call(a)},destroy:function(){var a=this;a.items=a.map=a.keys=a.indexMap=null;a.callParent()},allowFunctions:!1,add:function(b,d){var c=this.length,a;if(arguments.length===1){a=this.insert(c,b)}else {a=this.insert(c,b,d)}return a},getKey:function(a){return a.id},replace:function(b,c){var a=this,d,e;if(arguments.length===1){c=arguments[0];b=a.getKey(c)}d=a.map[b];if(typeof b==='undefined'||b===null||typeof d==='undefined'){return a.add(b,c)}a.generation++;e=a.indexOfKey(b);a.items[e]=c;a.map[b]=c;if(a.hasListeners.replace){a.fireEvent('replace',b,d,c)}return c},reorder:function(e){var b=this,f=b.items,a=0,h=f.length,c=[],g=[],d;b.suspendEvents();for(d in e){c[e[d]]=f[d]}for(a=0;a<h;a++){if(e[a]==undefined){g.push(f[a])}}for(a=0;a<h;a++){if(c[a]==undefined){c[a]=g.shift()}}b.clear();b.addAll(c);b.resumeEvents()},updateKey:function(b,c){var a=this,e=a.map,d=a.indexOfKey(b),f=a.indexMap,g;if(d>-1){g=e[b];delete e[b];delete f[b];e[c]=g;f[c]=d;a.keys[d]=c;a.indexGeneration=++a.generation}},addAll:function(a){var c=this,b;if(arguments.length>1||Ext.isArray(a)){c.insert(c.length,arguments.length>1?arguments:a)}else {for(b in a){if(a.hasOwnProperty(b)){if(c.allowFunctions||typeof a[b]!=='function'){c.add(b,a[b])}}}}},each:function(f,e){var c=Ext.Array.push([],this.items),a=0,d=c.length,b;for(;a<d;a++){b=c[a];if(f.call(e||b,b,a,d)===!1){break}}},eachKey:function(f,e){var b=this.keys,d=this.items,a=0,c=b.length;for(;a<c;a++){f.call(e||window,b[a],d[a],a,c)}},findBy:function(f,c){var d=this.keys,b=this.items,a=0,e=b.length;for(;a<e;a++){if(f.call(c||window,b[a],d[a])){return b[a]}}return null},insert:function(c,b,d){var a;if(Ext.isIterable(b)){a=this.doInsert(c,b,d)}else {if(arguments.length>2){a=this.doInsert(c,[b],[d])}else {a=this.doInsert(c,[b])}a=a[0]}return a},doInsert:function(f,e,d){var b=this,c,i,a,g=e.length,j=g,o=b.hasListeners.add,k,h={},l,n,m;if(d!=null){b.useLinearSearch=!0}else {d=e;e=new Array(g);for(a=0;a<g;a++){e[a]=this.getKey(d[a])}}b.suspendEvents();for(a=0;a<g;a++){c=e[a];i=b.indexOfKey(c);if(i!==-1){if(i<f){f--}b.removeAt(i)}if(c!=null){if(h[c]!=null){l=!0;j--}h[c]=a}}b.resumeEvents();if(l){n=e;m=d;e=new Array(j);d=new Array(j);a=0;for(c in h){e[a]=n[h[c]];d[a]=m[h[c]];a++}g=j}k=f===b.length&&b.indexGeneration===b.generation;Ext.Array.insert(b.items,f,d);Ext.Array.insert(b.keys,f,e);b.length+=g;b.generation++;if(k){b.indexGeneration=b.generation}for(a=0;a<g;a++,f++){c=e[a];if(c!=null){b.map[c]=d[a];if(k){b.indexMap[c]=f}}if(o){b.fireEvent('add',f,d[a],c)}}return d},remove:function(d){var a=this,c,b;if(!a.useLinearSearch&&(c=a.getKey(d))){b=a.indexOfKey(c)}else {b=Ext.Array.indexOf(a.items,d)}return (b===-1)?!1:a.removeAt(b)},removeAll:function(b){var a=this,c;if(b||a.hasListeners.remove){if(b){for(c=b.length-1;c>=0;--c){a.remove(b[c])}}else {while(a.length){a.removeAt(0)}}}else {a.length=a.items.length=a.keys.length=0;a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}},removeAt:function(b){var a=this,d,c;if(b<a.length&&b>=0){a.length--;d=a.items[b];Ext.Array.erase(a.items,b,1);c=a.keys[b];if(typeof c!=='undefined'){delete a.map[c]}Ext.Array.erase(a.keys,b,1);if(a.hasListeners.remove){a.fireEvent('remove',d,c)}a.generation++;return d}return !1},removeRange:function(c,b){var a=this,i,f,d,e,g,h;if(c<a.length&&c>=0){if(!b){b=1}e=Math.min(c+b,a.length);b=e-c;h=e===a.length;g=h&&a.indexGeneration===a.generation;for(d=c;d<e;d++){f=a.keys[d];if(f!=null){delete a.map[f];if(g){delete a.indexMap[f]}}}i=a.items[d-1];a.length-=b;a.generation++;if(g){a.indexGeneration=a.generation}if(h){a.items.length=a.keys.length=a.length}else {a.items.splice(c,b);a.keys.splice(c,b)}return i}return !1},removeAtKey:function(d){var b=this,c=b.keys,a;if(d==null){for(a=c.length-1;a>=0;a--){if(c[a]==null){b.removeAt(a)}}}else {return b.removeAt(b.indexOfKey(d))}},getCount:function(){return this.length},indexOf:function(b){var a=this,c;if(b!=null){if(!a.useLinearSearch&&(c=a.getKey(b))){return this.indexOfKey(c)}return Ext.Array.indexOf(a.items,b)}return -1},indexOfKey:function(a){if(!this.map.hasOwnProperty(a)){return -1}if(this.indexGeneration!==this.generation){this.rebuildIndexMap()}return this.indexMap[a]},rebuildIndexMap:function(){var b=this,d=b.indexMap={},c=b.keys,e=c.length,a;for(a=0;a<e;a++){d[c[a]]=a}b.indexGeneration=b.generation},get:function(a){var b=this,d=b.map[a],c=d!==undefined?d:(typeof a==='number')?b.items[a]:undefined;return typeof c!=='function'||b.allowFunctions?c:null},getAt:function(a){return this.items[a]},getByKey:function(a){return this.map[a]},contains:function(a){var c=this,b;if(a!=null){if(!c.useLinearSearch&&(b=c.getKey(a))){return this.map[b]!=null}return Ext.Array.indexOf(this.items,a)!==-1}return !1},containsKey:function(a){return this.map.hasOwnProperty(a)},clear:function(){var a=this;if(a.generation){a.length=0;a.items=[];a.keys=[];a.map={};a.indexMap={};a.generation++;a.indexGeneration=a.generation}if(a.hasListeners.clear){a.fireEvent('clear')}},first:function(){return this.items[0]},last:function(){return this.items[this.length-1]},sum:function(f,h,c,a){var d=this.extractValues(f,h),g=d.length,e=0,b;c=c||0;a=(a||a===0)?a:g-1;for(b=c;b<=a;b++){e+=d[b]}return e},collect:function(h,j,g){var e=this.extractValues(h,j),i=e.length,f={},d=[],a,c,b;for(b=0;b<i;b++){a=e[b];c=String(a);if((g||!Ext.isEmpty(a))&&!f[c]){f[c]=!0;d.push(a)}}return d},extractValues:function(c,b){var a=this.items;if(b){a=Ext.Array.pluck(a,b)}return Ext.Array.pluck(a,c)},hasRange:function(b,a){return (a<this.length)},getRange:function(b,a){var h=this,f=h.items,c=[],d=f.length,g,e;if(d<1){return c}if(b>a){e=!0;g=b;b=a;a=g}if(b<0){b=0}if(a==null||a>=d){a=d-1}c=f.slice(b,a+1);if(e&&c.length){c.reverse()}return c},filter:function(a,e,d,c){var b=[];if(Ext.isString(a)){b.push(new Ext.util.Filter({property:a,value:e,anyMatch:d,caseSensitive:c}))}else if(Ext.isArray(a)||a instanceof Ext.util.Filter){b=b.concat(a)}return this.filterBy(Ext.util.Filter.createFilterFn(b))},filterBy:function(h,g){var a=this,c=new a.self(a.initialConfig),e=a.keys,d=a.items,f=d.length,b;c.getKey=a.getKey;for(b=0;b<f;b++){if(h.call(g||a,d[b],e[b])){c.add(e[b],d[b])}}c.useLinearSearch=a.useLinearSearch;return c},findIndex:function(d,a,e,c,b){if(Ext.isEmpty(a,!1)){return -1}a=this.createValueMatcher(a,c,b);return this.findIndexBy(function(f){return f&&a.test(f[d])},null,e)},findIndexBy:function(h,d,e){var b=this,f=b.keys,c=b.items,a=e||0,g=c.length;for(;a<g;a++){if(h.call(d||b,c[a],f[a])){return a}}return -1},createValueMatcher:function(a,e,c,d){var b;if(!a.exec){b=Ext.String.escapeRegex;a=String(a);if(e===!0){a=b(a)}else {a='^'+b(a);if(d===!0){a+='$'}}a=new RegExp(a,c?'':'i')}return a},clone:function(){var a=this,b=new a.self(a.initialConfig);b.add(a.keys,a.items);b.useLinearSearch=a.useLinearSearch;return b}});Ext.define('Ext.util.Sorter',{isSorter:!0,config:{property:null,sorterFn:null,root:null,transform:null,direction:"ASC",id:undefined},statics:{createComparator:function(b,a){a=a||0;return function(f,g){var e=b.isCollection?b.items:b,h=e.length,d,c;for(c=0;c<h;++c){d=e[c].sort(f,g);if(d){return d}}return a&&a(f,g)}}},multiplier:1,constructor:function(a){this.initConfig(a)},getId:function(){var a=this._id;if(!a){a=this.getProperty();if(!a){a=Ext.id(null,'ext-sorter-')}this._id=a}return a},sort:function(a,b){return this.multiplier*this.sortFn(a,b)},sortFn:function(d,e){var g=this,c=g._transform,f=g._root,h=g._property,a,b;if(f){d=d[f];e=e[f]}a=d[h];b=e[h];if(c){a=c(a);b=c(b)}return (a>b)?1:(a<b?-1:0)},applyDirection:function(a){return a?a:'ASC'},updateDirection:function(a){this.multiplier=(a.toUpperCase()==="DESC")?-1:1},updateProperty:function(a){if(a){delete this.sortFn}},updateSorterFn:function(a){this.sortFn=a},toggle:function(){this.setDirection(Ext.String.toggle(this.getDirection(),"ASC","DESC"))},getState:function(){var a=this,b={root:a.getRoot(),property:a.getProperty(),direction:a.getDirection()};if(a._id){b.id=a._id}return b},serialize:function(){return {property:this.getProperty(),direction:this.getDirection()}}});Ext.define("Ext.util.Sortable",{isSortable:!0,$configPrefixed:!1,$configStrict:!1,config:{sorters:null},defaultSortDirection:"ASC",multiSortLimit:3,statics:{createComparator:function(a){return a&&a.length?function(d,e){var c=a[0].sort(d,e),f=a.length,b=1;for(;!c&&b<f;b++){c=a[b].sort.call(a[b],d,e)}return c}:function(){return 0}}},applySorters:function(b){var c=this,a;a=c.getSorters()||new Ext.util.MixedCollection(!1,Ext.returnId);if(b){a.addAll(c.decodeSorters(b))}return a},sort:function(a,f,e,h){var b=this,d,g,c=b.getSorters();if(!c){b.setSorters(null);c=b.getSorters()}if(Ext.isArray(a)){h=e;e=f}else if(Ext.isObject(a)){a=[a];h=e;e=f}else if(Ext.isString(a)){d=c.get(a);if(!d){d={property:a,direction:f}}else if(f==null){d.toggle()}else {d.setDirection(f)}a=[d]}if(a&&a.length){a=b.decodeSorters(a);switch(e){case "multi":c.insert(0,a[0]);g=c.getCount()-b.multiSortLimit;if(g>0){c.removeRange(b.multiSortLimit,g)};break;case "prepend":c.insert(0,a);break;case "append":c.addAll(a);break;case undefined:case null:case "replace":c.clear();c.addAll(a);break;default:}}if(h!==!1){b.fireEvent('beforesort',b,a);b.onBeforeSort(a);if(b.getSorterCount()){b.doSort(b.generateComparator())}}return a},getSorterCount:function(){return this.getSorters().items.length},generateComparator:function(){var a=this.getSorters().getRange();return a.length?this.createComparator(a):this.emptyComparator},emptyComparator:function(){return 0},onBeforeSort:Ext.emptyFn,decodeSorters:function(b){if(!Ext.isArray(b)){if(b===undefined){b=[]}else {b=[b]}}var g=b.length,f=Ext.util.Sorter,e=this.getModel?this.getModel():this.model,d,a,c;for(c=0;c<g;c++){a=b[c];if(!(a instanceof f)){if(Ext.isString(a)){a={property:a}}Ext.applyIf(a,{root:this.sortRoot,direction:"ASC"});if(a.fn){a.sorterFn=a.fn}if(typeof a==='function'){a={sorterFn:a}}if(e&&!a.transform){d=e.getField(a.property);a.transform=d&&d.sortType!==Ext.identityFn?d.sortType:undefined}b[c]=new Ext.util.Sorter(a)}}return b},getFirstSorter:function(){var c=this.getSorters().items,d=c.length,b=0,a;for(;b<d;++b){a=c[b];if(!a.isGrouper){return a}}return null}},function(){this.prototype.createComparator=this.createComparator});Ext.define('Ext.util.MixedCollection',{extend:Ext.util.AbstractMixedCollection,mixins:{sortable:Ext.util.Sortable},constructor:function(){this.initConfig();this.callParent(arguments)},doSort:function(a){this.sortBy(a)},_sort:function(h,j,g){var b=this,a,d,k=String(j).toUpperCase()==='DESC'?-1:1,c=[],i=b.keys,f=b.items,e;g=g||function(a,b){return a-b};for(a=0,d=f.length;a<d;a++){c[c.length]={key:i[a],value:f[a],index:a}}Ext.Array.sort(c,function(a,b){return g(a[h],b[h])*k||(a.index<b.index?-1:1)});for(a=0,d=c.length;a<d;a++){e=c[a];f[a]=e.value;i[a]=e.key;b.indexMap[e.key]=a}b.generation++;b.indexGeneration=b.generation;b.fireEvent('sort',b)},sortBy:function(h){var b=this,c=b.items,d,g=b.keys,e,f=c.length,a;for(a=0;a<f;a++){c[a].$extCollectionIndex=a}Ext.Array.sort(c,function(a,b){return h(a,b)||(a.$extCollectionIndex<b.$extCollectionIndex?-1:1)});for(a=0;a<f;a++){d=c[a];e=b.getKey(d);g[a]=e;b.indexMap[e]=a;delete d.$extCollectionIndex}b.generation++;b.indexGeneration=b.generation;b.fireEvent('sort',b,c,g)},findInsertionIndex:function(h,d){var g=this,f=g.items,b=0,e=f.length-1,a,c;if(!d){d=g.generateComparator()}while(b<=e){a=(b+e)>>1;c=d(h,f[a]);if(c>=0){b=a+1}else if(c<0){e=a-1}}return b},reorder:function(a){this.callParent([a]);this.fireEvent('sort',this)},sortByKey:function(a,b){this._sort('key',a,b||function(e,f){var c=String(e).toUpperCase(),d=String(f).toUpperCase();return c>d?1:(c<d?-1:0)})}});Ext.define('Ext.util.CollectionKey',{mixins:[Ext.mixin.Identifiable],isCollectionKey:!0,observerPriority:-200,config:{collection:null,keyFn:null,property:null,rootProperty:null,unique:!0},generation:0,map:null,mapRebuilds:0,constructor:function(a){this.initConfig(a)},get:function(a){var b=this.map||this.getMap();return b[a]||null},clear:function(){this.map=null},getRootProperty:function(){var b=this,a=this.callParent();return a!==null?a:b.getCollection().getRootProperty()},indexOf:function(i,b){var j=this.map||this.getMap(),c=j[i],e=this.getCollection(),h=e.length,d,a,f,g;if(!c){return -1}if(b===undefined){b=-1}if(c instanceof Array){f=c;a=h;for(g=f.length;g-->0;){d=e.indexOf(f[g]);if(d<a&&d>b){a=d}}if(a===h){return -1}}else {a=e.indexOf(c)}return (a>b)?a:-1},updateKey:function(e,d){var f=this,c=f.map,a,b;if(c){a=c[d];if(a instanceof Array){b=Ext.Array.indexOf(a,e);if(b>=0){if(a.length>2){a.splice(b,1)}else {c[d]=a[1-b]}}}else if(a){delete c[d]}f.add([e])}},onCollectionAdd:function(b,a){if(this.map){this.add(a.items)}},onCollectionItemChange:function(a,b){this.map=null},onCollectionRefresh:function(){this.map=null},onCollectionRemove:function(g,h){var a=this,f=a.map,d=h.items,c=d.length,b,e;if(f){if(a.getUnique()&&c<g.length/2){for(b=0;b<c;++b){e=a.getKey(d[b]);delete f[e]}}else {a.map=null}}},add:function(i){var f=this,c=f.map,b,d,e,a,g,h;g=i.length;h=f.getUnique();for(d=0;d<g;++d){a=f.getKey(e=i[d]);if(h||!(a in c)){c[a]=e}else {if(!((b=c[a]) instanceof Array)){c[a]=b=[b]}b.push(e)}}},applyKeyFn:function(a){if(Ext.isString(a)){this.getKey=function(b){return b[a]()}}else {this.getKey=a}},updateProperty:function(b){var a=this.getRootProperty();this.getKey=function(c){return (a?c[a]:c)[b]}},getMap:function(){var a=this,b=a.map;if(!b){a.map=b={};a.keysByItemKey={};++a.mapRebuilds;a.add(a.getCollection().items)}return b},updateCollection:function(b,a){if(b){b.addObserver(this)}if(a){a.removeObserver(this)}},clone:function(){return new Ext.util.CollectionKey(this.getCurrentConfig())},destroy:function(){this.clear();this.getCollection().removeObserver(this);this.destroyed=!0}});Ext.define('Ext.util.Grouper',{extend:Ext.util.Sorter,isGrouper:!0,config:{groupFn:null,sortProperty:null},constructor:function(a){this.callParent(arguments)},getGroupString:function(a){var b=a.$collapsedGroupPlaceholder?a.$groupKey:this._groupFn(a);return (b!=null)?String(b):''},sortFn:function(d,e){var c=this,a=c.getGroupString(d),b=c.getGroupString(e),g=c._sortProperty,i=c._root,h=c._sorterFn,f=c._transform;if(a===b){return 0}if(g||h){if(h){return h.call(this,d,e)}if(i){d=d[i];e=e[i]}a=d[g];b=e[g];if(f){a=f(a);b=f(b)}}return (a>b)?1:(a<b?-1:0)},standardGroupFn:function(a){var b=this._root;return (b?a[b]:a)[this._property]},updateSorterFn:function(){},updateProperty:function(){if(!this.getGroupFn()){this.setGroupFn(this.standardGroupFn)}}});Ext.define('Ext.util.Collection',{mixins:[Ext.mixin.Observable],isCollection:!0,config:{autoFilter:!0,autoSort:!0,autoGroup:!0,decoder:null,extraKeys:null,filters:null,grouper:null,groups:null,groupConfig:null,rootProperty:null,sorters:null,multiSortLimit:3,defaultSortDirection:'ASC',source:null,trackGroups:!0},generation:0,indices:null,indexRebuilds:0,updating:0,grouped:!1,sorted:!1,filtered:!1,$endUpdatePriority:1001,manageSorters:!0,constructor:function(b){var a=this;a.items=[];a.map={};a.length=0;if(b&&b.keyFn){a.getKey=b.keyFn}a.mixins.observable.constructor.call(a,b)},destroy:function(){var a=this,b=a._filters,c=a._sorters,d=a._groups;if(b){b.destroy();a._filters=null}if(c){a.grouped=a.sorted=!1;a.setSorters(null);if(a.manageSorters){c.destroy()}}if(d){d.destroy();a._groups=null}a.setSource(null);a.observers=a.items=a.map=null;a.callParent()},add:function(d){var b=this,a=b.decodeItems(arguments,0),c=a;if(a.length){b.splice(b.length,0,a);c=(a.length===1)?a[0]:a}return c},replaceAll:function(){var b=this,c,a;a=b.decodeItems(arguments,0);c=a;if(a.length){b.splice(0,b.length,a);c=(a.length===1)?a[0]:a}else {b.removeAll()}return c},aggregate:function(d,c,e,g,f){var a=this,b=Ext.Array.slice(arguments);b.unshift(a.items);return a.aggregateItems.apply(a,b)},aggregateByGroup:function(b,a,d){var c=this.getGroups();return this.aggregateGroups(c,b,a,d)},aggregateItems:function(a,m,b,c,d,p){var e=this,o=Ext.Number.clipIndices(a.length,[c,d]),k=(c!==0&&d!==a.length),f,g,n,j,i,h,l;c=o[0];d=o[1];if(!Ext.isFunction(b)){b=e._aggregators[b];return b.call(e,a,c,d,m,e.getRootProperty())}j=e.getRootProperty();h=new Array(n);l=k?new Array(n):a;for(f=c,g=0;f<d;++f,g++){if(k){l[g]=i=a[f]}h[g]=(j?i[j]:i)[m]}return b.call(p||e,a,h,0)},aggregateGroups:function(i,e,c,j){var f=i.items,k=f.length,h=!Ext.isFunction(c),g={},b,a,d;for(b=0;b<k;++b){a=f[b];if(!h){d=this.aggregateItems(a.items,e,c,null,null,j)}else {d=a[c](e)}g[a.getGroupKey()]=d}return g},beginUpdate:function(){if(!this.updating++){this.notify('beginupdate')}},clear:function(){var a=this,c=a.generation,e=c?a.items:[],b,d;if(c){a.items.length=a.length=0;a.map={};a.indices={};a.generation++;b=a.getExtraKeys();if(b){for(d in b){b[d].clear()}}}return e},clone:function(){var a=this,b=new a.self(a.initialConfig);b.add(a.items);return b},collect:function(i,e,h){var d=this.items,j=d.length,f={},g=[],b,c,a;for(b=0;b<j;++b){a=d[b];a=(e?a[e]:a)[i];c=String(a);if((h||!Ext.isEmpty(a))&&!f[c]){f[c]=1;g.push(a)}}return g},contains:function(a){var c=!1,b;if(a!=null){b=this.getKey(a);c=this.map[b]===a}return c},containsAll:function(b){var c=Ext.isArray(b)?b:arguments,a;for(a=c.length;a-->0;){if(!this.contains(c[a])){return !1}}return !0},containsKey:function(a){return a in this.map},createFiltered:function(a,j,n,l,m){var d=this,k=new d.self(Ext.applyIf({source:null},d.initialConfig)),h=d.getRootProperty(),g=d.items,e,b,c,i,f;if(Ext.isFunction(a)){i=a;f=j}else {if(Ext.isString(a)){c=[new Ext.util.Filter({property:a,value:j,root:h,anyMatch:n,caseSensitive:l,exactMatch:m})]}else if(a instanceof Ext.util.Filter){c=[a];a.setRoot(h)}else if(Ext.isArray(a)){c=a.slice(0);for(b=0,e=c.length;b<e;++b){c[b].setRoot(h)}}i=Ext.util.Filter.createFilterFn(c)}f=f||d;for(b=0,e=g.length;b<e;b++){if(i.call(f,g[b])){k.add(g[b])}}return k},filterBy:function(b,a){return this.createFiltered(b,a)},each:function(f,c){var b=this.items,d=b.length,a,e;if(d){c=c||this;b=b.slice(0);for(a=0;a<d;a++){e=f.call(c,b[a],a,d);if(e===!1){break}}}return e},eachKey:function(i,c){var f=this,b=f.items,d=b.length,a,g,h,e;if(d){c=c||f;b=b.slice(0);for(a=0;a<d;a++){h=f.getKey(g=b[a]);e=i.call(c,h,g,a,d);if(e===!1){break}}}return e},endUpdate:function(){if(!--this.updating){this.notify('endupdate')}},find:function(g,c,h,e,f,d){var b,a;if(Ext.isEmpty(c,!1)){return null}b=Ext.String.createRegex(c,e,f,d);a=this.getRootProperty();return this.findBy(function(i){return i&&b.test((a?i[a]:i)[g])},null,h)},findBy:function(i,c,g){var d=this,b=d.items,h=b.length,a,e,f;c=c||d;for(a=g||0;a<h;a++){f=d.getKey(e=b[a]);if(i.call(c,e,f)){return b[a]}}return null},findIndex:function(e,g,f,c,d,b){var a=this.find(e,g,f,c,d,b);return a?this.indexOf(a):-1},findIndexBy:function(d,b,c){var a=this.findBy(d,b,c);return a?this.indexOf(a):-1},first:function(b){var a=b?this.getGroups():undefined;return a?this.aggregateGroups(a,null,'first'):this.items[0]},last:function(b){var a=b?this.getGroups():undefined;return a?this.aggregateGroups(a,null,'last'):this.items[this.length-1]},get:function(a){return this.map[a]},getAt:function(a){return this.items[a]},getByKey:function(a){return this.map[a]},getCount:function(){return this.length},getKey:function(b){var a=b.id;return (a===0||a)?a:((a=b._id)===0||a)?a:b.getId()},getRange:function(d,e){var c=this.items,b=c.length,a;if(!b){a=[]}else {a=Ext.Number.clipIndices(b,[d,e]);a=c.slice(a[0],a[1])}return a},getValues:function(h,f,i,c){var d=this.items,e=Ext.Number.clipIndices(d.length,[i,c]),g=[],b,a;for(b=e[0],c=e[1];b<c;++b){a=d[b];a=(f?a[f]:a)[h];g.push(a)}return g},indexOf:function(a){var b;if(!a){return -1}b=this.getKey(a);return this.indexOfKey(b)},indexOfKey:function(c){var b=this,a=b.indices;if(c in b.map){if(!a){a=b.getIndices()}return a[c]}return -1},insert:function(d,e){var c=this,a=c.decodeItems(arguments,1),b=a;if(a.length){c.splice(d,0,a);b=(a.length===1)?a[0]:a}return b},itemChanged:function(c,p,h,u){var a=this,j=h!==undefined,s=a.filtered&&a.getAutoFilter(),n=!1,g=0,i=a.items,t=a.length-1,v=a.sorted&&t>0&&a.getAutoSort(),r=a.getSource(),q=0,f=!1,o=!1,d,l,k,m,b,e;if(r&&!r.updating){a.sourceUpdating=!0;r.itemChanged(c,p,h,u);a.sourceUpdating=!1}else {l=a.getKey(c);if(s){b=a.indexOfKey(j?h:l);o=(b<0);f=a.isItemFiltered(c);n=(o!==f)}if(n){if(f){q=[c];e=-1}else {m=[c];e=a.length}}else if(v&&!f){if(!s){b=a.indexOfKey(j?h:l)}k=a.getSortFn();if(b!==-1){if(b&&k(i[b-1],i[b])>0){g=-1;e=Ext.Array.binarySearch(i,c,0,b,k)}else if(b<t&&k(i[b],i[b+1])>0){g=1;e=Ext.Array.binarySearch(i,c,b+1,k)}if(g){m=[c]}}}d={item:c,key:l,index:e,filterChanged:n,keyChanged:j,indexChanged:!!g,filtered:f,oldIndex:b,newIndex:e,wasFiltered:o,meta:u};if(j){d.oldKey=h}if(p){d.modified=p}++a.generation;a.beginUpdate();a.notify('beforeitemchange',[d]);if(j){a.updateKey(c,h,d)}if(m||q){a.splice(e,q,m)}if(g>0){d.newIndex--}else if(g<0){d.oldIndex++}a.notify(f?'filtereditemchange':'itemchange',[d]);a.endUpdate()}},remove:function(d){var a=this,c=a.decodeRemoveItems(arguments,0),b=a.length;a.splice(0,c);return b-a.length},removeAll:function(){var a=this,b=a.length;if(a.generation&&b){a.splice(0,b)}return a},removeAt:function(j,f){var a=this,e=a.length,i=Ext.Number,g=i.clipIndices(e,[j,(f===undefined)?1:f],i.Clip.COUNT),c=g[0],d=g[1]-c,h=(d===1)&&a.getAt(c),b;a.splice(c,d);b=a.length-e;return (h&&b)?h:b},removeByKey:function(b){var a=this.getByKey(b);if(!a||!this.remove(a)){return !1}return a},replace:function(a){var b=this.indexOf(a);if(b===-1){this.add(a)}else {this.insert(b,a)}},splice:function(F,E,L){var b=this,D=b.sorted&&b.getAutoSort(),G=b.map,o=b.items,r=b.length,n=(E instanceof Array)?b.decodeRemoveItems(E):null,H=!n,K=Ext.Number,J=K.clipIndices(r,[F,H?E:0],K.Clip.COUNT),m=J[0],z=J[1],w=z-m,p=b.decodeItems(arguments,2),h=p?p.length:0,c,A,C,d=m,k=b.indices||((h||n)?b.getIndices():null),e=null,i=w?[m]:null,l=null,t=b.getSource(),j,B,y,a,u,g,v,f,s,q,x,I;if(t&&!t.updating){if(H){n=[];for(a=0;a<w;++a){n.push(o[m+a])}}if(m<r){a=t.indexOf(o[m])}else {a=t.length}b.requestedIndex=F;t.splice(a,n,p);delete b.requestedIndex;return b}if(h){c=p;l=[];A={};if(D){I=b.getSorters();if(h>1){if(!c.$cloned){p=c=c.slice(0)}b.sortData(c)}}for(a=0;a<h;++a){f=b.getKey(u=p[a]);if((v=A[f])!==undefined){(x||(x={}))[v]=1}else {g=k[f];if(g<m||z<=g){(i||(i=[])).push(g)}}A[f]=a;l.push(f)}if(x){s=l;c=[];l=[];c.$cloned=!0;for(a=0;a<h;++a){if(!x[a]){u=p[a];c.push(u);l.push(s[a])}}h=c.length}e={items:c,keys:l}}for(a=n?n.length:0;a-->0;){f=b.getKey(n[a]);if((g=k[f])!==undefined){(i||(i=[])).push(g)}}if(!e&&!i){return b}b.beginUpdate();if(i){j=null;y=[];C={};if(i.length>1){i.sort(Ext.Array.numericSortFn)}for(a=0,q=i.length;a<q;++a){f=b.getKey(u=o[g=i[a]]);if(!(f in G)){continue}delete G[f];if(!j||g>(j.at+B.length)){y.push(j={at:g,items:(B=[]),keys:(s=[]),map:C,next:j,replacement:e});if(e){e.replaced=j}}B.push(C[f]=u);s.push(f);if(g<d){--d}if(w>1&&g===m){--w;i[a--]=++m}}if(e){e.at=d}for(v=y.length;v-->0;){j=y[v];a=j.at;q=j.items.length;if(a+q<r){b.indices=k=null}b.length=r-=q;o.splice(a,q);if(k){s=j.keys;for(a=0;a<q;++a){delete k[s[a]]}}++b.generation;b.notify('remove',[j])}}if(e){if(D&&h>1&&r){b.spliceMerge(c,l)}else {if(D){if(h>1){d=0;b.indices=k=null}else {d=I.findInsertionIndex(e.items[0],o,b.getSortFn(),F)}}if(d===r){z=d;for(a=c.length-1;a>=0;--a){o[z+a]=c[a]}k=b.indices;if(k){for(a=0;a<h;++a){k[l[a]]=d+a}}}else {b.indices=null;Ext.Array.insert(o,d,c)}for(a=0;a<h;++a){G[l[a]]=c[a]}b.length+=h;e.at=d;e.atItem=d===0?null:o[d-1];++b.generation;b.notify('add',[e])}}b.endUpdate();return b},update:function(c,b){var a=this;a.beginUpdate();try{return c.call(b||a,a)}catch(d){throw d}finally{a.endUpdate()}},updateKey:function(d,b,h){var a=this,f=a.map,e=a.indices,g=a.getSource(),c;if(g&&!g.updating){g.updateKey(d,b)}else if((c=a.getKey(d))!==b){if(f[b]===d&&!(c in f)){delete f[b];a.updating++;a.generation++;f[c]=d;if(e){e[c]=e[b];delete e[b]}a.notify('updatekey',[Ext.apply({item:d,newKey:c,oldKey:b},h)]);a.updating--}}},findInsertIndex:function(g,e){var d=this.getSource(),f=d.items,b=d.indexOf(g)-1,c,a;while(b>-1){c=f[b];a=this.indexOf(c);if(a>-1){return a+1}--b}return e},onCollectionAdd:function(l,h){var a=this,j=h.atItem,e=a.transformItems(h.items),i=a.requestedIndex,d,b,f,g,c,k;if(i!==undefined){b=i}else {c=j||l.items[1];b=c?a.indexOf(c):-1;if(b>-1){if(j){++b}}else if(!a.sorted){b=a.findInsertIndex(e[0],h.at?a.length:0)}}if(a.getAutoFilter()&&a.filtered){for(g=0,k=e.length;g<k;++g){c=e[g];if(a.isItemFiltered(c)){if(!f){f=e.slice(0,g)}if(!d){d=[]}d.push(c)}else if(f){f.push(c)}}}a.splice((b<0)?a.length:b,0,f||e);if(d){a.notify('filteradd',[d])}},onCollectionBeforeItemChange:function(c,b){var a=this;a.onCollectionUpdateKey=null;if(!a.sourceUpdating){a.notify('beforeitemchange',[b])}},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){delete this.onCollectionUpdateKey;this.itemChanged(a.item,a.modified,a.oldKey,a.meta)},onCollectionFilteredItemChange:function(){delete this.onCollectionUpdateKey},onCollectionRefresh:function(l){var a=this,j={},h={},c=a.items,d=a.transformItems(l.items),k=a.getFilterFn(),b,i,g,e,f;if(a.filtered&&a.getAutoFilter()){for(b=0,f=0,e=d.length;b<e;b++){if(k(d[b])){c[f++]=d[b]}}c.length=f}else {c.length=0;c.push.apply(c,d)}if(a.sorted){a.sortData(c)}a.length=e=c.length;a.map=j;a.indices=h;for(b=0;b<e;++b){g=a.getKey(i=c[b]);j[g]=i;h[g]=b}++a.generation;a.notify('refresh')},onCollectionRemove:function(b,a){this.splice(0,a.items)},onCollectionUpdateKey:function(b,a){this.updateKey(a.item,a.oldKey,a)},_aggregators:{average:function(e,a,b,d,f){var c=b-a;return c&&this._aggregators.sum.call(this,e,a,b,d,f)/c},bounds:function(h,g,i,f,e){var a,c,d,b;for(b=g;b<i;++b){a=h[b];a=(e?a[e]:a)[f];if(!(a<c)){c=a}if(!(a>d)){d=a}}return [d,c]},count:function(a){return a.length},extremes:function(k,j,l,i,f){var e=null,d=null,c,b,g,h,a;for(c=j;c<l;++c){b=k[c];a=(f?b[f]:b)[i];if(!(a<g)){g=a;e=b}if(!(a>h)){h=a;d=b}}return [d,e]},max:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[1]},maxItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[1]},min:function(c,b,e,a,d){var f=this._aggregators.bounds.call(this,c,b,e,a,d);return f[0]},minItem:function(c,b,e,a,d){var f=this._aggregators.extremes.call(this,c,b,e,a,d);return f[0]},sum:function(g,f,h,e,d){var a,c,b;for(c=0,b=f;b<h;++b){a=g[b];a=(d?a[d]:a)[e];c+=a}return c}},_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(c){var b=this,a=b.observers;if(!a){b.observers=a=[]}if(b.notifying){b.observers=a=a.slice(0)}a.push(c);if(a.length>1){Ext.Array.sort(a,b.prioritySortFn)}},prioritySortFn:function(a,b){var c=a.observerPriority||0,d=b.observerPriority||0;return c-d},applyExtraKeys:function(e,g){var d=this,f=g||{},b,c,a;for(c in e){a=e[c];if(!a.isCollectionKey){b={collection:d};if(Ext.isString(a)){b.property=a}else {b=Ext.apply(b,a)}a=new Ext.util.CollectionKey(b)}else {a.setCollection(d)}f[c]=d[c]=a;a.name=c}return f},applyGrouper:function(a){if(a){a=this.getSorters().decodeSorter(a,Ext.util.Grouper)}return a},decodeItems:function(e,d){var g=this,a=(d===undefined)?e:e[d],b,f,c;if(!a||!a.$cloned){b=e.length>d+1||!Ext.isIterable(a);if(b){a=Ext.Array.slice(e,d);if(a.length===1&&a[0]===undefined){a.length=0}}f=g.getDecoder();if(f){if(!b){a=a.slice(0);b=!0}for(c=a.length;c-->0;){if((a[c]=f.call(g,a[c]))===!1){a.splice(c,1)}}}if(b){a.$cloned=!0}}return a},getIndices:function(){var a=this,c=a.indices,d=a.items,f=d.length,b,e;if(!c){a.indices=c={};++a.indexRebuilds;for(b=0;b<f;++b){e=a.getKey(d[b]);c[e]=b}}return c},notify:function(d,b){var a=this,e=a.observers,g=a._eventToMethodMap[d],j=0,c,i,f,h;b=b||[];if(e&&g){a.notifying=!0;for(c=0,i=e.length;c<i;++c){f=(h=e[c])[g];if(f){if(!j++){b.unshift(a)}f.apply(h,b)}}a.notifying=!1}if(!a.hasListeners){return}if(a.hasListeners[d]){if(!j){b.unshift(a)}a.fireEventArgs(d,b)}},getFilterFn:function(){return this.getFilters().getFilterFn()},getFilters:function(b){var a=this._filters;if(!a&&b!==!1){a=new Ext.util.FilterCollection();this.setFilters(a)}return a},isItemFiltered:function(a){return !this.getFilters().filterFn(a)},onFilterChange:function(f){var a=this,b=a.getSource(),c,d,e;if(!b){c=a.getExtraKeys();if(c){d={};for(e in c){d[e]=c[e].clone(a)}}b=new Ext.util.Collection({keyFn:a.getKey,extraKeys:d,rootProperty:a.getRootProperty()});if(a.length){b.add(a.items)}a.setSource(b);a.autoSource=b}else {if(b.destroyed){return}if(b.length||a.length){a.onCollectionRefresh(b)}}a.notify('filter')},applyFilters:function(b,a){if(!b||b.isFilterCollection){return b}if(b){if(!a){a=this.getFilters()}a.splice(0,a.length,b)}return a},updateFilters:function(b,c){var a=this;if(c){c.un('endupdate','onEndUpdateFilters',a)}if(b){b.on({endupdate:'onEndUpdateFilters',scope:a,priority:a.$endUpdatePriority});b.$filterable=a}a.onEndUpdateFilters(b)},onEndUpdateFilters:function(a){var b=this,d=b.filtered,c=!!a&&(a.getFilterCount()>0);if(d||c){b.filtered=c;b.onFilterChange(a)}},getSortFn:function(){return this._sortFn||this.createSortFn()},getSorters:function(b){var a=this._sorters;if(!a&&b!==!1){a=new Ext.util.SorterCollection();this.setSorters(a)}return a},onSortChange:function(){if(this.sorted){this.sortItems()}},sort:function(c,b,d){var a=this.getSorters();a.addSort.apply(a,arguments);return this},sortData:function(a){Ext.Array.sort(a,this.getSortFn());return a},sortItems:function(b){var a=this;if(a.sorted){b=a.getSortFn()}a.indices=null;a.notify('beforesort',[a.getSorters(!1)]);if(a.length){Ext.Array.sort(a.items,b)}a.notify('sort')},sortBy:function(a){return this.sortItems(a)},findInsertionIndex:function(d,c,a,b){return Ext.Array.findInsertionIndex(d,c||this.items,a||this.getSortFn(),b)},applySorters:function(b,a){if(!b||b.isSorterCollection){return b}if(b){if(!a){a=this.getSorters()}a.splice(0,a.length,b)}return a},createSortFn:function(){var d=this,b=d.getGrouper(),c=d.getSorters(!1),a=c?c.getSortFn():null;if(!b){return a}return function(d,e){var c=b.sort(d,e);if(!c&&a){c=a(d,e)}return c}},updateGrouper:function(c){var a=this,b=a.getGroups(),e=a.getSorters(),d;a.onSorterChange();a.grouped=!!c;if(c){if(a.getTrackGroups()){if(!b){b=new Ext.util.GroupCollection({itemRoot:a.getRootProperty(),groupConfig:a.getGroupConfig()});b.$groupable=a;a.setGroups(b)}b.setGrouper(c);d=!0}}else {if(b){a.removeObserver(b);b.destroy()}a.setGroups(null)}if(!e.updating){a.onEndUpdateSorters(e)}if(d){b.onCollectionRefresh(a)}},updateSorters:function(b,c){var a=this;if(c&&!c.destroyed){c.un('endupdate','onEndUpdateSorters',a)}if(b){b.on({endupdate:'onEndUpdateSorters',scope:a,priority:a.$endUpdatePriority});if(a.manageSorters){b.$sortable=a}}a.onSorterChange();a.onEndUpdateSorters(b)},onSorterChange:function(){this._sortFn=null},onEndUpdateSorters:function(b){var a=this,d=a.sorted,c=(a.grouped&&a.getAutoGroup())||(b&&b.length>0);if(d||c){a.sorted=!!c;a.onSortChange(b)}},removeObserver:function(b){var a=this.observers;if(a){Ext.Array.remove(a,b)}},spliceMerge:function(i,q){var f=this,r=f.map,k=i.length,g=0,n=f.items,m=n.length,h=[],c=0,a=[],p=f.getSortFn(),l,j,d,b,o,e;f.items=a;for(e=0;e<k;e=j){b=i[e];for(;g<m;++g){if(p(b,o=n[g])<0){break}a.push(o)}if(g===m){h[c++]={at:a.length,itemAt:a[a.length-1],items:(l=[])};if(c>1){h[c-2].next=h[c-1]}for(;e<k;++e){l.push(b=i[e]);a.push(b)}break}h[c++]={at:a.length,itemAt:a[a.length-1],items:(l=[b])};if(c>1){h[c-2].next=h[c-1]}a.push(b);for(j=e+1;j<k;++j){if(p(b=i[j],o)>=0){break}a.push(b);l.push(b)}}for(;g<m;++g){a.push(n[g])}for(d=0;d<k;++d){r[q[d]]=i[d]}f.length=a.length;++f.generation;f.indices=null;for(d=0;d<c;++d){f.notify('add',[h[d]])}},transformItems:Ext.identityFn,getGroups:function(){return this.callParent()||null},updateAutoGroup:function(b){var a=this.getGroups();if(a){a.setAutoGroup(b)}this.onEndUpdateSorters(this._sorters)},updateGroups:function(a,b){if(b){this.removeObserver(b)}if(a){this.addObserver(a)}},updateSource:function(b,c){var a=this,d=a.autoSource;if(c){if(!c.destroyed){c.removeObserver(a)}if(c===d){d.destroy();a.autoSource=null}}if(b){b.addObserver(a);if(b.length||a.length){a.onCollectionRefresh(b)}}}},function(){var a=this.prototype;a.removeAtKey=a.removeByKey;a.decodeRemoveItems=a.decodeItems;Ext.Object.each(a._aggregators,function(b){a[b]=function(a,c,d){return this.aggregate(a,b,c,d)};a[b+'ByGroup']=function(a){return this.aggregateByGroup(a,b)}})});Ext.define('Ext.data.Range',{isDataRange:!0,begin:0,buffer:0,end:0,length:0,store:null,constructor:function(b){var a=this,c,d;Ext.apply(a,b);d=a.store;if(!(c=d.activeRanges)){d.activeRanges=c=[]}c.push(a);a.refresh();if('begin' in b){a.begin=a.end=0;a.goto(b.begin,b.end)}},destroy:function(){var a=this,c=a.store,b=c&&c.activeRanges;Ext.destroy(a.storeListeners);if(b){Ext.Array.remove(b,a)}a.callParent()},"goto":function(d,e){var a=this,c=a.buffer,b=a.task;a.begin=d;a.end=e;a.length=e-d;if(c>0){if(!b){a.task=b=new Ext.util.DelayedTask(a.doGoto,a)}b.delay(c)}else {a.doGoto()}},privates:{lastBegin:0,lastEnd:0,doGoto:Ext.privateFn,refresh:function(){this.records=this.store.getData().items}}});Ext.define('Ext.util.ObjectTemplate',{isObjectTemplate:!0,excludeProperties:{},valueRe:/^[{][a-z.]+[}]$/i,statics:{create:function(a,b){return a.isObjectTemplate?a:new Ext.util.ObjectTemplate(a,b)}},constructor:function(a,b){Ext.apply(this,b);this.template=a},apply:function(b){var a=this;delete a.apply;a.apply=a.compile(a.template);return a.apply(b)},privates:{compile:function(a){var e=this,g=e.excludeProperties,d,b,f,c;if(Ext.isString(a)){if(a.indexOf('{')<0){c=function(){return a}}else if(e.valueRe.test(a)){a=a.substring(1,a.length-1).split('.');c=function(d){var b,c;for(b=d,c=0;b&&c<a.length;++c){b=b[a[c]]}return b}}else {a=new Ext.XTemplate(a);c=function(b){return a.apply(b)}}}else if(!a||Ext.isPrimitive(a)||Ext.isFunction(a)){c=function(){return a}}else if(a instanceof Array){d=[];for(b=0,f=a.length;b<f;++b){d[b]=e.compile(a[b])}c=function(e){var c=[],b;for(b=0;b<f;++b){c[b]=d[b](e)}return c}}else {d={};for(b in a){if(!g[b]){d[b]=e.compile(a[b])}}c=function(f){var e={},b,c;for(b in a){c=g[b]?a[b]:d[b](f);if(c!==undefined){e[b]=c}}return e}}return c}}});Ext.define('Ext.data.schema.Role',{isRole:!0,left:!0,owner:!1,side:'left',isMany:!1,defaultReaderType:'json',_internalReadOptions:{recordsOnly:!0,asRoot:!0},constructor:function(c,d){var a=this,b=d.extra;Ext.apply(a,d);if(b){b=Ext.apply({},b);delete b.type;Ext.apply(a,b);delete a.extra}a.association=c;if(c.owner===a.side){c.owner=a;a.owner=!0}},processUpdate:function(){Ext.raise('Only the "many" for an association may be processed. "'+this.role+'" is not valid.')},processLoad:function(d,b,a,c){return a},checkMembership:Ext.emptyFn,adoptAssociated:function(c,b){var a=this.getAssociatedItem(c);if(a){b.adopt(a)}},$roleFilterId:'$associationRoleFilter',createAssociationStore:function(d,k,i,l){var a=this,g=a.association,e=g.getFieldName(),j=g.isManyToMany,h=a.storeConfig,f=k.getId(),c={asynchronousLoad:!1,model:a.cls,role:a,session:d,associatedEntity:k,disableMetaChangeEvent:!0,pageSize:null,remoteFilter:!0,trackRemoved:!d},b;if(j){c.filters=[{id:a.$roleFilterId,property:a.inverse.field,value:f,exactMatch:!0}]}else if(e){c.filters=[{id:a.$roleFilterId,property:e,value:f,exactMatch:!0}];c.foreignKeyName=e}if(h){Ext.apply(c,h)}b=Ext.Factory.store(c);a.onStoreCreate(b,d,f);if(!j||d){b.on({scope:a,add:'onAddToMany',remove:'onRemoveFromMany',clear:'onRemoveFromMany'})}if(i){b.loadData(i)}b.complete=!!l;return b},onStoreCreate:Ext.emptyFn,getAssociatedStore:function(f,b,d,a,v){var k=this,o=k.getStoreName(),c=f[o],w=c,i=f.session,p=b&&b.reload,j=f.$source,h=!1,t=!1,s,e,l,u,q,r,g,m,n;if(!c){if(i){if(j){t=j.phantom}if(!a&&j){g=j[o];if(g&&!g.isLoading()){a=[];q=g.getData().items;for(l=0,u=q.length;l<u;++l){r=q[l];a.push(i.getRecord(r.self,r.id))}h=!!g.complete;s=!0}}if(!s){m=!!a;a=k.findRecords(i,f,a,v);if(!m&&(!a||!a.length)){a=null}h=t||m}}else {h=!!a}c=k.createAssociationStore(i,f,a,h||f.phantom);c.$source=g;if(!a&&(k.autoLoad||b)){p=!0}f[o]=c}if(b){if(p||c.isLoading()){c.on('load',function(h,i,c,g){e=[h,g];d=d||b.scope||f;if(c){Ext.callback(b.success,d,e)}else {Ext.callback(b.failure,d,e)}e.push(c);Ext.callback(b,d,e);Ext.callback(b.callback,d,e)},null,{single:!0})}else {e=[c,null];d=d||b.scope||f;Ext.callback(b.success,d,e);e.push(!0);Ext.callback(b,d,e);Ext.callback(b.callback,d,e)}}n=c.isLoading();if(p){if(!n){c.load()}}else if(w&&a&&!n){c.loadData(a)}return c},getAssociatedItem:function(b){var a=this.isMany?this.getStoreName():this.getInstanceName();return b[a]||null},onDrop:Ext.emptyFn,onIdChanged:Ext.emptyFn,getReaderRoot:function(){var a=this;return a.associationKey||(a.associationKey=a.association.schema.getNamer().readerRoot(a.role))},getReader:function(){var b=this,a=b.reader,d=b.cls,c=!b.associationKey,e=this.getReaderRoot();if(a&&!a.isReader){if(Ext.isString(a)){a={type:a}}Ext.applyIf(a,{model:d,rootProperty:e,useSimpleAccessors:c,type:b.defaultReaderType});a=b.reader=Ext.createByAlias('reader.'+a.type,a)}return a},getInstanceName:function(){var a=this;return a.instanceName||(a.instanceName=a.association.schema.getNamer().instanceName(a.role))},getOldInstanceName:function(){return this.oldInstanceName||(this.oldInstanceName='$old'+this.getInstanceName())},getStoreName:function(){var a=this;return a.storeName||(a.storeName=a.association.schema.getNamer().storeName(a.role))},constructReader:function(h){var b=this,a=b.getReader(),e=b.cls,g=!b.associationKey,f=b.getReaderRoot(),c,d;if(!a){d=e.getProxy();if(d){c=d.getReader();a=new c.self();a.copyFrom(c);a.setRootProperty(f)}else {a=new h.self({model:e,useSimpleAccessors:g,rootProperty:f})}b.reader=a}return a},read:function(f,e,d,c){var a=this.constructReader(d),b=a.getRoot(e);if(b){return a.readRecords(b,c,this._internalReadOptions)}},getCallbackOptions:function(a,c,b){if(typeof a==='function'){a={callback:a,scope:c||b}}else if(a){a=Ext.apply({},a);a.scope=c||a.scope||b}return a},doGetFK:function(d,b,f){var i=this,l=i.cls,j=i.association.getFieldName(),h=i.getInstanceName(),a=d[h],m=b&&b.reload,e=a!==undefined&&!m,k=d.session,c,g;if(!e){if(k){c=d.get(j);if(c||c===0){e=k.peekRecord(l,c,!0)&&!m;a=k.getRecord(l,c,!1)}else {e=!0;d[h]=a=null}}else if(j){c=d.get(j);if(!c&&c!==0){e=!0;d[h]=a=null}else {if(!a){a=l.createWithId(c)}}}else {e=!0;a=null}}else if(a){e=!a.isLoading()}if(e){if(b){g=[a,null];f=f||b.scope||d;Ext.callback(b.success,f,g);g.push(!0);Ext.callback(b,f,g);Ext.callback(b.callback,f,g)}}else {d[h]=a;b=i.getCallbackOptions(b,f,d);a.load(b)}return a},doSetFK:function(a,c,e,l){var f=this,i=f.association.getFieldName(),h=f.getInstanceName(),b=a[h],d=f.inverse,j=d.setterName,k,g;if(c&&c.isEntity){if(b!==c){g=f.getOldInstanceName();a[g]=b;a[h]=c;if(b&&b.isEntity){b[d.getInstanceName()]=undefined}if(i){a.set(i,c.getId())}delete a[g];a.onAssociatedRecordSet(c,f);if(j){c[j](a)}}}else {k=(a.changingKey&&!d.isMany)||a.set(i,c);if(k&&b&&b.isEntity&&!b.isEqual(b.getId(),c)){a[h]=undefined;if(!d.isMany){b[d.getInstanceName()]=undefined}}}if(e){if(Ext.isFunction(e)){e={callback:e,scope:l||a}}return a.save(e)}}});Ext.define('Ext.data.schema.Association',{isOneToOne:!1,isManyToOne:!1,isManyToMany:!1,owner:null,field:null,constructor:function(d){var a=this,c,b;Ext.apply(a,d);a.left=c=new a.Left(a,a.left);a.right=b=new a.Right(a,a.right);c.inverse=b;b.inverse=c},hasField:function(){return !!this.field},getFieldName:function(){var a=this.field;return a?a.name:''}});Ext.define('Ext.data.schema.OneToOne',{extend:Ext.data.schema.Association,isOneToOne:!0,isToOne:!0,kind:'one-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',onDrop:function(a,c){var b=this.getAssociatedItem(a);a[this.getInstanceName()]=null;if(b){b[this.inverse.getInstanceName()]=null}},onIdChanged:function(a,e,d){var b=this.getAssociatedItem(a),c=this.association.getFieldName();if(!a.session&&b&&c){b.set(c,d)}},createGetter:function(){var a=this;return function(){return a.doGet(this)}},createSetter:function(){var a=this;return function(b){return a.doSet(this,b)}},doGet:function(a){var c=this.getInstanceName(),b=a[c],d=a.session;if(!b&&d){}return b||null},doSet:function(a,b){var d=this.getInstanceName(),e=a[d],c=this.inverse.setterName;if(e!==b){a[d]=b;if(c){b[c](a)}a.onAssociatedRecordSet(b,this)}return e},read:function(a,g,f,e){var c=this,d=c.callParent([a,g,f,e]),b;if(d){b=d[0];if(b){b[c.inverse.getInstanceName()]=a;a[c.getInstanceName()]=b;delete a.data[c.role]}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(d,b,c){return a.doSetFK(this,d,b,c)}},onDrop:function(c,f){var b=this,d=b.association.field,a=b.getAssociatedItem(c),e;if(b.inverse.owner){if(f&&d){e=c.get(d.name);if(e||e===0){a=f.getEntry(b.cls,e).record;if(a){a.drop()}}}else {if(a){a.drop()}}}if(d){c.set(d.name,null)}c[b.getInstanceName()]=null;if(a){a[b.inverse.getInstanceName()]=null}},onValueChange:function(b,f,c){var a=this,e=b[a.getOldInstanceName()]||a.getAssociatedItem(b),h=c||c===0,d=a.getInstanceName(),g=a.cls;b.changingKey=!0;a.doSetFK(b,c);if(!h){b[d]=null}else if(f&&g){b[d]=f.peekRecord(g,c)||undefined}if(a.inverse.owner&&e){a.association.schema.queueKeyCheck(e,a)}b.changingKey=!1},checkKeyForDrop:function(a){var b=this.inverse.getAssociatedItem(a);if(!b){a.drop()}},read:function(a,o,n,m){var f=this,l=f.callParent([a,o,n,m]),b,d,g,c,k,h,j,i,e;if(l){b=l[0];d=f.association.field;if(d){g=d.name}c=a.session;e=a.data;if(b){if(c){k=c.getRefs(b,this.inverse,!0);i=(k&&k[a.id])||(e[g]===undefined)}else {i=!0}if(i){if(d){j=e[g];h=b.id;if(j!==h){e[g]=h;if(c){c.updateReference(a,d,h,j)}}}b[f.inverse.getInstanceName()]=a;a[f.getInstanceName()]=b}delete e[f.role]}}}})});Ext.define('Ext.data.schema.ManyToOne',{extend:Ext.data.schema.Association,isManyToOne:!0,isToOne:!0,kind:'many-to-one',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,onDrop:function(d,f){var b=this,e=b.getAssociatedItem(d),a,g,c,h;if(e){a=e.removeAll();if(a&&b.inverse.owner){for(c=0,g=a.length;c<g;++c){a[c].drop()}}e.destroy();d[b.getStoreName()]=null}else if(f){a=f.getRefs(d,b);if(a){for(h in a){a[h].drop()}}}},onIdChanged:function(e,i,g){var f=this.association.getFieldName(),d=this.getAssociatedItem(e),b,a,h,c;if(d){c=d.getFilters().get(this.$roleFilterId);if(c){c.setValue(g)}if(!e.session&&f){b=d.getDataSource().items;for(a=0,h=b.length;a<h;++a){b[a].set(f,g)}}}},processUpdate:function(f,i){var d=this,h=d.inverse.cls,g=i.R,c,a,b,e;if(g){for(c in g){a=f.peekRecord(h,c);if(a){e=f.getEntityList(d.cls,g[c]);b=d.getAssociatedItem(a);if(b){b.loadData(e);b.complete=!0}else {a[d.getterName](null,null,e)}}else {f.onInvalidAssociationEntity(h,c)}}}},findRecords:function(l,h,e,k){var d=e,b=l.getRefs(h,this,!0),j=this.association.field,i,a,c,g,m,f;if(j&&(b||k)){i=j.name;d=[];if(e){f={};for(g=0,m=e.length;g<m;++g){a=e[g];c=a.id;if(b&&b[c]){d.push(a)}else if(k&&a.data[i]===undefined){d.push(a);a.data[i]=h.id;l.updateReference(a,j,h.id,undefined)}f[c]=!0}}if(b){for(c in b){if(!f||!f[c]){d.push(b[c])}}}}return d},processLoad:function(e,d,c,a){var b=c;if(a){b=this.findRecords(a,d,c,!0)}this.onLoadMany(d,b,a);return b},adoptAssociated:function(f,d){var c=this.getAssociatedItem(f),b,a,e;if(c){c.setSession(d);b=c.getData().items;for(a=0,e=b.length;a<e;++a){d.adopt(b[a])}}},createGetter:function(){var a=this;return function(c,d,b){return a.getAssociatedStore(this,c,d,b,!0)}},createSetter:null,onAddToMany:function(c,a){var b=c.getAssociatedEntity();if(this.association.field){this.syncFK(a,b,!1)}else {this.setInstances(b,a)}},onLoadMany:function(b,a,c){this.setInstances(b,a,c)},onRemoveFromMany:function(b,a){if(this.association.field){this.syncFK(a,b.getAssociatedEntity(),!0)}else {this.setInstances(null,a)}},read:function(b,j,i,h){var c=this,g=c.inverse.getInstanceName(),a=c.callParent([b,j,i,h]),e,f,d;if(a){e=b[c.getterName](null,null,a);delete b.data[c.role];a=e.getData().items;for(d=0,f=a.length;d<f;++d){a[d][g]=b}}},setInstances:function(c,i,j){var k=this.inverse.getInstanceName(),h=c?c.getId():null,d=this.association.field,l=i.length,b,a,e,f,g;for(b=0;b<l;++b){a=i[b];a[k]=c;if(d){g=d.name;f=a.data;e=f[g];if(e!==h){f[g]=h;if(j){j.updateReference(a,d,h,e)}}}}},syncFK:function(c,d,f){var i=this.association.getFieldName(),g=this.inverse,k=g.setterName,j=g.getInstanceName(),h=c.length,l=d.getId(),e,a,b;while(h-->0){a=c[h];e=!a.isEqual(l,a.get(i));b=f?null:d;if(e!==f){a.changingKey=!0;a[k](b);a.changingKey=!1}else {a[j]=b}}}}),Right:Ext.define(null,{extend:'Ext.data.schema.Role',left:!1,side:'right',onDrop:function(a,c){var b=this.association.field;if(b){a.set(b.name,null)}a[this.getInstanceName()]=null},createGetter:function(){var a=this;return function(b,c){return a.doGetFK(this,b,c)}},createSetter:function(){var a=this;return function(b,c,d){return a.doSetFK(this,b,c,d)}},checkMembership:function(d,b){var c=this.association.field,a;if(c){a=this.getSessionStore(d,b.get(c.name));if(a&&!a.contains(b)){a.add(b)}}},onValueChange:function(b,f,d,l){var c=this,j=c.getInstanceName(),m=c.cls,i,g,a,h,e,k;if(!b.changingKey){i=d||d===0;if(!i){b[j]=null}if(f){a=c.getSessionStore(f,l);if(a){a.remove(b)}if(i){a=c.getSessionStore(f,d);if(a&&!a.isLoading()){a.add(b)}if(m){k=f.peekRecord(m,d)}b[j]=k||undefined}}else {g=b.joined;if(g){for(h=g.length-1;h>=0;h--){a=g[h];if(a.isStore){e=a.getAssociatedEntity();if(e&&e.self===c.cls&&e.getId()===l){a.remove(b)}}}}}}if(c.owner&&d===null){c.association.schema.queueKeyCheck(b,c)}},checkKeyForDrop:function(a){var b=this.association.field;if(a.get(b.name)===null){a.drop()}},getSessionStore:function(c,d){var b=this.cls,a;if(b){a=c.peekRecord(b,d);if(a){return this.inverse.getAssociatedItem(a)}}},read:function(b,f,e,d){var c=this.callParent([b,f,e,d]),a;if(c){a=c[0];if(a){b[this.getInstanceName()]=a;delete b.data[this.role]}}}})});Ext.define('Ext.data.schema.ManyToMany',{extend:Ext.data.schema.Association,isManyToMany:!0,isToMany:!0,kind:'many-to-many',Left:Ext.define(null,{extend:'Ext.data.schema.Role',isMany:!0,digitRe:/^\d+$/,findRecords:function(i,k,f){var l=i.getMatrixSlice(this.inverse,k.id),g=l.members,h=[],m=this.cls,d,e,j,a,c,b;if(f){d={};for(e=0,j=f.length;e<j;++e){b=f[e];a=b.id;c=g[a];if(!(c&&c[2]===-1)){h.push(b)}d[a]=!0}}for(a in g){c=g[a];if(!d||!d[a]&&(c&&c[2]!==-1)){b=i.peekRecord(m,a);if(b){h.push(b)}}}return h},onIdChanged:function(b,d,c){var a=this.getAssociatedItem(b);if(a){a.getFilters().get(this.$roleFilterId).setValue(c)}},processLoad:function(e,d,b,c){var a=b;if(c){a=this.findRecords(c,d,b);this.onAddToMany(e,a,!0)}return a},processUpdate:function(b,f){var a=this,i=a.inverse.cls,h=f.R,e,c,d,g;if(h){for(e in h){c=b.peekRecord(i,e);if(c){g=b.getEntityList(a.cls,h[e]);d=a.getAssociatedItem(c);if(d){d.loadData(g);d.complete=!0}else {c[a.getterName](null,null,g)}}else {b.onInvalidAssociationEntity(i,e)}}}a.processMatrixBlock(b,f.C,1);a.processMatrixBlock(b,f.D,-1)},checkMembership:function(l,i){var d=l.getMatrix(this.association,!0),g,j,k,f,e,h,c,m,b,a;if(!d){return}g=this.left?d.right:d.left;j=g.inverse.role.cls;k=this.inverse;e=g.slices;if(e){f=e[i.id];if(f){c=f.members;for(h in c){m=c[h];if(m[2]!==-1){b=l.peekRecord(j,h);if(b){a=k.getAssociatedItem(b);if(a){a.matrixUpdate=1;a.add(i);a.matrixUpdate=0}}}}}}},onStoreCreate:function(d,c,e){var b=this,a;if(c){a=c.getMatrixSlice(b.inverse,e);a.attach(d);a.notify=b.onMatrixUpdate;a.scope=b}},processMatrixBlock:function(f,b,g){var e=this.inverse,d=this.digitRe,c,a;if(b){for(a in b){if(d.test(a)){a=parseInt(a,10)}c=f.getMatrixSlice(e,a);c.update(b[a],g)}}},createGetter:function(){var a=this;return function(c,d,b){return a.getAssociatedStore(this,c,d,b,!1)}},onAddToMany:function(a,b,c){if(!a.matrixUpdate){a.matrixUpdate=1;a.matrix.update(b,c===!0?0:1);a.matrixUpdate=0}},onRemoveFromMany:function(a,b){if(!a.matrixUpdate){a.matrixUpdate=1;a.matrix.update(b,-1);a.matrixUpdate=0}},read:function(a,f,e,d){var b=this,c=b.callParent([a,f,e,d]);if(c){a[b.getterName](null,null,c);delete a.data[b.role]}},onMatrixUpdate:function(f,e,g){var a=f.store,b,c,d;if(a&&!a.loading&&!a.matrixUpdate){a.matrixUpdate=1;b=a.indexOfId(e);if(g<0){if(b>=0){a.remove([b])}}else if(b<0){d=a.getSession().getEntry(this.type,e);c=d&&d.record;if(c){a.add(c)}}a.matrixUpdate=0}},adoptAssociated:function(e,d){var a=this.getAssociatedItem(e),c,b,f;if(a){a.setSession(d);this.onStoreCreate(a,d,e.getId());c=a.getData().items;for(b=0,f=c.length;b<f;++b){d.adopt(c[b])}}}},function(){var a=this;Ext.ClassManager.onCreated(function(){Ext.data.schema.ManyToMany.prototype.Right=Ext.define(null,{extend:a,left:!1,side:'right'})},null,'Ext.data.schema.ManyToMany')})});Ext.define('Ext.util.Inflector',{singleton:!0,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(b,a){this.singulars.unshift([b,a])},plural:function(b,a){this.plurals.unshift([b,a])},clearSingulars:function(){this.singulars=[]},clearPlurals:function(){this.plurals=[]},isTransnumeral:function(a){return Ext.Array.indexOf(this.uncountable,a)!==-1},pluralize:function(a){if(this.isTransnumeral(a)){return a}var e=this.plurals,f=e.length,d,b,c;for(c=0;c<f;c++){d=e[c];b=d[0];if(b==a||(b.test&&b.test(a))){return a.replace(b,d[1])}}return a},singularize:function(a){if(this.isTransnumeral(a)){return a}var e=this.singulars,f=e.length,d,b,c;for(c=0;c<f;c++){d=e[c];b=d[0];if(b==a||(b.test&&b.test(a))){return a.replace(b,d[1])}}return a},classify:function(a){return Ext.String.capitalize(this.singularize(a))},ordinalize:function(a){var c=parseInt(a,10),d=c%10,b=c%100;if(11<=b&&b<=13){return a+"th"}else {switch(d){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd";default:return a+"th";}}}},function(){var a,b={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'};for(a in b){if(b.hasOwnProperty(a)){this.plural(a,b[a]);this.singular(b[a],a)}}});Ext.define('Ext.data.schema.Namer',{mixins:[Ext.mixin.Factoryable],alias:'namer.default',isNamer:!0,capitalize:function(a){return Ext.String.capitalize(a)},fieldRole:function(a){var b=a.match(this.endsWithIdRe,'');if(b){a=a.substr(0,a.length-(b[1]||b[2]).length)}return this.apply('uncapitalize',a)},idField:function(a){return this.apply('uncapitalize,singularize',a)+'Id'},instanceName:function(a){return this.apply('underscore',a)},multiRole:function(a){return this.apply('undotted,uncapitalize,pluralize',a)},pluralize:function(a){return Ext.util.Inflector.pluralize(a)},readerRoot:function(a){return this.apply('uncapitalize',a)},singularize:function(a){return Ext.util.Inflector.singularize(a)},storeName:function(a){return this.apply('underscore',a)},uncapitalize:function(a){return Ext.String.uncapitalize(a)},underscore:function(a){return '_'+a},uniRole:function(a){return this.apply('undotted,uncapitalize,singularize',a)},undotted:function(c){var a,b;if(c.indexOf('.')<0){return c}a=c.split('.');b=a.length;while(b-->1){a[b]=this.apply('capitalize',a[b])}return a.join('')},getterName:function(a){var b=a.role;if(a&&a.isMany){return b}return 'get'+this.apply('capitalize',b)},inverseFieldRole:function(e,f,c,d){var a=this,b=a.apply(f?'uniRole':'multiRole',e),g=a.apply('pluralize',c),h=a.apply('undotted,pluralize',d);if(g.toLowerCase()!==h.toLowerCase()){b=c+a.apply('capitalize',b)}return b},manyToMany:function(c,e,d){var b=this,a=b.apply('undotted,capitalize,singularize',e)+b.apply('undotted,capitalize,pluralize',d);if(c){a=b.apply('capitalize',c+a)}return a},manyToOne:function(d,b,a,c){return this.apply('capitalize,singularize',a)+this.apply('capitalize',b)},matrixRole:function(a,c){var b=this.apply(a?'multiRole,capitalize':'multiRole',c);return a?a+b:b},oneToOne:function(d,b,a,c){return this.apply('undotted,capitalize,singularize',a)+this.apply('capitalize',b)},setterName:function(a){return 'set'+this.apply('capitalize',a.role)},endsWithIdRe:/(?:(_id)|[^A-Z](Id))$/,cache:{},apply:function(b,c){var e=this,h=e.cache,i=h[c]||(h[c]={}),a=i[b],d,g,f;if(!a){if(b.indexOf(',')<0){a=e[b](c)}else {g=(f=b.split(',')).length;a=c;for(d=0;d<g;++d){a=e.apply(f[d],a)}}i[b]=a}return a}});Ext.define('Ext.data.schema.Schema',{mixins:[Ext.mixin.Factoryable],alias:'schema.default',aliasPrefix:'schema.',isSchema:!0,type:'default',statics:{instances:{},get:function(a){var f=this,g=f.instances,c='default',e=a&&Ext.isString(a),b,d;if(a){if(a.isSchema){return a}c=e?a:(a.id||c)}if(!(b=g[c])){g[c]=b=f.create(a);b.id=c}else if(a&&!e){d=Ext.merge({},b.config);Ext.merge(d,a);b.setConfig(d);b.config=d}return b},lookupEntity:function(b){var a=null,e=this.instances,c,d,f;if(b){if(b.isEntity){a=b.self}else if(Ext.isFunction(b)){a=b}else if(Ext.isString(b)){a=Ext.ClassManager.get(b);if(a&&(!a.prototype||!a.prototype.isEntity)){a=null}if(!a){for(d in e){f=e[d];c=f.getEntity(b);if(c){if(a){Ext.raise('Ambiguous entity name "'+b+'". Defined by schema "'+a.schema.type+'" and "'+d+'"')}a=c}}}if(!a){Ext.raise('No such Entity "'+b+'".')}}}return a}},assocCount:0,entityCount:0,config:{defaultIdentifier:null,keyCheckDelay:10,namer:'default',namespace:null,proxy:{type:'ajax',url:'{prefix}/{entityName}'},urlPrefix:''},onClassExtended:function(c,b){var a=b.alias;if(a&&!b.type){if(!Ext.isString(a)){a=a[0]}c.prototype.type=a.substring(this.prototype.aliasPrefix.length)}},constructor:function(a){this.initConfig(a);this.clear()},applyDefaultIdentifier:function(a){return a&&Ext.Factory.dataIdentifier(a)},applyNamer:function(b){var a=Ext.data.schema.Namer.create(b);a.schema=this;return a},applyNamespace:function(a){var b;if(a){b=a.length-1;if(a.charAt(b)!=='.'){a+='.'}}return a},applyProxy:function(a){return Ext.util.ObjectTemplate.create(a)},eachAssociation:function(d,c){var b=this.associations,a;for(a in b){if(b.hasOwnProperty(a)){if(d.call(c,a,b[a])===!1){break}}}},eachEntity:function(d,c){var b=this.entities,a;for(a in b){if(b.hasOwnProperty(a)){if(d.call(c,a,b[a].cls)===!1){break}}}},getAssociation:function(b){var a=this.associations[b];return a||null},getEntity:function(b){var a=this.entityClasses[b]||this.entities[b];return (a&&a.cls)||null},getEntityName:function(c){var d=this.getNamespace(),b,a;if(typeof c==='string'){a=c}else {a=c.$className||null}if(a){if(d){b=d.length;if(a.substring(0,b)!==d){return a}}if(b){a=a.substring(b)}}return a},hasAssociations:function(a){a=a.entityName||a;return !!this.associationEntityMap[a]},hasEntity:function(b){var a=this.getEntityName(b);return !!(this.entities[a]||this.entityClasses[a])},addMatrix:function(n,k,l,j,i){var a=this,h=a.getNamer(),m=a.associations,g=a.entities,c=j.type,b=i.type,p=j.field||h.apply('idField',c),o=i.field||h.apply('idField',b),r=j.role||h.matrixRole(l,c),q=i.role||h.matrixRole(l,b),d,f,e;f=g[c]||(g[c]={cls:null,name:c,associations:{}});e=g[b]||(g[b]={cls:null,name:b,associations:{}});++a.assocCount;m[k]=d=new Ext.data.schema.ManyToMany({name:k,schema:a,definedBy:n,left:{cls:f.cls,type:c,role:r,field:p,associationKey:j.associationKey},right:{cls:e.cls,type:b,role:q,field:o,associationKey:i.associationKey}});f.associations[d.right.role]=d.right;e.associations[d.left.role]=d.left;if(f.cls){a.associationEntityMap[f.cls.entityName]=!0}if(e.cls){a.associationEntityMap[e.cls.entityName]=!0}a.decorateModel(d)},addReference:function(g,d,c,n,p){var f=this,j=f.getNamer(),q=f.entities,k=f.associations,l=g.entityName,a=c.association,s=c.child,r=c.parent,b=c.role,e=c.type||r||s,m=c.inverse,o=Ext.isString(m)?{role:m}:m,h=o&&o.role,i,t;if(!b){if(!d||c.legacy){b=j.apply('uncapitalize',e)}else {b=j.apply('fieldRole',d.name)}}if(!h){h=j.inverseFieldRole(l,n,b,e)}if(!a){if(n){a=j.oneToOne(g,h,e,b)}else {a=j.manyToOne(g,h,e,b)}}if(p&&a in k){if(p(k[a],a,h,b)!==!1){return}}i=q[e]||(q[e]={cls:null,name:e,associations:{}});t=n?Ext.data.schema.OneToOne:Ext.data.schema.ManyToOne;a=new t({name:a,owner:s?'left':(r?'right':null),definedBy:g,schema:f,field:d,nullable:d?!!d.allowBlank:!0,left:{cls:g,type:l,role:h,extra:o},right:{cls:i.cls,type:e,role:b,extra:c},meta:c});g.associations[b]=a.right;i.associations[h]=a.left;if(d){d.reference=a.right;g.references.push(d)}++f.assocCount;f.associationEntityMap[l]=!0;if(i.cls){f.associationEntityMap[i.cls.entityName]=!0}k[a.name]=a;if(a.right.cls){f.decorateModel(a)}},privates:{addEntity:function(a){var c=this,i=c.entities,e=a.entityName,b=i[e],j=a.fields,d,g,f,k,h;if(!b){i[e]=b={name:e,associations:{}}}else {d=b.associations;for(h in d){d[h].inverse.cls=a;c.associationEntityMap[e]=!0;c.decorateModel(d[h].association)}}b.cls=a;a.prototype.associations=a.associations=b.associations;c.entityClasses[a.$className]=b;++c.entityCount;for(f=0,k=j.length;f<k;++f){g=j[f];if(g.reference){c.addReferenceDescr(a,g)}}},addMatrices:function(c,a){var e=this,b,f,d;if(Ext.isString(a)){e.addMatrixDescr(c,null,a)}else if(a[0]){for(b=0,f=a.length;b<f;++b){e.addMatrixDescr(c,null,a[b])}}else {for(d in a){e.addMatrixDescr(c,d,a[d])}}},addMatrixDescr:function(i,f,a){var h=this,d=i.entityName,k=h.associations,e=h.getNamer(),c=a.left,b=a.right,j,g;if(Ext.isString(a)){if(a.charAt(0)==='#'){c={type:d};b={type:a.substring(1)}}else if(a.charAt(j=a.length-1)==='#'){c={type:a.substring(0,j)};b={type:d}}else if(e.apply('multiRole',d)<e.apply('multiRole',a)){c={type:d};b={type:a}}else {c={type:a};b={type:d}}}else {g=a.relation;if(c||(!b&&e.apply('multiRole',d)<e.apply('multiRole',a.type))){if(!c||c===!0){c={type:d}}else {c=Ext.apply({type:d},c)}b=a}else {if(!b||b===!0){b={type:d}}else {b=Ext.apply({type:d},b)}c=a}}if(!f){f=e.manyToMany(g,c.type,b.type)}if(!(f in k)){h.addMatrix(i,f,g,c,b)}},addReferenceDescr:function(c,b){var d=this,a=b.$reference;if(Ext.isString(a)){a={type:a}}else {a=Ext.apply({},a)}d.addReference(c,b,a,b.unique)},addBelongsTo:function(a,b){this.addKeylessSingle(a,b,!1)},addHasOne:function(a,b){this.addKeylessSingle(a,b,!0)},addKeylessSingle:function(c,a,e){var d,b;a=Ext.apply({},this.checkLegacyAssociation(c,a));a.type=this.getEntityName(a.child||a.parent||a.type);d=a.foreignKey||(a.type.toLowerCase()+'_id');b=c.getField(d);a.fromSingle=!0;if(b){b.$reference=a;b.unique=!0;a.legacy=!0}this.addReference(c,b,a,e)},addHasMany:function(f,a){var i=this,m=i.entities,g=i.pending,e,b,d,h,k,c,l,j;a=Ext.apply({},this.checkLegacyAssociation(f,a));a.type=this.getEntityName(a.child||a.parent||a.type);b=a.type;h=m[b];e=h&&h.cls;if(e){b=f.entityName;k=a.foreignKey||(b.toLowerCase()+'_id');delete a.foreignKey;j=Ext.apply({},a.inverse);delete a.inverse;c=Ext.apply({},a);delete c.type;a=Ext.apply({type:b,inverse:c},j);l=c.child;if(l){delete c.child;a.parent=b}d=e.getField(k);if(d){d.$reference=a;a.legacy=!0}i.addReference(e,d,a,!1)}else {if(!g[b]){g[b]=[]}g[b].push([f,a])}},checkLegacyAssociation:function(c,a){var b;if(Ext.isString(a)){a={type:a}}else {a=Ext.apply({},a)}if(a.model){a.type=a.model;delete a.model}b=a.associatedName||a.name;if(b){delete a.associatedName;delete a.name;a.role=b}return a},afterKeylessAssociations:function(f){var c=this.pending,d=f.entityName,b=c[d],a,e;if(b){for(a=0,e=b.length;a<e;++a){this.addHasMany.apply(this,b[a])}delete c[d]}},clear:function(c){var a=this,b=a.timer;delete a.setConfig;if(b){window.clearTimeout(b);a.timer=null}a.associations={};a.associationEntityMap={};a.entities={};a.entityClasses={};a.pending={};a.assocCount=a.entityCount=0;if(c){a.setNamespace(null)}},constructProxy:function(c){var b=this,a=Ext.Object.chain(c),d=b.getProxy();a.schema=b;a.prefix=b.getUrlPrefix();return d.apply(a)},applyDecoration:function(a){var g=this,f=a.inverse.cls,e=g.getNamer(),b,c,d;if(f&&!a.decorated){a.decorated=!0;d=f.prototype;if(!(b=a.getterName)){a.getterName=b=e.getterName(a)}d[b]=a.createGetter();if(a.createSetter){if(!(c=a.setterName)){a.setterName=c=e.setterName(a)}d[c]=a.createSetter()}}},decorateModel:function(a){this.applyDecoration(a.left);this.applyDecoration(a.right)},processKeyChecks:function(g){var a=this,b=a.keyCheckQueue,e=a.timer,f,c,d;if(e){window.clearTimeout(e);a.timer=null}if(!b){return}do{b=a.keyCheckQueue;a.keyCheckQueue=[];for(c=0,f=b.length;c<f;++c){d=b[c];d.role.checkKeyForDrop(d.record)}}while(g&&a.keyCheckQueue.length)},queueKeyCheck:function(d,e){var a=this,b=a.keyCheckQueue,c=a.timer;if(!b){a.keyCheckQueue=b=[]}b.push({record:d,role:e});if(!c){a.timer=c=Ext.defer(a.processKeyChecks,a.getKeyCheckDelay(),a)}},rankEntities:function(){var d=this,e=d.entities,b=Ext.Object.getKeys(e),f=b.length,c,a;d.nextRank=1;b.sort();for(a=0;a<f;++a){c=e[b[a]].cls;if(!c.rank){d.rankEntity(c)}}},rankEntity:function(d){var c=d.associations,b,a,e;for(e in c){a=c[e];if(!a.left&&a.association.field){b=a.cls;if(!b.rank){this.rankEntity(b)}}}d.rank=this.nextRank++}}});Ext.define('Ext.data.AbstractStore',{mixins:[Ext.mixin.Observable,Ext.mixin.Factoryable],factoryConfig:{defaultType:'store',type:'store'},$configPrefixed:!1,$configStrict:!1,config:{filters:null,autoDestroy:undefined,storeId:null,statefulFilters:!1,sorters:null,remoteSort:{lazy:!0,$value:!1},remoteFilter:{lazy:!0,$value:!1},groupField:undefined,groupDir:'ASC',grouper:null,pageSize:25,autoSort:null,reloadOnClearSorters:!1},currentPage:1,loading:!1,isStore:!0,updating:0,constructor:function(c){var a=this,b;a.isInitializing=!0;a.mixins.observable.constructor.call(a,c);a.isInitializing=!1;b=a.getStoreId();if(!b&&(c&&c.id)){a.setStoreId(b=c.id)}if(b){Ext.data.StoreManager.register(a)}},createActiveRange:function(a){var b=Ext.apply({store:this},a);return new Ext.data.Range(b)},syncActiveRanges:function(){var b=this.activeRanges,c=b&&b.length,a;for(a=0;a<c;a++){b[a].refresh()}},getCount:function(){var a=this.getData();return a?a.getCount():0},rangeCached:function(a,b){return this.getData().getCount()>=Math.max(a,b)},find:function(g,h,d,e,b,c){var a=!e,f=!!(a&&c);return this.getData().findIndex(g,h,d,a,f,!b)},findRecord:function(){var a=this,b=a.find.apply(a,arguments);return b!==-1?a.getAt(b):null},findExact:function(b,c,a){return this.getData().findIndexBy(function(d){return d.isEqual(d.get(b),c)},this,a)},findBy:function(c,a,b){return this.getData().findIndexBy(c,a,b)},getAt:function(a){return this.getData().getAt(a)||null},getRange:function(d,b,a){var c=this.getData().getRange(d,Ext.isNumber(b)?b+1:b);if(a&&a.callback){a.callback.call(a.scope||this,c,d,b,a)}return c},getFilters:function(c){var b=this,a=b.callParent();if(!a&&c!==!1){b.setFilters([]);a=b.callParent()}return a},applyFilters:function(d,a){var b=this,c;if(!a){a=b.createFiltersCollection();c=!0}a.add(d);if(c){b.onRemoteFilterSet(a,b.getRemoteFilter())}return a},getSorters:function(c){var b=this,a=b.callParent();if(!a&&c!==!1){b.setSorters([]);a=b.callParent()}return a},applySorters:function(d,a){var b=this,c;if(!a){a=b.createSortersCollection();c=!0}a.add(d);if(c){b.onRemoteSortSet(a,b.getRemoteSort())}return a},filter:function(a,c,b){if(Ext.isString(a)){a={property:a,value:c}}this.suppressNextFilter=!!b;this.getFilters().add(a);this.suppressNextFilter=!1},removeFilter:function(a,d){var b=this,c=b.getFilters();b.suppressNextFilter=!!d;if(a instanceof Ext.util.Filter){c.remove(a)}else {c.removeByKey(a)}b.suppressNextFilter=!1},updateAutoSort:function(a){this.getData().setAutoSort(a)},updateRemoteSort:function(a){this.onRemoteSortSet(this.getSorters(!1),a)},updateRemoteFilter:function(a){this.onRemoteFilterSet(this.getFilters(!1),a)},addFilter:function(b,a){this.suppressNextFilter=!!a;this.getFilters().add(b);this.suppressNextFilter=!1},filterBy:function(b,a){this.getFilters().add({filterFn:b,scope:a||this})},clearFilter:function(c){var b=this,a=b.getFilters(!1);if(!a||a.getCount()===0){return}b.suppressNextFilter=!!c;a.removeAll();b.suppressNextFilter=!1},isFiltered:function(){return this.getFilters().getCount()>0},isSorted:function(){var a=this.getSorters(!1);return !!(a&&a.length>0)||this.isGrouped()},addFieldTransform:function(b){if(b.getTransform()){return}var e=b.getProperty(),d=this.getModel(),c,a;if(d){c=d.getField(e);a=c?c.getSortType():null}if(a&&a!==Ext.identityFn){b.setTransform(a)}},beginUpdate:function(){if(!this.updating++&&this.hasListeners.beginupdate){this.fireEvent('beginupdate')}},endUpdate:function(){if(this.updating&&!--this.updating){if(this.hasListeners.endupdate){this.fireEvent('endupdate')}this.onEndUpdate()}},getState:function(){var c=this,e=[],g=c.getFilters(),f=c.getGrouper(),a,d,b;c.getSorters().each(function(a){e[e.length]=a.getState();d=!0});if(c.statefulFilters&&c.saveStatefulFilters){d=!0;a=[];g.each(function(b){a[a.length]=b.getState()})}if(f){d=!0}if(d){b={};if(e.length){b.sorters=e}if(a){b.filters=a}if(f){b.grouper=f.getState()}}return b},applyState:function(b){var a=this,e=b.sorters,c=b.filters,d=b.grouper;if(e){a.getSorters().replaceAll(e)}if(c){a.saveStatefulFilters=!0;a.getFilters().replaceAll(c)}if(d){a.setGrouper(d)}},hasPendingLoad:Ext.emptyFn,isLoaded:Ext.emptyFn,isLoading:Ext.emptyFn,destroy:function(){var a=this;if(a.hasListeners.beforedestroy){a.fireEvent('beforedestroy',a)}a.destroying=!0;if(a.getStoreId()){Ext.data.StoreManager.unregister(a)}a.doDestroy();if(a.hasListeners.destroy){a.fireEvent('destroy',a)}a.callParent()},doDestroy:Ext.emptyFn,sort:function(c,b,d){var a=this;if(arguments.length===0){if(a.getRemoteSort()){a.load()}else {a.forceLocalSort()}}else {a.getSorters().addSort(c,b,d)}},onBeforeCollectionSort:function(b,a){if(a){this.fireEvent('beforesort',this,a.getRange())}},onSorterEndUpdate:function(){var a=this,d=!0,b=a.getSorters(!1),c;if(a.settingGroups||!b){return}b=b.getRange();c=b.length;if(a.getRemoteSort()){if(b.length||a.getReloadOnClearSorters()){d=!1;a.load({callback:function(){a.fireEvent('sort',a,b)}})}}else if(c){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}if(d){a.fireEvent('sort',a,b)}},onFilterEndUpdate:function(){var a=this,b=a.suppressNextFilter,c=a.getFilters(!1);if(!c){return}if(a.getRemoteFilter()){a.currentPage=1;if(!b){a.load()}}else if(!b){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}if(a.trackStateChanges){a.saveStatefulFilters=!0}a.fireEvent('filterchange',a,a.getFilters().getRange())},updateGroupField:function(a){if(a){this.setGrouper({property:a,direction:this.getGroupDir()})}else {this.setGrouper(null)}},getGrouper:function(){return this.getData().getGrouper()},group:function(b,e){var a=this,d=a.getSorters(!1),f=b||(d&&d.length),c=a.getData();if(b&&typeof b==='string'){b={property:b,direction:e||a.getGroupDir()}}a.settingGroups=!0;if(b===c.getGrouper()){c.updateGrouper(b)}else {c.setGrouper(b)}delete a.settingGroups;if(f){if(a.getRemoteSort()){if(!a.isInitializing){a.load({scope:a,callback:function(){a.fireGroupChange()}})}}else {a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireGroupChange()}}else {a.fireGroupChange()}},fireGroupChange:function(b){var a=this;if(!a.isConfiguring&&!a.destroying&&!a.destroyed){a.fireGroupChangeEvent(b||a.getGrouper())}},fireGroupChangeEvent:function(a){this.fireEvent('groupchange',this,a)},clearGrouping:function(){this.group(null)},getGroupField:function(){var a=this.getGrouper(),b='';if(a){b=a.getProperty()}return b},isGrouped:function(){return !!this.getGrouper()},applyGrouper:function(a){this.group(a);return this.getData().getGrouper()},getGroups:function(){return this.getData().getGroups()},onEndUpdate:Ext.emptyFn,privates:{_metaProperties:{count:'getCount',first:'first',last:'last',loading:'hasPendingLoad',totalCount:'getTotalCount'},interpret:function(c){var b=this,a=b._metaProperties[c];return a&&b[a]()},loadsSynchronously:Ext.privateFn,onRemoteFilterSet:function(a,b){if(a){a[b?'on':'un']('endupdate','onFilterEndUpdate',this)}},onRemoteSortSet:function(d,c){var b=this,a;if(d){d[c?'on':'un']('endupdate','onSorterEndUpdate',b);a=b.getData();if(a){a[c?'un':'on']('beforesort','onBeforeCollectionSort',b)}}}},deprecated:{5:{methods:{destroyStore:function(){this.destroy()}}}}});Ext.define('Ext.data.Error',{isError:!0,$configPrefixed:!1,config:{field:null,message:''},constructor:function(a){this.initConfig(a);this.msg=this.message}});Ext.define('Ext.data.ErrorCollection',{extend:Ext.util.MixedCollection,alternateClassName:'Ext.data.Errors',init:function(d){var b=this,h=d.fields,k=d.data,g,a,c,i,f,j,e;for(c=0,i=h.length;c<i;++c){a=h[c];e=a.name;j=k[e];if(a.validate&&!a.validate.$nullFn){g=b.length;f=a.validate(j,null,b,d);if(g===b.length&&f!==!0){b.add(e,f)}}}return b},add:function(b,f){var d=this,e=Ext.data.field.Field.defaultInvalidMessage,a=b,c;if(Ext.isString(b)){a=new Ext.data.Error({field:b,message:f||e})}else {if(!(a.isError)){a=new Ext.data.Error({field:a.field||a.name,message:a.error||a.message||a.msg||e})}b=a.field}c=d.get(b);if(c){if(Ext.isArray(c)){c.push(a);return c}d.removeAtKey(b);a=[c,a];a.field=b;a=[a]}return d.callParent([a])},getKey:function(a){return a.field},isValid:function(){return this.length===0},getByField:function(b){var a=this.get(b);if(a&&!Ext.isArray(a)){a=[a]}return a||[]}});Ext.define('Ext.data.operation.Operation',{alternateClassName:'Ext.data.Operation',isOperation:!0,config:{synchronous:!1,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:!1,running:!1,complete:!1,success:undefined,exception:!1,error:undefined,idPrefix:'ext-operation-',constructor:function(a){var b=a&&a.scope;this.initConfig(a);if(a){a.scope=b}if(b){this.setScope(b);this.initialConfig.scope=b}this._internalId=Ext.id(this,this.idPrefix)},getAction:function(){return this.action},execute:function(){var a=this,b;delete a.error;delete a.success;a.complete=a.exception=!1;a.setStarted();a.request=b=a.doExecute();if(b){b.setOperation(a)}return b},doExecute:Ext.emptyFn,abort:function(){var a=this,c=a.request,b;a.aborted=!0;if(a.running&&c){b=a.getProxy();if(b&&!b.destroyed){b.abort(c)}a.request=null}a.running=!1},process:function(c,e,d,b){var a=this;b=b!==!1;a.setResponse(d);a.setResultSet(c);if(c.getSuccess()){a.doProcess(c,e,d);a.setSuccessful(b)}else if(b){a.setException(c.getMessage())}},_commitSetOptions:{convert:!0,commit:!0},doProcess:function(l,n,m){var j=this,i=j._commitSetOptions,e=j.getRecords(),k=e.length,g=e[0].clientIdProperty,f=l.getRecords(),h=f?f.length:0,d,c,b,a;if(h&&g){d=Ext.Array.toValueMap(e,'id');for(a=0;a<h;++a){c=f[a];b=d[c[g]];if(b){delete d[b.id];delete c[g];b.set(c,i)}}for(a in d){d[a].commit()}}else {for(a=0;a<k;++a){b=e[a];if(h===0||!(c=f[a])){b.commit()}else {b.set(c,i)}}}},setStarted:function(){this.started=this.running=!0},setCompleted:function(){var a=this,b;a.complete=!0;a.running=!1;if(!a.destroying){a.triggerCallbacks()}if(a.destroyed){return}b=a.getProxy();if(b&&!b.destroyed){b.completeOperation(a)}},setSuccessful:function(a){this.success=!0;if(a){this.setCompleted()}},setException:function(b){var a=this;a.exception=!0;a.success=a.running=!1;a.error=b;a.setCompleted()},triggerCallbacks:function(){var a=this,b=a.getInternalCallback();if(b){b.call(a.getInternalScope()||a,a);if(a.destroyed){return}a.setInternalCallback(null);a.setInternalScope(null)}b=a.getCallback();if(b){b.call(a.getScope()||a,a.getRecords(),a,a.wasSuccessful());if(a.destroyed){return}a.setCallback(null);a.setScope(null)}},hasException:function(){return this.exception},getError:function(){return this.error},getRecords:function(){var a;return this._records||((a=this.getResultSet())?a.getRecords():null)},isStarted:function(){return this.started},isRunning:function(){return this.running},isComplete:function(){return this.complete},wasSuccessful:function(){return this.isComplete()&&this.success===!0},allowWrite:function(){return !0},destroy:function(){var a=this;a.destroying=!0;if(a.running){a.abort()}a._params=a._callback=a._scope=a._resultSet=a._response=null;a.request=a._request=a._records=a._proxy=a._batch=null;a._recordCreator=a._internalCallback=a._internalScope=null;a.callParent()}});Ext.define('Ext.data.operation.Create',{extend:Ext.data.operation.Operation,alias:'data.operation.create',action:'create',isCreateOperation:!0,order:10,config:{recordCreator:Ext.identityFn},doExecute:function(){return this.getProxy().create(this)}});Ext.define('Ext.data.operation.Destroy',{extend:Ext.data.operation.Operation,alias:'data.operation.destroy',action:'destroy',isDestroyOperation:!0,order:30,foreignKeyDirection:-1,doProcess:function(){var b=this.getRecords(),c=b.length,a;for(a=0;a<c;++a){b[a].setErased()}},doExecute:function(){return this.getProxy().erase(this)},getRecordData:function(a,e){var b={},d=a.idField,c=this.getNameProperty()||'name';b[d[c]]=a.id;return b}});Ext.define('Ext.data.operation.Read',{extend:Ext.data.operation.Operation,alias:'data.operation.read',action:'read',isReadOperation:!0,config:{filters:undefined,sorters:undefined,grouper:undefined,start:undefined,limit:undefined,page:undefined,addRecords:!1},doExecute:function(){return this.getProxy().read(this)},doProcess:Ext.emptyFn,allowWrite:function(){return !1}});Ext.define('Ext.data.operation.Update',{extend:Ext.data.operation.Operation,alias:'data.operation.update',action:'update',isUpdateOperation:!0,order:20,config:{recordCreator:Ext.identityFn},doExecute:function(){return this.getProxy().update(this)}});Ext.define('Ext.data.SortTypes',function(){var a;return {singleton:!0,constructor:function(){a=this},none:Ext.identityFn,stripCommasRe:/,/g,stripTagsRE:/<\/?[^>]+>/gi,asText:function(b){return (b!=null)?String(b).replace(a.stripTagsRE,''):'\x00'},asUCText:function(b){return (b!=null)?String(b).toUpperCase().replace(a.stripTagsRE,''):'\x00'},asUCString:function(a){return (a!=null)?String(a).toUpperCase():'\x00'},asDate:function(a){if(!a){return 0}if(Ext.isDate(a)){return a.getTime()}return Date.parse(String(a))},asFloat:function(c){var b=parseFloat(String(c).replace(a.stripCommasRe,''));return isNaN(b)?0:b},asInt:function(c){var b=parseInt(String(c).replace(a.stripCommasRe,''),10);return isNaN(b)?0:b}}});Ext.define('Ext.data.validator.Validator',{mixins:[Ext.mixin.Factoryable],alias:'data.validator.base',isValidator:!0,factoryConfig:{cacheable:!0},type:'base',constructor:function(a){if(typeof a==='function'){this.fnOnly=!0;this.validate=a}else {this.initConfig(a)}},validate:function(){return !0},clone:function(){var a=this;if(a.fnOnly){return new Ext.data.validator.Validator(a.validate)}return new a.self(a.getCurrentConfig())}},function(a){Ext.Factory.validator=Ext.Factory.dataValidator});Ext.define('Ext.data.field.Field',{mixins:[Ext.mixin.Factoryable],alternateClassName:'Ext.data.Field',alias:'data.field.auto',aliasPrefix:'data.field.',type:'auto',factoryConfig:{defaultProperty:'name'},isDataField:!0,isField:!0,allowBlank:!0,allowNull:!1,critical:!1,defaultInvalidMessage:'This field is invalid',defaultValue:undefined,definedBy:null,depends:null,dependents:null,mapping:null,name:null,ordinal:undefined,persist:null,reference:null,summary:null,summaryField:'',unique:!1,rank:null,stripRe:/[$,%]/g,calculated:!1,evil:!1,identifier:!1,onClassExtended:function(g,d){var e=d.sortType,c=g.prototype,f=c.validators,a=d.validators,b=d.alias;if(b){if(typeof b!=='string'){b=b[0]}if(b){c.type=b.substr(b.lastIndexOf('.')+1)}}if(e&&Ext.isString(e)){c.sortType=Ext.data.SortTypes[e]}if(a){if(!Ext.isArray(a)){a=[a]}delete d.validators;if(f){a=f.concat(a)}c.validators=a}},argumentNamesRe:/^function\s*\(\s*([^,\)\s]+)/,calculateRe:/[^.a-z0-9_]([a-z_][a-z_0-9]*)\.([a-z_][a-z_0-9]*)/gi,constructor:function(d){var a=this,n=a.calculateRe,c,l,f,h,b,j,e,m,k,i,g;if(d){if(Ext.isString(d)){a.name=d}else {g=d.validators;if(g){delete d.validators;a.instanceValidators=g}Ext.apply(a,d)}}if(!a.allowNull){a.allowNull=!!a.reference}c=a.calculate;b=a.depends;if(c){a.convert=a.doCalculate;if(!b){if(!(b=c.$depends)){j={};k=Ext.Function.toCode(c);c.$depends=b=[];e=a.argumentNamesRe.exec(k);m=e?e[1]:'data';while((e=n.exec(k))){if(m===e[1]&&!j[i=e[2]]){j[i]=1;b.push(i)}}}a.depends=b}}f=a.defaultValue;if(a.convert){a.calculated=l=a.convert.length>1;a.evil=l&&!b}if(a.persist===null){a.persist=!c}h=a.sortType;if(!a.sortType){a.sortType=Ext.data.SortTypes.none}else if(Ext.isString(h)){a.sortType=Ext.data.SortTypes[h]}if(b&&typeof b==='string'){a.depends=[b]}a.cloneDefaultValue=f!==undefined&&(Ext.isDate(f)||Ext.isArray(f)||Ext.isObject(f))},setModelValidators:function(a){this._validators=null;this.modelValidators=a},constructValidators:function(a){var g,f,d,b,c,e;if(a){if(!(a instanceof Array)){a=[a]}g=this._validators;for(d=0,f=a.length;d<f;++d){b=a[d];if(b.fn){b=b.fn}c=Ext.Factory.dataValidator(b);if(!c.isPresence){g.push(c)}else {e=c}}if(e){this.presence=[e]}}},collate:function(d,e){var c=this,a=d,b=e;if(c.sortType){a=c.sortType(a);b=c.sortType(b)}return (a===b)?0:((a<b)?-1:1)},compare:function(a,b){return (a===b)?0:((a<b)?-1:1)},isEqual:function(a,b){return this.compare(a,b)===0},convert:null,serialize:null,validate:function(a,e,f,g){var d=this,h=d.getValidators(),c,b;b=this.presence;if(b&&(a==null||a==='')){c=d.validateGroup(b,a,e,f,g);if(c!==!0){return c}}return d.validateGroup(h,a,e,f,g)},validateGroup:function(e,j,f,c,i){var b='',g,h,d,a;for(d=0,h=e.length;d<h;++d){g=e[d];a=g.validate(j,i);if(a!==!0){a=a||this.defaultInvalidMessage;if(c){if(c.isMixedCollection){c.add(this.name,a)}else if(c.isCollection){c.add(a)}else {c.push(a)}b=b||a}else if(f){if(b){b+=f}b+=a}else {b=a;break}}}return b||!0},doCalculate:function(b,a){return a?this.calculate(a.data):b},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 a=this.mapping;return !!(a||a===0)},getPersist:function(){return this.persist},getSortType:function(){return this.sortType},getSummary:function(){var b=this,c=b.doneSummary,a=b.summary;if(!c){b.doneSummary=!0;if(a){b.summary=a=Ext.Factory.dataSummary(a)}}return a||null},getType:function(){return 'auto'},privates:{getValidators:function(){var a=this,b=a._validators;if(!b){a._validators=b=[];a.constructValidators(a.validators);a.constructValidators(a.modelValidators);a.constructValidators(a.instanceValidators)}return b}},deprecated:{5.1:{methods:{getSortDir:function(){return this.sortDir}}}}});Ext.define('Ext.data.field.Boolean',{extend:Ext.data.field.Field,alias:['data.field.bool','data.field.boolean'],isBooleanField:!0,trueRe:/^\s*(?:true|yes|on|1)\s*$/i,convert:function(a){if(typeof a==='boolean'){return a}if(this.allowNull&&(a===undefined||a===null||a==='')){return null}return this.trueRe.test(String(a))},getType:function(){return 'bool'}});Ext.define('Ext.data.field.Date',{extend:Ext.data.field.Field,alias:'data.field.date',sortType:'asDate',isDateField:!0,dateFormat:null,dateReadFormat:null,dateWriteFormat:null,compare:function(d,e){var b=d instanceof Date,c=e instanceof Date,a;if(c&&b){a=d.getTime()-e.getTime();if(a===0){a=0}else {a=a<0?-1:1}}else if(b===c){a=0}else {a=b?1:-1}return a},convert:function(a){if(!a){return null}if(a instanceof Date){return a}var c=this.dateReadFormat||this.dateFormat,b;if(c){return Ext.Date.parse(a,c,this.useStrict)}b=Date.parse(a);return b?new Date(b):null},serialize:function(b){var c=null,a;if(Ext.isDate(b)){a=this.getDateWriteFormat();c=a?Ext.Date.format(b,a):b}return c},getDateFormat:function(){return this.dateFormat},getDateReadFormat:function(){return this.dateReadFormat},getDateWriteFormat:function(){var a=this;if(a.hasOwnProperty('dateWriteFormat')){return a.dateWriteFormat}if(a.hasOwnProperty('dateFormat')){return a.dateFormat}return a.dateWriteFormat||a.dateFormat||'timestamp'},getType:function(){return 'date'}});Ext.define('Ext.data.field.Integer',{extend:Ext.data.field.Field,alias:['data.field.int','data.field.integer'],isNumeric:!0,isIntegerField:!0,numericType:'int',convert:function(b){if(typeof b==='number'){return this.getNumber(b)}var d=b==null||b==='',c=this.allowNull,a;if(d){a=c?null:0}else {a=this.parse(b);if(c&&isNaN(a)){a=null}}return a},getNumber:function(a){return parseInt(a,10)},getType:function(){return this.numericType},parse:function(a){return parseInt(String(a).replace(this.stripRe,''),10)},sortType:function(a){if(a==null){a=Infinity}return a}});Ext.define('Ext.data.field.Number',{extend:Ext.data.field.Integer,alias:['data.field.float','data.field.number'],isIntegerField:!1,isNumberField:!0,numericType:'float',getNumber:Ext.identityFn,parse:function(a){return parseFloat(String(a).replace(this.stripRe,''))}});Ext.define('Ext.data.field.String',{extend:Ext.data.field.Field,alias:'data.field.string',sortType:'asUCString',isStringField:!0,convert:function(a){var b=this.allowNull?null:'';return (a===undefined||a===null)?b:String(a)},getType:function(){return 'string'}});Ext.define('Ext.data.identifier.Generator',{'abstract':!0,mixins:[Ext.mixin.Factoryable],alias:'data.identifier.default',factoryConfig:{defaultType:'sequential'},isGenerator:!0,config:{id:null},constructor:function(c){var b=this,a;b.initConfig(c);a=b.getId();if(a){Ext.data.identifier.Generator.all[a]=b}},privates:{clone:function(b){var a=this.getInitialConfig();a=b?Ext.apply({},b,a):a;return new this.self(a)},statics:{all:{}}}},function(){var b=this,a=Ext.Factory,c=a.dataIdentifier;a.dataIdentifier=function(a){var d=Ext.isString(a)?a:(a&&a.id),e=d&&b.all[d];return e||c(a)}});Ext.define('Ext.data.identifier.Sequential',{extend:Ext.data.identifier.Generator,alias:'data.identifier.sequential',config:{increment:1,prefix:null,seed:1},generate:function(){var a=this,c=a._seed,b=a._prefix;a._seed+=a._increment;return (b!==null)?b+c:c}});Ext.define('Ext.data.Model',{alternateClassName:'Ext.data.Record',isEntity:!0,isModel:!0,validIdRe:null,erasing:!1,loadOperation:null,loadCount:0,observableType:'record',crudState:'R',crudStateWas:null,constructor:function(b,g,p){var a=this,c=a.self,f=c.identifier,n=Ext.data.Model,k=n.identifier,l=a.idField.name,j,d,h,m,o,e,i;a.data=a.data=b||(b={});a.internalId=m=k.generate();if((j=b) instanceof Array){a.data=b={};i=a.getFields();o=Math.min(i.length,j.length);for(e=0;e<o;++e){b[i[e].name]=j[e]}}if(!(h=c.initializeFn)){c.initializeFn=h=n.makeInitializeFn(c)}if(!h.$nullFn){c.initializeFn(a)}if(!a.isSummaryModel){if(!(a.id=d=b[l])&&d!==0){if(g){f=g.getIdentifier(c);d=f.generate()}else if(k===f){d=m}else {d=f.generate()}b[l]=a.id=d;a.phantom=!0;a.crudState='C'}if(g&&!p){g.add(a)}if(a.phantom){a.crudStateWas='C'}}if(a.init&&Ext.isFunction(a.init)){a.init()}},editing:!1,dirty:!1,session:null,dropped:!1,erased:!1,clientIdProperty:null,evented:!1,phantom:!1,idProperty:'id',manyToMany:null,identifier:null,previousValues:undefined,proxy:undefined,schema:'default',summary:null,versionProperty:null,generation:1,validationSeparator:null,convertOnSet:!0,beginEdit:function(){var a=this,c=a.modified,b=a.previousValues;if(!a.editing){a.editing=!0;a.editMemento={dirty:a.dirty,data:Ext.apply({},a.data),generation:a.generation,modified:c&&Ext.apply({},c),previousValues:b&&Ext.apply({},b)}}},calculateSummary:function(f){var g=this.getFields(),j=g.length,i=f.length,c,a,d,h,e,b;for(c=0;c<j;++c){b=g[c];d=b.getSummary();if(d){a=a||{};e=b.name;h=b.summaryField||e;a[e]=d.calculate(f,h,'data',0,i)}}if(a){this.set(a,this._commitOptions)}},cancelEdit:function(){var a=this,c=a.editMemento,b=a.validation;if(c){a.editing=!1;Ext.apply(a,c);a.editMemento=null;if(b&&b.syncGeneration!==a.generation){b.syncGeneration=0}}},endEdit:function(d,b){var a=this,c=a.editMemento;if(c){a.editing=!1;a.editMemento=null;a.previousValues=c.previousValues;if(!d){if(!b){b=a.getModifiedFieldNames(c.data)}if(a.dirty||(b&&b.length)){a.callJoined('afterEdit',[b])}}}},getField:function(a){return this.self.getField(a)},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(b,a){this.set(this.idProperty,b,a)},getPrevious:function(b){var a=this.previousValues;return a&&a[b]},isModified:function(b){var a=this.modified;return !!(a&&a.hasOwnProperty(b))},getModified:function(a){var b;if(this.isModified(a)){b=this.modified[a]}return b},get:function(a){return this.data[a]},_singleProp:{},_rejectOptions:{convert:!1,silent:!0},set:function(i,A,K){var a=this,G=a.self,v=a.data,f=a.modified,B=a.previousValues,u=a.session,n=Ext.isString(i),e=(n?K:A),y=e?e.convert!==!1:a.convertOnSet,J=a.fieldsMap,E=e&&e.silent,D=e&&e.commit,I=!(e&&e.refs===!1)&&u,F=!(e&&e.dirty===!1&&!D),k=null,d=0,r=a.associations,j,b,z,H,c,q,p,w,s,x,t,o,l,m,h,g,C;if(n){g=a._singleProp;g[i]=A}else {g=i}if(!(l=G.rankedFields)){l=G.rankFields()}t=l.length;do{for(c in g){h=g[c];j=v[c];p=a;b=J[c];if(b){if(y&&b.convert){h=b.convert(h,a)}p=b;m=b.reference}else {m=null}if(p.isEqual(j,h)){continue}v[c]=h;(k||(k=[])).push(c);(B||(a.previousValues=B={}))[c]=j;if(m&&m.cls){if(I){u.updateReference(a,b,h,j)}m.onValueChange(a,u,h,j)}x=(s=b&&b.dependents)&&s.length;while(x-->0){(w=s[x]).dirty=!0;d=d?Math.min(d,w.rank):w.rank}if(!b||b.persist){if(f&&f.hasOwnProperty(c)){if(!F||p.isEqual(f[c],h)){delete f[c];a.dirty=-1}}else if(F){if(!f){a.modified=f={}}a.dirty=!0;f[c]=j}}if(c===a.idField.name){z=!0;q=j;o=h}}if(!d){break}b=l[d-1];b.dirty=!1;if(n){delete g[i]}else {g=a._singleProp;n=!0}i=b.name;g[i]=v[i];y=!0;for(;d<t;++d){if(l[d].dirty){break}}if(d<t){++d}else {d=0}}while(1);if(a.dirty<0){a.dirty=!1;for(H in f){if(f.hasOwnProperty(H)){a.dirty=!0;break}}}if(n){delete g[i]}++a.generation;if(z){a.id=o;a.onIdChanged(o,q);a.callJoined('onIdChanged',[q,o]);if(r){for(C in r){r[C].onIdChanged(a,q,o)}}}if(D){a.commit(E,k)}else if(!E&&!a.editing&&k){a.callJoined('afterEdit',[k])}return k},reject:function(c){var a=this,b=a.modified;if(b){a.set(b,a._rejectOptions)}a.dropped=!1;a.clearState();if(!c){a.callJoined('afterReject')}},commit:function(f,e){var a=this,b=a.versionProperty,d=a.data,c;a.clearState();if(b&&!a.phantom&&!isNaN(d[b])){++d[b]}a.phantom=!1;if(a.dropped){a.erased=c=!0}if(!f){if(c){a.callJoined('afterErase')}else {a.callJoined('afterCommit',[e])}}},clearState:function(){var a=this;a.dirty=a.editing=!1;a.editMemento=a.modified=null},drop:function(d){var a=this,b=a.associations,e=a.session,c;if(a.erased||a.dropped){return}a.dropped=!0;if(b&&d!==!1){for(c in b){b[c].onDrop(a,e)}}a.callJoined('afterDrop');if(a.phantom){a.setErased()}},join:function(b){var c=this,a=c.joined;if(!a){a=c.joined=[b]}else if(!a.length){a[0]=b}else {Ext.Array.include(a,b)}if(b.isStore&&!c.store){c.store=b}},unjoin:function(b){var c=this,a=c.joined,e=a&&a.length,d=c.store,f;if(b===c.session){c.session=null}else {if(e===1&&a[0]===b){a.length=0}else if(e){Ext.Array.remove(a,b)}if(d===b){d=null;if(a){for(f=0,e=a.length;f<e;++f){b=a[f];if(b.isStore){d=b;break}}}c.store=d}}},clone:function(d){var a=this,c=a.modified,b=a.copy(a.id,d);if(c){b.modified=Ext.apply({},c)}b.dirty=a.dirty;b.dropped=a.dropped;b.phantom=a.phantom;return b},copy:function(a,e){var c=this,b=Ext.apply({},c.data),d=c.idProperty,f=c.self;if(a||a===0){b[d]=a}else if(a===null){delete b[d]}return new f(b,e)},getProxy:function(){return this.self.getProxy()},getValidation:function(c){var b=this,a=b.validation;if(!a){b.validation=a=new Ext.data.Validation();a.attach(b)}if(c===!0||(c!==!1&&a.syncGeneration!==b.generation)){a.refresh(c)}return a},validate:function(){return new Ext.data.ErrorCollection().init(this)},isValid:function(){return this.getValidation().isValid()},toUrl:function(){var a=this.$className.split('.'),b=a[a.length-1].toLowerCase();return b+'/'+this.getId()},erase:function(b){var a=this;a.erasing=!0;a.drop();a.erasing=!1;return a.save(b)},setErased:function(){this.erased=!0;this.callJoined('afterErase')},getChanges:function(){return this.getData(this._getChangesOptions)},getCriticalFields:function(){var a=this.self,b=a.criticalFields;if(!b){a.rankFields();b=a.criticalFields}return b},getAssociatedData:function(g,a){var c=this,n=c.associations,i,j,b,m,f,o,e,p,l,d,h,k;g=g||{};c.$gathering=1;if(a){a=Ext.apply({},a)}for(l in n){p=n[l];b=p.getAssociatedItem(c);if(!b||b.$gathering){continue}if(b.isStore){b.$gathering=1;m=b.getData().items;o=m.length;f=[];for(j=0;j<o;++j){e=m[j];i=!e.$gathering;e.$gathering=1;if(a){k=a.associated;if(k===undefined){a.associated=i;h=!0}else if(!i){a.associated=!1;h=!0}d=a}else {d=i?c._getAssociatedOptions:c._getNotAssociatedOptions}f.push(e.getData(d));if(h){a.associated=k;h=!1}delete e.$gathering}delete b.$gathering}else {d=a||c._getAssociatedOptions;if(a&&a.associated===undefined){d.associated=!0}f=b.getData(d)}g[l]=f}delete c.$gathering;return g},getData:function(n){var a=this,f={},e=(n===!0)?a._getAssociatedOptions:(n||f),h=a.data,j=e.associated,l=e.changes,p=l&&e.critical,m=l?a.modified:h,o=a.fieldsMap,q=e.persist,k=e.serialize,g,b,i,d,c;if(m){for(d in m){c=h[d];b=o[d];if(b){if(q&&!b.persist){continue}if(k&&b.serialize){c=b.serialize(c,a)}}f[d]=c}}if(p){g=a.self.criticalFields||a.getCriticalFields();for(i=g.length;i-->0;){d=(b=g[i]).name;if(!(d in f)){c=h[d];if(k&&b.serialize){c=b.serialize(c,a)}f[d]=c}}}if(j){if(typeof j==='object'){a.getNestedData(e,f)}else {a.getAssociatedData(f,e)}}return f},getNestedData:function(a,d){var m=this,n=m.associations,g=a.associated,f,e,h,b,j,k,l,c,i;d=d||{};for(c in g){l=n[c];i=g[c];if(i===!0){delete a.associated}else {a.associated=i}e=l.getAssociatedItem(m);if(e.isStore){h=e.getData().items;j=h.length;b=[];for(f=0;f<j;++f){k=h[f];b.push(k.getData(a))}}else {b=e.getData(a)}d[c]=b}a.associated=g;return d},getTransientFields:function(){var a=this.self,b=a.transientFields;if(!b){a.rankFields();b=a.transientFields}return b},isLoading:function(){return !!this.loadOperation},abort:function(){var a=this.loadOperation;if(a){a.abort()}},load:function(a){a=Ext.apply({},a);var b=this,d=a.scope||b,g=b.getProxy(),f=a.callback,c=b.loadOperation,h=b.getId(),e;if(c){e=c.extraCalls;if(!e){e=c.extraCalls=[]}e.push(a);return c}a.id=h;a.recordCreator=function(e,f,c){var d=b.session;if(c){c.recordCreator=d?d.recordCreator:null}b.set(e,b._commitOptions);return b};a.internalCallback=function(e){var h=e.wasSuccessful()&&e.getRecords().length>0,l=b.loadOperation,i=l.extraCalls,c=[b,e],j=[b,e,h],g,k;b.loadOperation=null;++b.loadCount;if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(f,d,j);if(i){for(g=0,k=i.length;g<k;++g){a=i[g];if(h){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}Ext.callback(a.callback,d,j)}}b.callJoined('afterLoad')};delete a.callback;b.loadOperation=c=g.createOperation('read',a);c.execute();return c},mergeData:function(a){if(!this.dirty){this.set(a,this._commitOptions)}},save:function(a){a=Ext.apply({},a);var b=this,f=b.phantom,e=b.dropped,h=e?'destroy':(f?'create':'update'),d=a.scope||b,g=a.callback,i=b.getProxy(),c;a.records=[b];a.internalCallback=function(e){var c=[b,e],f=e.wasSuccessful();if(f){Ext.callback(a.success,d,c)}else {Ext.callback(a.failure,d,c)}c.push(f);Ext.callback(g,d,c)};delete a.callback;c=i.createOperation(h,a);if(e&&f){c.setResultSet(Ext.data.reader.Reader.prototype.nullResultSet);b.setErased();c.setSuccessful(!0)}else {c.execute()}return c},statics:{defaultProxy:'memory'},inheritableStatics:{_associatedReadOptions:{recordsOnly:!0,asRoot:!0},loadData:function(b,a){var c;if(b){c=this.getProxy().getReader().readRecords([b],a?{recordCreator:a.recordCreator}:undefined,this._associatedReadOptions)[0]}else {c=new this(b,a)}return c},getSummaryModel:function(){var b=this,c=b.prototype,a=b.summaryModel;if(!a){a=Ext.define(null,{extend:b,fields:c.summaryFields||[],isSummaryModel:!0});a.isSummaryModel=!0;b.summaryModel=c.summaryModel=a}return a||null},addFields:function(a){this.replaceFields(a)},replaceFields:function(k,i){var c=this,n=c.prototype,o=Ext.data.field.Field,d=c.fields,j=c.fieldsMap,f=c.fieldOrdinals,e,a,h,g,b,m,l;if(i===!0){d.length=0;c.fieldsMap=j={};c.fieldOrdinals=f={};l=!0}else if(i){for(a=i.length;a-->0;){b=i[a];if(b in f){delete f[b];delete j[b]}}for(a=0,g=d.length;a<g;++a){b=(e=d[a]).name;if(b in f){f[b]=a}else {d.splice(a,1);--a;--g}}}for(a=0,g=k?k.length:0;a<g;a++){b=(e=k[a]).name;if(!(b in f)){f[b]=m=d.length;d.push(e=o.create(e));j[b]=e;e.ordinal=m;e.definedBy=e.owner=this}}if(!l){for(a=0,g=d.length;a<g;++a){d[a].rank=null}}c.idField=n.idField=h=j[n.idProperty];if(h){h.allowNull=h.critical=h.identifier=!0;h.defaultValue=null}c.initializeFn=c.rankedFields=c.transientFields=c.criticalFields=null},removeFields:function(a){this.replaceFields(null,a)},getIdFromData:function(b){var c=this,a=c.idField,d=a.calculated?(new c(b)).id:b[a.name];return d},createWithId:function(c,b,e){var a=b,d=this;if(c||c===0){a={};if(b){Ext.apply(a,b)}a[d.idField.name]=c}return new d(a,e)},getFields:function(){return this.fields},getFieldsMap:function(){return this.fieldsMap},getField:function(a){return this.fieldsMap[a]||null},getProxy:function(){var b=this,a=b.proxy,d=b.defaultProxy,c;if(!a){a=b.proxyConfig;if(!a&&d){a=d}if(!a||!a.isProxy){if(typeof a==='string'){a={type:a}}c=Ext.merge(b.schema.constructProxy(b),a);if(a&&a.type){a=a.schema===!1?a:c}else {a=c}}a=b.setProxy(a)}return a},setProxy:function(a){var b=this,c;if(a){if(!a.isProxy){a=Ext.Factory.proxy(a)}else {c=a.getModel();if(c&&c!==b){a=a.clone()}}a.setModel(b)}return (b.prototype.proxy=b.proxy=a)},load:function(d,e,b){var c={},a;if(b){a=b.peekRecord(this,d)}if(!a){c[this.prototype.idProperty]=d;a=new this(c,b)}a.load(e);return a}},deprecated:{5:{methods:{hasId:null,markDirty:null,setDirty:null,eachStore:function(c,d){var f=this,b=f.stores,e=b.length,a;for(a=0;a<e;++a){c.call(d,b[a])}},join:function(b){var a=this,d=a.stores,c=a.joined;if(!c){c=a.joined=[b]}else {c.push(b)}if(b.isStore){a.store=a.store||b;if(!d){d=a.stores=[]}d.push(b)}},unjoin:function(b){var c=this,d=c.stores,a=c.joined;if(a.length===1){a.length=0}else {Ext.Array.remove(a,b)}if(b.isStore){Ext.Array.remove(d,b);c.store=d[0]||null}}},properties:{persistenceProperty:null},inheritableStatics:{methods:{setFields:null}}}},privates:{_commitOptions:{commit:!0},_getChangesOptions:{changes:!0},_getAssociatedOptions:{associated:!0},_getNotAssociatedOptions:{associated:!1},_metaProperties:{dirty:'isDirty',phantom:'isPhantom',valid:'isValid'},copyFrom:function(c){var a=this,i=a.fields,k=i.length,g=[],l=a.idProperty,f=0,j,e,h,b,d;if(c){e=a.data;h=c.data;for(;f<k;f++){j=i[f];b=j.name;if(b!==l){d=h[b];if(d!==undefined&&!a.isEqual(e[b],d)){e[b]=d;g.push(b)}}}if(a.phantom&&!c.phantom){a.beginEdit();a.setId(c.getId());a.endEdit(!0);a.commit(!0)}}return g},callJoined:function(h,b){var a=this,e=a.joined,d=a.session,i=a.dropped?'D':(a.phantom?'C':(a.dirty?'U':'R')),g,j,c,f;a.crudState=i;if(e||d){if(b){b.unshift(a)}else {b=[a]}c=d&&d[h];if(c){c.apply(d,b)}if(e){for(g=0,j=e.length;g<j;++g){f=e[g];if(f&&(c=f[h])){c.apply(f,b)}}}}a.crudStateWas=i},hasPendingLoad:function(){return this.isLoading()},interpret:function(b){var c=this,a=c._metaProperties[b];if(!a){a=c.associations;a=a&&a[b]&&a[b].getterName}if(a){return c[a]()}return c.data[b]},isDirty:function(){return this.dirty},isPhantom:function(){return this.phantom},onAssociatedRecordSet:function(a,b){this.callJoined('afterAssociatedRecordSet',[a,b])},onIdChanged:Ext.privateFn,setSession:function(a){this.session=a;if(a){a.add(this)}},getModifiedFieldNames:function(f){var c=this,b=c.data,d=[],e=f||c.editMemento.data,a;for(a in b){if(b.hasOwnProperty(a)){if(!c.isEqual(b[a],e[a],a)){d.push(a)}}}return d},isEqual:function(b,c,a){var d;if(a){d=a.isField?a:this.fieldsMap[a];if(d){return d.isEqual(b,c)}}if(b instanceof Date&&c instanceof Date){return b.getTime()===c.getTime()}return b===c},statics:{EDIT:'edit',REJECT:'reject',COMMIT:'commit',rankFields:function(){var d=this,g=d.prototype,h=d.fields,f=h.length,c=[],j=[],i=[],e,a,b;d.rankedFields=g.rankedFields=c;d.criticalFields=g.criticalFields=j;d.transientFields=g.transientFields=i;for(b=0;b<f;++b){a=h[b];if(a.critical){j.push(a)}if(!a.persist){i.push(a)}if(a.evil){(e||(e=[])).push(a)}else if(!a.depends){c.push(a);a.rank=c.length}}for(b=0;b<f;++b){if(!(a=h[b]).rank&&!a.evil){d.topoAdd(a)}}if(e){for(b=0,f=e.length;b<f;++b){c.push(a=e[b]);a.rank=c.length}}return c},topoAdd:function(b){var d=this,e=b.depends,g=e?e.length:0,f=d.rankedFields,c,a;for(c=0;c<g;++c){a=d.fieldsMap[e[c]];(a.dependents||(a.dependents=[])).push(b);if(!a.rank){d.topoAdd(a)}}f.push(b);b.rank=f.length},initFields:function(u,g,k){var t=Ext.data.field.Field,q=u.fields,e=[],h={},f={},w=[],r=k.fields,p=u.versionProperty||k.versionProperty,m=g.idProperty,d,a,b,o,i,c,n,j,l,v,s;g.fields=k.fields=e;g.fieldOrdinals=k.fieldOrdinals=h;g.fieldsMap=k.fieldsMap=f;g.references=k.references=w;if(r){for(b=0,o=r.length;b<o;++b){e[b]=a=Ext.Object.chain(r[b]);a.dependents=null;a.owner=g;h[i=a.name]=b;f[i]=a;a.rank=null;if(a.generated){j=a;l=a.name}}}delete u.fields;if(q){for(b=0,o=q.length;b<o;++b){a=q[b];n=a.reference;if(n&&typeof n!=='string'){n=Ext.merge({},n)}a.$reference=n;a=t.create(q[b]);i=a.name;c=h[i];if(c===undefined){h[i]=c=e.length}f[i]=a;e[c]=a;a.definedBy=a.owner=g;a.ordinal=c;if(i===m){s=a}if(i===l){v=!0}}}d=f[m];if(!d){if(j&&j.generated){c=j.ordinal}else {c=e.length}delete f[l];delete h[l];d=new t(m);e[c]=d;h[m]=c;f[m]=d;d.definedBy=g;d.ordinal=c;d.generated=!0}else if(s&&!v&&j&&j.generated){Ext.Array.remove(e,j);delete f[l];delete h[l];f[m]=s;for(b=0,o=e.length;b<o;++b){a=e[b];e.ordinal=b;h[a.name]=b}}d.allowNull=d.critical=d.identifier=!0;d.defaultValue=null;g.idField=k.idField=d;if(p){a=f[p];if(!a){c=e.length;a=new t({name:p,type:'int'});e[c]=a;h[p]=c;f[p]=a;a.definedBy=g;a.ordinal=c;a.generated=!0}a.defaultValue=1;a.critical=!0}},initSummaries:function(k,m,j){var h=k.summary,g=j.summaryFields,b,c,d,a,l,e,f,i;if(g){b=[];c={};for(e=0,l=g.length;e<l;++e){a=g[e];b.push(a);b[a.name]=e}}if(h){delete k.summary;b=b||[];c=c||{};for(d in h){a=h[d];if(typeof a==='function'){a={summary:a}}f=c[d];a=Ext.apply({name:d},a);i=a.field;if(i){delete a.field;a.summaryField=i}if(f===undefined){f=b.length;c[d]=a}b[f]=a}}if(b){j.summaryFields=b}},initValidators:function(k,n,m){var i=m.validators,b,e,g,c,h,l,d,a,j,f;if(i){b={};for(e in i){b[e]=Ext.Array.clone(i[e])}}c=k.validators||k.validations;if(c){delete k.validators;b=b||{};if(Ext.isArray(c)){g={};for(h=0,l=c.length;h<l;++h){f=c[h];a=f.field;if(!g[a]){g[a]=[]}f=f.fn||f;g[a].push(f)}c=g}for(a in c){d=c[a];if(!Ext.isArray(d)){d=[d]}j=b[a];if(j){Ext.Array.push(j,d)}else {b[a]=d}}}if(b){for(a in b){e=n.getField(a);if(e){e.setModelValidators(b[a])}}}n.validators=m.validators=b},initAssociations:function(d,b,e){var f=b.associations,g=b.belongsTo,h=b.hasMany,i=b.hasOne,l=b.manyToMany,a,c,k,j;delete b.associations;delete b.belongsTo;delete b.hasMany;delete b.hasOne;delete b.manyToMany;if(l){d.addMatrices(e,l)}if(f){f=Ext.isArray(f)?f:[f];for(a=0,c=f.length;a<c;++a){k=f[a];j=Ext.apply({},k);delete j.type;switch(k.type){case 'belongsTo':d.addBelongsTo(e,j);break;case 'hasMany':d.addHasMany(e,j);break;case 'hasOne':d.addHasOne(e,j);break;}}}if(g){g=Ext.isArray(g)?g:[g];for(a=0,c=g.length;a<c;++a){d.addBelongsTo(e,g[a])}}if(h){h=Ext.isArray(h)?h:[h];for(a=0,c=h.length;a<c;++a){d.addHasMany(e,h[a])}}if(i){i=Ext.isArray(i)?i:[i];for(a=0,c=i.length;a<c;++a){d.addHasOne(e,i[a])}}d.afterKeylessAssociations(e)},initIdentifier:function(d,e,f){var a=d.identifier||d.idgen,b=f.identifier||e.schema._defaultIdentifier,c;if(a){delete d.identifier;delete d.idgen;a=Ext.Factory.dataIdentifier(a)}else if(b){if(b.clone&&!b.getId()){a=b.clone()}else if(b.isGenerator){a=b}else {a=Ext.Factory.dataIdentifier(b)}}e.identifier=f.identifier=a;if(!a){c=e.entityName;if(!c){c=Ext.id(null,'extModel')}e.identifier=Ext.Factory.dataIdentifier({type:'sequential',prefix:c+'-'})}},findValidator:function(f,g,d){var h=d.type||d,b=f[g],e,a,c;if(b){for(a=0,e=b.length;a<e;++a){c=b[a];if(c.type===h){return c}}}return null},makeInitializeFn:function(o){var a=['var '],g=['\nreturn function (e) {\n    var data = e.data, v;\n'],n=0,i,j,h,b,l,f,e,d,k,c,m;if(!(e=o.rankedFields)){e=o.rankFields()}for(c=0,m=e.length;c<m;++c){f=e[c];d='f'+c;h=f.convert;if(c){a.push(',  \n    ')}a.push(d,' = $fields['+c+']');if((k=(f.defaultValue!==undefined))||h){b='data["'+f.name+'"]';++n;i=j='';if(f.cloneDefaultValue){i='Ext.clone(';j=')'}g.push('\n');if(h&&k){g.push('    v = ',b,';\n'+'    if (v !== undefined) {\n'+'        v = ',d,'.convert(v, e);\n'+'    }\n'+'    if (v === undefined) {\n'+'        v = ',i,d,'.defaultValue',j,';\n'+'    }\n'+'    ',b,' = v;')}else if(h){g.push('    v = ',d,'.convert(',b,',e);\n'+'    if (v !== undefined) {\n'+'        ',b,' = v;\n'+'    }\n')}else if(k){g.push('    if (',b,' === undefined) {\n'+'        ',b,' = ',i,d,'.defaultValue',j,';\n'+'    }\n')}}}if(!n){return Ext.emptyFn}a.push(';\n');a.push.apply(a,g);a.push('}');a=a.join('');l=new Function('$fields','Ext',a);return l(e,Ext)}}}},function(){var a=this,b=a.prototype,c=Ext.data.schema.Schema,d;a.proxyConfig=b.proxy;delete b.proxy;a.fields=[];a.fieldsMap=b.fieldsMap={};a.schema=b.schema=c.get(b.schema);b.idField=new Ext.data.field.Field(b.idProperty);a.identifier=new Ext.data.identifier.Sequential();a.onExtended(function(b,e){var f=b.prototype,k=e.schema,j=f.superclass.self,g,h,i;b.idProperty=e.idProperty||f.idProperty;if(k){delete e.schema;g=c.get(k)}else if(!(g=f.schema)){g=d||(d=c.get('default'))}b.rankFields=a.rankFields;b.topoAdd=a.topoAdd;f.schema=b.schema=g;if(!(h=e.entityName)){f.entityName=h=g.getEntityName(b)}b.entityName=h;b.fieldExtractors={};a.initIdentifier(e,b,f);a.initFields(e,b,f);a.initValidators(e,b,f);if(!e.isSummaryModel){a.initSummaries(e,b,f)}b.fields.items=b.fields;if(h){g.addEntity(b);a.initAssociations(g,e,b)}i=e.proxy;if(i){delete e.proxy}else if(j!==a){i=j.proxyConfig||j.proxy}b.proxyConfig=i})});Ext.define('Ext.data.ResultSet',{isResultSet:!0,$configPrefixed:!1,config:{loaded:!0,count:null,total:null,remoteTotal:null,success:!1,records:null,message:null,metadata:null,groupData:null,summaryData:null},constructor:function(a){this.initConfig(a)},getCount:function(){var b=this.callParent(),a;if(!b){a=this.getRecords();if(a){b=a.length}}return b}});Ext.define('Ext.data.reader.Reader',{alternateClassName:['Ext.data.Reader','Ext.data.DataReader'],mixins:[Ext.mixin.Observable,Ext.mixin.Factoryable],alias:'reader.base',factoryConfig:{defaultType:null},config:{groupRootProperty:'',implicitIncludes:!0,keepRawData:null,messageProperty:'',model:null,proxy:null,readRecordsOnFailure:!0,rootProperty:'',successProperty:'success',summaryRootProperty:'',totalProperty:'total',transform:null,typeProperty:''},isReader:!0,constructor:function(a){var b=this;if(a&&a.hasOwnProperty('root')){a=Ext.apply({},a);a.rootProperty=a.root;delete a.root}b.duringInit=1;b.mixins.observable.constructor.call(b,a);--b.duringInit;b.buildExtractors()},forceBuildExtractors:function(){if(!this.duringInit){this.buildExtractors(!0)}},updateGroupRootProperty:function(){this.forceBuildExtractors()},updateMessageProperty:function(){this.forceBuildExtractors()},applyModel:function(a){return Ext.data.schema.Schema.lookupEntity(a)},updateSuccessProperty:function(){this.forceBuildExtractors()},updateTotalProperty:function(){this.forceBuildExtractors()},applyTransform:function(a){if(a){if(Ext.isFunction(a)){a={fn:a}}else if(a.charAt){a={fn:this[a]}}return a.fn.bind(a.scope||this)}return a},read:function(a,e){var d,b,c;if(a){c=a.responseText;if(a.responseType||c){b=this.getResponseData(a);if(b&&b.__$isError){return new Ext.data.ResultSet({total:0,count:0,records:[],success:!1,message:b.msg})}else {d=this.readRecords(b,e)}}else if(c!==''){d=this.readRecords(a,e)}}return d||this.nullResultSet},getNullResultSet:function(){return this.nullResultSet},createReadError:function(a){return {__$isError:!0,msg:a}},readRecords:function(b,q,h){var a=this,r=h&&h.recordsOnly,s=h&&h.asRoot,o=null,f=null,j,i,g,c,n,m,d,p,l,k,e;k=a.getMeta?a.getMeta(b):b.metaData;if(k){a.onMetaChange(k)}l=a.getTransform();if(l){b=l(b)}a.buildExtractors();if(a.getKeepRawData()){a.rawData=b}if(a.hasListeners.rawdata){a.fireEventArgs('rawdata',[b])}b=a.getData(b);j=!0;i=0;g=[];if(a.getSuccessProperty()){d=a.getSuccess(b);if(d===!1||d==='false'){j=!1}}if(a.getMessageProperty()){p=a.getMessage(b)}if(j||a.getReadRecordsOnFailure()){c=(s||Ext.isArray(b))?b:a.getRoot(b);if(c){m=c.length}if(a.getTotalProperty()){d=parseInt(a.getTotal(b),10);if(!isNaN(d)){n=m=d}}if(c){g=a.extractData(c,q);i=g.length}if(a.getGroupRootProperty()){c=a.getGroupRoot(b);if(c){e={includes:!1,model:a.getModel().getSummaryModel()};o=a.extractData(c,e)||null}}if(a.getSummaryRootProperty()){c=a.getSummaryRoot(b);if(c){e=e||{includes:!1,model:a.getModel().getSummaryModel()};f=a.extractData(c,e)||null;if(f){f=f[0]}}}}return r?g:new Ext.data.ResultSet({total:m||i,remoteTotal:n,metadata:k,count:i,records:g,success:j,message:p,groupData:o,summaryData:f})},extractData:function(f,b){var c=this,h=b&&b.model?Ext.data.schema.Schema.lookupEntity(b.model):c.getModel(),k=h.schema,o=b&&'includes' in b?b.includes:k.hasAssociations(h)&&c.getImplicitIncludes(),n=c.getFieldExtractorInfo(h),i=f.length,m=new Array(i),l=c.getTypeProperty(),j,e,d,a,g;if(!i&&Ext.isObject(f)){f=[f];i=1}for(g=0;g<i;g++){a=f[g];if(!a.isModel){e=a;if(l&&(d=c.getChildType(k,e,l))){j=d.getProxy().getReader();a=j.extractRecord(e,b,d,k.hasAssociations(d)&&j.getImplicitIncludes(),j.getFieldExtractorInfo(d))}else {a=c.extractRecord(e,b,h,o,n)}if(a.isModel&&a.isNode){a.raw=e}}if(a.onLoad){a.onLoad()}m[g]=a}return m},getChildType:function(d,c,a){var b;switch(typeof a){case 'string':return d.getEntity(c[a]);case 'object':b=a.namespace;return d.getEntity((b?b+'.':'')+c[a.name]);case 'function':return d.getEntity(a(c));}},extractRecordData:function(d,a){var b=a&&a.model?Ext.data.schema.Schema.lookupEntity(a.model):this.getModel(),c=this.getFieldExtractorInfo(b);return this.extractRecord(d,a,b,!1,c)},extractRecord:function(e,b,g,i,f){var a=this,h=(b&&b.recordCreator)||a.defaultRecordCreator,d,c;d=a.extractModelData(e,f);c=h.call(a,d,g||a.getModel(),b);if(i&&c.isModel){a.readAssociated(c,e,b)}return c},getFieldExtractorInfo:function(d){var b=d.fieldExtractors,c,a;if(!b){return}c=this.$className;a=b[c];if(a===undefined){b[c]=a=this.buildFieldExtractors(d)}return a},buildFieldExtractors:function(j){var f=j.getFields(),k=f.length,c=[],e=[],i=null,h=0,d,g,a,b;for(a=0;a<k;++a){d=f[a];b=this.createFieldAccessor(d);if(b){g=d.name;c.push('val = extractors['+h+'](raw, self); if (val !== undefined) { data[\''+g+'\'] = val; }');e.push(b);++h}}if(c.length){i={extractors:e,fn:new Function('raw','data','extractors','self','var val;'+c.join('\n'))}}return i},defaultRecordCreator:function(b,a){return new a(b)},defaultRecordCreatorFromServer:function(c,b){var a=new b(c);a.phantom=!1;return a},getModelData:function(a){return {}},extractModelData:function(c,a){var b=this.getModelData(c),d;if(a){d=a.fn;d(c,b,a.extractors,this)}return b},readAssociated:function(d,f,e){var a=d.associations,c,b;for(c in a){if(a.hasOwnProperty(c)){b=a[c];if(b.cls){b.read(d,f,this,e)}}}},getData:Ext.identityFn,getRoot:Ext.identityFn,getResponseData:function(a){},onMetaChange:function(a){var b=this,g=a.fields,e,d,c,f;b.metaData=a;if(a.root){b.setRootProperty(a.root)}if(a.totalProperty){b.setTotalProperty(a.totalProperty)}if(a.successProperty){b.setSuccessProperty(a.successProperty)}if(a.messageProperty){b.setMessageProperty(a.messageProperty)}c=a.clientIdProperty;if(g){d=Ext.define(null,{extend:'Ext.data.Model',fields:g,clientIdProperty:c});b.setModel(d);f=b.getProxy();if(f){f.setModel(d)}}else if(c){e=b.getModel();if(e){e.self.prototype.clientIdProperty=c}}},buildExtractors:function(e){var a=this,d,c,b;if(e||!a.hasExtractors){d=a.getTotalProperty();c=a.getSuccessProperty();b=a.getMessageProperty();if(d){a.getTotal=a.getAccessor(d)}if(c){a.getSuccess=a.getAccessor(c)}if(b){a.getMessage=a.getAccessor(b)}a.hasExtractors=!0;return !0}},getAccessor:function(c){var d=this,e=d.extractorCache,a,b;if(typeof c==='string'){b=d.getAccessorKey(c);if(b){a=e.get(b)}if(!a){a=d.createAccessor(c);if(b){e.add(b,a)}}}else {a=d.createAccessor(c)}return a},getAccessorKey:function(b){var a=this.$className;return a?a+b:''},createAccessor:Ext.emptyFn,createFieldAccessor:Ext.emptyFn,destroy:function(){var a=this;a.model=a.getTotal=a.getSuccess=a.getMessage=a.rawData=null;a.onMetaChange=null;a.transform=null;a.callParent()},privates:{copyFrom:function(b){var a=this;b.buildExtractors();a.getTotal=b.getTotal;a.getSuccess=b.getSuccess;a.getMessage=b.getMessage;++a.duringInit;a.setConfig(b.getConfig());--a.duringInit;a.hasExtractors=!0},getGroupRoot:Ext.privateFn,getSummaryRoot:Ext.privateFn}},function(b){var a=b.prototype;Ext.apply(a,{nullResultSet:new Ext.data.ResultSet({total:0,count:0,records:[],success:!0,message:''})});a.extractorCache=new Ext.util.LruCache()});Ext.define('Ext.data.writer.Writer',{alias:'writer.base',alternateClassName:['Ext.data.DataWriter','Ext.data.Writer'],mixins:[Ext.mixin.Factoryable],factoryConfig:{defaultType:null},isWriter:!0,config:{clientIdProperty:null,allDataOptions:{persist:!0},partialDataOptions:{changes:!0,critical:!0},writeAllFields:!1,dateFormat:null,nameProperty:'name',writeRecordId:!0,transform:null},constructor:function(a){this.initConfig(a)},applyTransform:function(a){if(a){if(Ext.isFunction(a)){a={fn:a}}return a.fn.bind(a.scope||this)}return a},write:function(d){var b=d.getOperation(),c=b.getRecords()||[],f=c.length,e=[],a;for(a=0;a<f;a++){e.push(this.getRecordData(c[a],b))}return this.writeRecords(d,e)},writeRecords:Ext.emptyFn,getRecordData:function(f,p){var d=this,j=d.getNameProperty(),l=j!=='name',e=f.self.idField,b=e?(e[j]||e.name):'id',a=f.id,q=d.getWriteAllFields(),c,k,n,m,i,o,g,h;if(e&&e.serialize){a=e.serialize(a)}if(!q&&p&&p.isDestroyOperation){c={};c[b]=a}else {k=d.getDateFormat();n=f.phantom;m=(n||q)?d.getAllDataOptions():d.getPartialDataOptions();i=n&&d.getClientIdProperty();o=f.getFieldsMap();m.serialize=!1;g=f.getData(m);c=l?{}:g;if(i){c[i]=a;delete g[b]}else if(!d.getWriteRecordId()){delete g[b]}for(b in g){a=g[b];if(!(h=o[b])){if(l){c[b]=a}}else {if(h.isDateField&&k&&Ext.isDate(a)){a=Ext.Date.format(a,k)}else if(h.serialize){a=h.serialize(a,f)}if(l){b=h[j]||b}c[b]=a}}}return c}});Ext.define('Ext.data.proxy.Proxy',{mixins:[Ext.mixin.Factoryable,Ext.mixin.Observable],$configPrefixed:!1,alias:'proxy.proxy',alternateClassName:['Ext.data.DataProxy','Ext.data.Proxy'],config:{batchOrder:'create,update,destroy',batchActions:!0,model:undefined,reader:{type:'json'},writer:{type:'json'}},isProxy:!0,isSynchronous:!1,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.pendingOperations={}},applyModel:function(a){return Ext.data.schema.Schema.lookupEntity(a)},updateModel:function(b){var a;if(b){a=this.getReader();if(a&&!a.getModel()){a.setModel(b)}}},applyReader:function(a){if(this.isSynchronous){a=a||{};a.keepRawData=!0}return Ext.Factory.reader(a)},updateReader:function(b){var c=this,a;if(b){a=c.getModel();if(!a){a=b.getModel();if(a){c.setModel(a)}}else {b.setModel(a)}if(b.responseType!=null){c.responseType=b.responseType}}},applyWriter:function(b){var a=this.getReader();b=Ext.Factory.writer(b);if(b.getRecord&&!b.getRecord()&&a&&a.getRecord){a=a.getRecord();if(a){b.setRecord(a)}}return b},abort:Ext.emptyFn,onMetaChange:function(a){this.fireEvent('metachange',this,a)},create:Ext.emptyFn,read:Ext.emptyFn,update:Ext.emptyFn,erase:Ext.emptyFn,batch:function(a,l){var c=this,m=c.getBatchActions(),b,d,h,j,e,f,g,k,i;if(a.operations===undefined){a={operations:a,listeners:l}}if(a.batch){if(Ext.isDefined(a.batch.runOperation)){b=Ext.applyIf(a.batch,{proxy:c,listeners:{}})}}else {a.batch={proxy:c,listeners:a.listeners||{}}}if(!b){b=new Ext.data.Batch(a.batch)}b.on('complete',Ext.bind(c.onBatchComplete,c,[a],0),null,{single:!0,priority:1000});b.$destroyOwner=a.$destroyOwner;h=c.getBatchOrder().split(',');j=h.length;for(f=0;f<j;f++){e=h[f];d=a.operations[e];if(d){if(m){b.add(c.createOperation(e,{records:d,params:a.params}))}else {k=d.length;for(g=0;g<k;g++){i=d[g];b.add(c.createOperation(e,{records:[i],params:a.params}))}}}}b.start();return b},onBatchComplete:function(a,b){var c=a.scope||this;if(b.hasException()){if(Ext.isFunction(a.failure)){Ext.callback(a.failure,c,[b,a])}}else if(Ext.isFunction(a.success)){Ext.callback(a.success,c,[b,a])}if(Ext.isFunction(a.callback)){Ext.callback(a.callback,c,[b,a])}if(!b.$destroyOwner){b.destroy()}},createOperation:function(b,c){var a=Ext.createByAlias('data.operation.'+b,c);a.setProxy(this);this.pendingOperations[a._internalId]=a;return a},completeOperation:function(a){delete this.pendingOperations[a._internalId]},clone:function(){return new this.self(this.getInitialConfig())},destroy:function(){var c=this.pendingOperations,b,a;for(b in c){a=c[b];if(a&&a.isRunning()){a.abort()}a.destroy()}this.pendingOperations=null;this.callParent()}});Ext.define('Ext.data.proxy.Client',{extend:Ext.data.proxy.Proxy,alternateClassName:'Ext.data.ClientProxy',isSynchronous:!0,clear:function(){}});Ext.define('Ext.data.proxy.Memory',{extend:Ext.data.proxy.Client,alias:'proxy.memory',alternateClassName:'Ext.data.MemoryProxy',isMemoryProxy:!0,config:{enablePaging:null,data:{$value:null,merge:function(a,b,d,c){return a?Ext.clone(a):a}},clearOnRead:null},finishOperation:function(b){var c=b.getRecords(),d=c.length,a;for(a=0;a<d;a++){c[a].dropped=!!b.isDestroyOperation;c[a].commit()}b.setSuccessful(!0)},create:function(a){this.finishOperation(a)},update:function(a){this.finishOperation(a)},erase:function(a){this.finishOperation(a)},read:function(b){var e=this,j=e.getReader(),a=j.read(e.getData(),{recordCreator:j.defaultRecordCreatorFromServer}),d=a.getRecords(),c=b.getSorters(),i=b.getGrouper(),g=b.getFilters(),f=b.getStart(),k=b.getLimit(),h;if(b.process(a,null,null,!1)!==!1){if(b.success&&e.getClearOnRead()){this.setData(null)}if(g&&g.length){a.setRecords(d=Ext.Array.filter(d,Ext.util.Filter.createFilterFn(g)));a.setTotal(d.length)}if(i){c=c?c.concat(i):c}if(c&&c.length){a.setRecords(d=Ext.Array.sort(d,Ext.util.Sortable.createComparator(c)))}if(e.getEnablePaging()&&f!==undefined&&k!==undefined){if(f>=a.getTotal()){a.setConfig({success:!1,records:[],total:0})}else {a.setRecords(Ext.Array.slice(d,f,f+k))}}b.setCompleted();h=a.getMetadata();if(h){e.onMetaChange(h)}}},clear:Ext.emptyFn});Ext.define('Ext.data.ProxyStore',{extend:Ext.data.AbstractStore,config:{model:undefined,fields:null,proxy:undefined,autoLoad:undefined,autoSync:!1,batchUpdateMode:'operation',sortOnLoad:!0,trackRemoved:!0,asynchronousLoad:undefined},onClassExtended:function(e,d,b){var c=d.model,a;if(typeof c==='string'){a=b.onBeforeCreated;b.onBeforeCreated=function(){var g=this,f=arguments;Ext.require(c,function(){a.apply(g,f)})}}},implicitModel:'Ext.data.Model',autoSyncSuspended:0,removed:null,constructor:function(b){var a=this;a.callParent(arguments);if(a.getAsynchronousLoad()===!1){a.flushLoad()}},doDestroy:function(){var a=this,b=a.getProxy();a.clearLoadTask();Ext.destroy(a.getData());a.data=null;a.setProxy(null);if(b.autoCreated){b.destroy()}a.setModel(null);a.callParent()},applyAsynchronousLoad:function(a){if(a==null){a=!this.loadsSynchronously()}return a},updateAutoLoad:function(a){this.getData();if(a){this.load(Ext.isObject(a)?a:undefined)}},getTotalCount:function(){return this.totalCount||0},applyFields:function(a){if(a){this.createImplicitModel(a)}},applyModel:function(a){if(a){a=Ext.data.schema.Schema.lookupEntity(a)}else if(!this.destroying){this.getFields();a=this.getModel()||this.createImplicitModel()}return a},applyProxy:function(a){var b=this.getModel();if(a!==null){if(a){if(a.isProxy){a.setModel(b)}else {if(Ext.isString(a)){a={type:a,model:b}}else if(!a.model){a=Ext.apply({model:b},a)}a=Ext.createByAlias('proxy.'+a.type,a);a.autoCreated=!0}}else if(b){a=b.getProxy();this.useModelProxy=!0}if(!a){a=Ext.createByAlias('proxy.memory');a.autoCreated=!0}}return a},applyState:function(b){var a=this;a.callParent([b]);if(a.getAutoLoad()||a.isLoaded()){a.load()}},updateProxy:function(b,a){this.proxyListeners=Ext.destroy(this.proxyListeners)},updateTrackRemoved:function(a){this.cleanRemoved();this.removed=a?[]:null},onMetaChange:function(b,a){this.fireEvent('metachange',this,a)},create:function(f,a){var b=this,e=b.getModel(),d=new e(f),c;a=Ext.apply({},a);if(!a.records){a.records=[d]}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('create',a);return c.execute()},read:function(){return this.load.apply(this,arguments)},update:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getUpdatedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('update',a);return c.execute()},onProxyWrite:function(a){var b=this,c=a.wasSuccessful(),d=a.getRecords();switch(a.getAction()){case 'create':b.onCreateRecords(d,a,c);break;case 'update':b.onUpdateRecords(d,a,c);break;case 'destroy':b.onDestroyRecords(d,a,c);break;}if(c){b.fireEvent('write',b,a);b.fireEvent('datachanged',b)}},onCreateRecords:Ext.emptyFn,onUpdateRecords:Ext.emptyFn,onDestroyRecords:function(c,b,a){if(a){this.cleanRemoved()}},erase:function(a){var b=this,c;a=Ext.apply({},a);if(!a.records){a.records=b.getRemovedRecords()}a.internalScope=b;a.internalCallback=b.onProxyWrite;c=b.createOperation('destroy',a);return c.execute()},onBatchOperationComplete:function(b,a){return this.onProxyWrite(a)},onBatchComplete:function(c,f){var a=this,d=c.operations,e=d.length,b;if(a.batchUpdateMode!=='operation'){a.suspendEvents();for(b=0;b<e;b++){a.onProxyWrite(d[b])}a.resumeEvents()}a.isSyncing=!1;if(c.$destroyOwner===a){c.destroy()}a.fireEvent('datachanged',a)},onBatchException:function(b,a){},filterNew:function(a){return a.phantom&&a.isValid()},getNewRecords:function(){return []},getUpdatedRecords:function(){return []},getModifiedRecords:function(){return [].concat(this.getNewRecords(),this.getUpdatedRecords())},filterUpdated:function(a){return a.dirty&&!a.phantom&&a.isValid()},getRemovedRecords:function(){var a=this.getRawRemovedRecords();return a?Ext.Array.clone(a):[]},sync:function(d){var a=this,b={},f=a.getNewRecords(),g=a.getUpdatedRecords(),e=a.getRemovedRecords(),c=!1;a.needsSync=!1;if(f.length>0){b.create=f;c=!0}if(g.length>0){b.update=g;c=!0}if(e.length>0){b.destroy=e;c=!0}if(c&&a.fireEvent('beforesync',b)!==!1){a.isSyncing=!0;d=d||{};a.proxy.batch(Ext.apply(d,{operations:b,listeners:a.getBatchListeners(),$destroyOwner:a}))}return a},getBatchListeners:function(){var a=this,b={scope:a,exception:a.onBatchException,complete:a.onBatchComplete};if(a.batchUpdateMode==='operation'){b.operationcomplete=a.onBatchOperationComplete}return b},save:function(){return this.sync.apply(this,arguments)},load:function(b){var a=this;if(typeof b==='function'){b={callback:b}}else {b=b?Ext.Object.chain(b):{}}a.pendingLoadOptions=b;if(a.getAsynchronousLoad()){if(!a.loadTimer){a.loadTimer=Ext.asap(a.flushLoad,a)}}else {a.flushLoad()}return a},flushLoad:function(){var a=this,c=a.pendingLoadOptions,b;if(a.destroying||a.destroyed){return}a.clearLoadTask();if(!c){return}a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}b=Ext.apply({internalScope:a,internalCallback:a.onProxyLoad,scope:a},c);a.lastOptions=b;b=a.createOperation('read',b);if(a.fireEvent('beforeload',a,b)!==!1){a.onBeforeLoad(b);a.loading=!0;if(a.hasListeners.beginload){a.fireEvent('beginload',a,b)}b.execute()}else {if(a.getAsynchronousLoad()){b.abort()}b.setCompleted()}},reload:function(a){return this.load(Ext.apply({},a,this.lastOptions))},onEndUpdate:function(){var a=this;if(a.needsSync&&a.autoSync&&!a.autoSyncSuspended){a.sync()}},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null);a.fireEvent('datachanged',a)}},afterCommit:function(c,b){var a=this;if(!b){b=null}if(a.contains(c)){a.onUpdate(c,Ext.data.Model.COMMIT,b);a.fireEvent('update',a,c,Ext.data.Model.COMMIT,b);a.fireEvent('datachanged',a)}},afterErase:function(a){this.onErase(a)},onErase:Ext.emptyFn,onUpdate:Ext.emptyFn,hasPendingLoad:function(){return !!this.pendingLoadOptions||this.isLoading()},isLoading:function(){return !!this.loading},isLoaded:function(){return this.loadCount>0},suspendAutoSync:function(){++this.autoSyncSuspended},resumeAutoSync:function(b){var a=this;if(a.autoSyncSuspended&&!--a.autoSyncSuspended){if(b){a.sync()}}},removeAll:Ext.emptyFn,clearData:Ext.emptyFn,privates:{getRawRemovedRecords:function(){return this.removed},onExtraParamsChanged:function(){},clearLoadTask:function(){this.pendingLoadOptions=this.loadTimer=Ext.unasap(this.loadTimer)},cleanRemoved:function(){var a=this.getRawRemovedRecords(),c,b;if(a){for(b=0,c=a.length;b<c;++b){a[b].unjoin(this)}a.length=0}},createOperation:function(e,d){var a=this,c=a.getProxy(),b;if(!a.proxyListeners){b={scope:a,destroyable:!0,beginprocessresponse:a.beginUpdate,endprocessresponse:a.endUpdate};if(!a.disableMetaChangeEvent){b.metachange=a.onMetaChange}a.proxyListeners=c.on(b)}return c.createOperation(e,d)},createImplicitModel:function(e){var b=this,d={extend:b.implicitModel,statics:{defaultProxy:'memory'}},c,a;if(e){d.fields=e}a=Ext.define(null,d);b.setModel(a);c=b.getProxy();if(c){a.setProxy(c)}else {b.setProxy(a.getProxy())}},loadsSynchronously:function(){return this.getProxy().isSynchronous},onBeforeLoad:Ext.privateFn,removeFromRemoved:function(b){var a=this.getRawRemovedRecords();if(a){Ext.Array.remove(a,b);b.unjoin(this)}},setLoadOptions:function(d){var c=this,a,b;if(c.getRemoteFilter()){a=c.getFilters(!1);if(a&&a.getCount()){d.filters=a.getRange()}}if(c.getRemoteSort()){b=c.getSorters(!1);if(b&&b.getCount()){d.sorters=b.getRange()}}}}});Ext.define('Ext.util.Group',{extend:Ext.util.Collection,isGroup:!0,config:{groupKey:null},$endUpdatePriority:2001,manageSorters:!1});Ext.define('Ext.data.Group',{extend:Ext.util.Group,isDataGroup:!0,store:null,getSummaryRecord:function(){var b=this,a=b.summaryRecord,d=b.store,c=d.getData().generation,e,f;if(!a){e=d.getModel();f=e.getSummaryModel();b.summaryRecord=a=new f()}if(!a.isRemote&&a.summaryGeneration!==c){a.calculateSummary(b.items);a.summaryGeneration=c}return a}});Ext.define('Ext.data.LocalStore',{extend:Ext.Mixin,mixinConfig:{id:'localstore',after:{fireGroupChangeEvent:'onGrouperChange'}},config:{extraKeys:null},applyExtraKeys:function(a){var b,c=this.getData();c.setExtraKeys(a);a=c.getExtraKeys();for(b in a){this[b]=a[b]}},add:function(a){return this.insert(this.getCount(),arguments.length===1?a:arguments)},constructDataCollection:function(){var a=new Ext.util.Collection({rootProperty:'data',groupConfig:{xclass:'Ext.data.Group',store:this}});a.addObserver(this);return a},createModel:function(a){var c=this.getSession(),b;if(!a.isModel){b=this.getModel();a=new b(a,c)}return a},createFiltersCollection:function(){return this.getData().getFilters()},createSortersCollection:function(){var a=this.getData().getSorters();a.setSorterConfigure(this.addFieldTransform,this);return a},getSummaryRecord:function(){var b=this,a=b.summaryRecord,d=b.getData(),c=d.generation,e;if(!a){e=b.getModel().getSummaryModel();b.summaryRecord=a=new e()}if(!a.isRemote&&a.summaryGeneration!==c){a.calculateSummary(d.items);a.summaryGeneration=c}return a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionSort:function(){this.onSorterEndUpdate()},onCollectionFilter:function(){this.onFilterEndUpdate()},onGrouperChange:function(a){this.callObservers('GrouperChange',[a])},notifySorterChange:function(){this.getData().onSorterChange()},forceLocalSort:function(){var a=this.getSorters();a.beginUpdate();a.endUpdate()},contains:function(a){return this.indexOf(a)>-1},each:function(h,g,c){var a=this.getData(),f=c,e,d,b;if(typeof c==='object'){f=c.filtered}if(f&&a.filtered){a=a.getSource()}a=a.items.slice(0);e=a.length;for(b=0;b<e;++b){d=a[b];if(h.call(g||d,d,b,e)===!1){break}}},collect:function(e,a,d){var f=this,c=a,b=f.getData();if(typeof a==='object'){d=a.filtered;c=a.allowNull}if(d&&b.filtered){b=b.getSource()}return b.collect(e,'data',c)},getById:function(b){var a=this.getData();if(a.filtered){a=a.getSource()}return a.get(b)||null},getByInternalId:function(c){var a=this.getData(),b;if(a.filtered){if(!a.$hasExtraKeys){b=this.makeInternalKeyCfg();a.setExtraKeys(b);a.$hasExtraKeys=!0}a=a.getSource()}if(!a.$hasExtraKeys){a.setExtraKeys(b||this.makeInternalKeyCfg());a.$hasExtraKeys=!0}return a.byInternalId.get(c)||null},getDataSource:function(){var a=this.getData();return a.getSource()||a},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},insert:function(e,a){var d=this,c,b;if(a){if(!Ext.isIterable(a)){a=[a]}else {a=Ext.Array.clone(a)}c=a.length}if(!c){return []}for(b=0;b<c;++b){a[b]=d.createModel(a[b])}d.getData().insert(e,a);return a},queryBy:function(c,b){var a=this.getData();return (a.getSource()||a).createFiltered(c,b)},query:function(e,f,d,b,c){var a=this.getData();return (a.getSource()||a).createFiltered(e,f,d,b,c)},first:function(a){return this.getData().first(a)||null},last:function(a){return this.getData().last(a)||null},sum:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.sumByGroup(a):b.sum(a)},count:function(b){var a=this.getData();return (b&&this.isGrouped())?a.countByGroup():a.count()},min:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.minByGroup(a):b.min(a)},max:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.maxByGroup(a):b.max(a)},average:function(a,c){var b=this.getData();return (c&&this.isGrouped())?b.averageByGroup(a):b.average(a)},aggregate:function(i,g,j,f){var a=this,c,h,e,d,b;if(j&&a.isGrouped()){c=a.getGroups().items;h=c.length;e={};for(b=0;b<h;++b){d=c[b];e[d.getGroupKey()]=a.getAggregate(i,g||a,d.items,f)}return e}else {return a.getAggregate(i,g,a.getData().items,f)}},getAggregate:function(g,e,b,d){var c=[],f=b.length,a;for(a=0;a<f;++a){c[a]=b[a].get(d)}return g.call(e||this,b,c)},addObserver:function(b){var a=this.observers;if(!a){this.observers=a=new Ext.util.Collection()}a.add(b)},removeObserver:function(b){var a=this.observers;if(a){a.remove(b)}},callObservers:function(h,a){var f=this.observers,g,e,c,d,b;if(f){e=f.items;if(a){a.unshift(this)}else {a=[this]}for(c=0,g=e.length;c<g;++c){b=e[c];d='onSource'+h;if(b[d]){b[d].apply(b,a)}}}},queryRecordsBy:function(g,d){var a=this.getData(),e=[],f,b,c;a=(a.getSource()||a).items;d=d||this;for(b=0,f=a.length;b<f;++b){c=a[b];if(g.call(d,c)===!0){e.push(c)}}return e},queryRecords:function(f,g){var a=this.getData(),d=[],e,b,c;a=(a.getSource()||a).items;for(b=0,e=a.length;b<e;++b){c=a[b];if(c.get(f)===g){d.push(c)}}return d},privates:{isLast:function(a){return a===this.last()},makeInternalKeyCfg:function(){return {byInternalId:{property:'internalId',rootProperty:''}}}}});Ext.define('Ext.data.proxy.Server',{extend:Ext.data.proxy.Proxy,alias:'proxy.server',alternateClassName:'Ext.data.ServerProxy',isRemote:!0,config:{url:'',pageParam:'page',startParam:'start',limitParam:'limit',groupParam:'group',groupDirectionParam:'groupDir',sortParam:'sort',filterParam:'filter',directionParam:'dir',idParam:'id',simpleSortMode:!1,simpleGroupMode:!1,noCache:!0,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(c,b){var a=this.getExtraParams();a[c]=b;this.fireEvent('extraparamschanged',a)},updateExtraParams:function(a,b){this.fireEvent('extraparamschanged',a)},buildRequest:function(a){var c=this,g=Ext.apply({},a.getParams()),d=Ext.applyIf(g,c.getExtraParams()||{}),b,e,f;Ext.applyIf(d,c.getParams(a));e=a.getId();f=c.getIdParam();if(e!==undefined&&d[f]===undefined){d[f]=e}b=new Ext.data.Request({params:d,action:a.getAction(),records:a.getRecords(),url:a.getUrl(),operation:a,proxy:c});b.setUrl(c.buildUrl(b));a.setRequest(b);return b},processResponse:function(j,b,i,c){var a=this,g,f,e,h,d;if(a.destroying||a.destroyed){return}a.fireEvent('beginprocessresponse',a,c,b);if(j===!0){f=a.getReader();if(c.status===204){e=f.getNullResultSet()}else {e=f.read(a.extractResponseData(c),{recordCreator:b.getRecordCreator()||f.defaultRecordCreatorFromServer})}if(!b.$destroyOwner){b.$destroyOwner=a;d=!0}b.process(e,i,c);g=!b.wasSuccessful()}else {a.setException(b,c);g=!0}if(a.destroyed){if(!b.destroyed&&d&&b.$destroyOwner===a){b.destroy()}return}if(g){a.fireEvent('exception',a,c,b)}else {h=e.getMetadata();if(h){a.onMetaChange(h)}}if(a.destroyed){if(!b.destroyed&&d&&b.$destroyOwner===a){b.destroy()}return}a.afterRequest(i,j);a.fireEvent('endprocessresponse',a,c,b);if(!b.destroyed&&d&&b.$destroyOwner===a){b.destroy()}},setException:function(b,a){b.setException({status:a.status,statusText:a.statusText,response:a})},extractResponseData:Ext.identityFn,applyEncoding:function(a){return Ext.encode(a)},encodeSorters:function(c,d){var b=[],e=c.length,a;for(a=0;a<e;a++){b[a]=c[a].serialize()}return this.applyEncoding(d?b[0]:b)},encodeFilters:function(c){var b=[],e=c.length,d,a;for(a=0;a<e;a++){d|=c[a].serializeTo(b)}return d?this.applyEncoding(b):b},getParams:function(d){if(!d.isReadOperation){return {}}var b=this,a={},h=d.getGrouper(),c=d.getSorters(),k=d.getFilters(),s=d.getPage(),l=d.getStart(),r=d.getLimit(),u=b.getSimpleSortMode(),t=b.getSimpleGroupMode(),q=b.getPageParam(),p=b.getStartParam(),o=b.getLimitParam(),g=b.getGroupParam(),m=b.getGroupDirectionParam(),e=b.getSortParam(),n=b.getFilterParam(),i=b.getDirectionParam(),j,f;if(q&&s){a[q]=s}if(p&&(l||l===0)){a[p]=l}if(o&&r){a[o]=r}j=g&&h;if(j){if(t){a[g]=h.getProperty();if(m===g){a[g]+=' '+h.getDirection()}else {a[m]=h.getDirection()}}else {a[g]=b.encodeSorters([h],!0)}}if(e&&c&&c.length>0){if(u){for(f=(c.length>1&&j)?1:0;f<c.length;f++){if(i===e){a[e]=Ext.Array.push(a[e]||[],c[f].getProperty()+' '+c[f].getDirection())}else {a[e]=Ext.Array.push(a[e]||[],c[f].getProperty());a[i]=Ext.Array.push(a[i]||[],c[f].getDirection())}}}else {a[e]=b.encodeSorters(c)}}if(n&&k&&k.length>0){a[n]=b.encodeFilters(k)}return a},buildUrl:function(c){var b=this,a=b.getUrl(c);if(b.getNoCache()){a=Ext.urlAppend(a,Ext.String.format("{0}={1}",b.getCacheString(),Ext.Date.now()))}return a},getUrl:function(a){var b;if(a){b=a.getUrl()||this.getApi()[a.getAction()]}return b?b:this.callParent()},doRequest:function(a,b,c){},afterRequest:Ext.emptyFn,destroy:function(){var a=this;a.destroying=!0;a.reader=a.writer=Ext.destroy(a.reader,a.writer);a.callParent();a.destroyed=!0}});Ext.define('Ext.data.proxy.Ajax',{extend:Ext.data.proxy.Server,alias:'proxy.ajax',alternateClassName:['Ext.data.HttpProxy','Ext.data.AjaxProxy'],isAjaxProxy:!0,defaultActionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'},config:{binary:!1,headers:undefined,paramsAsJson:!1,withCredentials:!1,useDefaultXhrHeader:!0,username:null,password:null,actionMethods:{create:'POST',read:'GET',update:'POST',destroy:'POST'}},doRequest:function(e){var a=this,g=a.getWriter(),b=a.buildRequest(e),f=a.getMethod(b),c,d;if(g&&e.allowWrite()){b=g.write(b)}b.setConfig({binary:a.getBinary(),headers:a.getHeaders(),timeout:a.getTimeout(),scope:a,callback:a.createRequestCallback(b,e),method:f,useDefaultXhrHeader:a.getUseDefaultXhrHeader(),disableCaching:!1});if(a.responseType!=null&&Ext.supports.XHR2){b.setResponseType(a.responseType)}if(f.toUpperCase()!=='GET'&&a.getParamsAsJson()){d=b.getParams();if(d){c=b.getJsonData();if(c){c=Ext.Object.merge({},c,d)}else {c=d}b.setJsonData(c);b.setParams(undefined)}}if(a.getWithCredentials()){b.setWithCredentials(!0);b.setUsername(a.getUsername());b.setPassword(a.getPassword())}return a.sendRequest(b)},sendRequest:function(a){a.setRawRequest(Ext.Ajax.request(a.getCurrentConfig()));this.lastRequest=a;return a},abort:function(a){a=a||this.lastRequest;if(a){Ext.Ajax.abort(a.getRawRequest())}},getMethod:function(d){var a=this.getActionMethods(),b=d.getAction(),c;if(a){c=a[b]}return c||this.defaultActionMethods[b]},createRequestCallback:function(a,b){return function(f,e,d){var c=this;if(a===c.lastRequest){c.lastRequest=null}if(!c.destroying&&!c.destroyed){c.processResponse(e,b,a,d)}}},destroy:function(){this.lastRequest=null;this.callParent()}});Ext.define('Ext.data.reader.Json',{extend:Ext.data.reader.Reader,alternateClassName:'Ext.data.JsonReader',alias:'reader.json',config:{record:null,metaProperty:'metaData',useSimpleAccessors:!1,preserveRawData:!1},responseType:'json',updateRootProperty:function(){this.forceBuildExtractors()},updateMetaProperty:function(){this.forceBuildExtractors()},getResponseData:function(a){var b;if(typeof a.responseJson==='object'){return a.responseJson}try{return Ext.decode(a.responseText)}catch(c){b=this.createReadError(c.message);Ext.Logger.warn('Unable to parse the JSON returned by the server');this.fireEvent('exception',this,a,b);return b}},buildExtractors:function(c){var a=this,b=Ext.emptyFn;if(a.callParent([c])){a.getRoot=a.setupExtractor(a.getRootProperty(),Ext.identityFn);a.getGroupRoot=a.setupExtractor(a.getGroupRootProperty(),b);a.getSummaryRoot=a.setupExtractor(a.getSummaryRootProperty(),b);a.getMeta=a.setupExtractor(a.getMetaProperty(),b)}},extractData:function(a,f){var e=this.getRecord(),d=[],c,b;if(e){c=a.length;if(!c&&Ext.isObject(a)){c=1;a=[a]}for(b=0;b<c;b++){d[b]=a[b][e]}}else {d=a}return this.callParent([d,f])},getModelData:function(a){return this.getPreserveRawData()?Ext.apply({},a):a},createAccessor:(function(){var a=/[\[\.]/;return function(c){var o=this.getUseSimpleAccessors(),n,f,j,m,b,e,p,l,g,k,d,h,i,q;if(!(c||c===0)){return}if(typeof c==='function'){return c}if(!o){n=String(c).search(a)}if(o===!0||n<0){f=function(a){return a==null?null:a[c]}}else {j='raw';m=[];b='';e=0;q=c.length;for(h=0;h<=q;++h){d=c[h];p=d==='.';l=d==='[';g=d===']';k=p||l||g||!d;if(!k||e>1||(e&&!g)){b+=d}else if(k){i=!1;if(l){++e}else if(g){--e;i=!0}if(b){if(i){b='['+b+']'}else {b='.'+b}j+=b;m.push(''+j);b=''}}}f=m.join(' && ');f=Ext.functionFactory('raw','return '+f)}return f}}()),createFieldAccessor:function(b){var e=this,a=b.mapping,c=a||a===0,d=c?a:b.name;if(c){if(typeof d==='function'){return function(c,a){return b.mapping(c,a)}}else {return e.createAccessor(d)}}},getAccessorKey:function(b){var a=this.getUseSimpleAccessors()?'simple':'';return this.callParent([a+b])},privates:{copyFrom:function(a){this.callParent([a]);this.getRoot=a.getRoot},setupExtractor:function(a,b){return a?this.getAccessor(a):b}}});Ext.define('Ext.data.writer.Json',{extend:Ext.data.writer.Writer,alternateClassName:'Ext.data.JsonWriter',alias:'writer.json',config:{rootProperty:undefined,encode:!1,allowSingle:!0,expandData:!1},getExpandedData:function(f){var i=f.length,g=0,a,c,b,d,e,h;h=function(c,b){var a={};a[c]=b;return a};for(;g<i;g++){a=f[g];for(c in a){if(a.hasOwnProperty(c)){b=c.split('.');d=b.length-1;if(d>0){e=a[c];for(;d>0;d--){e=h(b[d],e)}a[b[0]]=a[b[0]]||{};Ext.Object.merge(a[b[0]],e);delete a[c]}}}}return f},writeRecords:function(b,a){var c=this,e=c.getRootProperty(),d,g,f;if(c.getExpandData()){a=c.getExpandedData(a)}if(c.getAllowSingle()&&a.length===1){a=a[0];g=!0}f=this.getTransform();if(f){a=f(a,b)}if(c.getEncode()){if(e){b.setParam(e,Ext.encode(a))}else {}}else if(g||(a&&a.length)){d=b.getJsonData()||{};if(e){d[e]=a}else {d=a}b.setJsonData(d)}return b}});Ext.define('Ext.util.SorterCollection',{extend:Ext.util.Collection,isSorterCollection:!0,$sortable:null,sortFn:null,config:{sorterOptionsFn:null,sorterOptionsScope:null},constructor:function(b){var a=this;a.sortFn=Ext.util.Sorter.createComparator(a);a.callParent([b]);a.setDecoder(a.decodeSorter)},addSort:function(b,c,d){var a=this,f,j,k,g,h,i,e;if(!b){a.beginUpdate();a.endUpdate()}else {g=a.getOptions();if(b instanceof Array){e=b;d=c;c=null}else if(Ext.isString(b)){if(!(i=a.get(b))){e=[{property:b,direction:c||g.getDefaultSortDirection()}]}else {e=[i]}}else if(Ext.isFunction(b)){e=[{sorterFn:b,direction:c||g.getDefaultSortDirection()}]}else {e=[b];d=c;c=null}d=a._sortModes[d||'replace'];h=a.getAt(0);f=a.length;j=d.append?f:0;a.beginUpdate();a.splice(j,d.replace?f:0,e);if(d.multi){f=a.length;k=g.getMultiSortLimit();if(f>k){a.removeAt(k,f)}}if(i&&c){i.setDirection(c)}else if(j===0&&h&&h===a.getAt(0)){h.toggle()}a.endUpdate()}},clear:function(){this.beginUpdate();this.callParent();this.endUpdate(this.items)},getSortFn:function(){return this.sortFn},getByProperty:function(d){var c=this.items,e=c.length,a,b;for(a=0;a<e;++a){b=c[a];if(b.getProperty()===d){return b}}return null},_sortModes:{append:{append:1},multi:{multi:1},prepend:{prepend:1},replace:{replace:1}},decodeSorter:function(a,i){var c=this,g=c.getOptions(),h=g.getRootProperty(),f=c.getSorterOptionsFn(),d,b,e;if(a.isSorter){if(!a.getRoot()){a.setRoot(h)}}else {b={direction:g.getDefaultSortDirection(),root:h};e=typeof a;if(e==='string'){d=c.get(a);if(d){return d}b.property=a}else if(e==='function'){b.sorterFn=a}else {b=Ext.apply(b,a);if(b.fn){b.sorterFn=b.fn;delete b.fn}}a=Ext.create(i||Ext.util.Sorter,b)}if(f){f.call(c.getSorterOptionsScope()||c,a)}return a},setSorterConfigure:function(b,a){this.setSorterOptionsFn(b);this.setSorterOptionsScope(a)},decodeRemoveItems:function(e,d){var k=this,b=(d===undefined)?e:e[d];if(!b||!b.$cloned){if(e.length>d+1||!Ext.isIterable(b)){b=Ext.Array.slice(e,d)}var j=k.items,l=b.length,c=[],f,g,i,a,h;for(f=0;f<l;f++){a=b[f];if(a&&a.isSorter){c.push(a)}else {h=typeof a;if(h==='string'){a=k.get(a);if(a){c.push(a)}}else if(h==='function'){for(i=j.length;i-->0;){g=j[i];if(g.getSorterFn()===a){c.push(g)}}}}}b=c;b.$cloned=!0}return b},getOptions:function(){return this.$sortable||this}});Ext.define('Ext.util.FilterCollection',{extend:Ext.util.Collection,isFilterCollection:!0,$filterable:null,filterFn:null,constructor:function(b){var a=this;a.filterFn=Ext.util.Filter.createFilterFn(a);a.callParent([b]);a.setDecoder(a.decodeFilter)},filterData:function(a){return this.filtered?Ext.Array.filter(a,this.filterFn):a},getFilterFn:function(){return this.filterFn},isItemFiltered:function(a){return !this.filterFn(a)},getFilterCount:function(){var c=this.items,b=c.length,a;for(a=b-1;a>=0;a--){if(c[a].getDisabled()){b--}}return b},decodeFilter:function(b){var d=this.getOptions(),c=d.getRootProperty(),a;if(b.isFilter){if(b.setRoot&&!b.getRoot()){b.setRoot(c)}}else {a={root:c};if(Ext.isFunction(b)){a.filterFn=b}else {a=Ext.apply(a,b);if(a.fn){a.filterFn=a.fn;delete a.fn}if(Ext.util.Filter.isInvalid(a)){return !1}}b=new Ext.util.Filter(a)}return b},decodeRemoveItems:function(f,e){var p=this,b=(e===undefined)?f:f[e];if(!b.$cloned){if(f.length>e+1||!Ext.isIterable(b)){b=Ext.Array.slice(f,e)}var k=p.items,o=b.length,h=[],a,g,l,n,m,c,d,j,i;for(g=0;g<o;g++){a=b[g];if(a&&a.isFilter){h.push(a)}else {i=typeof a;l=i==='function';n=a.property!==undefined&&a.value!==undefined;m=i==='string';for(j=k.length;j-->0;){c=k[j];d=!1;if(m){d=c.getProperty()===a}else if(l){d=c.getFilterFn()===a}else if(n){d=c.getProperty()===a.property&&c.getValue()===a.value}if(d){h.push(c)}}}}b=h;b.$cloned=!0}return b},getOptions:function(){return this.$filterable||this}});Ext.define('Ext.util.GroupCollection',{extend:Ext.util.Collection,isGroupCollection:!0,config:{grouper:null,groupConfig:null,itemRoot:null},observerPriority:-100,emptyGroupRetainTime:300000,constructor:function(a){this.emptyGroups={};this.callParent([a]);this.on('remove','onGroupRemove',this)},getItemGroup:function(a){var b=this.getGrouper().getGroupString(a);return this.get(b)},onCollectionAdd:function(b,a){if(!this.isConfiguring){this.addItemsToGroups(b,a.items,a.at)}},onCollectionBeforeItemChange:function(b,a){this.changeDetails=a},onCollectionBeginUpdate:function(){this.beginUpdate()},onCollectionEndUpdate:function(){this.endUpdate()},onCollectionItemChange:function(b,a){if(!a.indexChanged){this.syncItemGrouping(b,a)}this.changeDetails=null},onCollectionRefresh:function(d){if(d.generation){var c=this,j=c.itemGroupKeys={},h=c.createEntries(d,d.items),a=h.entries,g,e,i,b,f;for(e=0,i=a.length;e<i;++e){b=a[e];b.group.splice(0,1.0E99,b.items);for(f=0;f<b.items.length;f++){j[d.getKey(b.items[f])]=b.group}}a=null;for(g in c.map){if(!(g in h.groups)){(a||(a=[])).push(c.map[g])}}if(a){c.remove(a)}c.sortItems()}},onCollectionRemove:function(f,k){var a=this,j=a.changeDetails,m=a.itemGroupKeys||(a.itemGroupKeys={}),e,g,d,b,i,h,c,l;if(f.getCount()){if(j){l=j.item||j.items[0];e=a.createEntries(f,[l],!1).entries;e[0].group=m['oldKey' in k?k.oldKey:f.getKey(l)]}else {e=a.createEntries(f,k.items,!1).entries}for(b=0,i=e.length;b<i;++b){d=(g=e[b]).group;if(d){d.remove(g.items)}for(h=0;h<g.items.length;h++){delete m[f.getKey(g.items[h])]}if(d&&!d.length){(c||(c=[])).push(d)}}}else {a.itemGroupKeys={};c=a.items;for(b=0,i=c.length;b<i;++b){c[b].clear()}}if(c){a.remove(c)}},onCollectionSort:function(g){var f=this,c=g.getSorters(!1),e,d,b,a;if(c){e=f.items;d=f.length;for(b=0;b<d;++b){a=e[b];if(a.getSorters()===c){a.sortItems()}else {a.setSorters(c)}}}},onCollectionUpdateKey:function(b,a){if(!a.indexChanged){a.oldIndex=b.indexOf(a.item);this.syncItemGrouping(b,a)}},addItemsToGroups:function(c,n,d,f){var e=this,p=e.itemGroupKeys||(e.itemGroupKeys={}),k=e.createEntries(c,n).entries,g=-1,m,a,h,o,i,b,j,l;for(h=0,o=k.length;h<o;++h){a=k[h];b=a.group;if(f||f===0){l=n[0];if(b.getCount()>0&&c.getSorters().getCount()===0){j=c.indexOf(b.items[0]);if(f<j){g=0}else {g=f-j}}if(g===-1){b.add(l)}else {b.insert(g,l)}}else {if(e.length>1&&d){m=c.indexOf(k[0].group.getAt(0));d=Math.max(d-m,0)}a.group.insert(d!=null?d:b.items.length,a.items);for(i=0;i<a.items.length;i++){p[c.getKey(a.items[i])]=a.group}}}e.sortItems()},createEntries:function(m,g,k){var j=this,c={},e=[],l=j.getGrouper(),d,f,a,b,h,i;for(b=0,i=g.length;b<i;++b){a=l.getGroupString(h=g[b]);if(!(d=c[a])){f=j.getGroup(m,a,k);e.push(c[a]=d={group:f,items:[]})}d.items.push(h)}return {groups:c,entries:e}},syncItemGrouping:function(i,a){var d=this,h=d.itemGroupKeys||(d.itemGroupKeys={}),c=a.item,f,e,b,g;e=i.getKey(c);f='oldKey' in a?a.oldKey:e;b=h[f];g=d.getGroup(i,d.getGrouper().getGroupString(c));a.group=g;a.oldGroup=b;if(!(a.groupChanged=g!==b)){b.itemChanged(c,a.modified,a.oldKey,a)}else {if(b){b.updateKey(c,f,e);b.remove(c);if(!b.length){d.remove(b)}}d.addItemsToGroups(i,[c],null,a.oldIndex)}delete h[f];h[e]=g},getGroup:function(d,c,e){var a=this,b=a.get(c),f=a.getAutoSort();if(b){b.setSorters(d.getSorters())}else if(e!==!1){b=a.emptyGroups[c]||Ext.create(Ext.apply({xclass:'Ext.util.Group',groupKey:c,rootProperty:a.getItemRoot(),sorters:d.getSorters()},a.getGroupConfig()));b.ejectTime=null;a.setAutoSort(!1);a.add(b);a.setAutoSort(f)}return b},getKey:function(a){return a.getGroupKey()},createSortFn:function(){var c=this,b=c.getGrouper(),a=c.getSorters().getSortFn();if(!b){return a}return function(c,d){return b.sort(c.items[0],d.items[0])||a(c,d)}},updateGrouper:function(b){var a=this;a.grouped=!!(b&&a.$groupable.getAutoGroup());a.onSorterChange();a.onEndUpdateSorters(a.getSorters())},destroy:function(){var a=this;a.$groupable=null;a.destroyGroups(a.items);Ext.undefer(a.checkRemoveQueueTimer);a.callParent()},privates:{destroyGroups:function(b){var c=b.length,a;for(a=0;a<c;++a){b[a].destroy()}},onGroupRemove:function(h,g){var e=this,b=g.items,f=e.emptyGroups,d,a,c;b=Ext.Array.from(b);for(c=0,d=b.length;c<d;c++){a=b[c];a.setSorters(null);f[a.getGroupKey()]=a;a.ejectTime=Ext.now()}e.checkRemoveQueue()},checkRemoveQueue:function(){var a=this,c=a.emptyGroups,d,b,e;for(d in c){b=c[d];if(!b.getCount()&&Ext.now()-b.ejectTime>a.emptyGroupRetainTime){Ext.destroy(b);delete c[d]}else {e=!0}}if(e){Ext.undefer(a.checkRemoveQueueTimer);a.checkRemoveQueueTimer=Ext.defer(a.checkRemoveQueue,a.emptyGroupRetainTime,a)}}}});Ext.define('Ext.data.Store',{extend:Ext.data.ProxyStore,alias:'store.store',mixins:[Ext.data.LocalStore],config:{data:undefined,clearRemovedOnLoad:!0,clearOnPageLoad:!0,associatedEntity:null,role:null,session:null},addRecordsOptions:{addRecords:!0},loadCount:0,complete:!1,moveMapCount:0,constructor:function(a){var b=this,c;if(a){if(a.buffered){return new Ext.data['BufferedStore'](a)}}b.callParent([a]);c=b.inlineData;if(c){delete b.inlineData;b.loadInlineData(c)}},applyData:function(a,c){var b=this;b.getFields();b.getModel();if(a&&a.isCollection){a.setRootProperty('data');c=a;c.addObserver(this);if(a.getCount()){b.afterLoadRecords(a.items);if(b.hasListeners.load){b.fireEvent('load',b,a.items,!0)}}}else {if(!c){c=b.constructDataCollection()}if(a){if(b.isInitializing){b.inlineData=a}else {b.loadData(a)}}}return c},loadInlineData:function(c){var a=this,b=a.getProxy();if(b&&b.isMemoryProxy){b.setData(c);a.suspendEvents();a.read();a.resumeEvents()}else {a.removeAll(!0);a.suspendEvents();a.loadData(c);a.resumeEvents()}},onCollectionAdd:function(b,a){this.loadCount=this.loadCount||1;this.onCollectionAddItems(b,a.items,a)},onCollectionFilterAdd:function(a,b){this.onCollectionAddItems(a,b)},onCollectionAddItems:function(n,g,b){var a=this,m=g.length,k=b?!b.next:!1,h=a.removed,j=a.ignoreCollectionAdd,l=a.getSession(),e=b&&b.replaced,f,i,c,d;if(a.activeRanges){a.syncActiveRanges()}for(f=0;f<m;++f){c=g[f];if(l){l.adopt(c)}if(!j){c.join(a);if(h&&h.length){Ext.Array.remove(h,c)}i=i||c.phantom||c.dirty}}if(j){return}if(e){d=[];do{Ext.Array.push(d,e.items);e=e.next}while(e);a.setMoving(d,!0)}if(b){if(b.replaced){if(k){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}else {a.fireEvent('add',a,g,b.at);if(k){a.fireEvent('datachanged',a)}}}if(d){a.setMoving(d,!1)}a.needsSync=a.needsSync||i},onCollectionBeforeItemChange:function(e,a){var c=a.item,b=a.modified||null,d=a.meta;this.fireEvent('beforeupdate',this,c,d,b,a)},onCollectionFilteredItemChange:function(){this.onCollectionItemChange.apply(this,arguments)},onCollectionItemChange:function(f,b){var a=this,c=b.item,d=b.modified||null,e=b.meta;if(a.fireChangeEvent(c)){a.onUpdate(c,e,d,b);a.fireEvent('update',a,c,e,d,b);a.fireEvent('datachanged',a)}},afterChange:function(b,a,c){this.getData().itemChanged(b,a||null,undefined,c)},afterCommit:function(b,a){this.afterChange(b,a,Ext.data.Model.COMMIT)},afterEdit:function(a,b){this.needsSync=this.needsSync||a.dirty;this.afterChange(a,b,Ext.data.Model.EDIT)},afterReject:function(a){this.afterChange(a,null,Ext.data.Model.REJECT)},afterDrop:function(a){this.getData().remove(a)},afterErase:function(a){this.removeFromRemoved(a)},addSorted:function(c){var a=this,d=a.getRemoteSort(),b=a.getData(),e;if(d){b.setSorters(a.getSorters())}e=b.findInsertionIndex(c);if(d){b.setSorters(null)}return a.insert(e,c)},remove:function(c,h,i){var f=this,e=f.getDataSource(),d,g,b,a;if(c){if(c.isModel){if(e.indexOf(c)>-1){b=[c];d=1}else {d=0}}else {b=[];for(g=0,d=c.length;g<d;++g){a=c[g];if(a&&a.isEntity){if(!e.contains(a)){continue}}else if(!(a=e.getAt(a))){continue}b.push(a)}d=b.length}}if(!d){return []}f.removeIsMove=h===!0;f.removeIsSilent=i;e.remove(b);f.removeIsSilent=!1;return b},onCollectionRemove:function(n,f){var a=this,g=a.removed,e=f.items,m=e.length,i=f.at,b=f.replacement,h=a.removeIsMove||(b&&Ext.Array.equals(e,b.items)),k=a.removeIsSilent,j=!f.next,l=a.getDataSource(),d,c;if(a.ignoreCollectionRemove){return}if(b){a.setMoving(b.items,!0)}for(d=m-1;d>=0;d--){c=e[d];if(!l.contains(c)){if(g&&!h&&!c.phantom&&!c.erasing){c.removedFrom=i+d;g.push(c);a.needsSync=!0}else {c.unjoin(a)}}}if(!k){if(!b||!b.items.length){a.fireEvent('remove',a,e,i,h);if(j){a.fireEvent('datachanged',a)}}}if(b){a.setMoving(b.items,!1)}},onFilterEndUpdate:function(){var a=this;if(a.destroying||a.destroyed){return}if(a.activeRanges){a.syncActiveRanges()}a.callParent(arguments);a.callObservers('Filter')},removeAt:function(a,b){var c=this.getData();a=Math.max(a,0);if(a<c.length){if(arguments.length===1){b=1}else if(!b){return}c.removeAt(a,b)}},removeAll:function(d){var a=this,b=a.getData(),c=b.getRange();if(b.length){a.removeIsSilent=!0;a.callObservers('BeforeRemoveAll');b.removeAll();a.removeIsSilent=!1;if(!d){a.fireEvent('clear',a,c);a.fireEvent('datachanged',a)}a.callObservers('AfterRemoveAll',[!!d])}return c},setRecords:function(a){var b=this.getCount();++this.loadCount;if(b){this.getData().splice(0,b,a)}else {this.add(a)}},splice:function(b,a,c){return this.getData().splice(b,a,c)},onProxyLoad:function(b){var a=this,e=b.getResultSet(),c=b.getRecords(),d=b.wasSuccessful();if(a.destroyed){return}if(e){a.totalCount=e.getTotal()}if(d){c=a.processAssociation(c);a.loadRecords(c,b.getAddRecords()?{addRecords:!0}:undefined);a.attachSummaryRecord(e)}else {a.loading=!1}if(a.hasListeners.load){a.fireEvent('load',a,c,d,b)}a.callObservers('AfterLoad',[c,d,b])},onProxyWrite:function(a){if(a.wasSuccessful()){this.attachSummaryRecord(a.getResultSet())}this.callParent([a])},filterDataSource:function(f){var c=this.getDataSource(),b=c.items,e=b.length,d=[],a;for(a=0;a<e;a++){if(f.call(c,b[a])){d.push(b[a])}}return d},getNewRecords:function(){return this.filterDataSource(this.filterNew)},getRejectRecords:function(){return this.filterDataSource(this.filterRejects)},getUpdatedRecords:function(){return this.filterDataSource(this.filterUpdated)},loadData:function(d,e){var b=this,f=d.length,a=[],c;for(c=0;c<f;c++){a.push(b.createModel(d[c]))}a=b.processAssociation(a);b.loadRecords(a,e?b.addRecordsOptions:undefined)},loadRawData:function(g,f){var a=this,e=a.getSession(),b,d,c;b=a.getProxy().getReader().read(g,e?{recordCreator:e.recordCreator}:undefined);d=b.getRecords();c=b.getSuccess();if(c){a.totalCount=b.getTotal();a.loadRecords(d,f?a.addRecordsOptions:undefined)}return c},loadRecords:function(f,e){var a=this,b=a.getData(),c,d;if(e){c=e.addRecords}if(!a.getRemoteSort()&&!a.getSortOnLoad()){d=!0;b.setAutoSort(!1)}if(!c){a.clearData(!0)}a.loading=!1;a.ignoreCollectionAdd=!0;a.callObservers('BeforePopulate');b.add(f);a.ignoreCollectionAdd=!1;if(d){b.setAutoSort(!0)}a.afterLoadRecords(f)},afterLoadRecords:function(c){var a=this,d=c.length,b;for(b=0;b<d;b++){c[b].join(a)}if(!a.isEmptyStore){++a.loadCount;a.complete=!0}if(a.hasListeners.datachanged){a.fireEvent('datachanged',a)}if(a.hasListeners.refresh){a.fireEvent('refresh',a)}a.callObservers('AfterPopulate')},loadPage:function(c,b){var a=this,d=a.getPageSize();a.currentPage=c;b=Ext.apply({page:c,start:(c-1)*d,limit:d,addRecords:!a.getClearOnPageLoad()},b);a.read(b)},nextPage:function(a){this.loadPage(this.currentPage+1,a)},previousPage:function(a){this.loadPage(this.currentPage-1,a)},clearData:function(h){var a=this,b=a.removed,f=a.getDataSource(),g=a.getClearRemovedOnLoad(),j=b&&h&&!g,d,e,c,i;if(f){d=f.items;for(c=0,i=d.length;c<i;++c){e=d[c];if(j&&Ext.Array.contains(b,e)){continue}e.unjoin(a)}a.ignoreCollectionRemove=!0;a.callObservers('BeforeClear');f.removeAll();a.ignoreCollectionRemove=!1;a.callObservers('AfterClear')}if(b&&(!h||g)){b.length=0}},onIdChanged:function(b,a,c){this.getData().updateKey(b,a);this.fireEvent('idchanged',this,b,a,c)},commitChanges:function(){var a=this,c=a.getModifiedRecords(),d=c.length,b=0;Ext.suspendLayouts();a.beginUpdate();for(;b<d;b++){c[b].commit()}a.cleanRemoved();a.endUpdate();Ext.resumeLayouts(!0);a.fireEvent('commit',a)},filterNewOnly:function(a){return a.phantom===!0},filterRejects:function(a){return a.phantom||a.dirty},rejectChanges:function(){var a=this,c=a.getRejectRecords(),f=c.length,b,d,e,g,h,i;Ext.suspendLayouts();a.beginUpdate();for(b=0;b<f;b++){d=c[b];if(d.phantom){e=e||[];e.push(d)}else {d.reject()}}if(e){a.remove(e);for(b=0,f=e.length;b<f;++b){e[b].reject()}}c=a.getRawRemovedRecords();if(c){f=c.length;g=!a.getRemoteSort()&&a.isSorted();if(g){h=a.getData();i=h.getAutoSort();h.setAutoSort(!1)}for(b=f-1;b>=0;b--){d=c[b];d.reject();if(!g){a.insert(d.removedFrom||0,d)}}if(g){h.setAutoSort(i);a.add(c)}c.length=0}a.endUpdate();Ext.resumeLayouts(!0);a.fireEvent('reject',a)},doDestroy:function(){var a=this,c=a.loadTask,d=a.getData(),b=d.getSource();a.clearData();a.setSession(null);a.observers=null;if(c){c.cancel();a.loadTask=null}if(b){b.destroy()}a.callParent()},privates:{commitOptions:{commit:!0},attachSummaryRecord:function(g){if(!g){return}var d=this,a=g.getSummaryData(),k=d.getGrouper(),b=d.summaryRecord,h=d.commitOptions,i,j,f,c,e;if(a){if(b){b.set(a.data,h)}else {d.summaryRecord=a;a.isRemote=!0}}if(k){a=g.getGroupData();if(a){i=d.getGroups();for(f=0,j=a.length;f<j;++f){c=a[f];e=i.getItemGroup(c);if(e){b=e.summaryRecord;if(b){b.set(c.data,h)}else {e.summaryRecord=c;c.isRemote=!0}}}}}},fetch:function(a){var b;a=Ext.apply({},a);this.setLoadOptions(a);b=this.createOperation('read',a);b.execute()},fireChangeEvent:function(a){return this.getDataSource().contains(a)},onBeforeLoad:function(a){this.callObservers('BeforeLoad',[a])},onRemoteFilterSet:function(a,b){if(a){this.getData().setFilters(b?null:a)}this.callParent([a,b])},onRemoteSortSet:function(b,a){var c=this.getData();if(b){c.setSorters(a?null:b)}c.setAutoGroup(!a);this.callParent([b,a])},isMoving:function(a,f){var c=this.moveMap,b=0,e,d;if(c){if(a){if(Ext.isArray(a)){for(d=0,e=a.length;d<e;++d){b+=c[a[d].id]?1:0}}else if(c[a.id]){++b}}else {b=f?c:this.moveMapCount}}return b},setLoadOptions:function(a){var b=this,c=b.getPageSize(),e,d;if(b.getRemoteSort()&&!a.grouper){d=b.getGrouper();if(d){a.grouper=d}}if(c||'start' in a||'limit' in a||'page' in a){a.page=a.page!=null?a.page:b.currentPage;a.start=(a.start!==undefined)?a.start:(a.page-1)*c;a.limit=a.limit!=null?a.limit:c;b.currentPage=a.page}a.addRecords=a.addRecords||!1;if(!a.recordCreator){e=b.getSession();if(e){a.recordCreator=e.recordCreator}}b.callParent([a])},setMoving:function(e,f){var b=this,c=b.moveMap||(b.moveMap={}),g=e.length,d,a;for(d=0;d<g;++d){a=e[d].id;if(f){if(c[a]){++c[a]}else {c[a]=1;++b.moveMapCount}}else {if(--c[a]===0){delete c[a];--b.moveMapCount}}}if(b.moveMapCount===0){b.moveMap=null}},processAssociation:function(b){var a=this,c=a.getAssociatedEntity();if(c){b=a.getRole().processLoad(a,c,b,a.getSession())}return b}}});Ext.define('Ext.data.reader.Array',{extend:Ext.data.reader.Json,alternateClassName:'Ext.data.ArrayReader',alias:'reader.array',config:{totalProperty:undefined,successProperty:undefined},createFieldAccessor:function(a){var b=a.mapping,d=a.hasMapping()?b:a.ordinal,c;a.mapping=d;c=this.callParent(arguments);a.mapping=b;return c},getModelData:function(a){return {}}});Ext.define('Ext.data.ArrayStore',{extend:Ext.data.Store,alias:'store.array',alternateClassName:['Ext.data.SimpleStore'],config:{proxy:{type:'memory',reader:'array'}},loadData:function(a,d){if(this.expandData){var c=[],b=0,e=a.length;for(;b<e;b++){c[c.length]=[a[b]]}a=c}this.callParent([a,d])}});Ext.define('Ext.data.StoreManager',{extend:Ext.util.MixedCollection,alternateClassName:['Ext.StoreMgr','Ext.data.StoreMgr','Ext.StoreManager'],singleton:!0,register:function(){var a,b;for(a=0;(b=arguments[a]);a++){this.add(b)}},unregister:function(){var a,b;for(a=0;(b=arguments[a]);a++){this.remove(this.lookup(b))}},lookup:function(a,h){var d,c,f,g,b,e;if(Ext.isArray(a)){d=a[0];c=a;if(Ext.isObject(d)){a={data:c}}else {f=Ext.isArray(d);g=['field1'];if(f){for(b=2,e=d.length;b<=e;++b){g.push('field'+b)}}else {c=[];for(b=0,e=a.length;b<e;++b){c.push([a[b]])}}return new Ext.data.ArrayStore({data:c,fields:g,autoDestroy:!0,autoCreated:!0,expanded:!f})}}if(Ext.isString(a)){return this.get(a)}else {return Ext.Factory.store(a,h)}},getKey:function(a){return a.storeId},addEmptyStore:function(){var a=this.$emptyStore,b={destroy:Ext.emptyFn};if(!a){a=this.$emptyStore=Ext.regStore('ext-empty-store',{proxy:'memory',useModelWarning:!1});a.isEmptyStore=!0;a.on=a.addListener=function(){return b};a.un=a.removeListener=Ext.emptyFn}this.add(a)},clear:function(){this.callParent();this.addEmptyStore()}},function(){Ext.regStore=function(b,a){var c;if(Ext.isObject(b)){a=b}else {if(Ext.data.StoreManager.containsKey(b)){return Ext.data.StoreManager.lookup(b)}a.storeId=b}if(a instanceof Ext.data.Store){c=a}else {c=new Ext.data.Store(a)}Ext.data.StoreManager.register(c);return c};Ext.getStore=function(a){return Ext.data.StoreManager.lookup(a)};Ext.data.StoreManager.addEmptyStore()});Ext.define('Ext.app.domain.Store',{extend:Ext.app.EventDomain,singleton:!0,type:'store',prefix:'store.',idMatchRe:/^#/,constructor:function(){var a=this;a.callParent();a.monitor(Ext.data.AbstractStore)},match:function(c,a){var b=!1,d=c.alias;if(a==='*'){b=!0}else if(this.idMatchRe.test(a)){b=c.getStoreId()===a.substring(1)}else if(d){b=Ext.Array.indexOf(d,this.prefix+a)>-1}return b}});Ext.define('Ext.app.Controller',{extend: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(a,b){return function(){return this[a](b)}},getGetterName:function(f,d){var b='get',c=f.split('.'),e=c.length,a;for(a=0;a<e;a++){b+=Ext.String.capitalize(c[a])}b+=d;return b},resolveNamespace:function(g,f){var c=Ext.app.Controller,b,a,d,e;b=g.prototype.isProfile?c.profileRegex:c.controllerRegex;a=Ext.getClassName(g);d=f.$namespace||f.namespace||Ext.app.getNamespace(a)||((e=b.exec(a))&&e[1]);return d},processDependencies:function(m,p,o,f,a,n){if(!a||!a.length){return}var c=this,k=c.strings[f],h,i,j,g,b,l,d,e;if(!Ext.isArray(a)){a=[a]}for(b=0,l=a.length;b<l;b++){g=a[b];h=c.getFullName(g,f,o,n);a[b]=i=h.absoluteName;j=h.shortName;p.push(i);d=c.getGetterName(j,k.upper);if(!m[d]){m[d]=e=c.createGetter(k.getter,g)}if(e&&f!=='controller'){e['Ext.app.getter']=!0}}},getFullName:function(a,g,d,f){var c=a,e,b;if((e=a.indexOf('@'))>0){c=a.substring(0,e);b=a.substring(e+1)+'.'+c}else if(a.indexOf('.')>0&&(Ext.ClassManager.isCreated(a)||this.hasRegisteredPrefix(a))){b=a;c=a.replace(d+'.'+g+'.','')}else {if(d){b=d+'.'+g+'.'+(f?f+'.'+a:a);c=a}else {b=a}}return {absoluteName:b,shortName:c}},hasRegisteredPrefix:function(a){var c=Ext.ClassManager,b=c.getPrefix(a);return b&&b!==a}},models:null,views:null,stores:null,controllers:null,config:{application:null,refs:null,active:!0,moduleClassName:null},onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,i){var g=Ext.app.Controller,h=[],e,f;f=j.prototype;e=g.resolveNamespace(j,i);if(e){f.$namespace=e}g.processDependencies(f,h,e,'model',i.models);g.processDependencies(f,h,e,'view',i.views);g.processDependencies(f,h,e,'store',i.stores);g.processDependencies(f,h,e,'controller',i.controllers);Ext.require(h,Ext.Function.pass(b,arguments,this))}},constructor:function(a){this.initAutoGetters();this.callParent([a])},normalizeRefs:function(a){var c=this,b=[];if(a){if(Ext.isObject(a)){Ext.Object.each(a,function(d,c){if(Ext.isString(c)){c={selector:c}}c.ref=d;b.push(c)})}else if(Ext.isArray(a)){b=Ext.Array.merge(b,a)}}a=c.refs;if(a){c.refs=null;a=c.normalizeRefs(a);if(a){b=Ext.Array.merge(b,a)}}return b},getRefMap:function(){var e=this,a=e._refMap,b,d,f,c;if(!a){b=e.getRefs();a=e._refMap={};if(b){for(c=0,f=b.length;c<f;c++){d=b[c];a[d.ref]=d.selector}}}return a},applyId:function(a){return a||Ext.app.Controller.getFullName(this.$className,'controller',this.$namespace).shortName},applyRefs:function(a){return this.normalizeRefs(Ext.clone(a))},updateRefs:function(a){if(a){this.ref(a)}},initAutoGetters:function(){var b=this.self.prototype,c,a;for(c in b){a=b[c];if(a&&a['Ext.app.getter']){a.call(this)}}},doInit:function(b){var a=this;if(!a._initialized){a.init(b);a._initialized=!0}},finishInit:function(f){var c=this,a=c.controllers,d,b,e;if(c._initialized&&a&&a.length){for(b=0,e=a.length;b<e;b++){d=c.getController(a[b]);d.finishInit(f)}}},init:Ext.emptyFn,onLaunch:Ext.emptyFn,activate:function(){this.setActive(!0)},deactivate:function(){this.setActive(!1)},isActive:function(){return this.getActive()},ref:function(b){var a=this,f=0,g=b.length,d,c,e;b=Ext.Array.from(b);a.references=a.references||[];for(;f<g;f++){d=b[f];c=d.ref;e='get'+Ext.String.capitalize(c);if(!a[e]){a[e]=Ext.Function.pass(a.getRef,[c,d],a)}a.references.push(c.toLowerCase())}},addRef:function(a){this.ref(a)},getRef:function(d,a,e){var f=this,c=f.refCache||(f.refCache={}),b=c[d];a=a||{};e=e||{};Ext.apply(a,e);if(a.forceCreate){return Ext.ComponentManager.create(a,'component')}if(!b){if(a.selector){c[d]=b=Ext.ComponentQuery.query(a.selector)[0]}if(!b&&a.autoCreate){c[d]=b=Ext.ComponentManager.create(a,'component')}if(b){b.on('destroy',function(){c[d]=null})}}return b},hasRef:function(b){var a=this.references;return a&&Ext.Array.indexOf(a,b.toLowerCase())!==-1},getController:function(b){var a=this.getApplication();if(b===this.getId()){return this}return a&&a.getController(b)},getStore:function(a){var c,b;c=(a.indexOf('@')===-1)?a:a.split('@')[0];b=Ext.StoreManager.get(c);if(!b){a=Ext.app.Controller.getFullName(a,'store',this.$namespace);if(a){b=Ext.create(a.absoluteName,{id:c})}}return b},getModel:function(b){var c=Ext.app.Controller.getFullName(b,'model',this.$namespace),a=Ext.ClassManager.get(c.absoluteName);if(!a){a=Ext.data.schema.Schema.lookupEntity(b)}return a},getProfile:function(a){a=Ext.app.Controller.getFullName(a,'profile',this.$namespace);return a},getView:function(b){var a=Ext.app.Controller.getFullName(b,'view',this.$namespace);return a&&Ext.ClassManager.get(a.absoluteName)},destroy:function(e,f){var a=this,d=a.application,b,c;if(!f&&d){d.unregister(a)}a.application=null;if(e){b=a.refCache;for(c in b){if(b.hasOwnProperty(c)){Ext.destroy(b[c])}}}a.callParent()}});Ext.define('Ext.app.Application',{extend:Ext.app.Controller,isApplication:!0,scope:undefined,namespaces:[],paths:null,config:{name:'',appProperty:'app',profiles:[],currentProfile:null,mainView:{$value:null,lazy:!0},defaultToken:null,glyphFontFamily:null,quickTips:!0,router:null},onClassExtended:function(d,a,f){var h=Ext.app.Controller,g=d.prototype,c=[],e,b;b=a.name||d.superclass.name;if(b){a.$namespace=b;Ext.app.addNamespaces(b)}if(a.namespaces){Ext.app.addNamespaces(a.namespaces)}if(a['paths processed']){delete a['paths processed']}else {Ext.app.setupPaths(b,('appFolder' in a)?a.appFolder:d.superclass.appFolder,a.paths)}h.processDependencies(g,c,b,'profile',a.profiles);g.getDependencies(d,a,c);if(c.length){e=f.onBeforeCreated;f.onBeforeCreated=function(h,g){var b=Ext.Array.clone(arguments);Ext.require(c,function(){return e.apply(this,b)})}}},getDependencies:Ext.emptyFn,constructor:function(b){var a=this;Ext.route.Router.application=a;a.callParent([b]);a.doInit(a);Ext.on('appupdate',a.onAppUpdate,a,{single:!0});this.onProfilesReady()},applyId:function(a){return a||this.$className},updateRouter:function(a){if(a){Ext.route.Router.setConfig(a)}},onAppUpdate:Ext.emptyFn,onProfilesReady:function(){var a=this,e=a.getProfiles(),f=e.length,b,c,d;for(c=0;c<f;c++){d=Ext.create(e[c],{application:a});if(d.isActive()&&!b){b=d;a.setCurrentProfile(b)}}if(b){b.init()}a.initControllers();a.onBeforeLaunch();a.finishInitControllers()},doInit:function(a){this.initNamespace(a);this.callParent([a])},initNamespace:function(a){var c=a.getAppProperty(),b=Ext.namespace(a.getName());if(b){b.getApplication=function(){return a};if(c){if(!b[c]){b[c]=a}}}},initControllers:function(){var c=this,b=Ext.Array.from(c.controllers),e=c.getCurrentProfile(),a,d;c.controllers=new Ext.util.MixedCollection();for(a=0,d=b.length;a<d;a++){c.getController(b[a])}if(e){b=e.getControllers();for(a=0,d=b.length;a<d;a++){c.getController(b[a])}}},finishInitControllers:function(){var c=this,b,a,d;b=c.controllers.getRange();for(a=0,d=b.length;a<d;a++){b[a].finishInit(c)}},launch:Ext.emptyFn,onBeforeLaunch:function(){var a=this,b=Ext.util.History,e=a.getDefaultToken(),g=a.getCurrentProfile(),f,d,i,h,c;a.initMainView();if(g){g.launch()}a.launch.call(a.scope||a);a.launched=!0;a.fireEvent('launch',a);f=a.controllers.items;i=f.length;for(d=0;d<i;d++){h=f[d];h.onLaunch(a)}if(!b.ready){b.init()}c=b.getToken();if(c||c===e){Ext.route.Router.onStateChange(c)}else if(e){b.replace(e)}if(Ext.Microloader&&Ext.Microloader.appUpdate&&Ext.Microloader.appUpdate.updated){Ext.Microloader.fireAppUpdate()}if(!a.cnsTimer){a.cnsTimer=Ext.defer(Ext.ClassManager.clearNamespaceCache,2000,Ext.ClassManager)}},getModuleClassName:function(b,a){return Ext.app.Controller.getFullName(b,a,this.getName()).absoluteName},initMainView:function(){var b=this,c=b.getCurrentProfile(),a;if(c){a=c.getMainView()}if(a){b.setMainView(a)}else {b.getMainView()}},applyMainView:function(a){var b=this.getView(a);return b.create({$initParent:this.viewport})},createController:function(a){return this.getController(a)},destroyController:function(a){if(typeof a==='string'){a=this.getController(a,!0)}Ext.destroy(a)},getController:function(f,j){var c=this,e=c.controllers,b,a,i,d,h,g;a=e.get(f);if(!a){g=e.items;for(d=0,i=g.length;d<i;++d){h=g[d];b=h.getModuleClassName();if(b&&b===f){a=h;break}}}if(!a&&!j){b=c.getModuleClassName(f,'controller');a=Ext.create(b,{application:c,moduleClassName:b});e.add(a);if(c._initialized){a.doInit(c)}}return a},unregister:function(a){this.controllers.remove(a)},getApplication:function(){return this},destroy:function(d){var a=this,c=a.controllers,b=Ext.namespace(a.getName()),e=a.getAppProperty();Ext.undefer(a.cnsTimer);Ext.un('appupdate',a.onAppUpdate,a);Ext.destroy(a.viewport);if(c){c.each(function(a){a.destroy(d,!0)})}a.controllers=null;a.callParent([d,!0]);if(b&&b[e]===a){delete b[e]}if(Ext.route.Router.application===a){Ext.route.Router.application=null}if(Ext.app.Application.instance===a){Ext.app.Application.instance=null}},updateGlyphFontFamily:function(a){Ext.setGlyphFontFamily(a)},applyProfiles:function(a){var b=this;return Ext.Array.map(a,function(c){return b.getModuleClassName(c,"profile")})}},function(){Ext.getApplication=function(){return Ext.app.Application.instance}});Ext.application=function(a){var b=function(b){Ext.onReady(function(){var c=Ext.viewport;c=c&&c['Viewport'];if(c&&c.setup){c.setup(b.prototype.config.viewport)}Ext.app.Application.instance=new b()})};if(typeof a==="string"){Ext.require(a,function(){b(Ext.ClassManager.get(a))})}else {a=Ext.apply({extend:'Ext.app.Application'},a);Ext.app.setupPaths(a.name,a.appFolder,a.paths);a['paths processed']=!0;Ext.define(a.name+".$application",a,function(){b(this)})}};Ext.define('Ext.util.ItemCollection',{extend:Ext.util.MixedCollection,alternateClassName:'Ext.ItemCollection',getKey:function(a){return a.getItemId&&a.getItemId()},has:function(a){return this.map.hasOwnProperty(a.getId())}});Ext.define('Ext.mixin.Queryable',{mixinId:'queryable',isQueryable:!0,query:function(a){a=a||'*';return Ext.ComponentQuery.query(a,this.getQueryRoot())},queryBy:function(g,e){var d=[],c=this.getQueryRoot().getRefItems(!0),b=0,f=c.length,a;for(;b<f;++b){a=c[b];if(g.call(e||a,a)!==!1){d.push(a)}}return d},queryById:function(a){return this.down(Ext.makeIdSelector(a))},child:function(b){var a=this.getQueryRoot().getRefItems();if(b&&b.isComponent){return this.matchById(a,b.getItemId())}if(b){a=Ext.ComponentQuery.query(b,a)}if(a.length){return a[0]}return null},down:function(a){if(a&&a.isComponent){return this.matchById(this.getRefItems(!0),a.getItemId())}a=a||'';return this.query(a)[0]||null},visitPreOrder:function(b,d,c,a){Ext.ComponentQuery._visit(!0,b,this.getQueryRoot(),d,c,a)},visitPostOrder:function(b,d,c,a){Ext.ComponentQuery._visit(!1,b,this.getQueryRoot(),d,c,a)},getRefItems:function(){return []},getQueryRoot:function(){return this},privates:{matchById:function(c,e){var d=c.length,a,b;for(a=0;a<d;++a){b=c[a];if(b.getItemId()===e){return b}}return null}}});Ext.define('Ext.mixin.Container',{extend:Ext.Mixin,mixinConfig:{id:'container'},isContainer:!0,nameHolder:!1,referenceHolder:!1,getNamedItems:function(){if(Ext.referencesDirty){Ext.fixReferences()}return this.nameRefs||null},getReferences:function(){if(Ext.referencesDirty){Ext.fixReferences()}return this.refs||null},lookup:function(b){var a=this.getReferences();return (a&&a[b])||null},lookupName:function(b){var a=this.getNamedItems();return (a&&a[b])||null},lookupReference:function(a){return this.lookup(a)},privates:{attachNameRef:function(a){var c=this,e=a.name||a._name,b,d;if(e&&!c.destroying&&!c.destroyed){d=c.nameRefs||(c.nameRefs={});b=d[e];if(!b){b=a.shareableName?[a]:a}else if(!b.isInstance){b.push(a)}d[e]=b}},attachReference:function(b){var a=this,d,c;if(!a.destroying&&!a.destroyed){c=a.refs||(a.refs={});d=b.referenceKey;c[d]=b}},containerOnAdded:function(a,b){Ext.ComponentManager.markReferencesDirty()},containerOnRemoved:function(a){if(!a){Ext.ComponentManager.markReferencesDirty()}},initContainerInheritedState:function(b,h){var a=this,d=a.getController(),f=a.getSession(),g=a.getConfig('viewModel',!0),e=a.reference,c=a.referenceHolder;if(a.nameHolder){b.nameHolder=a}if(d){b.referenceHolder=d;c=!0}else if(c){b.referenceHolder=a}if(c){b.referencePath=''}else if(e&&a.isParentReference){b.referencePath=a.referenceKey+'.'}if(f){b.session=f}if(g){b.viewModelPath=''}else if(e&&a.isParentReference){b.viewModelPath=a.viewModelKey+'.'}},setupReference:function(a){var b;if(a&&a.charAt(b=a.length-1)==='>'){this.isParentReference=!0;a=a.substring(0,b)}return a}}});Ext.define('Ext.util.KeyMap',{alternateClassName:'Ext.KeyMap',eventName:'keydown',constructor:function(b){var a=this;Ext.apply(a,b);a.bindings=[];if(!a.target.isComponent){a.target=Ext.get(a.target)}if(a.binding){a.addBinding(a.binding)}else if(b.key){a.addBinding(b)}a.enable()},addBinding:function(b){var a=this,e=b.key,c,d;if(a.processing){a.bindings=a.bindings.slice(0)}if(Ext.isArray(b)){for(c=0,d=b.length;c<d;c++){a.addBinding(b[c])}return}a.bindings.push(Ext.apply({keyCode:a.processKeys(e)},b))},removeBinding:function(b){var c=this,e=c.bindings,g=e.length,d,a,f;if(c.processing){c.bindings=e.slice(0)}f=c.processKeys(b.key);for(d=0;d<g;d++){a=e[d];if((a.fn||a.handler)===(b.fn||b.handler)&&a.scope===b.scope){if(b.alt===a.alt&&b.ctrl===a.ctrl&&b.shift===a.shift){if(Ext.Array.equals(a.keyCode,f)){Ext.Array.erase(c.bindings,d,1);return}}}}},processKeys:function(a){var g=!1,f,e,d,c,b;if(a.test){return a}if(Ext.isString(a)){e=[];d=a.toUpperCase();for(b=0,c=d.length;b<c;b++){e.push(d.charCodeAt(b))}a=e;g=!0}if(!Ext.isArray(a)){a=[a]}if(!g){for(b=0,c=a.length;b<c;b++){f=a[b];if(Ext.isString(f)){a[b]=f.toUpperCase().charCodeAt(0)}}}return a},handleTargetEvent:function(b){var a=this,d,c,f,e;if(a.enabled){d=a.bindings;b=a.processEvent.apply(a.processEventScope||a,arguments);if(b){a.lastKeyEvent=b;if(a.ignoreInputFields&&Ext.fly(b.target).isInputField()){return}if(!b.getKey){return b}a.processing=!0;for(c=0,f=d.length;c<f;c++){e=a.processBinding(d[c],b);if(e===!1){a.processing=!1;return e}}a.processing=!1}}},processEvent:Ext.identityFn,processBinding:function(c,b){if(this.checkModifiers(c,b)){var g=b.getKey(),h=c.fn||c.handler,i=c.scope||this,d=c.keyCode,e=c.defaultEventAction,f,j,a;if(d.test){if(d.test(String.fromCharCode(b.getCharCode()))){a=h.call(i,g,b);if(a!==!0&&e){b[e]()}if(a===!1){return a}}}else if(d.length){for(f=0,j=d.length;f<j;f++){if(g===d[f]){a=h.call(i,g,b);if(a!==!0&&e){b[e]()}if(a===!1){return a}break}}}}},checkModifiers:function(f,g){var d=['shift','ctrl','alt'],a,e,c,b;for(a=0,e=d.length;a<e;a++){b=d[a];c=f[b];if(!(c===undefined||(c===g[b+'Key']))){return !1}}return !0},on:function(a,g,f){var b,c,d,e;if(Ext.isObject(a)&&!Ext.isArray(a)){b=a.key;c=a.shift;d=a.ctrl;e=a.alt}else {b=a}this.addBinding({key:b,shift:c,ctrl:d,alt:e,fn:g,scope:f})},un:function(a,g,f){var b,c,d,e;if(Ext.isObject(a)&&!Ext.isArray(a)){b=a.key;c=a.shift;d=a.ctrl;e=a.alt}else {b=a}this.removeBinding({key:b,shift:c,ctrl:d,alt:e,fn:g,scope:f})},isEnabled:function(){return !!this.enabled},enable:function(){var a=this;if(!a.enabled){a.target.on(a.eventName,a.handleTargetEvent,a,{capture:a.capture,priority:a.priority});a.enabled=!0}},disable:function(){var a=this;if(a.enabled){if(!a.target.destroyed){a.target.removeListener(a.eventName,a.handleTargetEvent,a)}a.enabled=!1}},setDisabled:function(a){if(a){this.disable()}else {this.enable()}},destroy:function(b){var a=this,c=a.target;a.bindings=[];a.disable();a.target=null;if(b){c.destroy();Ext.raise("Using removeTarget argument in KeyMap destructor is not supported.")}a.callParent()}});Ext.define('Ext.util.KeyNav',{alternateClassName:'Ext.KeyNav',disabled:!1,defaultEventAction:!1,forceKeyDown:!1,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(a){var b=this,c,d;a=a||{};c={target:a.target,ignoreInputFields:a.ignoreInputFields,eventName:b.getKeyEvent('forceKeyDown' in a?a.forceKeyDown:b.forceKeyDown,a.eventName),capture:a.capture};if(b.map){b.map.destroy()}b.initConfig(a);if(a.processEvent){c.processEvent=a.processEvent;c.processEventScope=a.processEventScope||b}if(a.priority){c.priority=a.priority}if(a.keyMap){d=b.map=a.keyMap}else {d=b.map=new Ext.util.KeyMap(c);b.destroyKeyMap=!0}b.addBindings(a);d.disable();if(!a.disabled){d.enable()}},addBindings:function(d){var c=this,i=c.map,g=Ext.util.KeyNav.keyOptions,h=Ext.event.Event,f=d.scope||c,a,b,e;for(b in d){a=d[b];e=b.length===1?b.charCodeAt(0):(g[b]||h[b.toUpperCase()]);if(e!=null){b=e}if(a&&(b.length===1||!isNaN(b=parseInt(b,10)))){if(typeof a==='function'){a={handler:a,defaultEventAction:(d.defaultEventAction!==undefined)?d.defaultEventAction:c.defaultEventAction}}i.addBinding({key:b,ctrl:a.ctrl,shift:a.shift,alt:a.alt,handler:Ext.Function.bind(c.handleEvent,a.scope||f,[a.handler||a.fn,c],!0),defaultEventAction:(a.defaultEventAction!==undefined)?a.defaultEventAction:c.defaultEventAction})}}},handleEvent:function(d,a,b,c){c.lastKeyEvent=a;return b.call(this,a)},destroy:function(b){var a=this;if(b){Ext.raise("removeEl argument in KeyNav destructor is not supported anymore.")}if(a.destroyKeyMap){a.map.destroy(b)}a.map=null;a.callParent()},enable:function(){if(this.map){this.map.enable();this.disabled=!1}},disable:function(){if(this.map){this.map.disable()}this.disabled=!0},setDisabled:function(a){this.map.setDisabled(a);this.disabled=a},isEnabled:function(){return !this.disabled},getKeyEvent:function(b,a){if(b||(Ext.supports.SpecialKeyDownRepeat&&!a)){return 'keydown'}else {return a||this.eventName}}});Ext.define('Ext.mixin.FocusableContainer',{extend:Ext.Mixin,mixinConfig:{id:'focusablecontainer'},isFocusableContainer:!0,focusableContainer:!1,resetFocusPosition:!1,activeChildTabIndex:0,inactiveChildTabIndex:-1,allowFocusingDisabledChildren:!1,focusableContainerEl:'el',privates:{initFocusableContainer:function(a){var c,b,d;if(this.focusableContainer){a=a!=null?a:!0;this.doInitFocusableContainer(a)}else {c=this.getFocusables();for(b=0,d=c.length;b<d;b++){c[b].ownerFocusableContainer=null}}},doInitFocusableContainer:function(d){var a=this,c=a.focusableContainerEl,b;if(!c.isElement){c=a.focusableContainerEl=a[c]}if(a.initFocusableContainerKeyNav){a.initFocusableContainerKeyNav(c)}if(d){a.clearFocusables();if(!a.isDisabled()){b=a.findNextFocusableChild({step:1})||a.findNextFocusableChild({beforeRender:!0});if(b){a.activateFocusable(b)}}}b=a.findNextFocusableChild({firstTabbable:!0});a.activateFocusableContainer(!!b&&!a.isDisabled())},initFocusableContainerKeyNav:function(b){var a=this;if(!a.focusableKeyNav){b=b||a.focusableContainerEl;a.focusableKeyNav=new Ext.util.KeyNav({target:b,disabled:!0,eventName:'keydown',processEvent:a.processFocusableContainerKeyEvent,processEventScope:a,scope:a,tab:a.onFocusableContainerTabKey,enter:{handler:a.onFocusableContainerEnterKey,ctrl:!1,shift:!1,alt:!1},space:{handler:a.onFocusableContainerSpaceKey,ctrl:!1,shift:!1,alt:!1},up:{handler:a.onFocusableContainerUpKey,ctrl:!1,shift:!1,alt:!1},down:{handler:a.onFocusableContainerDownKey,ctrl:!1,shift:!1,alt:!1},left:{handler:a.onFocusableContainerLeftKey,ctrl:!1,shift:!1,alt:!1},right:{handler:a.onFocusableContainerRightKey,ctrl:!1,shift:!1,alt:!1}})}},destroyFocusableContainer:function(){this.focusableKeyNav=Ext.destroy(this.focusableKeyNav)},activateFocusableContainer:function(b){var a=this.focusableKeyNav;if(a){a.setDisabled(!b)}},isFocusableContainerActive:function(){var a=this.focusableKeyNav;return a?!a.disabled:!1},getFocusables:function(){return this.items.items},initDefaultFocusable:function(){var e=this,f=!1,b,a,c,d;b=e.getFocusables();d=b.length;if(!d){return}for(c=0;c<d;c++){a=b[c];if(!a.isDisabled()&&a.isFocusable()){f=!0;break}}if(!f){return}a=e.findNextFocusableChild({items:b,step:!0});if(a){e.activateFocusable(a)}return a},clearFocusables:function(f){var d=this,c=d.getFocusables(),e=c.length,a,b;for(b=0;b<e;b++){a=c[b];if(!a.destroyed&&a.focusable&&a.isTabbable()){d.deactivateFocusable(a)}}},processFocusableContainerKeyEvent:function(a){if(!Ext.fly(a.target).isInputField()){return a}},activateFocusable:function(a){a.setTabIndex(this.activeChildTabIndex)},deactivateFocusable:function(a){a.setTabIndex(this.inactiveChildTabIndex)},onFocusableContainerTabKey:function(){return !0},onFocusableContainerEnterKey:function(){return !0},onFocusableContainerSpaceKey:function(){return !0},onFocusableContainerUpKey:function(a){a.preventDefault();return this.moveChildFocus(a,!1)},onFocusableContainerDownKey:function(a){a.preventDefault();return this.moveChildFocus(a,!0)},onFocusableContainerLeftKey:function(a){a.preventDefault();return this.moveChildFocus(a,!1)},onFocusableContainerRightKey:function(a){a.preventDefault();return this.moveChildFocus(a,!0)},getFocusableFromEvent:function(b){var a=Ext.Component.from(b);return a},moveChildFocus:function(a,b){var c=this.getFocusableFromEvent(a);return this.focusChild(c,b,a)},focusChild:function(c,b){var a=this.findNextFocusableChild({child:c,step:b});if(a){a.focus()}return a},findNextFocusableChild:function(e){var k=e.beforeRender,j=e.firstTabbable,g,a,i,c,d,b,f,h;g=e.items||this.getFocusables();c=e.step!=null?e.step:1;i=e.child;h=!!this.allowFocusingDisabledChildren;d=Ext.Array.indexOf(g,i);c=c===!0?1:c===!1?-1:c;f=g.length;b=c>0?(d<f?d+c:0):(d>0?d+c:f-1);for(;;b+=c){if(d<0&&(b>=f||b<0)){return null}else if(b>=f){b=-1;continue}else if(b<0){b=f;continue}else if(b===d){return null}a=g[b];if(!a||!a.focusable||(a.isDisabled()&&!h)){continue}if(j){if(a.isTabbable&&a.isTabbable()){return a}}else if(k||(a.isFocusable&&a.isFocusable())){return a}}return null},onFocusEnter:function(d){var b=this,c=d.toComponent,a;if(c===b){a=b.initDefaultFocusable();if(a){a.focus()}}b.activateFocusableContainer(!0)},onFocusLeave:function(b){var a=this;if(a.resetFocusPosition){a.clearFocusables();a.initDefaultFocusable()}},beforeFocusableChildBlur:Ext.privateFn,afterFocusableChildBlur:Ext.privateFn,beforeFocusableChildFocus:function(b){var a=this;if(!a.focusableContainer||a.destroying||a.destroyed){return}a.clearFocusables();a.activateFocusable(b)},afterFocusableChildFocus:function(b){var a=this;if(!a.focusableContainer||a.destroying||a.destroyed){return}a.lastFocusedChild=b},onFocusableChildAdd:function(a){var b=this;if(a.focusable){a.ownerFocusableContainer=b}},onFocusableChildRemove:function(a){var c=this,b;a.ownerFocusableContainer=null;if(a===c.lastFocusedChild){c.lastFocusedChild=null;b=c.initDefaultFocusable();if(a.hasFocus){b=b||a.findFocusTarget();if(b){b.focus()}}}a=b||c.findNextFocusableChild({step:1,beforeRender:!0});if(!a){c.activateFocusableContainer(!1)}},beforeFocusableChildEnable:Ext.privateFn,onFocusableChildEnable:function(b){var a=this,c;if(!a.focusableContainer||a.destroying||a.destroyed){return}if(a.containsFocus){c=Ext.ComponentManager.getActiveComponent();a.clearFocusables();a.activateFocusable(c)}else if(a.resetFocusPosition||a.lastFocusedChild==null){a.clearFocusables();if(b.hasFocus){a.activateFocusable(b);c=b}}else {a.deactivateFocusable(b);if(b===a.lastFocusedChild){a.clearFocusables();a.activateFocusable(b)}c=a.findNextFocusableChild({firstTabbable:!0})}if(!c){a.initDefaultFocusable()}a.activateFocusableContainer(!0)},beforeFocusableChildDisable:function(b){var a=this,c;if(!a.focusableContainer||a.destroying||a.destroyed){return}if(b.hasFocus){c=a.findNextFocusableChild({child:b})||b.findFocusTarget();if(c){c.focus()}}},onFocusableChildDisable:function(c){var a=this,b;if(!a.focusableContainer||a.destroying||a.destroyed){return}b=a.findNextFocusableChild({firstTabbable:!0});if(!b){b=a.initDefaultFocusable()}if(!b){a.activateFocusableContainer(!1)}},beforeFocusableChildHide:function(a){return this.beforeFocusableChildDisable(a)},onFocusableChildHide:function(a){return this.onFocusableChildDisable(a)},beforeFocusableChildShow:function(a){return this.beforeFocusableChildEnable(a)},onFocusableChildShow:function(a){return this.onFocusableChildEnable(a)},onFocusableChildMasked:Ext.privateFn,onFocusableChildDestroy:Ext.privateFn,onFocusableChildUpdate:Ext.privateFn},deprecated:{7:{configs:{enableFocusableContainer:'focusableContainer'}}}});Ext.define('Ext.Container',{extend:Ext.Component,alternateClassName:['Ext.lib.Container','Ext.container.Container'],xtype:'container',isContainer:!0,mixins:[Ext.mixin.Queryable,Ext.mixin.Container,Ext.mixin.FocusableContainer],eventedConfig:{activeItem:0},config:{activeItemIndex:null,autoSize:null,bodyCls:null,layout:'auto',control:null,defaults:null,items:null,autoDestroy:!0,defaultType:null,defaultFocus:{$value:null,lazy:!0},innerCls:null,masked:null},weighted:!1,manageBorders:!1,classCls:Ext.baseCSSPrefix+'container',managedBordersCls:Ext.baseCSSPrefix+'managed-borders',template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el'}],constructor:function(b){var a=this;a._items=a.items=new Ext.util.ItemCollection();a.innerItems=[];a.getReferences=a.getFirstReferences;a.onItemAdd=a.onFirstItemAdd;a.callParent(arguments);delete a.getReferences},initialize:function(){var a=this;a.reference=a.setupReference(a.reference);a.callParent();if(a.manageBorders){a.addCls(a.managedBordersCls)}a.getLayout()},applyMasked:function(b){var c=!0,a;if(b===!1){b=!0;c=!1}if(Ext.isString(b)){b={xtype:'loadmask',message:b}}a=Ext.factory(b,Ext['Mask'],this.getMasked());if(a){a.sender=this;a.setHidden(!c);a.render(this.el)}return a},mask:function(a){this.setMasked(a||!0)},unmask:function(){this.setMasked(!1)},initInheritedState:function(b,a){this.callParent([b,a]);this.initContainerInheritedState(b,a)},onAdded:function(b,a){this.callParent([b,a]);this.containerOnAdded(b,a)},onRemoved:function(a){this.containerOnRemoved(a);this.callParent([a])},afterItemShow:function(b){var a;if(b.getDocked()){a=this.getLayout();this.items.generation++;a.handleDockedItemBorders()}},afterItemHide:function(b){var a;if(b.getDocked()){a=this.getLayout();this.items.generation++;a.handleDockedItemBorders()}},applyBodyCls:function(a){return a&&Ext.dom.Element.splitCls(a)},updateBodyCls:function(a,b){this.bodyElement.replaceCls(b,a)},applyItems:function(b,d){var a=this,c;if(b){a.getDefaultType();a.getDefaults();if(a.initialized&&d.length>0){a.removeAll()}if(a.weighted&&!b.isWidget&&!b.xtype){b=Ext.convertKeyedItems(b)}a.add(b);if(a.initialized){c=a.initialConfig.activeItem||a.config.activeItem||0;a.setActiveItem(c)}}},applyControl:function(c){var b,e,d,a;for(b in c){a=c[b];for(e in a){d=a[e];if(Ext.isObject(d)){d.delegate=b}}a.delegate=b;this.addListener(a)}return c},updateDisabled:function(b){var a=this;a.callParent([b]);if(a.focusableContainer){a.getItems();if(b){a.element.saveTabbableState()}else {a.element.restoreTabbableState()}a.activateFocusableContainer(!b);if(!b){a.initDefaultFocusable()}}},onFirstItemAdd:function(b){var a=this;delete a.onItemAdd;if(b.isInner&&a.innerHtmlElement&&!a.getHtml()&&!a.getTpl()){a.innerHtmlElement.destroy();delete a.innerHtmlElement}return a.onItemAdd.apply(a,arguments)},applyLayout:function(a,b){if(typeof a==='string'){a={type:a}}if(b){if(a){if(!a.isLayout){b.setConfig(a)}}return b}if(!(a&&a.isLayout)){a=Ext.Factory.layout(Ext.apply({container:this},a),Ext.layout.Auto)}this.link('layout',a);return a},updateDefaultType:function(a){this.defaultItemClass=Ext.ClassManager.getByAlias('widget.'+a)},factoryItem:function(a){var b=this;a=b.applyItemDefaults(a);if(!a.isComponent){if(!b.$hasCachedDefaultItemClass){b.getDefaultType();b.$hasCachedDefaultItemClass=!0}a=Ext.factory(a,b.defaultItemClass)}return a},add:function(c){var a=this,j=a.getItems(),k=a.weighted,i=!0,f=[],h,e,g,b,d;if(!Ext.isArray(c)){c=[c];i=!1}if(k){if(j.length){h=!0}else {Ext.sortByWeight(c)}}for(e=0,g=c.length;e<g;e++){b=c[e];if(b){d=b.isWidget;if(!d){b.$initParent=a}b=a.factoryItem(b);if(h){a.doInsert(j.findInsertionIndex(b,Ext.weightSortFn),b,d)}else {a.doAdd(b,d)}delete b.$initParent;if(a.focusableContainer){a.onFocusableChildAdd(b)}f.push(b)}}if((a.isConfiguring||!a.getActiveItem())&&a.innerItems.length>0){a.setActiveItem(a.initialConfig.activeItem||0)}if(a.rendered&&g&&a.focusableContainer){a.initFocusableContainer()}return i?f:f[0]},onItemWeightChange:function(a){var c=this.getItems(),d=c.indexOf(a),b;c.remove(a);b=c.findInsertionIndex(a,Ext.weightSortFn);c.insert(b,a);this.insertInner(a,b);this.onItemMove(a,b,d)},doAdd:function(a,e){var b=this,d=b.getItems(),c;if(!d.has(a)){c=d.length;d.add(a);if(a.isInnerItem()){b.insertInner(a,c)}a.onAdded(b,!!e);if(b.focusableContainer){b.onFocusableChildAdd(a)}b.onItemAdd(a,c)}},remove:function(f,d){var a=this,c=a.getComponent(f),h,b,e,g,i;if(d===undefined){d=a.getAutoDestroy()}if(!c){h=a.getActiveItem();for(b=0;b<f.length;++b){g=a.getComponent(f[b]);if(g===h){i=!0}else if(g){a.remove(g,d)}}if(i){a.remove(h,d)}return f}b=a.indexOf(c);e=a.getInnerItems();if(b!==-1){if(!a.removingAll&&e.length>1&&c===a.getActiveItem()){a.on({activeitemchange:'doRemove',scope:a,single:!0,order:'after',args:[c,b,d]});a.doResetActiveItem(e.indexOf(c))}else {a.doRemove(c,b,d);if(e.length===0){a.setActiveItem(null)}}}return c},doResetActiveItem:function(a){if(a===0){this.setActiveItem(1)}else {this.setActiveItem(0)}},doRemove:function(a,d,c){var b=this;if(!b.destroying){b.items.remove(a);if(a.isInnerItem()){b.removeInner(a)}b.onItemRemove(a,d,c)}if(!a.destroyed){a.onRemoved(a.destroying||c)}if(b.focusableContainer&&!b.destroying&&!b.destroyed){b.onFocusableChildRemove(a,c)}if(c&&!a.destroyed){a.destroy()}},removeAll:function(e,i){var a=this,d=a.destroying,g=a.items,f=d?null:[],h=g.length,b,c;if(typeof e!=='boolean'){e=this.getAutoDestroy()}a.removingAll=!0;for(b=0;b<h;b++){c=g.getAt(b);if(c&&(i||c.isInnerItem())){a.doRemove(c,b,e);if(!d){b--;h--}}if(f){f.push(c)}}if(!d){a.setActiveItem(null)}a.removingAll=!1;return f},getAt:function(a){return this.items.getAt(a)},getInnerAt:function(a){return this.innerItems[a]},removeAt:function(c,b){var a=this.getAt(c);if(a){this.remove(a,b)}return a},removeInnerAt:function(b){var a=this.getInnerItems()[b];if(a){this.remove(a)}return a},has:function(a){return this.getItems().indexOf(a)!==-1},hasInnerItem:function(a){return this.innerItems.indexOf(a)!==-1},indexOf:function(a){return this.getItems().indexOf(a)},innerIndexOf:function(a){return this.innerItems.indexOf(a)},insertInner:function(e,f){var g=this.getItems().items,a=this.innerItems,d=a.indexOf(e),b=-1,c;if(d!==-1){a.splice(d,1)}if(typeof f==='number'){do{c=g[++f]}while(c&&!c.isInnerItem());if(c){b=a.indexOf(c);a.splice(b,0,e)}}if(b===-1){a.push(e);b=a.length-1}if(d!==-1){this.onInnerItemMove(e,b,d)}return this},onInnerItemMove:Ext.emptyFn,removeInner:function(a){Ext.Array.remove(this.innerItems,a);return this},insert:function(e,a){var b=this,d,c;if(Ext.isArray(a)){for(c=a.length-1;c>=0;c--){b.insert(e,a[c])}return b}d=a.isWidget;if(!d){a.$initParent=b}a=b.factoryItem(a);b.doInsert(e,a,d);delete a.$initParent;return a},doInsert:function(b,a,h){var d=this,e=d.items,g=e.length,c,f;f=a.isInnerItem();if(b>g){b=g}if(e[b-1]===a){return}c=d.indexOf(a);if(c!==-1){e.removeAt(c)}e.insert(b,a);if(c===-1){a.onAdded(d,!!h)}if(f){d.insertInner(a,b)}if(c!==-1){d.onItemMove(a,b,c)}else {d.onItemAdd(a,b)}},insertFirst:function(a){return this.insert(0,a)},insertLast:function(a){return this.insert(this.getItems().length,a)},insertBefore:function(c,e){var f=this.getItems(),d,a,b;if(e===null){d=this.add(c)}else {a=f.indexOf(e);b=f.indexOf(c);if(b!==-1&&b<a){--a}d=this.insert(a,c)}return d},insertAfter:function(c,b){var a=this.indexOf(b);if(a!==-1){this.insert(a+1,c)}return this},onItemAdd:function(b,c){var a=this;a.doItemLayoutAdd(b,c);if(a.initialized){if(b.hasListeners.added){b.fireEvent('added',b,a,c)}if(a.hasListeners.add){a.fireEvent('add',a,b,c)}}},doItemLayoutAdd:function(a,c){var b=this.getLayout();if(this.rendered&&!a.rendered){a.fireAction('renderedchange',[this,a,!0],'onItemAdd',b,{args:[a,c]})}else {b.onItemAdd(a,c)}},onItemRemove:function(a,c,d){var b=this;b.doItemLayoutRemove(a,c,d);if(a.hasListeners.removed){a.fireEvent('removed',a,b,c)}if(b.hasListeners.remove){b.fireEvent('remove',b,a,c)}},doItemLayoutRemove:function(a,d,b){var c=this.getLayout();if(a.rendered){a.setRendered(!1);a.fireAction('renderedchange',[this,a,!1],'onItemRemove',c,{args:[a,d,b]})}else {c.onItemRemove(a,d,b)}},onItemMove:function(a,d,c){var b=this;b.doItemLayoutMove(a,d,c);if(a.hasListeners.moved){a.fireEvent('moved',a,b,d,c)}if(b.hasListeners.move){b.fireEvent('move',b,a,d,c)}},doItemLayoutMove:function(c,b,a){this.getLayout().onItemMove(c,b,a)},onItemInnerStateChange:function(a,c){var b=this.getLayout();if(c){this.insertInner(a,this.items.indexOf(a))}else {this.removeInner(a)}b.onItemInnerStateChange.apply(b,arguments)},onItemFloatedChange:function(c,a){var b=this.getLayout();b.onItemFloatedChange(c,a)},getInnerItems:function(){return this.innerItems},getDockedItems:function(){var d=this.getItems().items,c=[],e=d.length,b,a;for(a=0;a<e;a++){b=d[a];if(b.isDocked()){c.push(b)}}return c},applyActiveItem:function(a,f){var b=this,d=b.getInnerItems(),e=b.initialConfig,g=e.activeItem||a,c;b.getItems();if(b.isConfiguring&&!e.activeItem){a=g}if(!a&&d.length===0){return 0}else if(typeof a==='number'){a=Math.max(0,Math.min(a,d.length-1));a=d[a];if(a){return a}else if(f){return null}}else if(a){if(typeof a==='string'){c=b.child(a)}else if(a.isComponent){c=a}else {a=Ext.apply({$initParent:b},a);c=b.factoryItem(a)}if(!c){return null}b.pendingActiveItem=c;if(!b.has(c)){b.add(c)}delete c.$initParent;return c}},animateActiveItem:function(d,a){var c=this.getLayout(),b;if(this.activeItemAnimation){this.activeItemAnimation.destroy()}this.activeItemAnimation=a=new Ext.Factory.layoutCardFx(a);if(a&&c.isCard){a.setLayout(c);b=c.getAnimation();if(b){b.disable()}a.on('animationend',function(){if(b){b.enable()}a.destroy()},this)}return this.setActiveItem(d)},updateActiveItem:function(a,b){delete this.pendingActiveItem;if(b&&!b.destroyed){b.fireEvent('deactivate',b,this,a)}if(a){a.fireEvent('activate',a,this,b)}this.setActiveItemIndex(this.innerItems.indexOf(a))},updateActiveItemIndex:function(a){this.setActiveItem(this.innerItems[a])},getRefItems:function(f){var b=this.getItems().items,a,e,d,c;if(b){if(f){a=[];for(d=0,e=b.length;d<e;d++){c=b[d];a[a.length]=c;if(c.getRefItems){a.push.apply(a,c.getRefItems(!0))}}}else {a=b.slice()}}return a||[]},getComponent:function(a){if(typeof a==='number'){return this.getItems().getAt(a)}if(Ext.isObject(a)){a=a.getItemId()}return this.getItems().get(a)},getDockedComponent:function(a){var b,e,d,c;if(Ext.isObject(a)){a=a.getItemId()}b=this.getDockedItems();e=b.length;if(Ext.isNumber(a)){return b[a]}for(c=0;c<e;c++){d=b[c];if(d.id===a){return d}}return !1},doDestroy:function(){var a=this;if(a.focusableContainer){a.destroyFocusableContainer()}a.removeAll(!0,!0);Ext.destroy(a.items,a.getMasked());a.items=null;if(a._layout){a._layout=Ext.destroy(a._layout)}a.callParent()},getFocusEl:function(){var a=this.findDefaultFocus();if(a){return a.isWidget?a.getFocusEl():a}else if(this.focusable){return this.focusEl}return undefined},findDefaultFocus:function(){var a=this.getDefaultFocus();if(a&&!a.isWidget){a=this.down(a);if(a&&!a.canFocus()){return}}return a},onFocusEnter:function(b){var a=this;a.callParent([b]);if(a.focusableContainer&&!a.destroying&&!a.destroyed){a.mixins.focusablecontainer.onFocusEnter.call(a,b)}},onFocusLeave:function(b){var a=this;a.callParent([b]);if(a.focusableContainer&&!a.destroying&&!a.destroyed){a.mixins.focusablecontainer.onFocusLeave.call(a,b)}},updateInnerCls:function(a,b){var c=this.getRenderTarget();c.replaceCls(b,a)},updateAutoSize:function(c){var a=this,b=a.bodySizerElement;if(c===!1){if(!b){a.bodySizerElement=a.bodyElement.wrap({cls:Ext.baseCSSPrefix+'body-sizer-el'})}}else if(b){a.bodyElement.unwrap();b.destroy();a.bodySizerElement=null}},updateMaxHeight:function(b,c){var a=this;a.callParent([b,c]);if(Ext.isIE11&&(b!=null)&&(a.getAutoSize()!==!1)){a.getMaxHeightElement().setMaxHeight(b);a.addCls(Ext.baseCSSPrefix+'max-height-wrapped')}},privates:{getFirstReferences:function(){var a=this;delete a.getReferences;a.getItems();return a.getReferences.apply(a,arguments)},getPositionedItemTarget:function(){return this.getRenderTarget()},applyItemDefaults:function(a){var b=this.getDefaults();if(b&&!a.ignoreDefaults){if(a.isComponent){if(a.isInnerItem()&&!this.has(a)){if(Ext.isFunction(b)){b=b(a)}a.setConfig(b,null,{defaults:!0})}}else {if(Ext.isFunction(b)){b=b(a)}a=Ext.merge({},b,a)}}return a},setChildRendered:function(b,a){if(a.isInnerItem()){this.getLayout().renderInnerItem(a)}else if(!b||!a.getFloated()){a.setRendered(b)}},getMaxHeightElement:function(){var e=this.el,a=this.maxHeightElement,g='.x-dock,.x-panelheader,.x-body-el,.x-body-wrap-el,.x-tab-guard-el',c,d,b,f;if(!a){this.maxHeightElement=a=e.insertFirst({cls:Ext.baseCSSPrefix+'max-height-el'});c=Ext.Array.clone(e.dom.childNodes);for(b=1,f=c.length;b<f;b++){d=c[b];if(Ext.fly(d).is(g)){a.appendChild(d)}}}return a}}},function(){this.prototype.defaultItemClass=this});Ext.define('Ext.mixin.Hookable',{extend:Ext.Mixin,mixinConfig:{id:'hookable'},bindHook:function(e,a,c,b,d){e.afterMethod(a,c||a,this,b,d);return this},unbindHook:function(c,a,b){c.removeMethodListener(a,b||a,this);return this}});Ext.define('Ext.util.Wrapper',{mixins:[Ext.mixin.Hookable],constructor:function(b,a){var c=this.link('element',Ext.Element.create(b));if(a){c.insertBefore(a);this.wrap(a)}},bindSize:function(c){var a=this.wrappedElement,b;this.boundSizeName=c;this.boundMethodName=b=c==='width'?'setWidth':'setHeight';this.bindHook(a,b,'onBoundSizeChange');a[b].call(a,a.getStyleValue(c))},onBoundSizeChange:function(a,c){var b=this.element;if(typeof a==='string'&&a.substr(-1)==='%'){c[0]='100%'}else {a=''}b[this.boundMethodName].call(b,a)},wrap:function(b){var c=this.element,a;this.wrappedElement=b;a=c.dom;while(a.firstElementChild!==null){a=a.firstElementChild}a.appendChild(b.dom)},destroy:function(){var a=this,g=a.element,e=g.dom,b=a.wrappedElement,c=a.boundMethodName,f=e.parentNode,d;if(c){a.unbindHook(b,c,'onBoundSizeChange');d=g.getStyle(a.boundSizeName);if(d){b[c].call(b,d)}}if(f){if(!b.destroyed){f.replaceChild(e.firstElementChild,e)}delete a.wrappedElement}a.callParent()}});Ext.define('Ext.layout.wrapper.BoxDock',{config:{direction:'horizontal',element:{className:Ext.baseCSSPrefix+'dock'},innerWrapper:null,container:null,manageBorders:null},positionMap:{top:'start',left:'start',bottom:'end',right:'end'},managedBordersCls:Ext.baseCSSPrefix+'managed-borders',constructor:function(a){this.items={start:[],end:[]};this.itemsCount=0;this.initConfig(a)},addItems:function(b){var a,d,c;for(a=0,d=b.length;a<d;a++){c=b[a];this.addItem(c)}},addItem:function(a){var k=a.getDocked(),h=this.positionMap[k],j=a.$dockWrapper,g=this.getContainer(),m=g.indexOf(a),i=a.element,n=this.items,d=n[h],c,l,e,b,f;if(j){j.removeItem(a)}a.$dockWrapper=this;a.addCls(Ext.baseCSSPrefix+'dock-item');a.addCls(Ext.baseCSSPrefix+'docked-'+k);for(c=0,l=d.length;c<l;c++){e=d[c];f=g.indexOf(e);if(f>m){b=e.element;d.splice(c,0,a);break}}if(!b){d.push(a);b=this.getInnerWrapper().getElement()}this.itemsCount++;if(h==='start'){i.insertBefore(b)}else {i.insertAfter(b)}},removeItem:function(a,d){var b=this,c=d||a.getDocked(),e=b.items[b.positionMap[c]];Ext.Array.remove(e,a);a.element.detach();delete a.$dockWrapper;a.removeCls(Ext.baseCSSPrefix+'dock-item');a.removeCls(Ext.baseCSSPrefix+'docked-'+c);if(--b.itemsCount===0){b.destroy()}},getItemsSlice:function(g){var f=this.getContainer(),h=this.items,e=[],b,a,d,c;for(b=h.start,a=0,d=b.length;a<d;a++){c=b[a];if(f.indexOf(c)>g){e.push(c)}}for(b=h.end,a=0,d=b.length;a<d;a++){c=b[a];if(f.indexOf(c)>g){e.push(c)}}return e},applyElement:function(a){return Ext.Element.create(a)},updateElement:function(a){a.addCls(Ext.baseCSSPrefix+'dock-'+this.getDirection())},updateInnerWrapper:function(a,b){if(b){a.getElement().replace(b.getElement(),!1);b.$outerWrapper=null}else {this.getElement().append(a.getElement())}a.setManageBorders(this.getManageBorders());a.$outerWrapper=this},updateManageBorders:function(b){var a=this,c=a.getInnerWrapper();a.getElement().toggleCls(a.managedBordersCls,b);if(c){c.setManageBorders(b)}},destroy:function(){var a=this,b=a.getInnerWrapper(),d=a.$outerWrapper,c;if(b){if(d){d.setInnerWrapper(b)}else {c=b.getElement();if(!c.destroyed){c.replace(a.getElement())}delete b.$outerWrapper}}delete a.$outerWrapper;a.unlink(['_element']);a.callParent()}});Ext.define('Ext.layout.wrapper.Inner',{config:{container:null,manageBorders:null},constructor:function(a){this.initConfig(a)},getElement:function(){var a=this.getContainer();return a.boxScrollerElement||a.bodySizerElement||a.bodyElement},setInnerWrapper:Ext.emptyFn,getInnerWrapper:Ext.emptyFn});Ext.define('Ext.layout.Auto',{alias:['layout.default','layout.auto'],alternateClassName:'Ext.layout.Default',mixins:[Ext.mixin.Observable,Ext.mixin.Factoryable],factoryConfig:{type:'layout',defaultType:'auto',instanceProp:'isLayout'},isLayout:!0,config:{animation:null,container:null},centerCls:Ext.baseCSSPrefix+'center',cls:Ext.baseCSSPrefix+'layout-auto',itemCls:Ext.baseCSSPrefix+'layout-auto-item',spaceRe:/\s+/,positionMap:{top:'start',left:'start',middle:'center',bottom:'end',right:'end'},positionDirectionMap:{top:'vertical',bottom:'vertical',left:'horizontal',right:'horizontal'},constructor:function(a){this.mixins.observable.constructor.call(this,a)},updateContainer:function(a,c){var b=this;b.dockedItems=[];a.getRenderTarget().addCls(b.cls);if(a.initialized){b.onContainerInitialized(a)}else {a.onInitialized('onContainerInitialized',b)}},onContainerInitialized:function(b){var a=this;a.handleDockedItemBorders();b.on({delegate:'> component',beforecenteredchange:'onItemCenteredChange',positionedchange:'onItemPositionedChange',afterdockedchange:'onAfterItemDockedChange',scope:a})},onItemAdd:function(a){var b=this,d=b.getContainer(),c=a.getFloated();if(a.getDocked()!=null){b.dockItem(a)}else if(a.isCentered()){b.onItemCenteredChange(a,!0)}else if(a.isPositioned()){b.onItemPositionedChange(a,!0)}else if(!c){b.onItemInnerStateChange(a,!0)}if(d.rendered&&!c){if(a.isInnerItem()){b.renderInnerItem(a,!0)}else {a.setRendered(!0,!0)}}},onItemInnerStateChange:function(a,c,d){var b=this.itemCls;if(c){this.insertInnerItem(a,this.getContainer().innerIndexOf(a));a.addCls(b)}else {this.removeInnerItem(a);a.removeCls(b)}},insertInnerItem:function(e,d){var f=e.element.dom,c=this.getContainer(),b=c.getRenderTarget(e),a=null;if(d!==-1){if(b===c.getRenderTarget()){a=c.getInnerAt(d+1);a=a?a.element.dom:null}else {a=b.dom.childNodes[d]}}b.dom.insertBefore(f,a)},insertPositionedItem:function(a){var b=this,c=b.getContainer().getPositionedItemTarget(a).dom;if(a.getZIndex()===null){a.setZIndex((b.getContainer().indexOf(a)+1)*2)}c.insertBefore(a.element.dom,c.firstChild);return b},removeInnerItem:function(a){a.element.detach()},removePositionedItem:function(a){a.setZIndex(null);a.element.detach()},onItemRemove:function(a,d,c){var b=this;if(a.getDocked()){b.undockItem(a)}else if(a.isCentered()){b.onItemCenteredChange(a,!1)}else if(a.isPositioned()){b.onItemPositionedChange(a,!1)}else if(!a.getFloated()){b.onItemInnerStateChange(a,!1,c)}},onItemMove:function(a,b,c){if(a.isCentered()||a.isPositioned()){a.setZIndex((b+1)*2)}else if(a.isInnerItem()){this.insertInnerItem(a,this.getContainer().innerIndexOf(a))}else {this.undockItem(a);this.dockItem(a)}},onItemCenteredChange:function(a,c){var b='$centerWrapper';if(a.getFloated()){a.center()}else {if(c){this.insertPositionedItem(a);a.link(b,new Ext.util.Wrapper({className:this.centerCls},a.element))}else {a.unlink([b]);this.removePositionedItem(a)}}},onItemPositionedChange:function(a,b){if(b){this.insertPositionedItem(a)}else {this.removePositionedItem(a)}},onAfterItemDockedChange:function(a,c,b){if(a.initialized){if(b){this.undockItem(a,b)}if(c){this.dockItem(a)}}},dockItem:function(d){var g=this,p=Ext.layout.wrapper.BoxDock,f=g.dockedItems,q=f.length,c=g.getContainer(),v=c.indexOf(d),r=g.positionDirectionMap,o=r[d.getDocked()],h=g.dockInnerWrapper,s=!h,m,j,n,w,u,l,i,t,b,a,e,k;if(s){h=new Ext.layout.wrapper.Inner({container:c})}if(q===0){f.push(d);a=new p({container:c,direction:o,manageBorders:c.manageBorders});a.getElement().replace(h.getElement(),!1);a.setInnerWrapper(h);a.addItem(d)}else {for(j=0;j<q;j++){n=f[j];w=c.indexOf(n);if(w>v){i=u||f[0];f.splice(j,0,d);break}u=n}if(!i){i=f[q-1];f.push(d)}t=i.getDocked();b=i.$dockWrapper;m=r[t];if(o===m){b.addItem(d)}else {l=b.getItemsSlice(v);a=new p({container:c,direction:o});if(l.length>0){if(l.length===b.itemsCount){e=b;a.getElement().replace(e.getElement(),!1);a.setInnerWrapper(e)}else {e=new p({container:c,direction:m});k=b.getInnerWrapper();a.setInnerWrapper(e);b.setInnerWrapper(a);e.setInnerWrapper(k);e.addItems(l)}}else {k=b.getInnerWrapper();b.setInnerWrapper(a);a.setInnerWrapper(k)}a.addItem(d)}}if(a){g.link('dockOuterWrapper',a)}if(s){g.link('dockInnerWrapper',h)}if(c.initialized){g.handleDockedItemBorders()}},getDockWrapper:function(){var a=this.dockedItems;if(a.length>0){return a[0].$dockWrapper}return null},undockItem:function(a,g){var b=this,f=b.dockedItems,d,c,e=a.$dockWrapper;if(e){e.removeItem(a,g)}if(b.getContainer().initialized){d=a.lastBorderMask;c=a.lastBorderCollapse;if(d){a.lastBorderMask=0;a.removeCls(b.noBorderClassTable[d])}if(c){a.lastBorderCollapse=0;a.removeCls(b.getBorderCollapseTable()[c])}b.handleDockedItemBorders()}Ext.Array.remove(f,a)},destroy:function(){this.dockedItems=null;Ext.destroy(this.getAnimation());this.callParent()},noBorderClassTable:[0,Ext.baseCSSPrefix+'noborder-l',Ext.baseCSSPrefix+'noborder-b',Ext.baseCSSPrefix+'noborder-bl',Ext.baseCSSPrefix+'noborder-r',Ext.baseCSSPrefix+'noborder-rl',Ext.baseCSSPrefix+'noborder-rb',Ext.baseCSSPrefix+'noborder-rbl',Ext.baseCSSPrefix+'noborder-t',Ext.baseCSSPrefix+'noborder-tl',Ext.baseCSSPrefix+'noborder-tb',Ext.baseCSSPrefix+'noborder-tbl',Ext.baseCSSPrefix+'noborder-tr',Ext.baseCSSPrefix+'noborder-trl',Ext.baseCSSPrefix+'noborder-trb',Ext.baseCSSPrefix+'noborder-trbl'],edgeMasks:{top:8,right:4,bottom:2,left:1},handleDockedItemBorders:function(B){var e=this,j=0,p=8,o=4,m=2,n=1,i=e.getContainer(),t=i.getBodyBorder&&i.getBodyBorder(),k=i.getBorder(),z=e.collapsed,A=e.edgeMasks,l=e.noBorderClassTable,w=i.items.generation,x=i.boxScrollerElement||i.bodyElement,a,r,s,b,u,y,d,q,h,c,g,f,v;if((!B&&(e.initializedBorders===w))||!i.manageBorders){return}g=[];f=[];r=e.getBorderCollapseTable();l=e.getBorderClassTable?e.getBorderClassTable():l;e.initializedBorders=w;e.collapsed=!1;s=i.getDockedItems();e.collapsed=z;v=i.getHeader&&i.getHeader();if(v){s=([v]).concat(s)}for(u=0,y=s.length;u<y;u++){d=s[u];if(d.getHidden()){continue}q=d.isPanelHeader?d.getPosition():d.getDocked();c=b=0;g.length=0;f.length=0;if(q!=='bottom'){if(j&p){a=d.border}else {a=k;if(a!==!1){b+=p}}if(a===!1){c+=p}}if(q!=='left'){if(j&o){a=d.border}else {a=k;if(a!==!1){b+=o}}if(a===!1){c+=o}}if(q!=='top'){if(j&m){a=d.border}else {a=k;if(a!==!1){b+=m}}if(a===!1){c+=m}}if(q!=='right'){if(j&n){a=d.border}else {a=k;if(a!==!1){b+=n}}if(a===!1){c+=n}}if((h=d.lastBorderMask)!==c){d.lastBorderMask=c;if(h){f[0]=l[h]}if(c){g[0]=l[c]}}if((h=d.lastBorderCollapse)!==b){d.lastBorderCollapse=b;if(h){f.push.apply(f,r[h])}if(b){g.push.apply(g,r[b])}}if(f.length){d.removeCls(f)}if(g.length){d.addCls(g)}j|=A[q]}c=b=0;g.length=0;f.length=0;if(j&p){a=t}else {a=k;if(a!==!1){b+=p}}if(a===!1){c+=p}if(j&o){a=t}else {a=k;if(a!==!1){b+=o}}if(a===!1){c+=o}if(j&m){a=t}else {a=k;if(a!==!1){b+=m}}if(a===!1){c+=m}if(j&n){a=t}else {a=k;if(a!==!1){b+=n}}if(a===!1){c+=n}if((h=e.lastBodyBorderMask)!==c){e.lastBodyBorderMask=c;if(h){f[0]=l[h]}if(c){g[0]=l[c]}}if((h=e.lastBodyBorderCollapse)!==b){e.lastBodyBorderCollapse=b;if(h){f.push.apply(f,r[h])}if(b){g.push.apply(g,r[b])}}if(f.length){x.removeCls(f)}if(g.length){x.addCls(g)}},borderCollapseMap:{},getBorderCollapseTable:function(){var k=this,e=k.borderCollapseMap,j=k.getContainer(),f=j.classCls,c=j.getUi(),m=c||'default',d,a,i,b,l,g,o,h,n;e=e[f]||(e[f]={});a=e[m];if(!a){i=j.classClsList;e[m]=a=[[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]];d=[0];if(c){d=d.concat(c.split(k.spaceRe))}n=d.length;for(g=0,o=i.length;g<o;g++){f=i[g];for(h=0;h<n;h++){c=d[h];l=(c?('-'+c):'');b=f+l+'-outer-border-';a[1].push(b+'l');a[2].push(b+'b');a[3].push(b+'bl');a[4].push(b+'r');a[5].push(b+'rl');a[6].push(b+'rb');a[7].push(b+'rbl');a[8].push(b+'t');a[9].push(b+'tl');a[10].push(b+'tb');a[11].push(b+'tbl');a[12].push(b+'tr');a[13].push(b+'trl');a[14].push(b+'trb');a[15].push(b+'trbl')}}}return a},setConfig:function(b,e,c){var a=b,d=this.alias,f=a.type;if(b){if(typeof b==='string'){a={};a[b]=e}else {c=e}if(!f||(d&&d.indexOf('layout.'+f)>-1)){this.callParent([a,c])}}return this},privates:{renderInnerItem:function(b,a){b.setRendered(!0,a)}}});Ext.define('Ext.Indicator',{extend:Ext.Component,xtype:'indicator',config:{activeIndex:null,count:null,direction:'horizontal',tapMode:'direction'},activeCls:Ext.baseCSSPrefix+'indicator-active',baseCls:Ext.baseCSSPrefix+'indicator',itemCls:Ext.baseCSSPrefix+'indicator-item',defaultBindProperty:'activeIndex',twoWayBindable:['activeIndex'],isIndicator:!0,constructor:function(a){this.indicators=[];this.callParent([a])},initialize:function(){this.callParent();this.element.on({tap:'onTap',scope:this})},doDestroy:function(){Ext.destroy(this.indicators);this.callParent()},updateActiveIndex:function(f,e){var d=this.activeCls,c=this.indicators,a=c[e],b=c[f];if(a){a.removeCls(d)}if(b){b.addCls(d)}},updateCount:function(b){var a=this.indicators;while(a.length<b){this.doAdd()}while(a.length>b){this.doRemove()}},updateDirection:function(a,b){this.element.replaceCls(b,a,this.baseCls)},sync:function(b,a){if(Ext.isNumber(b)){this.setCount(b)}if(Ext.isNumber(a)){this.setActiveIndex(a)}return this},add:function(){var a=this.getCount();return this.setCount(++a)},removeAll:function(){return this.setCount(0)},remove:function(){var a=this.getCount();return this.setCount(--a)},doAdd:function(){var a=this.indicators;a.push(this.element.createChild({tag:'span',cls:this.itemCls}));return this},doRemove:function(){var b=this.indicators,a=b.pop();if(a){a.destroy()}return this},onTap:function(a){var b=this.getTapMode();if(b==='item'){this.onTapItem(a)}else {this.onTapDirection(a)}},onTapItem:function(d){var a=this,c=d.getTarget('.'+a.itemCls,1,!0),b;if(c){b=a.indicators.indexOf(c);if(b!==-1){a.fireEvent('indicatortap',a,b,c)}}else {a.onTapDirection(d)}},onTapDirection:function(h){var b=this,c=b.getDirection(),d=h.touch,a=b.element.getBox(),e=a.left+(a.width/2),f=a.top+(a.height/2),g=(c==='horizontal'&&d.pageX>=e)||(c==='vertical'&&d.pageY>=f)?'next':'previous';b.fireEvent(g,b)}});Ext.define('Ext.layout.card.fx.Abstract',{extend:Ext.Evented,mixins:[Ext.mixin.Factoryable],alias:'layout.card.fx.abstract',isAnimation:!0,config:{direction:null,duration:null,reverse:null,layout:null},updateLayout:function(a){if(a){this.enable()}},enable:function(){var a=this.getLayout();if(a){a.on('beforeactiveitemchange','onActiveItemChange',this)}},disable:function(){var a=this.getLayout();if(this.isAnimating){this.stopAnimation()}if(a){a.un('beforeactiveitemchange','onActiveItemChange',this)}},onActiveItemChange:Ext.emptyFn,destroy:function(){var a=this,b=a.getLayout();if(a.isAnimating){a.stopAnimation()}if(b){b.un('beforeactiveitemchange','onActiveItemChange',this)}a.setLayout(null);if(a.observableId){a.fireEvent('destroy',this)}a.callParent()}});Ext.define('Ext.layout.card.fx.Style',{extend:Ext.layout.card.fx.Abstract,config:{inAnimation:{before:{visibility:null},preserveEndState:!1,replacePrevious:!0},outAnimation:{preserveEndState:!1,replacePrevious:!0}},isAnimating:!1,constructor:function(c){var b,a;this.callParent([c]);this.endAnimationCounter=0;b=this.getInAnimation();a=this.getOutAnimation();b.on('animationend','incrementEnd',this);a.on('animationend','incrementEnd',this)},updateDirection:function(a){this.getInAnimation().setDirection(a);this.getOutAnimation().setDirection(a)},updateDuration:function(a){this.getInAnimation().setDuration(a);this.getOutAnimation().setDuration(a)},updateReverse:function(a){this.getInAnimation().setReverse(a);this.getOutAnimation().setReverse(a)},incrementEnd:function(){this.endAnimationCounter++;if(this.endAnimationCounter>1){this.endAnimationCounter=0;this.fireEvent('animationend',this)}},applyInAnimation:function(b,a){return Ext.factory(b,Ext.fx.Animation,a)},applyOutAnimation:function(b,a){return Ext.factory(b,Ext.fx.Animation,a)},updateInAnimation:function(a){a.setScope(this)},updateOutAnimation:function(a){a.setScope(this)},onActiveItemChange:function(i,b,f,g){var c=this,e,h,d,a;if(b&&f&&f.isPainted()){d=c.getInAnimation();a=c.getOutAnimation();e=b.renderElement;h=f.renderElement;d.setElement(e);a.setElement(h);a.setOnEnd(function(){c.isAnimating=!1;g.resume()});e.dom.style.setProperty('visibility','hidden','important');b.show();i.renderInnerItem(b,!0);c.isAnimating=!0;Ext.Animator.run([a,d]);g.pause()}},destroy:function(){Ext.destroy(this.getInAnimation(),this.getOutAnimation());this.callParent()}});Ext.define('Ext.layout.card.fx.Cover',{extend:Ext.layout.card.fx.Style,alias:'layout.card.fx.cover',config:{reverse:null,inAnimation:{before:{'z-index':100},after:{'z-index':0},type:'slide',easing:'ease-out'},outAnimation:{easing:'ease-out',from:{opacity:0.99},to:{opacity:1},out:!0}}});Ext.define('Ext.layout.card.fx.Cube',{extend:Ext.layout.card.fx.Style,alias:'layout.card.fx.cube',config:{reverse:null,inAnimation:{type:'cube'},outAnimation:{type:'cube',out:!0}}});Ext.define('Ext.layout.card.fx.Serial',{extend:Ext.layout.card.fx.Style,duration:500,updateDuration:function(d){var a=d/2,b=this.getInAnimation(),c=this.getOutAnimation();b.setDelay(a);b.setDuration(a);c.setDuration(a)}});Ext.define('Ext.layout.card.fx.Fade',{extend:Ext.layout.card.fx.Serial,alias:'layout.card.fx.fade',config:{reverse:null,inAnimation:{type:'fade',easing:'ease-out'},outAnimation:{type:'fade',easing:'ease-out',out:!0}}});Ext.define('Ext.layout.card.fx.Flip',{extend:Ext.layout.card.fx.Serial,alias:'layout.card.fx.flip',config:{inAnimation:{type:'flip',half:!0,easing:'ease-out',before:{'backface-visibility':'hidden'},after:{'backface-visibility':null}},outAnimation:{type:'flip',half:!0,easing:'ease-in',before:{'backface-visibility':'hidden'},after:{'backface-visibility':null},out:!0}},onActiveItemChange:function(c,b,e,d){var a=b.element.getParent();a.addCls(Ext.baseCSSPrefix+'layout-card-perspective');this.on('animationend',function(){a.removeCls(Ext.baseCSSPrefix+'layout-card-perspective')},this,{single:!0});this.callParent(arguments)}});Ext.define('Ext.layout.card.fx.Pop',{extend:Ext.layout.card.fx.Serial,alias:'layout.card.fx.pop',config:{inAnimation:{type:'pop',easing:'ease-out'},outAnimation:{type:'pop',easing:'ease-in',out:!0}}});Ext.define('Ext.layout.card.fx.Reveal',{extend:Ext.layout.card.fx.Style,alias:'layout.card.fx.reveal',config:{inAnimation:{easing:'ease-out',from:{opacity:0.99},to:{opacity:1}},outAnimation:{before:{'z-index':100},after:{'z-index':0},type:'slide',easing:'ease-out',out:!0}}});Ext.define('Ext.layout.card.fx.Scroll',{extend:Ext.layout.card.fx.Abstract,alias:'layout.card.fx.scroll',config:{duration:150},getEasing:function(){var a=this.easing;if(!a){this.easing=a=new Ext.fx.easing.Linear()}return a},updateDuration:function(a){this.getEasing().setDuration(a)},onActiveItemChange:function(l,e,j,k){var f=this.getDirection(),g=this.getEasing(),b,i,h,d,c,a;if(e&&j){if(this.isAnimating){this.stopAnimation()}e.setWidth('100%');e.setHeight('100%');b=this.getLayout().container.bodyElement;d=b.getWidth();c=b.getHeight();i=e.renderElement;h=j.renderElement;this.oldItem=j;this.newItem=e;this.containerElement=b;this.currentEventController=k;this.isReverse=a=this.getReverse();e.show();if(f==='right'){f='left';this.isReverse=a=!a}else if(f==='down'){f='up';this.isReverse=a=!a}if(f==='left'){if(a){g.setConfig({startValue:d,endValue:0});b.dom.scrollLeft=d;h.setLeft(d)}else {g.setConfig({startValue:0,endValue:d});i.setLeft(d)}}else {if(a){g.setConfig({startValue:c,endValue:0});b.dom.scrollTop=c;h.setTop(c)}else {g.setConfig({startValue:0,endValue:c});i.setTop(c)}}this.startAnimation();k.pause()}},startAnimation:function(){this.isAnimating=!0;this.getEasing().setStartTime(Date.now());Ext.AnimationQueue.start(this.doAnimationFrame,this)},doAnimationFrame:function(){var b=this.getEasing(),a=this.getDirection(),c='scrollTop',d;if(a==='left'||a==='right'){c='scrollLeft'}if(b.isEnded){this.stopAnimation()}else {d=b.getValue();this.containerElement.dom[c]=d}},stopAnimation:function(){var a=this,e=a.getDirection(),d='setTop',c=a.oldItem,b=a.newItem;if(e==='left'||e==='right'){d='setLeft'}a.currentEventController.resume();if(a.isReverse&&c&&c.renderElement&&c.renderElement.dom){c.renderElement[d](null)}else if(b&&b.renderElement&&b.renderElement.dom){b.renderElement[d](null)}Ext.AnimationQueue.stop(this.doAnimationFrame,this);a.isAnimating=!1;a.fireEvent('animationend',a)}});Ext.define('Ext.layout.card.fx.ScrollCover',{extend:Ext.layout.card.fx.Scroll,alias:'layout.card.fx.scrollcover',onActiveItemChange:function(j,b,i,h){var d,e,c,g,a,f;this.currentEventController=h;this.inItem=b;if(b&&i){d=this.getLayout().container.bodyElement;e=d.getSize();c=this.calculateXY(e);g={easing:this.getEasing(),duration:this.getDuration()};b.renderElement.dom.style.setProperty('visibility','hidden','important');a=b.setTranslatable(!0).getTranslatable();f=i.setTranslatable(!0).getTranslatable();f.translate({x:0,y:0});a.translate({x:c.left,y:c.top});a.getWrapper().dom.style.setProperty('z-index','100','important');b.show();a.on({animationstart:'onInAnimationStart',animationend:'onInAnimationEnd',scope:this});a.translateAnimated({x:0,y:0},g);h.pause()}},onInAnimationStart:function(){this.inItem.renderElement.dom.style.removeProperty('visibility')},onInAnimationEnd:function(){var a;if(!this.destroyed){a=this.inItem.getTranslatable().getWrapper();a.dom.style.removeProperty('z-index');this.currentEventController.resume()}}});Ext.define('Ext.layout.card.fx.ScrollReveal',{extend:Ext.layout.card.fx.Scroll,alias:'layout.card.fx.scrollreveal',onActiveItemChange:function(j,b,c,i){var e,f,d,h,a,g;this.currentEventController=i;this.outItem=c;this.inItem=b;if(b&&c){e=this.getLayout().container.bodyElement;f=e.getSize();d=this.calculateXY(f);h={easing:this.getEasing(),duration:this.getDuration()};a=c.setTranslatable(!0).getTranslatable();g=b.setTranslatable(!0).getTranslatable();a.getWrapper().dom.style.setProperty('z-index','100','important');a.translate({x:0,y:0});g.translate({x:0,y:0});b.show();a.on({animationend:'onOutAnimationEnd',scope:this});a.translateAnimated({x:d.x,y:d.y},h);i.pause()}},onOutAnimationEnd:function(){var a;if(!this.destroyed){a=this.outItem.getTranslatable().getWrapper();a.dom.style.removeProperty('z-index');this.currentEventController.resume()}}});Ext.define('Ext.layout.card.fx.Slide',{extend:Ext.layout.card.fx.Style,alias:'layout.card.fx.slide',config:{inAnimation:{type:'slide',easing:'ease-out'},outAnimation:{type:'slide',easing:'ease-out',out:!0}}});Ext.define('Ext.layout.Card',{extend:Ext.layout.Auto,alias:'layout.card',type:'card',isCard:!0,config:{indicator:{lazy:!0,$value:{xtype:'indicator',flex:1}}},deferRender:!0,cls:Ext.baseCSSPrefix+'layout-card',itemCls:Ext.baseCSSPrefix+'layout-card-item',applyAnimation:function(a){return a?new Ext.Factory.layoutCardFx(a):null},updateAnimation:function(a,d){var c=this,b;c.autoDirection=null;if(a&&a.isAnimation){a.setLayout(c);b=a.getDirection();if(!b||c.autoDirectionMap[b]){c.autoDirection=b||'horizontal';a.setDirection(null)}}if(d){d.destroy()}},applyIndicator:function(b,a){return Ext.updateWidget(a,b,this,'createIndicator')},createIndicator:function(a){return Ext.apply({ownerCmp:this.getContainer()},a)},updateIndicator:function(d){var b,a,c;if(d){b=this.getContainer();a=b.getInnerItems();c=b.getActiveItem();d.sync(a.length,a.indexOf(c)).on({indicatortap:'onIndicatorTap',next:'next',previous:'previous',scope:this})}},onContainerInitialized:function(a){var e=this,c=a.getInnerAt(0),b=a.getActiveItem(),d=a.getMinHeight();if(Ext.isIE&&d!=null&&a.getHeight()==null){a.setHeight(d)}e.callParent([a]);if(b){b.show();if(c&&c!==b){c.hide()}}a.on('activeitemchange','onContainerActiveItemChange',e)},onContainerActiveItemChange:function(k,h,i){var a=this,e=k.getInnerItems(),f=e.indexOf(h),g=e.indexOf(i),j=a.getAnimation(),b=a.autoDirection,d=b&&b==='horizontal',c;if(b&&f!==-1&&g!==-1){if(f<g){c=d?'right':'up'}else {c=d?'left':'down'}j.setDirection(c)}a.fireEventedAction('activeitemchange',[a,h,i],'doActiveItemChange',a)},onItemInnerStateChange:function(a,e,d){var b,c;this.callParent([a,e,d]);b=this.getContainer();c=b.getActiveItem();if(e){if(c!==b.innerIndexOf(a)&&c!==a&&a!==b.pendingActiveItem){a.hide()}}else {if(!d&&!a.destroyed&&a.destroying!==!0){a.show()}}},doActiveItemChange:function(f,a,b){var e=f.getConfig('indicator',null,!0),d,c;if(b&&!b.destroyed){b.hide()}if(a&&!a.destroyed){f.showItem(a);if(e){d=this.getContainer();c=d.getInnerItems();e.setActiveIndex(c.indexOf(a))}}},onItemAdd:function(c,d){var a,b;this.callParent([c,d]);if(c.isInnerItem()){a=this.getConfig('indicator',null,!0);if(a){a.add()}b=c.element.dom.style;b.width=b.height=''}},onItemRemove:function(a,f,e){var b,d,c;this.callParent([a,f,e]);if(a.isInnerItem()){b=this.getConfig('indicator',null,!0);if(b){b.remove()}d=a.getWidth();c=a.getHeight();a.setWidth(null).setWidth(d);a.setHeight(null).setHeight(c)}},next:function(){var b=this.getContainer(),a=b.getActiveItem(),c=b.getInnerItems(),d=c.indexOf(a);a=c[d+1];if(a){b.setActiveItem(a)}},previous:function(){var b=this.getContainer(),a=b.getActiveItem(),c=b.getInnerItems(),d=c.indexOf(a);a=c[d-1];if(a){b.setActiveItem(a)}},onIndicatorTap:function(c,b){var a=this.getContainer();a.setActiveItem(b)},destroy:function(){Ext.destroy(this.getAnimation(),this.getIndicator());this.callParent()},privates:{autoDirectionMap:{horizontal:1,vertical:1},renderInnerItem:function(a,b){if(!this.deferRender||this.getContainer().getActiveItem()===a){this.callParent([a,b])}},showItem:function(a){a.show();if(this.getContainer().rendered){a.setRendered(!0,!0)}}}});Ext.define('Ext.util.InputBlocker',{singleton:!0,blockInputs:function(){if(Ext.browser.is.ie){Ext.select('.x-field-text .x-input:not(.x-item-disabled) .x-input-el, .x-field-textarea '+'.x-input:not(.x-item-disabled) .x-input-el, .x-field-search '+'.x-input:not(.x-item-disabled) .x-input-el').each(function(a){if(a.dom.offsetWidth>0){a.dom.setAttribute('disabled',!0);a.dom.setAttribute('overlayfix',!0)}})}},unblockInputs:function(){if(Ext.browser.is.ie){Ext.select('[overlayfix]').each(function(a){a.dom.removeAttribute('disabled');a.dom.removeAttribute('overlayfix')})}}});Ext.define('Ext.viewport.Default',function(){var d=1,a=2,c=4,b=8,f={top:d,right:a,bottom:c,left:b},g={"1":c,"2":b,"4":d,"8":a},e={left:'right',right:'left',top:'bottom',bottom:'top',up:'bottom',down:'top'};return {extend:Ext.Container,xtype:'viewport',PORTRAIT:'portrait',LANDSCAPE:'landscape',nameHolder:!0,config:{autoMaximize:!1,autoBlurInput:!0,preventZooming:!1,autoRender:!0,layout:'card',width:'100%',height:'100%',menus:{},orientation:null,swipeThreshold:30},classCls:Ext.baseCSSPrefix+'viewport',getTemplate:function(){var a=this.callParent();if(!Ext.feature.has.MatchMedia){a.unshift({reference:'orientationElement',className:Ext.baseCSSPrefix+'orientation-inspector',children:[{className:Ext.baseCSSPrefix+'orientation-inspector-landscape'}]})}return a},isReady:!1,isViewport:!0,isMaximizing:!1,id:'ext-viewport',isInputRegex:/^(input|textarea|select|a)$/i,isInteractiveWebComponentRegEx:/^(audio|video)$/i,notScalableRe:/user-scalable=no/,focusable:!1,focusEl:null,ariaEl:null,allSidesCls:[Ext.baseCSSPrefix+'top',Ext.baseCSSPrefix+'right',Ext.baseCSSPrefix+'bottom',Ext.baseCSSPrefix+'left'],sideClsMap:{top:Ext.baseCSSPrefix+'top',right:Ext.baseCSSPrefix+'right',bottom:Ext.baseCSSPrefix+'bottom',left:Ext.baseCSSPrefix+'left'},hasViewportCls:Ext.baseCSSPrefix+'has-viewport',fixedCls:Ext.baseCSSPrefix+'fixed-viewport',fullscreenItemCls:Ext.baseCSSPrefix+'fullscreen',constructor:function(c){var a=this,b;a.doPreventPanning=a.doPreventPanning.bind(a);a.doPreventZooming=a.doPreventZooming.bind(a);a.maximizeOnEvents=['ready','orientationchange'];window.devicePixelRatio=window.devicePixelRatio||1;a.callParent([c]);a.updateSize();a.windowOuterHeight=a.getWindowOuterHeight();b=a.getScrollable();if(!b){b=Ext.getViewportScroller().setConfig({x:!1,y:!1});b.component=a}Ext.setViewportScroller(b);Ext.getBody().setStyle('overflow','hidden');Ext.get(document.documentElement).addCls(a.hasViewportCls);a.stretchHeights=a.stretchHeights||{};if(Ext.feature.has.OrientationChange){a.addWindowListener('orientationchange',a.onOrientationChange.bind(a))}if(!Ext.os.is.iOS||!a.isScalable()){Ext.get(document.documentElement).addCls(a.fixedCls)}Ext.GlobalEvents.on('resize','onWindowResize',a,{priority:1000});Ext.onDocumentReady(a.onDomReady,a);return a},initialize:function(){var a=this;a.addMeta('apple-mobile-web-app-capable','yes');a.addMeta('apple-touch-fullscreen','yes');a.callParent()},getRefItems:function(e){var c=this.getMenus(),b=this.callParent([e]),d,a;for(d in c){a=c[d];if(a){Ext.Array.include(b,a)}}return b},initInheritedState:function(c,d){var a=this,b=Ext.rootInheritedState;if(c!==b){a.initInheritedState(a.inheritedState=b,a.inheritedStateInner=Ext.Object.chain(b))}else {a.callParent([c,d])}},onAppLaunch:function(){var a=this;if(!a.isReady){a.onDomReady()}},onDomReady:function(){var a=this;if(a.isReady){return}a.isReady=!0;a.updateSize();a.onReady();a.fireEvent('ready',a);Ext.GlobalEvents.fireEvent('viewportready',a)},onReady:function(){if(this.getAutoRender()){this.render()}},render:function(){var a=this,b=Ext.getBody();if(!a.rendered){a.callParent([b,Ext.floatRoot]);a.setOrientation(a.determineOrientation());Ext.getBody().addCls(Ext.baseCSSPrefix+a.getOrientation())}},applyAutoMaximize:function(a){return Ext.browser.is.WebView?!1:a},updateAutoMaximize:function(b){var a=this;if(b){a.on('ready','doAutoMaximizeOnReady',a,{single:!0});a.on('orientationchange','doAutoMaximizeOnOrientationChange',a)}else {a.un('ready','doAutoMaximizeOnReady',a);a.un('orientationchange','doAutoMaximizeOnOrientationChange',a)}},updatePreventPanning:function(a){this.toggleWindowListener(a,'touchmove',this.doPreventPanning,!1)},updatePreventZooming:function(a){var b=Ext.feature.has.TouchEvents?'touchstart':'mousedown';this.toggleWindowListener(a,b,this.doPreventZooming,!1)},doAutoMaximizeOnReady:function(){var a=this;a.isMaximizing=!0;a.on('maximize',function(){a.isMaximizing=!1;a.updateSize();a.fireEvent('ready',a)},a,{single:!0});a.maximize()},doAutoMaximizeOnOrientationChange:function(){var a=this;a.isMaximizing=!0;a.on('maximize',function(){a.isMaximizing=!1;a.updateSize()},a,{single:!0});a.maximize()},doPreventPanning:function(a){var d=this,b=a.target,c;if(d.isInteractiveWebComponentRegEx.test(b.tagName)&&a.touches&&a.touches.length>0){c=a.touches[0];if(c&&c.target&&d.isInputRegex.test(c.target.tagName)){return}}if(b&&b.nodeType===1&&!d.isInputRegex.test(b.tagName)){a.preventDefault()}},doPreventZooming:function(a){if('button' in a&&a.button!==0){return}var b=a.target,d=this.isInputRegex,c;if(this.isInteractiveWebComponentRegEx.test(b.tagName)&&a.touches&&a.touches.length>0){c=a.touches[0];if(c&&c.target&&d.test(c.target.tagName)){return}}if(b&&b.nodeType===1&&!d.test(b.tagName)){a.preventDefault()}},addWindowListener:function(b,c,a){window.addEventListener(b,c,Boolean(a))},removeWindowListener:function(b,c,a){window.removeEventListener(b,c,Boolean(a))},supportsOrientation:function(){return Ext.feature.has.Orientation},supportsMatchMedia:function(){return Ext.feature.has.MatchMedia},onOrientationChange:function(){this.setOrientation(this.determineOrientation())},determineOrientation:function(){var a=this,c=a.orientationElement,b,d;if(a.supportsOrientation()){b=a.getWindowOrientation();if(Math.abs(b)===90||b===270){return a.LANDSCAPE}return a.PORTRAIT}if(a.supportsMatchMedia()){return window.matchMedia('(orientation : landscape)').matches?a.LANDSCAPE:a.PORTRAIT}if(c){d=c.first().isVisible();return d?a.LANDSCAPE:a.PORTRAIT}return null},updateOrientation:function(b,a){if(a){this.fireOrientationChangeEvent(b,a)}},fireOrientationChangeEvent:function(b,d){var a=this,c=a.updateSize();Ext.getBody().replaceCls(Ext.baseCSSPrefix+d,Ext.baseCSSPrefix+b);a.fireEvent('orientationchange',a,b,c.width,c.height)},onWindowResize:function(b,c){var a=this,e=a.lastSize.width,d=a.lastSize.height;a.updateSize(b,c);a.setOrientation(a.determineOrientation());if(b!=null){a.fireEvent('resize',this,b,c,e,d)}},updateSize:function(c,b){var a=this.lastSize;a.width=c!==undefined?c:this.getWindowWidth();a.height=b!==undefined?b:this.getWindowHeight();return a},waitUntil:function(g,d,e,a,b){var c=this,f=0;if(!a){a=50}if(!b){b=2000}Ext.defer(function repeat(){f+=a;if(g.call(c)===!0){if(d){d.call(c)}}else {if(f>=b){if(e){e.call(c)}}else {Ext.defer(repeat,a)}}},a)},maximize:function(){this.fireMaximizeEvent()},fireMaximizeEvent:function(){this.updateSize();this.fireEvent('maximize',this)},updateHeight:function(a,b){Ext.getBody().setHeight(a);this.callParent([a,b])},updateWidth:function(a,b){Ext.getBody().setWidth(a);this.callParent([a,b])},scrollToTop:function(){window.scrollTo(0,-1)},getWindowWidth:function(){return window.innerWidth},getWindowHeight:function(){return window.innerHeight},getWindowOuterHeight:function(){return window.outerHeight},getWindowOrientation:function(){return window.orientation},getSize:function(){return this.lastSize},setItemFullScreen:function(a){a.addCls(this.fullscreenItemCls);a.setTop(0);a.setRight(0);a.setBottom(0);a.setLeft(0);this.add(a)},setMenu:function(b,f){var a=this,e,d,c;f=f||{};if(Ext.os.is.iOS&&!a.hasiOSOrientationFix){a.hasiOSOrientationFix=!0;a.on('orientationchange',function(){window.scrollTo(0,0)},a)}d=a.getMenus();if(!a.addedSwipeListener){a.attachSwipeListeners();a.addedSwipeListener=!0}b=a.configureMenu(b,f);e=b.getSide();c=d[e];if(c&&!c.destroyed&&c!==b){a.hideMenu(e);c.setSide(null)}d[e]=b;a.setMenus(d);return b},attachSwipeListeners:function(){var a=this;a.element.on({tap:a.onTap,swipestart:a.onSwipeStart,edgeswipestart:a.onEdgeSwipeStart,edgeswipe:a.onEdgeSwipe,edgeswipeend:a.onEdgeSwipeEnd,scope:a})},configureMenu:function(a,b){var c=a.isComponent,h=c&&!('reveal' in b)?a.getReveal():!!b.reveal,d=(c&&!('cover' in b)?a.getCover():b.cover)!==!1&&!h,f=c&&!('side' in b)?a.getSide():b.side,g;b={hideAnimation:null,showAnimation:null,hidden:!0,floated:d,zIndex:d?null:5,reveal:h,cover:d,side:f};b[e[f]]=null;if(c){g=a.getFloated();if(b.floated!==g){if(a.rendered){if(g){this.remove(a,!1)}else {a.el.dom.parentNode.removeChild(a.el.dom);a.setRendered(!1)}}a.setConfig({top:null,right:null,bottom:null,left:null})}a.setConfig(b,null,{strict:!1})}else {b.xtype='actionsheet';a=Ext.create(Ext.apply(b,a))}b={left:0,right:0,top:0,bottom:0};b[e[f]]=null;a.setConfig(b);a.toggleCls(a.floatingCls,!a.getFloated());a.removeCls(this.getLayout().itemCls);a.toggleCls(Ext.baseCSSPrefix+'menu-cover',d);a.toggleCls(Ext.baseCSSPrefix+'menu-reveal',h);a.replaceCls(this.allSidesCls,this.sideClsMap[f]);a.isViewportMenu=!0;return a},removeMenu:function(a,e){var b=this,c=b.getMenus()||{},d=c[a];if(d){b.hideMenu(a,e);d.removeCls(b.sideClsMap[a])}delete c[a];b.setMenus(c)},showMenu:function(k,l){var j=this,h=f[k],e=j.getMenus()[k],g={translateX:0,translateY:0},i;if(!e||!e.isHidden()){return}if(l===!1){e.show(!1,{side:null});return}j.beforeMenuAnimate(e);i=e.element.measure(h&(b|a)?'w':'h');if(h===b){g.translateX=i}else if(h===a){g.translateX=-i}else if(h===d){g.translateY=i}else if(h===c){g.translateY=-i}e.translate(0,0,{duration:200});if(!e.getFloated()){j.translate(g.translateX,g.translateY,{duration:200})}},hideMenu:function(k,j){var l=this,h=f[k],e=l.getMenus()[k],g={translateX:0,translateY:0},i;j=j!==!1;if(!e||e.isHidden()){return}i=e.element.measure(h&(b|a)?'w':'h');if(h===b){g.translateX=-i}else if(h===a){g.translateX=i}else if(h===d){g.translateY=-i}else if(h===c){g.translateY=i}if(j){e.revertFocus();e.translate(g.translateX,g.translateY,{duration:200,callback:function(){if(!e.destroyed){e.translate(0,0);e.setHidden(!0)}}})}else {e.getTranslatable().stopAnimation();e.setHidden(!0)}if(!e.getFloated()){l.translate(0,0,j?{duration:200}:null)}},hideAllMenus:function(b){var c=this.getMenus(),a;for(a in c){this.hideMenu(a,b)}},hideOtherMenus:function(d,b){var c=this.getMenus(),a;for(a in c){if(d!==a){this.hideMenu(a,b)}}},toggleMenu:function(c){var b=this.getMenus(),a;if(b[c]){a=b[c];a.setDisplayed(a.isHidden())}},applyScrollable:function(a){return this.callParent([a,Ext.getViewportScroller()])},doDestroy:function(){var a=this,c=Ext.get(document.documentElement),b=a._scrollable;c.removeCls(a.hasViewportCls);c.removeCls(a.fixedCls);if(b){b.setConfig({x:!0,y:!0});a._scrollable=null}Ext.un('resize','onWindowResize',a);a.callParent();Ext.Viewport=null},privates:{addMeta:function(c,b){var a=document.createElement('meta');a.setAttribute('name',c);a.setAttribute('content',b);Ext.getHead().append(a)},beforeMenuAnimate:function(e){var k=this,l=e.getSide(),h=f[l],g={translateX:0,translateY:0},j,i;k.hideOtherMenus(l);if(e.getFloated()){k.add(e)}else {Ext.getBody().insertFirst(e.element);if(!e.rendered){e.setRendered(!0)}i=e.getModal();if(i){Ext.getBody().insertFirst(i.element);if(!i.rendered){i.setRendered(!0)}}k.translate(0,0)}e.removeCls(k.getLayout().itemCls);e.show(!1,{side:null});j=e.element.measure(h&(b|a)?'w':'h');if(h===b){g.translateX=-j}else if(h===a){g.translateX=j}else if(h===d){g.translateY=-j}else if(h===c){g.translateY=j}e.translate(g.translateX,g.translateY)},disableTabbing:function(){if(this.tabbingDisabled){return}this.tabbingDisabled=!0;this.callParent()},enableTabbing:function(a){if(!this.tabbingDisabled){return}this.tabbingDisabled=!1;this.callParent([a])},doAddListener:function(b,d,c,f,h,g,e){var a=this;if(b==='ready'&&a.isReady&&!a.isMaximizing){d.call(c);return a}a.callParent([b,d,c,f,h,g,e])},isScalable:function(){var e=this,b=document.querySelectorAll('meta[name="viewport"]'),d=b.length&&b[b.length-1],c=!0,a;if(d){a=d.getAttribute('content');c=!(a&&e.notScalableRe.test(a))}return c},onTap:function(a){},onSwipeStart:function(c){var b=this.sideForSwipeDirection(c.direction),a=this.getMenus()[b];if(a&&!a.owns(c)){this.hideMenu(b)}},onEdgeSwipeStart:function(g){var c=this,a=c.getMenus(),b=a[e[g.direction]],f,d;if(!b||!b.isHidden()){return}g.claimGesture();for(f in a){d=a[f];if(d.isVisible()){return}}c.$swiping=!0;c.beforeMenuAnimate(b)},onEdgeSwipe:function(g){var f=this,l=f.sideForDirection(g.direction),m=f.getMenus()[e[g.direction]],n,i,h,k,j;if(!m||!f.$swiping){return}g.claimGesture();if(g.distance!==f.lastSwipeDistance){f.reverseSwiping=g.distance<f.lastSwipeDistance}f.lastSwipeDistance=g.distance;n=m.element.measure(l&(b|a)?'w':'h');k=Math.min(g.distance-n,0);j=Math.min(g.distance,n);i={translateX:0,translateY:0};h={translateX:0,translateY:0};if(l===b){i.translateX=k;h.translateX=j}else if(l===a){i.translateX=-k;h.translateX=-j}else if(l===d){i.translateY=k;h.translateY=j}else if(l===c){i.translateY=-k;h.translateY=-j}m.translate(i.translateX,i.translateY);if(!m.getFloated()){f.translate(h.translateX,h.translateY)}},onEdgeSwipeEnd:function(o){var j=this,f=j.sideForDirection(o.direction),n=j.getMenus()[e[o.direction]],g=j.reverseSwiping||(o.distance<j.getSwipeThreshold()),i={translateX:0,translateY:0},h={translateX:0,translateY:0},p,m,l,k;if(!n){return}p=n.element.measure(f&(b|a)?'w':'h');m=(o.flick)?o.flick.velocity:0;if(f===a){if(m.x>0){g=!0}}else if(f===b){if(m.x<0){g=!0}}else if(f===d){if(m.y<0){g=!0}}else if(f===c){if(m.y>0){g=!0}}l=g?p:0;k=g?0:-p;if(f===b){i.translateX=-l;h.translateX=-k}else if(f===a){i.translateX=l;h.translateX=k}else if(f===d){i.translateY=-l;h.translateY=-k}else if(f===c){i.translateY=l;h.translateY=k}n.translate(i.translateX,i.translateY,{duration:200,callback:function(){if(g){n.setHidden(!0)}}});if(!n.getFloated()){j.translate(h.translateX,h.translateY,{duration:200})}j.$swiping=!1},sideForDirection:function(a){if(a==='up'){a='top'}else if(a==='down'){a='bottom'}return g[f[a]]},sideForSwipeDirection:function(a){if(a==='up'){return 'top'}if(a==='down'){return 'bottom'}return a},toggleWindowListener:function(d,b,c,a){if(d){this.addWindowListener(b,c,a)}else {this.removeWindowListener(b,c,a)}}}}});Ext.define('Ext.viewport.Ios',{extend:Ext.viewport.Default,isFullscreen:function(){return this.isHomeScreen()},isHomeScreen:function(){return window.navigator.standalone===!0},constructor:function(){this.callParent(arguments);document.documentElement.style.overflow='hidden'},maximize:function(){var b,c,d,a;if(this.isFullscreen()){return this.callParent()}b=this.stretchHeights;c=this.getOrientation();d=this.getWindowHeight();a=b[c];if(window.scrollY>0){this.scrollToTop();if(!a){b[c]=a=this.getWindowHeight()}this.setHeight(a);this.fireMaximizeEvent()}else {if(!a){a=this.getScreenHeight()}this.setHeight(a);this.waitUntil(function(){this.scrollToTop();return d!==this.getWindowHeight()},function(){if(!b[c]){a=b[c]=this.getWindowHeight();this.setHeight(a)}this.fireMaximizeEvent()},function(){a=b[c]=this.getWindowHeight();this.setHeight(a);this.fireMaximizeEvent()},50,1000)}},getScreenHeight:function(){return window.screen[this.getOrientation()===this.PORTRAIT?'height':'width']},scrollToTop:function(){window.scrollTo(0,0)}},function(){if(!Ext.os.is.iOS){return}if(Ext.os.version.lt('3.2')){this.override({constructor:function(){var a=this.stretchHeights={};a[this.PORTRAIT]=416;a[this.LANDSCAPE]=268;return this.callOverridden(arguments)}})}if(Ext.os.version.lt('5')){this.override({fieldMaskClsTest:'-field-mask',doPreventZooming:function(b){var a=b.target;if(a&&a.nodeType===1&&!this.isInputRegex.test(a.tagName)&&a.className.indexOf(this.fieldMaskClsTest)===-1){b.preventDefault()}}})}if(Ext.os.is.iPad){this.override({isFullscreen:function(){return !0}})}if(Ext.os.version.gtEq('7')&&Ext.os.version.lt('8')){if(Ext.os.deviceType==='Tablet'||!Ext.browser.is.Safari||window.navigator.standalone){this.override({constructor:function(){var a={},b={},f=this.determineOrientation(),c=window.screen.height,d=window.screen.width,e=f===this.PORTRAIT?c-window.innerHeight:d-window.innerHeight;a[this.PORTRAIT]=c-e;a[this.LANDSCAPE]=d-e;b[this.PORTRAIT]=d;b[this.LANDSCAPE]=c;this.stretchHeights=a;this.stretchWidths=b;this.callOverridden(arguments);this.on('ready',this.setViewportSizeToAbsolute,this);this.on('orientationchange',this.setViewportSizeToAbsolute,this)},getWindowHeight:function(){return this.stretchHeights[this.getOrientation()]},getWindowWidth:function(){return this.stretchWidths[this.getOrientation()]},setViewportSizeToAbsolute:function(){this.setWidth(this.getWindowWidth());this.setHeight(this.getWindowHeight())}})}if(Ext.os.deviceType==='Tablet'){this.override({constructor:function(){this.callOverridden(arguments);window.addEventListener('scroll',function(){if(window.scrollX!==0){window.scrollTo(0,window.scrollY)}},!1)},setViewportSizeToAbsolute:function(){window.scrollTo(0,0);this.callOverridden(arguments)},onElementBlur:function(){this.callOverridden(arguments);if(window.scrollY!==0){window.scrollTo(0,0)}}})}}});Ext.define('Ext.viewport.Android',{extend:Ext.viewport.Default,config:{translatable:{type:'csstransform'}},preventPullRefresh:!0,constructor:function(){var a=this;a.callParent(arguments);a.on({orientationchange:'hideKeyboardIfNeeded',scope:a,priority:1001});if(a.preventPullRefresh){Ext.getBody().setStyle({overflow:'hidden'})}},getWindowWidth:function(){return this.element.getWidth()},getWindowHeight:function(){return this.element.getHeight()},getDummyInput:function(){var a=this.dummyInput,c=this.focusedElement,b=Ext.fly(c).getBox();if(!a){this.dummyInput=a=document.createElement('input');a.style.position='absolute';a.style.opacity='0';a.style.pointerEvents='none';document.body.appendChild(a)}a.style.left=b.left+'px';a.style.top=b.top+'px';a.style.display='';return a},doBlurInput:function(d){var c=d.target,b=this.focusedElement,a;if(b&&!this.isInputRegex.test(c.tagName)){a=this.getDummyInput();delete this.focusedElement;a.focus();Ext.defer(function(){a.style.display='none'},100)}},hideKeyboardIfNeeded:function(){var a=this.focusedElement;if(a){delete this.focusedElement;if(Ext.os.version.lt('4')){a.style.display='none'}else {a.blur()}Ext.defer(function(){a.style.display=''},1000)}},doFireOrientationChangeEvent:function(){this.orientationChanging=!0;this.waitUntil(function(){return this.getWindowOuterHeight()!==this.windowOuterHeight},function(){this.windowOuterHeight=this.getWindowOuterHeight();this.updateSize();this.orientationChanging=!1},function(){});return this},getActualWindowOuterHeight:function(){return Math.round(this.getWindowOuterHeight()/window.devicePixelRatio)},maximize:function(){var c=this.stretchHeights,d=this.orientation,b,a;a=c[d];if(!a){c[d]=a=this.getActualWindowOuterHeight()}if(!this.addressBarHeight){this.addressBarHeight=a-this.getWindowHeight()}this.setHeight(a);b=this.isHeightMaximized.bind(this,a);this.scrollToTop();this.waitUntil(b,this.fireMaximizeEvent,this.fireMaximizeEvent)},isHeightMaximized:function(a){this.scrollToTop();return this.getWindowHeight()===a},doPreventZooming:function(b){var a;if('button' in b&&b.button!==0){return}a=b.target;if(a&&a.nodeType===1&&!this.isInputRegex.test(a.tagName)&&!this.focusedElement){b.preventDefault()}}},function(){var a,b,c;if(!Ext.os.is.Android){return}a=Ext.os.version;b=Ext.browser.userAgent;c=/(htc|desire|incredible|ADR6300)/i.test(b)&&a.lt('2.3');if(c){this.override({constructor:function(a){if(!a){a={}}a.autoMaximize=!1;this.watchDogTick=this.watchDogTick.bind(this);Ext.interval(this.watchDogTick,1000);return this.callParent([a])},watchDogTick:function(){this.watchDogLastTick=Ext.Date.now()},doPreventPanning:function(){var c=Ext.Date.now(),b=this.watchDogLastTick,a=c-b;if(a>=2000){return}return this.callParent(arguments)},doPreventZooming:function(){var c=Ext.Date.now(),b=this.watchDogLastTick,a=c-b;if(a>=2000){return}return this.callParent(arguments)}})}if(a.match('2')){this.override({onReady:function(){this.addWindowListener('resize',this.onWindowResize.bind(this));this.callParent(arguments)},scrollToTop:function(){document.body.scrollTop=100},onWindowResize:function(){var c=this.windowWidth,a=this.windowHeight,d=this.getWindowWidth(),b=this.getWindowHeight();if(this.getAutoMaximize()&&!this.isMaximizing&&!this.orientationChanging&&window.scrollY===0&&c===d&&b<a&&((b>=a-this.addressBarHeight)||!this.focusedElement)){this.scrollToTop()}}})}else if(a.gtEq('3.1')){this.override({isHeightMaximized:function(a){this.scrollToTop();return this.getWindowHeight()===a-1}})}else if(a.match('3')){this.override({isHeightMaximized:function(){this.scrollToTop();return !0}})}if(a.gtEq('4')){this.override({doBlurInput:Ext.emptyFn})}});Ext.define('Ext.viewport.WindowsPhone',{extend:Ext.viewport.Default,requires:[],alternateClassName:'Ext.viewport.WP',config:{translatable:{type:'csstransform'}},initialize:function(){var a=function(c){var b=c.srcElement.nodeName.toUpperCase(),a=['INPUT','TEXTAREA'];if(a.indexOf(b)===-1){return !1}};document.body.addEventListener('onselectstart',a);this.addMeta('msapplication-tap-highlight','no');this.callParent()},supportsOrientation:function(){return !1},onWindowResize:function(b,a){this.callParent([b,a]);this.waitUntil(function(){var f=this.windowWidth,e=this.windowHeight,h=this.getWindowWidth(),g=this.getWindowHeight(),c=this.getOrientation(),d=this.determineOrientation();return ((f!==h&&e!==g)&&c!==d)},function(){var c=this.getOrientation(),d=this.determineOrientation();this.fireOrientationChangeEvent(d,c)},Ext.emptyFn,250)}});Ext.define('Ext.viewport.Viewport',{singleton:!0,setup:function(b){var c=Ext.os.name,a;switch(c){case 'Android':a=(Ext.browser.name==='ChromeMobile')?'Default':'Android';break;case 'iOS':a='Ios';break;case 'Windows':a=(Ext.browser.name==='IE')?'WindowsPhone':'Default';break;case 'WindowsPhone':a='WindowsPhone';break;default:a='Default';break;}return Ext.Viewport=Ext.create('Ext.viewport.'+a,b)}});Ext.define('Ext.overrides.app.Application',{override:'Ext.app.Application',config:{viewport:null},quickTips:!1,destroy:function(){this.setQuickTips(!1);this.callParent()},initMainView:function(){var b=this,c=b.viewport=Ext.Viewport,a;b.callParent();a=b.getMainView();c.onAppLaunch();if(a){c.add(a)}},applyQuickTips:function(a){a=a||null;if(a){if(a===!0){a={}}a=new Ext.tip['Manager'](a)}return a},updateQuickTips:function(b,a){if(a){a.destroy()}}});Ext.define('Ext.app.Profile',{mixins:[Ext.mixin.Observable],isProfile:!0,config:{mainView:{$value:null,lazy:!0},application:null,controllers:[],models:[],views:[],stores:[]},constructor:function(a){this.initConfig(a);this.mixins.observable.constructor.apply(this,arguments)},isActive:function(){return !1},init:function(){var a=this.getViews(),b;if(a&&!(a instanceof Array)){for(b in a){Ext.ClassManager.setXType(a[b],b)}}},launch:Ext.emptyFn,onClassExtended:function(d,c,a){var b=a.onBeforeCreated;a.onBeforeCreated=function(j,f){var h=Ext.app.Controller,m=j.$className,g=[],k=j.prototype,l=f.views,e,i;e=f.name;if(e){delete f.name}else {e=m.split('.');e=e[e.length-1]}j._name=e;j._namespace=e=(f.namespace||e).toLowerCase();delete f.namespace;i=h.resolveNamespace(j,f);h.processDependencies(k,g,i,'model',f.models,e);h.processDependencies(k,g,i,'store',f.stores,e);h.processDependencies(k,g,i,'controller',f.controllers,e);if(l){if(l instanceof Array){h.processDependencies(k,g,i,'view',l,e)}else {Ext.app.Profile.processViews(m,l,g)}}Ext.require(g,Ext.Function.pass(b,arguments,this))}},getName:function(){return this.self._name},getNamespace:function(){return this.self._namespace},privates:{statics:{processViews:function(f,c,g){var d,a,e,b;for(b in c){a=c[b];if(typeof a!=='string'){e=a.xclass;d=Ext.apply({extend:e},a);delete d.xclass;Ext.define(c[b]=f+'$'+b,d);a=e}g.push(a)}}}}});Ext.define('Ext.app.domain.View',{extend:Ext.app.EventDomain,isInstance:!0,constructor:function(a){this.callParent([a]);this.controller=a;this.monitoredClasses=[Ext.Widget]},match:function(c,b,d){var a=!1;if(b==='#'){a=d===c.getController()}else {a=c.is(b)}return a},destroy:function(){this.controller=null;this.callParent()}});Ext.define('Ext.app.ViewController',{extend:Ext.app.BaseController,alias:'controller.controller',mixins:[Ext.mixin.Factoryable],isViewController:!0,factoryConfig:{type:'controller'},config:{bindings:{$value:null,lazy:!0},closeViewAction:'destroy'},view:null,constructor:function(a){this.compDomain=new Ext.app.domain.View(this);this.callParent([a])},beforeInit:Ext.emptyFn,init:Ext.emptyFn,initViewModel:Ext.emptyFn,destroy:function(){var a=this,b=a.compDomain,c,d,e;if(a.$hasBinds){c=a.getBindings();for(e in c){d=c[e];if(d){d.destroy()}}}if(b){b.unlisten(a);b.destroy()}a.compDomain=a.view=null;a.callParent()},closeView:function(){var b=this.getView(),a;if(b){a=this.getCloseViewAction();b[a]()}},control:function(a,c){var b=a;if(Ext.isString(a)){b={};b[a]=c}this.compDomain.listen(b,this)},listen:function(a,c){var b=a.component;if(b){a=Ext.apply({},a);delete a.component;this.control(b)}this.callParent([a,c])},applyId:function(a){if(!a){a=Ext.id(null,'controller-')}return a},getReferences:function(){var a=this.view;return a&&a.getReferences()},getView:function(){return this.view},lookup:function(b){var a=this.view;return a&&a.lookup(b)},lookupReference:function(a){return this.lookup(a)},getSession:function(){var a=this.view;return a&&a.lookupSession()},getViewModel:function(){var a=this.view;return a&&a.lookupViewModel()},getStore:function(b){var a=this.getViewModel();return a?a.getStore(b):null},fireViewEvent:function(e,d){var a=this.view,c=!1,b=arguments;if(a){if(a!==d){b=Ext.Array.slice(b);b.splice(1,0,a)}c=a.fireEvent.apply(a,b)}return c},applyBindings:function(a){if(!a){return null}var c=this,g=c.getViewModel(),f=c.getBindTemplateScope(),d,b,e;c.$hasBinds=!0;for(b in a){e=a[b];d=null;if(e){d=g.bind(e,b,c);d.getTemplateScope=f}a[b]=d}return a},privates:{view:null,attachReference:function(b){var a=this.view;if(a){a.attachReference(b)}},getBindTemplateScope:function(){return this.scope},initBindings:function(){this.getBindings()},setView:function(a){this.view=a;if(!this.beforeInit.$nullFn){this.beforeInit(a)}}}});Ext.define('Ext.util.Scheduler',{mixins:[Ext.mixin.Observable],busyCounter:0,lastBusyCounter:0,destroyed:!1,firing:null,notifyIndex:-1,nextId:0,orderedItems:null,passes:0,scheduledCount:0,validIdRe:null,config:{cycleLimit:5,preSort:null,tickDelay:5},suspendOnNotify:!0,constructor:function(a){this.mixins.observable.constructor.call(this,a);this.items=new Ext.util.Bag()},destroy:function(){var a=this,b=a.timer;if(b){window.clearTimeout(b);a.timer=null}a.items.destroy();a.items=a.orderedItems=null;a.callParent()},add:function(c){var a=this,b=a.items;if(b===a.firing){a.items=b=b.clone()}c.id=c.id||++a.nextId;c.scheduler=a;b.add(c);if(!a.sortMap){a.orderedItems=null}},remove:function(c){var a=this,b=a.items;if(a.destroyed){return}if(b===a.firing){a.items=b=b.clone()}if(c.scheduled){a.unscheduleItem(c);c.scheduled=!1}b.remove(c);a.orderedItems=null},sort:function(){var a=this,b=a.items,f={},e=a.getPreSort(),c,d;a.orderedItems=[];a.sortMap=f;if(e){b.sort(e)}b=b.items;for(c=0;c<b.length;++c){d=b[c];if(!f[d.id]){a.sortItem(d)}}a.sortMap=null},sortItem:function(a){var b=this,d=b.sortMap,e=b.orderedItems,c;if(!a.scheduler){b.add(a)}c=a.id;if(!(c in d)){d[c]=0;if(!a.sort.$nullFn){a.sort()}d[c]=1;a.order=b.orderedItems.length;e.push(a)}return b},sortItems:function(a){var b=this,c=b.sortItem;if(a){if(a instanceof Array){Ext.each(a,c,b)}else {Ext.Object.eachValue(a,c,b)}}return b},applyPreSort:function(e){if(typeof e==='function'){return e}var b=e.split(','),d=[],g=b.length,c,a,f;for(a=0;a<g;++a){d[a]=1;f=b[a];if((c=f.charAt(0))==='-'){d[a]=-1}else if(c!=='+'){c=0}if(c){b[a]=f.substring(1)}}return function(j,k){var f=0,a,c,h,i;for(a=0;!f&&a<g;++a){c=b[a];h=j[c];i=k[c];f=d[a]*((h<i)?-1:((i<h)?1:0))}return f}},notify:function(){var a=this,k=a.timer,h=a.getCycleLimit(),f=Ext.GlobalEvents,j=a.suspendOnNotify,g,b,d,e,c,i;if(k){window.clearTimeout(k);a.timer=null}if(!a.firing&&a.scheduledCount){if(j){Ext.suspendLayouts()}while(a.scheduledCount){if(h){--h}else {a.firing=null;break}if(!i){i=!0;if(f.hasListeners.beforebindnotify){f.fireEvent('beforebindnotify',a)}}++a.passes;if(!(c=a.orderedItems)){a.sort();c=a.orderedItems}e=c.length;if(e){a.firing=a.items;for(b=0;b<e;++b){d=c[b];if(d.scheduled){d.scheduled=!1;--a.scheduledCount;a.notifyIndex=b;d.react();if(!a.scheduledCount){break}}}}}a.firing=null;a.notifyIndex=-1;if(j){Ext.resumeLayouts(!0)}}if((g=a.busyCounter)!==a.lastBusyCounter){if(!(a.lastBusyCounter=g)){a.fireEvent('idle',a)}}},onTick:function(){this.timer=null;this.notify()},scheduleItem:function(b){var a=this;++a.scheduledCount;if(!a.timer&&!a.firing){a.scheduleTick()}},scheduleTick:function(){var a=this;if(!a.destroyed&&!a.timer){a.timer=Ext.defer(a.onTick,a.getTickDelay(),a)}},unscheduleItem:function(a){if(this.scheduledCount){--this.scheduledCount}},adjustBusy:function(c){var a=this,b=a.busyCounter+c;a.busyCounter=b;if(b){if(!a.lastBusyCounter){a.lastBusyCounter=b;a.fireEvent('busy',a)}}else if(a.lastBusyCounter&&!a.timer){a.scheduleTick()}},isBusy:function(){return !this.isIdle()},isIdle:function(){return !(this.busyCounter+this.lastBusyCounter)},debugHooks:{$enabled:!1,onCycleLimitExceeded:function(){Ext.raise('Exceeded cycleLimit '+this.getCycleLimit())},scheduleItem:function(a){if(!a){Ext.raise('scheduleItem: Invalid argument')}Ext.log('Schedule item: '+a.getFullName()+' - '+(this.scheduledCount+1));if(a.order<=this.notifyIndex){Ext.log.warn('Suboptimal order: '+a.order+' < '+this.notifyIndex)}this.callParent([a])},unscheduleItem:function(a){if(!this.scheduledCount){Ext.raise('Invalid scheduleCount')}this.callParent([a]);Ext.log('Unschedule item: '+a.getFullName()+' - '+this.scheduledCount)}}});Ext.define('Ext.data.Batch',{mixins:{observable:Ext.mixin.Observable},config:{pauseOnException:!1},current:-1,total:0,running:!1,complete:!1,exception:!1,constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.operations=[];a.exceptions=[]},add:function(a){var b=this,c,d;if(Ext.isArray(a)){for(c=0,d=a.length;c<d;++c){b.add(a[c])}}else {b.total++;a.setBatch(b);b.operations.push(a)}return b},sort:function(){this.operations.sort(this.sortFn)},sortFn:function(b,e){var f=b.order-e.order;if(f){return f}var a=b.entityType,d=e.entityType,c;if(!a||!d){return 0}if(!(c=a.rank)){a.schema.rankEntities();c=a.rank}return (c-d.rank)*b.foreignKeyDirection},start:function(b){var a=this;if(a.destroyed||!a.operations.length||a.running){return a}a.exceptions.length=0;a.exception=!1;a.running=!0;return a.runOperation(Ext.isDefined(b)?b:a.current+1)},abort:function(){var a=this,b;if(a.running){b=a.getCurrent();if(!b.destroyed){b.abort()}}a.running=!1;a.aborted=!0;a.current=undefined},retry:function(){return this.start(this.current)},runNextOperation:function(){var a=this;if(a.running){a.runOperation(a.current+1)}return a},pause:function(){this.running=!1;return this},getOperations:function(){return this.operations},getExceptions:function(){return this.exceptions},getCurrent:function(){var b=null,a=this.current;if(!(a===-1||this.complete)){b=this.operations[a]}return b},getTotal:function(){return this.total},isRunning:function(){return this.running},isComplete:function(){return this.complete},hasException:function(){return this.exception},runOperation:function(d){var a=this,c=a.operations,b=c[d];if(b===undefined){a.running=!1;a.complete=!0;a.fireEvent('complete',a,c[c.length-1])}else {a.current=d;b.setInternalCallback(a.onOperationComplete);b.setInternalScope(a);b.execute()}return a},onOperationComplete:function(b){var a=this,c=b.hasException();if(c){a.exception=!0;a.exceptions.push(b);a.fireEvent('exception',a,b)}if(c&&a.getPauseOnException()){a.pause()}else {a.fireEvent('operationcomplete',a,b);a.runNextOperation()}},destroy:function(){var a=this,e=a.operations,b,c,d;if(a.running){a.abort()}for(c=0,d=a.operations.length;c<d;c++){b=e[c];if(b){if(!b.destroyed&&!b.$destroyOwner){b.destroy()}b[c]=null}}a.operations=a.exceptions=null;a.callParent()}});Ext.define('Ext.data.matrix.Slice',{constructor:function(a,b){this.id=b;this.side=a;this.members={}},attach:function(b){var a=this;a.store=b;b.matrix=a;b.on('load',a.onStoreLoad,a,{single:!0})},commit:function(){var a=this.members,b;for(b in a){a[b][2]=0}},onStoreLoad:function(a){this.update(a.getData().items,0)},update:function(l,d){var e=this,p=Ext.data.matrix.Slice,o=e.side,q=o.index,r=l.length,i=e.id,k=e.members,m=o.inverse,g=m.slices,c,f,j,h,b,a,n;for(j=0;j<r;++j){f=n=null;h=l[j];b=h.isEntity?(n=h).id:h;c=k[b];if(d<0&&c&&c[2]===1){delete k[b];a=g[b];if(a){delete a.members[i]}f=1}else {if(!c){c=[b,b,d];c[q]=i;k[b]=c;a=g[b];if(!a){g[b]=a=new p(m,b)}a.members[i]=c;f=1}else if(d!==c[2]&&d!==0&&!(d===1&&c[2]===0)){c[2]=d;a=g[b];f=1}}if(f){if(e.notify){e.notify.call(e.scope,e,b,d)}if(a&&a.notify){a.notify.call(a.scope,a,i,d)}}}},updateId:function(b){var g=this,c=g.id,f=g.side,e=f.slices,j=e[c],h=j.members,l=f.index,k=f.inverse.slices,i,d,a;g.id=b;e[b]=j;delete e[c];for(d in h){i=h[d];i[l]=b;a=k[d].members;a[b]=a[c];delete a[c]}},destroy:function(){var a=this,b=a.store;if(b){b.matrix=null;b.un('load',a.onStoreLoad,a)}a.notify=a.scope=a.store=a.side=a.members=null;a.callParent()}});Ext.define('Ext.data.matrix.Side',{constructor:function(b,c,d){var a=this;a.matrix=b;a.index=c;a.role=d;a.slices={}},commit:function(){var a=this.slices,b;for(b in a){a[b].commit()}},get:function(a,b){var e=this,c=e.slices,d=c[a]||(c[a]=new Ext.data.matrix.Slice(e,a));return (b||b===0)?d.members[b]:d},update:function(c,d,b){var a=this.get(c);return a.update(d,b)},updateId:function(c,b){var a=this.get(c);if(a){a.updateId(b)}},destroy:function(){var a=this,b=a.slices,c;for(c in b){b[c].destroy()}a.inverse=a.matrix=a.role=a.slices=null;a.callParent()}});Ext.define('Ext.data.matrix.Matrix',{constructor:function(f,c){var a=this,b=c.isManyToMany?c:f.getSchema().getAssociation(c),g=Ext.data.matrix.Side,e=new g(a,0,b.left),d=new g(a,1,b.right);a.association=b;a.session=f;a.left=e;a.right=d;e.inverse=d;d.inverse=e},commit:function(){this.left.commit();this.right.commit()},update:function(b,c,a){return this.left.update(b,c,a)},updateId:function(e,g,f){var c=e.self,d=this.left,b=this.right,a;if(c===d.role.cls){a=d}if(c===b.role.cls){a=b}if(a){a.updateId(g,f)}},destroy:function(){var a=this;a.left.destroy();a.right.destroy();a.association=a.session=a.left=a.right=null;a.callParent()}});Ext.define('Ext.data.session.ChangesVisitor',{constructor:function(c){var a=this,b;a.session=c;b=c.getCrudProperties();a.result=null;a.writerOptions={};a.createKey=b.create;a.readKey=b.read;a.updateKey=b.update;a.dropKey=b.drop},onDirtyRecord:function(b){var c=this,j=c.crud,h=b.phantom,f=b.dropped,m=b.$className,k=(h||f)?'allDataOptions':'partialDataOptions',d=c.writerOptions,l=b.entityName,a,e,g,i;if(h&&f){return !1}j=h?c.createKey:(f?c.dropKey:c.updateKey);d=d[m]||(d[m]={});if(f){if(!(a=d.drop)){d.drop=a={all:b.getProxy().getWriter().getWriteAllFields()}}if(!a.all){g=b.id}}if(!g){if(!(a=d[k])){a=b.getProxy().getWriter().getConfig(k);d[k]=a=Ext.Object.chain(a);c.setupOptions(a)}g=b.getData(a)}i=c.result||(c.result={});e=i[l]||(i[l]={});e=e[j]||(e[j]=[]);e.push(g)},setupOptions:function(a){a.serialize=!0},onMatrixChange:function(d,h,j,i){var b=this,g=d.left.type,e=d.right.role,f=i<0?b.dropKey:b.createKey,a,c;c=b.result||(b.result={});a=c[g]||(c[g]={});a=a[e]||(a[e]={});a=a[f]||(a[f]={});a=a[h]||(a[h]=[]);a.push(j)}});Ext.define('Ext.data.session.ChildChangesVisitor',{extend:Ext.data.session.ChangesVisitor,constructor:function(){this.seen={};this.callParent(arguments)},setupOptions:function(a){this.callParent([a]);a.serialize=!1},onDirtyRecord:function(a){if(this.callParent(arguments)!==!1){if(!a.$source&&(a.dropped||!a.phantom)){this.readEntity(a)}}},readEntity:function(b){var c=this,f=c.readKey,e=b.entityName,i=b.id,h=c.seen,g=e+i,d,a;if(h[g]){return}h[g]=!0;d=c.result||(c.result={});a=d[e]||(d[e]={});a=a[f]||(a[f]=[]);a.push(Ext.apply({},b.modified,b.data))}});Ext.define('Ext.data.session.BatchVisitor',{map:null,constructor:function(a){this.batch=a},getBatch:function(m){var i=this.map,a=this.batch,c,e,k,b,d,f,j,h,l,g;if(i){if(!a){a=new Ext.data.Batch()}for(k in i){c=i[k];e=c.entity;f=e.getProxy();j=f.getBatchActions();delete c.entity;for(d in c){if(j){b=f.createOperation(d,{records:c[d]});b.entityType=e;a.add(b)}else {h=c[d];for(g=0,l=h.length;g<l;++g){b=f.createOperation(d,{records:[h[g]]});b.entityType=e;a.add(b)}}}}}if(a&&m!==!1){a.sort()}return a},onDirtyRecord:function(a){var f=this,c=a.phantom?'create':(a.dropped?'destroy':'update'),d=a.$className,e=(f.map||(f.map={})),b=(e[d]||(e[d]={entity:a.self}));b=b[c]||(b[c]=[]);b.push(a)}});Ext.define('Ext.mixin.Dirty',{mixinId:'dirty',config:{dirty:{$value:!1,lazy:!0}},dirty:!1,_dirtyRecordCount:0,ignoreDirty:!1,recordStateIsDirtyState:!0,isDirty:function(){return this.getDirty()},applyDirty:function(a){return this.ignoreDirty?!1:a},updateDirty:function(b){var a=this;a.dirty=b;if(a.fireEvent&&!a.isDirtyInitializing){a.fireDirtyChange()}},clearRecordStates:function(){var b=this,a=b._crudCounters;if(a){a.C=a.U=a.D=0}b._dirtyRecordCount=0;if(b.recordStateIsDirtyState){b.setDirty(!1)}},fireDirtyChange:function(){var a=this;if(!a.ignoreDirty&&a.hasListeners.dirtychange){a.fireEvent('dirtychange',a,a.dirty)}},trackRecordState:function(f,h){var a=this,b=a._crudCounters||(a._crudCounters={C:0,R:0,U:0,D:0}),i=a._dirtyRecordCount,g=f.crudState,d=f.crudStateWas,e,c;if(h||g!==d){if(!h&&d){--b[d]}if(!(f.phantom&&g==='D')){++b[g]}a._dirtyRecordCount=c=b.C+b.U+b.D;e=!c!==!i;if(e&&a.recordStateIsDirtyState){a.setDirty(c>0)}}return e},untrackRecordState:function(e){var b=this,a=b._crudCounters,g=b._dirtyRecordCount,f=e.crudState,d,c;if(a&&f!=='D'&&!e.erased){--a[f];b._dirtyRecordCount=c=a.C+a.U+a.D;d=!c!==!g;if(d&&b.recordStateIsDirtyState){b.setDirty(c>0)}}return d}});Ext.define('Ext.data.Session',{mixins:[Ext.mixin.Dirty,Ext.mixin.Observable],isSession:!0,config:{schema:'default',parent:null,autoDestroy:!0,crudProperties:{create:'C',read:'R',update:'U',drop:'D'}},crudOperations:[{type:'R',entityMethod:'readEntities'},{type:'C',entityMethod:'createEntities'},{type:'U',entityMethod:'updateEntities'},{type:'D',entityMethod:'dropEntities'}],crudKeys:{C:1,R:1,U:1,D:1},statics:{nextId:1},constructor:function(b){var a=this;a.data={};a.matrices={};a.id=Ext.data.Session.nextId++;a.identifierCache={};a.recordCreator=a.recordCreator.bind(a);a.mixins.observable.constructor.call(a,b)},destroy:function(){var a=this,f=a.matrices,g=a.data,e,d,b,c;for(c in f){f[c].destroy()}for(e in g){d=g[e];for(c in d){b=d[c].record;if(b){b.$source=null;b.unjoin(a)}}}a.identifierCache=a.recordCreator=a.matrices=a.data=null;a.setSchema(null);a.callParent()},adopt:function(a){var c=this,b=a.associations,d;if(a.session!==c){c.add(a);if(b){for(d in b){b[d].adoptAssociated(a,c)}}}},commit:function(){var a=this,g=a.data,f=a.matrices,h=a.getDirty(),e,c,b,d;a.suspendEvent('dirtychange');for(e in g){c=g[e];for(b in c){d=c[b].record;if(d){d.commit()}}}for(b in f){f[b].commit()}a.clearRecordStates();a.resumeEvent('dirtychange');if(a.getDirty()!==h){a.fireDirtyChange()}},createRecord:function(c,b,f){var a=c.$isClass?c:this.getSchema().getEntity(c),e=this.getParent(),d;if(b&&e){d=a.getIdFromData(b);if(e.peekRecord(a,d)){Ext.raise('A parent session already contains an entry for '+a.entityName+': '+d)}}return new a(b,f?null:this)},getChanges:function(){var a=new Ext.data.session.ChangesVisitor(this);this.visitData(a);return a.result},getChangesForParent:function(){var a=new Ext.data.session.ChildChangesVisitor(this);this.visitData(a);return a.result},getRecord:function(b,f,g){var c=this,d=b.isModel,a,i,h,e;if(d){d=b;f=b.id;b=b.self}a=c.peekRecord(b,f);if(!a){i=b.$isClass?b:c.getSchema().getEntity(b);h=c.getParent();if(h){e=h.peekRecord(i,f)}if(e){if(e.isLoading()){d=!1}else {a=e.copy(undefined,c);a.$source=e}}if(!a){if(d){a=d;c.adopt(a)}else {a=i.createWithId(f,null,c);if(g!==!1){a.load(Ext.isObject(g)?g:undefined)}}}}return a},getSaveBatch:function(b){var a=new Ext.data.session.BatchVisitor();this.visitData(a);return a.getBatch(b)},onInvalidAssociationEntity:function(a,b){Ext.raise('Unable to read association entity: '+this.getModelIdentifier(a,b))},onInvalidEntityCreate:function(a,b){Ext.raise('Cannot create, record already not exists: '+this.getModelIdentifier(a,b))},onInvalidEntityDrop:function(a,b){Ext.raise('Cannot drop, record does not exist: '+this.getModelIdentifier(a,b))},onInvalidEntityRead:function(a,b){Ext.raise('Cannot read, record already not exists: '+this.getModelIdentifier(a,b))},onInvalidEntityUpdate:function(a,b,c){if(c){Ext.raise('Cannot update, record dropped: '+this.getModelIdentifier(a,b))}else {Ext.raise('Cannot update, record does not exist: '+this.getModelIdentifier(a,b))}},peekRecord:function(b,f,e){var h=b.$isClass?b:this.getSchema().getEntity(b),g=h.entityName,a=this.data[g],c,d;a=a&&a[f];c=a&&a.record;if(!c&&e){d=this.getParent();c=d&&d.peekRecord(b,f,e)}return c||null},save:function(){var a=this,c=a.getParent(),b;if(c){b=new Ext.data.session.ChildChangesVisitor(a);a.visitData(b);c.update(b.result);a.commit()}},spawn:function(){return new this.self({schema:this.getSchema(),parent:this})},update:function(e){var a=this,n=a.getSchema(),l=a.crudOperations,q=l.length,o=a.crudKeys,p=a.getDirty(),b,d,c,f,g,h,m,j,i,k;a.suspendEvent('dirtychange');a.getSchema().processKeyChecks(!0);for(b in e){d=n.getEntity(b);c=e[b];for(f=0;f<q;++f){g=l[f];h=c[g.type];if(h){a[g.entityMethod](d,h)}}}for(b in e){d=n.getEntity(b);m=d.associations;c=e[b];for(j in c){if(o[j]){continue}i=m[j];k=c[i.role];i.processUpdate(a,k)}}a.resumeEvent('dirtychange');if(a.getDirty()!==p){a.fireDirtyChange()}},afterCommit:function(a){this.trackRecordState(a)},afterDrop:function(a){this.trackRecordState(a)},afterEdit:function(a){this.trackRecordState(a)},afterErase:function(a){this.evict(a)},afterReject:function(a){this.trackRecordState(a)},privates:{add:function(a){var b=this,f=a.id,e=b.getEntry(a.self,f),c,d;a.session=b;e.record=a;b.trackRecordState(a,!0);b.registerReferences(a);c=a.associations;for(d in c){c[d].checkMembership(b,a)}},applySchema:function(a){return Ext.data.schema.Schema.get(a)},createEntities:function(b,g){var c=this,h=g.length,d,e,a,f;for(d=0;d<h;++d){e=g[d];f=b.getIdFromData(e);a=c.peekRecord(b,f);if(!a){a=c.createRecord(b,e,!0);a.phantom=!0;a.crudState='C';c.add(a);a.crudStateWas='C'}else {c.onInvalidEntityCreate(b,f)}}},dropEntities:function(c,d){var g=d.length,b,e,a,f;if(g){f=Ext.isObject(d[0])}for(b=0;b<g;++b){a=d[b];if(f){a=c.getIdFromData(a)}e=this.peekRecord(c,a);if(e){e.drop()}else {this.onInvalidEntityDrop(c,a)}}},evict:function(a){var c=this,e=a.entityName,b=c.data[e],d=a.id;if(b&&b[d]){c.untrackRecordState(a);a.unjoin(c);delete b[d]}},getEntityList:function(e,a){var g=a.length,b,d,c,f;for(b=0;b<g;++b){d=a[b];c=this.peekRecord(e,d);if(c){a[b]=c}else {f=!0;a[b]=null;this.onInvalidAssociationEntity(e,d)}}if(f){a=Ext.Array.clean(a)}return a},getEntry:function(a,c){if(a.isModel){c=a.getId();a=a.self}var f=a.$isClass?a:this.getSchema().getEntity(a),d=f.entityName,e=this.data,b;b=e[d]||(e[d]={});b=b[c]||(b[c]={});return b},getRefs:function(h,d,i){var a=this.getEntry(h),c=a&&a.refs&&a.refs[d.role],g=i&&this.getParent(),b,f,e;if(g){b=g.getRefs(h,d);if(b){for(f in b){e=b[f];if((!c||!c[f])){this.getRecord(e.self,e.id)}}c=a&&a.refs&&a.refs[d.role]}}return c||null},getIdentifier:function(c){var f=this.getParent(),d,b,e,a;if(f){a=f.getIdentifier(c)}else {d=this.identifierCache;b=c.identifier;e=b.getId()||c.entityName;a=d[e];if(!a){if(b.clone){a=b.clone({id:null})}else {a=b}d[e]=a}}return a},getMatrix:function(a,e){var d=a.isManyToMany?a.name:a,c=this.matrices,b;b=c[d];if(!b&&!e){b=c[d]=new Ext.data.matrix.Matrix(this,a)}return b||null},getMatrixSlice:function(a,d){var b=this.getMatrix(a.association),c=b[a.side];return c.get(d)},getModelIdentifier:function(a,b){return b+'@'+a.entityName},onIdChanged:function(a,b,l){var c=this,j=c.matrices,q=a.entityName,s=a.id,g=c.data[q],k=g[b],p=a.associations,h=k.refs,r=c._setNoRefs,d,i,m,n,e,f,o;delete g[b];g[l]=k;for(o in j){j[o].updateId(a,b,l)}if(h){for(e in h){f=h[e];n=p[e];d=n.association;if(!d.isManyToMany){i=d.field.name;for(m in f){f[m].set(i,s,r)}}}}c.registerReferences(a,b)},processManyBlock:function(f,e,d,i){var c=this,b,a,g,h;if(d){for(b in d){a=c.peekRecord(f,b);if(a){g=c.getEntityList(e.cls,d[b]);h=e.getAssociatedItem(a);c[i](e,h,a,g)}else {c.onInvalidAssociationEntity(f,b)}}}},processManyCreate:function(d,b,c,a){if(b){b.add(a)}else {c[d.getterName](null,null,a)}},processManyDrop:function(d,a,c,b){if(a){a.remove(b)}},processManyRead:function(d,b,c,a){if(b){b.setRecords(a)}else {c[d.getterName](null,null,a)}},readEntities:function(b,g){var c=this,h=g.length,d,e,a,f;for(d=0;d<h;++d){e=g[d];f=b.getIdFromData(e);a=c.peekRecord(b,f);if(!a){a=c.createRecord(b,e,!0)}else {c.onInvalidEntityRead(b,f)}a.phantom=!1;c.add(a)}},recordCreator:function(c,b){var d=this,e=b.getIdFromData(c),a=d.peekRecord(b,e,!0);if(!a){a=new b(c,d)}else {a=d.getRecord(b,e);a.mergeData(c)}return a},registerReferences:function(c,h){var k=c.entityName,n=c.id,l=c.data,m=h||h===0,g,e,d,j,a,i,b,f;j=(i=c.references).length;for(e=0;e<j;++e){a=i[e];d=l[a.name];if(d||d===0){a=a.reference;k=a.type;f=a.inverse.role;g=this.getEntry(a.cls,d);b=g.refs||(g.refs={});b=b[f]||(b[f]={});b[n]=c;if(m){delete b[h]}}}},updateEntities:function(c,d){var h=d.length,f,e,a,b,g;if(Ext.isArray(d)){for(f=0;f<h;++f){e=d[f];b=c.getIdFromData(e);a=this.peekRecord(c,b);if(a){a.set(e)}else {this.onInvalidEntityUpdate(c,b)}}}else {for(b in d){e=d[b];a=this.peekRecord(c,b);if(a&&!a.dropped){g=a.set(e)}else {this.onInvalidEntityUpdate(c,b,!!a)}}}},updateReference:function(h,j,b,c){var g=j.reference,f=g.type,d=g.inverse.role,i=h.id,e,a;if(c||c===0){a=this.getEntry(f,c).refs[d];delete a[i]}if(b||b===0){e=this.getEntry(f,b);a=e.refs||(e.refs={});a=a[d]||(a[d]={});a[i]=h}},visitData:function(b){var j=this,n=j.data,k=j.matrices,i,l,d,o,f,e,c,a,m,g,h;j.getSchema().processKeyChecks(!0);for(c in n){i=n[c];for(d in i){a=i[d].record;if(a){if(a.phantom||a.dirty||a.dropped){if(b.onDirtyRecord){b.onDirtyRecord(a)}}else if(b.onCleanRecord){b.onCleanRecord(a)}}}}if(b.onMatrixChange){for(c in k){f=k[c].left;g=f.slices;l=f.role.association;for(d in g){m=g[d];e=m.members;for(o in e){h=(a=e[o])[2];if(h){b.onMatrixChange(l,a[0],a[1],h)}}}}}return b},_setNoRefs:{refs:!1}}});Ext.define('Ext.util.Schedulable',{'abstract':!0,isSchedulable:!0,scheduled:!1,constructor:function(){this.getScheduler().add(this)},destroy:function(){var a=this,b=a.getScheduler();if(b&&!b.destroyed){b.remove(a)}a.scheduler=null;a.schedule=a.react=Ext.emptyFn;a.callParent()},getFullName:function(){return this.name||this.id},privates:{getScheduler:function(){return this.scheduler},schedule:function(){var a=this,b;if(!a.scheduled){b=a.getScheduler();if(b){a.scheduled=!0;if(a.onSchedule){a.onSchedule()}b.scheduleItem(a)}}},unschedule:function(){var b=this,a;if(b.scheduled){a=b.getScheduler();if(a&&!a.destroyed){a.unscheduleItem(b)}b.scheduled=!1}},sort:function(){}}});Ext.define('Ext.app.bind.BaseBinding',{extend:Ext.util.Schedulable,isBinding:!0,calls:0,kind:20,defaultOptions:{},lastValue:undefined,constructor:function(d,c,e,b){var a=this;a.options=b;a.owner=d;a.scope=e;a.callback=c;a.lateBound=Ext.isString(c);if(b&&b.deep){a.deep=!0}a.callParent()},destroy:function(){var a=this,b=a.owner;if(b){b.onBindDestroy(a)}a.callParent();a.scope=a.callback=a.owner=null},isReadOnly:function(){return !0},privates:{getScheduler:function(){var a=this.owner;return a&&a.getScheduler()},getSession:function(){var a=this.owner;return a.isSession?a:a.getSession()},notify:function(b){var a=this,d=a.options||a.defaultOptions,c=a.lastValue;if(!a.calls||a.deep||a.valueChanged(b,c)){++a.calls;a.lastValue=b;if(a.lateBound){a.scope[a.callback](b,c,a)}else {a.callback.call(a.scope,b,c,a)}if(d.single){a.destroy()}}},valueChanged:function(a,b){var c=!0;if(b!==a){if(a&&b&&a instanceof Date&&b instanceof Date){c=a.getTime()!==b.getTime()}}else {c=Ext.isArray(a)}return c}}});Ext.define('Ext.app.bind.Binding',{extend:Ext.app.bind.BaseBinding,constructor:function(a,c,e,d){var b=this;b.callParent([a.owner,c,e,d]);b.stub=a;b.depth=a.depth;if(a.isAvailable()&&!a.scheduled){b.schedule()}},destroy:function(c){var a=this,b=a.stub;if(b&&!c){b.unbind(a);a.stub=null}a.callParent()},bindValidation:function(b,c){var a=this.stub;return a&&a.bindValidation(b,c)},bindValidationField:function(b,c){var a=this.stub;return a&&a.bindValidationField(b,c)},getFullName:function(){return this.fullName||(this.fullName='@('+this.stub.getFullName()+')')},getValue:function(){var b=this,a=b.stub;return a&&a.getValue()},isAvailable:function(){var a=this.stub;return a&&a.isAvailable()},isLoading:function(){var a=this.stub;return a&&a.isLoading()},isReadOnly:function(){var b=this.stub,a=this.options,c=!0;if(!(a&&a.twoWay===!1)){if(b){c=b.isReadOnly()}}return c},refresh:function(){},setValue:function(a){this.stub.set(a)},privates:{getDataObject:function(){var a=this.stub;return a&&a.getDataObject()},getRawValue:function(){var b=this,a=b.stub;return a&&a.getRawValue()},isDescendantOf:function(b){var a=this.stub;return a?(b===a)||a.isDescendantOf(b):!1},react:function(){this.notify(this.getValue())},schedule:function(){if(!this.stub.scheduled){this.callParent()}},sort:function(){var a=this.stub;a.scheduler.sortItem(a)}}});Ext.define('Ext.app.bind.AbstractStub',{extend:Ext.util.Schedulable,children:null,depth:0,generation:1,kind:10,parent:null,constructor:function(b,c){var a=this;a.owner=b;a.name=c;a.callParent()},destroy:function(){var a=this,d=a.children,c=a.bindings,f,b,e;if(c){for(b=0,f=c.length;b<f;++b){c[b].destroy(!0)}}for(e in d){d[e].destroy()}if(a.scheduled){a.unschedule()}a.callParent()},add:function(a){var b=this;(b.children||(b.children={}))[a.name]=a;a.depth=b.depth+1;a.parent=b},getChild:function(b){var a=Ext.isString(b)?b.split('.'):b;if(a&&a.length){return this.descend(a,0)}return this},getFullName:function(){var b=this,a=b.fullName,d=b.parent,c;if(!a){a=b.name||b.id;if(d&&(c=d.getFullName())){a=((c.charAt(c.length-1)!==':')?c+'.':c)+a}b.fullName=a}return a},getSession:function(){var a=this.owner;return a.isSession?a:a.getSession()},bind:function(d,f,e){var a=this,b=new Ext.app.bind.Binding(a,d,f,e),c=(a.bindings||(a.bindings=[]));b.depth=a.depth;c.push(b);return b},getValue:function(){return this.isAvailable()?this.getRawValue():null},graft:function(b){var a=this,c=a.bindings,e=a.name,d;a.parent=a.bindings=null;a.destroy();b.depth=a.depth;b.bindings=c;b.generation=a.generation+1;b.name=e;b.id=a.id;b.path=a.path;if(c){for(d=c.length;d-->0;){c[d].stub=b}}return b},isDescendantOf:function(b){var a;for(a=this;a=a.parent;){if(a===b){return !0}}return !1},isAvailable:function(){return !0},isLoading:function(){return !1},onSchedule:function(){var d,e,c,b,a;for(a=this.parent;a;a=a.parent){b=a.bindings;if(b){for(d=0,e=b.length;d<e;++d){c=b[d];if(c.deep&&!c.scheduled){c.schedule()}}}}},react:function(){var b=this.bindings,c,a,d;if(b){for(a=0,d=b.length;a<d;++a){c=b[a];if(!c.scheduled){c.schedule()}}}},unbind:function(b){var a=this.bindings;if(a&&a.length){Ext.Array.remove(a,b)}},privates:{collect:function(){var a=this.children,f=this.bindings,b=0,d=0,c,e;if(a){for(e in a){c=a[e];d=c.collect();if(d===0){c.destroy();delete a[e]}b+=d}}if(f){b+=f.length}return b},getScheduler:function(){var a=this.owner;return a&&a.getScheduler()},sort:function(){var a=this.parent;if(a){this.scheduler.sortItem(a)}}}});Ext.define('Ext.app.bind.Stub',{extend:Ext.app.bind.AbstractStub,isStub:!0,dirty:!0,formula:null,validationKey:'validation',constructor:function(e,c,b){var a=this,d=c;a.callParent([e,c]);a.boundValue=null;if(b){b.add(a);if(!b.isRootStub){d=b.path+'.'+c}a.checkHadValue()}a.path=d},destroy:function(){var a=this,c=a.formula,b=a.storeBinding;if(c){c.destroy()}if(b){b.destroy()}a.detachBound();a.callParent()},bindValidation:function(b,c){var a=this.parent;return a&&a.descend([this.validationKey,this.name]).bind(b,c)},bindValidationField:function(a,c){var b=this.parent,f=this.name,e=typeof a==='string',d;if(b){d=b.bind(function(b){var d=null;if(b&&b.isModel){d=b.getField(f)}if(e){c[a](d,b,this)}else {a.call(c,d,b,this)}})}return d||null},descend:function(c,g){var b=this,f=b.children||(b.children={}),d=g||0,e=c[d++],a;if(!(a=f[e])){a=new Ext.app.bind.Stub(b.owner,e,b)}if(d<c.length){a=a.descend(c,d)}return a},getChildValue:function(b){var d=this,c=d.name,g=d.bindMappings,f=g.store,e=g.model,a;if(!b&&!Ext.isString(b)){a=d.hadValue?null:undefined}else {a=d.inspectValue(b);if(!a){if(b.isEntity){if(e[c]){a=b[e[c]]()}else {a=b.data[c]}}else if(b.isStore&&f[c]){a=b[f[c]]()}else {a=b[c];if(a===undefined&&d.hadValue){a=null}}}}return a},getDataObject:function(){var d=this,a=d.parent.getDataObject(),c=d.name,b=a?a[c]:null,f=d.bindMappings.store,e;if(!b){if(a&&a.isEntity){e=a.associations;if(e&&c in e){b=a[e[c].getterName]()}}}else if(a.isStore&&c in f){b=a[f[c]]()}if(!b||!(b.$className||Ext.isObject(b))){a[c]=b={};d.hadValue=!0;d.invalidate(!0,!0)}return b},getRawValue:function(){return this.getChildValue(this.getParentValue())},graft:function(a){var b=this,d=b.parent,c=b.children,g=b.name,f,e;a.parent=d;a.children=c;if(d){d.children[g]=a}if(c){for(f in c){c[f].parent=a}}b.children=null;a.checkHadValue();e=b.callParent([a]);e.invalidate(!0,!0);return e},isAvailable:function(){return this.checkAvailability()},isLoading:function(){return !this.checkAvailability(!0)},invalidate:function(d,c){var a=this,b=a.children,e;a.dirty=!0;a.checkHadValue();if(!c&&a.isAvailable()){if(!a.scheduled){a.schedule()}}if(d&&b){for(e in b){b[e].invalidate(d,c)}}},isReadOnly:function(){var a=this.formula;return !!(a&&!a.set)},set:function(b,j){var c=this,k=c.parent,e=c.name,d=c.formula,a,f,i,g,h;if(d&&!d.settingValue&&d.set){d.setValue(b);return}else if(c.isLinkStub){g=c.getLinkFormulaStub();d=g?g.formula:null;if(d){d.setValue(b);return}}a=k.getDataObject();if(a.isEntity){f=a.associations;if(f&&(e in f)){i=f[e];h=i.setterName;if(h){a[h](b)}c.invalidate(!0)}else {a.set(e,b)}}else if((b&&b.constructor===Object)||!(b===a[e]&&a.hasOwnProperty(e))){if(j||!c.setByLink(b)){if(b===undefined){delete a[e]}else {a[e]=b}c.inspectValue(a);c.invalidate(!0)}}},onStoreDataChanged:function(){this.invalidate(!0)},afterLoad:function(a){this.invalidate(!0)},afterCommit:function(a){this.afterEdit(a,null)},afterEdit:function(i,f){var b=this.children,j=f&&f.length,h=i.associations,k=this.bindMappings.model,d,e,a,g,c;if(b){if(j){for(e=0;e<j;++e){g=f[e];a=b[g];if(!a){c=i.fieldsMap[g];c=c&&c.reference;a=c&&b[c.role]}if(a){a.invalidate(!0)}}}else {for(d in b){if(!(h&&d in h)){b[d].invalidate(!0)}}}for(d in k){a=b[d];if(a){a.invalidate()}}}this.invalidate()},afterReject:function(a){this.afterEdit(a,null)},afterAssociatedRecordSet:function(e,d,c){var a=this.children,b=c.role;if(a&&b in a){a[b].invalidate(!0)}},setByLink:function(j){var i=this,g=0,h=!1,f,b,c,a,e,d;for(a=i;a;a=a.parent){if(a.isLinkStub){b=a;if(g){for(c=[],f=0,a=i;a!==b;a=a.parent){++f;c[g-f]=a.name}}break}++g}a=null;if(b){e=b.parent;d=b.name;if(!e.shouldClimb(d)){a=e.insertChild(d)}else {a=b.getTargetStub()}}if(a){if(c){a=a.descend(c)}a.set(j);h=!0}return h},setFormula:function(c){var a=this,b=a.formula;if(b){b.destroy()}a.formula=new Ext.app.bind.Formula(a,c)},react:function(){var b=this,a=this.boundValue,d=b.children,c;if(a){if(a.isValidation){a.refresh();c=a.generation;if(b.lastValidationGeneration===c){return}b.lastValidationGeneration=c}else if(a.isModel){if(d&&d[b.validationKey]){a.isValid()}}}this.callParent()},privates:{bindMappings:{store:{count:'getCount',first:'first',last:'last',loading:'hasPendingLoad',totalCount:'getTotalCount'},model:{dirty:'isDirty',phantom:'isPhantom',valid:'isValid'}},checkAvailability:function(j){var b=this,f=b.parent,i=b.bindMappings,g=b.name,a=!!(f&&f.checkAvailability(j)),h,c,d,e;if(a){c=b.getParentValue();d=b.inspectValue(c);if(d){if(j){a=!d.hasPendingLoad()}else {if(d.isStore){a=!0}else {a=!d.isLoading()||d.loadCount>0}}}else {if(c){if(c.isModel){if(i.model[g]){a=!f.isLoading();e=!0}else {h=c.associations;if(!(h&&g in h)){a=!0;e=!0}}}else if(c.isStore&&i.store[g]&&g!=='loading'){a=!f.isLoading();e=!0}}if(!e){a=b.hadValue||b.getRawValue()!==undefined}}}return a},checkHadValue:function(){if(!this.hadValue){this.hadValue=this.getRawValue()!==undefined}},collect:function(){var a=this,d=a.callParent(),b=a.storeBinding?1:0,c=a.formula?1:0;return d+b+c},getLinkFormulaStub:function(){var a=this;while(a.isLinkStub){a=a.binding.stub}return a.formula?a:null},getParentValue:function(){var a=this;if(a.dirty){a.parentValue=a.parent.getValue();a.dirty=!1}return a.parentValue},setStore:function(a){this.storeBinding=a},inspectValue:function(c){var b=this,f=b.name,i=b.boundValue,a=null,e,d,h,g;if(c&&c.isEntity){e=c.associations;if(e&&(f in e)){a=c[e[f].getterName]()}else if(f===b.validationKey){a=c.getValidation();b.lastValidationGeneration=null}}else if(c){d=c[f];if(d&&(d.isModel||d.isStore)){a=d}}h=i!==a;if(h){if(i){b.detachBound()}if(a){if(a.isModel){a.join(b)}else {g=a.associatedEntity;if(g&&a.autoLoad!==!1&&!a.complete&&!a.hasPendingLoad()){a.load()}a.on({scope:b,beginload:'onStoreDataChanged',load:'onStoreDataChanged',datachanged:'onStoreDataChanged',destroy:'onDestroyBound'})}}b.boundValue=a}return a},detachBound:function(){var b=this,a=b.boundValue;if(a&&!a.destroyed){if(a.isModel){a.unjoin(b)}else {a.un({scope:b,beginload:'onStoreDataChanged',load:'onStoreDataChanged',datachanged:'onStoreDataChanged',destroy:'onDestroyBound'})}}},onDestroyBound:function(){if(!this.owner.destroying){this.set(null)}},sort:function(){var a=this,d=a.formula,c=a.scheduler,b=a.storeBinding;a.callParent();if(b){c.sortItem(b)}if(d){c.sortItem(d)}}}});Ext.define('Ext.app.bind.LinkStub',{extend:Ext.app.bind.Stub,isLinkStub:!0,binding:null,destroy:function(){var a=this,b=a.binding,c=a.owner;if(b){a.binding=null;b.destroy();if(c){delete c.linkData[a.name]}}a.target=null;a.callParent()},getFullName:function(){var a=this;return a.fullName||(a.fullName='('+a.callParent()+' -> '+a.binding.getFullName()+')')},getDataObject:function(){var e=this.binding,c=this.parent,b=this.name,a,d;if(c.isRootStub&&!c.shouldClimb(b)){a=c.owner.getData();if(!a.hasOwnProperty(b)){a[b]=d={}}}else {d=e&&e.getDataObject()}return d},getRawValue:function(){var a=this.binding;return a&&a.getRawValue()},getValue:function(){var a=this.binding;return a&&a.getValue()},getTargetStub:function(){var a=this.binding;return a&&a.stub},isAvailable:function(){var a=this.binding;return a?a.isAvailable():!1},isLoading:function(){var a=this.binding;return a?a.isLoading():!1},link:function(c,b){var a=this,d=a.binding;if(d){d.destroy()}b=a.target=b||a.owner;a.linkDescriptor=c;a.binding=b.bind(c,a.onChange,a);a.binding.deep=!0},onChange:function(){this.invalidate(!0)},react:function(){var a=this,b=a.owner.linkData;b[a.name]=a.getValue();a.callParent()},privates:{collect:function(){var a=this,c=a.callParent(),b=a.binding?1:0;return c+b},sort:function(){var a=this.binding;if(a){this.scheduler.sortItem(a)}}}});Ext.define('Ext.app.bind.RootStub',{extend:Ext.app.bind.AbstractStub,isRootStub:!0,depth:0,createRootChild:function(a,j){var e=this,c=e.owner,i=c.getData(),g=e.children,d=g&&g[a],f=d?null:e,h,b;if(j||i.hasOwnProperty(a)||!(h=c.getParent())){b=new Ext.app.bind.Stub(c,a,f)}else {b=new Ext.app.bind.LinkStub(c,a,f);b.link('{'+a+'}',h)}if(d){d.graft(b)}return b},createStubChild:function(a){return this.createRootChild(a,!0)},descend:function(a,g){var f=this,d=f.children,b=g||0,e=a[b++],c=(d&&d[e])||f.createRootChild(e);if(b<a.length){c=c.descend(a,b)}return c},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 !1},set:function(f,k){var c=this,i=c.children||(c.children={}),e=c.owner,g=e.data,l=e.getParent(),a,h,b,d,j;for(b in f){h=f[b];if(h!==undefined){a=i[b];d=k||!c.shouldClimb(b);if(!a){a=c.createRootChild(b,d);j=!0}else if(d&&a.isLinkStub&&!a.getLinkFormulaStub()){a=c.insertChild(b)}if(!j||!g.hasOwnProperty(f)){e.invalidateChildLinks(b)}a.set(h,d)}else if(g.hasOwnProperty(b)){delete g[b];a=i[b];if(a){if(!a.isLinkStub&&l){a=c.createRootChild(b)}e.invalidateChildLinks(b,!0);a.invalidate(!0)}}}},schedule:Ext.emptyFn,unschedule:Ext.emptyFn,privates:{checkAvailability:function(){return !0},insertChild:function(a){return this.createRootChild(a,!0)},invalidateChildLink:function(b,d){var c=this.children,a=c&&c[b];if(a&&a.isLinkStub&&!a.getLinkFormulaStub()){a=this.createRootChild(b);if(d){a.invalidate(!0)}this.owner.invalidateChildLinks(b,d)}},shouldClimb:function(b){var a=this.owner.getParent();while(a){if(a.getData().hasOwnProperty(b)){return !0}a=a.getParent()}return !1}}});Ext.define('Ext.app.bind.Multi',{extend:Ext.app.bind.BaseBinding,isMultiBinding:!0,missing:1,deep:!0,constructor:function(b,f,e,g,c){var a=this,d=c&&c.trackStatics;a.callParent([f,e,g,c]);a.bindings=[];a.literal=b.$literal;if(b.constructor===Object){if(d){a.staticKeys=[]}a.addObject(b,a.lastValue={},a.staticKeys)}else {a.addArray(b,a.lastValue=[])}if(!--a.missing&&!a.scheduled){a.schedule()}},destroy:function(){var a=this;a.bindings=Ext.destroy(a.bindings);a.callParent()},add:function(d,i,f){var a=this,h=a.owner,e=a.bindings,g=a.literal?(d.reference?'bindEntity':'bindExpression'):'bind',b,c;++a.missing;b=h[g](d,function(c){i[f]=c;if(b.calls===1){--a.missing}if(!a.missing&&!a.scheduled){a.schedule()}},a,null);c=b.depth;if(!e.length||c<a.depth){a.depth=c}e.push(b);return !this.isBindingStatic(b)},addArray:function(g,d){var f=this,h=g.length,e=!1,c,a,b;for(b=0;b<h;++b){a=g[b];if(a&&(a.reference||Ext.isString(a))){c=f.add(a,d,b)}else if(Ext.isArray(a)){c=f.addArray(a,d[b]=[])}else if(a&&a.constructor===Object){c=f.addObject(a,d[b]={})}else {d[b]=a;c=!1}e=e||c}return e},addObject:function(g,d,h){var f=this,e=!1,c,a,b;for(b in g){a=g[b];if(a&&(a.reference||Ext.isString(a))){c=f.add(a,d,b)}else if(Ext.isArray(a)){c=f.addArray(a,d[b]=[])}else if(a&&a.constructor===Object){c=f.addObject(a,d[b]={})}else {d[b]=a;c=!1}if(h&&!c){h.push(b)}e=e||c}return e},getFullName:function(){var c=this,a=c.fullName,d=c.bindings,e=d.length,b;if(!a){a='@[';for(b=0;b<e;++b){if(b){a+=','}a+=d[b].getFullName()}a+=']';c.fullName=a}return a},getRawValue:function(){return this.lastValue},isDescendantOf:function(){return !1},isLoading:function(){var a=this.bindings,b=a.length;for(;b-->0;){if(a[b].isLoading()){return !0}}return !1},isAvailable:function(){var a=this.bindings,b=a.length;for(;b-->0;){if(a[b].isAvailable()){return !0}}return !1},isBindingStatic:function(a){return a.isTemplateBinding&&a.isStatic},isStatic:function(){var b=this.bindings,d=b.length,a,c;for(a=0;a<d;++a){c=b[a];if(!this.isBindingStatic(c)){return !1}}return !0},pruneStaticKeys:function(){var b=Ext.apply({},this.lastValue),c=this.staticKeys,d=c.length,a;for(a=0;a<d;++a){delete b[c[a]]}return b},react:function(){this.notify(this.lastValue)},refresh:function(){},privates:{sort:function(){this.scheduler.sortItems(this.bindings)}}});Ext.define('Ext.app.bind.Formula',{extend:Ext.util.Schedulable,statics:{getFormulaParser:function(c){var b=this.formulaCache,a,d;if(!b){b=this.formulaCache=new Ext.util.LruCache({maxSize:20})}a=b.get(c);if(!a){d='[^\\.a-z0-9_]'+Ext.String.escapeRegex(c)+'\\(\\s*([\'"])(.*?)\\1\\s*\\)';a=new RegExp(d,'gi');b.add(c,a)}return a}},isFormula:!0,calculation:null,explicit:!1,set:null,single:!1,fnKeywordArgumentNamesRe:/^function\s*[^\(]*\(\s*([^,\)\s]+)/,fnKeywordRe:/^\s*function/,replaceParenRe:/[\(\)]/g,constructor:function(h,c){var a=this,g=h.owner,f,b,d,e;a.owner=g;a.stub=h;a.callParent();if(c instanceof Function){a.get=d=c}else {a.get=d=c.get;a.set=c.set;b=c.bind;if(c.single){a.single=c.single}if(b){f=b.bindTo;if(f){e=Ext.apply({},b);delete e.bindTo;b=f}}}if(b){a.explicit=!0}else {b=d.$expressions||a.parseFormula(d)}a.binding=g.bind(b,a.onChange,a,e)},destroy:function(){var a=this,b=a.binding,c=a.stub;if(b){b.destroy();a.binding=null}if(c){c.formula=null}a.callParent();a.getterFn=a.owner=null},getFullName:function(){return this.fullName||(this.fullName=this.stub.getFullName()+'='+this.callParent()+')')},getRawValue:function(){return this.calculation},onChange:function(){if(!this.scheduled){this.schedule()}},parseFormula:function(g){var d=Ext.Function.toCode(g),h='get',c={$literal:!0},a,b,f,e;if(this.fnKeywordRe.test(d)){a=this.fnKeywordArgumentNamesRe.exec(d);if(a){b=a[1]}}else {a=d.split('=>')[0];if(a){a=Ext.String.trim(a.replace(this.replaceParenRe,'')).split(',');b=a[0]}}b=b||h;f=Ext.app.bind.Formula.getFormulaParser(b);while((a=f.exec(d))){e=a[2];c[e]=e}c.$literal=!0;g.$expressions=c;return c},react:function(){var a=this,c=a.owner,d=a.binding.lastValue,b;if(a.explicit){b=d}else {b=c.getFormulaFn(d)}a.settingValue=!0;a.stub.set(a.calculation=a.get.call(c,b));a.settingValue=!1;if(a.single){a.destroy()}},setValue:function(a){this.set.call(this.stub.owner,a)},privates:{getScheduler:function(){var a=this.owner;return a&&a.getScheduler()},sort:function(){var b=this,a=b.binding;if(!a.destroyed){b.scheduler.sortItem(a)}}}});Ext.define('Ext.util.Fly',{inheritableStatics:{flyPoolSize:2,fly:function(){var b=this,c=b.flyweights||(b.flyweights=[]),a=c.length?c.pop():new b();a.reset.apply(a,arguments);return a}},release:function(){var a=this,b=a.self,c=b.flyweights||(b.flyweights=[]);a.reset();if(c.length<b.flyPoolSize){c.push(a)}},reset:Ext.emptyFn});Ext.define('Ext.parse.Tokenizer',function(c){var b=(c.flyweights=[]),a={literal:!0,"boolean":!0,type:'boolean'},f={error:!0},g={ident:!0},i={literal:!0},h={literal:!0,nil:!0},d={literal:!0,number:!0,type:'number'},e={literal:!0,string:!0,type:'string'};return {extend:Ext.util.Fly,isTokenizer:!0,statics:{BOOLEAN:a,ERROR:f,IDENT:g,LITERAL:i,NULL:h,NUMBER:d,STRING:e},config:{keywords:{'null':{type:'literal',is:h,value:null},'false':{type:'literal',is:a,value:!1},'true':{type:'literal',is:a,value:!0}},operators:{'+':'plus','-':'minus','*':'multiply','/':'divide','!':'not',',':'comma',':':'colon','[':'arrayOpen',']':'arrayClose','{':'curlyOpen','}':'curlyClose','(':'parenOpen',')':'parenClose'},patterns:null},error:null,index:-1,constructor:function(a){this.operators={};this.patterns=[];this.initConfig(a)},next:function(){var a=this.peek();this.head=undefined;return a},peek:function(){var a=this,d=a.error,b=a.head;if(d){return d}if(b===undefined){a.head=b=a.advance()}return b},release:function(){this.reset();if(b.length<c.flyPoolSize){b.push(this)}},reset:function(b,e,d){var a=this;a.error=null;a.head=undefined;a.index=-1;a.text=b||null;a.pos=e||0;a.end=(b&&d==null)?b.length:d;return a},privates:{digitRe:/[0-9]/,identFirstRe:/[a-z_$]/i,identRe:/[0-9a-z_$]/i,spaceRe:/[ \t]/,end:0,head:undefined,pos:0,text:null,applyOperators:function(i){var j=this.operators,a,f,g,e,h,d,b;for(b in i){a=j;d=i[b];h=b.length;for(e=0;e<h;++e){f=b.charAt(e);a=a[f]||(a[f]={})}if(d){a.token=g={type:'operator',name:d,value:b,is:{operator:!0}};g.is[d]=!0}else {a.token=null}}},applyPatterns:function(e){var g=this.patterns,a,d,b,f;for(b in e){a=e[b];d=a.extract;f=a.re;delete a.extract;delete a.re;g.push({name:b,re:f,extract:d,token:a})}},advance:function(){var a=this,d=a.spaceRe,f=a.text,e=a.end,b;while(a.pos<e){b=f.charAt(a.pos);if(d.test(b)){++a.pos;continue}a.index=a.pos;return a.parse(b)}return null},parse:function(d){var a=this,i=a.digitRe,j=a.text,k=a.end,h=a.patterns,g,e,f,b;if(d==='.'&&a.pos+1<k){if(i.test(j.charAt(a.pos+1))){b=a.parseNumber()}}if(!b){for(g=0;g<h.length;++g){f=h[g];f.re.lastIndex=a.pos;e=f.re.exec(j);if(e&&e.index===a.pos){b=Ext.apply({value:f.extract?f.extract(e):e[0]},f.token);a.pos+=e[0].length;break}}}if(!b&&a.operators[d]){b=a.parseOperator(d)}if(!b){if(d==='"'||d==="'"){b=a.parseString()}else if(i.test(d)){b=a.parseNumber()}else if(a.identFirstRe.test(d)){b=a.parseIdent()}else {b=a.syntaxError('Unexpected character')}}return b},parseIdent:function(){var a=this,l=a.identRe,h=a.getKeywords(),k=!a.operators['.'],j=a.text,i=a.pos,b=i,m=a.end,f=0,d,e;while(b<m){d=j.charAt(b);if(k&&d==='.'){if(f==='.'){return a.syntaxError(b,'Unexpected dot operator')}++b}else if(l.test(d)){++b}else {break}f=d}if(f==='.'){return a.syntaxError(b-1,'Unexpected dot operator')}e=j.substring(i,a.pos=b);return (h&&h[e])||{type:'ident',is:g,value:e}},parseNumber:function(){var a=this,j=a.digitRe,h=a.text,g=a.pos,k=a.end,b,f,i,e;while(a.pos<k){b=h.charAt(a.pos);if(b==='-'||b==='+'){if(a.pos!==g){break}++a.pos}else if(b==='.'){if(f){break}f=!0;++a.pos}else if(b==='e'||b==='E'){if(i){break}f=i=!0;b=h.charAt(++a.pos);if(b==='-'||b==='+'){++a.pos}}else if(j.test(b)){++a.pos}else {break}}e={type:'literal',is:d,value:+h.substring(g,a.pos)};if(!isFinite(e.value)){e=a.syntaxError(g,'Invalid number')}return e},parseOperator:function(g){var a=this,b=a.operators,j=a.text,i=a.end,d=a.pos,e,h,f;while(b[g]){b=b[g];f=b.token;++d;if(f){e=f;h=d}if(d<i){g=j.charAt(d)}else {break}}if(e){a.pos=h}return e},parseString:function(){var b=this,f=b.text,a=b.pos,k=a,h=b.end,j='',d,g,i;i=f.charAt(a++);while(a<h){d=f.charAt(a++);if(d===i){g=!0;break}if(d==='\\'&&a<h){d=f.charAt(a++)}j+=d}b.pos=a;if(!g){return b.syntaxError(k,'Unterminated string')}return {type:'literal',is:e,value:j}},syntaxError:function(a,d){if(typeof a==='string'){d=a;a=this.pos}var e=(a==null)?'':(' (at index '+a+')'),b=new Error(d+e);b.type='error';b.is=f;if(e){b.at=a}return this.error=b}}}});Ext.define('Ext.parse.Symbol',{priority:0,constructor:function(d,a){var b=this,c=b.defaultProperty;if(a&&typeof a==='object'){Ext.apply(b,a)}else if(a!==undefined&&c){b[c]=a}b.id=d},led:function(){this.parser.syntaxError(this.at,'Missing operator')},nud:function(){this.parser.syntaxError(this.at,'Undefined')},update:function(a){if(a&&typeof a==='object'){var b=this,c=a.priority,d=a.led,e=a.nud;if(b.priority<=c){b.priority=c}if(d){b.led=d}if(e){b.nud=e}}}});Ext.define('Ext.parse.symbol.Constant',{extend:Ext.parse.Symbol,arity:'literal',isLiteral:!0,defaultProperty:'value',constructor:function(b,a){this.callParent([b,a]);this._value=this.value},nud:function(){var a=this;a.value=a._value;a.arity='literal';a.isLiteral=!0;return a}});Ext.define('Ext.parse.symbol.Infix',{extend:Ext.parse.Symbol,arity:'binary',isBinary:!0,defaultProperty:'priority',led:function(b){var a=this;a.lhs=b;a.rhs=a.parser.parseExpression(a.priority);a.arity='binary';a.isBinary=!0;return a}});Ext.define('Ext.parse.symbol.InfixRight',{extend:Ext.parse.symbol.Infix,led:function(b){var a=this;a.lhs=b;a.rhs=a.parser.parseExpression(a.priority-1);a.arity='binary';a.isBinary=!0;return a}});Ext.define('Ext.parse.symbol.Paren',{extend:Ext.parse.Symbol,arity:'binary',isBinary:!0,priority:80,led:function(d){var b=this,e=[],c=b.parser,a=d.id,f=d.arity;if(a!=='.'&&a!=='['){if((f!=="unary"||a!=="function")&&f!=="ident"&&a!=="("&&a!=="&&"&&a!=="||"&&a!=="?"){c.syntaxError(d.at,"Expected a variable name.")}}b.arity='invoke';b.isInvoke=!0;b.operand=d;b.args=e;while(c.token.id!==')'){if(e.length){c.advance(',')}e.push(c.parseExpression())}c.advance(')');return b},nud:function(){var a=this.parser,b=a.parseExpression();a.advance(")");return b}});Ext.define('Ext.parse.symbol.Prefix',{extend:Ext.parse.Symbol,arity:'unary',isUnary:!0,priority:70,nud:function(){var a=this;a.operand=a.parser.parseExpression(a.priority);a.arity='unary';a.isUnary=!0;return a}});Ext.define('Ext.parse.Parser',function(){var a=function(){return this};return {extend:Ext.util.Fly,isParser:!0,config:{constants:{'null':null,'false':!1,'true':!0},infix:{'===':40,'!==':40,'==':40,'!=':40,'<':40,'<=':40,'>':40,'>=':40,'+':50,'-':50,'*':60,'/':60},infixRight:{'&&':30,'||':30},prefix:{'!':0,'-':0,'+':0},symbols:{':':0,',':0,')':0,'[':0,']':0,'{':0,'}':0,'(end)':0,'(ident)':{arity:'ident',isIdent:!0,nud:a},'(literal)':{arity:'literal',isLiteral:!0,nud:a},'(':{xclass:'Ext.parse.symbol.Paren'}},tokenizer:{keywords:null}},token:null,constructor:function(a){this.symbols={};this.initConfig(a)},advance:function(i){var b=this,g=b.tokenizer,c=g.peek(),d=b.symbols,j=g.index,f,h,a,e;if(b.error){throw b.error}if(i){b.expect(i)}if(!c){return b.token=d['(end)']}g.next();f=c.is;e=c.value;if(f.ident){a=d[e]||d['(ident)']}else if(f.operator){if(!(a=d[e])){b.syntaxError(c.at,'Unknown operator "'+e+'"')}h=c.name}else if(f.literal){a=d['(literal)']}else {b.syntaxError(c.at,'Unexpected token')}b.token=a=Ext.Object.chain(a);a.at=j;a.is=f;a.value=e;if(!a.arity){a.arity=c.type}if(h){a.name=h}return a},expect:function(a){var b=this.token;if(a!==b.id){this.syntaxError(b.at,'Expected "'+a+'"')}return this},parseExpression:function(c){var b=this,d=b.token,a;c=c||0;b.advance();a=d.nud();while(c<(d=b.token).priority){b.advance();a=d.led(a)}return a},reset:function(b,d,c){var a=this;a.error=a.token=null;a.tokenizer.reset(b,d,c);a.advance();return a},syntaxError:function(a,c){if(typeof a==='string'){c=a;a=this.pos}var d=(a==null)?'':(' (at index '+a+')'),b=new Error(c+d);b.type='error';if(d){b.at=a}throw this.error=b},privates:{error:null,addSymbol:function(g,a,d,c){var h=this.symbols,b=h[g],f,i,e;if(b){if(typeof a==='object'){f=a}else if(c&&d){c=Ext.Array.from(c);i=c.length;f={};for(e=0;e<i;e++){f[c[e]]=d.prototype[c[e]]}}else {return b}b.update(f)}else {if(a&&a.xclass){d=Ext.ClassManager.get(a.xclass)}else {d=d||Ext.parse.Symbol}h[g]=b=new d(g,a);b.parser=this}return b},addSymbols:function(b,d,c){var a;for(a in b){this.addSymbol(a,b[a],d,c)}},applyConstants:function(a){this.addSymbols(a,Ext.parse.symbol.Constant,'nud')},applyInfix:function(a){this.addSymbols(a,Ext.parse.symbol.Infix,'led')},applyInfixRight:function(a){this.addSymbols(a,Ext.parse.symbol.InfixRight,'led')},applyPrefix:function(a){this.addSymbols(a,Ext.parse.symbol.Prefix,'nud')},applySymbols:function(a){this.addSymbols(a)},applyTokenizer:function(a){var b=a;if(a&&!a.isTokenizer){b=new Ext.parse.Tokenizer(a)}this.tokenizer=b}}}});Ext.define('Ext.app.bind.Parser',{extend:Ext.parse.Parser,infix:{':':{priority:70,led:function(b){var a=this;a.arity='formatter';a.operand=b;a.fmt=a.parser.parseFmt();return a}},'?':{priority:20,led:function(e){var a=this,b=a.parser,c=b.symbols[':'],d;a.condition=e;d=c.priority;c.priority=0;a.tv=b.parseExpression(0);a.parser.advance(':');c.priority=d;a.fv=b.parseExpression(0);a.arity='ternary';return a}}},symbols:{'(':{nud:function(){var a=this.parser,b=a.symbols[':'],d,c;c=b.priority;b.priority=70;d=a.parseExpression();a.advance(")");b.priority=c;return d}}},prefix:{'@':0},tokenizer:{operators:{'@':'at','?':'qmark','===':'feq','!==':'fneq','==':'eq','!=':'neq','<':'lt','<=':'lte','>':'gt','>=':'gte','&&':'and','||':'or'}},compileExpression:function(d,c){var a=this,e,b;a.tokens=d;a.tokensMap=c;b=a.parseSlot(a.parseExpression(),e);a.tokens=a.tokensMap=null;return b},compileFormat:function(){var a=this,b;b=a.parseSlot({arity:'formatter',fmt:a.parseFmt(),operand:{arity:'ident',value:'dummy'}});a.expect('(end)');return b},privates:{useEval:Ext.isGecko,escapeRe:/(["'\\])/g,parseFmt:function(){var b=this,c=[],d=b.symbols[':'].priority,a;do{if(c.length){b.advance()}a=b.parseExpression(d);if(a.isIdent||a.isInvoke){c.push(a)}else {b.syntaxError(a.at,'Expected formatter name')}}while(b.token.id===':');return c},parseSlot:function(j,k){var a=this,e=[],b=[],h=a.tokens||[],i,c,d,g,f;a.definitions=e;a.body=b;b.push('return '+a.compile(j)+';');g=h.length;c='var fm = Ext.util.Format,\nme,';f='var a = Ext.Array.from(values);\nme = scope;\n';if(h.length){for(d=0;d<g;d++){c+='v'+d+((d===g-1)?';':',');f+='v'+d+' = a['+d+']; '}}else {c+='v0;';f+='v0 = a[0];'}e=Ext.Array.insert(e,0,[c]);b=Ext.Array.insert(b,0,[f]);b=b.join('\n');e.push((a.useEval?'$=':'return')+' function (values, scope) {',b,'}');c=e.join('\n');i=a.useEval?a.evalFn(c):(new Function('Ext',c))(Ext);a.definitions=a.body=null;return i},compile:function(a){var b=this,c;switch(a.arity){case 'ident':return b.addToken(a.value);case 'literal':c=a.value;return (typeof c==='string')?'"'+String(c).replace(b.escapeRe,'\\$1')+'"':c;case 'unary':return b.compileUnary(a);case 'binary':return b.compileBinary(a);case 'ternary':return b.compileTernary(a);case 'formatter':return b.compileFormatter(a);}return this.syntaxError(a.at,'Compile error! Unknown symbol')},compileUnary:function(b){var a=b.value,c=b.operand;if(a==='!'||a==='-'||a==='+'){return a+'('+this.compile(c)+')'}else if(a==='@'){if(!c.isIdent){return this.syntaxError(b.at,'Compile error! Unexpected symbol')}return c.value}return ''},compileBinary:function(a){return '('+this.compile(a.lhs)+' '+a.value+' '+this.compile(a.rhs)+')'},compileTernary:function(a){return '('+this.compile(a.condition)+' ? '+this.compile(a.tv)+' : '+this.compile(a.fv)+')'},compileFormatter:function(e){var c=this,b=e.fmt,f=b.length,a=['var ret;'],d;if(b.length){a.push('ret = '+c.compileFormatFn(b[0],c.compile(e.operand))+';');for(d=1;d<f;d++){a.push('ret = '+c.compileFormatFn(b[d],'ret')+';')}}a.push('return ret;');return c.addFn(a.join('\n'))},compileFormatFn:function(b,g){var a,d=[],e='',f,c;if(b.isIdent){a=b.value}else if(b.isInvoke){a=b.operand.value;d=b.args}if(a.substring(0,5)==='this.'){a='me.'+a.substring(5)}else {if(!(a in Ext.util.Format)){return this.syntaxError(b.at,'Compile error! Invalid format specified "'+a+'"')}a='fm.'+a}e+=g;f=d.length;for(c=0;c<f;c++){e+=', '+this.compile(d[c])}return a+'('+e+')'},addFn:function(c){var a=this.definitions,b='f'+a.length;a.push('function '+b+'() {',c,'}');return b+'()'},evalFn:function($){eval($);return $},addToken:function(b){var a=this.tokensMap,c=this.tokens,d=0;if(a&&c){if(b in a){d=a[b]}else {a[b]=d=c.length;c.push(b)}}return 'v'+d}}});Ext.define('Ext.app.bind.Template',{escapes:!1,buffer:null,slots:null,tokens:null,constructor:function(d){var b=this,c=b._initters,a;b.text=d;for(a in c){b[a]=c[a]}},_initters:{apply:function(a,b){return this.parse().apply(a,b)},getTokens:function(){return this.parse().getTokens()}},apply:function(g,h){var d=this,e=d.slots,c=d.buffer,f=e.length,a,b;for(a=0;a<f;++a){b=e[a];if(b){c[a]=b(g,h)}}if(b&&d.single){return c[0]}return c.join('')},getText:function(){return this.buffer.join('')},getTokens:function(){return this.tokens},isStatic:function(){var a=this.getTokens(),b=this.slots;return (a.length===0&&b.length===0)},privates:{literalChar:'~',escapeChar:'\\',parse:function(){var a=this,e=a.text,i=Ext.app.bind.Parser.fly(),h=(a.buffer=[]),p=(a.slots=[]),o=e.length,f=0,n=a.escapes,b='',c=0,q=a.escapeChar,m=a.literalChar,g,j,d,k,l;for(l in a._initters){delete a[l]}a.tokens=[];a.tokensMap={};while(c<o){d=e[c];j=g;g=n&&d===q;if(g){d=e[c+1];++c}else if(d===m&&k===m&&!j){b=b.slice(0,-1);b+=e.substring(c+1);break}else if(d==='{'){if(b){h[f++]=b;b=''}i.reset(e,c+1);c=a.parseExpression(i,f);++f;continue}b+=d;++c;k=d}if(b){h[f]=b}i.release();a.single=h.length===0&&p.length===1;return a},parseExpression:function(a,c){var b;this.slots[c]=a.compileExpression(this.tokens,this.tokensMap);b=a.token.at+1;a.expect('}');return b}}});Ext.define('Ext.app.bind.TemplateBinding',{extend:Ext.app.bind.BaseBinding,isTemplateBinding:!0,lastValue:undefined,value:undefined,constructor:function(f,d,e,h,g){var a=this,b=new Ext.app.bind.Template(f),c=b.getTokens();a.callParent([d,e,h,g]);a.tpl=b;a.tokens=c;c.$literal=!0;if(!b.isStatic()){a.multiBinding=new Ext.app.bind.Multi(c,d,a.onBindData,a)}else {a.isStatic=!0;a.onData(b.getText())}},destroy:function(){var a=this;Ext.destroy(a.multiBinding);a.tpl=a.multiBinding=null;a.callParent()},getFullName:function(){var a=this.multiBinding;return this.fullName||(this.fullName='$'+(a?a.getFullName():this.callParent()))},getRawValue:function(){return this.value},getTemplateScope:function(){return null},isAvailable:function(){var a=this.multiBinding;return a?a.isAvailable():!1},isDescendantOf:function(){return !1},isLoading:function(){var a=this.multiBinding;return a?a.isLoading():!1},onBindData:function(a){this.onData(this.tpl.apply(a,this.getTemplateScope()))},onData:function(c){var a=this,b=a.value;if(b!==(a.value=c)){a.lastValue=b;a.schedule()}},react:function(){this.notify(this.value)},refresh:function(){var a=this.multiBinding;if(a){a.refresh()}},privates:{sort:function(){var a=this.multiBinding;if(a){this.scheduler.sortItem(a)}}}});Ext.define('Ext.data.ChainedStore',{extend:Ext.data.AbstractStore,alias:'store.chained',mixins:[Ext.data.LocalStore],isChainedStore:!0,config:{source:null,remoteFilter:!1,remoteSort:!1},syncSourceGrouping:!1,remove:function(){var a=this.getSource();return a.remove.apply(a,arguments)},removeAll:function(){var a=this.getSource();return a.removeAll()},getData:function(){var b=this,a=b.data;if(!a){b.data=a=b.constructDataCollection()}return a},getTotalCount:function(){return this.getCount()},getSession:function(){return this.getSourceValue('getSession',null)},applySource:function(a){if(a){a=Ext.data.StoreManager.lookup(a)}return a},updateSource:function(b,c){var a=this,d;if(c&&!c.destroyed){c.removeObserver(a)}if(b){d=a.getData();d.setSource(b.getData());if(a.syncSourceGrouping){a.setGrouper(b.getGrouper())}if(!a.isInitializing){a.fireEvent('refresh',a);a.fireEvent('datachanged',a)}b.addObserver(a)}},getModel:function(){return this.getSourceValue('getModel',null)},getProxy:function(){return null},onCollectionAdd:function(e,b){var a=this,d=b.items,c=!b.next;if(a.ignoreCollectionAdd){return}if(a.activeRanges){a.syncActiveRanges()}a.fireEvent('add',a,d,b.at);if(c){a.fireEvent('datachanged',a)}},onCollectionItemChange:function(f,a){var b=this,d=a.item,c=a.modified||null,e=a.meta;if(b.activeRanges&&a.newIndex!==a.oldIndex){b.syncActiveRanges()}b.onUpdate(d,e,c,a);b.fireEvent('update',b,d,e,c,a);b.fireEvent('datachanged',b)},onCollectionUpdateKey:function(b,a){this.fireEvent('idchanged',this,a.item,a.oldKey,a.newKey)},onUpdate:Ext.emptyFn,lastCollectionRefesh:null,onCollectionRefresh:function(c){var a=this,b=c.generation;if(!a.isConfiguring&&a.lastCollectionRefesh!==b){a.lastCollectionRefesh=b;a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}},onCollectionRemove:function(e,b){var a=this,d=b.items,c=!b.next;if(a.ignoreCollectionRemove){return}a.fireEvent('remove',a,d,b.at,!1);if(c){a.fireEvent('datachanged',a)}},onSourceBeforeLoad:function(b,a){this.fireEvent('beforeload',this,a);this.callObservers('BeforeLoad',[a])},onSourceAfterLoad:function(d,c,a,b){this.fireEvent('load',this,c,a,b);this.callObservers('AfterLoad',[c,a,b])},onFilterEndUpdate:function(){var a=this;if(a.getData().generation===a.lastCollectionRefesh&&!a.getRemoteFilter()){a.suppressNextFilter=!0}a.callParent(arguments);a.callObservers('Filter')},onSourceBeforePopulate:function(){this.ignoreCollectionAdd=!0;this.callObservers('BeforePopulate')},onSourceAfterPopulate:function(){var a=this;a.ignoreCollectionAdd=!1;a.fireEvent('datachanged',a);a.fireEvent('refresh',a);this.callObservers('AfterPopulate')},onSourceBeforeClear:function(){this.ignoreCollectionRemove=!0;this.callObservers('BeforeClear')},onSourceAfterClear:function(){this.ignoreCollectionRemove=!1;this.callObservers('AfterClear')},onSourceBeforeRemoveAll:function(){this.ignoreCollectionRemove=!0;this.callObservers('BeforeRemoveAll')},onSourceAfterRemoveAll:function(c,b){var a=this;a.ignoreCollectionRemove=!1;if(!b){a.fireEvent('clear',a);a.fireEvent('datachanged',a)}this.callObservers('AfterRemoveAll',[b])},onSourceFilter:function(){var a=this,b=a.getData().generation;if(a.lastCollectionRefesh!==b){a.lastCollectionRefesh=b;a.fireEvent('refresh',a);a.fireEvent('datachanged',a)}},onSourceGrouperChange:function(b,a){if(this.syncSourceGrouping){this.setGrouper(a)}},hasPendingLoad:function(){return this.getSourceValue('hasPendingLoad',!1)},isLoaded:function(){return this.getSourceValue('isLoaded',!1)},isLoading:function(){return this.getSourceValue('isLoading',!1)},doDestroy:function(){var a=this;a.observers=null;a.setSource(null);a.getData().destroy(!0);a.data=null;a.callParent()},privates:{getSourceValue:function(d,c){var a=this.getSource(),b=c;if(a&&!a.destroyed){b=a[d]()}return b},isMoving:function(){var a=this.getSource();return a.isMoving?a.isMoving.apply(a,arguments):!1},loadsSynchronously:function(){return this.getSource().loadsSynchronously()}}});Ext.define('Ext.app.ViewModel',{mixins:[Ext.mixin.Factoryable,Ext.mixin.Identifiable],alias:'viewmodel.default',isViewModel:!0,factoryConfig:{name:'viewModel'},collectTimeout:100,expressionRe:/^(?:\{(?:(\d+)|([a-z_][\w.]*))\})$/i,statics:{escape:function(a){var b=a,c;if(typeof a==='string'){b='~~'+a}else if(a&&a.constructor===Object){b={};for(c in a){b[c]=this.escape(a[c])}}return b}},$configStrict:!1,config:{data:!0,formulas:{$value:null,merge:function(c,a,d,b){return this.mergeNew(c,a,d,b)}},links:null,parent:null,root:!0,scheduler:null,schema:'default',session:null,stores:null,view:null},constructor:function(a){this.bindings={};this.initConfig(a)},destroy:function(){var a=this,d=a._scheduler,g=a.storeInfo,j=a.getParent(),k=a.collectTask,f=a.children,i=a.bindings,b,c,e,h;a.destroying=!0;if(k){k.cancel();a.collectTask=null}if(f){for(b in f){f[b].destroy()}}if(g){for(b in g){c=g[b];h=c.$binding;e=c.autoDestroy;if(e||(!c.$wasInstance&&e!==!1)){c.destroy()}Ext.destroy(h)}}if(j){j.unregisterChild(a)}a.getRoot().destroy();for(b in i){i[b].destroy()}if(d&&d.$owner===a){d.$owner=null;d.destroy()}a.children=a.storeInfo=a._session=a._view=a._scheduler=a.bindings=a._root=a._parent=a.formulaFn=a.$formulaData=null;a.callParent()},bind:function(a,f,e,c){var d=this,g=!0,b;e=e||d;if(!c&&a.bindTo!==undefined&&!Ext.isString(a)){c=a;a=c.bindTo}if(!Ext.isString(a)){b=new Ext.app.bind.Multi(a,d,f,e,c)}else if(d.expressionRe.test(a)){a=a.substring(1,a.length-1);b=d.bindExpression(a,f,e,c);g=!1}else {b=new Ext.app.bind.TemplateBinding(a,d,f,e,c)}if(g){d.bindings[b.id]=b}return b},getSession:function(){var b=this,a=b._session,c;if(!a&&(c=b.getParent())){b.setSession(a=c.getSession())}return a||null},getStore:function(c){var a=this.storeInfo,b;if(a){b=a[c]}return b||null},linkTo:function(i,a){var e=this,b,d,h,f,g,c;if(a.isModel){a={type:a.entityName,id:a.id}}f=a.type||a.reference;d=a.create;if(f){h=a.id;if(d){h=undefined}c=e.getRecord(f,h);if(Ext.isObject(d)){c.set(d);c.commit();c.phantom=!0}b=e.getRoot().createStubChild(i);b.set(c)}else {b=e.getStub(i);if(!b.isLinkStub){g=new Ext.app.bind.LinkStub(e,b.name);b.graft(g);b=g}b.link(a)}},notify:function(){var a=this.getScheduler();if(!a.firing){a.notify()}},get:function(a){return this.getStub(a).getValue()},set:function(a,b){var d=this,e,c;d.getData();if(b===undefined&&a&&a.constructor===Object){c=d.getRoot();b=a}else if(a&&a.indexOf('.')<0){e={};e[a]=b;b=e;c=d.getRoot()}else {c=d.getStub(a)}c.set(b)},privates:{registerChild:function(b){var a=this.children;if(!a){this.children=a={}}a[b.getId()]=b},unregisterChild:function(b){var a=this.children;if(!this.destroying&&a){delete a[b.getId()]}},getRecord:function(d,e){var c=this.getSession(),b=d,f=e!==undefined,a;if(c){if(f){a=c.getRecord(d,e)}else {a=c.createRecord(d)}}else {if(!b.$isClass){b=this.getSchema().getEntity(b)}if(f){a=b.createWithId(e);a.load()}else {a=new b()}}return a},bindExpression:function(a,b,d,c){var e=this.getStub(a);return e.bind(b,d,c)},applyScheduler:function(a){if(a&&!a.isInstance){if(a===!0){a={}}if(!('preSort' in a)){a=Ext.apply({preSort:'kind,-depth'},a)}a=new Ext.util.Scheduler(a);a.$owner=this}return a},getScheduler:function(){var b=this,a=b._scheduler,c;if(!a){if(!(c=b.getParent())){a=new Ext.util.Scheduler({preSort:'kind,-depth'});a.$owner=b}else {a=c.getScheduler()}b.setScheduler(a)}return a},getStub:function(a){var b=this.getRoot();return a?b.getChild(a):b},collect:function(){var a=this,c=a.getParent(),b=a.collectTask;if(c){c.collect();return}if(!b){b=a.collectTask=new Ext.util.DelayedTask(a.doCollect,a)}if(a.collectTimeout===0){a.doCollect()}else {b.delay(a.collectTimeout)}},doCollect:function(){var a=this.children,b;if(a){for(b in a){a[b].doCollect()}}this.getRoot().collect()},invalidateChildLinks:function(d,c){var a=this.children,b;if(a){for(b in a){a[b].getRoot().invalidateChildLink(d,c)}}},onBindDestroy:function(c,d){var a=this,b;if(a.destroying){return}if(!d){delete a.bindings[c.id]}b=a.getParent();if(b){b.onBindDestroy(c,!0)}else {a.collect()}},applyData:function(b,e){var a=this,d,c;a.getSession();if(!e){c=a.getParent();a.linkData=d=c?Ext.Object.chain(c.getData()):{};a.data=a._data=Ext.Object.chain(d)}if(b&&b.constructor===Object){a.getRoot().set(b,!0)}},applyParent:function(a){if(a){a.registerChild(this)}return a},applyStores:function(f){var b=this,h=b.getRoot(),d,a,c,g,e;b.storeInfo={};b.listenerScopeFn=function(){return b.getView().getInheritedConfig('defaultListenerScope')};for(d in f){a=f[d];if(a.isStore){a.$wasInstance=!0;b.setupStore(a,d);continue}else if(Ext.isString(a)){a={source:a}}else {a=Ext.apply({},a)}e=a.listeners;delete a.listeners;c=b.bind(a,b.onStoreBind,b,{trackStatics:!0});if(c.isStatic()){c.destroy();b.createStore(d,a,e)}else {c.$storeKey=d;c.$listeners=e;g=h.createStubChild(d);g.setStore(c)}}},onStoreBind:function(a,g,c){var f=this.storeInfo,e=c.$storeKey,d=f[e],b;if(!d){this.createStore(e,a,c.$listeners,c)}else {a=Ext.merge({},c.pruneStaticKeys());b=a.proxy;delete a.type;delete a.model;delete a.fields;delete a.proxy;delete a.listeners;if(b){delete b.reader;delete b.writer;d.getProxy().setConfig(b)}d.setConfig(a)}},createStore:function(f,a,c,d){var e=this.getSession(),b;a=Ext.apply({},a);if(a.session){a.session=e}if(a.source){a.type=a.type||'chained'}a.listeners=c;a.resolveListenerScope=this.listenerScopeFn;b=Ext.Factory.store(a);b.$binding=d;this.setupStore(b,f)},setupStore:function(b,c){var a=this,d={};a.getData();b.resolveListenerScope=a.listenerScopeFn;a.storeInfo[c]=b;d[c]=b;a.setData(d)},applyFormulas:function(b){var c=this,e=c.getRoot(),a,d;c.getData();for(a in b){e.createStubChild(a);d=c.getStub(a);d.setFormula(b[a])}return b},applyLinks:function(b){var a;for(a in b){this.linkTo(a,b[a])}},applySchema:function(a){return Ext.data.schema.Schema.get(a)},applyRoot:function(){var b=new Ext.app.bind.RootStub(this),a=this.getParent();if(a){b.depth=a.getRoot().depth-1000}return b},getFormulaFn:function(c){var a=this,b=a.formulaFn;if(!b){b=a.formulaFn=function(b){return a.$formulaData[b]}}a.$formulaData=c;return b}}});Ext.define('Ext.app.domain.Controller',{extend:Ext.app.EventDomain,singleton:!0,type:'controller',prefix:'controller.',idMatchRe:/^#/,constructor:function(){var a=this;a.callParent();a.monitor(Ext.app.BaseController)},match:function(c,a){var b=!1,d=c.alias;if(a==='*'){b=!0}else if(a==='#'){b=!!c.isApplication}else if(this.idMatchRe.test(a)){b=c.getId()===a.substring(1)}else if(d){b=Ext.Array.indexOf(d,this.prefix+a)>-1}return b}});Ext.define('Ext.direct.Manager',{singleton:!0,mixins:[Ext.mixin.Observable],exceptions:{TRANSPORT:'xhr',PARSE:'parse',DATA:'data',LOGIN:'login',SERVER:'exception'},providerClasses:{},remotingMethods:{},config:{varName:'Ext.REMOTING_API'},apiNotFoundError:'Ext Direct API was not found at {0}',constructor:function(){var a=this;a.mixins.observable.constructor.call(a);a.transactions=new Ext.util.MixedCollection();a.providers=new Ext.util.MixedCollection()},addProvider:function(a){var b=this,d=arguments,f=b.relayers||(b.relayers={}),c,e;if(d.length>1){for(c=0,e=d.length;c<e;++c){b.addProvider(d[c])}return}if(!a.isProvider){a=Ext.create('direct.'+a.type+'provider',a)}b.providers.add(a);a.on('data',b.onProviderData,b);if(a.relayedEvents){f[a.id]=b.relayEvents(a,a.relayedEvents)}if(!a.isConnected()){a.connect()}return a},loadProvider:function(a,d,e){var c=this,i=c.providerClasses,h,b,j,g,f,k;if(Ext.isArray(a)){for(f=0,k=a.length;f<k;f++){c.loadProvider(a[f],d,e)}return}h=a.type;b=a.url;if(i[h]&&i[h].checkConfig(a)){g=c.addProvider(a);c.fireEventArgs('providerload',[b,g]);Ext.callback(d,e,[b,g]);return}j=a.varName||c.getVarName();delete a.varName;delete a.url;Ext.Loader.loadScript({url:b,scope:c,onLoad:function(){this.onApiLoadSuccess({url:b,varName:j,config:a,callback:d,scope:e})},onError:function(){this.onApiLoadFailure({url:b,callback:d,scope:e})}})},getProvider:function(a){return a.isProvider?a:this.providers.get(a)},removeProvider:function(a){var c=this,e=c.providers,d=c.relayers,b;a=a.isProvider?a:e.get(a);if(a){a.un('data',c.onProviderData,c);b=a.id;if(d[b]){d[b].destroy();delete d[b]}e.remove(a);return a}return null},addTransaction:function(a){this.transactions.add(a);return a},removeTransaction:function(a){var b=this;a=b.getTransaction(a);b.transactions.remove(a);return a},getTransaction:function(a){return typeof a==='object'?a:this.transactions.get(a)},onProviderData:function(d,a){var b=this,c,e;if(Ext.isArray(a)){for(c=0,e=a.length;c<e;++c){b.onProviderData(d,a[c])}return}if(a.name&&a.name!=='event'&&a.name!=='exception'){b.fireEvent(a.name,a)}else if(a.status===!1){b.fireEvent('exception',a)}b.fireEvent('event',a,d)},parseMethod:function(c){var b=Ext.global,e=0,a,d,f;if(Ext.isFunction(c)){a=c}else if(Ext.isString(c)){a=this.remotingMethods[c];if(!a){d=c.split('.');f=d.length;while(b&&e<f){b=b[d[e]];++e}a=Ext.isFunction(b)?b:null}}return a||null},resolveApi:function(b,g){var a,c,d,f,e;a=b&&b.prefix;if(a&&a.substr(a.length-1)!=='.'){a+='.'}for(c in b){d=b[c];if(c!=='prefix'&&typeof d!=='function'){f=(a||'')+d;e=this.parseMethod(f);if(typeof e==='function'){b[c]=e}}}return b},privates:{addProviderClass:function(a,b){this.providerClasses[a]=b},onApiLoadSuccess:function(options){var me=this,url=options.url,varName=options.varName,api,provider,error;try{api=Ext.apply(options.config,eval(varName));provider=me.addProvider(api)}catch(a){error=a+''}if(error){me.fireEventArgs('providerloaderror',[url,error]);Ext.callback(options.callback,options.scope,[url,error])}else {me.fireEventArgs('providerload',[url,provider]);Ext.callback(options.callback,options.scope,[url,provider])}},onApiLoadFailure:function(a){var c=a.url,b;b=Ext.String.format(this.apiNotFoundError,c);this.fireEventArgs('providerloaderror',[c,b]);Ext.callback(a.callback,a.scope,[c,b])},registerMethod:function(b,a){this.remotingMethods[b]=a},clearAllMethods:function(){this.remotingMethods={}}}},function(){Ext.Direct=Ext.direct.Manager});Ext.define('Ext.direct.Provider',{alias:'direct.provider',mixins:[Ext.mixin.Observable],isProvider:!0,$configPrefixed:!1,$configStrict:!1,config:{headers:undefined},subscribers:0,constructor:function(b){var a=this;a.mixins.observable.constructor.call(a,b);a.requests={};if(a.id==null){a.id=Ext.id(null,'provider-')}},destroy:function(){var a=this;a.disconnect(!0);a.callParent()},isConnected:function(){return this.subscribers>0},connect:function(){var a=this;if(a.subscribers===0){a.doConnect();a.fireEventArgs('connect',[a])}a.subscribers++},doConnect:Ext.emptyFn,disconnect:function(b){var a=this;if(a.subscribers>0||b){if(b){a.subscribers=0}else {a.subscribers--}if(a.subscribers===0){a.doDisconnect();a.fireEventArgs('disconnect',[a])}}},doDisconnect:function(){var a=this.requests,b,c;for(c in a){b=a[c];b.abort()}this.requests={}},sendAjaxRequest:function(b){var a=Ext.Ajax.request(b);if(a&&a.id){this.requests[a.id]=a}return a},onData:function(b,c,a){if(a&&a.request){delete this.requests[a.request.id]}},inheritableStatics:{checkConfig:Ext.returnFalse},onClassExtended:function(b,a,c){if(a.type){Ext.direct.Manager.addProviderClass(a.type,b)}}});Ext.define('Ext.app.domain.Direct',{extend:Ext.app.EventDomain,singleton:!0,type:'direct',idProperty:'id',constructor:function(){var a=this;a.callParent();a.monitor(Ext.direct.Provider)}});Ext.define('Ext.data.PageMap',{extend:Ext.util.LruCache,config:{store:null,pageSize:0,rootProperty:''},clear:function(b){var a=this;a.pageMapGeneration=(a.pageMapGeneration||0)+1;a.indexMap={};a.callParent([b])},forEach:function(k,f){var d=this,b=Ext.Object.getKeys(d.map),h=b.length,j=d.getPageSize(),e,g,a,c,i;for(a=0;a<h;a++){b[a]=+b[a]}Ext.Array.sort(b,Ext.Array.numericSortFn);f=f||d;for(a=0;a<h;a++){e=b[a];g=d.getPage(e);i=g.length;for(c=0;c<i;c++){if(k.call(f,g[c],(e-1)*j+c)===!1){return}}}},findBy:function(d,a){var c=this,b=null;a=a||c;c.forEach(function(c,e){if(d.call(a,c,e)){b=c;return !1}});return b},findIndexBy:function(d,a){var c=this,b=-1;a=a||c;c.forEach(function(e,c){if(d.call(a,e)){b=c;return !1}});return b},find:function(f,a,h,d,e,c){if(Ext.isEmpty(a,!1)){return null}var g=Ext.String.createRegex(a,d,e,c),b=this.getRootProperty();return this.findBy(function(i){return i&&g.test((b?i[b]:i)[f])},null,h)},findIndex:function(f,a,h,d,e,c){if(Ext.isEmpty(a,!1)){return null}var g=Ext.String.createRegex(a,d,e,c),b=this.getRootProperty();return this.findIndexBy(function(i){return i&&g.test((b?i[b]:i)[f])},null,h)},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},addAll:function(a){this.addPage(1,a)},addPage:function(a,g){var c=this,d=c.getPageSize(),k=a+Math.floor((g.length-1)/d),i=(a-1)*d,j=c.indexMap,b,f,h,e;for(e=0;a<=k;a++,e+=d){b=Ext.Array.slice(g,e,e+d);for(f=0,h=b.length;f<h;f++){j[b[f].internalId]=i++}c.add(a,b);c.fireEvent('pageadd',c,a,b)}},getCount:function(){var a=this.callParent();if(a){a=(a-1)*this.getPageSize()+this.last.value.length}return a},getByInternalId:function(b){var a=this.indexMap[b];if(a!=null){return this.getAt(a)}},indexOf:function(b){var a=-1;if(b){a=this.indexMap[b.internalId];if(a==null){a=-1}}return a},insert:function(){},remove:function(){},removeAt:function(){},removeAtKey:function(d){var a=this,b=a.getPage(d),e,c,f;if(b){if(a.fireEvent('beforepageremove',a,d,b)!==!1){f=b.length;for(c=0;c<f;c++){delete a.indexMap[b[c].internalId]}e=a.callParent(arguments);a.fireEvent('pageremove',a,d,b);b.length=0}}return e},getPage:function(a){return this.get(a)},hasRange:function(e,d){var a=this,c=a.getPageFromRecordIndex(e),b=a.getPageFromRecordIndex(d);for(;c<=b;c++){if(!a.hasPage(c)){return !1}}return (b-1)*a._pageSize+a.getPage(b).length>d},hasPage:function(a){return !!this.get(a)},peekPage:function(a){return this.map[a]},getAt:function(a){return this.getRange(a,a+1)[0]},getRange:function(l,c){if(c){c--}if(!this.hasRange(l,c)){Ext.raise('PageMap asked for range which it does not have')}var d=this,k=Ext.Array,f=d.getPageSize(),g=d.getPageFromRecordIndex(l),h=d.getPageFromRecordIndex(c),m=(g-1)*f,n=(h*f)-1,a=g,j=[],e,i,b;for(;a<=h;a++){if(a===g){e=l-m;b=e>0}else {e=0;b=!1}if(a===h){i=f-(n-c);b=b||i<f}if(b){k.push(j,k.slice(d.getPage(a),e,i))}else {k.push(j,d.getPage(a))}}return j}});Ext.define('Ext.data.BufferedStore',{extend:Ext.data.ProxyStore,alias:'store.buffered',isBufferedStore:!0,buffered:!0,config:{data:0,pageSize:25,remoteSort:!0,remoteFilter:!0,sortOnLoad:!1,purgePageCount:5,trailingBufferZone:25,leadingBufferZone:200,defaultViewSize:100,viewSize:0,trackRemoved:!1},applyData:function(b){var a=this.data||(this.data=this.createDataCollection());return a},applyProxy:function(a){a=this.callParent([a]);if(a&&a.setEnablePaging){a.setEnablePaging(!0)}return a},applyAutoSort:function(){},createFiltersCollection:function(){return new Ext.util.FilterCollection()},createSortersCollection:function(){return new Ext.util.SorterCollection()},updateGroupField:function(a){this.group(a)},getGrouper:function(){return this.grouper},isGrouped:function(){return !!this.grouper},createDataCollection:function(){var a=this,b=new Ext.data.PageMap({store:a,rootProperty:'data',pageSize:a.getPageSize(),maxSize:a.getPurgePageCount(),listeners:{clear:a.onPageMapClear,scope:a}});a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.pageRequests={};return b},removeAll:function(b){var a=this,c=a.getData();if(c){if(b){a.suspendEvent('clear')}c.clear();if(b){a.resumeEvent('clear')}}},flushLoad:function(){var b=this,a=b.pendingLoadOptions;b.clearLoadTask();if(!a){return}if(!a.preserveOnFlush){b.getData().clear();a.page=1;a.start=0;a.limit=b.getViewSize()||b.getDefaultViewSize()}a.loadCallback=a.callback;a.callback=null;return b.loadToPrefetch(a)},reload:function(d){var a=this,f=a.getData(),i=Number.MAX_VALUE,c,b,j,k,g,e,h,l;if(!d){d={}}if(a.loading||a.fireEvent('beforeload',a,d)===!1){return}e=function(){var g=a.totalCount,h=b-c;if(b>=g){b=g-1;c=Math.max(b-h,0)}if(a.rangeCached(c,b,!1)){a.loadCount=(a.loadCount||0)+1;a.loading=!1;f.un('pageadd',e);l=f.getRange(c,b);a.fireEvent('refresh',a);a.fireEvent('load',a,l,!0)}};h=Math.ceil((a.getLeadingBufferZone()+a.getTrailingBufferZone())/2);if(a.lastRequestStart&&a.preserveScrollOnReload){c=a.lastRequestStart;b=a.lastRequestEnd;i=a.getTotalCount()}else {c=d.start||0;b=c+(d.count||a.getPageSize())-1}f.clear(!0);delete a.totalCount;c=Math.max(c-h,0);b=Math.min(b+h,i);c=c===0?0:c-1;b=b===i?b:b+1;j=a.getPageFromRecordIndex(c);k=a.getPageFromRecordIndex(b);a.loading=!0;d.waitForReload=e;f.on('pageadd',e);for(g=j;g<=k;g++){a.prefetchPage(g,d)}},filter:function(){this.callParent(arguments)},filterBy:function(b,a){},loadData:function(b,a){},loadPage:function(c,a){var b=this;a=a||{};a.page=b.currentPage=c;a.start=(c-1)*b.getPageSize();a.limit=b.getViewSize()||b.getDefaultViewSize();a.loadCallback=a.callback;a.callback=null;a.preserveOnFlush=!0;return b.load(a)},clearData:function(c){var b=this,a=b.getData();if(a){a.clear()}},getCount:function(){return this.totalCount||0},getRange:function(c,b,d){var a=this,k=a.totalCount-1,m=a.lastRequestStart,l=[],h=a.getData(),e,f,g,i,j;d=Ext.apply({prefetchStart:c,prefetchEnd:b},d);b=(b>=a.totalCount)?k:b;if(d.forRender!==!1){f=c===0?0:c-1;g=b===k?b:b+1}else {f=c;g=b}a.lastRequestStart=c;a.lastRequestEnd=b;if(a.rangeCached(c,b,d.forRender)){a.onRangeAvailable(d);l=h.getRange(c,b+1)}else {a.fireEvent('cachemiss',a,c,b);i=a.getPageFromRecordIndex(f);j=a.getPageFromRecordIndex(g);e=function(g,f,k){if(f>=i&&f<=j&&a.rangeCached(c,b)){a.fireEvent('cachefilled',a,c,b);h.un('pageadd',e);a.onRangeAvailable(d)}};h.on('pageadd',e);a.prefetchRange(c,b)}a.primeCache(c,b,c<m?-1:1);return l},getById:function(b){var a=this.data.findBy(function(a){return a.getId()===b});return a},getAt:function(a){var b=this.getData();if(b.hasRange(a,a)){return b.getAt(a)}},getByInternalId:function(a){return this.data.getByInternalId(a)},contains:function(a){return this.indexOf(a)>-1},indexOf:function(a){return this.getData().indexOf(a)},indexOfId:function(a){return this.indexOf(this.getById(a))},group:function(b,d){var a=this,c;if(b&&typeof b==='string'){c=a.grouper;if(c&&d!==undefined){c.setDirection(d)}else {a.grouper=new Ext.util.Grouper({property:b,direction:d||'ASC',root:'data'})}}else {a.grouper=b?a.getSorters().decodeSorter(b,Ext.util.Grouper):null}a.getData().clear();a.loadPage(1,{callback:function(){a.fireEvent('groupchange',a,a.getGrouper())}})},getPageFromRecordIndex:function(a){return Math.floor(a/this.getPageSize())+1},calculatePageCacheSize:function(c){var a=this,b=a.getPurgePageCount();return b?Math.max(a.getData().getMaxSize()||0,Math.ceil((c+a.getTrailingBufferZone()+a.getLeadingBufferZone())/a.getPageSize())*2+b):0},loadToPrefetch:function(b){var a=this,f=b,h,d,i,e=b.start,k=b.start+b.limit-1,m=(a.getViewSize()||b.limit),c=Math.min(k,b.start+m-1),p=a.getPageFromRecordIndex(Math.max(e-a.getTrailingBufferZone(),0)),q=a.getPageFromRecordIndex(k+a.getLeadingBufferZone()),g=a.getData(),j=function(){d=d||[];if(b.loadCallback){b.loadCallback.call(b.scope||a,d,o,!0)}if(b.callback){b.callback.call(b.scope||a,d,e||0,k||0,b)}},n=function(){a.loadCount=(a.loadCount||0)+1;a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('load',a,d,!0)},l=function(){if(a.rangeCached(e,c)){a.loading=!1;d=g.getRange(e,c+1);g.un('pageadd',l);if(a.hasListeners.guaranteedrange){a.guaranteeRange(e,c,b.callback,b.scope)}j();n()}},o;g.setMaxSize(a.calculatePageCacheSize(m));if(a.fireEvent('beforeload',a,b)!==!1){delete a.totalCount;a.loading=!0;if(b.callback){f=Ext.apply({},b);delete f.callback}a.on('prefetch',function(m,e,d,k){o=k;if(d){if((i=a.getTotalCount())){g.on('pageadd',l);c=Math.min(c,i-1);q=a.getPageFromRecordIndex(Math.min(c+a.getLeadingBufferZone(),i-1));for(h=p+1;h<=q;++h){a.prefetchPage(h,f)}}else {j();n()}}else {a.loading=!1;j();a.fireEvent('load',a,e,!1)}},null,{single:!0});a.prefetchPage(p,f)}},prefetch:function(b){var a=this,c=a.getPageSize(),d=a.getData(),e,f;if(c){if(a.lastPageSize&&c!==a.lastPageSize){Ext.raise("pageSize cannot be dynamically altered")}if(!d.getPageSize()){d.setPageSize(c)}}else {a.pageSize=d.setPageSize(c=b.limit)}a.lastPageSize=c;if(!b.page){b.page=a.getPageFromRecordIndex(b.start);b.start=(b.page-1)*c;b.limit=Math.ceil(b.limit/c)*c}f=a.pageRequests[b.page];if(!f||f.getOperation().pageMapGeneration!==d.pageMapGeneration){b=Ext.apply({action:'read',filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper(),internalCallback:a.onProxyPrefetch,internalScope:a},b);e=a.createOperation('read',b);e.pageMapGeneration=d.pageMapGeneration;if(a.fireEvent('beforeprefetch',a,e)!==!1){a.pageRequests[b.page]=e.execute();if(a.getProxy().isSynchronous){delete a.pageRequests[b.page]}}}return a},onPageMapClear:function(){var a=this,e=a.wasLoading,d=a.pageRequests,b=a.getData(),c;b.clearListeners();b.on('clear',a.onPageMapClear,a);a.relayEvents(b,['beforepageremove','pageadd','pageremove']);a.loading=!0;a.totalCount=0;for(c in d){if(d.hasOwnProperty(c)){d[c].getOperation().abort()}}a.fireEvent('clear',a);a.loading=e},prefetchPage:function(d,e){var a=this,b=a.getPageSize(),f=(d-1)*b,c=a.totalCount;if(c!==undefined&&a.data.getCount()===c){return}a.prefetch(Ext.applyIf({page:d,start:f,limit:b},e))},onProxyPrefetch:function(b){if(this.destroying||this.destroyed){return}var a=this,g=b.getResultSet(),e=b.getRecords(),d=b.wasSuccessful(),i=b.getPage(),c=b.waitForReload,k=a.totalCount,h=a.pageRequests,j,f;if(b.pageMapGeneration===a.getData().pageMapGeneration){if(g){a.totalCount=g.getTotal();if(a.totalCount!==k){a.fireEvent('totalcountchange',a.totalCount)}}if(i!==undefined){delete a.pageRequests[i]}a.loading=!1;a.fireEvent('prefetch',a,e,d,b);if(d){if(a.totalCount===0){if(c){for(j in h){f=h[j].getOperation();if(f.waitForReload===c){delete f.waitForReload}}a.getData().un('pageadd',c);a.fireEvent('refresh',a);a.fireEvent('load',a,[],!0)}}else {a.cachePage(e,b.getPage())}}Ext.callback(b.getCallback(),b.getScope()||a,[e,b,d])}},cachePage:function(b,d){var a=this,e=b.length,c;if(!Ext.isDefined(a.totalCount)){a.totalCount=b.length;a.fireEvent('totalcountchange',a.totalCount)}for(c=0;c<e;c++){b[c].join(a)}a.getData().addPage(d,b)},rangeCached:function(b,a,e){var c=b,d=a;if(e!==!1){c=b===0?0:b-1;d=a===this.totalCount-1?a:a+1}return this.getData().hasRange(c,d)},pageCached:function(a){return this.getData().hasPage(a)},pagePending:function(a){return !!this.pageRequests[a]},rangeSatisfied:function(a,b){return this.rangeCached(a,b)},onRangeAvailable:function(a){var c=this,f=c.getTotalCount(),e=a.prefetchStart,b=(a.prefetchEnd>f-1)?f-1:a.prefetchEnd,d;b=Math.max(0,b);d=c.getData().getRange(e,b+1);if(a.fireEvent!==!1){c.fireEvent('guaranteedrange',d,e,b,a)}if(a.callback){a.callback.call(a.scope||c,d,e,b,a)}},guaranteeRange:function(d,e,b,c,a){a=Ext.apply({callback:b,scope:c},a);this.getRange(d,e+1,a)},prefetchRange:function(c,d){var a=this,e,f,b,g=a.getData();if(!a.rangeCached(c,d)){e=a.getPageFromRecordIndex(c);f=a.getPageFromRecordIndex(d);g.setMaxSize(a.calculatePageCacheSize(d-c+1));for(b=e;b<=f;b++){if(!a.pageCached(b)){a.prefetchPage(b)}}}},primeCache:function(a,b,g){var c=this,f=c.getLeadingBufferZone(),e=c.getTrailingBufferZone(),h=c.getPageSize(),d=c.totalCount;if(g===-1){a=Math.max(a-f,0);b=Math.min(b+e,d-1)}else if(g===1){a=Math.max(Math.min(a-e,d-h),0);b=Math.min(b+f,d-1)}else {a=Math.min(Math.max(Math.floor(a-((f+e)/2)),0),d-c.pageSize);b=Math.min(Math.max(Math.ceil(b+((f+e)/2)),0),d-1)}c.prefetchRange(a,b)},sort:function(b,a,c){if(arguments.length===0){this.clearAndLoad()}else {this.getSorters().addSort(b,a,c)}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange();if(b.length){a.fireEvent('beforesort',a,b);a.clearAndLoad({callback:function(){a.fireEvent('sort',a,b)}})}else {a.fireEvent('sort',a,b)}},clearAndLoad:function(b){var a=this;a.clearing=!0;a.getData().clear();a.clearing=!1;a.loadPage(1,b)},privates:{isLast:function(a){return this.indexOf(a)===this.getTotalCount()-1},isMoving:function(){return !1}}});Ext.define('Ext.data.ClientStore',{extend:Ext.data.Store,alias:'store.clientstorage',config:{storage:'local',storageKey:null},trackRemoved:!1,proxy:{type:'memory',clearOnRead:!0},sync:function(a){var b=this,g=b._getKey(),f=b.getStorage(),i=b.getDataSource(),e=b.getProxy(),d=e.getWriter(),h=d.getWriteAllFields(),c=[];try{b.suspendAutoSync();d.setWriteAllFields(!0);i.each(function(e){if(e.phantom){e.setId(b.nextId())}c.push(d.getRecordData(e));e.commit()});if(c.length){c=JSON.stringify(c);c=f.setItem(g,c)}else {f.removeItem(g)}if(a&&a.success){Ext.callback(a.success,a.scope||e,[null,a])}}catch(j){if(a&&a.failure){Ext.callback(a.failure,a.scope||e,[null,a])}}finally{b.resumeAutoSync();d.setWriteAllFields(h)}if(a&&a.callback){Ext.callback(a.callback,a.scope||e,[null,a])}return b},applyStorage:function(a){var b=Ext.global[a+'Storage'];return b},updateProxy:function(c,d){var b=this,f=b._getKey(),e=b.getStorage(),a;b.callParent([c,d]);a=e.getItem(f);if(a){c.setData(JSON.parse(a))}},privates:{_getKey:function(){var a=this.getStorageKey();return a},nextId:function(){var b=this.getDataSource(),a=1;while(b.containsKey(a)){++a}return a}}});Ext.define('Ext.data.proxy.Direct',{extend:Ext.data.proxy.Server,alternateClassName:'Ext.data.DirectProxy',alias:'proxy.direct',config:{paramOrder:undefined,paramsAsHash:!0,directFn:undefined,api:undefined,metadata:undefined},paramOrderRe:/[\s,|]/,constructor:function(a){this.callParent([a]);this.canceledOperations={}},applyParamOrder:function(a){if(Ext.isString(a)){a=a.split(this.paramOrderRe)}return a},updateApi:function(){this.methodsResolved=!1},updateDirectFn:function(){this.methodsResolved=!1},resolveMethods:function(){var a=this,c=a.getDirectFn(),b=a.getApi(),d;if(c){a.setDirectFn(d=Ext.direct.Manager.parseMethod(c));if(!Ext.isFunction(d)){Ext.raise('Cannot resolve directFn '+c)}}if(b){b=Ext.direct.Manager.resolveApi(b,a);a.setApi(b)}a.methodsResolved=!0},doRequest:function(e){var a=this,d,b,f,g,h,i,c;if(!a.methodsResolved){a.resolveMethods()}b=a.buildRequest(e);f=b.getAction();i=a.getApi();if(i){c=i[f]}c=c||a.getDirectFn();d=a.getWriter();if(d&&e.allowWrite()){b=d.write(b)}if(f==='read'){g=b.getParams()}else {g=b.getJsonData()}h=c.directCfg.method.getArgs({params:g,allowSingle:d.getAllowSingle(),paramOrder:a.getParamOrder(),paramsAsHash:a.getParamsAsHash(),paramsAsArray:!0,metadata:a.getMetadata(),callback:a.createRequestCallback(b,e),scope:a});b.setConfig({args:h,directFn:c});c.apply(window,h);return b},abort:function(a){var b;if(a&&a.isDataRequest){a=a.getOperation()}if(a&&a.isOperation){b=a.id}if(b!=null){this.canceledOperations[b]=!0}},applyEncoding:Ext.identityFn,createRequestCallback:function(c,a){var b=this;return function(e,d){if(!b.canceledOperations[a.id]){b.processResponse(d.status,a,c,d)}delete b.canceledOperations[a.id]}},extractResponseData:function(a){return Ext.isDefined(a.result)?a.result:a.data},setException:function(a,b){a.setException(b.message)},buildUrl:function(){return ''}});Ext.define('Ext.data.DirectStore',{extend:Ext.data.Store,alias:'store.direct',constructor:function(a){var b;a=Ext.apply({},a);if(!a.proxy){b={type:'direct',reader:{type:'json'}};Ext.copyTo(b,a,'paramOrder,paramsAsHash,directFn,api,simpleSortMode,extraParams');Ext.copyTo(b.reader,a,'totalProperty,root,rootProperty,idProperty');a.proxy=b}this.callParent([a])}});Ext.define('Ext.data.JsonP',{singleton:!0,requestCount:0,requests:{},timeout:30000,disableCaching:!0,disableCachingParam:'_dc',callbackKey:'callback',request:function(a){a=Ext.apply({},a);var b=this,l=Ext.isDefined(a.disableCaching)?a.disableCaching:b.disableCaching,h=a.disableCachingParam||b.disableCachingParam,f=++b.requestCount,e=a.callbackName||'callback'+f,g=a.callbackKey||b.callbackKey,i=Ext.isDefined(a.timeout)?a.timeout:b.timeout,d=Ext.apply({},a.params),k=a.url,m=Ext.name,c,j;if(l&&!d[h]){d[h]=Ext.Date.now()}a.params=d;d[g]=m+'.data.JsonP.'+e;j=b.createScript(k,d,a);b.requests[f]=c={url:k,params:d,script:j,id:f,scope:a.scope,success:a.success,failure:a.failure,callback:a.callback,callbackKey:g,callbackName:e};if(i>0){c.timeout=Ext.defer(b.handleTimeout,i,b,[c])}b.setupErrorHandling(c);b[e]=b.bindResponse(c);b.loadScript(c);return c},bindResponse:function(a){var b=this;return function(c){Ext.elevate(function(){b.handleResponse(c,a)})}},abort:function(a){var d=this,b=d.requests,c;if(a){if(!a.id){a=b[a]}d.handleAbort(a)}else {for(c in b){if(b.hasOwnProperty(c)){d.abort(b[c])}}}},setupErrorHandling:function(a){a.script.onerror=Ext.bind(this.handleError,this,[a])},handleAbort:function(a){a.errorType='abort';this.handleResponse(null,a)},handleError:function(a){a.errorType='error';this.handleResponse(null,a)},cleanupErrorHandling:function(a){a.script.onerror=null},handleTimeout:function(a){a.errorType='timeout';this.handleResponse(null,a)},handleResponse:function(c,a){var b=!0;Ext.undefer(a.timeout);delete this[a.callbackName];delete this.requests[a.id];this.cleanupErrorHandling(a);Ext.fly(a.script).destroy();if(a.errorType){b=!1;Ext.callback(a.failure,a.scope,[a.errorType])}else {Ext.callback(a.success,a.scope,[c])}Ext.callback(a.callback,a.scope,[b,c,a.errorType])},createScript:function(c,b,d){var a=document.createElement('script');a.setAttribute("src",Ext.urlAppend(c,Ext.Object.toQueryString(b)));a.setAttribute("async",!0);a.setAttribute("type","text/javascript");return a},loadScript:function(a){Ext.getHead().appendChild(a.script)}});Ext.define('Ext.data.proxy.JsonP',{extend:Ext.data.proxy.Server,alternateClassName:'Ext.data.ScriptTagProxy',alias:['proxy.jsonp','proxy.scripttag'],config:{callbackKey:'callback',recordParam:'records',autoAppendParams:!0},doRequest:function(c){var b=this,a=b.buildRequest(c),d=a.getParams();a.setConfig({callbackKey:b.callbackKey,timeout:b.timeout,scope:b,disableCaching:!1,callback:b.createRequestCallback(a,c)});if(b.getAutoAppendParams()){a.setParams({})}a.setRawRequest(Ext.data.JsonP.request(a.getCurrentConfig()));a.setParams(d);b.lastRequest=a;return a},createRequestCallback:function(b,c){var a=this;return function(e,d,f){if(b===a.lastRequest){a.lastRequest=null}a.processResponse(e,c,b,d)}},setException:function(a,b){a.setException(a.getRequest().getRawRequest().errorType)},buildUrl:function(c){var d=this,i=d.callParent(arguments),g=c.getRecords(),e=d.getWriter(),a,b,h,f,j;if(e&&c.getOperation().allowWrite()){c=e.write(c)}a=c.getParams();b=a.filters;delete a.filters;if(b&&b.length){for(f=0;f<b.length;f++){h=b[f];j=h.getValue();if(j){a[h.getProperty()]=j}}}if(Ext.isArray(g)&&g.length>0&&(!e||!e.getEncode())){a[d.getRecordParam()]=d.encodeRecords(g)}if(d.getAutoAppendParams()){i=Ext.urlAppend(i,Ext.Object.toQueryString(a))}return i},abort:function(a){a=a||this.lastRequest;if(a){Ext.data.JsonP.abort(a.getRawRequest())}},encodeRecords:function(c){var b=[],a=0,d=c.length;for(;a<d;a++){b.push(Ext.encode(c[a].getData()))}return b}});Ext.define('Ext.data.JsonPStore',{extend:Ext.data.Store,alias:'store.jsonp',constructor:function(a){a=Ext.apply({proxy:{type:'jsonp',reader:'json'}},a);this.callParent([a])}});Ext.define('Ext.data.JsonStore',{extend:Ext.data.Store,alias:'store.json',constructor:function(a){a=Ext.apply({proxy:{type:'ajax',reader:'json',writer:'json'}},a);this.callParent([a])}});Ext.define('Ext.data.ModelManager',{alternateClassName:'Ext.ModelMgr',singleton:!0,deprecated:{5:{methods:{clear:null,create:function(b,c,d){var a=c;if(!a.isEntity){a=this.getModel(c||b.name)}return a.createWithId(d,b)},each:function(b,a){Ext.data.Model.schema.eachEntity(b,a)},get:function(a){return this.getModel(a)},getCount:function(){return Ext.data.Model.schema.entityCount},getModel:function(a){return Ext.data.schema.Schema.lookupEntity(a)},isRegistered:function(a){return !!this.getModel(a)}}}}});Ext.define('Ext.data.NodeInterface',{statics:{decorate:function(f){var a=Ext.data.schema.Schema.lookupEntity(f),e=a.prototype,c,b,d;if(!a.prototype.isObservable){a.mixin(Ext.mixin.Observable.prototype.mixinId,Ext.mixin.Observable)}if(e.isNode){return}c=e.idProperty;b=a.getField(c);d=b.type;a.override(this.getPrototypeBody());a.addFields([{name:'parentId',type:d,defaultValue:null,allowNull:b.allowNull},{name:'index',type:'int',defaultValue:-1,persist:!1,convert:null},{name:'depth',type:'int',defaultValue:0,persist:!1,convert:null},{name:'expanded',type:'bool',defaultValue:!1,persist:!1,convert:null},{name:'expandable',type:'bool',defaultValue:!0,persist:!1,convert:null},{name:'checked',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'leaf',type:'bool',defaultValue:!1},{name:'cls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'iconCls',type:'string',defaultValue:'',persist:!1,convert:null},{name:'icon',type:'string',defaultValue:'',persist:!1,convert:null},{name:'glyph',type:'string',defaultValue:'',persist:!1,convert:null},{name:'root',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isLast',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'isFirst',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'allowDrop',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'allowDrag',type:'boolean',defaultValue:!0,persist:!1,convert:null},{name:'loaded',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'loading',type:'boolean',defaultValue:!1,persist:!1,convert:null},{name:'href',type:'string',defaultValue:'',persist:!1,convert:null},{name:'hrefTarget',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtip',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qtitle',type:'string',defaultValue:'',persist:!1,convert:null},{name:'qshowDelay',type:'int',defaultValue:0,persist:!1,convert:null},{name:'children',type:'auto',defaultValue:null,persist:!1,convert:null},{name:'visible',type:'boolean',defaultValue:!0,persist:!1},{name:'text',type:'string',persist:!1}])},getPrototypeBody:function(){var a={idchanged:!0,append:!0,remove:!0,move:!0,insert:!0,beforeappend:!0,beforeremove:!0,beforemove:!0,beforeinsert:!0,expand:!0,collapse:!0,beforeexpand:!0,beforecollapse:!0,sort:!0},b={silent:!0};return {isNode:!0,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(a){var b=this,j=b.childType,h,f,g,c,d,e,i=b.self;if(!a.isModel){if(j){i=b.schema.getEntity(j)}else {h=b.getTreeStore();f=h&&h.getProxy().getReader();g=b.getProxy();c=g?g.getReader():null;d=!f||(c&&c.initialConfig.typeProperty)?c:f;if(d){e=d.getTypeProperty();if(e){i=d.getChildType(b.schema,a,e)}}}a=new i(a)}if(!a.childNodes){a.firstChild=a.lastChild=a.parentNode=a.previousSibling=a.nextSibling=null;a.childNodes=[]}return a},isLeaf:function(){return this.get('leaf')===!0},setFirstChild:function(a){this.firstChild=a},setLastChild:function(a){this.lastChild=a},updateInfo:function(b,c){var a=this,i=a.phantom,h,g,e,f,d;b={silent:!0,commit:b};if(c.depth!=null&&c.depth!==a.data.depth){g={depth:c.depth+1};e=a.childNodes;f=e.length;for(d=0;d<f;d++){e[d].updateInfo(b,g)}}h=a.set(c,b);a.phantom=i;return h},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 !1},triggerUIUpdate:function(){this.callJoined('afterEdit',[])},appendChild:function(b,h,m){var a=this,d=a.getTreeStore(),g=d&&d.bulkUpdate,l={isLast:!0,parentId:a.getId(),depth:(a.data.depth||0)+1},e,f,k,c,i,j,n;Ext.suspendLayouts();if(Ext.isArray(b)){n=b.length;i=new Array(n);a.callTreeStore('beginFill');for(j=0;j<n;j++){i[j]=a.appendChild(b[j],h,m)}a.callTreeStore('endFill',[i])}else {b=a.createNode(b);if(h!==!0&&a.fireBubbledEvent('beforeappend',[a,b])===!1){Ext.resumeLayouts(!0);return !1}c=a.childNodes.length;e=b.parentNode;if(e){if(h!==!0&&b.fireBubbledEvent('beforemove',[b,e,a,c])===!1){Ext.resumeLayouts(!0);return !1}if(e.removeChild(b,!1,h,e.getTreeStore()===d)===!1){Ext.resumeLayouts(!0);return !1}}if(d){d.beginUpdate()}c=a.childNodes.length;if(c===0){a.setFirstChild(b)}a.childNodes[c]=b;b.parentNode=a;b.nextSibling=null;a.setLastChild(b);f=a.childNodes[c-1];if(f){b.previousSibling=f;f.nextSibling=b;f.updateInfo(m,{isLast:!1});if(!g){f.triggerUIUpdate()}}else {b.previousSibling=null}l.isFirst=c===0;l.index=c;k=b.updateInfo(m,l);if(a.isLeaf()){a.set('leaf',!1)}if(!a.isLoaded()){if(g){a.data.loaded=!0}else {a.set('loaded',!0)}}else if(a.childNodes.length===1&&!g){a.triggerUIUpdate()}if(c&&a.childNodes[c-1].isExpanded()&&!g){a.childNodes[c-1].cascade(a.triggerUIUpdate)}if(d){d.registerNode(a,!g);if(g){d.registerNode(b)}}if(h!==!0){a.fireBubbledEvent('append',[a,b,c]);if(e){b.fireBubbledEvent('move',[b,e,a,c])}}a.callTreeStore('onNodeAppend',[b,c]);if(k){b.callJoined('afterEdit',[k])}i=b;if(d){d.endUpdate()}}Ext.resumeLayouts(!0);return i},getOwnerTree:function(){var a=this.getTreeStore();return a&&a.ownerTree},getTreeStore:function(){var a=this;while(a&&!a.treeStore){a=a.parentNode}return a&&a.treeStore},removeChild:function(a,n,i,f){var c=this,h=c.indexOf(a),g,m,d,e=c.getTreeStore(),l=e&&e.bulkUpdate,j,k=[];if(h===-1||(i!==!0&&c.fireBubbledEvent('beforeremove',[c,a,!!f])===!1)){return !1}Ext.suspendLayouts();if(e){e.beginUpdate()}Ext.Array.erase(c.childNodes,h,1);if(c.firstChild===a){c.setFirstChild(a.nextSibling)}if(c.lastChild===a){c.setLastChild(a.previousSibling)}d=a.previousSibling;if(d){a.previousSibling.nextSibling=a.nextSibling}if(a.nextSibling){a.nextSibling.previousSibling=a.previousSibling;if(h===0){a.nextSibling.updateInfo(!1,{isFirst:!0})}for(g=h,m=c.childNodes.length;g<m;g++){c.childNodes[g].updateInfo(!1,{index:g})}}else if(d){d.updateInfo(!1,{isLast:!0});if(!l){if(d.isExpanded()){d.cascade(c.triggerUIUpdate)}else {d.triggerUIUpdate()}}}if(!c.childNodes.length&&!l){c.triggerUIUpdate()}Ext.resumeLayouts(!0);if(i!==!0){j={parentNode:a.parentNode,previousSibling:a.previousSibling,nextSibling:a.nextSibling};c.callTreeStore('beforeNodeRemove',[[a],!!f,k]);a.previousSibling=a.nextSibling=a.parentNode=null;c.fireBubbledEvent('remove',[c,a,!!f,j]);c.callTreeStore('onNodeRemove',[[a],!!f,k])}if(n){a.erase(!0)}else {a.clear()}if(!f){a.set({parentId:null,lastParentId:c.getId()},b)}if(e){e.endUpdate()}return a},copy:function(g,a,f){var b=this,d,e=[g],h=b.childNodes?b.childNodes.length:0,c;if(a&&a.isSession){e.push(a)}else if(arguments.length<3){f=a}d=b.callParent(e);if(f){for(c=0;c<h;c++){d.appendChild(b.childNodes[c].copy(undefined,!0))}}return d},clear:function(c,b){var a=this;a.parentNode=a.previousSibling=a.nextSibling=null;if(c){a.firstChild=a.lastChild=a.childNodes=null}if(b){a.firstChild=a.lastChild=null;a.childNodes.length=0;if(a.data){a.data.children=null}}},drop:function(){var a=this,d=a.childNodes,f=a.parentNode,b=a.getTreeStore(),e,c,g;a.callParent();if(f){f.removeChild(a)}else if(a.get('root')){b.setRoot(null)}if(b){b.beginUpdate()}for(c=0,g=d?d.length:0;c<g;c++){e=d[c];e.clear();e.drop()}if(b){b.endUpdate()}},erase:function(e){var a=this,c=a.childNodes,f=c&&c.length,b,d;a.remove();a.clear(!0);a.callParent([e]);for(b=0;b<f;b++){d=c[b];d.parentNode=null;d.erase(e)}},insertBefore:function(b,e,i){var a=this,n=a.indexOf(e),f=b.parentNode,d=n,o,h,g,c=a.getTreeStore(),l=c&&c.bulkUpdate,k,m,j;if(!e){return a.appendChild(b)}if(b===e){return !1}b=a.createNode(b);if(i!==!0&&a.fireBubbledEvent('beforeinsert',[a,b,e])===!1){return !1}if(f===a&&a.indexOf(b)<n){d--}if(f){if(i!==!0&&b.fireBubbledEvent('beforemove',[b,f,a,n,e])===!1){return !1}if(f.removeChild(b,!1,i,f.getTreeStore()===c)===!1){return !1}}if(c){c.beginUpdate()}if(d===0){a.setFirstChild(b)}Ext.Array.splice(a.childNodes,d,0,b);b.parentNode=a;b.nextSibling=e;e.previousSibling=b;h=a.childNodes[d-1];if(h){b.previousSibling=h;h.nextSibling=b}else {b.previousSibling=null}k=b.updateInfo(!1,{parentId:a.getId(),index:d,isFirst:d===0,isLast:!1,depth:(a.data.depth||0)+1});for(g=d+1,o=a.childNodes.length;g<o;g++){m=a.childNodes[g];j=m.updateInfo(!1,{index:g});if(j){m.callJoined('afterEdit',[j])}}if(!a.isLoaded()){if(l){a.data.loaded=!0}else {a.set('loaded',!0)}}else if(a.childNodes.length===1&&!l){a.triggerUIUpdate()}if(c){c.registerNode(a,!l)}if(i!==!0){a.fireBubbledEvent('insert',[a,b,e]);if(f){b.fireBubbledEvent('move',[b,f,a,d,e])}}a.callTreeStore('onNodeInsert',[b,d]);if(k){b.callJoined('afterEdit',[k])}if(c){c.endUpdate()}return b},insertChild:function(c,b){var a=this.childNodes[c];if(a){return this.insertBefore(b,a)}else {return this.appendChild(b)}},isLastVisible:function(){var b=this,c=b.data.isLast,a=b.nextSibling;if(!c&&b.getTreeStore().isFiltered()){while(a){if(a.data.visible){return !1}a=a.nextSibling}return !0}return c},remove:function(c,d){var a=this,b=a.parentNode;if(b){b.removeChild(a,c,d)}else if(c){a.erase(!0)}return a},removeAll:function(j,i,f){var a=this,d=a.childNodes,h=d.length,c,b,e,g=[];if(!h){return a}if(!f){b=a.getTreeStore();if(b){b.beginUpdate();b.suspendEvent('remove');a.callTreeStore('beforeNodeRemove',[d,!1,g])}}for(e=0;e<h;++e){c=d[e];c.previousSibling=c.nextSibling=c.parentNode=null;a.fireBubbledEvent('remove',[a,c,!1]);if(j){c.erase(!0)}else {c.removeAll(!1,i,!0)}}if(!f&&b){b.resumeEvent('remove');a.callTreeStore('onNodeRemove',[d,!1,g]);b.endUpdate()}a.firstChild=a.lastChild=null;d.length=0;if(!f){a.triggerUIUpdate()}return a},getChildAt:function(a){return this.childNodes[a]},replaceChild:function(c,a,b){var d=a?a.nextSibling:null;this.removeChild(a,!1,b);this.insertBefore(c,d,b);return a},indexOf:function(a){return Ext.Array.indexOf(this.childNodes,a)},indexOfId:function(d){var b=this.childNodes,c=b.length,a=0;for(;a<c;++a){if(b[a].getId()===d){return a}}return -1},getPath:function(c,a){c=c||this.idProperty;a=a||'/';var d=[this.get(c)],b=this.parentNode;while(b){d.unshift(b.get(c));b=b.parentNode}return a+d.join(a)},getDepth:function(){return this.get('depth')},bubble:function(d,b,c){var a=this;while(a){if(d.apply(b||a,c||[a])===!1){break}a=a.parentNode}},cascade:function(a,g,h,f){var b=this,e=a,d,i,c;if(arguments.length===1&&!Ext.isFunction(a)){f=a.after;g=a.scope;h=a.args;e=a.before}if(!e||e.apply(g||b,h||[b])!==!1){d=b.childNodes;for(c=0,i=d.length;c<i;c++){d[c].cascade.call(d[c],e,g,h,f)}if(f){f.apply(g||b,h||[b])}}},cascadeBy:function(){return this.cascade.apply(this,arguments)},eachChild:function(f,d,e){var b=this.childNodes,c=b.length,a;for(a=0;a<c;a++){if(f.apply(d||this,e||[b[a]])===!1){break}}},findChild:function(a,b,c){return this.findChildBy(function(){return this.get(a)==b},null,c)},findChildBy:function(h,d,e){var g=this.childNodes,b,f,a,c;for(b=0,f=g.length;b<f;b++){a=g[b];if(h.call(d||a,a)===!0){return a}else if(e){c=a.findChildBy(h,d,e);if(c!==null){return c}}}return null},contains:function(a){return a.isAncestor(this)},isAncestor:function(b){var a=this.parentNode;while(a){if(a===b){return !0}a=a.parentNode}return !1},sort:function(e,i,h){var c=this,a=c.childNodes,g=a.length,f={isFirst:!0},b,d;if(g>0){if(!e){e=c.getTreeStore().getSortFn()}Ext.Array.sort(a,e);c.setFirstChild(a[0]);c.setLastChild(a[g-1]);for(b=0;b<g;b++){d=a[b];d.previousSibling=a[b-1];d.nextSibling=a[b+1];f.isLast=(b===g-1);f.index=b;d.updateInfo(!1,f);f.isFirst=!1;if(i&&!d.isLeaf()){d.sort(e,!0,!0)}}if(h!==!0){c.fireBubbledEvent('sort',[c,a]);c.callTreeStore('onNodeSort',[a])}}},isExpanded:function(){return this.get('expanded')},isLoaded:function(){return this.get('loaded')},isBranchLoaded:function(){var a=!this.isLeaf()&&this.isLoaded();if(a){this.cascade(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 !1}a=a.parentNode}return !0},expand:function(e,c,d){var a=this,b,f;if(!a.isLeaf()){if(a.isLoading()){a.on('expand',function(){a.expand(e,c,d)},a,{single:!0})}else {if(!a.isExpanded()){if(a.fireBubbledEvent('beforeexpand',[a])!==!1){if(e){if(a.parentNode&&a.parentNode.isSynchronousRecursiveExpand){a.isSynchronousRecursiveExpand=!0}else {b=a.getTreeStore();if(b.getProxy().isSynchronous||a.isBranchLoaded()){a.isSynchronousRecursiveExpand=!0;b.suspendEvent('add','datachanged');f=!0}}}a.callTreeStore('onBeforeNodeExpand',[a.onChildNodesAvailable,a,[e,c,d]]);if(f){b.resumeEvent('add','datachanged');b.fireEvent('datachanged',b);b.fireEvent('refresh',b)}a.isSynchronousRecursiveExpand=!1}}else if(e){a.expandChildren(!0,c,d)}else {Ext.callback(c,d||a,[a.childNodes])}}}else {Ext.callback(c,d||a)}},onChildNodesAvailable:function(h,j,g,i){var b=this,e=b.getTreeStore(),f=e&&e.bulkUpdate,a,c,d;Ext.suspendLayouts();for(a=b.parentNode;a;a=a.parentNode){if(!a.isExpanded()){(c||(c=[])).unshift(a)}}if(f||!e.isVisible(b)){b.data.expanded=!0}else {b.set('expanded',!0)}if(c){for(d=1;d<c.length;d++){a=c[d];if(f||!e.isVisible(a)){a.data.expanded=!0}else {a.set('expanded',!0)}}c[0].expand();for(d=1;d<c.length;d++){a=c[d];a.fireBubbledEvent('expand',[a,a.childNodes])}}else {b.callTreeStore('onNodeExpand',[h,!1])}b.fireBubbledEvent('expand',[b,h]);if(j){b.expandChildren(!0,g,i)}else {Ext.callback(g,i||b,[b.childNodes])}Ext.resumeLayouts(!0)},expandChildren:function(l,d,i,b){var g=this,k,a,e,c,f,j,h;if(Ext.isBoolean(d)){k=d;d=i;i=b;b=k}if(b===undefined){h=g.getTreeStore();b=h&&h.singleExpand}e=g.childNodes;c=[];f=b?Math.min(e.length,1):e.length;for(a=0;a<f;++a){j=e[a];if(!j.isLeaf()){c[c.length]=j}}f=c.length;for(a=0;a<f;++a){c[a].expand(l)}if(d){Ext.callback(d,i||g,[g.childNodes])}},collapse:function(f,b,d){var a=this,j=a.isExpanded(),g=a.getTreeStore(),i=g&&g.bulkUpdate,h=a.childNodes.length,c,e;if(!a.isLeaf()&&((!j&&f)||a.fireBubbledEvent('beforecollapse',[a])!==!1)){Ext.suspendLayouts();if(a.isExpanded()){if(f){e=function(){for(c=0;c<h;c++){a.childNodes[c].setCollapsed(!0)}};if(b){b=Ext.Function.createSequence(e,Ext.Function.bind(b,d,[a.childNodes]))}else {b=e}}else if(b){b=Ext.Function.bind(b,d,[a.childNodes])}if(i||!g.contains(a)){a.data.expanded=!1}else {a.set('expanded',!1)}a.callTreeStore('onNodeCollapse',[a.childNodes,b,d]);a.fireBubbledEvent('collapse',[a,a.childNodes]);b=null}else if(f){for(c=0;c<h;c++){a.childNodes[c].setCollapsed(!0)}}Ext.resumeLayouts(!0)}Ext.callback(b,d||a,[a.childNodes])},setCollapsed:function(c){var a=this,d=a.childNodes.length,b;if(!a.isLeaf()&&a.fireBubbledEvent('beforecollapse',[a])!==!1){a.data.expanded=!1;a.fireBubbledEvent('collapse',[a,a.childNodes]);if(c){for(b=0;b<d;b++){a.childNodes[b].setCollapsed(!0)}}}},collapseChildren:function(e,g,h){var i=this,f=i.childNodes,c=f.length,d=[],b,a;for(a=0;a<c;++a){b=f[a];if(!b.isLeaf()&&b.isLoaded()&&b.isExpanded()){d.push(b)}}c=d.length;if(c){for(a=0;a<c;++a){b=d[a];if(a===c-1){b.collapse(e,g,h)}else {b.collapse(e)}}}else {Ext.callback(g,h)}},fireEvent:function(a){return this.fireBubbledEvent(a,Ext.Array.slice(arguments,1))},fireBubbledEvent:function(c,f){var d,b,e;if(a[c]){for(b=this;d!==!1&&b;b=(e=b).parentNode){d=b.fireEventArgs.call(b,c,f)}if(d!==!1){b=e.getTreeStore();if(b&&b.hasListeners&&b.hasListeners[c='node'+c]){d=b.fireEventArgs(c,f)}}return d}else {return this.fireEventArgs.apply(this,arguments)}},serialize:function(g){var e=g||new Ext.data.writer.Json({writeAllFields:!0}),d=e.getRecordData(this),b=this.childNodes,f=b.length,c,a;if(f>0){d.children=c=[];for(a=0;a<f;a++){c.push(b[a].serialize(e))}}return d},callTreeStore:function(e,a){var c=this,b=c.getTreeStore(),d=b&&b[e];if(b&&d){a=a||[];if(a[0]!==c){a.unshift(c)}d.apply(b,a)}},addCls:function(a){this.replaceCls(null,a)},removeCls:function(a){this.replaceCls(a)},replaceCls:function(d,c){var a=this._parseCls(this.data.cls),b=this._parseCls(d);if(b.length){a=Ext.Array.difference(a,b)}b=this._parseCls(c);if(b.length){a=Ext.Array.unique(a.concat(b))}this.set('cls',a.join(' '))},toggleCls:function(e,f){var a,d,g,b,c;if(f===undefined){a=this._parseCls(this.data.cls);d=this._parseCls(e);for(b=0,g=d.length;b<g;++b){c=d[b];if(Ext.Array.contains(a,c)){Ext.Array.remove(a,c)}else {a.push(c)}}this.set('cls',a.join(' '))}else if(f){this.addCls(e)}else {this.removeCls(e)}},privates:{_noCls:[],spacesRe:/\s+/,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)},_parseCls:function(a){if(!a){return this._noCls}if(typeof a==='string'){return a.split(this.spacesRe)}return a}}}}}});Ext.define('Ext.data.TreeModel',{extend:Ext.data.Model,mixins:[Ext.mixin.Queryable],getRefItems:function(){return this.childNodes},getRefOwner:function(){return this.parentNode},statics:{defaultProxy:'memory'}},function(){Ext.data.NodeInterface.decorate(this)});Ext.define('Ext.data.NodeStore',{extend:Ext.data.Store,alias:'store.node',isNodeStore:!0,config:{node:null,recursive:!1,rootVisible:!1,folderSort:!1},implicitModel:'Ext.data.TreeModel',getTotalCount:function(){return this.getCount()},updateFolderSort:function(b){var a=this.getData();a.setTrackGroups(!1);if(b){a.setGrouper({groupFn:this.folderSortFn})}else {a.setGrouper(null)}},folderSortFn:function(a){return a.data.leaf?1:0},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},onNodeAppend:function(b,a){if(b===this.getNode()){this.add([a].concat(this.retrieveChildNodes(a)))}},onNodeInsert:function(c,b,d){var a=this;if(c===a.getNode()){a.insert(0,[b].concat(a.retrieveChildNodes(b)))}},onNodeRemove:function(b,a){if(b===this.getNode()){this.remove([a].concat(this.retrieveChildNodes(a)))}},onNodeExpand:function(b,a){if(b===this.getNode()){this.loadRecords(a)}},applyNode:function(a){if(a){if(!a.isModel){a=new (this.getModel())(a)}if(!a.isNode){Ext.data.NodeInterface.decorate(a)}}return a},updateNode:function(b,d){var a=this,c;if(d&&!d.destroyed){d.un({append:'onNodeAppend',insert:'onNodeInsert',remove:'onNodeRemove',scope:a});d.unjoin(a)}if(b){b.on({scope:a,append:'onNodeAppend',insert:'onNodeInsert',remove:'onNodeRemove'});b.join(a);c=[];if(b.childNodes.length){c=c.concat(a.retrieveChildNodes(b))}if(a.getRootVisible()){c.push(b)}else if(b.isLoaded()||b.isLoading()){b.set('expanded',!0)}a.getData().clear();a.fireEvent('clear',a);a.suspendEvents();if(a.isInitializing){a.inlineData=c}else {a.add(c)}a.resumeEvents();if(c.length===0){a.loaded=b.loaded=!0}a.fireEvent('refresh',a,a.data)}},isVisible:function(b){var a=b.parentNode;if(!this.getRecursive()&&a!==this.getNode()){return !1}while(a){if(!a.isExpanded()){return !1}if(a===this.getNode()){break}a=a.parentNode}return !0},privates:{retrieveChildNodes:function(b){var e=this.getNode(),d=this.getRecursive(),c=[],a=b;if(!b.childNodes.length||(!d&&b!==e)){return c}if(!d){return b.childNodes}while(a){if(a._added){delete a._added;if(a===b){break}else {a=a.nextSibling||a.parentNode}}else {if(a!==b){c.push(a)}if(a.firstChild){a._added=!0;a=a.firstChild}else {a=a.nextSibling||a.parentNode}}}return c}}});Ext.define('Ext.data.query.Compiler',{compile:function(){var a=this,e=a.ast,b,d,c;a.error=null;if(!e){a.fn=Ext.returnTrue}else {b=['return function (item) {','\tvar rec = item.isEntity && item;','\treturn '];c=[];a.query=a;a.assemble(b,c,'\t',e);b.push('}');b=c.concat(b).join('\n');try{d=new Function('Ext','O','F',b);a.fn=d(Ext,a.operators,a.getFunctions());a.fn.generation=a.generation}catch(f){a.error=f;f.message='Failed to compile: '+f.message;throw f}finally{a.query=null}}},privates:{asmOps:{'>':'gt','<':'lt','==':'eq','>=':'ge','<=':'le','!=':'ne'},assemblers:{binary:function(d,a,l,g,k,j,e){var b=d.operatorTypeMap[k.type][1],h=d.asmOps[b],f=k.on,i='',c;if(h){a[j]+='O.'+h+'(';b=', ';i=')'}else {b=' '+b+' '}a[j]+='(';for(c=0;c<f.length;++c){if(c){a.push(g+')'+b+'(')}a.push(e);d.assemble(a,l,e,f[c])}a.push(g+')'+i)},between:function(i,a,h,f,g,c,d){var e=g.on,b;a[c]+='O.between(';for(b=0;b<3;++b){if(b){c=a.length-1;a[c]+=', '}i.assemble(a,h,d,e[b])}a.push(f+')')},fn:function(j,a,k,h,i,d,g){var f=i.fn.toLowerCase(),c=j.query.getFunctions(),e,b;c=c[f];if(c.vargs){a[d]+='F.'+f+'.fn(['}else {a[d]+='F.'+f+'.fn('}e=i.args;for(b=0;b<e.length;++b){if(b){d=a.length-1;a[d]+=', '}a.push(g);j.assemble(a,k,g,e[b])}if(c.vargs){a.push(h+'])')}else {a.push(h+')')}},id:function(i,c,e,h,f,d,g){var a=f.value,b=a.split('.');if(b.length===1){c[d]+='rec ? rec.interpret('+Ext.JSON.encode(a)+') : item.'+a}else {a='p'+e.length;e.push('var '+a+' = '+Ext.JSON.encode(b)+';');c[d]+='O.dots(item, '+a+')'}},'in':function(f,a,e,g,h,b,c){var d=h.on;a[b]+='O.in(';f.assemble(a,e,c,d[0]);b=a.length-1;a[b]+=', ';f.assemble(a,e,c,d[1]);a.push(g+')')},like:function(g,a,f,i,h,c,d){var e=h.on,b;a[c]+='O.like(';g.assemble(a,f,d,e[0]);c=a.length-1;a[c]+=', ';b=e[1];if(b.re){b={type:'regexp',value:b.re,flags:b.flags}}g.assemble(a,f,d,b);c=a.length-1;a[c]+=') '},list:function(i,a,h,f,g,c,d){a[c]+='[';for(var b=0,e=g.value;b<e.length;++b){if(b){c=a.length-1;a[c]+=', '}a.push(d);i.assemble(a,h,d,e[b])}a.push(f+']')},string:'regexp',regexp:function(g,d,b,f,a,e){var c='re'+b.length;b.push('var '+c+' = /'+(a.re||a.value)+'/'+(a.flags||'')+';');d[e]+=c},unary:function(d,a,h,f,c,g,b){var i=d.operatorTypeMap[c.type][1],e=c.on;a[g]+=i+'(';a.push(b);d.assemble(a,h,b,e);a.push(f+')')}},operators:{between:function(a,c,b){return c<=a&&a<=b},dots:function(d,c){var b,a;if(d.isEntity){for(a=d,b=0;b<c.length;++b){if(!a||!a.interpret){a=undefined;break}a=a.interpret(c[b])}}else {for(a=d,b=0;b<c.length;++b){if(!a){a=undefined;break}a=a[c[b]]}}return a},'in':function(b,a){return Ext.Array.contains(a,b)},like:function(a,b){a=String(a);if(typeof b==='string'){return !!a&&a.toLowerCase().indexOf(b.toLowerCase())>-1}return b.test(a)},eq:function(a,b){if(a&&b&&(a instanceof Date||b instanceof Date)){return !Ext.Date.compare(a,b)}return a==b},ge:function(a,b){if(a&&b&&(a instanceof Date||b instanceof Date)){return Ext.Date.compare(a,b)>=0}return a>=b},gt:function(a,b){if(a&&b&&(a instanceof Date||b instanceof Date)){return Ext.Date.compare(a,b)>0}return a>b},le:function(a,b){if(a&&b&&(a instanceof Date||b instanceof Date)){return Ext.Date.compare(a,b)<=0}return a<=b},lt:function(a,b){if(a&&b&&(a instanceof Date||b instanceof Date)){return Ext.Date.compare(a,b)<0}return a<b},ne:function(a,b){if(a&&b&&(a instanceof Date||b instanceof Date)){return !!Ext.Date.compare(a,b)}return a!=b}},assemble:function(a,l,h,b){var f=this,d=f.assemblers,g=typeof b,i=a.length-1,k=h+'\t',j=b.type,e,c;if(g==='boolean'||g==='number'){a[i]+=b}else if(g==='string'){a[i]+=Ext.JSON.encode(b)}else {e=f.operatorTypeMap[j];c=d[j]||(e&&d[e[0]]);if(typeof c==='string'){c=d[c]}c(f,a,l,h,b,a.length-1,k)}}}});Ext.define('Ext.data.query.Converter',{getFilters:function(){var f=this,e=f.ast,m=f.exprToFilter,p=f.operatorTypeMap,j=f.fn,k=e&&e.on,b,n,h,d,a,l,g,c,o,i;if(e){if(j.hasOwnProperty('$filters')){c=j.$filters}else {if(e.type==='and'&&k){h=[];for(d=0,l=k.length;d<l;++d){b=k[d];a=b.on;if(!a||a.length!==2){break}o=a[1];a=a[0];if(a.type!=='id'){break}if(!(i=m[b.type])){g=p[b.type];if(!g||!(i=m[g[0]])){break}}if(!(n=i(b,a.value,o,g))){break}h.push(n)}if(d===l){c=h}}j.$filters=c}}else {c=null}return c},setFilters:function(d){var b=this,f=null,i=d&&d.length,e,a,c,h,g;if(i){f={type:'and',on:[]};for(c=0;c<i;++c){a=d[c];if(!(g=b.filterToExpr[h=a.operator])){e={type:b.getOperatorType(h),on:[{type:'id',value:a.property},a.value]}}else {e=g(a)}f.on.push(e)}}b.ast=f;b.refresh()},privates:{exprToFilter:{binary:function(d,b,a,c){return Ext.isPrimitive(a)&&{property:b,operator:c[1],value:a}},'in':function(e,d,c){var b=0,a=c.value;if(c.type==='list'&&Ext.isArray(a)){for(b=a.length;b-->0;){if(!Ext.isPrimitive(a[b])){break}}}return (b<0)&&{property:d,operator:'in',value:a}},like:function(c,b,a){if(a.type==='regexp'){return {property:b,operator:'/=',value:a.value}}return (a.type==='string')&&{property:b,operator:'like',value:a.value}}},filterToExpr:{'/=':function(a){return {type:'like',on:[{type:'id',value:a.property},{type:'regexp',value:a.value}]}},'in':function(a){return {type:'in',on:[{type:'id',value:a.property},{type:'list',value:a.value}]}},like:function(a){return {type:'like',on:[{type:'id',value:a.property},{type:'string',value:a.value,re:a.value,flags:'i'}]}}}}});Ext.define('Ext.data.query.Stringifier',{stringify:function(b){var d=this,g=typeof b,f=b.type,h=d.operatorTypeMap,i=d.getPriority(b),e=d.stringifiers,c,a;if(g==='boolean'||g==='number'){return String(b)}if(g==='string'){return Ext.JSON.encode(b)}a=e[f];if(!a&&f in h){c=h[f];a=e[c[0]];c=c[2]||c[1]}if(typeof a==='string'){a=e[a]}return a(d,b,i,c)},privates:{getPriority:function(f){var c=this.symbols,d=this.operatorTypeMap,a=f.type,b=1000000000,e;if(a==='between'){b=0;b=c[a].priority}else if(a==='and'||a==='or'||a==='in'||a==='like'){b=c[a].priority}else if(a in d){e=d[a];b=c[e[1]].priority}return b},stringifiers:{and:'or',or:function(f,e,h){var i=(e.type==='or')?' or ':' and ',c='',g=e.on,b,a,d;for(b=0;b<g.length;++b){if(c){c+=i}a=g[b];d=f.getPriority(a)<h;a=f.stringify(a);if(d){a='('+a+')'}c+=a}return c},between:function(d,j,f){var h=j.on,b=h[0],i=d.getPriority(b)<f,c,g,a,e;b=d.stringify(b);if(i){b='('+b+')'}e=b+' between ';f=d.symbols.and.priority;for(c=0;c<2;++c){if(c){e+=' and '}a=h[c+1];g=c?(a.type!=='id'&&!Ext.isPrimitive(a)):(d.getPriority(a)<f);a=d.stringify(a);if(g){a='('+a+')'}e+=a}return e},binary:function(c,h,d,i){var e=h.on,a=e[0],b=e[1],f=c.getPriority(a)<d,g=c.getPriority(b)<d;a=c.stringify(a);b=c.stringify(b);if(f){a='('+a+')'}if(g){b='('+b+')'}return a+' '+i+' '+b},fn:function(b,a){return a.fn+'('+b.stringifyArray(a.args)+')'},id:function(b,a){return a.value},list:function(b,a){return '('+b.stringifyArray(a.value)+')'},regexp:function(b,a){return '/'+a.value+'/'+(a.flags||'')},string:function(b,a){return Ext.JSON.encode(a.value)},unary:function(e,d,g,f){var c=d.on,a=e.stringify(c),b=c.type;if(b!=='fn'&&b!=='id'&&b!=='unary'){a='('+a+')'}return f+a}},stringifyArray:function(d){var c='',b,a;for(b=0;b<d.length;++b){if(c){c+=', '}a=d[b];a=this.stringify(a);c+=a}return c}}});Ext.define('Ext.data.query.Parser',function(a){var b={list:!0,literal:!0,type:'list'};return {extend:Ext.parse.Parser,tokenizer:{keywords:{and:{type:'operator',name:'and',value:'&&',is:{operator:!0}},or:{type:'operator',name:'or',value:'||',is:{operator:!0}},not:{type:'operator',name:'not',value:'!',is:{operator:!0}},between:{type:'operator',name:'between',value:'between',is:{operator:!0}},like:{type:'operator',name:'like',value:'like',is:{operator:!0}},'in':{type:'operator',name:'in',value:'in',is:{operator:!0}}},operators:{'=':'eq','==':'seq','===':'seq','!==':'sne','!=':'neq','<>':'neq','<':'lt','<=':'lte','>':'gt','>=':'gte','&&':'and','||':'or',',':'comma'},patterns:{regex:{type:'literal',is:{literal:!0,regexp:!0,type:'regexp'},re:/\/(?!\/)((?:\[.+?]|\\.|[^/\\\r\n])+)\/([gimyu]{0,5})/g,extract:function(c){var d=c[1],b=c[2];return b?[d,b]:d}}}},infix:{'=':40,'<>':40,like:40,between:{priority:70,led:function(d){var b=this,c=b.parser;b.arity='between';b.operand=d;b.low=c.parseExpression(c.symbols.and.priority);c.advance('&&');b.high=c.parseExpression(80);return b}},'in':{priority:40,led:function(e){var c=this,d=c.parser;d.advance('(');c.arity='binary';c.lhs=e;c.rhs={arity:'literal',value:d.parseList(),is:b};d.advance(')');return c}}},infixRight:{'and':30,'or':30},prefix:{not:0},parse:function(){var b=this.parseExpression();return this.convert(b)},privates:{opCodes:{binary:{'=':'eq','>':'gt','<':'lt','>=':'ge','<=':'le','!=':'ne','<>':'ne','+':'add','/':'div','*':'mul','-':'sub'},unary:{'-':'neg','!':'not'}},convert:function(c){var d=this,l=c.arity,g=c.is,f=c.name,k=d.opCodes,e=c.value,h,j,i,b;switch(l){case 'between':b={type:'between',on:[d.convert(c.operand),d.convert(c.low),d.convert(c.high)]};break;case 'ident':b={type:'id',value:e};break;case 'invoke':b={type:'fn',fn:c.operand.value,args:d.convertArray(c.args)};break;case 'unary':b={type:k.unary[e],on:d.convert(c.operand)};break;case 'binary':if(f==='and'||f==='or'){j=d.convert(c.lhs);i=d.convert(c.rhs);if(i.type===f){h=i.on;h.unshift(j)}else {h=[j,i]}b={type:f,on:h}}else {if(e==='or'){e='||'}b={type:k.binary[e]||f,on:[d.convert(c.lhs),d.convert(c.rhs)]};if(f==='like'){b.on[1]=d.likeToRe(b.on[1],c.rhs.at)}};break;case 'literal':if(g.string||g.number||g.boolean){b=e}else {b={type:g.type,value:e};if(g.list){b.value=d.convertArray(e)}else if(g.regexp&&typeof e!=='string'){b.value=e[0];b.flags=e[1]}};break;}if(b&&typeof b==='object'&&!b.type){b.type=l}return b},convertArray:function(c){var d=[],b=c.length;for(;b-->0;){d[b]=this.convert(c[b])}return d},likeToRe:function(c,l){if(typeof c==='string'){c={type:'string',value:c}}else if(c.type==='regexp'){return c}var k=this.specialChars||(a.prototype.specialChars=Ext.Array.toMap('.+*?^$=!|:-<>[](){}\\'.split(''))),h=c.value,j=h.length,d='',g=!0,e,b,f,i;m: for(f=0;f<j;++f){b=h[f];if(!e){if(b==='\\'){e=b;continue}if(b==='*'||b==='%'){d+='.*';g=!1;continue}if(b==='?'||b==='_'){d+='.';g=!1;continue}if(b==='['){d+=b;g=!1;i=f;while(++f<j){b=h[f];if(e){d+=e+b;e=0}else if(b==='\\'){e=b}else {d+=b;if(b===']'){continue m}}}this.syntaxError(i+(c.at||l||0),'Incomplete character set')}}e=0;if(k[b]){d+='\\'}d+=b}c.re=d||'.*';if(g){c.flags='i'}else {c.re='^'+d+'$'}return c},parseList:function(){var c=this,b=[];do{if(b.length){c.advance()}b.push(c.parseExpression())}while(c.token.id===',');return b}}}});Ext.define('Ext.data.Query',{extend:Ext.util.BasicFilter,mixins:[Ext.mixin.Factoryable,Ext.data.query.Compiler,Ext.data.query.Converter,Ext.data.query.Stringifier],alias:'query.default',config:{format:'ast',functions:{cached:!0,$value:{abs:function(a){return Math.abs(a)},'avg...':function(c){var a=0,d=0,e=c.length,b;for(;e-->0;){b=c[e];if(b!=null){d+=b;++a}}return a?d/a:0},date:function(a){return (a instanceof Date)?a:Ext.Date.parse(a)},lower:function(a){return (a==null)?'':String(a).toLowerCase()},'max...':function(c){var a=null,d=c.length,b;for(;d-->0;){b=c[d];if(b!=null){a=(a===null)?b:(a<b?b:a)}}return a},'min...':function(c){var a=null,d=c.length,b;for(;d-->0;){b=c[d];if(b!=null){a=(a===null)?b:(a<b?a:b)}}return a},'sum...':function(c){var a=null,d=c.length,b;for(;d-->0;){b=c[d];if(b!=null){a=(a===null)?b:(a+b)}}return a===null?0:a},upper:function(a){return (a==null)?'':String(a).toUpperCase()}}},source:''},ast:null,error:null,generation:0,constructor:function(a){if(typeof a==='string'){a={source:a}}var b=Ext.data.query.Parser.fly();this.symbols=b.symbols;b.release();this.callParent([a])},filter:function(c){var b=this,a=b.error;if(a){throw a}return !!b.fn(c)},refresh:function(){++this.generation;this.compile()},serialize:function(){var b=this,e=b.getFormat(),d=b.getSerializer(),a,c;switch(e){case 'ast':a=b.ast;if(d){a=Ext.clone(a)};break;case 'filters':a=b.getFilters()||null;break;case 'query':a=b.toString();break;}if(a&&d){c=d.call(this,a);if(c){a=c}}return a},serializeTo:function(b){var a=this.serialize(),c;if(a&&a.length){b.push.apply(b,a);c=!0}return c},sync:function(){var a=this,b=a.fn;if(!b||b.generation!==a.generation){a.compile()}},toString:function(){var a=this.ast;return a?this.stringify(a):''},applyFunctions:function(d){var e={},f=this.vargsRe,c,a,b;for(a in d){c={fn:d[b=a],vargs:f.test(a)};if(c.vargs){b=a.substr(0,a.length-3)}e[b.toLowerCase()]=c}return e},applySource:function(a){if(a){return a}++this.generation;this.ast=null;this.compile()},updateSource:function(c){var a=this,b=Ext.data.query.Parser.fly(c);++a.generation;try{a.error=a.fn=null;a.ast=b.parse()}catch(d){a.error=d;d.message='Failed to parse: '+d.message;throw d}finally{b.release()}a.compile()},privates:{operatorTypeMap:{and:['binary','&&','and'],or:['binary','||','or'],eq:['binary','==','='],ge:['binary','>=',null],gt:['binary','>',null],le:['binary','<=',null],lt:['binary','<',null],ne:['binary','!=',null],add:['binary','+',null],div:['binary','/',null],mul:['binary','*',null],sub:['binary','-',null],'in':['binary',null,'in'],like:['binary',null,'like'],seq:['binary','===','=='],sne:['binary','!==',null],neg:['unary','-',null],not:['unary','!',null]},vargsRe:/\.\.\.$/,getOperatorType:function(c){var b=this.operatorTypeMap,a;for(a in b){if(b[a][1]===c||b[a][2]===c){return a}}return null}}});Ext.define('Ext.data.Request',{isDataRequest:!0,config:{action:undefined,params:undefined,method:'GET',url:null,operation:null,proxy:null,disableCaching:!1,headers:{},callbackKey:null,rawRequest:null,jsonData:undefined,xmlData:undefined,withCredentials:!1,username:null,password:null,binary:!1,callback:null,scope:null,timeout:30000,records:null,directFn:null,args:null,useDefaultXhrHeader:null,responseType:null},constructor:function(a){this.initConfig(a)},getParam:function(b){var a=this.getParams(),c;if(a){return a[b]}return c},setParam:function(c,b){var a=this.getParams()||{};a[c]=b;this.setParams(a)}});Ext.define('Ext.data.TreeStore',{extend:Ext.data.Store,alias:'store.tree',isTreeStore:!0,config:{root:null,rootVisible:!1,defaultRootProperty:'children',parentIdProperty:null,clearOnLoad:!0,clearRemovedOnLoad:!0,nodeParam:'node',defaultRootId:'root',defaultRootText:'Root',folderSort:!1,pageSize:null},filterer:'topdown',lazyFill:!1,fillCount:0,bulkUpdate:0,nodesToUnregister:0,_silentOptions:{silent:!0},implicitModel:'Ext.data.TreeModel',groupField:null,groupDir:null,grouper:null,constructor:function(b){var a=this;a.byIdMap={};a.callParent([b])},applyFields:function(a,c){var b=this;if(a){if(b.defaultRootProperty!==b.self.prototype.config.defaultRootProperty){a=a.concat({name:b.defaultRootProperty,type:'auto',defaultValue:null,persist:!1})}}b.callParent([a,c])},applyGroupField:function(a){return null},applyGroupDir:function(a){return null},applyGrouper:function(a){return null},group:Ext.emptyFn,onSorterEndUpdate:function(){var a=this,d=a.getSorters(),b=d.getRange(),c=a.getRoot(),e=a.getFolderSort();a.fireEvent('beforesort',a,b);if(c&&(e||b.length)){if(a.getRemoteSort()){if(b.length){a.load({callback:function(){a.fireEvent('sort',a,b)}})}}else {c.sort(this.getSortFn(),!0);a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.fireEvent('sort',a,b)}}else {a.fireEvent('sort',a,b)}},updateFolderSort:function(a){this.needsFolderSort=a;this.onSorterEndUpdate()},getSortFn:function(){return this._sortFn||(this._sortFn=this.createSortFn())},createSortFn:function(){var a=this,b=this.sorters.getSortFn();return function(d,e){var f,g,c=0;if(a.needsFolderSort){f=d.data.leaf?1:0;g=e.data.leaf?1:0;c=f-g}if(a.needsIndexSort&&c===0){c=d.data.index-e.data.index}return c||b(d,e)}},getTotalCount:function(){return this.getCount()},afterEdit:function(b,h){var a=this,c=b.parentNode,j=a.getRootVisible(),i=!c&&!j,f,g=b.get('visible'),e,d;if(!i&&g!==a.contains(b)){if(g){if(!c||a.isVisible(b)){e=[b];if(b.isExpanded()){a.handleNodeExpand(b,b.childNodes,e)}f=b.previousSibling?a.indexOfPreviousVisibleNode(b.previousSibling):(c?a.indexOf(c):-1);a.insert(f+1,e)}}else {d=a.indexOf(b);a.removeAt(d,a.indexOfNextVisibleNode(b)-d)}}else if(a.getRoot()&&a.needsLocalFilter()){a.onFilterEndUpdate(a.getFilters())}a.callParent([b,h])},afterReject:function(b){var a=this;if(a.contains(b)){a.onUpdate(b,Ext.data.Model.REJECT,null);a.fireEvent('update',a,b,Ext.data.Model.REJECT,null)}},afterCommit:function(c,a){var b=this;if(!a){a=null}if(b.contains(c)){b.onUpdate(c,Ext.data.Model.COMMIT,a);b.fireEvent('update',b,c,Ext.data.Model.COMMIT,a)}},updateRootVisible:function(c){var a=this.getRoot(),b;if(a){b=this.getData();if(c){b.insert(0,a)}else {b.remove(a)}}},updateTrackRemoved:function(a){this.callParent(arguments);this.removedNodes=this.removed;this.removed=null},onDestroyRecords:function(c,b,a){if(a){this.removedNodes.length=0}},updateProxy:function(a){var b;if(a){if(a.setIdParam){a.setIdParam(this.getNodeParam())}b=a.getReader();if(Ext.isEmpty(b.getRootProperty())){b.setRootProperty(this.getDefaultRootProperty())}}},setProxy:function(a){this.changingProxy=!0;this.callParent([a]);this.changingProxy=!1},updateModel:function(a){var b;if(a){b=a.prototype.isNode;Ext.data.NodeInterface.decorate(a);if(!b&&!this.changingProxy){this.getProxy().getReader().buildExtractors(!0)}}},onCollectionFilter:Ext.emptyFn,onFilterEndUpdate:function(h){var a=this,d=h.length,b=a.getRoot(),f,g,c,e;if(!a.getRemoteFilter()){if(d){a.doFilter(b)}else {b.cascade({after:function(b){b.set('visible',!0,a._silentOptions)}})}if(d){c=[];f=b.childNodes;for(e=0,d=f.length;e<d;e++){g=f[e];if(g.get('visible')){c.push(g)}}}else {c=b.childNodes}a.onNodeFilter(b,c);b.fireEvent('filterchange',b,c);a.suppressNextFilter=!0;a.callParent([h]);a.suppressNextFilter=!1}else {a.callParent([h])}},onNodeFilter:function(c,e){var a=this,d=a.getData(),b=[];if(a.getRootVisible()&&c.get('visible')){b.push(c)}a.handleNodeExpand(c,e,b);a.suspendEvents();d.splice(0,d.getCount(),b);a.resumeEvents();if(!a.suppressNextFilter){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}},onBeforeNodeExpand:function(a,f,g,c){var d=this,k,h,e,j,i,b;if(a.isLoaded()){b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,g||a,b)}else if(a.isLoading()){d.on('load',function(){b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,g||a,b)},d,{single:!0,priority:1001})}else {k=d.getProxy().getReader();h=a.getProxy();e=h?h.getReader():null;j=e&&e.initialConfig.rootProperty?e:k;i=j.getRoot(a.raw||a.data);if(i||(a.phantom&&!a.isRoot())){d.fillNode(a,j.extractData(i||[],{model:a.childType,recordCreator:d.recordCreator}));b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,g||a,b)}else {d.read({node:a,onChildNodesAvailable:function(){delete d.lastOptions.onChildNodesAvailable;b=[a.childNodes];if(c){b.push.apply(b,c)}Ext.callback(f,g||a,b)}});d.flushLoad()}}},onNodeExpand:function(b,e){var a=this,d=a.indexOf(b)+1,c=[];a.handleNodeExpand(b,e,c);if(!a.refreshCounter&&b.isRoot()&&!b.get('visible')){a.loadRecords(c)}else {++a.loadCount;a.insert(d,c)}},handleNodeExpand:function(d,c,e){var g=this,f=c?c.length:0,b,a;if(d!==this.getRoot()&&!g.isVisible(d)){return}if(f){for(b=0;b<f;b++){a=c[b];if(a.get('visible')){e.push(a);if(a.isExpanded()){if(a.isLoaded()){g.handleNodeExpand(a,a.childNodes,e)}else {a.set('expanded',!1,{silent:!0});a.expand()}}}}}},onNodeCollapse:function(c,b,f,g){var a=this,e=a.indexOf(c)+1,d;if(a.needsLocalFilter()){b=Ext.Array.filter(b,a.filterVisible)}if(b.length&&a.isVisible(c)){d=a.indexOfNextVisibleNode(c);a.removeAt(e,d-e)}Ext.callback(f,g)},indexOfNextVisibleNode:function(b){var a;while(b.parentNode){for(a=b.nextSibling;a&&!a.get('visible');a=a.nextSibling){}if(a){return this.indexOf(a)}b=b.parentNode}return this.getCount()},indexOfPreviousVisibleNode:function(b){var a;for(a=b;a&&!a.get('visible');a=a.previousSibling){}if(a){if(a.isExpanded()&&a.lastChild){return this.indexOfPreviousVisibleNode(a.lastChild)}}else {a=b.parentNode}return this.indexOf(a)},filterNew:function(a){return !a.get('root')&&this.callParent([a])},filterRejects:function(a){return !a.get('root')&&this.callParent([a])},getNewRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterNew,this)},getRejectRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterRejects,this)},getUpdatedRecords:function(){return Ext.Array.filter(Ext.Object.getValues(this.byIdMap),this.filterUpdated)},beforeNodeRemove:function(i,a,h,d){if(!Ext.isArray(a)){a=[a]}var c=this,g=a.length,f=c.removedNodes,e,b;for(b=0;!e&&b<g;b++){if(a[b].get('visible')){e=a[b]}}if(e){d[0]=c.indexOf(a[0]);d[1]=c.indexOfNextVisibleNode(a[a.length-1])-d[0]}else {d[0]=-1;d[1]=0}for(b=0;b<g;b++){a[b].cascade(function(b){c.unregisterNode(b,!0);if(f&&!h){if(!b.phantom&&!b.erasing&&!c.loading){b.removedFrom=c.indexOf(b);f.push(b);c.needsSync=!0}}})}},afterDrop:Ext.emptyFn,onNodeRemove:function(e,d,c,b){var a=this;a.suspendAutoSync();if(b[0]!==-1){a.removeIsMove=c;a.removeAt.apply(a,b);a.removeIsMove=!1}a.resumeAutoSync()},onNodeAppend:function(a,c,b){this.onNodeInsert(a,c,b)},onNodeInsert:function(g,a,k){var b=this,l=a.raw||a.data,j=b.removedNodes,i,e,c,h,f,d;if(g&&b.needsLocalFilter()){b.doFilter(g)}b.beginUpdate();if(b.isVisible(a)){if(k===0||!a.previousSibling){d=b.indexOf(g)}else {d=b.indexOfPreviousVisibleNode(a.previousSibling)}b.insert(d+1,a);if(!a.isLeaf()&&a.isExpanded()){if(a.isLoaded()){b.onNodeExpand(a,a.childNodes)}else if(!b.fillCount){a.set('expanded',!1);a.expand()}}}Ext.Array.remove(j,a);b.needsSync=b.needsSync||a.phantom||a.dirty;if(!a.isLeaf()&&!a.isLoaded()&&!b.lazyFill){i=b.getProxy().getReader();e=a.getProxy();c=e?e.getReader():null;h=c&&c.initialConfig.rootProperty?c:i;f=h.getRoot(l);if(f){b.fillNode(a,h.extractData(f,{model:a.childType,recordCreator:b.recordCreator}))}}b.endUpdate()},registerNode:function(a,f){var b=this,g=b.byIdMap[a.id],d,e,c;b.byIdMap[a.id]=a;if(a.onRegisterTreeNode&&a!==g){a.onRegisterTreeNode(b)}if(a.onUnregisterTreeNode){b.nodesToUnregister++}if(f===!0){d=a.childNodes;e=d.length;for(c=0;c<e;c++){b.registerNode(d[c],!0)}}},unregisterNode:function(a,f){var b=this,g=b.byIdMap[a.id],d,e,c;delete b.byIdMap[a.id];if(f===!0){d=a.childNodes;e=d.length;for(c=0;c<e;c++){b.unregisterNode(d[c],!0)}}if(a.onUnregisterTreeNode&&a===g){a.onUnregisterTreeNode(b);b.nodesToUnregister--}},onNodeSort:function(b,c){var a=this;a.suspendAutoSync();if((a.indexOf(b)!==-1&&b.isExpanded())||(b===a.getRoot()&&!a.getRootVisible())){Ext.suspendLayouts();a.onNodeCollapse(b,c);a.onNodeExpand(b,c);Ext.resumeLayouts(!0)}a.resumeAutoSync(a.autoSync)},applyRoot:function(a){var b=this,e=b.getModel(),d=e.prototype.idProperty,c=b.getDefaultRootId();if(a&&!a.isNode){a=Ext.apply({text:b.getDefaultRootText(),root:!0,isFirst:!0,isLast:!0,depth:0,index:0,parentId:null,allowDrag:!1},a);if(c&&a[d]===undefined){a[d]=c}a=new e(a)}return a},updateRoot:function(b,c){var a=this,g=[],e=a.isConfiguring,d,f;a.getTrackRemoved();a.suspendEvent('add','remove');if(e){a.suspendEvent('refresh','datachanged')}if(c&&c.isModel){if(a.getRootVisible()){f=[c]}else {f=c.childNodes}a.beforeNodeRemove(null,f,!1,g);c.set('root',!1);a.onNodeRemove(null,f,!1,g);c.fireEvent('remove',null,c,!1);c.fireEvent('rootchange',null);c.clearListeners();c.store=c.treeStore=null;a.unregisterNode(c)}a.getData().clear();if(b){if(b.fireEventArgs('beforeappend',[null,b])===!1){b=null}else {d=b.parentNode;if(d){if(!d.removeChild(b,!1,!1,d.getTreeStore()===a)){return}}else if((d=b.getTreeStore())&&d!==a&&b===d.getRoot()){d.setRoot(null)}b.store=b.treeStore=a;b.set('root',!0);b.updateInfo(!0,{isFirst:!0,isLast:!0,depth:0,index:0,parentId:null});a.registerNode(b,!0);b.fireEvent('append',null,b,!1);b.fireEvent('rootchange',b);a.onNodeAppend(null,b,0);b.phantom=!0}}if(!e){a.fireEvent('rootchange',b,c)}if(b&&(a.getAutoLoad()||b.isExpanded())){if(b.isLoaded()){a.onNodeExpand(b,b.childNodes);if(!e){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}else {b.data.expanded=!1;b.expand(!1);if(b.isLoaded&&!a.getProxy().isSynchronous&&!e){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}}}else if(!e){a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}a.resumeEvent('add','remove');if(e){a.resumeEvent('refresh','datachanged')}},doDestroy:function(){var a=this,b=a.getRoot();if(b&&a.nodesToUnregister){b.cascade(function(b){if(b.onUnregisterTreeNode){b.onUnregisterTreeNode(a)}})}a.callParent()},each:function(e,d,a){var f=0,b=a,c;if(a&&typeof a==='object'){c=a.collapsed;b=a.filtered}if(c){this.getRoot().cascade(function(c){if(b===!0||c.get('visible')){return e.call(d||c,c,f++)}})}else {return this.callParent([e,d,b])}},collect:function(h,a,b){var d,i={},g=[],e=a,f,c;if(a&&typeof a==='object'){d=a.collapsed;b=a.filtered;e=a.allowNull}if(d||b){this.getRoot().cascade(function(j){if(b===!0||j.get('visible')){c=j.get(h);f=String(c);if((e||!Ext.isEmpty(c))&&!i[f]){i[f]=1;g.push(c)}}if(!d&&!j.isExpanded()){return !1}})}else {g=this.callParent([h,e,b])}return g},getNodeById:function(a){return this.byIdMap[a]||null},findNode:function(c,b,f,g,e){var a=null,d;if(Ext.isEmpty(b,!1)){return a}if(c===this.model.idProperty&&arguments.length<3){return this.byIdMap[b]}d=Ext.String.createRegex(b,f,g,e);Ext.Object.eachValue(this.byIdMap,function(h){if(h&&d.test(h.get(c))){a=h;return !1}});return a},load:function(b){var a=b&&b.node;if(!a&&!(a=this.getRoot())){a=this.setRoot({expanded:!0,autoRoot:!0});return}if(a.isLoading()){return}return this.callParent([b])},reload:function(b){var a=Ext.apply({},b,this.lastOptions);a.node=this.getRoot();return this.load(a)},flushLoad:function(){var a=this,c=a.pendingLoadOptions,d=a.getClearOnLoad(),b,g,i,e,f,h;a.clearLoadTask();if(!c){return}b=c.node||a.getRoot();e=b&&b.isRoot();g=c.callback;i=c.scope;c.params=c.params||{};if(b.data.expanded&&!e){b.data.loaded=!1;if(d){b.data.expanded=!1}c.callback=function(a,c,e){if(!d){b.collapse()}b.expand();Ext.callback(g,i,[a,c,e])}}c.id=b.getId();a.setLoadOptions(c);if(a.getRemoteSort()&&c.sorters){a.fireEvent('beforesort',a,c.sorters)}c=Ext.apply({node:c.node||b,internalScope:a,internalCallback:a.onProxyLoad},c);a.lastOptions=Ext.apply({},c);c.isRootLoad=e;f=a.createOperation('read',c);if(a.fireEvent('beforeload',a,f)!==!1){a.loading=!0;if(e){if(a.getClearRemovedOnLoad()){a.removedNodes.length=0}if(d){a.unregisterNode(b,!0);b.clear(!1,!0);a.registerNode(b);h=!0}}else {if(a.loading){b.data.loaded=!1}if(a.getTrackRemoved()&&a.getClearRemovedOnLoad()){a.clearRemoved(b)}if(d){b.removeAll(!1)}}if(a.loading&&b){b.set('loading',!0,{silent:!(a.contains(b)||b===a.getRoot())})}if(h){a.clearData(!0);if(a.getRootVisible()){a.suspendEvents();a.add(b);a.resumeEvents()}}f.execute()}return a},onProxyLoad:function(c){var a=this,f=c.initialConfig,e=c.wasSuccessful(),b=c.getRecords(),d=f.node,g=f.isRootLoad,h=c.getScope()||a,i=[b,c,e];if(a.destroyed){return}a.loading=!1;d.set('loading',!1);if(e){++a.loadCount;if(!a.getClearOnLoad()){b=a.cleanRecords(d,b)}if(a.getParentIdProperty()){b=a.treeify(d,b)}if(g){a.suspendEvent('add','update')}b=a.fillNode(d,b)}Ext.callback(f.onChildNodesAvailable,h,i);if(g){a.resumeEvent('add','update');a.callObservers('BeforePopulate');a.fireEvent('datachanged',a);a.fireEvent('refresh',a);a.callObservers('AfterPopulate')}a.fireEvent('load',a,b,e,c,d)},clearRemoved:function(k){var d=this,e=d.removedNodes,l=k.getId(),f=e.length,b=f,h={},j=[],i={},a,c,g;if(k===d.getRoot()){d.removedNodes.length=0;return}for(;b--;){a=e[b];i[a.getId()]=a}for(b=f;b--;){a=e[b];c=a;while(c&&c.getId()!==l){g=c.get('parentId')||c.get('lastParentId');c=c.parentNode||d.getNodeById(g)||i[g]}if(c){h[a.getId()]=a}}for(b=0;b<f;b++){a=e[b];if(!h[a.getId()]){j.push(a)}}d.removedNodes=j},fillNode:function(c,b){var a=this,d=b?b.length:0;if(++a.bulkUpdate===1){a.suspendEvent('datachanged')}if(d){a.setupNodes(b);c.appendChild(b,undefined,!0)}else {if(a.bulkUpdate===1){c.set('loaded',!0)}else {c.data.loaded=!0}}if(!--a.bulkUpdate){a.resumeEvent('datachanged')}return b},setupNodes:function(b){var a=this,j=a.getSorters(),f=!1,g=b.length,i=a.sortOnLoad&&g>1&&!a.getRemoteSort()&&a.getFolderSort()||j.length,e=a.needsLocalFilter(),d,h,c;if(e){a.doFilter(b[0])}for(c=1;c<g;c++){d=b[c];h=b[c-1];if(e){a.doFilter(d)}f=d.data.index!==h.data.index}if(i){a.needsIndexSort=!0;Ext.Array.sort(b,a.getSortFn());a.needsIndexSort=!1}else if(f){Ext.Array.sort(b,a.sortByIndex)}},beginFill:function(){var a=this;if(!a.fillCount++){a.beginUpdate();a.suspendEvent('add','update');a.suspendAutoSync();a.fillArray=[]}},endFill:function(g,f){var a=this,c=a.fillArray,b,e,d;c.push(f);if(!--a.fillCount){a.resumeAutoSync();a.resumeEvent('add','update');for(b=0,e=c.length;b<e;b++){d=a.indexOf(c[b][0]);if(d!==-1){a.fireEvent('add',a,c[b],d)}}a.fillArray=null;a.endUpdate()}},sortByIndex:function(a,b){return a.data.index-b.data.index},onIdChanged:function(d,e,c){var b=d.childNodes,f=b&&b.length,a;this.callParent(arguments);delete this.byIdMap[e];this.byIdMap[c]=d;for(a=0;a<f;a++){b[a].set('parentId',c)}},treeify:function(n,h){var g=this,l=n.getId(),m=g.getParentIdProperty(),j=h.length,i=[],f={},b,a,c,d,k,e;for(b=0;b<j;b++){a=h[b];a.data.depth=1;f[a.id]=a}for(b=0;b<j;b++){a=h[b];c=a.data[m];if(!(c||c===0)||c===l){i.push(a)}else {d=f[c];d.$children=d.$children||[];d.$children.push(a);a.data.depth=d.data.depth+1}}for(k in f){a=f[k];e=a.$children;if(e){delete a.$children;g.setupNodes(e);a.appendChild(e)}g.registerNode(a)}g.setupNodes(i);return i},cleanRecords:function(h,f){var e={},d=h.childNodes,a=0,b=d.length,g=[],c;for(;a<b;++a){e[d[a].getId()]=!0}for(a=0,b=f.length;a<b;++a){c=f[a];if(!e[c.getId()]){g.push(c)}}return g},removeAll:function(){var a=this,b=a.getRoot(),c=a.getData().length;a.suspendEvents();a.setRoot(null);a.resumeEvents();a.callParent();if(c){a.fireEvent('clear',a);a.fireEvent('rootchange',b,null)}},doSort:function(b){var a=this;if(a.getRemoteSort()){a.load()}else {a.tree.sort(b,!0);a.fireEvent('datachanged',a);a.fireEvent('refresh',a)}a.fireEvent('sort',a,a.sorters.getRange())},filterVisible:function(a){return a.get('visible')},isVisible:function(c){var a=c.parentNode,b=c.data.visible,d=this.getRoot();while(b&&a){b=a.data.expanded&&a.data.visible;a=a.parentNode}return b&&!(c===d&&!this.getRootVisible())},commitChanges:function(){var a=this.removedNodes;if(a){a.length=0}this.callParent()},getRootNode:function(){return this.getRoot()},setRootNode:function(a){this.setRoot(a);return this.getRoot()},privates:{fireChangeEvent:function(a){return !!this.byIdMap[a.id]},getRawRemovedRecords:function(){return this.removedNodes},createOperation:function(e,c){var b=this,d=c.node,a;if(b.useModelProxy&&d&&d!==b.getRootNode()){a=d.getProxy()}if(a&&a!==b.getProxy()){return a.createOperation(e,c)}else {return b.callParent([e,c])}},recordCreator:function(b,a){return new a(b)},doFilter:function(a){this.filterNodes(a,this.getFilters().getFilterFn(),!0)},filterNodes:function(b,h,j){var c=this,g=c.filterer==='bottomup',a=h(b)&&j||(b.isRoot()&&!c.getRootVisible()),f=b.childNodes,i=f&&f.length,d,e;if(i){for(d=0;d<i;++d){e=c.filterNodes(f[d],h,a||g)||e}if(g){a=e||a}}b.set("visible",a,c._silentOptions);return a},needsLocalFilter:function(){return !this.getRemoteFilter()&&this.getFilters().length},onRemoteFilterSet:function(a,c){var b=this.getData();b.setFilters(null);if(a){a.on('endupdate',this.onFilterEndUpdate,this)}},onRemoteSortSet:function(a,c){var b=this.getData();b.setSorters(null);if(a){a.on('endupdate',this.onSorterEndUpdate,this)}}},deprecated:{5:{properties:{tree:null}}}});Ext.define('Ext.data.Types',{singleton:!0},function(a){var b=Ext.data.SortTypes;Ext.apply(a,{stripRe:/[$,%]/g,AUTO:{sortType:b.none,type:'auto'},STRING:{convert:function(b){var c=this.getAllowNull()?null:'';return (b===undefined||b===null)?c:String(b)},sortType:b.asUCString,type:'string'},INT:{convert:function(b){if(typeof b==='number'){return parseInt(b,10)}return b!==undefined&&b!==null&&b!==''?parseInt(String(b).replace(a.stripRe,''),10):(this.getAllowNull()?null:0)},sortType:b.none,type:'int'},FLOAT:{convert:function(b){if(typeof b==='number'){return b}return b!==undefined&&b!==null&&b!==''?parseFloat(String(b).replace(a.stripRe,''),10):(this.getAllowNull()?null:0)},sortType:b.none,type:'float'},BOOL:{convert:function(b){if(typeof b==='boolean'){return b}if(this.getAllowNull()&&(b===undefined||b===null||b==='')){return null}return b==='true'||b==1},sortType:b.none,type:'bool'},DATE:{convert:function(b){var d=this.getDateReadFormat()||this.getDateFormat(),c;if(!b){return null}if(b instanceof Date){return b}if(d){return Ext.Date.parse(b,d)}c=Date.parse(b);return c?new Date(c):null},sortType:b.asDate,type:'date'}});a.BOOLEAN=a.BOOL;a.INTEGER=a.INT;a.NUMBER=a.FLOAT});Ext.define('Ext.data.Validation',{extend:Ext.data.Model,isValidation:!0,syncGeneration:0,attach:function(a){this.record=a;this.isBase=a.self===Ext.data.Model;delete this.data.id},getValidation:function(){return null},isValid:function(){var a=this;if(a.syncGeneration!==a.record.generation){a.refresh()}return !a.dirty},refresh:function(q){if(this.isBase){return}var e=this,i=e.data,c=e.record,m=c.fields,l=c.generation,p=c.data,r=c.validationSeparator,f=null,k,h,a,d,g,n,j,o,b;if(q||e.syncGeneration!==l){e.syncGeneration=l;for(g=0,n=m.length;g<n;++g){d=m[g];b=d.name;o=p[b];k=d.defaultInvalidMessage;a=0;if(!(b in i)){i[b]=h=!0}else {h=i[b]}if(d.validate!==Ext.emptyFn){j=d.validate(o,r,null,c);if(j!==!0){a=j||k}}if(!a){a=!0}if(a!==h){(f||(f={}))[b]=a}}if(f){e.set(f)}}}});Ext.define('Ext.dom.Helper',function(){var b='afterbegin',d='afterend',a='beforebegin',c='beforeend',g=['BeforeBegin','previousSibling'],f=['AfterEnd','nextSibling'],e={beforebegin:g,afterend:f},h={beforebegin:g,afterend:f,afterbegin:['AfterBegin','firstChild'],beforeend:['BeforeEnd','lastChild']};return {singleton:!0,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 b=/([a-z])([A-Z])/g,a={};function decamel(c,a,b){return a+'-'+b.toLowerCase()}return function(c){return a[c]||(a[c]=c.replace(b,decamel))}}(),generateMarkup:function(a,c){var e=this,i=typeof a,d,b,f,g,h;if(i==="string"||i==="number"){c.push(a)}else if(Ext.isArray(a)){for(g=0;g<a.length;g++){if(a[g]){e.generateMarkup(a[g],c)}}}else {f=a.tag||'div';c.push('<',f);for(d in a){if(a.hasOwnProperty(d)){b=a[d];if(b!==undefined&&!e.confRe.test(d)){if(b&&b.join){b=b.join(' ')}if(typeof b==="object"){c.push(' ',d,'="');e.generateStyles(b,c,!0).push('"')}else {c.push(' ',e.attributeTransform[d]||d,'="',b,'"')}}}}if(e.emptyTags.test(f)){c.push('/>')}else {c.push('>');if((b=a.tpl)){b.applyOut(a.tplData,c)}if((b=a.html)){c.push(b)}if((b=a.cn||a.children)){e.generateMarkup(b,c)}h=e.closeTags;c.push(h[f]||(h[f]='</'+f+'>'))}}return c},generateStyles:function(c,d,f){var e=d||[],a,b;for(a in c){if(c.hasOwnProperty(a)){b=c[a];a=this.decamelizeName(a);if(f&&Ext.String.hasHtmlCharacters(b)){b=Ext.String.htmlEncode(b)}e.push(a,':',b,';')}}return d||e.join('')},markup:function(a){var b;if(typeof a==="string"){return a}b=this.generateMarkup(a,[]);return b.join('')},applyStyles:function(b,a){Ext.fly(b).applyStyles(a)},createContextualFragment:function(e){var d=this.detachedDiv,b=document.createDocumentFragment(),c,a;d.innerHTML=e;a=d.childNodes;c=a.length;while(c--){b.appendChild(a[0])}return b},createDom:function(e){var c=this,d=c.markup(e),b=c.detachedDiv,a;b.innerHTML=d;a=b.firstChild;return Ext.supports.ChildContentClearedWhenSettingInnerHTML?a.cloneNode(!0):a},insertHtml:function(g,f,j){var o=this,l,k,n,m,i;g=g.toLowerCase();if(f.insertAdjacentHTML){if(o.ieInsertHtml){i=o.ieInsertHtml(g,f,j);if(i){return i}}l=h[g];if(l){f.insertAdjacentHTML(l[0],j);return f[l[1]]}}else {if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}k=Ext.supports.CreateContextualFragment?f.ownerDocument.createRange():undefined;m='setStart'+(this.endRe.test(g)?'After':'Before');if(e[g]){if(k){k[m](f);i=k.createContextualFragment(j)}else {i=this.createContextualFragment(j)}f.parentNode.insertBefore(i,g===a?f:f.nextSibling);return f[(g===a?'previous':'next')+'Sibling']}else {n=(g===b?'first':'last')+'Child';if(f.firstChild){if(k){try{k[m](f[n]);i=k.createContextualFragment(j)}catch(p){i=this.createContextualFragment(j)}}else {i=this.createContextualFragment(j)}if(g===b){f.insertBefore(i,f.firstChild)}else {f.appendChild(i)}}else {f.innerHTML=j}return f[n]}}},insertBefore:function(c,d,b){return this.doInsert(c,d,b,a)},insertAfter:function(b,c,a){return this.doInsert(b,c,a,d)},insertFirst:function(c,d,a){return this.doInsert(c,d,a,b)},append:function(b,d,a){return this.doInsert(b,d,a,c)},overwrite:function(b,c,e){var d=this,a;b=Ext.getDom(b);c=d.markup(c);if(d.ieOverwrite){a=d.ieOverwrite(b,c)}if(!a){b.innerHTML=c;a=b.firstChild}return e?Ext.get(a):a},doInsert:function(f,j,k,g){var i=this,h;f=f.dom||Ext.getDom(f);if('innerHTML' in f){h=i.insertHtml(g,f,i.markup(j))}else {h=i.createDom(j,null);if(f.nodeType===3){g=g===b?a:g;g=g===c?d:g}if(e[g]){f.parentNode.insertBefore(h,g===a?f:f.nextSibling)}else if(f.firstChild&&g===b){f.insertBefore(h,f.firstChild)}else {f.appendChild(h)}}return k?Ext.get(h):h},createTemplate:function(b){var a=this.markup(b);return new Ext.Template(a)},createHtml:function(a){return this.markup(a)}}});Ext.define('Ext.dom.Query',function(){var DQ,doc=document,cache,simpleCache,valueCache,useClassList=!!doc.documentElement.classList,useElementPointer=!!doc.documentElement.firstElementChild,useChildrenCollection=(function(){var a=doc.createElement('div');a.innerHTML='<!-- -->text<!-- -->';return a.children&&(a.children.length===0)})(),nonSpace=/\S/,trimRe=/^\s+|\s+$/g,tplRe=/\{(\d+)\}/g,modeRe=/^(\s?[\/>+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w\-\*\|\\]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,startIdRe=/^\s*#/,isIE=window.ActiveXObject?!0:!1,key=30803,longHex=/\\([0-9a-fA-F]{6})/g,shortHex=/\\([0-9a-fA-F]{1,6})\s{0,1}/g,nonHex=/\\([^0-9a-fA-F]{1})/g,escapes=/\\/g,num,hasEscapes,supportsColonNsSeparator=(function(){var a,b='<r><a:b xmlns:a="n"></a:b></r>';if(window.DOMParser){a=(new DOMParser()).parseFromString(b,"application/xml")}else {a=new ActiveXObject("Microsoft.XMLDOM");a.loadXML(b)}return !!a.getElementsByTagName('a:b').length})(),longHexToChar=function(b,a){return String.fromCharCode(parseInt(a,16))},shortToLongHex=function(b,a){while(a.length<6){a='0'+a}return '\\'+a},charToLongHex=function(b,a){num=a.charCodeAt(0).toString(16);if(num.length===1){num='0'+num}return '\\0000'+num},unescapeCssSelector=function(a){return (hasEscapes)?a.replace(longHex,longHexToChar):a},setupEscapes=function(a){hasEscapes=(a.indexOf('\\')>-1);if(hasEscapes){a=a.replace(shortHex,shortToLongHex).replace(nonHex,charToLongHex).replace(escapes,'\\\\')}return a};eval("var batch = 30803, child, next, prev, byClassName;");child=useChildrenCollection?function child(a,b){return a.children[b]}:function child(b,c){var d=0,a=b.firstChild;while(a){if(a.nodeType==1){if(++d==c){return a}}a=a.nextSibling}return null};next=useElementPointer?function(a){return a.nextElementSibling}:function(a){while((a=a.nextSibling)&&a.nodeType!=1){}return a};prev=useElementPointer?function(a){return a.previousElementSibling}:function(a){while((a=a.previousSibling)&&a.nodeType!=1){}return a};function children(c){var a=c.firstChild,d=-1,b;while(a){b=a.nextSibling;if(a.nodeType==3&&!nonSpace.test(a.nodeValue)){c.removeChild(a)}else {a.nodeIndex=++d}a=b}return this}byClassName=useClassList?function(f,a){a=unescapeCssSelector(a);if(!a){return f}var d=[],g=-1,e,b,c;for(e=0;b=f[e];e++){c=b.classList;if(c){if(c.contains(a)){d[++g]=b}}else if((' '+b.className+' ').indexOf(a)!==-1){d[++g]=b}}return d}:function(d,a){a=unescapeCssSelector(a);if(!a){return d}var e=[],f=-1,c,b;for(c=0;b=d[c];c++){if((' '+b.className+' ').indexOf(a)!==-1){e[++f]=b}}return e};function attrValue(a,b){if(!a.tagName&&typeof a.length!="undefined"){a=a[0]}if(!a){return null}if(b=="for"){return a.htmlFor}if(b=="class"||b=="className"){return a.className}return a.getAttribute(b)||a[b]}function getNodes(d,i,a){var f=[],k=-1,m,b,h,e,j,n,g,c,l;if(!d){return f}a=a.replace('|',':')||"*";if(typeof d.getElementsByTagName!="undefined"){d=[d]}if(!i){a=unescapeCssSelector(a);if(!supportsColonNsSeparator&&DQ.isXml(d[0])&&a.indexOf(':')!==-1){for(b=0;h=d[b];b++){m=h.getElementsByTagName(a.split(':').pop());for(e=0;j=m[e];e++){if(j.tagName===a){f[++k]=j}}}}else {for(b=0;h=d[b];b++){m=h.getElementsByTagName(a);for(e=0;j=m[e];e++){f[++k]=j}}}}else if(i=="/"||i==">"){g=a.toUpperCase();for(b=0;h=d[b];b++){n=h.childNodes;for(e=0;l=n[e];e++){if(l.nodeName==g||l.nodeName==a||a=='*'){f[++k]=l}}}}else if(i=="+"){g=a.toUpperCase();for(b=0;c=d[b];b++){while((c=c.nextSibling)&&c.nodeType!=1){}if(c&&(c.nodeName==g||c.nodeName==a||a=='*')){f[++k]=c}}}else if(i=="~"){g=a.toUpperCase();for(b=0;c=d[b];b++){while((c=c.nextSibling)){if(c.nodeName==g||c.nodeName==a||a=='*'){f[++k]=c}}}}return f}function concat(a,b){a.push.apply(a,b);return a}function byTag(a,b){if(a.tagName||a===doc){a=[a]}if(!b){return a}var e=[],f=-1,d,c;b=b.toLowerCase();for(d=0;c=a[d];d++){if(c.nodeType==1&&c.tagName.toLowerCase()==b){e[++f]=c}}return e}function byId(a,c){c=unescapeCssSelector(c);if(a.tagName||a===doc){a=[a]}if(!c){return a}var d=[],f=-1,e,b;for(e=0;b=a[e];e++){if(b&&b.id==c){d[++f]=b;return d}}return d}function byAttribute(l,c,d,m,k){var h=[],n=-1,j=k=="{",e=DQ.operators[m],b,i,g,f,a;d=unescapeCssSelector(d);for(f=0;a=l[f];f++){if(a.nodeType===1){if(!g){i=DQ.isXml(a);g=!0}if(!i){if(j){b=DQ.getStyle(a,c)}else if(c=="class"||c=="className"){b=a.className}else if(c=="for"){b=a.htmlFor}else if(c=="href"){b=a.getAttribute("href",2)}else {b=a.getAttribute(c)}}else {b=a.getAttribute(c)}if((e&&e(b,d))||(!e&&b)){h[++n]=a}}}return h}function byPseudo(c,b,a){a=unescapeCssSelector(a);return DQ.pseudos[b](c,a)}function nodupIEXml(b){var f=++key,e,a,c,d;b[0].setAttribute("_nodup",f);e=[b[0]];for(a=1,c=b.length;a<c;a++){d=b[a];if(!d.getAttribute("_nodup")!=f){d.setAttribute("_nodup",f);e[e.length]=d}}for(a=0,c=b.length;a<c;a++){b[a].removeAttribute("_nodup")}return e}function nodup(a){if(!a){return []}var h=a.length,e=a,i=-1,g,f,d,c,b;if(!h||typeof a.nodeType!="undefined"||h==1){return a}if(isIE&&typeof a[0].selectSingleNode!="undefined"){return nodupIEXml(a)}c=++key;a[0]._nodup=c;for(d=1;g=a[d];d++){if(g._nodup!=c){g._nodup=c}else {e=[];for(b=0;b<d;b++){e[++i]=a[b]}for(b=d+1;f=a[b];b++){if(f._nodup!=c){f._nodup=c;e[++i]=f}}return e}}return e}function quickDiffIEXml(c,d){var f=++key,e=[],a,b;for(a=0,b=c.length;a<b;a++){c[a].setAttribute("_qdiff",f)}for(a=0,b=d.length;a<b;a++){if(d[a].getAttribute("_qdiff")!=f){e[e.length]=d[a]}}for(a=0,b=c.length;a<b;a++){c[a].removeAttribute("_qdiff")}return e}function quickDiff(c,b){var e=c.length,g=++key,d=[],a,f;if(!e){return b}if(isIE&&typeof c[0].selectSingleNode!="undefined"){return quickDiffIEXml(c,b)}for(a=0;a<e;a++){c[a]._qdiff=g}for(a=0,f=b.length;a<f;a++){if(b[a]._qdiff!=g){d[d.length]=b[a]}}return d}function quickId(b,e,c,a){var d;if(b==c){a=unescapeCssSelector(a);d=c.ownerDocument||c;return d.getElementById(a)}b=getNodes(b,e,"*");return byId(b,a)}return {singleton:!0,alternateClassName:['Ext.core.DomQuery','Ext.DomQuery'],_init:function(){DQ=this;DQ.operators=Ext.Object.chain(Ext.util.Operators);DQ._cache=cache=new Ext.util.LruCache({maxSize:200});DQ._valueCache=valueCache=new Ext.util.LruCache({maxSize:200});DQ._simpleCache=simpleCache=new Ext.util.LruCache({maxSize:200})},clearCache:function(){cache.clear();valueCache.clear();simpleCache.clear()},getStyle:function(b,a){return Ext.fly(b,'_DomQuery').getStyle(a)},compile:function(path,type){type=type||"select";var fn=["var f = function(root) {\n var mode; ++batch; var n = root || document;\n"],lastPath,matchers=DQ.matchers,matchersLn=matchers.length,lmode=path.match(modeRe),modeMatch,tokenMatch,matched,j,t,m;path=setupEscapes(path);if(lmode&&lmode[1]){fn[fn.length]='mode="'+lmode[1].replace(trimRe,"")+'";';path=path.replace(lmode[1],"")}while(path.substr(0,1)=="/"){path=path.substr(1)}while(path&&lastPath!=path){lastPath=path;tokenMatch=path.match(tagTokenRe);if(type=="select"){if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = quickId(n, mode, root, "'+tokenMatch[2]+'");'}else {fn[fn.length]='n = getNodes(n, mode, "'+tokenMatch[2]+'");'}path=path.replace(tokenMatch[0],"")}else if(path.substr(0,1)!='@'){fn[fn.length]='n = getNodes(n, mode, "*");'}}else {if(tokenMatch){if(tokenMatch[1]=="#"){fn[fn.length]='n = byId(n, "'+tokenMatch[2]+'");'}else {fn[fn.length]='n = byTag(n, "'+tokenMatch[2]+'");'}path=path.replace(tokenMatch[0],"")}}while(!(modeMatch=path.match(modeRe))){matched=!1;for(j=0;j<matchersLn;j++){t=matchers[j];m=path.match(t.re);if(m){fn[fn.length]=t.select.replace(tplRe,function(b,a){return m[a]});path=path.replace(m[0],"");matched=!0;break}}if(!matched){Ext.raise({sourceClass:'Ext.DomQuery',sourceMethod:'compile',msg:'Error parsing selector. Parsing failed at "'+path+'"'})}}if(modeMatch[1]){fn[fn.length]='mode="'+modeMatch[1].replace(trimRe,"")+'";';path=path.replace(modeMatch[1],"")}}fn[fn.length]="return nodup(n);\n}";eval(fn.join(""));return f},jsSelect:function(i,c,j){c=c||doc;if(typeof c=="string"){c=doc.getElementById(c)}var g=Ext.splitAndUnescape(i,","),d=[],b,f,h,a,e;for(f=0,h=g.length;f<h;f++){a=g[f].replace(trimRe,"");b=cache.get(a);if(!b){b=DQ.compile(a,j);if(!b){Ext.raise({sourceClass:'Ext.DomQuery',sourceMethod:'jsSelect',msg:a+' is not a valid selector'})}cache.add(a,b)}else {setupEscapes(a)}e=b(c);if(e&&e!==doc){d=d.concat(e)}}if(g.length>1){return nodup(d)}return d},isXml:function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1},select:doc.querySelectorAll?function(b,a,d,c){a=a||doc;if(!DQ.isXml(a)){try{if(a.parentNode&&(a.nodeType!==9)&&b.indexOf(',')===-1&&!startIdRe.test(b)){b=Ext.makeIdSelector(Ext.id(a))+' '+b;a=a.parentNode}return c?[a.querySelector(b)]:Ext.Array.toArray(a.querySelectorAll(b))}catch(e){}}return DQ.jsSelect.call(this,b,a,d)}:function(a,b,c){return DQ.jsSelect.call(this,a,b,c)},selectNode:function(a,b){return Ext.DomQuery.select(a,b,null,!0)[0]},selectValue:function(a,e,d){a=a.replace(trimRe,"");var b=valueCache.get(a),c;if(!b){b=DQ.compile(a,"select");valueCache.add(a,b)}else {setupEscapes(a)}c=b(e);return DQ.getNodeValue(c[0]||c,d)},getNodeValue:function(a,c){if(typeof a.normalize=='function'){a.normalize()}var d=a&&a.firstChild,b=d?d.nodeValue:null;if(c!==undefined&&(b==null||b==='')){b=c}return b},selectNumber:function(b,c,a){var d=DQ.selectValue(b,c,a||0);return parseFloat(d)},is:function(a,d){if(typeof a=="string"){a=doc.getElementById(a)}var b=Ext.isArray(a),c=DQ.filter(b?a:[a],d);return b?(c.length==a.length):(c.length>0)},filter:function(d,a,e){a=a.replace(trimRe,"");var b=simpleCache.get(a),c;if(!b){b=DQ.compile(a,"simple");simpleCache.add(a,b)}else {setupEscapes(a)}c=b(d);return e?quickDiff(c,d):c},matchers:[{re:/^\.([\w\-\\]+)/,select:useClassList?'n = byClassName(n, "{1}");':'n = byClassName(n, " {1} ");'},{re:/^\:([\w\-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w\-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w\-\\]+)/,select:'n = byId(n, "{1}");'},{re:/^@([\w\-\.]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],pseudos:{"first-child":function(f){var d=[],e=-1,a,b,c;for(b=0;(c=a=f[b]);b++){while((a=a.previousSibling)&&a.nodeType!=1){}if(!a){d[++e]=c}}return d},"last-child":function(f){var d=[],e=-1,a,b,c;for(b=0;(c=a=f[b]);b++){while((a=a.nextSibling)&&a.nodeType!=1){}if(!a){d[++e]=c}}return d},"nth-child":function(l,c){var g=[],h=-1,k=nthRe.exec(c=="even"&&"2n"||c=="odd"&&"2n+1"||!nthRe2.test(c)&&"n+"+c||c),i=(k[1]||1)-0,f=k[2]-0,e,b,j,a,d;for(e=0;b=l[e];e++){d=b.parentNode;if(batch!=d._batch){j=0;for(a=d.firstChild;a;a=a.nextSibling){if(a.nodeType==1){a.nodeIndex=++j}}d._batch=batch}if(i==1){if(f===0||b.nodeIndex==f){g[++h]=b}}else if((b.nodeIndex+f)%i===0){g[++h]=b}}return g},"only-child":function(e){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if(!prev(a)&&!next(a)){c[++d]=a}}return c},"empty":function(i){var g=[],h=-1,d,b,f,e,c,a;for(d=0;b=i[d];d++){f=b.childNodes;e=0;a=!0;while(c=f[e]){++e;if(c.nodeType==1||c.nodeType==3){a=!1;break}}if(a){g[++h]=b}}return g},"contains":function(e,f){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if((a.textContent||a.innerText||a.text||'').indexOf(f)!=-1){c[++d]=a}}return c},"nodeValue":function(e,f){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if(a.firstChild&&a.firstChild.nodeValue==f){c[++d]=a}}return c},"checked":function(e){var c=[],d=-1,b,a;for(b=0;a=e[b];b++){if(a.checked===!0){c[++d]=a}}return c},"not":function(b,a){return DQ.filter(b,a,!0)},"any":function(i,f){var h=f.split('|'),d=[],g=-1,e,b,a,c;for(b=0;a=i[b];b++){for(c=0;e=h[c];c++){if(DQ.is(a,e)){d[++g]=a;break}}}return d},"odd":function(a){return this["nth-child"](a,"odd")},"even":function(a){return this["nth-child"](a,"even")},"nth":function(b,a){return b[a-1]||[]},"first":function(a){return a[0]||[]},"last":function(a){return a[a.length-1]||[]},"has":function(f,e){var g=DQ.select,c=[],d=-1,b,a;for(b=0;a=f[b];b++){if(g(e,a).length>0){c[++d]=a}}return c},"next":function(h,g){var e=DQ.is,d=[],f=-1,b,a,c;for(b=0;a=h[b];b++){c=next(a);if(c&&e(c,g)){d[++f]=a}}return d},"prev":function(h,g){var e=DQ.is,d=[],f=-1,b,a,c;for(b=0;a=h[b];b++){c=prev(a);if(c&&e(c,g)){d[++f]=a}}return d},focusable:function(c){var e=c.length,d=[],b=0,a;for(;b<e;b++){a=c[b];if(Ext.fly(a,'_DomQuery').isFocusable()){d.push(a)}}return d},visible:function(c,e){var f=c.length,d=[],b=0,a;for(;b<f;b++){a=c[b];if(Ext.fly(a,'_DomQuery').isVisible(e)){d.push(a)}}return d},isScrolled:function(f){var d=[],e=-1,b,a,c;for(b=0;a=f[b];b++){c=Ext.fly(a,'_DomQuery').getScroll();if(c.top>0||c.left>0){d[++e]=a}}return d}}}},function(){this._init()});Ext.define('Ext.data.reader.Xml',{extend:Ext.data.reader.Reader,alternateClassName:'Ext.data.XmlReader',alias:'reader.xml',config:{record:'',namespace:''},responseType:'document',createAccessor:function(a){if(Ext.isEmpty(a)){return Ext.emptyFn}if(Ext.isFunction(a)){return a}return function(b){return this.getNodeValue(Ext.DomQuery.selectNode(a,b))}},getNodeValue:function(a){if(a){if(typeof a.normalize==='function'){a.normalize()}a=a.firstChild;if(a){return a.nodeValue}}return undefined},getResponseData:function(c){var b=c.responseXML,a='XML data not found in the response';if(!b){Ext.Logger.warn(a);return this.createReadError(a)}return b},getData:function(a){return a.documentElement||a},getRoot:function(a){return this.getRootValue(a,this.getRootProperty())},extractData:function(a,c){var b=this.getRecord();if(b!==a.nodeName){a=Ext.DomQuery.select(b,a)}else {a=[a]}return this.callParent([a,c])},readRecords:function(a,c,b){if(Ext.isArray(a)){a=a[0]}return this.callParent([a,c,b])},createFieldAccessor:function(c){var d=this.getNamespace(),a,e,b;if(c.mapping){a=c.mapping}else {a=(d?d+'|':'')+c.name;e=!0}if(typeof a==='function'){b=function(b,a){return c.mapping(b,a)}}else {if(e&&!d&&Ext.supports.XmlQuerySelector){b=function(d,b){return b.getNodeValue(d.querySelector(a))}}if(!b){b=function(d,b){return b.getNodeValue(Ext.DomQuery.selectNode(a,d))}}}return b},privates:{getGroupRoot:function(a){return this.getRootValue(a,this.getGroupRootProperty())},getRootValue:function(a,b){var c=a.nodeName;if(!b||(c&&c===b)){return a}else if(typeof b==='function'){return b(a)}else if(Ext.DomQuery.isXml(a)){return Ext.DomQuery.selectNode(b,a)}},getSummaryRoot:function(a){return this.getRootValue(a,this.getSummaryRootProperty())}},deprecated:{'5.1.1':{properties:{xmlData:null}}}});Ext.define('Ext.data.writer.Xml',{extend:Ext.data.writer.Writer,alternateClassName:'Ext.data.XmlWriter',alias:'writer.xml',config:{documentRoot:'xmlData',defaultDocumentRoot:'xmlData',header:'',record:'record'},selectorRe:/[^>\s]+/g,writeRecords:function(i,d){var f=this,b=[],a=0,l=d.length,c=f.getDocumentRoot(),g=f.getRecord(),e=g.match(this.selectorRe),j=e.length,k=d.length!==1&&j===1,h;h=this.getTransform();if(h){d=h(d,i)}b.push(f.getHeader()||'');if(!c&&k){c=f.getDefaultDocumentRoot()}if(c){b.push('<',c,'>')}for(a=0;a<j-1;a++){b.push('<',e[a],'>')}g=e[a];for(a=0;a<l;++a){this.objectToElement(g,d[a],b)}for(a=j-2;a>-1;a--){b.push('</',e[a],'>')}if(c){b.push('</',c,'>')}i.setXmlData(b.join(''));return i},objectToElement:function(l,m,b){var h=[],a,c,i,k,e,d,j,f,g;if(!b){b=[]}b.push('<',l);for(a in m){c=m[a];if(a[0]==='@'){b.push(' ',a.substr(1),'="',c,'"')}else {if(typeof c==='object'){this.objectToElement(a,c,h)}else {i=a.match(this.selectorRe);if((k=i.length)>1){d=d||{};for(e=d,g=0;g<k;g++){j=e;f=i[g];e=e[f]||(e[f]={})}j[f]=c}else {h.push('<',a,'>',c,'</',a,'>')}}}}b.push('>');b.push.apply(b,h);if(d){for(a in d){c=d[a];this.objectToElement(a,c,b)}}b.push('</',l,'>');return b}});Ext.define('Ext.data.XmlStore',{extend:Ext.data.Store,alias:'store.xml',constructor:function(a){a=Ext.apply({proxy:{type:'ajax',reader:'xml',writer:'xml'}},a);this.callParent([a])}});Ext.define('Ext.data.identifier.Negative',{extend:Ext.data.identifier.Sequential,alias:'data.identifier.negative',config:{increment:-1,seed:-1}});Ext.define('Ext.data.identifier.Uuid',{extend:Ext.data.identifier.Generator,alias:'data.identifier.uuid',isUnique:!0,config:{id:null},constructor:function(a){this.callParent([a]);this.reconfigure(a)},reconfigure:function(a){var b=this.self;this.generate=(a&&a.version===1)?b.createSequential(a.salt,a.timestamp,a.clockSeq):b.createRandom()},clone:null,statics:{createRandom:function(){var a='xxxxxxxx-xxxx-4xxx-Rxxx-xMxxxxxxxxxx'.split(''),d='0123456789abcdef'.split(''),c=a.length,b=[];return function(){var g,e,f;for(f=0;f<c;++f){e=a[f];if(e!=='-'&&e!=='4'){g=Math.random()*16;g=(e==='R')?(g&3|8):(g|((e==='M')?1:0));e=d[g]}b[f]=e}return b.join('')}},createSequential:function(f,g,i){var b=[],c=Math.pow(2,32),j=f.lo,h=f.hi,e=g.lo,d=g.hi,a;a=function(c,b){var a=c.toString(16).toLowerCase();if(a.length>b){a=a.substring(a.length-b)}else if(a.length<b){a=Ext.String.leftPad(a,b,'0')}return a};if(typeof f==='number'){h=Math.floor(f/c);j=Math.floor(f-h*c)}if(typeof g==='number'){d=Math.floor(g/c);e=Math.floor(g-d*c)}h|=256;b[3]=a(128|((i>>>8)&63),2)+a(i&255,2);b[4]=a(h,4)+a(j,8);return function(){b[0]=a(e,8);b[1]=a(d&65535,4);b[2]=a(((d>>>16)&4095)|(1<<12),4);++e;if(e>=c){e=0;++d}return b.join('-')}}}},function(){this.Global=new this({id:'uuid'})});Ext.define('Ext.data.proxy.WebStorage',{extend:Ext.data.proxy.Client,alternateClassName:'Ext.data.WebStorageProxy',config:{id:undefined},constructor:function(a){this.callParent(arguments);this.cache={};this.initialize()},create:function(g){var a=this,f=g.getRecords(),i=f.length,h=a.getIds(),c,b,d,e;if(a.isHierarchical===undefined){a.isHierarchical=!!f[0].isNode;if(a.isHierarchical){a.getStorageObject().setItem(a.getTreeKey(),!0)}}for(d=0;d<i;d++){b=f[d];if(b.phantom){e=b.identifier;if(e&&e.isUnique){c=b.getId()}else {c=a.getNextId()}}else {c=b.getId()}a.setRecord(b,c);b.commit();h.push(c)}a.setIds(h);g.setSuccessful(!0)},read:function(a){var e=this,h,f=[],t=!0,j=e.getModel(),r=0,g=a.getRecordCreator(),i,l,n,s,o,b,p,m,d,q,c,k;if(e.isHierarchical){f=e.getTreeData()}else {p=e.getIds();m=p.length;q=a.getId();if(q){d=e.getRecord(q);if(d!==null){b=g?g(d,j):new j(d)}if(b){f.push(b)}else {t=!1}}else {l=a.getSorters();i=a.getFilters();n=a.getLimit();h=[];for(c=0;c<m;c++){d=e.getRecord(p[c]);b=g?g(d,j):new j(d);h.push(b)}if(l){Ext.Array.sort(h,Ext.util.Sorter.createComparator(l))}for(c=a.getStart()||0;c<m;c++){b=h[c];o=!0;if(i){for(k=0,s=i.length;k<s;k++){o=i[k].filter(b)}}if(o){f.push(b);r++}if(n&&r===n){break}}}}if(t){a.setResultSet(new Ext.data.ResultSet({records:f,total:f.length,loaded:!0}));a.setSuccessful(!0)}else {a.setException('Unable to load records')}},update:function(e){var f=e.getRecords(),g=f.length,d=this.getIds(),a,b,c;for(c=0;c<g;c++){a=f[c];this.setRecord(a);a.commit();b=a.getId();if(b!==undefined&&Ext.Array.indexOf(d,b)===-1){d.push(b)}}this.setIds(d);e.setSuccessful(!0)},erase:function(e){var c=this,f=e.getRecords(),h=c.getIds(),i=h.length,g=[],d={},a=f.length,b;for(;a--;){Ext.apply(d,c.removeRecord(f[a]))}for(a=0;a<i;a++){b=h[a];if(!d[b]){g.push(b)}}c.setIds(g);e.setSuccessful(!0)},getRecord:function(b){var c=this,d=c.cache,a;a=!d[b]?Ext.decode(c.getStorageObject().getItem(c.getRecordKey(b))):d[b];if(!a){return null}d[b]=a;a[c.getModel().prototype.idProperty]=b;return Ext.merge({},a)},setRecord:function(c,e){if(e){c.set('id',e,{commit:!0})}else {e=c.getId()}var f=this,m=c.getData(),d={},l=f.getModel(),k=l.getFields(),n=k.length,j=0,a,g,i,h,b;for(;j<n;j++){a=k[j];g=a.name;if(a.persist){b=m[g];if(a.isDateField&&a.dateFormat&&Ext.isDate(b)){b=Ext.Date.format(b,a.dateFormat)}else if(a.serialize){b=a.serialize(b,c)}d[g]=b}}delete d[l.prototype.idProperty];if(c.isNode&&c.get('depth')===1){delete d.parentId}i=f.getStorageObject();h=f.getRecordKey(e);f.cache[e]=d;i.removeItem(h);i.setItem(h,Ext.encode(d))},removeRecord:function(a){var b=this,e=a.getId(),d={},f,c;d[e]=a;b.getStorageObject().removeItem(b.getRecordKey(e));delete b.cache[e];if(a.childNodes){c=a.childNodes;for(f=c.length;f--;){Ext.apply(d,b.removeRecord(c[f]))}}return d},getRecordKey:function(a){if(a.isModel){a=a.getId()}return Ext.String.format("{0}-{1}",this.getId(),a)},getRecordCounterKey:function(){return Ext.String.format("{0}-counter",this.getId())},getTreeKey:function(){return Ext.String.format("{0}-tree",this.getId())},getIds:function(){var d=this,a=(d.getStorageObject().getItem(d.getId())||"").split(","),c=a.length,e=this.getIdField().isStringField,b;if(c===1&&a[0]===""){a=[]}else {for(b=0;b<c;b++){a[b]=e?a[b]:+a[b]}}return a},getIdField:function(){return this.getModel().prototype.idField},setIds:function(d){var a=this.getStorageObject(),b=d.join(","),c=this.getId();a.removeItem(c);if(!Ext.isEmpty(b)){a.setItem(c,b)}},getNextId:function(){var b=this,e=b.getStorageObject(),d=b.getRecordCounterKey(),c=b.getIdField().isStringField,a;a=b.idGenerator.generate();e.setItem(d,a);if(c){a=a+''}return a},getTreeData:function(){var f=this,n=f.getIds(),i=n.length,d=[],k={},c=[],b=0,m=f.getModel(),o=m.prototype.idProperty,g,a,e,h,l,j;for(;b<i;b++){j=n[b];a=f.getRecord(j);d.push(a);k[j]=a;if(!a.parentId){c.push(a)}}g=c.length;Ext.Array.sort(d,f.sortByParentId);for(b=g;b<i;b++){a=d[b];h=a.parentId;if(!e||e[o]!==h){e=k[h];e.children=l=[]}l.push(a)}for(b=i;b--;){a=d[b];if(!a.children&&!a.leaf){a.loaded=!0}}for(b=g;b--;){a=c[b];c[b]=new m(a)}return c},sortByParentId:function(a,b){return (a.parentId||0)-(b.parentId||0)},initialize:function(){var a=this,b=a.getStorageObject(),c=+b.getItem(a.getRecordCounterKey()),d=a.getId();b.setItem(d,b.getItem(d)||"");if(b.getItem(a.getTreeKey())){a.isHierarchical=!0}a.idGenerator=new Ext.data.identifier.Sequential({seed:c?c+1:1})},clear:function(){var a=this,b=a.getStorageObject(),d=a.getIds(),e=d.length,c;for(c=0;c<e;c++){b.removeItem(a.getRecordKey(d[c]))}b.removeItem(a.getRecordCounterKey());b.removeItem(a.getTreeKey());b.removeItem(a.getId());a.cache={}},getStorageObject:function(){}});Ext.define('Ext.data.proxy.LocalStorage',{extend:Ext.data.proxy.WebStorage,alias:'proxy.localstorage',alternateClassName:'Ext.data.LocalStorageProxy',getStorageObject:function(){return window.localStorage}});Ext.define('Ext.data.proxy.Rest',{extend:Ext.data.proxy.Ajax,alternateClassName:'Ext.data.RestProxy',alias:'proxy.rest',defaultActionMethods:{create:'POST',read:'GET',update:'PUT',destroy:'DELETE'},slashRe:/\/$/,periodRe:/\.$/,config:{appendId:!0,format:null,batchActions:!1,actionMethods:{create:'POST',read:'GET',update:'PUT',destroy:'DELETE'}},buildUrl:function(c){var a=this,g=c.getOperation(),h=g.getRecords(),f=h?h[0]:null,i=a.getFormat(),b=a.getUrl(c),d,e;if(f&&!f.phantom){d=f.getId()}else {d=g.getId()}if(a.getAppendId()&&a.isValidId(d)){if(!b.match(a.slashRe)){b+='/'}b+=encodeURIComponent(d);e=c.getParams();if(e){delete e[a.getIdParam()]}}if(i){if(!b.match(a.periodRe)){b+='.'}b+=i}c.setUrl(b);return a.callParent([c])},isValidId:function(a){return a||a===0}});Ext.define('Ext.data.proxy.SessionStorage',{extend:Ext.data.proxy.WebStorage,alias:'proxy.sessionstorage',alternateClassName:'Ext.data.SessionStorageProxy',getStorageObject:function(){return window.sessionStorage}});Ext.define('Ext.data.summary.Base',{mixins:[Ext.mixin.Factoryable],alias:'data.summary.base',isAggregator:!0,factoryConfig:{defaultType:'base',cacheable:!0},constructor:function(a){var b=a&&a.calculate;if(b){a=Ext.apply({},a);delete a.calculate;this.calculate=b}this.initConfig(a)},extractValue:function(a,d,b){var c;if(a){if(b){a=a[b]}c=a[d]}return c}},function(){Ext.Factory.on('dataSummary',function(b,a){if(typeof a==='function'){return b({calculate:a})}})});Ext.define('Ext.data.summary.Sum',{extend:Ext.data.summary.Base,alias:'data.summary.sum',calculate:function(f,e,g,d,h){var i=h-d,a,b,c;for(a=0;a<i;++a){c=this.extractValue(f[d+a],e,g);b=a?b+c:c}return b}});Ext.define('Ext.data.summary.Average',{extend:Ext.data.summary.Sum,alias:'data.summary.average',calculate:function(f,e,g,a,c){var d=c-a,b;if(d>0){b=this.callParent([f,e,g,a,c])/d}return b}});Ext.define('Ext.data.summary.Count',{extend:Ext.data.summary.Base,alias:'data.summary.count',calculate:function(d,c,e,a,b){return b-a}});Ext.define('Ext.data.summary.Max',{extend:Ext.data.summary.Base,alias:'data.summary.max',calculate:function(e,d,g,f,h){var b=this.extractValue(e[f],d,g),a,c;for(a=f;a<h;++a){c=this.extractValue(e[a],d,g);if(c>b){b=c}}return b}});Ext.define('Ext.data.summary.Min',{extend:Ext.data.summary.Base,alias:'data.summary.min',calculate:function(e,d,g,f,h){var b=this.extractValue(e[f],d,g),a,c;for(a=f;a<h;++a){c=this.extractValue(e[a],d,g);if(c<b){b=c}}return b}});Ext.define('Ext.data.summary.None',{extend:Ext.data.summary.Base,alias:'data.summary.none',config:{value:null},calculate:function(){return this.getValue()}});Ext.define('Ext.data.validator.AbstractDate',{extend:Ext.data.validator.Validator,config:{message:null,format:''},applyFormat:function(a){if(!a){a=this.getDefaultFormat()}if(!Ext.isArray(a)){a=[a]}return a},parse:function(b){if(Ext.isDate(b)){return b}var f=this,d=f.getFormat(),e=d.length,c=null,a;for(a=0;a<e&&!c;++a){c=Ext.Date.parse(b,d[a],!0)}return c},validate:function(a){return this.parse(a)?!0:this.getMessage()}});Ext.define('Ext.data.validator.Bound',{extend:Ext.data.validator.Validator,alias:'data.validator.bound',type:'bound',config:{min:undefined,max:undefined,emptyMessage:'Must be present',minOnlyMessage:'Value must be greater than {0}',maxOnlyMessage:'Value must be less than {0}',bothMessage:'Value must be between {0} and {1}'},resetMessages:function(){this._bothMsg=this._minMsg=this._maxMsg=null},updateMin:function(){this.resetMessages()},updateMax:function(){this.resetMessages()},updateMinOnlyMessage:function(){this.resetMessages()},updateMaxOnlyMessage:function(){this.resetMessages()},updateBothMessage:function(){this.resetMessages()},validate:function(b){var a=this,e=a.getMin(),d=a.getMax(),g=(e!=null),f=(d!=null),c=this.validateValue(b);if(c!==!0){return c}b=a.getValue(b);if(g&&f){if(b<e||b>d){c=a._bothMsg||(a._bothMsg=Ext.String.format(a.getBothMessage(),e,d))}}else if(g){if(b<e){c=a._minMsg||(a._minMsg=Ext.String.format(a.getMinOnlyMessage(),e))}}else if(f){if(b>d){c=a._maxMsg||(a._maxMsg=Ext.String.format(a.getMaxOnlyMessage(),d))}}return c},validateValue:function(a){if(a===undefined||a===null){return this.getEmptyMessage()}return !0},getValue:Ext.identityFn});Ext.define('Ext.data.validator.Format',{extend:Ext.data.validator.Validator,alias:'data.validator.format',type:'format',config:{message:'Is in the wrong format',matcher:undefined},validate:function(c){var a=this.getMatcher(),b=a&&a.test(c);return b?b:this.getMessage()}});Ext.define('Ext.data.validator.CIDRv4',{extend:Ext.data.validator.Format,alias:'data.validator.cidrv4',type:'cidrv4',message:'Is not a valid CIDR block',matcher:/^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$/});Ext.define('Ext.data.validator.CIDRv6',{extend:Ext.data.validator.Format,alias:'data.validator.cidrv6',type:'cidrv6',message:'Is not a valid CIDR block',matcher:/^s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8]))?$/});Ext.define('Ext.data.validator.Number',{extend:Ext.data.validator.Validator,alias:'data.validator.number',type:'number',config:{decimalSeparator:undefined,message:'Is not a valid number',thousandSeparator:undefined},constructor:function(a){this.callParent([a]);this.rebuildMatcher()},applyDecimalSeparator:function(a){return a===undefined?Ext.util.Format.decimalSeparator:a},updateDecimalSeparator:function(){this.rebuildMatcher()},applyThousandSeparator:function(a){return a===undefined?Ext.util.Format.thousandSeparator:a},updateThousandSeparator:function(){this.rebuildMatcher()},parse:function(a){var c=this.getDecimalSeparator(),b=Ext.Number;if(typeof a==='string'){if(!this.matcher.test(a)){return null}a=this.parseValue(a)}return c?b.parseFloat(a):b.parseInt(a)},validate:function(a){return this.parse(a)===null?this.getMessage():!0},privates:{getMatcherText:function(d){var c=this.getThousandSeparator(),b=this.getDecimalSeparator(),a='(?:';if(c){c=Ext.String.escapeRegex(c);a+='(?:\\d{1,3}('+c+'\\d{3})*)|'}a+='\\d*)';if(b){b=Ext.String.escapeRegex(b);a+='(?:'+b+'\\d*)?'}if(!d){a=this.getSignPart()+a}return a},getSignPart:function(){return '(\\+|\\-)?'},parseValue:function(a){var c=this.thousandMatcher,b;if(c){a=a.replace(c,'')}b=this.getDecimalSeparator();if(b&&b!=='.'){a=a.replace(b,'.')}return a},rebuildMatcher:function(){var a=this,b;if(!a.isConfiguring){b=a.getThousandSeparator();a.matcher=new RegExp('^'+a.getMatcherText()+'$');if(b){a.thousandMatcher=b?new RegExp(Ext.String.escapeRegex(b),'g'):null}}}}});Ext.define('Ext.data.validator.Currency',{extend:Ext.data.validator.Number,alias:'data.validator.currency',type:'currency',config:{symbolAtEnd:undefined,spacer:undefined,symbol:undefined},message:'Is not a valid currency amount',applySymbolAtEnd:function(a){return a===undefined?Ext.util.Format.currencyAtEnd:a},updateSymbolAtEnd:function(){this.rebuildMatcher()},applySpacer:function(a){return a===undefined?Ext.util.Format.currencySpacer:a},updateSpacer:function(){this.rebuildMatcher()},applySymbol:function(a){return a===undefined?Ext.util.Format.currencySign:a},updateSymbol:function(){this.rebuildMatcher()},privates:{getMatcherText:function(){var b=this,a=b.callParent([!0]),c=b.getSymbolMatcher();if(b.getSymbolAtEnd()){a+=c}else {a=c+a}return b.getSignPart()+a},getSymbolMatcher:function(){var b=Ext.String.escapeRegex(this.getSymbol()),a=Ext.String.escapeRegex(this.getSpacer()||''),c=this.getSymbolAtEnd()?(a+b):(b+a);return '(?:'+c+')?'},parseValue:function(a){a=a.replace(this.currencyMatcher,this.atEnd?'':'$1');return this.callParent([a])},rebuildMatcher:function(){var a=this,b,c,d;a.callParent();if(!a.isConfiguring){c=a.getSymbolAtEnd();b=a.getSymbolMatcher();d=a.getSignPart();a.atEnd=c;a.currencyMatcher=new RegExp(c?(b+'$'):('^'+d+b))}}}});Ext.define('Ext.data.validator.CurrencyUS',{extend:Ext.data.validator.Currency,alias:'data.validator.currency-us',type:'currency-us',thousandSeparator:',',decimalSeparator:'.',symbol:'$',spacer:'',symbolAtEnd:!1});Ext.define('Ext.data.validator.Date',{extend:Ext.data.validator.AbstractDate,alias:'data.validator.date',type:'date',isDateValidator:!0,message:'Is not a valid date',privates:{getDefaultFormat:function(){return [Ext.Date.defaultFormat,'m/d/Y','n/j/Y','n/j/y','m/j/y','n/d/y','m/j/Y','n/d/Y','m-d-y','n-d-y','m-d-Y','mdy','mdY','Y-m-d']}}});Ext.define('Ext.data.validator.DateTime',{extend:Ext.data.validator.AbstractDate,alias:'data.validator.datetime',type:'datetime',isDateTimeValidator:!0,message:'Is not a valid date and time',privates:{getDefaultFormat:function(){var a=Ext.Date;return a.defaultFormat+' '+a.defaultTimeFormat}}});Ext.define('Ext.data.validator.Email',{extend:Ext.data.validator.Format,alias:'data.validator.email',type:'email',message:'Is not a valid email address',matcher:/^(")?(?:[^\."])(?:(?:[\.])?(?:[\w\-!#$%&'*+\/=?\^_`{|}~]))*\1@(\w[\-\w]*\.){1,5}([A-Za-z]){2,6}$/});Ext.define('Ext.data.validator.List',{extend:Ext.data.validator.Validator,alias:'data.validator.list',type:'list',config:{list:null,message:null},inclusion:null,validate:function(e){var b=Ext.Array.contains(this.getList(),e),a=this.inclusion,d=!a,c;c=(a&&b)||(d&&!b);return c||this.getMessage()}});Ext.define('Ext.data.validator.Exclusion',{extend:Ext.data.validator.List,alias:'data.validator.exclusion',type:'exclusion',message:'Is a value that has been excluded',inclusion:!1});Ext.define('Ext.data.validator.IPAddress',{extend:Ext.data.validator.Format,alias:'data.validator.ipaddress',type:'ipaddress',message:'Is not a valid IP address',matcher:new RegExp('^('+'((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)'+'|'+'((([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])))'+')$')});Ext.define('Ext.data.validator.Inclusion',{extend:Ext.data.validator.List,alias:'data.validator.inclusion',type:'inclusion',message:'Is not in the list of acceptable values',inclusion:!0});Ext.define('Ext.data.validator.Length',{extend:Ext.data.validator.Bound,alias:'data.validator.length',type:'length',minOnlyMessage:'Length must be at least {0}',maxOnlyMessage:'Length must be no more than {0}',bothMessage:'Length must be between {0} and {1}',getValue:function(a){return String(a).length}});Ext.define('Ext.data.validator.Presence',{extend:Ext.data.validator.Validator,alias:'data.validator.presence',type:'presence',isPresence:!0,config:{message:'Must be present',allowEmpty:!1},validate:function(b){var a=!(b===undefined||b===null);if(a&&!this.getAllowEmpty()){a=b!==''}return a?!0:this.getMessage()}});Ext.define('Ext.data.validator.NotNull',{extend:Ext.data.validator.Presence,alias:'data.validator.notnull',type:'notnull',allowEmpty:!0});Ext.define('Ext.data.validator.Phone',{extend:Ext.data.validator.Format,alias:'data.validator.phone',type:'phone',message:'Is not a valid phone number',matcher:new RegExp('^ *'+'(?:'+'\\+?'+'(\\d{1,3})'+'[- .]?'+')?'+'(?:'+'(?:'+'(\\d{3})'+'|'+'\\((\\d{3})\\)'+')?'+'[- .]?'+')'+'(?:'+'([2-9]\\d{2})'+'[- .]?'+')'+'(\\d{4})'+'(?: *(?:e?xt?) *(\\d*))?'+' *$')});Ext.define('Ext.data.validator.Range',{extend:Ext.data.validator.Bound,alias:'data.validator.range',type:'range',minOnlyMessage:'Must be at least {0}',maxOnlyMessage:'Must be no more than than {0}',bothMessage:'Must be between {0} and {1}',config:{nanMessage:'Must be numeric'},validateValue:function(b){var a=this.callParent([b]);if(a===!0&&isNaN(b)){a=this.getNanMessage()}return a}});Ext.define('Ext.data.validator.Time',{extend:Ext.data.validator.AbstractDate,alias:'data.validator.time',type:'time',isTimeValidator:!0,message:'Is not a valid time',privates:{getDefaultFormat:function(){return Ext.Date.defaultTimeFormat}}});Ext.define('Ext.data.validator.Url',{extend:Ext.data.validator.Format,alias:'data.validator.url',type:'url',message:'Is not a valid URL',matcher:/^(http:\/\/|https:\/\/|ftp:\/\/|\/\/)([-a-zA-Z0-9@:%_\+.~#?&//=])+$/});Ext.define('Ext.data.virtual.Group',{isVirtualGroup:!0,firstRecords:null,id:'',summaryRecord:null,constructor:function(a){this.id=a;this.firstRecords=[]},first:function(){return this.firstRecords[0]||null},getGroupKey:function(){return this.id},getSummaryRecord:function(){return this.summaryRecord}});Ext.define('Ext.data.virtual.Page',{isVirtualPage:!0,begin:0,end:0,error:null,locked:null,number:0,operation:null,pageMap:null,records:null,state:null,constructor:function(c){var a=this,b;Ext.apply(a,c);b=a.pageMap.store.getPageSize();a.begin=a.number*b;a.end=a.begin+b;a.locks={active:0,prefetch:0}},destroy:function(){var a=this,b=a.operation;a.state='destroyed';if(b){b.abort()}a.callParent()},adjustLock:function(g,f){var b=this,c=b.locks,e=b.pageMap,a=null,d=b.locked;c[g]+=f;if(c.active){a='active'}else if(c.prefetch){a='prefetch'}if(a!==d){b.locked=a;if(e){e.onPageLockChange(b,a,d)}}},clearRecords:function(d,e){var f=this,g=f.begin,b=f.records,a,c;if(b){c=b.length;if(e){for(a=0;a<c;++a){delete d[b[a][e]]}}else {for(a=0;a<c;++a){delete d[g+a]}}}},fillRecords:function(h,i,j){var d=this,b=d.records,f=d.begin,g=d.pageMap.store,a,e,c;if(b){e=b.length;if(i){for(a=0;a<e;++a){c=b[a];c.join(g);h[c[i]]=j?f+a:c}}else {for(a=0;a<e;++a){b[a].join(g);h[f+a]=b[a]}}}},isInitial:function(){return this.state===null},isLoaded:function(){return this.state==='loaded'},isLoading:function(){return this.state==='loading'},load:function(){var a=this,b;a.state='loading';b=a.pageMap.store.loadVirtualPage(a,a.onLoad,a);if(a.state==='loading'){a.operation=b}},privates:{onLoad:function(b){var a=this;a.operation=null;if(!a.destroyed){if(!(a.error=b.getError())){a.records=b.getRecords();a.state='loaded'}else {a.state='error'}a.pageMap.onPageLoad(a)}}}});Ext.define('Ext.data.virtual.PageMap',{isVirtualPageMap:!0,config:{cacheSize:10,concurrentLoading:1,pageCount:null},generation:0,store:null,constructor:function(b){var a=this;a.prefetchSortFn=a.prefetchSortFn.bind(a);a.initConfig(b);a.clear()},destroy:function(){this.clear(!0);this.callParent()},canSatisfy:function(b){var c=this.getPageIndex(b.end),a=this.getPageCount();return a===null||c<a},clear:function(e){var a=this,b=!e||null,c=a.pages,d;++a.generation;a.byId=b&&{};a.byInternalId=b&&{};a.cache=b&&[];a.indexMap=b&&{};a.pages=b&&{};a.loading=b&&[];a.loadQueues=b&&{active:[],prefetch:[]};if(c){for(d in c){a.destroyPage(c[d])}}},getPage:function(a,f){var c=this,d=c.getPageCount(),e=c.pages,b;if(d===null||a<d){b=e[a];if(!b&&f!==!1){e[a]=b=new Ext.data.virtual.Page({pageMap:c,number:a})}}return b||null},getPageIndex:function(a){if(a.isEntity){a=this.indexOf(a)}return Math.floor(a/this.store.getPageSize())},getPageOf:function(c,a){var b=this.store.getPageSize(),d=Math.floor(c/b);return this.getPage(d,a)},getPages:function(d,g){var b=this.store.getPageSize(),e=Math.floor(d/b),f=Math.ceil(g/b),c={},a;for(a=e;a<f;++a){c[a]=this.getPage(a)}return c},flushNextLoad:function(){var b=this,a=b.queueTimer;if(a){Ext.unasap(a)}b.loadNext()},indexOf:function(b){var a;if(b){a=this.indexMap[b.internalId]}return (a||a===0)?a:-1},getByInternalId:function(c){var a=this.indexMap[c],b;if(a||a===0){b=this.pages[Math.floor(a/this.store.getPageSize())];if(b){return b.records[a-b.begin]}}},updatePageCount:function(d,b){var e=this.pages,c,a;if(b===null||d<b){for(c in e){a=e[c];if(a.number>=d){this.clearPage(a);this.destroyPage(a)}}}},privates:{queueTimer:null,clearPage:function(a,e){var b=this,d=Ext.Array,c=b.loadQueues;delete b.pages[a.number];a.clearRecords(b.byId,'id');a.clearRecords(b.byInternalId,'internalId');a.clearRecords(b.indexMap,'internalId');d.remove(c.active,a);d.remove(c.prefetch,a);if(!e){Ext.Array.remove(b.cache,a)}},destroyPage:function(a){this.store.onPageDestroy(a);a.destroy()},loadNext:function(){var a=this,e=a.getConcurrentLoading(),d=a.loading,c=a.loadQueues,b;a.queueTimer=null;while(d.length<e){if(!(b=c.active.shift()||c.prefetch.shift())){break}d.push(b);b.load()}},onPageLoad:function(a){var b=this,e=b.store,d=e.activeRanges,f=d.length,c;Ext.Array.remove(b.loading,a);if(!a.error){a.fillRecords(b.byId,'id');a.fillRecords(b.byInternalId,'internalId');a.fillRecords(b.indexMap,'internalId',!0);e.onPageDataAcquired(a);for(c=0;c<f;++c){d[c].onPageLoad(a)}}b.flushNextLoad()},onPageLockChange:function(b,e,d){var a=this,c=a.cache,g=a.loadQueues,i=a.store,h,f;if(b.isInitial()){if(d){Ext.Array.remove(g[d],b)}if(e){g[e].push(b);f=a.getConcurrentLoading();if(!a.queueTimer&&a.loading.length<f){a.queueTimer=Ext.asap(a.loadNext,a)}}}if(e){if(!d){Ext.Array.remove(c,b)}}else {c.push(b);for(h=a.getCacheSize();c.length>h;){b=c.shift();a.clearPage(b,!0);i.onPageEvicted(b);a.destroyPage(b)}}},prefetchSortFn:function(a,b){a=a.number;b=b.number;var d=Math,c=this.sortFirstPage,g=this.sortLastPage,f=this.sortDirection,h=a<c,i=b<c,e;a=h?d.abs(c-a):d.abs(g-a);b=i?d.abs(c-b):d.abs(g-b);if(a===b){e=h?f:-f}else {e=a-b}return e},prioritizePrefetch:function(b,c,d){var a=this;a.sortDirection=b;a.sortFirstPage=c;a.sortLastPage=d;a.loadQueues.prefetch.sort(a.prefetchSortFn)}}});Ext.define('Ext.data.virtual.Range',{extend:Ext.data.Range,isVirtualRange:!0,callback:null,prefetch:!1,scope:null,direction:1,constructor:function(a){this.adjustingPages=[];this.callParent([a])},reset:function(){var a=this;a.records={};a.activePages=a.prefetchPages=null},privates:{adjustPageLocks:function(f,e){var b=this,a=b.adjustingPages,d=a.length,c;if(d>1){a.sort(b.direction<0?b.pageSortBackFn:b.pageSortFwdFn)}for(c=0;c<d;++c){a[c].adjustLock(f,e)}a.length=0},doGoto:function(){var a=this,c=a.begin,g=a.end,v=a.prefetch,s=a.records,u=a.store,j=u.pageMap,m=u.totalCount,l=a.lastBegin,t=a.lastEnd,f=a.activePages,e=a.prefetchPages,n=a.trailingBufferZone,o=a.leadingBufferZone,h=a.adjustingPages,p,k,b,i,q,r,d;if(m===0){return}h.length=0;if((c>l&&g<t)||(c<l&&g>t)){i=a.direction}else {i=(c<l)?-1:((c>l)?1:a.direction)}if(i<0){b=n;n=o;o=b}a.direction=i;a.activePages=p=j.getPages(c,g);if(v){a.prefetchBegin=q=Math.max(0,c-n);if(m===null){m=Number.MAX_VALUE}a.prefetchEnd=r=Math.min(m,g+o);a.prefetchPages=d=j.getPages(q,r)}for(b in p){k=p[b];if(d){delete d[b]}if(f&&b in f){delete f[b]}else {k.adjustLock('active',1);k.fillRecords(s)}}if(d){for(b in d){if(e&&b in e){delete e[b]}else {d[b].adjustLock('prefetch',1)}}}if(e){for(b in e){h.push(e[b])}if(h.length){a.adjustPageLocks('prefetch',-1)}}if(f){for(b in f){h.push(k=f[b]);k.clearRecords(s)}if(h.length){a.adjustPageLocks('active',-1)}}if(d){j.prioritizePrefetch(i,j.getPageIndex(c),j.getPageIndex(g-1))}a.lastBegin=c;a.lastEnd=g},onPageDestroy:function(d){var c=d.number,b=this.activePages,a=this.prefetchPages;if(b){delete b[c]}if(a){delete a[c]}},onPageLoad:function(b){var a=this,c=a.callback,d,e;if(a.activePages[b.number]){b.fillRecords(a.records);if(c){d=Math.max(a.begin,b.begin);e=Math.min(a.end,b.end);Ext.callback(c,a.scope,[a,d,e])}}},pageSortBackFn:function(a,b){return b.number-a.number},pageSortFwdFn:function(a,b){return a.number-b.number},refresh:function(){this.records=this.records||{}},reload:function(){var a=this,b=a.begin,c=a.end;a.begin=a.end=0;a.direction=1;a.prefetchPages=a.activePages=null;a.goto(b,c)}}});Ext.define('Ext.data.virtual.Store',{extend:Ext.data.ProxyStore,alias:'store.virtual',isVirtualStore:!0,config:{data:null,totalCount:null,leadingBufferZone:200,trailingBufferZone:50},remoteSort:!0,remoteFilter:!0,sortOnLoad:!1,trackRemoved:!1,constructor:function(b){var a=this;a.sortByPage=a.sortByPage.bind(a);a.activeRanges=[];a.pageMap=new Ext.data.virtual.PageMap({store:a});a.callParent([b])},doDestroy:function(){this.pageMap.destroy();this.callParent()},applyGrouper:function(a){this.group(a);return this.grouper},contains:function(a){return this.indexOf(a)>-1},createActiveRange:function(a){var b=Ext.apply({leadingBufferZone:this.getLeadingBufferZone(),trailingBufferZone:this.getTrailingBufferZone(),store:this},a);return new Ext.data.virtual.Range(b)},getAt:function(b){var a=this.pageMap.getPageOf(b,!1),c;if(a&&a.records){c=a.records[b-a.begin]}return c||null},getById:function(a){return this.pageMap.byId[a]||null},getCount:function(){return this.totalCount||0},getGrouper:function(){return this.grouper},getGroups:function(){var b=this,a=b.groupCollection;if(!a){b.groupCollection=a=new Ext.util.Collection()}return a},getSummaryRecord:function(){return this.summaryRecord||null},isGrouped:function(){return !!this.grouper},group:function(a,c){var b=this;a=a||null;if(a){if(typeof a==='string'){a={property:a,direction:c||'ASC'}}if(!a.isGrouper){a=new Ext.util.Grouper(a)}a.setRoot('data');b.getGroups().getSorters().splice(0,1,{property:'id',direction:a.getDirection()})}b.grouper=a;if(!b.isConfiguring){b.reload();b.fireGroupChange(a)}},getByInternalId:function(a){return this.pageMap.getByInternalId(a)},indexOf:function(a){return this.pageMap.indexOf(a)},indexOfId:function(b){var a=this.getById(b);return a?this.indexOf(a):-1},isLoaded:function(){return Ext.isNumber(this.totalCount)},load:function(b){if(typeof b==='function'){b={callback:b}}var a=this,e=(b&&b.page)||1,d=a.getPageSize(),c=a.createOperation('read',Ext.apply({start:(e-1)*d,limit:d,page:e,filters:a.getFilters().items,sorters:a.getSorters().items,grouper:a.getGrouper()},b));if(a.fireEvent('beforeload',a,c)!==!1){a.onBeforeLoad(c);c.execute()}else {c.setCompleted()}return c},reload:function(a){var b=this;if(typeof a==='function'){a={callback:a}}if(b.fireEvent('beforereload')===!1){return null}a=Ext.apply({internalScope:b,internalCallback:b.handleReload,page:1},a);b.pageMap.clear();b.getGroups().clear();return b.load(a)},removeAll:function(){var a=this,c=a.activeRanges,b;a.pageMap.clear();for(b=c.length;b-->0;){c[b].reset()}a.fireEvent('clear',a)},applyProxy:function(a){a=this.callParent([a]);if(a&&a.setEnablePaging){a.setEnablePaging(!0)}return a},createFiltersCollection:function(){return new Ext.util.FilterCollection()},createSortersCollection:function(){return new Ext.util.SorterCollection()},onFilterEndUpdate:function(){var a=this,b=a.getFilters(!1);if(!a.isConfiguring){a.reload();a.fireEvent('filterchange',a,b.getRange())}},onSorterEndUpdate:function(){var a=this,b=a.getSorters().getRange(),c=!a.isConfiguring;if(c){a.fireEvent('beforesort',a,b)}if(c){a.reload();a.fireEvent('sort',a,b)}},updatePageSize:function(b){var a=this.totalCount;if(a!==null){this.pageMap.setPageCount(Math.ceil(a/b))}},updateTotalCount:function(b,c){var a=this,d=a.pageMap;a.totalCount=b;d.setPageCount(Math.ceil(b/a.getPageSize()));a.fireEvent('totalcountchange',a,b,c)},afterEdit:function(c,b){var a=this;a.fireEvent('update',a,c,Ext.data.Model.EDIT,b);a.fireEvent('datachanged',a)},privates:{attachSummaryData:function(f){var e=this,a=f.getSummaryData(),c,h,b,g,d;if(a){e.summaryRecord=a}a=f.getGroupData();if(a){c=e.getGrouper();if(c){e.groupSummaryData=g={};for(b=0,h=a.length;b<h;++b){d=a[b];g[c.getGroupString(d)]=d}}}},handleReload:function(b){var a=this,g=a.activeRanges,j=g.length,i=a.pageMap,d=b.getResultSet(),f=b.wasSuccessful(),h=[],c,e;if(f){a.readTotalCount(d);a.fireEvent('reload',a,b);for(c=0;c<j;++c){e=g[c];if(i.canSatisfy(e)){e.reload()}}}if(d){h=d.records}a.fireEvent('load',a,h,f,b)},loadVirtualPage:function(b,d,e){var a=this,c=a.pageMap.generation;return a.load({page:b.number+1,internalCallback:function(f){var g=f.getResultSet(),h=[];if(c===a.pageMap.generation){if(f.wasSuccessful()){a.readTotalCount(g);a.attachSummaryData(g)}d.call(e||b,f);a.groupSummaryData=null;if(g){h=g.records}a.fireEvent('load',a,h,f.wasSuccessful(),f)}}})},lockGroups:function(m,h){var l=this.getGroups(),j=h.groupInfo={},k=h.records,o=k.length,i=this.groupSummaryData,n=this.pageMap,p=h.number,b,e,a,f,c,d,g;for(e=0;e<o;++e){c=k[e];a=m.getGroupString(c);if(!j[a]){j[a]=c;b=l.get(a);if(!b){b=new Ext.data.virtual.Group(a);l.add(b)}d=b.firstRecords;g=d[0];if(g&&p<n.getPageIndex(g)){d.unshift(c)}else {d.push(c)}f=i&&i[a];if(f){b.summaryRecord=f}}}},onPageDataAcquired:function(b){var a=this.getGrouper();if(a){this.lockGroups(a,b)}},onPageDestroy:function(c){var b=this.activeRanges,d=b.length,a;for(a=0;a<d;++a){b[a].onPageDestroy(c)}},onPageEvicted:function(b){var a=this.getGrouper();if(a){this.releaseGroups(a,b)}},readTotalCount:function(b){var a=b.getRemoteTotal();if(!isNaN(a)){this.setTotalCount(a)}},releaseGroups:function(h,g){var f=this.getGroups(),e=g.groupInfo,b,a,d,c;for(d in e){b=e[d];c=f.get(d);a=c.firstRecords;if(a.length===1){f.remove(c)}else if(a[0]===b){a.shift();a.sort(this.sortByPage)}else {Ext.Array.remove(a,b)}}},sortByPage:function(b,c){var a=this.pageMap;return a.getPageIndex(b)-a.getPageIndex(c)}}});Ext.define('Ext.direct.Event',{alias:'direct.event',status:!0,constructor:function(a){Ext.apply(this,a)},getName:function(){return this.name},getData:function(){return this.data}});Ext.define('Ext.direct.RemotingEvent',{extend:Ext.direct.Event,alias:'direct.rpc',getTransaction:function(){var a=this;return a.transaction||Ext.direct.Manager.getTransaction(a.tid)}});Ext.define('Ext.direct.ExceptionEvent',{extend:Ext.direct.RemotingEvent,alias:'direct.exception',status:!1});Ext.define('Ext.direct.JsonProvider',{extend:Ext.direct.Provider,alias:'direct.jsonprovider',parseResponse:function(b){var a=b&&b.responseText;if(a!=null){if(Ext.isObject(a)||Ext.isArray(a)){return a}return Ext.decode(a)}return null},createEvents:function(e){var d=this,a=null,c=[],f,b,g;try{a=d.parseResponse(e)}catch(h){f=new Ext.direct.ExceptionEvent({parsingError:!0,data:h,xhr:e,code:Ext.direct.Manager.exceptions.PARSE,message:'Error parsing json response: \n\n '+h});return [f]}if(Ext.isArray(a)){for(b=0,g=a.length;b<g;++b){c.push(d.createEvent(a[b]))}}else if(Ext.isObject(a)){c.push(d.createEvent(a))}return c},createEvent:function(a){if(typeof a!=='object'||!('type' in a)){return new Ext.direct.ExceptionEvent({data:a,code:Ext.direct.Manager.exceptions.DATA,message:'Invalid data: event type is not specified'})}return Ext.create('direct.'+a.type,a)}});Ext.define('Ext.util.TaskRunner',{fireIdleEvent:null,interval:10,timerId:null,constructor:function(b){var a=this;if(typeof b==='number'){a.interval=b}else if(b){Ext.apply(a,b)}a.tasks=[];a.timerFn=a.onTick.bind(a)},newTask:function(b){var a=new Ext.util.TaskRunner.Task(b);a.manager=this;return a},start:function(a){var b=this,c=Ext.Date.now();if(!a.pending){b.tasks.push(a);a.pending=!0}a.stopped=!1;a.taskStartTime=c;a.taskRunTime=a.fireOnStart!==!1?0:a.taskStartTime;a.taskRunCount=0;if(!b.firing){if(a.fireOnStart!==!1){b.startTimer(0,c)}else {b.startTimer(a.interval,c)}}return a},stop:function(a,f){var e=this,d=e.tasks,c=0,b;if(!a.stopped){a.stopped=!0;a.pending=!1;if(a.onStop){a.onStop.call(a.scope||a,a)}}if(f){Ext.Array.remove(d,a)}for(b=0;!c&&b<d.length;b++){if(!d[b].stopped){c++}}if(!c){Ext.undefer(e.timerId);e.timerId=null}return a},stopAll:function(a){var b=this;Ext.each(this.tasks,function(c){b.stop(c,a)},null,!0)},firing:!1,nextExpires:1.0E99,onTick:function(){var b=this,i=b.tasks,f=b.fireIdleEvent,h=Ext.Date.now(),k=1.0E99,m=i.length,g,c,e,a,j,d,l;b.timerId=null;b.firing=!0;for(e=0;e<m||e<(m=i.length);++e){a=i[e];if(!(d=a.stopped)){g=a.taskRunTime+a.interval;if(g<=h){j=1;if(f===null&&a.fireIdleEvent!==!1){f=!0}a.taskRunCount++;if(a.args){l=a.addCountToArgs?a.args.concat([a.taskRunCount]):a.args}else {l=[a.taskRunCount]}try{j=a.run.apply(a.scope||a,l)}catch(n){try{if(a.onError){j=a.onError.call(a.scope||a,a,n)}}catch(o){}}a.taskRunTime=h;if(j===!1||a.taskRunCount===a.repeat){b.stop(a);d=!0}else {d=a.stopped;g=h+a.interval}}if(!d&&a.duration&&a.duration<=(h-a.taskStartTime)){b.stop(a);d=!0}}if(d){a.pending=!1;if(!c){c=i.slice(0,e)}}else {if(c){c.push(a)}if(k>g){k=g}}}if(c){b.tasks=c}b.firing=!1;if(b.tasks.length){b.startTimer(k-h,Ext.Date.now())}if(f===null){f=!1}Ext._suppressIdle=!f},startTimer:function(b,e){var a=this,d=e+b,c=a.timerId;if(c&&a.nextExpires-d>a.interval){c=Ext.undefer(c)}if(!c){if(b<a.interval){b=a.interval}a.timerId=Ext.defer(a.timerFn,b);a.nextExpires=d}}},function(){var b=this,a=b.prototype;a.destroy=a.stopAll;b.Task=new Ext.Class({isTask:!0,stopped:!0,fireOnStart:!1,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(a){this.manager.stop(this,a)},destroy:function(){this.stop(!0)}});a=b.Task.prototype;a.destroy=a.stop});Ext.define('Ext.direct.PollingProvider',{extend:Ext.direct.JsonProvider,alias:'direct.pollingprovider',type:'polling',interval:3000,constructor:function(b){var a=this;a.callParent([b]);a.pollTask=Ext.TaskManager.newTask({run:a.runPoll,interval:a.interval,scope:a})},destroy:function(){this.pollTask.stop(!0);this.callParent()},doConnect:function(){var a=this,c=a.url,b=a.pollFn;if(b&&Ext.isString(b)){a.pollFn=b=Ext.direct.Manager.parseMethod(b)}else if(Ext.isFunction(c)){a.pollFn=b=c;a.url=c=null}if(c||b){a.setInterval(a.interval);a.pollTask.start()}},doDisconnect:function(){if(this.pollTask){this.pollTask.stop()}},getInterval:function(){return this.pollTask&&this.pollTask.interval},setInterval:function(b){var a=this,c=a.pollTask;a.interval=c.interval=b;if(a.isConnected()){c.restart(b)}},runPoll:function(){var a=this,f=a.url,d=a.pollFn,b=a.baseParams,e,c;if(a.fireEvent('beforepoll',a)!==!1){if(d){e=d.directCfg.method.getArgs({params:b!==undefined?b:{},callback:a.onPollFn,scope:a});d.apply(window,e)}else {c={url:f,callback:a.onData,scope:a,params:b,headers:a.getHeaders()};if(a.timeout!=null){c.timeout=a.timeout}a.sendAjaxRequest(c)}a.fireEvent('poll',a)}},onData:function(h,f,d){var a=this,c,g,e,b;if(f){e=a.createEvents(d);for(c=0,g=e.length;c<g;++c){b=e[c];a.fireEvent('data',a,b);if(!b.status){a.fireEvent('exception',a,b)}}}else {b=new Ext.direct.ExceptionEvent({data:null,code:Ext.direct.Manager.exceptions.TRANSPORT,message:'Unable to connect to the server.',xhr:d});a.fireEvent('data',a,b);a.fireEvent('exception',a,b)}a.callParent([h,f,d])},onPollFn:function(b,d,a,c){this.onData(null,a,{responseText:b})},inheritableStatics:{checkConfig:function(a){return a&&a.type==='polling'&&(a.url||a.pollFn)}}});Ext.define('Ext.direct.RemotingMethod',{constructor:function(a){var b=this,e=a.params,h=a.len,g=a.metadata,d={},j,i,c,f;b.name=a.name;b.disableBatching=a.batched!=null?!a.batched:!1;if(a.formHandler){b.formHandler=a.formHandler}else if(Ext.isNumeric(h)){b.len=h;b.ordered=!0}else {b.named=!0;b.strict=a.strict!==undefined?a.strict:!0;b.params={};i=e&&e.length;for(c=0;c<i;c++){f=e[c];j=Ext.isObject(f)?f.name:f;b.params[j]=!0}}if(g){e=g.params;h=g.len;if(Ext.isNumeric(h)){d.ordered=!0;d.len=h}else if(Ext.isArray(e)){d.named=!0;d.params={};for(c=0,i=e.length;c<i;c++){f=e[c];d.params[f]=!0}d.strict=g.strict!==undefined?g.strict:!0}b.metadata=d}},getArgs:function(d){var e=this,b=d.params,c=d.paramOrder,h=d.metadata,f=d.options,a=[],i,g,j;if(e.ordered){if(e.len>0){if(c){i=d.paramsAsArray&&e.len===1&&(c.length>1||Ext.isArray(b));if(i){if(Ext.isArray(b)){for(g=0,j=b.length;g<j;g++){a.push(e.convertParams(b[g],c,c.length,!0))}}else {a=e.convertParams(b,c,c.length,!0)}if(!b.allowSingle||a.length>1){a=[a]}}else {a=e.convertParams(b,c,e.len,!1)}}else {a.push(b)}}}else {a.push(b)}a.push(d.callback,d.scope||window);if(f||h){f=Ext.apply({},f);if(h){f.metadata=h}a.push(f)}return a},convertParams:function(g,e,h,f){var a=[],c,b,d;for(b=0,d=h;b<d;b++){c=e[b];a.push(g[c])}if(f){return a.length===0?undefined:a.length===1?a[0]:a}else {return a}},getCallData:function(a){var b=this,f=null,g=b.len,k=b.params,l=b.strict,j,h,i,d,c,e;if(b.ordered){h=a[g];i=a[g+1];c=a[g+2];if(g!==0){f=a.slice(0,g)}}else if(b.formHandler){j=a[0];h=a[1];i=a[2];c=a[3]}else {f=Ext.apply({},a[0]);h=a[1];i=a[2];c=a[3];if(l){for(d in f){if(f.hasOwnProperty(d)&&!k[d]){delete f[d]}}}}if(b.metadata&&c&&c.metadata){if(b.metadata.ordered){e=c.metadata.slice(0,b.metadata.len)}else {e=Ext.apply({},c.metadata);if(b.metadata.strict){for(d in e){if(e.hasOwnProperty(d)&&!b.metadata.params[d]){delete e[d]}}}}delete c.metadata}return {form:j,data:f,metadata:e,callback:h,scope:i,options:c}}});Ext.define('Ext.direct.Transaction',{alias:'direct.transaction',statics:{TRANSACTION_ID:0},constructor:function(b){var a=this;Ext.apply(a,b);a.id=a.tid=++a.self.TRANSACTION_ID;a.retryCount=0},send:function(){var a=this;a.provider.queueTransaction(a)},retry:function(){var a=this;a.retryCount++;a.send()},getProvider:function(){return this.provider}});Ext.define('Ext.direct.RemotingProvider',{extend:Ext.direct.JsonProvider,alias:'direct.remotingprovider',type:'remoting',enableBuffer:10,bufferLimit:Number.MAX_VALUE,maxRetries:1,constructor:function(b){var a=this;a.callParent([b]);a.namespace=(Ext.isString(a.namespace)?Ext.ns(a.namespace):a.namespace)||Ext.global;a.callBuffer=[]},destroy:function(){if(this.callTask){this.callTask.cancel()}this.callParent()},connect:function(){var a=this;a.callParent()},doConnect:function(){if(!this.apiCreated){this.initAPI();this.apiCreated=!0}},getNamespace:function(a,f){var c,e,b,d;a=a||Ext.global;c=f.toString().split('.');for(b=0,d=c.length;b<d;b++){e=c[b];a=a[e];if(typeof a==='undefined'){return a}}return a},createNamespaces:function(a,f){var d,b,c,e;a=a||Ext.global;d=f.toString().split('.');for(c=0,e=d.length;c<e;c++){b=d[c];a[b]=a[b]||{};a=a[b]}return a},initAPI:function(){var c=this,f=c.actions,d=c.namespace,k=Ext.direct.Manager,a,b,h,e,j,i,g;for(a in f){if(f.hasOwnProperty(a)){if(c.disableNestedActions){b=d[a];if(!b){b=d[a]={}}}else {b=c.getNamespace(d,a);if(!b){b=c.createNamespaces(d,a)}}h=f[a];for(e=0,j=h.length;e<j;++e){i=new Ext.direct.RemotingMethod(h[e]);b[i.name]=g=c.createHandler(a,i);k.registerMethod(g.$name,g)}}}},createHandler:function(b,c){var d=this,a;a=function(){d.invokeFunction(b,c,Array.prototype.slice.call(arguments,0))};a.name=a.$name=b+'.'+c.name;a.$directFn=!0;a.directCfg=a.$directCfg={action:b,method:c};return a},invokeFunction:function(g,c,h){var b=this,a,f,e,d;a=b.configureTransaction(g,c,h);if(b.fireEvent('beforecall',b,a,c)!==!1){Ext.direct.Manager.addTransaction(a);if(a.isForm){f=a.form;e=String(f.getAttribute("enctype")).toLowerCase()==='multipart/form-data';d={extTID:a.id,extAction:g,extMethod:c.name,extType:'rpc',extUpload:String(e)};if(a.metadata){d.extMetadata=Ext.JSON.encode(a.metadata)}Ext.apply(a,{form:f,isUpload:e,params:d})}b.queueTransaction(a);b.fireEvent('call',b,a,c)}},configureTransaction:function(h,d,g,i){var a,b,f,c,e;a=d.getCallData(g);b=a.callback;f=a.scope;c=a.options;b=b&&f?b.bind(f):b;e=Ext.apply({},{provider:this,args:g,action:h,method:d.name,form:a.form,data:a.data,metadata:a.metadata,callbackOptions:c,callback:b,isForm:!!d.formHandler,disableBatching:d.disableBatching});if(c&&c.timeout!=null){e.timeout=c.timeout}return new Ext.direct.Transaction(e)},queueTransaction:function(b){var a=this,d=a.callBuffer,c=a.enableBuffer;if(b.isForm||c===!1||b.disableBatching||b.timeout!=null){a.sendTransaction(b);return}d.push(b);if(c&&d.length<a.bufferLimit){if(!a.callTask){a.callTask=new Ext.util.DelayedTask(a.combineAndSend,a)}a.callTask.delay(Ext.isNumber(c)?c:10)}else {a.combineAndSend()}},combineAndSend:function(){var b=this,a=b.callBuffer,c=a.length;if(c>0){b.sendTransaction(c===1?a[0]:a);b.callBuffer=[]}},sendTransaction:function(a){var b=this,c,d,g,f=b.enableUrlEncode,h,e,i;c={url:b.url,callback:b.onData,scope:b,transaction:a,headers:b.getHeaders()};if(a.timeout!=null){c.timeout=a.timeout}else if(b.timeout!=null){c.timeout=b.timeout}if(a.isForm){Ext.apply(c,{params:a.params,form:a.form,isUpload:a.isUpload})}else {if(Ext.isArray(a)){d=[];for(e=0,i=a.length;e<i;++e){h=b.getPayload(a[e]);d.push(h)}}else {d=b.getPayload(a)}if(f){g={};g[Ext.isString(f)?f:'data']=Ext.encode(d);c.params=g}else {c.jsonData=d}}return b.sendAjaxRequest(c)},getPayload:function(a){var b={action:a.action,method:a.method,data:a.data,type:'rpc',tid:a.id};if(a.metadata){b.metadata=a.metadata}return b},onData:function(j,f,i){var a=this,d,g,e,c,b,h;if(a.destroying||a.destroyed){return}e=f&&a.createEvents(i);f=e&&e.length&&!e[0].parsingError;if(f){for(d=0,g=e.length;d<g;++d){c=e[d];a.fireEvent('data',a,c);b=a.getTransaction(c);if(b){if(a.fireEvent('beforecallback',a,c,b)!==!1){a.runCallback(b,c,!0)}Ext.direct.Manager.removeTransaction(b)}}}else {h=[].concat(j.transaction);c=e[0]||new Ext.direct.ExceptionEvent({data:null,transaction:b,code:Ext.direct.Manager.exceptions.TRANSPORT,message:'Unable to connect to the server.',xhr:i});for(d=0,g=h.length;d<g;++d){b=a.getTransaction(h[d]);if(b&&b.retryCount<a.maxRetries){b.retry()}else {a.fireEvent('data',a,c);a.fireEvent('exception',a,c);if(b&&a.fireEvent('beforecallback',a,c,b)!==!1){a.runCallback(b,c,!1)}Ext.direct.Manager.removeTransaction(b)}}}a.callParent([j,f,i])},getTransaction:function(a){return a&&a.tid?Ext.direct.Manager.getTransaction(a.tid):null},runCallback:function(c,b){var e=!!b.status,g=e?'success':'failure',a,d,f;if(c&&c.callback){a=c.callback;d=c.callbackOptions;f=typeof b.result!=='undefined'?b.result:b.data;if(Ext.isFunction(a)){a(f,b,e,d)}else {Ext.callback(a[g],a.scope,[f,b,e,d]);Ext.callback(a.callback,a.scope,[f,b,e,d])}}},inheritableStatics:{checkConfig:function(a){return a&&a.type==='remoting'&&a.url&&Ext.isArray(a.actions)}}});Ext.define('Ext.dom.Fly',{extend:Ext.dom.Element,alternateClassName:'Ext.dom.Element.Fly',validNodeTypes:{1:1,9:1,11:1},isFly:!0,constructor:function(a){this.dom=a;this.el=this},attach:function(c){var a=this,b;if(!c){return a.detach()}a.dom=Ext.getDom(c);if(!Ext.cache[c.id]){b=a.peekData();if(b){b.isSynchronized=!1}}return a},detach:function(){return (this.dom=null)},addListener:null,removeListener:null},function(b){var c={},a;b.cache=c;Ext.fly=function(a,e){var d=null,h=Ext.fly,f,g;e=e||(h.caller&&(h.caller.$name||h.caller.name))||'_global';a=Ext.getDom(a);if(a){f=a.nodeType;if(b.prototype.validNodeTypes[f]||(!f&&(a.window==a))){d=Ext.cache[a.id];if(!d||d.dom!==a){if(e==='constructor'){e='$constructor'}d=c[e]||(c[e]=new b());d.dom=a;g=d.peekData();if(g){g.isSynchronized=!1}}}}return d};Ext.getDetachedBody=function(){if(!a){Ext.detachedBodyEl=a=new b(document.createElement('div'));a.isDetachedBody=!0}return a}});Ext.define('Ext.dom.CompositeElementLite',{alternateClassName:['Ext.CompositeElementLite'],isComposite:!0,isLite:!0,statics:{importElementMethods:function(){var b=Ext.dom.Element,a=this.prototype;Ext.Object.each(b.prototype,function(b,c){if(typeof c==='function'&&!a[b]){a[b]=function(){return this.invoke(b,arguments)}}})}},constructor:function(a,b){if(b){this.elements=a||[]}else {this.elements=[];this.add(a)}},getElement:function(b){var a=this._fly||(this._fly=new Ext.dom.Fly());return a.attach(b)},transformElement:function(a){return Ext.getDom(a)},getCount:function(){return this.elements.length},add:function(a,e){var d=this.elements,b,c;if(!a){return this}if(typeof a==="string"){a=Ext.fly(e||document).query(a)}else if(a.isComposite){a=a.elements}else if(!Ext.isIterable(a)){a=[a]}for(b=0,c=a.length;b<c;++b){d.push(this.transformElement(a[b]))}return this},invoke:function(g,f){var b=this,e=b.elements,h=e.length,d,c,a;if(a!==0){d=(b.isLite?Ext.dom.Fly:Ext.dom.Element).prototype;for(a=0;a<h;a++){c=e[a];if(c){d[g].apply(b.getElement(c),f)}}}return b},item:function(c){var b=this.elements[c],a=null;if(b){a=this.getElement(b)}return a},slice:function(a,b){return Ext.Array.slice(this.elements,a,b)},each:function(g,e){var c=this,d=c.elements,f=d.length,b,a;for(b=0;b<f;b++){a=d[b];if(a){a=this.getElement(a);if(g.call(e||a,a,c,b)===!1){break}}}return c},fill:function(b){var a=this;a.elements=[];a.add(b);return a},insert:function(a,b){Ext.Array.insert(this.elements,a,b)},filter:function(e){var b=this,f=b.elements,i=f.length,g=[],d=0,h=typeof e==='function',c,a;for(;d<i;d++){a=f[d];c=!1;if(a){a=b.getElement(a);if(h){c=e.call(a,a,b,d)!==!1}else {c=a.is(e)}if(c){g.push(b.transformElement(a))}}}b.elements=g;return b},indexOf:function(a){return Ext.Array.indexOf(this.elements,this.transformElement(a))},replaceElement:function(d,a,e){var c=!isNaN(d)?d:this.indexOf(d),b;if(c>-1){a=Ext.getDom(a);if(e){b=this.elements[c];b.parentNode.insertBefore(a,b);Ext.removeNode(b)}Ext.Array.splice(this.elements,c,1,a)}return this},clear:function(c){var d=this,b=d.elements,a=b.length-1;if(c){for(;a>=0;a--){Ext.removeNode(b[a])}}this.elements=[]},addElements:function(a,d){if(!a){return this}if(typeof a==="string"){a=Ext.dom.Element.selectorFunction(a,d)}var e=this.elements,c=a.length,b;for(b=0;b<c;b++){e.push(Ext.get(a[b]))}return this},first:function(){return this.item(0)},last:function(){return this.item(this.getCount()-1)},contains:function(a){return this.indexOf(a)!==-1},removeElement:function(b,h){var f=this,e=f.elements,a,c,d,g;b=[].concat(b);for(d=0,g=b.length;d<g;d++){a=b[d];if((c=(e[a]||e[a=f.indexOf(a)]))){if(h){if(c.dom){c.destroy()}else {Ext.removeNode(c)}}Ext.Array.erase(e,a,1)}}return f},destroy:function(){this.invoke('destroy',arguments);this.callParent()}},function(a){var b=a.prototype;a.importElementMethods();b.on=b.addListener});Ext.define('Ext.dom.CompositeElement',{alternateClassName:'Ext.CompositeElement',extend:Ext.dom.CompositeElementLite,isLite:!1,getElement:function(a){return a},transformElement:function(a){return Ext.get(a)}});Ext.define('Ext.dom.GarbageCollector',{singleton:!0,interval:30000,constructor:function(){var a=this;a.lastTime=Ext.now();a.onTick=a.onTick.bind(a);a.resume()},collect:function(){var g=this,b=Ext.cache,a,f,c,e,d,h;for(a in b){if(!b.hasOwnProperty(a)){continue}c=b[a];if(c.skipGarbageCollection){continue}f=c.dom;try{d=Ext.isGarbage(f)}catch(i){delete b[a];continue}if(d){d=!1;if(c&&c.dom){c.collect()}}}if(Ext.isIE9m){e={};for(a in b){if(b.hasOwnProperty(a)){e[a]=b[a]}}Ext.cache=Ext.dom.Element.cache=e}g.lastTime=Ext.now()},onTick:function(){this.timerId=null;if(Ext.enableGarbageCollector){this.collect()}this.resume()},pause:function(){var a=this.timerId;if(a){this.timerId=null;Ext.undefer(a)}},resume:function(){var a=this,b=a.lastTime;if(Ext.enableGarbageCollector&&(Ext.now()-b)>a.interval){a.collect()}if(!a.timerId){a.timerId=Ext.defer(a.onTick,a.interval)}}});Ext.define('Ext.dom.TouchAction',{singleton:!0,lastTouchStartTime:0,minMoveDistance:8,spaceRe:/\s+/,preventSingle:null,preventMulti:null,disabledOverflowDom:null,panXCls:Ext.baseCSSPrefix+'touch-action-pan-x',panYCls:Ext.baseCSSPrefix+'touch-action-pan-y',cssValues:['none','pan-x','pan-y','pan-x pan-y','pinch-zoom','pan-x pinch-zoom','pan-y pinch-zoom','pan-x pan-y pinch-zoom','double-tap-zoom','pan-x double-tap-zoom','pan-y double-tap-zoom','pan-x pan-y double-tap-zoom','pinch-zoom double-tap-zoom','pan-x pinch-zoom double-tap-zoom','pan-y pinch-zoom double-tap-zoom',''],objectValues:[{panX:!1,panY:!1,pinchZoom:!1,doubleTapZoom:!1},{panX:!0,panY:!1,pinchZoom:!1,doubleTapZoom:!1},{panX:!1,panY:!0,pinchZoom:!1,doubleTapZoom:!1},{panX:!0,panY:!0,pinchZoom:!1,doubleTapZoom:!1},{panX:!1,panY:!1,pinchZoom:!0,doubleTapZoom:!1},{panX:!0,panY:!1,pinchZoom:!0,doubleTapZoom:!1},{panX:!1,panY:!0,pinchZoom:!0,doubleTapZoom:!1},{panX:!0,panY:!0,pinchZoom:!0,doubleTapZoom:!1},{panX:!1,panY:!1,pinchZoom:!1,doubleTapZoom:!0},{panX:!0,panY:!1,pinchZoom:!1,doubleTapZoom:!0},{panX:!1,panY:!0,pinchZoom:!1,doubleTapZoom:!0},{panX:!0,panY:!0,pinchZoom:!1,doubleTapZoom:!0},{panX:!1,panY:!1,pinchZoom:!0,doubleTapZoom:!0},{panX:!0,panY:!1,pinchZoom:!0,doubleTapZoom:!0},{panX:!1,panY:!0,pinchZoom:!0,doubleTapZoom:!0},{panX:!0,panY:!0,pinchZoom:!0,doubleTapZoom:!0}],attributeName:'data-extTouchAction',constructor:function(){var a=this,b=Ext.supports;if(b.TouchAction){a.cssProp='touch-action'}else if(b.MSPointerEvents){a.cssProp='-ms-touch-action'}if(b.TouchEvents){Ext.getWin().on({touchstart:'onTouchStart',touchmove:'onTouchMove',touchend:'onTouchEnd',scope:a,delegated:!1,translate:!1,capture:!0,priority:5000});Ext.on({scroll:'onScroll',scope:a,destroyable:!0})}},containsTargets:function(g,f){var b=!0,d=f.browserEvent,c=f.type==='touchend'?d.changedTouches:d.touches,a,e;for(a=0,e=c.length;a<e;a++){if(!g.contains(c[a].target)){b=!1;break}}return b},disableOverflow:function(a,d){var b=this,f=d?'overflow-y':'overflow-x',c,e;if(!b.disabledOverflowDom&&!Ext.isiOS&&!Ext.scrollbar.width()){b.disabledOverflowDom=a;e=d?b.panXCls:b.panYCls;while(a){c=Ext.fly(a).getStyle(f);if(c==='auto'||c==='scroll'){Ext.fly(a).addCls(e)}a=a.parentNode}}},get:function(c){var a=c.getAttribute(this.attributeName),b=null;if(a!=null){b=this.objectValues[a]}return b},getFlags:function(b){var a;if(typeof b==='number'){a=b}else {a=0;if(b.panX!==!1){a|=1}if(b.panY!==!1){a|=2}if(b.pinchZoom!==!1){a|=4}if(b.doubleTapZoom!==!1){a|=8}}return a},isScrollable:function(a,d,e){var c=Ext.fly(a).getStyle(d?'overflow-y':'overflow-x'),b=(c==='auto'||c==='scroll');if(b){if(d){b=e?(a.scrollTop+a.clientHeight)<a.scrollHeight:a.scrollTop>0}else {b=e?(a.scrollLeft+a.clientWidth)<a.scrollWidth:a.scrollLeft>0}}return b},lookupFlags:function(a){return parseInt((a.getAttribute&&a.getAttribute(this.attributeName))||15,10)},onScroll:function(){this.scrollOccurred=!0;this.isDoubleTap=!1},onTouchEnd:function(d){var a=this,b=d.target,f,c,e;f=d.browserEvent.touches.length;if(f===0){if(a.isDoubleTap){while(b){c=a.lookupFlags(b);if(c!=null){e=c&8;if(!e){d.preventDefault()}}b=b.parentNode}}a.isDoubleTap=!1;a.preventSingle=null;a.preventMulti=null;a.resetOverflow()}},onTouchMove:function(g){var b=this,a=null,d=g.target,f,c,i,j,h,m,e,q,p,n,o,k,l;k=b.preventSingle;l=b.preventMulti;c=g.browserEvent.touches.length;if((c===1&&(k===!1))||(l===!1)){return}if((c>1&&(l===!0))||(c===1&&(k===!0))){a=!0}else {if(c===1){h=g.getPoint();m=b.startPoint;q=Ext.Element.getViewportScale();p=h.getDistanceTo(b.startPoint)*q;n=h.x-m.x;o=h.y-m.y;e=Math.abs(o)>=Math.abs(n)}while(d&&(d.nodeType===1)){f=b.lookupFlags(d);if(f&0){a=!0}else if(c===1){i=!!(f&1);j=!!(f&2);if(i&&j){a=!1}else if(!i&&!j){a=!0}else if(p>=b.minMoveDistance){a=!!((i&&e)||(j&&!e))}if(!a&&b.isScrollable(d,e,(e?o:n)<0)){break}}else if(b.containsTargets(d,g)){a=!(f&4)}else {a=!1}if(a){break}d=d.parentNode}}if(c===1){b.preventSingle=a}else if(c>1){b.preventMulti=a}if(a){g.preventDefault()}},onTouchStart:function(d){var a=this,f,c,b,e,g;if(d.browserEvent.touches.length===1){f=d.time;if(!a.scrollOccurred&&((f-a.lastTouchStartTime)<=500)){a.isDoubleTap=!0}a.lastTouchStartTime=f;a.scrollOccurred=!1;a.startPoint=d.getPoint();b=d.target;while(b){c=a.lookupFlags(b);if(c!=null){e=!!(c&1);g=!!(c&2);if(e!==g){a.disableOverflow(b,e);break}}b=b.parentNode}}else {a.isDoubleTap=!1}},resetOverflow:function(){var b=this,a=b.disabledOverflowDom;while(a){Ext.fly(a).removeCls([b.panXCls,b.panYCls]);a=a.parentNode}b.disabledOverflowDom=null},set:function(c,g){var a=this,e=a.cssProp,b=a.getFlags(g),f=(b&Ext.supports.TouchAction),d=a.attributeName;if(e){Ext.fly(c).setStyle(e,a.cssValues[f])}if(b===15){c.removeAttribute(d)}else {c.setAttribute(d,b)}}});Ext.define('Ext.drag.Constraint',{alias:'drag.constraint.base',mixins:[Ext.mixin.Factoryable],factoryConfig:{defaultType:'base',type:'drag.constraint'},config:{element:null,horizontal:null,region:null,snap:null,source:null,vertical:null,x:null,y:null},constructor:function(a){this.initConfig(a)},applyElement:function(a){if(a&&typeof a!=='boolean'){a=Ext.get(a)}return a||null},applySnap:function(a){if(typeof a==='number'){a={x:a,y:a}}return a},constrain:function(l,k){var g=this,b=l[0],c=l[1],f=g.constrainInfo,h=f.initial,i=f.x,j=f.y,a=f.snap,e,d;if(!f.vertical){if(a&&a.x){if(a.xFn){b=a.x.call(g,k,b)}else {b=g.doSnap(b,h.x,a.x)}}if(i){e=i[0];d=i[1];if(e!==null&&b<e){b=e}if(d!==null&&b>d){b=d}}}else {b=h.x}if(!f.horizontal){if(a&&a.y){if(a.yFn){c=a.y.call(g,k,c)}else {c=g.doSnap(c,h.y,a.y)}}if(j){e=j[0];d=j[1];if(e!==null&&c<e){c=e}if(d!==null&&c>d){c=d}}}else {c=h.y}return [b,c]},destroy:function(){this.setSource(null);this.setElement(null);this.callParent()},privates:{constrainValue:function(b,c,f){var a=null,d=b===null,e=c===null;if(!(d&&e)){if(d){a=c}else if(e){a=b}else {a=f(b,c)}}return a},doSnap:function(d,e,c){if(!c){return d}var a=(d-e)/c,b=Math.floor(a);if(a-b<=0.5){a=b}else {a=b+1}return e+(c*a)},onDragStart:function(r){var a=this,d=a.getSnap(),l=!!a.getVertical(),k=!!a.getHorizontal(),c=a.getElement(),b=a.getRegion(),m=r.proxy,u=m.element,e=a.getX(),f=a.getY(),i=null,g=null,j=null,h=null,p=null,n=null,q=null,o=null,t,s;if(c){if(typeof c==='boolean'){c=a.getSource().getElement().parent()}if(r.local){t=c.getStyle('position');if(t==='relative'||t==='absolute'){s=c.getSize();b=new Ext.util.Region(0,s.width,s.height,0)}else {b=c.getRegion(!0,!0)}}else {b=c.getRegion(!0)}}if(b){if(!l){p=b.left;n=b.right-(u?m.width:0)}if(!k){q=b.top;o=b.bottom-(u?m.height:0)}}if(!l&&(b||e)){if(e){i=e[0];g=e[1]}if(i!==null||g!==null||p!==null||n!==null){i=a.constrainValue(i,p,Math.max);g=a.constrainValue(g,n,Math.min);e=[i,g]}}if(!k&&(b||f)){if(f){j=f[0];h=f[1]}if(j!==null||h!==null||q!==null||o!==null){j=a.constrainValue(j,q,Math.max);h=a.constrainValue(h,o,Math.min);f=[j,h]}}if(d){d={x:d.x,xFn:typeof d.x==='function',y:d.y,yFn:typeof d.y==='function'}}a.constrainInfo={initial:r.element.initial,vertical:l,horizontal:k,x:e,y:f,snap:d}}}});Ext.define('Ext.drag.Info',{constructor:function(c,k){if(!c){return}var a=this,l=c.getLocal(),d,e,b,f,j,g,h,i;a.source=c;a.local=l;j=a.getEventXY(k);h=k.getXY();d=c.getElement();i=d.getXY();j=l?d.getLocalXY():i;f=j[0];g=j[1];a.initialEvent=k;a.eventTarget=k.target;a.cursor={current:{x:f,y:g},delta:{x:0,y:0},initial:{x:h[0],y:h[1]},offset:{x:h[0]-i[0],y:h[1]-i[1]}};a.element={current:{x:f,y:g},delta:{x:0,y:0},initial:{x:f,y:g}};a.proxy={instance:c.getProxy(),current:{x:f,y:g},delta:{x:0,y:0},initial:{x:f,y:g},element:d,isUnderCursor:!1,isElement:!0};a.types=[];a.data={};c.describe(a);b=a.proxy;e=b.instance.setupElement(a);b.isElement=e===c.getElement();b.element=e;if(e){b.width=e.getWidth();b.height=e.getHeight()}if(b.isElement){d=a.element;d.current=b.current;d.delta=b.delta}a.needsCursorCheck=b.element&&c.manager&&c.manager.pointerBug},cursor:null,element:null,eventTarget:null,files:null,isNative:!1,proxy:null,source:null,target:null,types:null,valid:!1,clearData:function(a){Ext.Array.remove(this.types,a);delete this.data[a]},clone:function(){var b=this,a=new Ext.drag.Info();a.cursor=Ext.merge({},b.cursor);a.data=Ext.apply({},b.data);a.element=Ext.merge({},b.element);a.eventTarget=b.eventTarget;a.proxy=Ext.merge({},b.proxy);a.source=b.source;a.target=b.target;a.types=Ext.Array.clone(b.types);a.valid=b.valid;return a},getData:function(c){var b=this,d=b.data,e=b.dataTransfer,a;if(e){a=e.getData(c)}else {a=d[c];if(typeof a==='function'){d[c]=a=a.call(b.source,b)}if(!a&&a!==0){a=''}}return Ext.Promise.resolve(a)},setData:function(a,b){Ext.Array.include(this.types,a);this.data[a]=b},destroy:function(){var a=this;a.eventTarget=a.data=a.proxy=a.targetMap=a.targetMap=a.types=a.elementMap=a.possibleTargets=a.target=null;a.callParent()},privates:{data:null,dataTransfer:null,elementMap:null,possibleTargets:null,targetMap:null,copyNativeData:function(b,c){var a=c.browserEvent.dataTransfer;this.target=b;this.dataTransfer=a;this.files=a.files},finalize:function(){var b=this,a=b.target;b.finalized=!0;if(a){a.info=null;a.handleDrop(b)}},getAlignXY:function(h,i){var b=this,e=b.source,c=b.cursor.offset,g=e.getProxy(),f=b.proxy.element,d=e.getConstrain(),a=[h,i];if(f){if(b.proxy.isElement){a[0]-=c.x;a[1]-=c.y}else {a=g.adjustCursorOffset(b,a)}if(d){a=d.constrain(a,b)}}return a},getEventXY:function(c){var a=c.getXY(),b=this.source;if(this.local){a=b.convertToLocalXY(a)}return a},onNativeDragEnter:function(b,c){var a=this;a.valid=b.accepts(a);b.info=a;a.copyNativeData(b,c)},onNativeDragLeave:function(b,c){var a=this;if(a.target===b){b.info=null;a.valid=!1;a.target=a.dataTransfer=a.files=null}},onNativeDragMove:function(a,b){this.copyNativeData(a,b)},onNativeDrop:function(a,b){this.copyNativeData(a,b);a.info=null},setActive:function(b){var a=this,e=a.source,c=a.target,d=c!==b;if(c&&d){c.handleDragLeave(a);c.info=null}a.target=b;if(b){if(d){a.valid=!!a.possibleTargets[b.getId()]&&b.accepts(a)!==!1;b.handleDragEnter(a);b.info=a}b.handleDragMove(a)}else {a.valid=!1}if(d){e.getProxy().update(a)}},update:function(o,n){var b=this,m=b.getEventXY(o),f=m[0],g=m[1],j=b.getAlignXY(f,g),h=j[0],i=j[1],a=b.proxy,k=b.cursor,c=k.current,e=k.delta,d=k.initial,l=a.instance;c.x=f;c.y=g;e.x=f-d.x;e.y=g-d.y;c=a.current;e=a.delta;d=a.initial;c.x=h;c.y=i;e.x=h-d.x;e.y=i-d.y;if(b.needsCursorCheck){a.isUnderCursor=!(f<h||g<i||f>a.width+h||g>a.height+i)}if(!n&&l){l.setXY(b,j)}}}});Ext.define('Ext.drag.Item',{mixins:[Ext.mixin.Observable,Ext.mixin.Identifiable],config:{autoDestroy:!0,component:null,element:null,groups:null},constructor:function(a){this.mixins.observable.constructor.call(this,a)},isDisabled:function(){return this.disabled},disable:function(){this.disabled=!0},enable:function(){this.disabled=!1},updateComponent:function(b,c){var a;if(b){a=b.el}else if(c&&c.el===this.getElement()){a=null}else {return}this.setElement(a)},applyElement:function(a){return a?Ext.get(a):null},updateElement:function(){this.setupListeners()},applyGroups:function(a){if(typeof a==='string'){a=[a]}return a},destroy:function(){var a=this,b=a.getElement();a.destroying=!0;a.setElement(null);if(b&&a.getAutoDestroy()){b.destroy()}a.callParent()},privates:{disabled:!1,convertToLocalXY:function(a){var b=this.getComponent();if(b){a=b.convertToLocalXY(a)}else {a=this.getElement().translateXY(a[0],a[1]);a=[a.x,a.y]}return a},getElListeners:Ext.privateFn,setupListeners:function(b){var a=this,c=a.elListeners;b=b||a.getElement();if(c){c.destroy();a.elListeners=null}if(b){a.elListeners=b.on(Ext.apply({scope:a,destroyable:!0},a.getElListeners()))}}}});Ext.define('Ext.drag.Manager',{singleton:!0,dragCls:Ext.baseCSSPrefix+'drag-body',pointerBug:Ext.isTouch||(!Ext.supports.CSSPointerEvents||Ext.isIE10m||Ext.isOpera),constructor:function(){this.targets={};this.nativeTargets=[];Ext.onReady(this.init,this)},init:function(){Ext.getDoc().on({scope:this,dragenter:{capture:!0,fn:'onNativeDragEnter'},dragleave:'onNativeDragLeave',dragover:'onNativeDragOver',drop:'onNativeDrop'})},destroy:function(){var a=this,b=a.targets,c;a.destroying=!0;for(c in b){b[c].destroy()}a.targets=null;a.callParent()},privates:{elementFromPoint:function(a,b){if(Ext.rootInheritedState.rtl){a=Ext.Element.getViewportWidth()-a}return Ext.dom.Element.fromPagePoint(a,b,!0)},getAtPoint:function(c){var e=c.cursor.current,g=c.elementMap,f=c.proxy.isUnderCursor,b=this.pointerBug&&f?c.proxy.element.dom:null,d,a;if(b){b.style.visibility='hidden'}a=this.elementFromPoint(e.x,e.y);if(b){b.style.visibility='visible'}while(a){d=g[a.id];if(d){return d}a=a.parentNode}return null},getNativeDragInfo:function(b){var a=this.nativeDragInfo;if(!a){this.nativeDragInfo=a=new Ext.drag.Info();a.isNative=!0}return a},onDragCancel:function(){Ext.getBody().removeCls(this.dragCls)},onDragEnd:function(a,b){a.finalize();Ext.getBody().removeCls(this.dragCls)},onDragMove:function(a,b){this.processDrag(a)},onDragStart:function(c,p){var j=this,o=c.source,l=j.targets,m=o.getGroups(),k={},h={},i={},f,a,b,d,e,n,g;i={};h={};if(m){d=Ext.Array.toMap(m)}for(f in l){a=l[f];if(!a.isDisabled()){e=!1;b=a.getGroups();if(!d&&!b){e=!0}else if(d&&b){for(g=0,n=b.length;g<n;++g){if(d[b[g]]){e=!0;break}}}if(e){h[f]=a}}k[f]=a;i[a.getElement().id]=a}c.possibleTargets=h;c.targetMap=k;c.elementMap=i;Ext.getBody().addCls(j.dragCls);j.processDrag(c)},onNativeDragEnter:function(c){var a=this.nativeTargets,b=c.target;c.preventDefault();if(a[a.length-1]!==b){a.push(b)}},onNativeDragLeave:function(b){var a=this.nativeTargets;Ext.Array.remove(a,b.target);if(a.length===0){this.nativeDragInfo=null}},onNativeDragOver:function(a){a.preventDefault()},onNativeDrop:function(a){a.preventDefault();this.nativeTargets.length=0;this.nativeDragInfo=null},processDrag:function(a){a.setActive(this.getAtPoint(a))},register:function(a){this.targets[a.getId()]=a},unregister:function(b){var a;if(this.destroying){return}a=b.getId();this.targets[a]=null;delete this.targets[a]}}});Ext.define('Ext.drag.Source',{extend:Ext.drag.Item,defaultIdPrefix:'source-',config:{activateOnLongPress:!1,activeCls:null,constrain:null,handle:null,local:null,proxy:'original',revert:!1},dragging:!1,constructor:function(a){var b=a&&a.describe;if(b){this.describe=b;a=Ext.apply({},a);delete a.describe}this.callParent([a]);this.manager=Ext.drag['Manager']},describe:Ext.emptyFn,isDragging:function(){return this.dragging},beforeDragStart:Ext.emptyFn,onDragCancel:Ext.emptyFn,onDragEnd:Ext.emptyFn,onDragMove:Ext.emptyFn,onDragStart:Ext.emptyFn,applyActivateOnLongPress:function(a){if(typeof a==='string'){a=[a]}return a},updateActivateOnLongPress:function(a){if(!this.isConfiguring){this.setupListeners()}},updateActiveCls:function(c,b){var a;if(this.dragging){a=this.getElement();a.replaceCls(b,c)}},applyConstrain:function(a){if(a&&!a.$isClass){if(a.isRegion){a={region:a}}else if(a.isElement||!Ext.isObject(a)){a={element:a}}a=Ext.apply({source:this},a);a=Ext.Factory.dragConstraint(a)}return a},updateElement:function(b,a){if(a&&!a.destroyed){a.un('dragstart','stopNativeDrag',this)}if(b&&!this.getHandle()){b.setTouchAction({panX:!1,panY:!1});b.on('dragstart','stopNativeDrag',this,{translate:!1,delegated:!1})}this.callParent([b,a])},updateHandle:function(){if(!this.isConfiguring){this.setupListeners()}},applyProxy:function(a){if(a){a=Ext.Factory.dragproxy(a)}return a},updateProxy:function(b,a){if(a){a.destroy()}if(b){b.setSource(this)}},resolveListenerScope:function(){var a=this.ownerCmp,b=arguments;if(a){return a.resolveListenerScope.apply(a,b)}return this.callParent(b)},destroy:function(){var a=this;a.manager=a.initialEvent=null;a.setConstrain(null);a.setProxy(null);a.callParent()},privates:{draggingCls:Ext.baseCSSPrefix+'drag-dragging',info:null,revertCls:Ext.baseCSSPrefix+'drag-revert',canActivateOnLongPress:function(b){var a=this.getActivateOnLongPress();return !!(a&&(a===!0||Ext.Array.contains(a,b.pointerType)))},dragCleanup:function(b){var a=this,d=a.getActiveCls(),e=a.getProxy(),f=a.getElement(),c=b?b.proxy.element:null;if(d){f.removeCls(d)}if(c){c.removeCls(a.draggingCls)}e.cleanup(b);a.dragging=!1;a.initialEvent=a.info=null},getElListeners:function(){var b=this.getHandle(),a={touchstart:'handleTouchStart',dragstart:'handleDragStart',drag:'handleDragMove',dragend:'handleDragEnd',dragcancel:'handleDragCancel'};if(b){a.dragstart={fn:a.dragstart,delegate:b}}if(this.getActivateOnLongPress()){a.longpress='handleLongPress'}return a},handleDragCancel:function(c){var a=this,b=a.info,d=a.manager;if(d){d.onDragCancel(b,c)}a.onDragCancel(b);if(a.hasListeners.dragcancel){a.fireEvent('dragcancel',a,b,c)}Ext.fireEvent('dragcancel',a,b,c);a.dragCleanup(b)},handleDragEnd:function(d){if(!this.dragging){return}var a=this,e=a.manager,f=a.getRevert(),b=a.info,c=b.proxy;b.update(d);if(e){e.onDragEnd(b,d)}a.onDragEnd(b);if(a.hasListeners.dragend){a.fireEvent('dragend',a,b,d)}Ext.fireEvent('dragend',a,b,d);c=c.instance;if(f&&c){c.dragRevert(b,a.revertCls,f,function(){a.dragCleanup(b)})}else {a.dragCleanup(b)}},handleDragMove:function(b){var a=this,c=a.info,d=a.manager;if(!a.dragging){return}b.stopPropagation();b.claimGesture();c.update(b);if(d){d.onDragMove(c,b)}a.onDragMove(c);if(a.hasListeners.dragmove){a.fireEvent('dragmove',a,c,b)}},handleDragStart:function(c){var a=this,e=a.hasListeners,i=a.manager,h=a.getConstrain(),k=a.initialEvent,j,g,b,d,f;if(a.preventStart(c)){return !1}if(e.initdragconstraints){a.fireEvent('initdragconstraints',a,c)}a.info=b=new Ext.drag.Info(a,k);a.setup(b);if(h){h.onDragStart(b)}b.update(c,!0);d=a.beforeDragStart(b)===!1;if(!d&&e.beforedragstart){d=a.fireEvent('beforedragstart',a,b,c)===!1}if(d){a.dragCleanup();return !1}c.claimGesture();a.dragging=!0;g=a.getActiveCls();j=a.getElement();if(g){j.addCls(g)}f=b.proxy.element;if(f){f.addCls(a.draggingCls)}b.update(c);if(i){i.onDragStart(b,c)}a.onDragStart(b);if(e.dragstart){a.fireEvent('dragstart',a,b,c)}Ext.fireEvent('dragstart',a,b,c)},handleLongPress:function(a){if(!this.isDisabled()&&this.canActivateOnLongPress(a)){this.initialEvent=a;a.startDrag()}},handleTouchStart:function(a){if(!this.isDisabled()){this.initialEvent=a}},preventStart:function(a){return this.isDisabled()||(!a.longpress&&this.canActivateOnLongPress(a))},setup:Ext.privateFn,stopNativeDrag:function(a){a.preventDefault()}}});Ext.define('Ext.drag.Target',{extend:Ext.drag.Item,defaultIdPrefix:'target-',config:{invalidCls:'',validCls:''},constructor:function(a){var b=this,c=a&&a.accepts;if(c){b.accepts=c;a=Ext.apply({},a);delete a.accepts}b.callParent([a]);Ext.drag.Manager.register(b)},accepts:function(a){return !0},disable:function(){this.callParent();this.setupListeners(null)},enable:function(){this.callParent();this.setupListeners()},beforeDrop:Ext.emptyFn,onDrop:Ext.emptyFn,onDragEnter:Ext.emptyFn,onDragLeave:Ext.emptyFn,onDragMove:Ext.emptyFn,updateInvalidCls:function(c,b){var a=this.info;this.doUpdateCls(a&&!a.valid,c,b)},updateValidCls:function(c,b){var a=this.info;this.doUpdateCls(a&&a.valid,c,b)},destroy:function(){Ext.drag.Manager.unregister(this);this.callParent()},privates:{doUpdateCls:function(d,b,a){var c=this.getElement();if(a){c.removeCls(a)}if(b&&d){c.addCls(b)}},getElListeners:function(){return {dragenter:'handleNativeDragEnter',dragleave:'handleNativeDragLeave',dragover:'handleNativeDragMove',drop:'handleNativeDrop'}},handleDrop:function(b){var a=this,c=a.hasListeners,d=b.valid;a.getElement().removeCls([a.getInvalidCls(),a.getValidCls()]);if(d&&a.beforeDrop(b)!==!1){if(c.beforedrop&&a.fireEvent('beforedrop',a,b)===!1){return !1}a.onDrop(b);if(c.drop){a.fireEvent('drop',a,b)}}else {return !1}},handleDragEnter:function(b){var a=this,c=b.valid?a.getValidCls():a.getInvalidCls();if(c){a.getElement().addCls(c)}a.onDragEnter(b);if(a.hasListeners.dragenter){a.fireEvent('dragenter',a,b)}},handleDragLeave:function(b){var a=this;a.getElement().removeCls([a.getInvalidCls(),a.getValidCls()]);a.onDragLeave(b);if(a.hasListeners.dragleave){a.fireEvent('dragleave',a,b)}},handleDragMove:function(b){var a=this;a.onDragMove(b);if(a.hasListeners.dragmove){a.fireEvent('dragmove',a,b)}},handleNativeDragEnter:function(c){var a=this,b=Ext.drag.Manager.getNativeDragInfo(c);b.onNativeDragEnter(a,c);if(a.hasListeners.dragenter){a.fireEvent('dragenter',a,b)}},handleNativeDragLeave:function(c){var a=this,b=Ext.drag.Manager.getNativeDragInfo(c);b.onNativeDragLeave(a,c);if(a.hasListeners.dragleave){a.fireEvent('dragleave',a,b)}},handleNativeDragMove:function(c){var a=this,b=Ext.drag.Manager.getNativeDragInfo(c);b.onNativeDragMove(a,c);if(a.hasListeners.dragmove){a.fireEvent('dragmove',a,b)}},handleNativeDrop:function(d){var a=this,c=a.hasListeners,b=Ext.drag.Manager.getNativeDragInfo(d),e=b.valid;b.onNativeDrop(a,d);if(e){if(c.beforedrop&&a.fireEvent('beforedrop',a,b)===!1){return}if(c.drop){a.fireEvent('drop',a,b)}}}}});Ext.define('Ext.drag.proxy.None',{mixins:[Ext.mixin.Factoryable],alias:'drag.proxy.none',factoryConfig:{aliasPrefix:'drag.proxy.',type:'dragproxy'},config:{source:null},constructor:function(a){var b=a&&a.getElement;if(b){this.getElement=b;a=Ext.apply({},a);delete a.getElement}this.initConfig(a)},cleanup:Ext.emptyFn,dragRevert:function(d,b,f,e){var a=this.getPositionable(d),c=d.proxy.initial;a.addCls(b);a.setXY([c.x,c.y],Ext.apply({callback:function(){a.removeCls(b);e()}},f))},getElement:function(){return null},getPositionable:function(){return this.element},setXY:function(c,d,b){var a=this.getPositionable(c);if(a){a.setXY(d,b)}},update:Ext.emptyFn,privates:{setupElement:function(a){return (this.element=this.getElement(a))},adjustCursorOffset:function(b,a){return a}}});Ext.define('Ext.drag.proxy.Original',{extend:Ext.drag.proxy.None,alias:'drag.proxy.original',getElement:function(a){return a.source.getElement()},getPositionable:function(b){var a=b.source;return a.getComponent()||a.getElement()}});Ext.define('Ext.drag.proxy.Placeholder',{extend:Ext.drag.proxy.None,alias:'drag.proxy.placeholder',config:{cls:'',cursorOffset:[12,20],html:null,invalidCls:'',validCls:''},placeholderCls:Ext.baseCSSPrefix+'drag-proxy-placeholder',cleanup:function(){this.element=Ext.destroy(this.element)},getElement:function(){var a=Ext.getBody().createChild({cls:this.getCls(),html:this.getHtml()});a.addCls(this.placeholderCls);a.setTouchAction({panX:!1,panY:!1});return a},update:function(d){var e=this.element,a=this.getInvalidCls(),b=this.getValidCls(),c=d.valid;if(d.target){e.replaceCls(c?a:b,c?b:a)}else {e.removeCls([a,b])}},updateCls:function(c,b){var a=this.element;if(a){if(b){a.removeCls(b)}if(c){a.addCls(c)}}},updateHtml:function(b){var a=this.element;if(a){a.setHtml(b||'')}},updateInvalidCls:function(b,a){this.doUpdateCls(b,a)},updateValidCls:function(b,a){this.doUpdateCls(b,a)},destroy:function(){this.element=Ext.destroy(this.element);this.callParent()},privates:{adjustCursorOffset:function(c,b){var a=this.getCursorOffset();if(a){b[0]+=(a[0]||0);b[1]+=(a[1]||0)}return b},doUpdateCls:function(c,b){var a=this.element,d;if(a){if(b){d=c&&a.hasCls(b);a.removeCls(b)}if(c&&d){a.addCls(c)}}}}});Ext.define('Ext.overrides.drag.proxy.Placeholder',{override:'Ext.drag.proxy.Placeholder',getElement:function(){var a=this.callParent();a.addCls(Ext.baseCSSPrefix+'root');return a}});Ext.define('Ext.event.gesture.Recognizer',{mixins:[Ext.mixin.Identifiable],priority:0,handledEvents:[],isStarted:!1,config:{onRecognized:Ext.emptyFn,callbackScope:null},constructor:function(a){this.initConfig(a);Ext.event.publisher.Gesture.instance.registerRecognizer(this)},onStart:Ext.emptyFn,onEnd:Ext.emptyFn,onTouchStart:Ext.emptyFn,onTouchMove:Ext.emptyFn,onTouchEnd:function(){return this.reset()},onTouchCancel:function(a){return this.cancel(a)},fire:function(a,d,c,b){this.getOnRecognized().call(this.getCallbackScope(),this,a,d,c,b)},cancel:function(a){if(this.isStarted){this.onCancel(a)}return this.reset()},onCancel:Ext.emptyFn,reset:function(){this.isStarted=!1;return !1}});Ext.define('Ext.event.gesture.SingleTouch',{extend:Ext.event.gesture.Recognizer,isSingleTouch:!0,onTouchStart:function(a){if(a.touches.length>1){return this.cancel(a)}}});Ext.define('Ext.event.gesture.DoubleTap',{extend:Ext.event.gesture.SingleTouch,priority:300,config:{moveDistance:8,tapDistance:24,maxDuration:300},handledEvents:['singletap','doubletap'],singleTapTimer:null,startTime:0,lastTapTime:0,onTouchStart:function(b){var a=this,d=a.callParent([b]),c;if(d!==!1){a.isStarted=!0;c=a.lastStartPoint=b.changedTouches[0].point;a.startPoint=a.startPoint||c;a.startTime=b.time;Ext.undefer(a.singleTapTimer)}return d},onTouchMove:function(b){var a=this,d=b.changedTouches[0].point,e=Ext.Element.getViewportScale(),c=Math.round(Math.abs(d.getDistanceTo(a.lastStartPoint)*e));if(c>=a.getMoveDistance()){return a.cancel(b)}},onTouchEnd:function(b){var a=this,f=a.getMaxDuration(),d=b.time,h=b.target,e=a.lastTapTime,j=a.lastTarget,k=b.changedTouches[0].point,c,i,g;a.lastTapTime=d;a.lastTarget=h;if(e){c=d-e;if(c<=f){i=Ext.Element.getViewportScale();g=Math.round(Math.abs(k.getDistanceTo(a.startPoint)*i));if(g<=a.getTapDistance()){if(h!==j){return a.cancel(b)}a.lastTarget=null;a.lastTapTime=0;a.fire('doubletap',b,{touch:b.changedTouches[0],duration:c});return a.callParent([b])}}}if(d-a.startTime>f){a.fire('singletap',b);a.reset()}else {a.setSingleTapTimer(b)}},setSingleTapTimer:function(b){var a=this;a.singleTapTimer=Ext.defer(function(){a.fire('singletap',b);a.reset()},a.getMaxDuration())},reset:function(){var a=this;Ext.undefer(a.singleTapTimer);a.startTime=a.lastTapTime=0;a.lastStartPoint=a.startPoint=a.singleTapTimer=null;return a.callParent()}},function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.doubleTap)});Ext.define('Ext.event.gesture.Drag',{extend:Ext.event.gesture.SingleTouch,priority:100,startPoint:null,previousPoint:null,lastPoint:null,handledEvents:['dragstart','drag','dragend','dragcancel'],config:{minDistance:8},constructor:function(){this.callParent(arguments);this.initInfo()},initInfo:function(){this.info={touch:null,previous:{x:0,y:0},x:0,y:0,delta:{x:0,y:0},absDelta:{x:0,y:0},flick:{velocity:{x:0,y:0}},direction:{x:0,y:0},time:0,previousTime:{x:0,y:0},longpress:!1}},onTouchStart:function(b){var a=this,c=a.callParent([b]);if(c!==!1){a.startTime=b.time;a.startPoint=b.changedTouches[0].point}return c},tryDragStart:function(b){var a=this,e=b.changedTouches[0].point,c=a.getMinDistance(),f=Ext.Element.getViewportScale(),d=Math.round(Math.abs(e.getDistanceTo(a.startPoint)*f));if(d>=c){a.doDragStart(b)}},doDragStart:function(b,g){var a=this,d=b.changedTouches[0],f=d.point,e=a.info,c;if(g){c=Ext.now();a.startTime=c;a.startPoint=f;e.longpress=!0}else {c=b.time}a.isStarted=!0;a.previousPoint=a.lastPoint=f;a.resetInfo('x',b,d);a.resetInfo('y',b,d);e.time=c;a.fire('dragstart',b,e)},onTouchMove:function(b){var a=this,c,d;if(!a.startPoint){return}if(!a.isStarted){a.tryDragStart(b)}if(!a.isStarted){return}c=b.changedTouches[0];d=c.point;if(a.lastPoint){a.previousPoint=a.lastPoint}a.lastPoint=d;a.lastMoveEvent=b;a.updateInfo('x',b,c);a.updateInfo('y',b,c);a.info.time=b.time;a.fire('drag',b,a.info)},onAxisDragEnd:function(b,a){var c=a.time-a.previousTime[b];if(c>0){a.flick.velocity[b]=(a[b]-a.previous[b])/c}},resetInfo:function(b,i,h){var d=this,g=d.lastPoint[b],e=d.startPoint[b],f=g-e,c=b.toUpperCase(),a=d.info;a.touch=h;a.delta[b]=f;a.absDelta[b]=Math.abs(f);a.previousTime[b]=d.startTime;a.previous[b]=e;a[b]=g;a.direction[b]=0;a['start'+c]=d.startPoint[b];a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=0;a.startTime=d.startTime},updateInfo:function(b,l,k){var e=this,d=e.lastPoint[b],g=e.previousPoint[b],f=e.startPoint[b],i=d-f,a=e.info,h=a.direction,c=b.toUpperCase(),j=a.previous[b];a.touch=k;a.delta[b]=i;a.absDelta[b]=Math.abs(i);if(d!==j&&d!==a[b]){a.previous[b]=a[b];a.previousTime[b]=a.time}a[b]=d;if(d>g){h[b]=1}else if(d<g){h[b]=-1}a['start'+c]=f;a['previous'+c]=a.previous[b];a['page'+c]=a[b];a['delta'+c]=a.delta[b];a['absDelta'+c]=a.absDelta[b];a['previousDelta'+c]=a.previous[b]-f;a.startTime=e.startTime},onTouchEnd:function(b){var a=this,d,e,c;if(a.isStarted){d=b.changedTouches[0];e=d.point;c=a.info;a.lastPoint=e;a.updateInfo('x',b,d);a.updateInfo('y',b,d);c.time=b.time;a.onAxisDragEnd('x',c);a.onAxisDragEnd('y',c);a.fire('dragend',b,c)}return this.callParent([b])},onCancel:function(a){var b=this,c=a.changedTouches[0],d=b.info;if(!a.touches.length){b.lastPoint=c.point}b.updateInfo('x',a,c);b.updateInfo('y',a,c);d.time=a.time;b.fire('dragcancel',a,d,!0)},reset:function(){var a=this;a.lastPoint=a.startPoint=a.previousPoint=a.lastPoint=a.lastMoveEvent=null;a.initInfo();return a.callParent()}},function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.drag)});Ext.define('Ext.event.gesture.Swipe',{extend:Ext.event.gesture.SingleTouch,priority:600,handledEvents:['swipestart','swipe','swipecancel'],config:{minDistance:80,maxOffset:35,maxDuration:1000},onTouchStart:function(c){var a=this,d=a.callParent([c]),b;if(d!==!1){b=c.changedTouches[0];a.startTime=c.time;a.isHorizontal=!0;a.isVertical=!0;a.startX=b.pageX;a.startY=b.pageY}return d},onTouchMove:function(b){var a=this,h=b.changedTouches[0],j=h.pageX,k=h.pageY,l=j-a.startX,m=k-a.startY,c=Math.abs(j-a.startX),d=Math.abs(k-a.startY),i=b.time-a.startTime,f,e,g;if((c===0&&d===0)||(i>a.getMaxDuration())){return a.cancel(b)}if(a.isHorizontal&&d>a.getMaxOffset()){a.isHorizontal=!1}if(a.isVertical&&c>a.getMaxOffset()){a.isVertical=!1}if(!a.isVertical||!a.isHorizontal){f=a.getMinDistance();if(a.isHorizontal&&c<f){e=(l<0)?'left':'right';g=c}else if(a.isVertical&&d<f){e=(m<0)?'up':'down';g=d}}if(!a.isHorizontal&&!a.isVertical){return a.cancel(b)}if(e&&!a.isStarted){a.isStarted=!0;a.fire('swipestart',b,{touch:h,direction:e,distance:g,duration:i})}},onTouchEnd:function(b){var a=this,c,l,m,i,j,e,f,d,k,g,h;if(a.onTouchMove(b)!==!1){c=b.changedTouches[0];l=c.pageX;m=c.pageY;i=l-a.startX;j=m-a.startY;e=Math.abs(i);f=Math.abs(j);d=a.getMinDistance();k=b.time-a.startTime;if(a.isVertical&&f<d){a.isVertical=!1}if(a.isHorizontal&&e<d){a.isHorizontal=!1}if(a.isHorizontal){g=(i<0)?'left':'right';h=e}else if(a.isVertical){g=(j<0)?'up':'down';h=f}a.fire('swipe',b,{touch:c,direction:g,distance:h,duration:k})}return this.callParent([b])},onCancel:function(a){this.fire('swipecancel',a,null,!0)},reset:function(){var a=this;a.startTime=a.isHorizontal=a.isVertical=a.startX=a.startY=null;return a.callParent()}},function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.swipe)});Ext.define('Ext.event.gesture.EdgeSwipe',{extend:Ext.event.gesture.Swipe,priority:500,handledEvents:['edgeswipe','edgeswipestart','edgeswipeend','edgeswipecancel'],config:{minDistance:60},onTouchStart:function(d){var a=this,c=a.callParent([d]),b;if(c!==!1){b=d.changedTouches[0];a.direction=null;a.isHorizontal=!0;a.isVertical=!0;a.startX=b.pageX;a.startY=b.pageY}return c},onTouchMove:function(d){var a=this,f=d.changedTouches[0],m=f.pageX,n=f.pageY,g=m-a.startX,h=n-a.startY,j=Math.abs(n-a.startY),i=Math.abs(m-a.startX),e=a.getMinDistance(),k=a.getMaxOffset(),l=d.time-a.startTime,p=Ext.Viewport&&Ext.Element.getViewportWidth(),o=Ext.Viewport&&Ext.Element.getViewportHeight(),b,c;if(a.isVertical&&i>k){a.isVertical=!1}if(a.isHorizontal&&j>k){a.isHorizontal=!1}if(a.isVertical&&a.isHorizontal){if(j>i){a.isHorizontal=!1}else {a.isVertical=!1}}if(a.isHorizontal){b=(g<0)?'left':'right';c=g}else if(a.isVertical){b=(h<0)?'up':'down';c=h}b=a.direction||(a.direction=b);if(b==='up'){c=h*-1}else if(b==='left'){c=g*-1}a.distance=c;if(!c){return a.cancel(d)}if(!a.isStarted){if((b==='right'&&a.startX>e)||(b==='down'&&a.startY>e)||(b==='left'&&(p-a.startX)>e)||(b==='up'&&(o-a.startY)>e)){return a.cancel(d)}a.isStarted=!0;a.startTime=d.time;a.fire('edgeswipestart',d,{touch:f,direction:b,distance:c,duration:l})}else {a.fire('edgeswipe',d,{touch:f,direction:b,distance:c,duration:l})}},onTouchEnd:function(b){var a=this,c;if(a.onTouchMove(b)!==!1){c=b.time-a.startTime;a.fire('edgeswipeend',b,{touch:b.changedTouches[0],direction:a.direction,distance:a.distance,duration:c})}return this.reset()},onCancel:function(a){this.fire('edgeswipecancel',a,{touch:a.changedTouches[0]},!0)},reset:function(){var a=this;a.direction=a.isHorizontal=a.isVertical=a.startX=a.startY=a.startTime=a.distance=null;return a.callParent()}},function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.edgeSwipe)});Ext.define('Ext.event.gesture.LongPress',{extend:Ext.event.gesture.SingleTouch,priority:400,config:{moveDistance:8,minDuration:1000},handledEvents:['longpress','taphold'],onTouchStart:function(b){var a=this,c=a.callParent([b]);if(c!==!1){a.startPoint=b.changedTouches[0].point;a.setLongPressTimer(b)}return c},setLongPressTimer:function(b){var a=this;Ext.undefer(a.timer);a.timer=Ext.defer(a.fireLongPress,a.getMinDuration(),a,[b])},onTouchMove:function(b){var a=this,d=b.changedTouches[0].point,e=Ext.Element.getViewportScale(),c=Math.round(Math.abs(d.getDistanceTo(a.startPoint)*e));if(c>=a.getMoveDistance()){return a.cancel(b)}},reset:function(){var a=this;a.timer=a.startPoint=Ext.undefer(a.timer);return a.callParent()},fireLongPress:function(a){var c=this,b={touch:a.changedTouches[0],duration:c.getMinDuration(),startDrag:c.startDrag};this.fire('taphold',a,b);this.fire('longpress',a,b);this.reset()},startDrag:function(){var b=Ext.event.gesture.Drag.instance,a=this.parentEvent;b.doDragStart(a,!0);Ext.event.publisher.Gesture.instance.claimRecognizer(b,a)}},function(a){var b=Ext.manifest.gestures;a.instance=new a(b&&b.longPress)});Ext.define('Ext.event.gesture.MultiTouch',{extend:Ext.event.gesture.Recognizer,requiredTouchesCount:2,isTracking:!1,isMultiTouch:!0,onTouchStart:function(d){var a=this,b=a.requiredTouchesCount,e=d.touches,c=e.length;if(c===b){a.isTracking=!0}else if(c>b){return a.cancel(d)}},reset:function(){this.isTracking=!1;return this.callParent()}});Ext.define('Ext.event.gesture.Pinch',{extend:Ext.event.gesture.MultiTouch,priority:700,handledEvents:['pinchstart','pinch','pinchend','pinchcancel'],startDistance:0,lastTouches:null,onTouchMove:function(d){var a=this,c,f,e,b;if(a.isTracking){c=d.touches;f=c[0].point;e=c[1].point;b=f.getDistanceTo(e);if(b===0){return}if(!a.isStarted){a.isStarted=!0;a.startDistance=b;a.fire('pinchstart',d,{touches:c,distance:b,scale:1})}else {a.fire('pinch',d,{touches:c,distance:b,scale:b/a.startDistance})}}},onTouchEnd:function(a){if(this.isStarted){this.fire('pinchend',a)}return this.callParent([a])},onCancel:function(a){this.fire('pinchcancel',a,null,!0)},reset:function(){this.lastTouches=null;this.startDistance=0;return this.callParent()}},function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.pinch)});Ext.define('Ext.event.gesture.Rotate',{extend:Ext.event.gesture.MultiTouch,priority:800,handledEvents:['rotatestart','rotate','rotateend','rotatecancel'],startAngle:0,lastTouches:null,lastAngle:null,onTouchMove:function(h){var b=this,c,d,j,i,a,f,e,g;if(b.isTracking){c=h.touches;d=b.lastAngle;j=c[0].point;i=c[1].point;a=j.getAngleTo(i);if(d!==null){g=Math.abs(d-a);f=a+360;e=a-360;if(Math.abs(f-d)<g){a=f}else if(Math.abs(e-d)<g){a=e}}b.lastAngle=a;if(!b.isStarted){b.isStarted=!0;b.startAngle=a;b.fire('rotatestart',h,{touches:c,angle:a,rotation:0})}else {b.fire('rotate',h,{touches:c,angle:a,rotation:a-b.startAngle})}b.lastTouches=Ext.Array.clone(c)}},onTouchEnd:function(a){if(this.isStarted){this.fire('rotateend',a)}return this.callParent([a])},onCancel:function(a){this.fire('rotatecancel',a,null,!0)},reset:function(){var a=this;a.lastTouches=a.lastAngle=a.startAngle=null;return this.callParent()}},function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.rotate)});Ext.define('Ext.event.gesture.Tap',{extend:Ext.event.gesture.SingleTouch,priority:200,handledEvents:['tap','tapcancel'],config:{moveDistance:8},onTouchStart:function(c){var a=this,b=a.callParent([c]);if(b!==!1){a.isStarted=!0;a.startPoint=c.changedTouches[0].point}return b},onTouchMove:function(b){var a=this,d=b.changedTouches[0].point,e=Ext.Element.getViewportScale(),c=Math.round(Math.abs(d.getDistanceTo(a.startPoint)*e));if(c>=a.getMoveDistance()){return a.cancel(b)}},onTouchEnd:function(a){this.fire('tap',a,{touch:a.changedTouches[0]});return this.callParent([a])},onCancel:function(a){this.fire('tapcancel',a,{touch:a.changedTouches[0]},!0)},reset:function(){this.startPoint=null;return this.callParent()}},function(b){var a=Ext.manifest.gestures;b.instance=new b(a&&a.tap)});Ext.define('Ext.event.publisher.Focus',{extend:Ext.event.publisher.Dom,type:'focus',handledEvents:['focusenter','focusleave','focusmove'],handledDomEvents:['focusin','focusout'],publishDelegatedDomEvent:function(a){var c=this,b=a.relatedTarget;if(a.type==='focusout'){if(b==null){c.processFocusIn(a,a.target,document.body)}}else {if(b==null||!b.tagName){b=document.body}c.processFocusIn(a,b,a.target)}},processFocusIn:function(j,b,a){var e=this,k=e.focusFly,d=[],i,c,g,f,h;if((b&&k.attach(b).isFocusSuspended())||(a&&k.attach(a).isFocusSuspended())){return}if(a.compareDocumentPosition){g=!!(a.compareDocumentPosition(b)&4)}for(c=b,i=Ext.dom.Element.getCommonAncestor(a,b,!0);c&&c!==i;c=c.parentNode){d.push(c)}if(d.length){f=e.createSyntheticEvent('focusleave',j,b,a,b,a,g);e.publish(f,d);if(f.stopped){return}}d.length=0;for(c=a;c&&c!==i;c=c.parentNode){d.push(c)}h=e.createSyntheticEvent('focusenter',j,a,b,b,a,g);if(d.length){e.publish(h,d);if(h.stopped){return}}d=e.getPropagatingTargets(i);if(d.length){f=e.createSyntheticEvent('focusmove',j,a,b,b,a,g);e.publish(f,d);if(f.stopped){return}}if(Ext.GlobalEvents.hasListeners.focus){Ext.GlobalEvents.fireEvent('focus',{event:h,toElement:a,fromElement:b,backwards:g})}},createSyntheticEvent:function(f,c,h,b,d,g,e){var a=new Ext.event.Event(c);a.type=f;a.relatedTarget=b;a.target=h;a.fromElement=d;a.toElement=g;a.backwards=e;return a}},function(a){var b;a.prototype.focusFly=new Ext.dom.Fly();a.instance=new a();if(!Ext.supports.FocusinFocusoutEvents){this.override({handledDomEvents:['focus','blur'],publishDelegatedDomEvent:function(c){var e=this,d;e.callSuper([c]);d=c.target!==window&&c.target!==document;if(c.type==='blur'){if(!d){if(c.explicitOriginalTarget===a.previousActiveElement){if(c.target===window){Ext.undefer(b);b=0;e.processFocusIn(c,a.previousActiveElement,document.body);a.previousActiveElement=null}}}else {b=Ext.defer(function(){b=0;e.processFocusIn(c,c.target,document.body);a.previousActiveElement=null},1);if(d&&Ext.cache[c.target.id]){Ext.cache[c.target.id].focusinTimeout=b}}a.previousActiveElement=d?c.target:null}else {Ext.undefer(b);b=0;e.processFocusIn(c,a.previousActiveElement||document.body,d?c.target:document.body)}}});Ext.define(null,{override:'Ext.dom.Element',destroy:function(){if(this.focusinTimeout){Ext.undefer(this.focusinTimeout);this.focusinTimeout=null}this.callParent()}})}});Ext.define('Ext.field.InputMask',function(a){return {cachedConfig:{blank:'_',characters:{'*':'[A-Za-z0-9]','a':'[a-z]','A':'[A-Z]','0':'[0-9]','9':'[0-9]'},ignoreCase:!0},config:{pattern:null},_cached:!1,_lastEditablePos:null,_mask:null,statics:{active:{},from:function(c,d){var e=a.active,b;if(c===null){b=null}else if(typeof c!=='string'){if(d&&!d._cached){b=d;b.setConfig(c)}else {b=new a(c)}}else if(!(b=e[c])){if(!(b=a.cache.remove(c))){b=new a({pattern:c})}e[c]=b;b._cached=1}else {++b._cached}return b}},constructor:function(b){this.initConfig(b)},release:function(){var b=this,c=a.cache,d;if(b._cached&&!--b._cached){d=b.getPattern();delete a.active[d];c.add(d,b);c.trim(c.maxSize)}},clearRange:function(f,e,l){var d=this,h=d.getBlank(),j=e+l,k=f.length,c='',b,i,g;if(!h){g=d._prefix.length;for(b=0;b<k;++b){if(b<g||b<e||b>=j){c+=f[b]}}c=d.formatValue(c)}else {i=d.getPattern();for(b=0;b<k;++b){if(b<e||b>=j){c+=f[b]}else if(d.isFixedChar(b)){c+=i[b]}else {c+=h}}}return c},formatValue:function(g){var d=this,i=d.getBlank(),b,e,h,f,c;if(!i){f=d._prefix;e=f.length;c=this.insertRange('',g,0);for(b=c.length;b>e&&d.isFixedChar(b-1);){--b}c=(b<e)?f:c.slice(0,b-1)}else if(g){c=d.formatValue('');c=d.insertRange(c,g,0)}else {h=d.getPattern();c='';for(b=0,e=h.length;b<e;++b){if(d.isFixedChar(b)){c+=h[b]}else {c+=i}}}return c},getEditPosLeft:function(c){var b;for(b=c;b>=0;--b){if(!this.isFixedChar(b)){return b}}return null},getEditPosRight:function(e){var c=this._mask,d=c.length,b;for(b=e;b<d;++b){if(!this.isFixedChar(b)){return b}}return null},getFilledLength:function(c){var d=this,f=d.getBlank(),e,b;if(!f){return c.length}for(b=c&&c.length;b-->0;){e=c[b];if(!d.isFixedChar(b)&&d.isAllowedChar(e,b)){break}}return ++b||d._prefix.length},getSubLength:function(j,c,g){var d=this,f=d.getPattern(),e=0,i=f.length,h=c.length,b;for(b=g;b<i&&e<h;){if(!d.isFixedChar(b)||f[b]===c[e]){if(d.isAllowedChar(c[e++],b,!0)){++b}}else {++b}}return b-g},insertRange:function(l,h,k){var d=this,i=d.getPattern(),e=d.getBlank(),p=d.isFilled(l),m=d._prefix.length,o=i.length,n=h.length,c=l,g,j,b,f;if(!e&&k>c.length){c+=i.slice(c.length,k)}for(b=k,f=0;b<o&&f<n;){j=d.isFixedChar(b);if(!j||i[b]===h[f]){g=h[f++];if(d.isAllowedChar(g,b,!0)){if(b<c.length){if(e||p||b<m){c=c.slice(0,b)+g+c.slice(b+1)}else {c=d.formatValue(c.substr(0,b)+g+c.substr(b))}}else if(!e){c+=g}++b}}else {if(!e&&b>=c.length){c+=i[b]}else if(e&&j&&h[f]===e){++f}++b}}return c},isAllowedChar:function(c,e,i){var b=this,g=b.getPattern(),h,f,d;if(b.isFixedChar(e)){return g[e]===c}h=g[e];f=b.getCharacters();d=f[h];return !d||d.test(c||'')||(i&&c===b.getBlank())},isEmpty:function(c){var b,d;for(b=0,d=c.length;b<d;++b){if(!this.isFixedChar(b)&&this.isAllowedChar(c[b],b)){return !1}}return !0},isFilled:function(b){return this.getFilledLength(b)===this._mask.length},isFixedChar:function(b){return Ext.Array.indexOf(this._fixedCharPositions,b)>-1},setCaretToEnd:function(b,e){var d=this.getFilledLength(e),c=this.getEditPosRight(d);if(c!==null){Ext.raf(function(){if(!b.destroyed){b.setCaretPos(c);Ext.raf(function(){if(!b.destroyed){b.setCaretPos(c)}})}})}},onBlur:function(b,c){if(b.getAutoHideInputMask()!==!1){if(this.isEmpty(c)){b.maskProcessed=!0;b.setValue('')}}},onFocus:function(b,c){if(b.getAutoHideInputMask()!==!1){if(!c){b.maskProcessed=!0;b.setValue(this._mask)}}this.setCaretToEnd(b,c)},onChange:function(b,c,e){var f=this,d;if(b.maskProcessed||c===e){b.maskProcessed=!1;return !0}if(c){d=f.formatValue(c);b.maskProcessed=!0;b.setValue(d)}},processAutocomplete:function(c,b){var d=this,e;if(b){if(b.length>d._mask.length){b=b.substr(0,d._mask.length)}e=d.formatValue(b);c.maskProcessed=!0;c.inputElement.dom.value=e;c.setValue(e);this.setCaretToEnd(c,b)}},showEmptyMask:function(b,c){var d=this.formatValue();b.maskProcessed=!0;b.setValue(d);if(c){this.setCaretToEnd(b)}},onKeyDown:function(d,h,c){if(c.ctrlKey||c.metaKey){return}var e=this,o=c.keyCode===c.DELETE,l=o==='Delete',n=l||(c.keyCode===c.BACKSPACE),i=h,b,g,m,f,j,k;if(n){b=d.getCaretPos();f=e._prefix.length;j=d.getTextSelection();k=j[0];m=j[1]-k;if(m){i=e.clearRange(h,k,m)}else if(b<f||(!l&&b===f)){b=f}else {g=l?e.getEditPosRight(b):e.getEditPosLeft(b-1);if(g!==null){i=e.clearRange(h,g,1);b=g}}if(i!==h){d.maskProcessed=!0;d.setValue(i)}c.preventDefault();d.setCaretPos(b)}},onKeyPress:function(f,k,e){var c=this,l=e.keyCode,h=e.getChar(),n=c.getPattern(),m=c._prefix.length,d=k,b,g,j,i;if(l===e.ENTER||l===e.TAB||e.ctrlKey||e.metaKey){return}b=f.getCaretPos();i=f.getTextSelection();if(c.isFixedChar(b)&&n[b]===h){d=c.insertRange(d,h,b);++b}else {g=c.getEditPosRight(b);if(g!==null&&c.isAllowedChar(h,g)){j=i[0];d=c.clearRange(d,j,i[1]-j);d=c.insertRange(d,h,g);b=g+1}}if(d!==k){f.maskProcessed=!0;f.setValue(d)}e.preventDefault();if(b<c._lastEditablePos&&b>m){b=c.getEditPosRight(b)}f.setCaretPos(b)},onPaste:function(e,f,d){var b,c=d.browserEvent.clipboardData;if(c&&c.getData){b=c.getData('text/plain')}else if(Ext.global.clipboardData&&Ext.global.clipboardData.getData){b=Ext.global.clipboardData.getData('Text')}if(b){this.paste(e,f,b,e.getTextSelection())}d.preventDefault()},paste:function(e,f,h,g){var d=this,b=g[0],i=g[1]-b,c=i?d.clearRange(f,b,i):f,j=d.getSubLength(c,h,b);c=d.insertRange(c,h,b);b+=j;b=d.getEditPosRight(b)||b;if(c!==f){e.maskProcessed=!0;e.setValue(c)}e.setCaretPos(b)},syncPattern:function(b){var c=b.getValue(),d;if(b.getAutoHideInputMask()===!1){if(!c){this.showEmptyMask(b)}else {d=this.formatValue(c);b.maskProcessed=!0;b.setValue(d)}}else {if(c){d=this.formatValue(c);b.maskProcessed=!0;b.setValue(d)}}},applyCharacters:function(d){var e={},f=this.getIgnoreCase()?'i':'',c,b;for(c in d){b=d[c];if(typeof b==='string'){b=new RegExp(b,f)}e[c]=b}return e},updatePattern:function(e){var d=this,j=d.getCharacters(),g=0,l=e&&e.length,k=d.getBlank(),h=[],i='',c='',f,b;for(b=0;b<l;++b){f=e[b];if(!j[f]){h.push(c.length);c+=f}else {g=c.length+1;c+=k}}d._lastEditablePos=g;d._mask=c;d._fixedCharPositions=h;for(b=0;b<c.length&&d.isFixedChar(b);++b){i+=c[b]}d._prefix=i}}},function(a){a.cache=new Ext.util.LRU();a.cache.maxSize=100});Ext.define('Ext.fx.runner.Css',{extend:Ext.Evented,prefixedProperties:{'transform':!0,'transform-origin':!0,'perspective':!0,'transform-style':!0,'transition':!0,'transition-property':!0,'transition-duration':!0,'transition-timing-function':!0,'transition-delay':!0,'animation':!0,'animation-name':!0,'animation-duration':!0,'animation-iteration-count':!0,'animation-direction':!0,'animation-timing-function':!0,'animation-delay':!0},lengthProperties:{'top':!0,'right':!0,'bottom':!0,'left':!0,'width':!0,'height':!0,'max-height':!0,'max-width':!0,'min-height':!0,'min-width':!0,'margin-bottom':!0,'margin-left':!0,'margin-right':!0,'margin-top':!0,'padding-bottom':!0,'padding-left':!0,'padding-right':!0,'padding-top':!0,'border-bottom-width':!0,'border-left-width':!0,'border-right-width':!0,'border-spacing':!0,'border-top-width':!0,'border-width':!0,'outline-width':!0,'letter-spacing':!0,'line-height':!0,'text-indent':!0,'word-spacing':!0,'font-size':!0,'translate':!0,'translateX':!0,'translateY':!0,'translateZ':!0,'translate3d':!0,'x':!0,'y':!0},durationProperties:{'transition-duration':!0,'transition-delay':!0,'animation-duration':!0,'animation-delay':!0},angleProperties:{rotate:!0,rotateX:!0,rotateY:!0,rotateZ:!0,skew:!0,skewX:!0,skewY:!0},DEFAULT_UNIT_LENGTH:'px',DEFAULT_UNIT_ANGLE:'deg',DEFAULT_UNIT_DURATION:'ms',customProperties:{x:!0,y:!0},formattedNameCache:{'x':'left','y':'top'},transformMethods3d:['translateX','translateY','translateZ','rotate','rotateX','rotateY','rotateZ','skewX','skewY','scaleX','scaleY','scaleZ'],transformMethodsNo3d:['translateX','translateY','rotate','skewX','skewY','scaleX','scaleY'],constructor:function(){var a=this;a.transformMethods=Ext.feature.has.Css3dTransforms?a.transformMethods3d:a.transformMethodsNo3d;a.vendorPrefix=Ext.browser.getStyleDashPrefix();a.ruleStylesCache={};a.callParent()},getStyleSheet:function(){var c=this.styleSheet,a,b;if(!c){a=document.createElement('style');a.type='text/css';(document.head||document.getElementsByTagName('head')[0]).appendChild(a);b=document.styleSheets;this.styleSheet=c=b[b.length-1]}return c},applyRules:function(j){var i=this.getStyleSheet(),h=this.ruleStylesCache,k=i.cssRules,d,g,b,c,f,a,e;for(d in j){g=j[d];b=h[d];if(b===undefined){f=k.length;i.insertRule(d+'{}',f);b=h[d]=k.item(f).style}c=b.$cache;if(!c){c=b.$cache={}}for(a in g){e=this.formatValue(g[a],a);a=this.formatName(a);if(c[a]!==e){c[a]=e;if(e===null){b.removeProperty(a)}else {b.setProperty(a,e)}}}}return this},applyStyles:function(f){var c,e,d,b,a,g;for(c in f){if(f.hasOwnProperty(c)){this.activeElement=e=document.getElementById(c);if(!e){continue}d=e.style;b=f[c];for(a in b){if(b.hasOwnProperty(a)){g=this.formatValue(b[a],a);a=this.formatName(a);if(g===null){d.removeProperty(a)}else {d.setProperty(a,g)}}}}}this.activeElement=null;return this},formatName:function(b){var c=this.formattedNameCache,a=c[b];if(!a){if((Ext.os.is.Tizen||!Ext.feature.has.CssTransformNoPrefix)&&this.prefixedProperties[b]){a=this.vendorPrefix+b}else {a=b}c[b]=a}return a},formatValue:function(a,b){var k=typeof a,i=this.DEFAULT_UNIT_LENGTH,j=this.customProperties[b],g,d,c,f,h,e;if(a===null){return ''}if(k==='string'){if(this.lengthProperties[b]){if(!Ext.dom.Element.hasUnit(a)){a=a+i;if(j){a=this.getCustomValue(a,b)}}}return a}else if(k==='number'){if(a===0){return '0'}if(this.lengthProperties[b]){a=a+i;if(j){a=this.getCustomValue(a,b)}return a}if(this.angleProperties[b]){return a+this.DEFAULT_UNIT_ANGLE}if(this.durationProperties[b]){return a+this.DEFAULT_UNIT_DURATION}}else if(b==='transform'){g=this.transformMethods;h=[];for(c=0,f=g.length;c<f;c++){d=g[c];h.push(d+'('+this.formatValue(a[d],d)+')')}return h.join(' ')}else if(Ext.isArray(a)){e=[];for(c=0,f=a.length;c<f;c++){e.push(this.formatValue(a[c],b))}return (e.length>0)?e.join(', '):'none'}return a},getCustomValue:function(a,b){var c=Ext.fly(this.activeElement);if(b==='x'){a=c.translateXY(parseInt(a,10)).x}else if(b==='y'){a=c.translateXY(null,parseInt(a,10)).y}return a+this.DEFAULT_UNIT_LENGTH}});Ext.define('Ext.fx.runner.CssTransition',{extend:Ext.fx.runner.Css,alternateClassName:'Ext.Animator',singleton:!0,listenersAttached:!1,constructor:function(){this.runningAnimationsData={};this.transitionQueue={toData:{},transitionData:{}};return this.callParent(arguments)},attachListeners:function(){var a=(top===window)?Ext.getWin():Ext.getBody();this.listenersAttached=!0;a.on('transitionend','onTransitionEnd',this)},onTransitionEnd:function(c){var a=c.target,b=a.id;if(b&&this.runningAnimationsData.hasOwnProperty(b)){this.refreshRunningAnimationsData(Ext.get(a),[c.browserEvent.propertyName])}},getElementId:function(a){return a.getId?a.getId():a.id},onAnimationEnd:function(d,a,b,c,n){var l=this.getElementId(d),j=this.runningAnimationsData[l],k={},h={},g,f,e,m,i;b.un('stop','onAnimationStop',this);if(j){g=j.nameMap}k[l]=h;if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,d,c)}b.fireEvent('animationbeforeend',b,d,c);this.fireEvent('animationbeforeend',this,b,d,c);if(n||(!c&&!a.preserveEndState)){f=a.toPropertyNames;for(e=0,m=f.length;e<m;e++){i=f[e];if(g&&!g.hasOwnProperty(i)){h[i]=null}}}if(a.after){Ext.merge(h,a.after)}this.applyStyles(k);if(a.onEnd){a.onEnd.call(a.scope||this,d,c)}b.fireEvent('animationend',b,d,c);this.fireEvent('animationend',this,b,d,c);Ext.AnimationQueue.stop(Ext.emptyFn,b)},onAllAnimationsEnd:function(d){var a=this.getElementId(d),b=this.transitionQueue,c={};delete this.runningAnimationsData[a];c[a]={'transition-property':null,'transition-duration':null,'transition-timing-function':null,'transition-delay':null};delete b.toData[a];delete b.transitionData[a];this.applyStyles(c);this.fireEvent('animationallend',this,d)},hasRunningAnimations:function(c){var b=this.getElementId(c),a=this.runningAnimationsData;return a.hasOwnProperty(b)&&a[b].sessions.length>0},refreshRunningAnimationsData:function(i,o,f,g){var s=this.getElementId(i),r=this.runningAnimationsData,e=r[s],n=!1,l,k,c,d,a,m,q,b,h,j,p;if(!e){return}l=e.nameMap;k=e.nameList;c=e.sessions;f=Boolean(f);g=Boolean(g);if(!c){return this}h=c.length;if(h===0){return this}if(g){e.nameMap={};k.length=0;for(b=0;b<h;b++){a=c[b];this.onAnimationEnd(i,a.data,a.animation,f,g)}c.length=0}else {for(b=0;b<h;b++){a=c[b];m=a.map;q=a.list;for(j=0,p=o.length;j<p;j++){d=o[j];if(m[d]){delete m[d];Ext.Array.remove(q,d);a.length--;if(--l[d]===0){delete l[d];Ext.Array.remove(k,d)}}}if(a.length===0){c.splice(b,1);b--;h--;n=!0;this.onAnimationEnd(i,a.data,a.animation,f)}}}if(!g&&!f&&c.length===0&&n){this.onAllAnimationsEnd(i)}},getRunningData:function(b){var a=this.runningAnimationsData;if(!a.hasOwnProperty(b)){a[b]={nameMap:{},nameList:[],sessions:[]}}return a[b]},getTestElement:function(){var e=this,b=e.testElement,d=e.iframe,a,c;if(b){if(b.ownerDocument.defaultView!==d.contentWindow){a=d.contentDocument;a.body.appendChild(b);e.testElementComputedStyle=a.defaultView.getComputedStyle(b)}}else {d=e.iframe=document.createElement('iframe');d.setAttribute('tabIndex',-1);c=d.style;c.setProperty('visibility','hidden','important');c.setProperty('width','0px','important');c.setProperty('height','0px','important');c.setProperty('position','absolute','important');c.setProperty('border','0px','important');c.setProperty('zIndex','-1000','important');document.body.appendChild(d);a=d.contentDocument;a.open();a.writeln('</body>');a.close();e.testElement=b=a.createElement('div');b.style.setProperty('position','absolute','important');a.body.appendChild(b);e.testElementComputedStyle=a.defaultView.getComputedStyle(b)}return b},getCssStyleValue:function(b,a){var c=this.getTestElement(),e=this.testElementComputedStyle,d=c.style;d.setProperty(b,a);if(Ext.browser.is.Firefox){c.offsetHeight}a=e.getPropertyValue(b);d.removeProperty(b);return a},run:function(s){var a=this,H=[],J=a.lengthProperties,F={},L=a.transitionQueue.toData,d={},K=a.transitionQueue.transitionData,h,i,l,j,G,f,e,t,u,r,q,v,w,I,c,n,z,D,g,b,k,E,m,x,p,o,y,C,B,A;if(!a.listenersAttached){a.attachListeners()}s=Ext.Array.from(s);for(v=0,I=s.length;v<I;v++){c=s[v];c=Ext.factory(c,Ext.fx.Animation);H.push(c);a.activeElement=h=c.getElement();Ext.AnimationQueue.start(Ext.emptyFn,c);D=window.getComputedStyle(h.dom);i=a.getElementId(h);d[i]=d=Ext.merge({},c.getData());A=c.getOnBeforeStart();if(A){A.call(c.scope||a,h)}c.fireEvent('animationstart',c,d);a.fireEvent('animationstart',a,c,d);G=d.before;l=d.from;j=d.to;d.fromPropertyNames=f=[];d.toPropertyNames=e=[];for(b in j){if(j.hasOwnProperty(b)){j[b]=k=a.formatValue(j[b],b);g=a.formatName(b);x=J.hasOwnProperty(b);if(!x){k=a.getCssStyleValue(g,k)}if(l.hasOwnProperty(b)){l[b]=m=a.formatValue(l[b],b);if(!x){m=a.getCssStyleValue(g,m)}if(k!==m){f.push(g);e.push(g)}}else {E=D.getPropertyValue(g);if(k!==E){e.push(g)}}}}n=e.length;if(n===0){a.onAnimationEnd(h,d,c);continue}r=a.getRunningData(i);y=r.sessions;if(y.length>0){a.refreshRunningAnimationsData(h,Ext.Array.merge(f,e),!0,d.replacePrevious)}p=r.nameMap;o=r.nameList;z={};for(w=0;w<n;w++){b=e[w];z[b]=!0;if(!p.hasOwnProperty(b)){p[b]=1;o.push(b)}else {p[b]++}}C={element:h,map:z,list:e.slice(),length:n,data:d,animation:c};y.push(C);c.on('stop','onAnimationStop',a);q=Ext.apply({},G);Ext.apply(q,l);if(o.length>0){f=Ext.Array.difference(o,f);e=Ext.Array.merge(f,e);q['transition-property']=f}F[i]=q;L[i]=Ext.apply({},j);K[i]={'transition-property':e,'transition-duration':d.duration,'transition-timing-function':d.easing,'transition-delay':d.delay};c.startTime=Date.now()}a.activeElement=null;u=a.$className;a.applyStyles(F);t=function(b){if(b.data===u&&b.source===window){window.removeEventListener('message',t,!1);a.applyStyles(a.transitionQueue.toData)}};if(!a.messageTimerId){B=function(){var b;a.messageTimerId=null;if(Ext.isIE){a.applyStyles(a.transitionQueue.transitionData);if(!a.messageFollowupId){b=function(){a.messageFollowupId=null;window.addEventListener('message',t,!1);window.postMessage(u,'*')};a.messageFollowupId=Ext.raf(b)}}else {Ext.merge(a.transitionQueue.toData,a.transitionQueue.transitionData);window.addEventListener('message',t,!1);window.postMessage(u,'*')}};a.messageTimerId=Ext.raf(B)}return H},onAnimationStop:function(j){var a=this,d=a.runningAnimationsData,h=0,g=0,f,i,e,c,k,b;for(f in d){if(d.hasOwnProperty(f)){i=d[f];e=i.sessions;h++;for(c=0,k=e.length;c<k;c++){b=e[c];if(b.animation===j){a.refreshRunningAnimationsData(b.element,b.list.slice(),!1);if(j.destroying){g++}}}}}if(h===g){if(a.messageFollowupId){Ext.unraf(a.messageFollowupId);a.messageFollowupId=null}if(a.messageTimerId){Ext.unraf(a.messageTimerId);a.messageTimerId=null}Ext.apply(a.transitionQueue,{toData:{},transitionData:{}})}}});Ext.define('Ext.fx.Runner',{constructor:function(){return new Ext.fx.runner.CssTransition()}});Ext.define('Ext.fx.animation.Cube',{extend:Ext.fx.animation.Abstract,alias:'animation.cube',config:{before:{},after:{},direction:'right',out:!1},getData:function(){var i=this.getTo(),f=this.getFrom(),j=this.getBefore(),l=this.getAfter(),h=this.getOut(),d=this.getDirection(),m=this.getElement(),g=m.getWidth(),k=h?'100% 100%':'0% 0%',c=1,e=1,a={rotateY:0,translateZ:0},b={rotateY:0,translateZ:0};if(d==="left"||d==="right"){if(h){e=0.5;b.translateZ=g;b.rotateY=-90}else {c=0.5;a.translateZ=g;a.rotateY=90}}j['transform-origin']=k;l['transform-origin']=null;i.set('transform',b);f.set('transform',a);f.set('opacity',c);i.set('opacity',e);return this.callParent(arguments)}});Ext.define('Ext.fx.animation.Wipe',{extend:Ext.fx.Animation,alternateClassName:'Ext.fx.animation.WipeIn',config:{easing:'ease-out',direction:'right',out:!1},refresh:function(){var i=this,o=i.getElement(),l=o.dom.getBoundingClientRect(),g=l.width,c=l.height,j=i.getFrom(),m=i.getTo(),h=i.getOut(),n=i.getDirection(),f=0,b=0,d=0,e=0,a,k;switch(n){case 'up':if(h){a='-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';b=c*3+'px';e=c+'px'}else {a='-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';b=-c*2+'px';e=0};break;case 'down':if(h){a='-webkit-gradient(linear, left top, left bottom, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';b=-c*2+'px';e=0}else {a='-webkit-gradient(linear, left top, left bottom, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';b=c*3+'px';e=c+'px'};break;case 'right':if(h){a='-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';f=-g*2+'px';d=0}else {a='-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';d=-g*2+'px'};break;case 'left':if(h){a='-webkit-gradient(linear, right top, left top, from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, transparent))';d=-g*2+'px'}else {a='-webkit-gradient(linear, right top, left top, from(#000), to(transparent), color-stop(33%, #000), color-stop(66%, transparent))';f=-g*2+'px';d=0};break;}if(!h){k=b;b=e;e=k;k=f;f=d;d=k}j.set('mask-image',a);j.set('mask-size',g*3+'px '+c*3+'px');j.set('mask-position-x',f);j.set('mask-position-y',b);m.set('mask-position-x',d);m.set('mask-position-y',e)}});Ext.define('Ext.fx.animation.WipeOut',{extend:Ext.fx.animation.Wipe,config:{out:!0}});Ext.define('Ext.fx.easing.Bounce',{extend:Ext.fx.easing.Abstract,config:{springTension:0.3,acceleration:30,startVelocity:0},getValue:function(){var b=Ext.Date.now()-this.getStartTime(),a=(b/this.getAcceleration()),c=a*Math.pow(Math.E,-this.getSpringTension()*a);return this.getStartValue()+(this.getStartVelocity()*c)}});Ext.define('Ext.fx.easing.Momentum',{extend:Ext.fx.easing.Abstract,config:{acceleration:30,friction:0,startVelocity:0},alpha:0,updateFriction:function(b){var a=Math.log(1-(b/10));this.theta=a;this.alpha=a/this.getAcceleration()},updateStartVelocity:function(a){this.velocity=a*this.getAcceleration()},updateAcceleration:function(a){this.velocity=this.getStartVelocity()*a;this.alpha=this.theta/a},getValue:function(){return this.getStartValue()-this.velocity*(1-this.getFrictionFactor())/this.theta},getFrictionFactor:function(){var a=Ext.Date.now()-this.getStartTime();return Math.exp(a*this.alpha)},getVelocity:function(){return this.getFrictionFactor()*this.velocity}});Ext.define('Ext.fx.easing.BoundMomentum',{extend:Ext.fx.easing.Abstract,config:{momentum:null,bounce:null,minMomentumValue:0,maxMomentumValue:0,minVelocity:0.01,startVelocity:0},applyMomentum:function(b,a){return Ext.factory(b,Ext.fx.easing.Momentum,a)},applyBounce:function(b,a){return Ext.factory(b,Ext.fx.easing.Bounce,a)},updateStartTime:function(a){this.getMomentum().setStartTime(a);this.callParent(arguments)},updateStartVelocity:function(a){this.getMomentum().setStartVelocity(a)},updateStartValue:function(a){this.getMomentum().setStartValue(a)},reset:function(){this.lastValue=null;this.isBouncingBack=!1;this.isOutOfBound=!1;return this.callParent(arguments)},getValue:function(){var d=this.getMomentum(),j=this.getBounce(),f=d.getStartVelocity(),b=f>0?1:-1,i=this.getMinMomentumValue(),h=this.getMaxMomentumValue(),g=(b===1)?h:i,c=this.lastValue,a,e;if(f===0){return this.getStartValue()}if(!this.isOutOfBound){a=d.getValue();e=d.getVelocity();if(Math.abs(e)<this.getMinVelocity()){this.isEnded=!0}if(a>=i&&a<=h){return a}this.isOutOfBound=!0;j.setStartTime(Ext.Date.now()).setStartVelocity(e).setStartValue(g)}a=j.getValue();if(!this.isEnded){if(!this.isBouncingBack){if(c!==null){if((b===1&&a<c)||(b===-1&&a>c)){this.isBouncingBack=!0}}}else {if(Math.round(a)===g){this.isEnded=!0}}}this.lastValue=a;return a}});Ext.define('Ext.fx.easing.EaseIn',{extend:Ext.fx.easing.Linear,alias:'easing.ease-in',config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,h=a/b,g=Math.pow(h,this.getExponent()),c=d+(g*e);if(a>=b){this.isEnded=!0;return f}return c}});Ext.define('Ext.fx.easing.EaseOut',{extend:Ext.fx.easing.Linear,alias:'easing.ease-out',config:{exponent:4,duration:1500},getValue:function(){var a=Ext.Date.now()-this.getStartTime(),b=this.getDuration(),d=this.getStartValue(),f=this.getEndValue(),e=this.distance,i=a/b,h=1-i,g=1-Math.pow(h,this.getExponent()),c=d+(g*e);if(a>=b){this.isEnded=!0;return f}return c}});Ext.define('Ext.fx.easing.Easing',{constructor:function(a){return Ext.factory(a,Ext.fx.easing.Linear,null,'easing')}});Ext.define('Ext.fx.runner.CssAnimation',{extend:Ext.fx.runner.Css,constructor:function(){this.runningAnimationsMap={};this.elementEndStates={};this.animationElementMap={};this.keyframesRulesCache={};this.uniqueId=0;return this.callParent(arguments)},attachListeners:function(){this.listenersAttached=!0;Ext.getWin().on({animationstart:'onAnimationStart',animationend:'onAnimationEnd',scope:this})},onAnimationStart:function(g){var f=g.browserEvent.animationName,a=this.animationElementMap[f],e=this.runningAnimationsMap[a][f],c=this.elementEndStates,d=c[a],b={};if(d){delete c[a];b[a]=d;this.applyStyles(b)}if(e.before){b[a]=e.before;this.applyStyles(b)}},onAnimationEnd:function(f){var e=f.target,b=f.browserEvent.animationName,c=this.animationElementMap,h=c[b],g=this.runningAnimationsMap,d=g[h],a=d[b];if(a.onBeforeEnd){a.onBeforeEnd.call(a.scope||this,e)}if(a.onEnd){a.onEnd.call(a.scope||this,e)}delete c[b];delete d[b];this.removeKeyframesRule(b)},generateAnimationId:function(){return 'animation-'+(++this.uniqueId)},run:function(f){var q={},t=this.elementEndStates,s=this.animationElementMap,p=this.runningAnimationsMap,b,n,d,e,h,r,a,g,c,o,k,l,m,i,j;if(!this.listenersAttached){this.attachListeners()}f=Ext.Array.from(f);for(h=0,r=f.length;h<r;h++){a=f[h];a=Ext.factory(a,Ext.fx.Animation);d=a.getElement().getId();e=a.getName()||this.generateAnimationId();s[e]=d;a=a.getData();n=a.states;this.addKeyframesRule(e,n);b=p[d];if(!b){b=p[d]={}}b[e]=a;o=[];k=[];l=[];m=[];i=[];j=[];for(g in b){if(b.hasOwnProperty(g)){c=b[g];o.push(g);k.push(c.duration);l.push(c.easing);m.push(c.delay);i.push(c.direction);j.push(c.iteration)}}q[d]={'animation-name':o,'animation-duration':k,'animation-timing-function':l,'animation-delay':m,'animation-direction':i,'animation-iteration-count':j};if(a.preserveEndState){t[d]=n['100%']}}this.applyStyles(q)},addKeyframesRule:function(k,i){var e,f,d,g,c,h,b,a,j;g=this.getStyleSheet();c=g.cssRules;b=c.length;g.insertRule('@'+this.vendorPrefix+'keyframes '+k+'{}',b);d=c[b];for(e in i){f=i[e];c=d.cssRules;b=c.length;h=[];for(a in f){j=this.formatValue(f[a],a);a=this.formatName(a);h.push(a+':'+j)}d.insertRule(e+'{'+h.join(';')+'}',b)}return this},removeKeyframesRule:function(f){var b=this.getStyleSheet(),c=b.cssRules,a,e,d;for(a=0,e=c.length;a<e;a++){d=c[a];if(d.name===f){b.removeRule(a);break}}return this}});Ext.define('Ext.list.AbstractTreeItem',{extend:Ext.Widget,isTreeListItem:!0,cachedConfig:{expandable:!1,expanded:!1,iconCls:'',leaf:!0,loading:!1,selected:!1,selectedParent:!1},config:{iconClsProperty:'iconCls',indent:null,owner:null,node:null,over:null,parentItem:null,text:{lazy:!0,$value:''},textProperty:'text'},updateNode:function(b){if(b){var a=this,g=a.itemMap,e,h,i,d,f,c;a.element.dom.setAttribute('data-recordId',b.internalId);if(!g){e=b.childNodes;h=a.getOwner();a.itemMap=g={};for(d=0,i=e.length;d<i;++d){c=e[d];if(c.data.visible){f=h.createItem(c,a);g[c.internalId]=f;a.insertItem(f,null)}}}a.setExpanded(b.isExpanded());a.doNodeUpdate(b)}},updateSelected:function(b){var a;if(!this.isConfiguring){a=this.getParentItem();while(a&&!a.isRootListItem){a.setSelectedParent(b);a=a.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(e,b){var a=this,d=a.getOwner(),c=a.preventAnimation?null:d.getAnimation();a.nodeCollapseBegin(c,b);if(!c){a.nodeCollapseEnd(b)}},nodeCollapseBegin:function(d,c){var a=this,b=a.getOwner();a.setExpanded(!1);b.fireEvent('itemcollapse',b,a)},nodeCollapseEnd:function(a){if(!a&&!this.destroying){this.getOwner().updateLayout()}},nodeExpand:function(e){var a=this,d=a.getOwner(),c=a.getFloated(),b=!c&&d.getAnimation();a.nodeExpandBegin(b);if(!b){a.nodeExpandEnd()}},nodeExpandBegin:function(c){var a=this,b=a.getOwner();a.setExpanded(!0);b.fireEvent('itemexpand',b,a)},nodeExpandEnd:function(){if(!this.destroying){this.getOwner().updateLayout()}},nodeInsert:function(f,g){var a=this,d=a.getOwner(),h=a.itemMap,i=f.internalId,b=d.getItem(f),e=null,c;if(b){c=b.getParentItem();c.removeItem(b);if(c!==a){c.doUpdateExpandable();b.setParentItem(a)}}else {b=a.getOwner().createItem(f,a)}h[i]=b;if(g){e=h[g.internalId]}a.insertItem(b,e);a.doUpdateExpandable();d.fireEvent('iteminsert',d,a,b,e);d.updateLayout()},nodeRemove:function(f){var a=this,d=a.itemMap,c=a.getOwner(),e=f.internalId,b=d[e];if(b){delete d[e];a.removeItem(b);b.destroy();a.doUpdateExpandable();c.fireEvent('itemremove',c,a,b);c.updateLayout()}},nodeUpdate:function(a,b){this.doNodeUpdate(a)},onClick:function(c){var a=this,b=a.getOwner(),e=a.getNode(),d={event:c,item:a,node:e,tree:b,select:e.get('selectable')!==!1&&a.isSelectionEvent(c),toggle:a.isToggleEvent(c)};if(b.fireEvent('itemclick',b,d)!==!1){if(d.toggle){a.toggleExpanded();c.preventDefault()}if(d.select){b.setSelection(a.getNode())}}},removeItem:Ext.emptyFn,destroy:function(){var a=this,b=a.itemMap,c=a.getOwner(),d;if(b){for(d in b){b[d].destroy()}a.itemMap=null}if(c){c.removeItem(a.getNode())}a.setNode(null);a.setParentItem(null);a.setOwner(null);a.callParent()},privates:{doNodeUpdate:function(b,e){var a=this,d=this.getTextProperty(),c=this.getIconClsProperty();if(d){a.setText(b.data[d])}if(c){a.setIconCls(b.data[c])}a.setLoading(b.isLoading());a.setLeaf(b.isLeaf());a.doUpdateExpandable()},doUpdateExpandable:function(){var a=this.getNode();this.setExpandable(a.isExpandable())},toggleExpanded:function(){if(this.isExpanded()){this.collapse()}else {this.expand()}},updateIndent:function(c){var a=this.itemMap,b;for(b in a){a[b].setIndent(c)}},updateOwner:function(a){this.parent=a}}});Ext.define('Ext.list.RootTreeItem',{extend:Ext.list.AbstractTreeItem,isRootListItem:!0,element:{reference:'element',tag:'ul',cls:Ext.baseCSSPrefix+'treelist-root-container'},insertItem:function(b,a){if(a){b.element.insertBefore(a.element)}else {this.element.appendChild(b.element)}},isToggleEvent:function(a){return !1}});Ext.define('Ext.mixin.ItemRippler',{mixinId:'itemrippler',config:{itemRipple:null},shouldRippleItem:function(c,d){var a,b;if(d.getTarget(this.noItemRippleSelector,this.element)){return !1}a=c&&this.getItemRipple();if(a&&c.isWidget){b=c.shouldRipple(d);if(b){a=Ext.apply({},a,b)}}return a},rippleItem:function(d,c){if(!d){return}var a=this,h=c.type.match(a.rippleStateRe),b=a.shouldRippleItem(d,c),k=b&&b.release,j=k===!0,e=d.isWidget?d.el:d,i,l,f,g;if(b&&h&&j){a.$rippleStart=c.getXY()}if(b&&e&&((!h&&j)||(h&&k!==!0))){g=a.$rippledItems||(a.$rippledItems=[]);f=a.$rippleStart;if(f){i=c.getXY();l=Math.sqrt(Math.pow((i[0]-f[0]),2)+Math.pow((i[1]-f[1]),2));if(l<=8){e.ripple(c,b);g.push(e)}}else {e.ripple(c,b);g.push(e)}a.$rippleStart=null}},destroyAllRipples:function(){var a;for(a=this.$rippledItems;a&&a.length;){a.pop().destroyAllRipples()}},privates:{noItemRippleSelector:'.'+Ext.baseCSSPrefix+'item-no-ripple, '+'.'+Ext.baseCSSPrefix+'item-no-tap',rippleStateRe:/start|down/}});Ext.define('Ext.list.TreeItem',{extend:Ext.list.AbstractTreeItem,xtype:'treelistitem',collapsedCls:Ext.baseCSSPrefix+'treelist-item-collapsed',expandedCls:Ext.baseCSSPrefix+'treelist-item-expanded',floatedToolCls:Ext.baseCSSPrefix+'treelist-item-tool-floated',leafCls:Ext.baseCSSPrefix+'treelist-item-leaf',expandableCls:Ext.baseCSSPrefix+'treelist-item-expandable',hideIconCls:Ext.baseCSSPrefix+'treelist-item-hide-icon',loadingCls:Ext.baseCSSPrefix+'treelist-item-loading',selectedCls:Ext.baseCSSPrefix+'treelist-item-selected',selectedParentCls:Ext.baseCSSPrefix+'treelist-item-selected-parent',withIconCls:Ext.baseCSSPrefix+'treelist-item-with-icon',hoverCls:Ext.baseCSSPrefix+'treelist-item-over',rowHoverCls:Ext.baseCSSPrefix+'treelist-row-over',isTreeListItem:!0,config:{rowCls:null},rowClsProperty:'rowCls',element:{reference:'element',tag:'li',cls:Ext.baseCSSPrefix+'treelist-item',children:[{reference:'rowElement',cls:Ext.baseCSSPrefix+'treelist-row',children:[{reference:'wrapElement',cls:Ext.baseCSSPrefix+'treelist-item-wrap',children:[{reference:'iconElement',cls:Ext.baseCSSPrefix+'treelist-item-icon'},{reference:'textElement',cls:Ext.baseCSSPrefix+'treelist-item-text'},{reference:'expanderElement',cls:Ext.baseCSSPrefix+'treelist-item-expander'}]}]},{reference:'itemContainer',tag:'ul',cls:Ext.baseCSSPrefix+'treelist-container'},{reference:'toolElement',cls:Ext.baseCSSPrefix+'treelist-item-tool'}]},constructor:function(b){var a;this.callParent([b]);a=this.toolElement.dom;a.parentNode.removeChild(a)},getToolElement:function(){return this.toolElement},insertItem:function(b,a){if(a){b.element.insertBefore(a.element)}else {this.itemContainer.appendChild(b.element)}},isSelectionEvent:function(b){var a=this.getOwner();return (!this.isToggleEvent(b)||!a.getExpanderOnly()||a.getSelectOnExpander())},isToggleEvent:function(b){var a=!1;if(this.getOwner().getExpanderOnly()){a=b.target===this.expanderElement.dom}else {a=!this.itemContainer.contains(b.target)}return a},nodeCollapseBegin:function(b,c){var a=this,d=a.itemContainer,e;if(a.expanding){a.stopAnimation(a.expanding)}e=b&&d.getHeight();a.callParent([b,c]);if(b){d.dom.style.display='block';a.collapsingForExpand=c;a.collapsing=this.runAnimation(Ext.merge({from:{height:e},to:{height:0},callback:a.nodeCollapseDone,scope:a},b))}},nodeCollapseDone:function(c){var a=this,b=a.itemContainer;if(!a.destroying&&!a.destroyed){a.collapsing=null;b.dom.style.display='';b.setHeight(null);a.nodeCollapseEnd(a.collapsingForExpand)}},nodeExpandBegin:function(b){var a=this,c=a.itemContainer,d;if(a.collapsing){a.stopAnimation(a.collapsing)}a.callParent([b]);if(b){d=c.getHeight();c.setHeight(0);a.expanding=a.runAnimation(Ext.merge({to:{height:d},callback:a.nodeExpandDone,scope:a},b))}},nodeExpandDone:function(){this.expanding=null;this.itemContainer.setHeight(null);this.nodeExpandEnd()},removeItem:function(a){this.itemContainer.removeChild(a.element)},updateNode:function(b,a){this.syncIndent();this.callParent([b,a])},updateExpandable:function(a){this.updateExpandCls()},updateExpanded:function(b){var a=this.getNode();this.updateExpandCls();if(a){a.set('expanded',b)}},updateIconCls:function(b,c){var a=this,d=a.element;a.doIconCls(a.iconElement,b,c);a.doIconCls(a.toolElement,b,c);d.toggleCls(a.withIconCls,!!b);d.toggleCls(a.hideIconCls,b===null)},updateLeaf:function(a){this.element.toggleCls(this.leafCls,a)},updateLoading:function(a){this.element.toggleCls(this.loadingCls,a)},updateOver:function(b){var a=this;a.element.toggleCls(a.hoverCls,!!b);a.rowElement.toggleCls(a.rowHoverCls,b>1)},updateRowCls:function(b,a){this.rowElement.replaceCls(a,b)},updateSelected:function(b,e){var a=this,d=a.selectedCls,c=a.getToolElement();a.callParent([b,e]);a.element.toggleCls(d,b);if(c){c.toggleCls(d,b)}},updateSelectedParent:function(c){var a=this,b;a.element.toggleCls(a.selectedParentCls,c);b=a.getToolElement();if(b){b.toggleCls(a.selectedCls,c)}},updateText:function(a){this.textElement.update(a)},privates:{doNodeUpdate:function(a){this.callParent([a]);this.setRowCls(a&&a.data[this.rowClsProperty])},doIconCls:function(b,c,a){if(a){b.removeCls(a)}if(c){b.addCls(c)}},syncIndent:function(){var a=this,d=a.getIndent(),c=a.getNode(),b;if(c){b=c.data.depth-1;a.wrapElement.dom.style.marginLeft=(b*d)+'px'}},updateExpandCls:function(){if(!this.updatingExpandCls){var a=this,e=a.getExpandable(),b=a.element,f=a.getExpanded(),d=a.expandedCls,c=a.collapsedCls;a.updatingExpandCls=!0;b.toggleCls(a.expandableCls,e);if(e){b.toggleCls(d,f);b.toggleCls(c,!f)}else {b.removeCls([d,c])}a.updatingExpandCls=!1}},updateIndent:function(b,a){this.syncIndent();this.callParent([b,a])}}},function(a){a.prototype.floatedCls=[Ext.Widget.prototype.floatedCls,Ext.baseCSSPrefix+'treelist-item-floated']});Ext.define('Ext.overrides.list.TreeItem',{override:'Ext.list.TreeItem',runAnimation:function(a){return this.itemContainer.animate(a)},stopAnimation:function(a){a.end()},refreshInnerState:Ext.emptyFn,applyFloated:function(a,b){this.initialized=!0;this.callParent([a,b]);return a},updateFloated:function(c,g){var a=this,b,e=a.getToolElement(),d,f;if(c){a.wasExpanded=a.getExpanded();a.nextElementSibling=a.el.dom.nextSibling;a.setExpanded(!0)}else {f=a.wasExpanded;d=a.getNode();a.setExpanded(a.wasExpanded);if(!f&&d.isExpanded()){a.preventAnimation=!0;d.collapse();a.preventAnimation=!1}}a.callParent([c,g]);if(c){b=a.getOwner();a.floatWrap.addCls([Ext.baseCSSPrefix+'treelist',b.uiPrefix+b.getUi(),Ext.baseCSSPrefix+'treelist-float-wrap']);a.floatWrap.alignTo(e,'tl-tr');a.floatWrap.on({click:b.onClick,mouseover:b.onMouseOver,scope:b})}else {a.getOwner().rootItem.el.dom.insertBefore(a.el.dom,a.nextElementSibling)}e.toggleCls(a.floatedToolCls,c)}});Ext.define('Ext.list.Tree',{extend:Ext.Gadget,xtype:'treelist',mixins:[Ext.mixin.ItemRippler],expanderFirstCls:Ext.baseCSSPrefix+'treelist-expander-first',expanderOnlyCls:Ext.baseCSSPrefix+'treelist-expander-only',highlightPathCls:Ext.baseCSSPrefix+'treelist-highlight-path',microCls:Ext.baseCSSPrefix+'treelist-micro',uiPrefix:Ext.baseCSSPrefix+'treelist-',element:{reference:'element',cls:Ext.baseCSSPrefix+'treelist '+Ext.baseCSSPrefix+'unselectable',listeners:{click:'onClick',touchstart:'onTouchStart',touchend:'onTouchEnd',mouseenter:'onMouseEnter',mouseleave:'onMouseLeave',mouseover:'onMouseOver'},children:[{reference:'toolsElement',cls:Ext.baseCSSPrefix+'treelist-toolstrip',listeners:{click:'onToolStripClick',mouseover:'onToolStripMouseOver'}}]},cachedConfig:{animation:{duration:500,easing:'ease'},expanderFirst:!0,expanderOnly:!0},config:{floatLeafItems:!1,defaults:{xtype:'treelistitem'},highlightPath:null,iconSize:null,indent:null,micro:!1,overItem:null,selection:null,selectOnExpander:!1,singleExpand:null,store:null,ui:null},twoWayBindable:{selection:1},publishes:{selection:1},defaultBindProperty:'store',constructor:function(a){this.callParent([a]);this.publishState('selection',this.getSelection())},destroy:function(){var a=this;a.unfloatAll();a.activeFloater=null;a.setSelection(null);a.setStore(null);a.callParent()},updateOverItem:function(f,c){var e={},d=2,a,b;for(a=f;a;a=this.getItem(b.parentNode)){b=a.getNode();e[b.internalId]=!0;a.setOver(d);d=1}if(c&&!c.destroyed){for(a=c;a;a=this.getItem(b.parentNode)){b=a.getNode();if(e[b.internalId]){break}a.setOver(0)}}},applyMicro:function(a){return Boolean(a)},applySelection:function(a,c){var b=this.getStore();if(!b){a=null}if(b&&a!==null&&!(a instanceof Ext.data.Model)){a=b.getNodeById(a)}if(a&&a.get('selectable')===!1){a=c}return a},updateSelection:function(d,e){var b=this,a,c;if(!b.destroying){a=b.getItem(e);if(a){a.setSelected(!1)}a=b.getItem(d);if(a){a.setSelected(!0);while(c=a.getParentItem()){c.setExpanded(!0);a=c}}b.fireEvent('selectionchange',b,d)}},applyStore:function(a){return a&&Ext.StoreManager.lookup(a,'tree')},updateStore:function(c,b){var a=this,d;if(b){if(!b.destroyed){if(b.getAutoDestroy()){b.destroy()}else {a.storeListeners.destroy()}}a.removeRoot();a.storeListeners=null}if(c){a.storeListeners=c.on({destroyable:!0,scope:a,nodeappend:'onNodeAppend',nodecollapse:'onNodeCollapse',nodeexpand:'onNodeExpand',nodeinsert:'onNodeInsert',noderemove:'onNodeRemove',rootchange:'onRootChange',update:'onNodeUpdate',refresh:'onRefresh'});d=c.getRoot();if(d){a.createRootItem(d)}}if(!a.destroying){a.updateLayout()}},updateExpanderFirst:function(a){this.element.toggleCls(this.expanderFirstCls,a)},updateExpanderOnly:function(a){this.element.toggleCls(this.expanderOnlyCls,!a)},updateHighlightPath:function(a){this.element.toggleCls(this.highlightPathCls,a)},updateMicro:function(b){var a=this;if(!b){a.unfloatAll();a.activeFloater=null}a.element.toggleCls(a.microCls,b)},updateUi:function(e,b){var a=this,d=a.element,c=a.uiPrefix;if(b){d.removeCls(c+b)}if(e){d.addCls(c+e)}delete a.iconSize;a.syncIconSize()},getItem:function(a){var b=this.itemMap,c;if(a&&b){c=b[a.internalId]}return c||null},getItemConfig:function(b,a){return Ext.apply({parentItem:a.isRootListItem?null:a,owner:this,node:b,indent:this.getIndent()},this.getDefaults())},privates:{checkForOutsideClick:function(b){var a=this.activeFloater;if(!a.element.contains(b.target)){this.unfloatAll()}},collapsingForExpand:!1,createItem:function(d,f){var c=this,e=Ext.create(c.getItemConfig(d,f)),g=c.toolsElement,a,b;if(f.isRootListItem){a=e.getToolElement();if(a){b=c.findVisiblePreviousSibling(d);if(!b){g.insertFirst(a)}else {b=c.getItem(b);a.insertAfter(b.getToolElement())}a.dom.setAttribute('data-recordId',d.internalId);a.isTool=!0}}c.itemMap[d.internalId]=e;return e},createRootItem:function(c){var a=this,b;a.itemMap={};a.rootItem=b=new Ext.list.RootTreeItem({indent:a.getIndent(),node:c,owner:a});a.element.appendChild(b.element);a.itemMap[c.internalId]=b},findVisiblePreviousSibling:function(b){var a=b.previousSibling;while(a){if(a.data.visible){return a}a=a.previousSibling}return null},floatItem:function(b,c){var a=this,d;if(b.getFloated()){return}if(a.toolMouseListeners){a.toolMouseListeners.destroy();a.floaterMouseListeners.destroy();a.floaterMouseListeners=a.toolMouseListeners=null}a.unfloatAll();if(!c&&!a.getFloatLeafItems()&&b.getNode().isLeaf()){return}a.activeFloater=d=b;a.floatedByHover=c;b.setFloated(!0);if(c){a.toolMouseListeners=b.getToolElement().monitorMouseLeave(300,a.checkForMouseLeave,a);a.floaterMouseListeners=(b.floater||b).el.monitorMouseLeave(300,a.checkForMouseLeave,a);d.element.on('mouseover','onMouseOver',a)}else {Ext.on('mousedown','checkForOutsideClick',a)}},shouldRippleItem:function(a,b){if(a&&a.getSelected()){return !1}return this.mixins.itemrippler.shouldRippleItem.call(this,a,b)},onTouchStart:function(a){this.doItemRipple(a)},onTouchEnd:function(a){this.doItemRipple(a)},doItemRipple:function(b){var d=this,a=b.getTarget('[data-recordId]'),c;if(a){c=a.getAttribute('data-recordId');a=d.itemMap[c];if(a&&d.shouldRippleItem(a,b)){this.rippleItem(a,b)}}},onClick:function(c){var a=c.getTarget('[data-recordId]'),b;if(a){b=a.getAttribute('data-recordId');a=this.itemMap[b];if(a){a.onClick(c)}}},onMouseEnter:function(a){this.onMouseOver(a)},onMouseLeave:function(){this.setOverItem(null)},onMouseOver:function(b){var a=Ext.Component.from(b);this.setOverItem(a&&a.isTreeListItem&&a)},checkForMouseLeave:function(c){var a=this.activeFloater,b=c.getRelatedTarget();if(a){if(b!==a.getToolElement().dom&&!a.element.contains(b)){this.unfloatAll()}}},onNodeAppend:function(b,c){var a;if(b){a=this.itemMap[b.internalId];if(a){a.nodeInsert(c,null)}}},onNodeCollapse:function(b){var a=this.itemMap[b.internalId];if(a){a.nodeCollapse(b,this.collapsingForExpand)}},onNodeExpand:function(f){var a=this,b=a.itemMap[f.internalId],d,h,c,g,e;if(b){if(!b.isRootItem&&a.getSingleExpand()){a.collapsingForExpand=!0;g=(b.getParentItem()||a.rootItem).getNode();d=g.childNodes;for(c=0,h=d.length;c<h;++c){e=d[c];if(e!==f){e.collapse()}}a.collapsing=!1}b.nodeExpand(f)}},onNodeInsert:function(b,d,c){var a=this.itemMap[b.internalId];if(a){a.nodeInsert(d,c)}},onNodeRemove:function(b,d,c){var a;if(b&&!c){a=this.itemMap[b.internalId];if(a){a.nodeRemove(d)}}},onNodeUpdate:function(d,b,e,c){var a=this.itemMap[b.internalId];if(a){a.nodeUpdate(b,c)}},onRefresh:function(a){this.onRootChange(a.getRoot())},onRootChange:function(b){var a=this;a.removeRoot();if(b){a.createRootItem(b)}a.updateLayout();a.fireEvent('refresh',a)},removeItem:function(e){var c=this.itemMap,d=e.internalId,b,a;if(c){b=c[d];if(b.getParentItem()===null){a=b.getToolElement();if(a){this.toolsElement.removeChild(a)}}delete c[d]}},removeRoot:function(){var a=this,b=a.rootItem;if(b){a.element.removeChild(b.element);a.rootItem=a.itemMap=Ext.destroy(b)}},onToolStripClick:function(c){var a=c.getTarget('[data-recordId]'),b;if(a){b=a.getAttribute('data-recordId');a=this.itemMap[b];if(a){if(a===this.activeFloater){this.unfloatAll()}else {this.floatItem(a,!1)}}}},onToolStripMouseOver:function(c){var a=c.getTarget('[data-recordId]'),b;if(a){b=a.getAttribute('data-recordId');a=this.itemMap[b];if(a){this.floatItem(a,!0)}}},syncIconSize:function(){var a=this,b=a.iconSize||(a.iconSize=parseInt(a.element.getStyle('background-position'),10));a.setIconSize(b)},unfloatAll:function(){var a=this,b=a.activeFloater;if(b){b.setFloated(!1);a.activeFloater=null;if(a.floatedByHover){if(a.toolMouseListeners){a.toolMouseListeners.destroy();a.floaterMouseListeners.destroy();a.floaterMouseListeners=a.toolMouseListeners=null}b.element.un('mouseover','onMouseOver',a)}else {Ext.un('mousedown','checkForOutsideClick',a)}}},defaultIconSize:22,updateIconSize:function(a){this.setIndent(a||this.defaultIconSize)},updateIndent:function(b){var a=this.rootItem;if(a){a.setIndent(b)}}}});Ext.define('Ext.overrides.list.Tree',{override:'Ext.list.Tree',constructor:function(c){var a=this,b;a.callParent([c]);b=a.element;if(b.isPainted()){a.syncIconSize()}else {b.on({scope:a,painted:a.syncIconSize,single:!0})}}});Ext.define('Ext.mixin.ConfigProxy',function(a){return {extend:Ext.Mixin,mixinConfig:{id:'configproxy',extended:function(e,b,d){var c=d.proxyConfig;b.$configProxies=Ext.apply({},b.superclass.self.$configProxies);if(c){delete d.proxyConfig;a.processClass(b,c)}}},onClassMixedIn:function(c){var b=c.prototype,d=b.proxyConfig,e=b.initConfig;b.$proxiedConfigs=null;c.$configProxies={};b.initConfig=function(b){e.apply(this,arguments);this.$proxiedConfigs=null;return this};if(d){delete b.proxyConfig;a.processClass(c,d)}},getProxiedConfigs:function(k){var b=this,j=b.config,c=b.self.$configProxies[k],f=c&&c.length,d,h,e,g,i;if(f&&b.isConfiguring){h=b.$proxiedConfigs||(b.$proxiedConfigs={});while(f-->0){d=c[f];h[g=d.name]=d;if((i=j[g])!==undefined){(e||(e={}))[g]=i}}}return e},mergeProxiedConfigs:function(h,c,g){var e=this,b=c,d=e.getProxiedConfigs(h),f;if(d){if(!c){b=d}else if(c.constructor===Object){f=e.self.getConfigurator();b=f.merge(e,Ext.clone(c),d)}}if(g&&b===c){b=Ext.clone(b)}return b},statics:{processClass:function(l,o){var p=Ext.Config,e=l.prototype,q={},m=l.$configProxies,j,c,i,d,f,h,k,b,g,n;for(f in o){i=p.get(f).names.get;c=o[f];if(Ext.isArray(c)){h=null}else {h=c.methods;c=c.configs}if(!(g=m[f])){m[f]=g=[]}else {m[f]=g=g.slice()}for(d=0,k=h&&h.length;d<k;++d){if(!e[b=h[d]]){e[b]=a.wrapFn(i,b)}}for(d=0,k=c&&c.length;d<k;++d){j=p.get(n=c[d]);q[n]=undefined;g.push(j);if(!e[b=j.names.get]){e[b]=a.wrapGet(i,b)}if(!e[b=j.names.set]){e[b]=a.wrapSet(i,b,n)}}}l.addConfig(q)},wrapFn:function(b,c){return function(){var d=this[b]();return d&&d[c].apply(d,arguments)}},wrapGet:function(c,b){return function(){var d=this[c]();return d&&d[b]()}},wrapSet:function(d,c,b){return function(h){var g=this,f,e;if(!g.isConfiguring||h!==undefined){f=g[d]();e=g.$proxiedConfigs;if(e&&e[b]){delete e[b];f=null}if(f){f[c](h)}}return g}}}}});Ext.define('Ext.mixin.ConfigState',{extend:Ext.Mixin,mixinConfig:{id:'configstate'},alternateStateConfig:'',toggleConfigState:function(e){var a=this,b=a.capturedConfigState,c=a.getConfig(a.alternateStateConfig),d;if(!c){return}if(e){b={};for(d in c){b[d]=a.getConfig(d)}a.capturedConfigState=b;a.setConfig(c)}else if(!a.isConfiguring&&b){a.setConfig(b);delete a.capturedConfigState}}});Ext.define('Ext.mixin.Mashup',function(a){return {extend:'Ext.Mixin',mixinConfig:{id:'mashup',extended:function(c,b){a.process(b)}},statics:{process:function(g){var k=g.prototype,f=k.requiredScripts,c=g._classHooks,h=c.onCreated,j=g.prototype.xtypes,i=Ext.manifest.mashup||{},e=k.mashupConfig,d,b;if(f){delete k.requiredScripts;c.onCreated=function(){var m=this,k=[],l=Ext.Array.slice(arguments),n=i.redirect||{};f=k.concat(f);e=e&&i[e.key];if(j){for(d=0;!e&&d<j.length;++d){e=i[j[d]]}}for(d=0;d<f.length;d++){b=f[d];if(n[b]===!1){continue}b=n[b]||b;if(b.indexOf('{')>-1){if(e){b=new Ext.Template(b).apply(e)}}k.push(b)}if(!k.length){c.onCreated=h;c.onCreated.call(m,l);return}Ext.Loader.loadScripts({url:k,cache:!0,onError:function(d,b){g.scriptError=g.prototype.scriptError=b;c.onCreated=h;c.onCreated.call(m,l)},onLoad:function(){c.onCreated=h;c.onCreated.call(m,l)}})}}}},onClassMixedIn:function(b){a.process(b)}}});Ext.define('Ext.mixin.Selectable',{extend:Ext.Mixin,mixinConfig:{id:'selectable',after:{updateStore:'updateStore'}},config:{disableSelection:null,mode:'SINGLE',allowDeselect:!1,lastSelected:null,lastFocused:null,deselectOnContainerClick:!0,selected:!0,pruneRemoved:!0,selection:null,twoWayBindable:{selection:1},publishes:{selection:1}},modes:{SINGLE:!0,SIMPLE:!0,MULTI:!0},onNavigate:function(a){},selectableEventHooks:{add:'onSelectionStoreAdd',remove:'onSelectionStoreRemove',update:'onSelectionStoreUpdate',clear:{fn:'onSelectionStoreClear',priority:1000},load:'refreshSelection',refresh:'refreshSelection'},initSelectable:function(){this.publishState('selection',this.getSelection())},applySelected:function(a){if(!a.isCollection){a=new Ext.util.Collection(a)}a.addObserver(this);return a},applyMode:function(a){a=a?a.toUpperCase():'SINGLE';return this.modes[a]?a:'SINGLE'},updateStore:function(d,a){var b=this,c=Ext.apply({},b.selectableEventHooks,{scope:b});if(a&&Ext.isObject(a)&&a.isStore){if(a.autoDestroy){a.destroy()}else {a.un(c)}}if(d){d.on(c);b.refreshSelection()}},selectAll:function(c){var a=this,b=a.getStore().getRange();a.select(b,!0,c)},deselectAll:function(b){var a=this;a.deselect(a.getSelected().getRange(),b);a.setLastSelected(null);a.setLastFocused(null)},updateSelection:function(a){if(this.changingSelection){return}if(a){this.select(a)}else {this.deselectAll()}},selectWithEvent:function(b){var a=this,c=a.isSelected(b);switch(a.getMode()){case 'MULTI':case 'SIMPLE':if(c){a.deselect(b)}else {a.select(b,!0)};break;case 'SINGLE':if(a.getAllowDeselect()&&c){a.deselect(b)}else {a.select(b,!1)};break;}},selectRange:function(a,b,g){var f=this,h=f.getStore(),d=[],e,c;if(f.getDisableSelection()){return}if(a>b){e=b;b=a;a=e}for(c=a;c<=b;c++){d.push(h.getAt(c))}this.doMultiSelect(d,g)},select:function(a,e,c){var b=this,d;if(b.getDisableSelection()){return}if(typeof a==="number"){a=[b.getStore().getAt(a)]}if(!a){return}if(b.getMode()==="SINGLE"&&a){d=a.length?a[0]:a;b.doSingleSelect(d,c)}else {b.doMultiSelect(a,e,c)}},doSingleSelect:function(b,a){this.doMultiSelect([b],!1,a)},doMultiSelect:function(a,j,i){if(a===null||this.getDisableSelection()){return}a=!Ext.isArray(a)?[a]:a;var h=this,b=h.getSelected(),e=b.getCount(),k=h.getStore(),f=[],d,c,g;if(!j&&e){f=b.getRange()}for(c=0,g=a.length;c<g;c++){d=a[c];if(typeof d==='number'){a[c]=k.getAt(d)}}b.suppressEvent=i;b.splice(e,f,a);b.suppressEvent=!1},deselect:function(a,h){var e=this,c,f,d,b,g;if(e.getDisableSelection()){return}a=Ext.isArray(a)?a:[a];c=e.getSelected();f=e.getStore();for(b=0,g=a.length;b<g;b++){d=a[b];if(typeof d==='number'){a[b]=f.getAt(d)}}c.suppressEvent=h;c.remove(a);c.suppressEvent=!1},onCollectionRemove:function(a,e){var b=this,c=b.getLastSelected(),d=e.items;if(c&&!a.contains(c)){b.setLastSelected(a.last())}b.onItemDeselect(d,a.suppressEvent);if(!a.suppressEvent){b.fireSelectionChange(d)}},onCollectionAdd:function(a,d){var b=this,c=d.items;b.setLastSelected(a.last());b.onItemSelect(c,a.suppressEvent);if(!a.suppressEvent){b.fireSelectionChange(c)}},updateLastFocused:function(a,b){this.onLastFocusChanged(b,a)},fireSelectionChange:function(b){var a=this;a.changingSelection=!0;a.setSelection(a.getLastSelected()||null);a.changingSelection=!1;a.fireAction('selectionchange',[a,b],'getSelections')},getSelections:function(){return this.getSelected().getRange()},isSelected:function(a){a=Ext.isNumber(a)?this.getStore().getAt(a):a;return this.getSelected().indexOf(a)!==-1},hasSelection:function(){return this.getSelected().getCount()>0},refreshSelection:function(){var g=this,b=g.getSelected(),h=b.getRange(),j=h.length,a=g.getStore().getData(),f=[],i=[],e,c,d;if(g.getPruneRemoved()){a=a.getSource()||a;for(e=0;e<j;e++){c=h[e];d=a.get(a.getKey(c));if(d){if(d!==c){f.push(c);i.push(d)}}else {f.push(c)}}}b.suppressEvent=!0;b.splice(b.getCount(),f,i);b.suppressEvent=!1},onSelectionStoreRemove:function(h,e){var a=this,f=a.getSelected(),g=e.length,b,c,d;if(a.getDisableSelection()){return}for(d=0;d<g;d++){c=e[d];if(f.remove(c)){if(a.getLastSelected()==c){a.setLastSelected(null)}if(a.getLastFocused()==c){a.setLastFocused(null)}b=b||[];b.push(c)}}if(b){a.fireSelectionChange([b])}},onSelectionStoreClear:function(a){var b=a.getData().items;this.onSelectionStoreRemove(a,b)},getSelectionCount:function(){return this.getSelected().getCount()},onSelectionStoreAdd:Ext.emptyFn,onSelectionStoreUpdate:Ext.emptyFn,onItemSelect:Ext.emptyFn,onItemDeselect:Ext.emptyFn,onLastFocusChanged:Ext.emptyFn,onEditorKey:Ext.emptyFn},function(){});Ext.define('Ext.mixin.StoreWatcher',{mixinId:'storewatcher',config:{dataSource:null,owner:null,ownerListeners:{destroyable:!0,storechange:'onOwnerStoreChange'},sourceListeners:null,store:null,storeListeners:null},afterClassMixedIn:function(c){var e=this.getConfigurator(),b=c.prototype,d={},a;for(a in e.configs){if(b.hasOwnProperty(a)){d[a]=b[a];delete b[a]}}c.addConfig(d)},onOwnerStoreChange:function(b,a){this.setStore(a)},updateDataSource:function(a){this.syncListeners(a,'$sourceListeners','getSourceListeners')},updateOwner:function(a){var b=this,c=b.ownerProperty;if(c){b[c]=a}b.syncListeners(a,'$ownerListeners','getOwnerListeners');b.setStore(a?a.getStore():null)},applyStore:function(a){return (a&&!a.isEmptyStore)?a:null},updateStore:function(a){this.syncListeners(a,'$storeListeners','getStoreListeners');this.syncDataSource()},privates:{syncDataSource:function(){var b=this.getStore(),a;if(!b){a=null}else if(b.getDataSource){a=b.getDataSource()}else {a=b.getData()}this.setDataSource(a)},syncListeners:function(d,c,a){var b=this,e=b[c];if(e){b[c]=null;e.destroy()}if(d){a=b[a]();a=Ext.applyIf({destroyable:!0,scope:b},a);b[c]=d.on(a)}}}});Ext.define('Ext.mixin.StyleCacher',{extend:Ext.Mixin,mixinConfig:{id:'stylecacher'},getCachedStyle:function(c,b){var a=this.$styleCache;if(!a){a=this.$styleCache={}}if(!(b in a)){a[b]=Ext.fly(c).getStyle(b)}return a[b]}});Ext.define('Ext.perf.Accumulator',function(){var b=null,d=Ext.global['chrome'],c,a=function(){var b,c;a=Ext.now;if(Ext.isChrome&&d&&d.Interval){b=new d.Interval();b.start();a=function(){return b.microseconds()/1000}}else if(window.ActiveXObject){try{c=new ActiveXObject('SenchaToolbox.Toolbox');Ext.senchaToolbox=c;a=function(){return c.milliseconds}}catch(e){}}Ext.perf.getTimestamp=Ext.perf.Accumulator.getTimestamp=a;return a()};function adjustSet(a,b){a.sum+=b;a.min=Math.min(a.min,b);a.max=Math.max(a.max,b)}function leaveFrame(f){var d=f?f:(a()-this.time),e=this,c=e.accum;++c.count;if(!--c.depth){adjustSet(c.total,d)}adjustSet(c.pure,d-e.childTime);b=e.parent;if(b){++b.accum.childCount;b.childTime+=d}}function makeSet(){return {min:Number.MAX_VALUE,max:0,sum:0}}function makeTap(b,a){return function(){var c=b.enter(),d=a.apply(this,arguments);c.leave();return d}}function setToJSON(d,e,b,c){var a={avg:0,min:c.min,max:c.max,sum:0};if(d){b=b||0;a.sum=c.sum-e*b;a.avg=a.sum/d}return a}return {constructor:function(b){var a=this;a.count=a.childCount=a.depth=a.maxDepth=0;a.pure=makeSet();a.total=makeSet();a.name=b},statics:{getTimestamp:a},format:function(b){var a;if(!c){c=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(a){return Math.round(a*100)/100}})}a=this.getData(b);a.name=this.name;a.pure.type='Pure';a.total.type='Total';a.times=[a.pure,a.total];return c.apply(a)},getData:function(b){var a=this;return {count:a.count,childCount:a.childCount,depth:a.maxDepth,pure:setToJSON(a.count,a.childCount,b,a.pure),total:setToJSON(a.count,a.childCount,b,a.total)}},enter:function(){var c=this,d={accum:c,leave:leaveFrame,childTime:0,parent:b};++c.depth;if(c.maxDepth<c.depth){c.maxDepth=c.depth}b=d;d.time=a();return d},monitor:function(c,a,b){var d=this.enter();if(b){c.apply(a,b)}else {c.call(a)}d.leave()},report:function(){Ext.log(this.format())},tap:function(d,g){var j=this,k=typeof g==='string'?[g]:g,b,f,a,h,e,c,i,l;l=function(){if(typeof d==='string'){b=Ext.global;h=d.split('.');for(a=0,e=h.length;a<e;++a){b=b[h[a]]}}else {b=d}for(a=0,e=k.length;a<e;++a){c=k[a];f=c.charAt(0)==='!';if(f){c=c.substring(1)}else {f=!(c in b.prototype)}i=f?b:b.prototype;i[c]=makeTap(j,i[c])}};Ext.ClassManager.onCreated(l,j,d);return j}}},function(){Ext.perf.getTimestamp=this.getTimestamp});Ext.define('Ext.perf.Monitor',{singleton:!0,alternateClassName:'Ext.Perf',constructor:function(){this.accumulators=[];this.accumulatorsByName={}},calibrate:function(){var d=new Ext.perf.Accumulator('$'),g=d.total,a=Ext.perf.Accumulator.getTimestamp,e=0,f,c,b;b=a();do{f=d.enter();f.leave();++e}while(g.sum<100);c=a();return (c-b)/e},get:function(b){var c=this,a=c.accumulatorsByName[b];if(!a){c.accumulatorsByName[b]=a=new Ext.perf.Accumulator(b);c.accumulators.push(a)}return a},enter:function(a){return this.get(a).enter()},monitor:function(b,c,a){this.get(b).monitor(c,a)},report:function(){var a=this,b=a.accumulators,c=a.calibrate();b.sort(function(a,b){return (a.name<b.name)?-1:((b.name<a.name)?1:0)});a.updateGC();Ext.log('Calibration: '+Math.round(c*100)/100+' msec/sample');Ext.each(b,function(a){Ext.log(a.format(c))})},getData:function(c){var a={},b=this.accumulators;Ext.each(b,function(b){if(c||b.count){a[b.name]=b.getData()}});return a},reset:function(){Ext.each(this.accumulators,function(b){var a=b;a.count=a.childCount=a.depth=a.maxDepth=0;a.pure={min:Number.MAX_VALUE,max:0,sum:0};a.total={min:Number.MAX_VALUE,max:0,sum:0}})},updateGC:function(){var b=this.accumulatorsByName.GC,c=Ext.senchaToolbox,a;if(b){b.count=c.garbageCollectionCounter||0;if(b.count){a=b.pure;b.total.sum=a.sum=c.garbageCollectionMilliseconds;a.min=a.max=a.sum/b.count;a=b.total;a.min=a.max=a.sum/b.count}}},watchGC:function(){var a=Ext.senchaToolbox;Ext.perf.getTimestamp();if(a){this.get("GC");a.watchGarbageCollector(!1)}},setup:function(a){var d,c,f,b,e;if(!a){a={render:{'Ext.Component':'render'},layout:{'Ext.layout.Context':'run'}}}this.currentConfig=a;for(d in a){if(a.hasOwnProperty(d)){c=a[d];f=Ext.Perf.get(d);for(b in c){if(c.hasOwnProperty(b)){e=c[b];f.tap(b,e)}}}}this.watchGC()},setupLog:function(e){var a,f,d,b,c;for(a in e){if(e.hasOwnProperty(a)){f=Ext.ClassManager.get(a);if(f){d=e[a];c={};for(b in d){c[b]=(function(b,a){return function(){var g,c,f,d,h;g=+Date.now();h=this.callParent(arguments);c=+Date.now()-g;if(window.console&&c>0){d=a==='this'?this:typeof a==='string'?this[a]:typeof a==='number'?arguments[a]:null;if(d){f=d.id}if(f!=null){console.log(b+' for '+f+': '+c+'ms')}else {console.log(b+' for unknown: '+c+'ms')}if(console.trace){console.trace()}}return h}})(b,d[b])}Ext.override(f,c)}}}}});Ext.define('Ext.plugin.AbstractClipboard',{extend:Ext.plugin.Abstract,cachedConfig:{formats:{text:{get:'getTextData',put:'putTextData'}}},config:{memory:null,source:'system',system:'text',gridListeners:null},destroy:function(){var a=this,c=a.keyMap,b=a.shared;Ext.destroy(a.destroyListener);if(c){a.keyMap=Ext.destroy(c);if(!--b.counter){b.textArea=Ext.destroy(b.textArea)}}else {a.renderListener=Ext.destroy(a.renderListener)}a.callParent()},init:function(b){var a=this,c=a.getGridListeners();if(b.rendered){a.finishInit(b)}else if(c){a.renderListener=b.on(Ext.apply({scope:a,destroyable:!0,single:!0},c))}},onCmpReady:function(){this.renderListener=null;this.finishInit(this.getCmp())},getTarget:function(a){return a.el},privates:{shared:{counter:0,data:null,textArea:null},applyMemory:function(a){a=this.applySource(a);return a},applySource:function(a){if(a){if(Ext.isString(a)){a=[a]}else if(a.length===0){a=null}}return a||null},doCutCopy:function(h,g){var a=this,d=a.allFormats||a.syncFormats(),c=a.getData(g,d),f=a.getMemory(),b=a.getSystem(),e;if(a.validateAction(h)===!1){return}a.shared.data=f&&c;if(b){e=c[b];if(d[b]<3){delete c[b]}a.setClipboardData(e)}},doPaste:function(a,c){var b=this.getFormats();this[b[a].put](c,a)},finishInit:function(b){var a=this;a.keyMap=new Ext.util.KeyMap({target:a.getTarget(b),ignoreInputFields:!0,binding:[{ctrl:!0,key:'x',fn:a.onCut,scope:a},{ctrl:!0,key:'c',fn:a.onCopy,scope:a},{ctrl:!0,key:'v',fn:a.onPaste,scope:a}]});++a.shared.counter;a.destroyListener=b.on({destroyable:!0,destroy:'destroy',scope:a})},getData:function(h,a){var f=this,e=f.getFormats(),d,g,b,c;if(Ext.isString(a)){d=f[e[a].get](a,h)}else {d={};c=[];if(a){for(b in a){c.push(b)}}else {c=Ext.Object.getAllKeys(e)}for(g=c.length;g-->0;){d[b]=f[e[b].get](b,h&&!g)}}return d},getHiddenTextArea:function(){var b=this.shared,a;a=b.textArea;if(!a){a=b.textArea=Ext.getBody().createChild({tag:'textarea',tabIndex:-1,style:{position:'absolute',top:'-1000px',width:'1px',height:'1px'}});a.suspendFocusEvents()}return a},onCopy:function(b,a){this.doCutCopy(a,!1)},onCut:function(b,a){this.doCutCopy(a,!0)},onPaste:function(h,g){var b=this,d=b.shared.data,e=b.getSource(),c,f,a;if(b.validateAction(g)===!1){return}if(e){for(c=0,f=e.length;c<f;++c){a=e[c];if(a==='system'){a=b.getSystem();b.pasteClipboardData(a);break}else if(d&&(a in d)){b.doPaste(a,d[a]);break}}}},pasteClipboardData:function(e){var c=this,d=window.clipboardData,b,a;if(d&&d.getData){c.doPaste(e,d.getData("text"))}else {a=Ext.Element.getActiveElement(!0);b=c.getHiddenTextArea().dom;b.value='';if(a){a.suspendFocusEvents()}b.focus();Ext.defer(function(){if(a){a.focus();a.resumeFocusEvents()}c.doPaste(e,b.value);b.value=''},100,c)}},setClipboardData:function(d){var e=this,c=window.clipboardData,b,a;if(c&&c.setData){c.setData("text",d)}else {b=e.getHiddenTextArea().dom;a=Ext.Element.getActiveElement(!0);b.value=d;if(a){a.suspendFocusEvents()}b.focus();b.select();Ext.defer(function(){b.value='';if(a){a.focus();a.resumeFocusEvents()}},50)}},syncFormats:function(){var c=this,a={},b=c.getMemory(),f=c.getSystem(),d,e;if(f){a[f]=1}if(b){for(d=b.length;d-->0;){e=b[d];a[e]=a[e]?3:2}}return c.allFormats=a},updateMemory:function(){this.allFormats=null},updateSystem:function(){this.allFormats=null},validateAction:Ext.privateFn}});Ext.define('Ext.plugin.MouseEnter',{extend:Ext.plugin.Abstract,alias:'plugin.mouseenter',element:'el',init:function(c){var a=this,d={mouseover:'onMouseEvent',scope:a,destroyable:!0},b=a.element;if(a.leaveHandler||a.delay){d.mouseout='onMouseEvent'}if(typeof b==='string'){b=c[a.element]}if(b){a.mouseListener=Ext.get(b).on(d)}else {c.on({render:function(){a.mouseListener=c[a.element].on(d)},single:!0})}},onMouseEvent:function(c){var a=this,b=c.getTarget(a.delegate);if(b&&b!==c.getRelatedTarget(a.delegate)){if(a.delay){Ext.undefer(a.mouseEventTimer);a.mouseEventTimer=Ext.defer(a.handleMouseEvent,a.delay,a,[c,b])}else {a.handleMouseEvent(c,b)}}},handleMouseEvent:function(b,c){var a=this;if(b.type==='mouseover'){Ext.callback(a.handler,null,[b,c],0,a.cmp,a.scope)}else if(a.leaveHandler){Ext.callback(a.leaveHandler,null,[b,c],0,a.cmp,a.scope)}},destroy:function(){Ext.destroy(this.mouseListener);this.callParent()}});Ext.define('Ext.sparkline.Shape',{constructor:function(b,e,d,c){var a=this;a.target=b;a.id=e;a.type=d;a.args=c},append:function(){this.target.appendShape(this);return this}});Ext.define('Ext.sparkline.CanvasBase',{shapeCount:0,_pxregex:/(\d+)(px)?\s*$/i,constructor:function(a){this.owner=a;this.rtl=this.owner.getInherited().rtl},setWidth:function(a){this.pixelWidth=a},setHeight:function(a){this.pixelHeight=a},drawLine:function(c,e,d,f,a,b){return this.drawShape([[c,e],[d,f]],a,b)},drawShape:function(d,b,a,c){return this._genShape('Shape',[d,b,a,c])},drawCircle:function(e,f,d,b,a,c){return this._genShape('Circle',[e,f,d,b,a,c])},drawPieSlice:function(f,g,e,a,d,c,b){return this._genShape('PieSlice',[f,g,e,a,d,c,b])},drawRect:function(e,f,d,c,b,a){return this._genShape('Rect',[e,f,d,c,b,a])},getElement:function(){return this.el},getLastShapeId:function(){return this.lastShapeId},reset:function(){},_genShape:function(c,a){var b=this.shapeCount++;a.unshift(b);return new Ext.sparkline.Shape(this,b,c,a)},appendShape:function(a){},replaceWithShape:function(a,b){},insertAfterShape:function(a,b){},removeShapeId:function(a){},getShapeAt:function(a,b){},render:function(){}});Ext.define('Ext.sparkline.CanvasCanvas',{extend:Ext.sparkline.CanvasBase,statics:{contextOverrides:(function(){var a=window.devicePixelRatio||1;return {moveTo:function(b,c){if(this.rtl){b=this.canvas.width-b-1}this.$moveTo(b*a,c*a)},lineTo:function(b,c){if(this.rtl){b=this.canvas.width-b-1}this.$lineTo(b*a,c*a)},arc:function(b,g,f,d,e,c){if(this.rtl){b=this.canvas.width-b-1}this.$arc(b*a,g*a,f*a,d,e,c)},clearRect:function(b,e,c,d){if(this.rtl){b=this.canvas.width-b-c}this.$clearRect(b*a,e*a,c*a,d*a)}}})()},setWidth:function(a){this.callParent(arguments);this.owner.element.dom.width=a*(window.devicePixelRatio||1)},setHeight:function(a){this.callParent(arguments);this.owner.element.dom.height=a*(window.devicePixelRatio||1)},onOwnerUpdate:function(){var a=this;a.el=a.owner.element;a.interact=!a.owner.initialConfig.disableInteraction;a.shapes={};a.shapeseq=[];a.currentTargetShapeId=a.lastShapeId=null},_getContext:function(e,d,f){var a=this.context,b,c;if(!a){this.context=a=this.el.dom.getContext('2d');b=Ext.sparkline.CanvasCanvas.contextOverrides;for(c in b){a['$'+c]=a[c]}Ext.apply(a,b);a.rtl=this.rtl}if(e!=null){a.strokeStyle=e}a.lineWidth=f||1;if(d!=null){a.fillStyle=d}return a},reset:function(){var a=this._getContext();a.clearRect(0,0,this.pixelWidth,this.pixelHeight);this.shapes={};this.shapeseq=[];this.currentTargetShapeId=this.lastShapeId=null},_drawShape:function(i,b,e,d,h){var a=this._getContext(e,d,h),f=this.rtl?-0.5:0.5,c,g;a.beginPath();a.moveTo(b[0][0]+f,b[0][1]+0.5);for(c=1,g=b.length;c<g;c++){a.lineTo(b[c][0]+f,b[c][1]+0.5)}if(e!=null){a.stroke()}if(d!=null){a.fill()}if(this.targetX!=null&&this.targetY!=null&&a.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=i}},_drawCircle:function(e,g,h,f,c,b,d){var a=this._getContext(c,b,d);a.beginPath();a.arc(g,h,f,0,2*Math.PI,!1);if(this.targetX!=null&&this.targetY!=null&&a.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=e}if(c!=null){a.stroke()}if(b!=null){a.fill()}},_drawPieSlice:function(h,b,c,i,f,g,e,d){var a=this._getContext(e,d);a.beginPath();a.moveTo(b,c);a.arc(b,c,i,f,g,!1);a.lineTo(b,c);a.closePath();if(e!=null){a.stroke()}if(d){a.fill()}if(this.targetX!==undefined&&this.targetY!==undefined&&a.isPointInPath(this.targetX,this.targetY)){this.currentTargetShapeId=h}},_drawRect:function(g,a,b,d,c,f,e){return this._drawShape(g,[[a,b],[a+d,b],[a+d,b+c],[a,b+c],[a,b]],f,e)},appendShape:function(a){this.shapes[a.id]=a;this.shapeseq.push(a.id);this.lastShapeId=a.id;return a.id},replaceWithShape:function(d,c){var b=this.shapeseq,a;this.shapes[c.id]=c;for(a=b.length;a--;){if(b[a]===d){b[a]=c.id}}delete this.shapes[d]},replaceWithShapes:function(e,c){var b=this.shapeseq,f={},d,a,g;for(a=e.length;a--;){f[e[a]]=!0}for(a=b.length;a--;){d=b[a];if(f[d]){b.splice(a,1);delete this.shapes[d];g=a}}for(a=c.length;a--;){b.splice(g,0,c[a].id);this.shapes[c[a].id]=c[a]}},insertAfterShape:function(d,c){var b=this.shapeseq,a;for(a=b.length;a--;){if(b[a]===d){b.splice(a+1,0,c.id);this.shapes[c.id]=c;return}}},removeShapeId:function(c){var b=this.shapeseq,a;for(a=b.length;a--;){if(b[a]===c){b.splice(a,1);break}}delete this.shapes[c]},getShapeAt:function(a,b){if(this.rtl){a=this.el.dom.width-a-1}this.targetX=a;this.targetY=b;this.render();return this.currentTargetShapeId},render:function(){var c=this.shapeseq,g=this.shapes,e=c.length,f=this._getContext(),d,b,a;f.clearRect(0,0,this.pixelWidth,this.pixelHeight);for(a=0;a<e;a++){d=c[a];b=g[d];this['_draw'+b.type].apply(this,b.args)}if(!this.interact){this.shapes={};this.shapeseq=[]}}});Ext.define('Ext.sparkline.VmlCanvas',{extend:Ext.sparkline.CanvasBase,setWidth:function(b){var a=this;a.callParent(arguments);a.owner.groupEl.dom.coordsize=a.width+' '+(a.height||0);a.owner.groupEl.dom.style.width=b+'px'},setHeight:function(b){var a=this;a.callParent(arguments);a.owner.groupEl.dom.coordsize=(a.width||0)+' '+a.height;a.owner.groupEl.dom.style.height=b+'px'},onOwnerUpdate:function(){var a=this;a.group=a.owner.groupEl;a.el=a.owner.element;a.prerender=[]},_drawShape:function(l,d,f,e,c){var a=[],g,i,j,h,k,b;for(b=0,k=d.length;b<k;b++){a[b]=(d[b][0])+','+(d[b][1])}g=a.splice(0,1);c=c==null?1:c;i=f==null?' stroked="false" ':' strokeWeight="'+c+'px" strokeColor="'+f+'" ';j=e==null?' filled="false"':' fillColor="'+e+'" filled="true" ';h=a[0]===a[a.length-1]?'x ':'';return ['<svml:shape coordorigin="0 0" coordsize="',this.pixelWidth,' ',this.pixelHeight,'" id="jqsshape',l,'" ',i,j,' style="position:absolute;height:',this.pixelHeight,'px;width:',this.pixelWidth,'px" ',' path="m ',g,' l ',a.join(', '),' ',h,'e"></svml:shape>'].join('')},_drawCircle:function(j,g,h,a,d,c,i){var b=a*2,e,f;g-=a;h-=a;e=d==null?' stroked="false" ':' strokeWeight="'+i+'px" strokeColor="'+d+'" ';f=c==null?' filled="false"':' fillColor="'+c+'" filled="true" ';return ['<svml:oval id="jqsshape',j,'" ',e,f,' style="position:absolute;top:',h,'px; left:',g,'px;width:',b,'px;height:',b,'px"></svml:oval>'].join('')},_drawPieSlice:function(q,d,e,a,b,c,k,j){var n,o=this.pixelWidth,l=this.pixelHeight,f,g,h,i,m,p;m=k==null?' stroked="false" ':' strokeWeight="1px" strokeColor="'+k+'" ';p=j==null?' filled="false"':' fillColor="'+j+'" filled="true" ';if(b===c){return ''}if((c-b)===(2*Math.PI)){b=0;c=(2*Math.PI)}f=d+Math.round(Math.cos(b)*a);g=e+Math.round(Math.sin(b)*a);h=d+Math.round(Math.cos(c)*a);i=e+Math.round(Math.sin(c)*a);if(f===h&&g===i){if((c-b)<Math.PI){return ''}f=h=d+a;g=i=e}if(f===h&&g===i&&(c-b)<Math.PI){return ''}n=[d-a,e-a,d+a,e+a,f,g,h,i];return ['<svml:shape coordorigin="0 0" coordsize="',o,' ',l,'" id="jqsshape',q,'" ',m,p,' style="position:absolute;height:',l,'px;width:',o,'px" path="m ',d,',',e,' wa ',n.join(', '),' x e"></svml:shape>'].join('')},_drawRect:function(g,a,b,d,c,f,e){return this._drawShape(g,[[a,b],[a,b+c],[a+d,b+c],[a+d,b],[a,b]],f,e)},reset:function(){Ext.fly(this.group).empty()},appendShape:function(a){this.prerender.push(this['_draw'+a.type].apply(this,a.args));this.lastShapeId=a.id;return a.id},replaceWithShape:function(c,a){var b=this.el.getById('jqsshape'+c,!0),d=this['_draw'+a.type].apply(this,a.args);b.outerHTML=d},replaceWithShapes:function(b,c){var e=this.el.getById('jqsshape'+b[0],!0),d='',f=c.length,a;for(a=0;a<f;a++){d+=this['_draw'+c[a].type].apply(this,c[a].args)}e.outerHTML=d;for(a=1;a<b.length;a++){this.el.getById('jqsshape'+b[a]).destroy()}},insertAfterShape:function(c,a){var b=this.el.getById('jqsshape'+c,!0),d=this['_draw'+a.type].apply(this,a.args);b.insertAdjacentHTML('afterEnd',d)},removeShapeId:function(b){var a=this.el.getById('jqsshape'+b,!0);this.group.removeChild(a)},getShapeAt:function(b,c){var a=this.el.id.substr(8);return a},render:function(){this.group.dom.innerHTML=this.prerender.join('')}},function(){Ext.onInternalReady(function(){var a=document;if(a.namespaces&&!a.namespaces.svml){a.namespaces.add("svml","urn:schemas-microsoft-com:vml",'#default#VML')}})});Ext.define('Ext.util.Color',{alternateClassName:'Ext.draw.Color',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:!0,lightnessFactor:0.2,constructor:function(d,b,c,a){this.setRGB(d,b,c,a)},clone:function(){var a=this;return new this.self(a.r,a.g,a.b,a.a)},setRGB:function(e,c,d,b){var a=this;a.r=Math.min(255,Math.max(0,e));a.g=Math.min(255,Math.max(0,c));a.b=Math.min(255,Math.max(0,d));if(b===undefined){a.a=1}else {a.a=Math.min(1,Math.max(0,b))}},getBrightness:function(){var c=this.r/255*100,b=this.g/255*100,a=this.b/255*100;return ((c*299)+(b*587)+(a*114))/1000},getGrayscale:function(){return this.r*0.3+this.g*0.59+this.b*0.11},getHSL:function(){var h=this,f=h.r/255,e=h.g/255,g=h.b/255,b=Math.max(f,e,g),d=Math.min(f,e,g),c=b-d,a,j=0,i=0.5*(b+d);if(d!==b){j=(i<=0.5)?c/(b+d):c/(2-b-d);if(f===b){a=60*(e-g)/c}else if(e===b){a=120+60*(g-f)/c}else {a=240+60*(f-e)/c}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,i]},getHSV:function(){var g=this,d=g.r/255,c=g.g/255,f=g.b/255,b=Math.max(d,c,f),i=Math.min(d,c,f),e=b-i,a,j=0,h=b;if(i!=b){j=h?e/h:0;if(d===b){a=60*(c-f)/e}else if(c===b){a=60*(f-d)/e+120}else {a=60*(d-c)/e+240}if(a<0){a+=360}if(a>=360){a-=360}}return [a,j,h]},setHSL:function(f,g,c){var d=this,h=Math.abs,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=g*(1-h(2*c-1));e=b*(1-h(f%2-1));a=c-b/2;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},setHSV:function(f,g,c){var d=this,b,e,a;f=(f%360+360)%360;g=g>1?1:g<0?0:g;c=c>1?1:c<0?0:c;if(g===0||f===null){c*=255;d.setRGB(c,c,c)}else {f/=60;b=c*g;e=b*(1-Math.abs(f%2-1));a=c-b;a*=255;b*=255;e*=255;switch(Math.floor(f)){case 0:d.setRGB(b+a,e+a,a);break;case 1:d.setRGB(e+a,b+a,a);break;case 2:d.setRGB(a,b+a,e+a);break;case 3:d.setRGB(a,e+a,b+a);break;case 4:d.setRGB(e+a,a,b+a);break;case 5:d.setRGB(b+a,a,e+a);break;}}return d},createLighter:function(b){var a=this.clone();a.lighten(b);return a},lighten:function(a){var b;if(!a&&a!==0){a=this.lightnessFactor}b=this.getHSL();this.setHSL(b[0],b[1],Ext.Number.constrain(b[2]+a,0,1))},createDarker:function(b){var a=this.clone();a.darken(b);return a},darken:function(a){if(!a&&a!==0){a=this.lightnessFactor}return this.lighten(-a)},toString:function(){var a=this,b=Math.round,e,d,c;if(a.a===1){e=b(a.r).toString(16);d=b(a.g).toString(16);c=b(a.b).toString(16);e=(e.length===1)?'0'+e:e;d=(d.length===1)?'0'+d:d;c=(c.length===1)?'0'+c:c;return ['#',e,d,c].join('')}else {return 'rgba('+[b(a.r),b(a.g),b(a.b),a.a===0?0:a.a.toFixed(15)].join(', ')+')'}},toHex:function(e){var d=this.r,c=this.g,b=this.b,a=b|(c<<8)|(d<<16);return '#'+('000000'+a.toString(16)).slice(-6)},setFromString:function(b){var a,c,e,d,g=1,f=parseInt;if(b===Ext.util.Color.NONE){this.r=this.g=this.b=this.a=0;return this}if((b.length===4||b.length===7)&&b.substr(0,1)==='#'){a=b.match(Ext.util.Color.hexRe);if(a){c=f(a[1],16)>>0;e=f(a[2],16)>>0;d=f(a[3],16)>>0;if(b.length===4){c+=(c*16);e+=(e*16);d+=(d*16)}}}else if((a=b.match(Ext.util.Color.rgbToHexRe))){c=+a[1];e=+a[2];d=+a[3]}else if((a=b.match(Ext.util.Color.rgbaToHexRe))){c=+a[1];e=+a[2];d=+a[3];g=+a[4]}else {if(Ext.util.Color.ColorList.hasOwnProperty(b.toLowerCase())){return this.setFromString(Ext.util.Color.ColorList[b.toLowerCase()])}}if(typeof c==='undefined'){return this}this.r=c;this.g=e;this.b=d;this.a=g;return this}},function(){var a=new this();this.addStatics({fly:function(b,d,e,c){switch(arguments.length){case 1:a.setFromString(b);break;case 3:case 4:a.setRGB(b,d,e,c);break;default:return null;}return a},ColorList:{aliceblue:'#f0f8ff',antiquewhite:'#faebd7',aqua:'#00ffff',aquamarine:'#7fffd4',azure:'#f0ffff',beige:'#f5f5dc',bisque:'#ffe4c4',black:'#000000',blanchedalmond:'#ffebcd',blue:'#0000ff',blueviolet:'#8a2be2',brown:'#a52a2a',burlywood:'#deb887',cadetblue:'#5f9ea0',chartreuse:'#7fff00',chocolate:'#d2691e',coral:'#ff7f50',cornflowerblue:'#6495ed',cornsilk:'#fff8dc',crimson:'#dc143c',cyan:'#00ffff',darkblue:'#00008b',darkcyan:'#008b8b',darkgoldenrod:'#b8860b',darkgray:'#a9a9a9',darkgreen:'#006400',darkkhaki:'#bdb76b',darkmagenta:'#8b008b',darkolivegreen:'#556b2f',darkorange:'#ff8c00',darkorchid:'#9932cc',darkred:'#8b0000',darksalmon:'#e9967a',darkseagreen:'#8fbc8f',darkslateblue:'#483d8b',darkslategray:'#2f4f4f',darkturquoise:'#00ced1',darkviolet:'#9400d3',deeppink:'#ff1493',deepskyblue:'#00bfff',dimgray:'#696969',dodgerblue:'#1e90ff',firebrick:'#b22222',floralwhite:'#fffaf0',forestgreen:'#228b22',fuchsia:'#ff00ff',gainsboro:'#dcdcdc',ghostwhite:'#f8f8ff',gold:'#ffd700',goldenrod:'#daa520',gray:'#808080',green:'#008000',greenyellow:'#adff2f',honeydew:'#f0fff0',hotpink:'#ff69b4',indianred:'#cd5c5c',indigo:'#4b0082',ivory:'#fffff0',khaki:'#f0e68c',lavender:'#e6e6fa',lavenderblush:'#fff0f5',lawngreen:'#7cfc00',lemonchiffon:'#fffacd',lightblue:'#add8e6',lightcoral:'#f08080',lightcyan:'#e0ffff',lightgoldenrodyellow:'#fafad2',lightgray:'#d3d3d3',lightgrey:'#d3d3d3',lightgreen:'#90ee90',lightpink:'#ffb6c1',lightsalmon:'#ffa07a',lightseagreen:'#20b2aa',lightskyblue:'#87cefa',lightslategray:'#778899',lightsteelblue:'#b0c4de',lightyellow:'#ffffe0',lime:'#00ff00',limegreen:'#32cd32',linen:'#faf0e6',magenta:'#ff00ff',maroon:'#800000',mediumaquamarine:'#66cdaa',mediumblue:'#0000cd',mediumorchid:'#ba55d3',mediumpurple:'#9370d8',mediumseagreen:'#3cb371',mediumslateblue:'#7b68ee',mediumspringgreen:'#00fa9a',mediumturquoise:'#48d1cc',mediumvioletred:'#c71585',midnightblue:'#191970',mintcream:'#f5fffa',mistyrose:'#ffe4e1',moccasin:'#ffe4b5',navajowhite:'#ffdead',navy:'#000080',oldlace:'#fdf5e6',olive:'#808000',olivedrab:'#6b8e23',orange:'#ffa500',orangered:'#ff4500',orchid:'#da70d6',palegoldenrod:'#eee8aa',palegreen:'#98fb98',paleturquoise:'#afeeee',palevioletred:'#d87093',papayawhip:'#ffefd5',peachpuff:'#ffdab9',peru:'#cd853f',pink:'#ffc0cb',plum:'#dda0dd',powderblue:'#b0e0e6',purple:'#800080',red:'#ff0000',rosybrown:'#bc8f8f',royalblue:'#4169e1',saddlebrown:'#8b4513',salmon:'#fa8072',sandybrown:'#f4a460',seagreen:'#2e8b57',seashell:'#fff5ee',sienna:'#a0522d',silver:'#c0c0c0',skyblue:'#87ceeb',slateblue:'#6a5acd',slategray:'#708090',snow:'#fffafa',springgreen:'#00ff7f',steelblue:'#4682b4',tan:'#d2b48c',teal:'#008080',thistle:'#d8bfd8',tomato:'#ff6347',turquoise:'#40e0d0',violet:'#ee82ee',wheat:'#f5deb3',white:'#ffffff',whitesmoke:'#f5f5f5',yellow:'#ffff00',yellowgreen:'#9acd32'},fromHSL:function(a,c,b){return (new this(0,0,0,0)).setHSL(a,c,b)},fromHSV:function(a,b,c){return (new this(0,0,0,0)).setHSL(a,b,c)},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.util.Color(a[0],a[1],a[2],a[3])}else if(Ext.isString(a)){return Ext.util.Color.fromString(a)}else if(arguments.length>2){return new Ext.util.Color(arguments[0],arguments[1],arguments[2],arguments[3])}else {return new Ext.util.Color(0,0,0,0)}}})});Ext.define('Ext.sparkline.Base',{extend:Ext.Gadget,xtype:'sparkline',cachedConfig:{lineColor:'#157fcc',defaultPixelsPerValue:3,tagValuesAttribute:'values',enableTagOptions:!1,enableHighlight:!0,highlightColor:null,highlightLighten:0.1,tooltipSkipNull:!0,tooltipPrefix:'',tooltipSuffix:'',disableTooltips:!1,disableInteraction:!1,tipTpl:null},config:{values:null},baseCls:Ext.baseCSSPrefix+'sparkline',element:{tag:'canvas',reference:'element',style:{display:'inline-block',verticalAlign:'top'},listeners:{mouseenter:'onMouseEnter',mouseleave:'onMouseLeave',mousemove:'onMouseMove'},width:0,height:0},defaultBindProperty:'values',redrawQueue:{},inheritableStatics:{onClassCreated:function(d){var e=d.prototype.updateConfigChange,b=d.prototype,f=d.getConfigurator().configs,c,a;for(c in f){if(c!=='tipTpl'){a=Ext.Config.get(c).names.update;if(b[a]){b[a]=Ext.Function.createSequence(b[a],e)}else {b[a]=e}}}}},constructor:function(c){var a=this,b=Ext.sparkline;a.canvas=Ext.supports.Canvas?new b.CanvasCanvas(a):new b.VmlCanvas(a);a.callParent([c])},all:function(d,b,c){var a;for(a=b.length;a--;){if(c&&b[a]===null){continue}if(b[a]!==d){return !1}}return !0},updateConfigChange:function(b){var a=this;if(a.bufferRedraw||!a.height||!a.width){a.redrawQueue[a.getId()]=a;if(!a.redrawTimer){Ext.sparkline.Base.prototype.redrawTimer=Ext.raf(a.processRedrawQueue)}}else {a.redraw()}return b},applyTipTpl:function(a){if(a&&!a.isTemplate){a=new Ext.XTemplate(a)}return a},normalizeValue:function(a){var b;switch(a){case 'undefined':a=undefined;break;case 'null':a=null;break;case 'true':a=!0;break;case 'false':a=!1;break;default:b=parseFloat(a);if(a==b){a=b};}return a},normalizeValues:function(c){var a,b=[];for(a=c.length;a--;){b[a]=this.normalizeValue(c[a])}return b},updateWidth:function(b,d){var a=this,e=a.element.dom,c=a.measurer;a.callParent([b,d]);a.canvas.setWidth(b);a.width=b;if(a.height==null&&c){a.setHeight(parseInt(c.getCachedStyle(e.parentNode,'line-height'),10))}},updateHeight:function(a,c){var b=this;b.callParent([a,c]);b.canvas.setHeight(a);b.height=a},setValues:function(a){var b=this,c=b.getValues();a=a==null?[]:Ext.Array.from(a);b.values=a;b.callParent([a]);if(a===c){b.updateValues([a,c])}},redraw:function(){var a=this;if(!a.destroyed){a.canvas.onOwnerUpdate();a.canvas.reset();if(a.getValues()){a.onUpdate();a.renderGraph()}}},onUpdate:Ext.emptyFn,renderGraph:function(){var a=!0;if(this.disabled){this.canvas.reset();a=!1}return a},onMouseEnter:function(a){this.onMouseMove(a)},onMouseMove:function(b){var a=this;a.canvasRegion=a.canvasRegion||a.canvas.el.getRegion();a.currentPageXY=b.getPoint();a.redraw()},onMouseLeave:function(){var a=this;a.canvasRegion=a.currentPageXY=a.targetX=a.targetY=null;a.redraw();a.hideTip()},updateDisplay:function(){var a=this,d=a.getValues(),c,b;if(d&&d.length&&a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){b=a.getRegion(a.currentPageXY[0]-a.canvasRegion.left,(a.canvasRegion.bottom-1)-a.currentPageXY[1]);if(b!=null&&a.isValidRegion(b,d)){if(!a.disableHighlight){a.renderHighlight(b)}if(!a.getDisableTooltips()){c=a.getRegionTooltip(b)}}if(a.hasListeners.sparklineregionchange){a.fireEvent('sparklineregionchange',a)}if(c){a.getSharedTooltip().setHtml(c);a.showTip()}}if(!c){a.hideTip()}},getRegion:Ext.emptyFn,getRegionTooltip:function(m){var b=this,i=[],k=b.getTipTpl(),a,f,e,h,l,g,j,d,c;a=b.getRegionFields(m);g=b.tooltipFormatter;if(g){return g(b,b,a)}if(!k){return ''}if(!Ext.isArray(a)){a=[a]}f=b.tooltipFormatFieldlist;e=b.tooltipFormatFieldlistKey;if(f&&e){h=[];for(d=a.length;d--;){l=a[d][e];if((c=Ext.Array.indexOf(l,f))!==-1){h[c]=a[d]}}a=h}j=a.length;for(c=0;c<j;c++){if(!a[c].isNull||!b.getTooltipSkipNull()){Ext.apply(a[c],{prefix:b.getTooltipPrefix(),suffix:b.getTooltipSuffix()});i.push(k.apply(a[c]))}}if(i.length){return i.join('<br>')}return ''},getRegionFields:Ext.emptyFn,calcHighlightColor:function(b){var e=this,c=e.getHighlightColor(),d=e.getHighlightLighten(),a;if(c){return c}if(d){a=Ext.util.Color.fromString(b);if(a){a.lighten(d);b=a.toHex()}}return b},destroy:function(){delete this.redrawQueue[this.getId()];this.callParent()},privates:{hideTip:Ext.privateFn,isValidRegion:function(a,b){return a<b.length},showTip:Ext.privateFn}},function(b){var a=b.prototype;a.getSharedTooltip=function(){var d=this,c=d.tooltip;if(!c){a.tooltip=c=b.constructTip()}return c};b.onClassCreated(b);a.processRedrawQueue=function(){var c=a.redrawQueue,d;for(d in c){c[d].redraw()}a.redrawQueue={};a.redrawTimer=0}});Ext.define('Ext.override.sparkline.Base',{override:'Ext.sparkline.Base',statics:{constructTip:function(){return new Ext.tip['ToolTip']({id:'sparklines-tooltip',trackMouse:!0,showDelay:0,dismissDelay:0,hideDelay:400})}},onMouseMove:function(a){this.currentEvent=a;this.getSharedTooltip().currentTarget.attach(this.element);this.callParent([a])},privates:{hideTip:function(){var a=this.getSharedTooltip();a.delayHide()},showTip:function(){this.getSharedTooltip().handleTargetOver(this.currentEvent,this.element)}}});Ext.define('Ext.sparkline.BarBase',{extend:Ext.sparkline.Base,renderHighlight:function(a){this.renderRegion(a,!0)},renderGraph:function(){var a=this,h=a.values,g=a.canvas,e=a.regionShapes||(a.regionShapes={}),b,f,c,d;if(!a.callParent()){return}for(c=h.length;c--;){b=a.renderRegion(c);if(b){if(Ext.isArray(b)){f=[];for(d=b.length;d--;){b[d].append();f.push(b[d].id)}e[c]=f}else {b.append();e[c]=b.id}}else {e[c]=null}}if(a.currentPageXY){a.currentRegion=null;a.updateDisplay()}g.render()}});Ext.define('Ext.sparkline.RangeMap',{constructor:function(c){var b,a,d=[];for(b in c){if(c.hasOwnProperty(b)&&typeof b==='string'&&b.indexOf(':')>-1){a=b.split(':');a[0]=a[0].length===0?-Infinity:parseFloat(a[0]);a[1]=a[1].length===0?Infinity:parseFloat(a[1]);a[2]=c[b];d.push(a)}}this.map=c;this.rangelist=d||!1},get:function(c){var b=this.rangelist,d,a,e;if((e=this.map[c])!==undefined){return e}if(b){for(d=b.length;d--;){a=b[d];if(a[0]<=c&&a[1]>=c){return a[2]}}}}});Ext.define('Ext.sparkline.Bar',{extend:Ext.sparkline.BarBase,alias:'widget.sparklinebar',config:{barColor:'#3366cc',negBarColor:'#f44',stackedBarColor:['#3366cc','#dc3912','#ff9900','#109618','#66aa00','#dd4477','#0099c6','#990099'],zeroColor:null,nullColor:null,zeroAxis:!0,barWidth:4,barSpacing:1,chartRangeMin:null,chartRangeMax:null,chartRangeClip:!1,colorMap:null},tipTpl:'&#9679; {prefix}{value}{suffix}',remove:function(b,e){var c=[],a,d;for(a=0,d=b.length;a<d;a++){if(b[a]!==e){c.push(b[a])}}return c},all:function(b,d,c){var a;for(a=b.length;a--;){if(c&&b[a]===null){continue}if(b[a]!==d){return !1}}return !0},applyColorMap:function(b){var a=this;if(Ext.isArray(b)){a.colorMapByIndex=b;a.colorMapByValue=null}else {a.colorMapByIndex=null;a.colorMapByValue=b;if(a.colorMapByValue&&a.colorMapByValue.get==null){a.colorMapByValue=new Ext.sparkline.RangeMap(b)}}a.updateConfigChange();return b},onUpdate:function(){var a=this,d=a.values,D=a.getBarWidth(),C=a.getBarSpacing(),o=a.getChartRangeMin(),n=a.getChartRangeMax(),m=a.getChartRangeClip(),q=Infinity,k=-Infinity,y=a.getZeroAxis(),v=[],t=[],u,x,w,p,i,c,s,B,h,e,f,A,z,g,r,l,G,F,b,j,E;for(c=0,s=d.length;c<s;c++){b=d[c];u=typeof (b)==='string'&&b.indexOf(':')>-1;if(u||Ext.isArray(b)){g=!0;if(u){b=d[c]=a.normalizeValues(b.split(':'))}b=a.remove(b,null);x=Math.min.apply(Math,b);w=Math.max.apply(Math,b);if(x<q){q=x}if(w>k){k=w}}}a.stacked=g;a.regionShapes={};a.totalBarWidth=D+C;if(d.length){a.width=(d.length*D)+((d.length-1)*C)}if(m){A=o==null?-Infinity:o;z=n==null?Infinity:n}i=[];p=g?[]:i;for(c=0,s=d.length;c<s;c++){if(g){r=d[c];d[c]=F=[];v[c]=0;p[c]=t[c]=0;for(l=0,G=r.length;l<G;l++){b=F[l]=m?Ext.Number.constrain(r[l],A,z):r[l];if(b!==null){if(b>0){v[c]+=b}if(q<0&&k>0){if(b<0){t[c]+=Math.abs(b)}else {p[c]+=b}}else {p[c]+=Math.abs(b-(b<0?k:q))}i.push(b)}}}else {b=m?Ext.Number.constrain(d[c],A,z):d[c];b=d[c]=a.normalizeValue(b);if(b!==null){i.push(b)}}}a.max=f=Math.max.apply(Math,i);a.min=e=Math.min.apply(Math,i);a.stackMax=k=g?Math.max.apply(Math,v):f;a.stackMin=q=g?Math.min.apply(Math,i):e;if(o!=null&&(m||o<e)){e=o}if(n!=null&&(m||n>f)){f=n}if(e<=0&&f>=0&&y){h=0}else if(!y){h=e}else if(e>0){h=e}else {h=f}a.xAxisOffset=h;B=g?(Math.max.apply(Math,p)+Math.max.apply(Math,t)):f-e;a.canvasHeightEf=(y&&e<0)?a.getHeight()-2:a.getHeight()-1;if(e<h){E=(g&&f>=0)?k:f;j=(E-h)/B*a.getHeight();if(j!==Math.ceil(j)){a.canvasHeightEf-=2;j=Math.ceil(j)}}else {j=a.getHeight()}a.yoffset=j;a.range=B},getRegion:function(b,c){var a=Math.floor(b/this.totalBarWidth);return (a<0||a>=this.values.length)?undefined:a},getRegionFields:function(c){var e=Ext.Array.from(this.values[c]),d=[],a,b;for(b=e.length;b--;){a=e[b];d.push({isNull:a===null,value:a,color:this.calcColor(b,a,c),offset:c})}return d},calcColor:function(i,d,h){var b=this,c=b.colorMapByIndex,e=b.colorMapByValue,a,g,f=b.getZeroColor();if(this.stacked){a=b.getStackedBarColor()}else {a=(d<0)?b.getNegBarColor():b.getBarColor()}if(d===0&&f!=null){a=f}if(e&&(g=e.get(d))){a=g}else if(c&&c.length>h){a=c[h]}return Ext.isArray(a)?a[i%a.length]:a},renderRegion:function(l,n){var a=this,b=a.values[l],g=a.xAxisOffset,t=a.range,w=a.stacked,r=a.canvas,o=a.getBarWidth(),u=l*a.totalBarWidth,v=a.canvasHeightEf,d=a.yoffset,i,f,c,s,j,h,p,e,m,q,k=a.getNullColor();b=Ext.isArray(b)?b:[b];p=b.length;e=b[0];s=a.all(b,null);q=a.all(b,g,!0);if(s){if(k){c=n?k:a.calcHighlightColor(k,a);i=(d>0)?d-1:d;r.drawRect(u,i,o-1,0,c,c).append()}return}j=d;for(h=0;h<p;h++){e=b[h];if(w&&e===g){if(!q||m){continue}m=!0}if(t>0){f=Math.floor(v*((Math.abs(e-g)/t)))+1}else {f=1}if(e<g||(e===g&&d===0)){i=j;j+=f}else {i=d-f;d-=f}c=a.calcColor(h,e,l);if(n){c=a.calcHighlightColor(c,a)}r.drawRect(u,i,o-1,f-1,c,c).append()}}},function(a){a.onClassCreated(a)});Ext.define('Ext.sparkline.Box',{extend:Ext.sparkline.Base,alias:'widget.sparklinebox',config:{raw:!1,boxLineColor:'#000',boxFillColor:'#cdf',whiskerColor:'#000',outlierLineColor:'#333',outlierFillColor:'#fff',medianColor:'#f00',showOutliers:!0,outlierIQR:1.5,spotRadius:1.5,target:null,targetColor:'#4a2',chartRangeMin:null,chartRangeMax:null},tipTpl:['{field:this.fields}: {value}',{fields:function(b){var a={lq:'Lower Quartile',med:'Median',uq:'Upper Quartile',lo:'Left Outlier',ro:'Right Outlier',lw:'Left Whisker',rw:'Right Whisker'};return a[b]}}],tooltipFormatFieldlistKey:'field',quartile:function(a,c){var b;if(c===2){b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2}else {if(a.length%2){b=(a.length*c+c)/4;return b%1?(a[Math.floor(b)]+a[Math.floor(b)-1])/2:a[b-1]}else {b=(a.length*c+2)/4;return b%1?(a[Math.floor(b)]+a[Math.floor(b)-1])/2:a[b-1]}}},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);if(!this.raw){a.sort(function(b,c){return b-c})}this.disabled=!(a&&a.length);this.updateConfigChange();return a},getRegion:function(){return 1},getRegionFields:function(){var a=[{field:'lq',value:this.quartiles[0]},{field:'med',value:this.quartiles[1]},{field:'uq',value:this.quartiles[2]}];if(this.loutlier!==undefined){a.push({field:'lo',value:this.loutlier})}if(this.routlier!==undefined){a.push({field:'ro',value:this.routlier})}if(this.lwhisker!==undefined){a.push({field:'lw',value:this.lwhisker})}if(this.rwhisker!==undefined){a.push({field:'rw',value:this.rwhisker})}return a},renderHighlight:Ext.emptyFn,renderGraph:function(){var a=this,h=a.canvas,b=a.values,t=b.length,s=a.getWidth(),c=a.getHeight(),y=a.getChartRangeMin(),x=a.getChartRangeMax(),e=y==null?Math.min.apply(Math,b):y,D=x==null?Math.max.apply(Math,b):x,f=0,g,n,u,j,m,k,i,o,l,p,d,q=a.getSpotRadius(),w=a.getOutlierLineColor(),v=a.getOutlierFillColor(),r=a.getShowOutliers(),B=a.getOutlierIQR(),C=a.getLineColor(),z=a.getWhiskerColor(),A=a.getTargetColor();if(!a.callParent()){return}if(a.raw){if(r&&b.length>5){n=b[0];g=b[1];j=b[2];m=b[3];k=b[4];i=b[5];o=b[6]}else {g=b[0];j=b[1];m=b[2];k=b[3];i=b[4]}}else {j=a.quartile(b,1);m=a.quartile(b,2);k=a.quartile(b,3);u=k-j;if(r){g=i=null;for(l=0;l<t;l++){if(g==null&&b[l]>j-(u*B)){g=b[l]}if(b[l]<k+(u*B)){i=b[l]}}n=b[0];o=b[t-1]}else {g=b[0];i=b[t-1]}}a.quartiles=[j,m,k];a.lwhisker=g;a.rwhisker=i;a.loutlier=n;a.routlier=o;d=s/(D-e+1);if(r){f=Math.ceil(q);s-=2*Math.ceil(q);d=s/(D-e+1);if(n<g){h.drawCircle((n-e)*d+f,c/2,q,w,v).append()}if(o>i){h.drawCircle((o-e)*d+f,c/2,q,w,v).append()}}h.drawRect(Math.round((j-e)*d+f),Math.round(c*0.1),Math.round((k-j)*d),Math.round(c*0.8),a.getBoxLineColor(),a.getBoxFillColor()).append();h.drawLine(Math.round((g-e)*d+f),Math.round(c/2),Math.round((j-e)*d+f),Math.round(c/2),C).append();h.drawLine(Math.round((g-e)*d+f),Math.round(c/4),Math.round((g-e)*d+f),Math.round(c-c/4),z).append();h.drawLine(Math.round((i-e)*d+f),Math.round(c/2),Math.round((k-e)*d+f),Math.round(c/2),C).append();h.drawLine(Math.round((i-e)*d+f),Math.round(c/4),Math.round((i-e)*d+f),Math.round(c-c/4),z).append();h.drawLine(Math.round((m-e)*d+f),Math.round(c*0.1),Math.round((m-e)*d+f),Math.round(c*0.9),a.getMedianColor()).append();if(a.target){p=Math.ceil(a.spotRadius);h.drawLine(Math.round((a.target-e)*d+f),Math.round((c/2)-p),Math.round((a.target-e)*d+f),Math.round((c/2)+p),A).append();h.drawLine(Math.round((a.target-e)*d+f-p),Math.round(c/2),Math.round((a.target-e)*d+f+p),Math.round(c/2),A).append()}if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.currentRegion=null;a.updateDisplay()}h.render()}});Ext.define('Ext.sparkline.Bullet',{extend:Ext.sparkline.Base,alias:'widget.sparklinebullet',config:{targetColor:'#f33',targetWidth:3,performanceColor:'#33f',rangeColors:['#d3dafe','#a8b6ff','#7f94ff'],base:null},tipTpl:['{fieldkey:this.fields} - {value}',{fields:function(a){if(a==='r'){return 'Range'}if(a==='p'){return 'Performance'}if(a==='t'){return 'Target'}}}],applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),this.normalizeValue);this.disabled=!(a&&a.length);this.updateConfigChange();return a},onUpdate:function(){var a=this,d=a.values,c,e,b,f=a.getBase();a.callParent(arguments);b=d.slice();b[0]=b[0]===null?b[2]:b[0];b[1]=d[1]===null?b[2]:b[1];c=Math.min.apply(Math,d);e=Math.max.apply(Math,d);if(f==null){c=c<0?c:0}else {c=f}a.min=c;a.max=e;a.range=e-c;a.shapes={};a.valueShapes={};a.regiondata={};if(!d.length){a.disabled=!0}},getRegion:function(b,c){var a=this.canvas.getShapeAt(b,c);return (a!==undefined&&this.shapes[a]!==undefined)?this.shapes[a]:undefined},getRegionFields:function(a){return {fieldkey:a.substr(0,1),value:this.values[parseInt(a.substr(1),10)],region:a}},renderHighlight:function(c){var b=this,d=b.valueShapes,f=b.shapes,e=d[c],a;delete f[e];switch(c.substr(0,1)){case 'r':a=b.renderRange(parseInt(c.substr(1),10),!0);break;case 'p':a=b.renderPerformance(!0);break;case 't':a=b.renderTarget(!0);break;}d[c]=a.id;f[a.id]=c;b.canvas.replaceWithShape(e,a)},renderRange:function(d,f){var a=this,g=a.values[d],e=Math.round(a.getWidth()*((g-a.min)/a.range)),c=a.getRangeColors(),b=c[Math.min(d-2,c.length-1)];if(f){b=a.calcHighlightColor(b)}return a.canvas.drawRect(0,0,e-1,a.getHeight()-1,b,b)},renderPerformance:function(b){var d=this.values[1],c=Math.round(this.getWidth()*((d-this.min)/this.range)),a=this.getPerformanceColor();if(b){a=this.calcHighlightColor(a)}return this.canvas.drawRect(0,Math.round(this.getHeight()*0.3),c-1,Math.round(this.getHeight()*0.4)-1,a,a)},renderTarget:function(e){var f=this.values[0],b=this.getTargetWidth(),g=Math.round(this.getWidth()*((f-this.min)/this.range)-(b/2)),c=Math.round(this.getHeight()*0.1),d=this.getHeight()-(c*2),a=this.getTargetColor();if(e){a=this.calcHighlightColor(a)}return this.canvas.drawRect(g,c,b-1,d-1,a,a)},renderGraph:function(){var a=this,g=a.values.length,f=a.canvas,c,b,e=a.shapes||(a.shapes={}),d=a.valueShapes||(a.valueShapes={});if(!a.callParent()){return}for(c=2;c<g;c++){b=a.renderRange(c).append();e[b.id]='r'+c;d['r'+c]=b.id}if(a.values[1]!==null){b=a.renderPerformance().append();e[b.id]='p1';d.p1=b.id}if(a.values[0]!==null){b=this.renderTarget().append();e[b.id]='t0';d.t0=b.id}if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.updateDisplay()}f.render()},privates:{isValidRegion:function(a,b){return parseInt(a.substr(1),10)<b.length}}});Ext.define('Ext.sparkline.Discrete',{extend:Ext.sparkline.BarBase,alias:'widget.sparklinediscrete',config:{lineHeight:'auto',thresholdColor:null,thresholdValue:0,chartRangeMax:null,chartRangeMin:null,chartRangeClip:!1},tipTpl:'{prefix}{value}{suffix}',applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);this.updateConfigChange();return a},onUpdate:function(){var a=this,b=a.values,d=a.getChartRangeMin(),c=a.getChartRangeMax(),e=a.getChartRangeClip();a.callParent(arguments);a.regionShapes={};a.min=Math.min.apply(Math,b);a.max=Math.max.apply(Math,b);a.range=a.max-a.min;a.width=a.getWidth();a.interval=Math.floor(a.width/b.length);a.itemWidth=a.width/b.length;if(d!=null&&(e||d<a.min)){a.min=d}if(c!=null&&(e||c>a.max)){a.max=c}if(a.canvas){if(a.getLineHeight()==='auto'){a.setLineHeight(Math.round(a.getHeight()*0.3))}}},getRegion:function(a,b){return Math.floor(a/this.itemWidth)},getRegionFields:function(a){return {isNull:this.values[a]===undefined,value:this.values[a],offset:a}},renderRegion:function(h,l){var a=this,o=a.values,j=a.min,q=a.max,p=a.range,m=a.interval,n=a.canvas,k=a.getHeight(),g=a.getLineHeight(),i=k-g,c,d,b,e,f=a.getThresholdColor();d=Ext.Number.constrain(o[h],j,q);e=h*m;c=Math.round(i-i*((d-j)/p));b=(f&&d<a.getThresholdValue())?f:a.getLineColor();if(l){b=a.calcHighlightColor(b)}n.drawLine(e,c,e,c+g,b).append()}});Ext.define('Ext.sparkline.Line',{extend:Ext.sparkline.Base,alias:'widget.sparklineline',config:{fillColor:'#def',spotColor:'#f80',highlightSpotColor:'#5f5',highlightLineColor:'#f22',spotRadius:1.5,minSpotColor:'#f80',maxSpotColor:'#f80',lineWidth:1,normalRangeMin:null,normalRangeMax:null,normalRangeColor:'#ccc',drawNormalOnTop:!1,chartRangeMin:null,chartRangeMax:null,chartRangeMinX:null,chartRangeMaxX:null,valueSpots:null},tipTpl:'&#9679; {prefix}{y}{suffix}',applyValueSpots:function(a){if(a&&!a.get){a=new Ext.sparkline.RangeMap(a)}this.updateConfigChange();return a},onUpdate:function(){this.vertices=[];this.regionMap=[];this.xvalues=[];this.yvalues=[];this.yminmax=[]},getRegion:function(c,d){var a,b=this.regionMap;for(a=b.length;a--;){if(b[a]!==null&&c>=b[a][0]&&c<=b[a][1]){return b[a][2]}}return undefined},getRegionFields:function(a){return {isNull:this.yvalues[a]===null,x:this.xvalues[a],y:this.yvalues[a],color:this.getLineColor(),fillColor:this.getFillColor(),offset:a}},renderHighlight:function(g){var a=this,f=a.canvas,b=a.vertices[g],e=a.getSpotRadius(),d=a.getHighlightSpotColor(),c=a.getHighlightLineColor();if(!b){return}if(e&&d){f.drawCircle(b[0],b[1],e,null,d).append()}if(c){f.drawLine(b[0],a.canvasTop,b[0],a.canvasTop+a.getHeight(),c).append()}},scanValues:function(){var b=this,g=b.values,h=g.length,c=b.xvalues,f=b.yvalues,d=b.yminmax,e,a;for(e=0;e<h;e++){a=g[e];if(typeof a==='string'){a=a.split(':')}if(a&&a.length===2){c.push(Number(a[0]));f.push(a=Number(a[1]));d.push(a)}else {c.push(e);if(a==null||a==='null'){f.push(null)}else {f.push(a=Number(a));d.push(a)}}}if(b.xvalues){c=b.xvalues}b.maxy=b.maxyorg=Math.max.apply(Math,d);b.miny=b.minyorg=Math.min.apply(Math,d);b.maxx=Math.max.apply(Math,c);b.minx=Math.min.apply(Math,c);b.xvalues=c;b.yvalues=f;b.yminmax=d},processRangeOptions:function(){var a=this,d=a.getNormalRangeMin(),g=a.getNormalRangeMax(),f=a.getChartRangeMin(),c=a.getChartRangeMinX(),e=a.getChartRangeMax(),b=a.getChartRangeMaxX();if(d!=null){if(d<a.miny){a.miny=d}if(g>a.maxy){a.maxy=g}}if(f!=null&&(a.chartRangeClip||f<a.miny)){a.miny=f}if(e!=null&&(a.chartRangeClip||e>a.maxy)){this.maxy=e}if(c!=null&&(a.chartRangeClipX||c<a.minx)){a.minx=c}if(b!=null&&(a.chartRangeClipX||b>a.maxx)){a.maxx=b}},drawNormalRange:function(f,g,a,e,c){var d=this.getNormalRangeMin(),b=this.getNormalRangeMax(),i=g+Math.round(a-(a*((b-this.miny)/c))),h=Math.round((a*(b-d))/c);this.canvas.drawRect(f,i,e,h,undefined,this.normalRangeColor).append()},renderGraph:function(){var a=this,m=a.canvas,g=a.getWidth(),e=a.getHeight(),H=a.vertices,c=a.getSpotRadius(),K=a.regionMap,n,k,l,h,i,C,d,A,q,o,J,w,I,E,B,z,y,x,p,u=a.getValueSpots(),r,D,j,f,b,v=a.getSpotColor(),t=a.getMinSpotColor(),s=a.getMaxSpotColor(),G=a.getNormalRangeMin(),F=a.getDrawNormalOnTop();if(!a.callParent()){return}a.scanValues();a.processRangeOptions();j=a.xvalues;f=a.yvalues;if(!a.yminmax.length||a.yvalues.length<2){return}h=i=0;n=a.maxx-a.minx===0?1:a.maxx-a.minx;k=a.maxy-a.miny===0?1:a.maxy-a.miny;l=a.yvalues.length-1;if(c&&(g<(c*4)||e<(c*4))){c=0}if(c){r=a.getHighlightSpotColor()&&!a.disableInteraction;if(r||t||(v&&f[l]===a.miny)){e-=Math.ceil(c)}if(r||s||(v&&f[l]===a.maxy)){e-=Math.ceil(c);h+=Math.ceil(c)}if(r||((t||s)&&(f[0]===a.miny||f[0]===a.maxy))){i+=Math.ceil(c);g-=Math.ceil(c)}if(r||v||(t||s&&(f[l]===a.miny||f[l]===a.maxy))){g-=Math.ceil(c)}}e--;if(G!=null&&!F){a.drawNormalRange(i,h,e,g,k)}d=[];A=[d];E=B=null;z=f.length;for(b=0;b<z;b++){q=j[b];J=j[b+1];o=f[b];w=i+Math.round((q-a.minx)*(g/n));I=b<z-1?i+Math.round((J-a.minx)*(g/n)):g;B=w+((I-w)/2);K[b]=[E||0,B,b];E=B;if(o===null){if(b){if(f[b-1]!==null){d=[];A.push(d)}H.push(null)}}else {if(o<a.miny){o=a.miny}if(o>a.maxy){o=a.maxy}if(!d.length){d.push([w,h+e])}C=[w,h+Math.round(e-(e*((o-this.miny)/k)))];d.push(C);H.push(C)}}y=[];x=[];p=A.length;for(b=0;b<p;b++){d=A[b];if(d.length){if(a.fillColor){d.push([d[d.length-1][0],(h+e)]);x.push(d.slice(0));d.pop()}if(d.length>2){d[0]=[d[0][0],d[1][1]]}y.push(d)}}p=x.length;for(b=0;b<p;b++){m.drawShape(x[b],a.fillColor,a.fillColor).append()}if(G!=null&&F){a.drawNormalRange(i,h,e,g,k)}p=y.length;for(b=0;b<p;b++){m.drawShape(y[b],a.getLineColor(),null,a.getLineWidth()).append()}if(c&&u){if(u.get==null){u=new Ext.sparkline.RangeMap(u)}for(b=0;b<z;b++){D=u.get(f[b]);if(D){m.drawCircle(i+Math.round((j[b]-a.minx)*(g/n)),h+Math.round(e-(e*((f[b]-a.miny)/k))),c,null,D).append()}}}if(c&&v&&f[l]!=null){m.drawCircle(i+Math.round((j[j.length-1]-a.minx)*(g/n)),h+Math.round(e-(e*((f[l]-a.miny)/k))),c,null,v).append()}if(a.maxy!==a.minyorg){if(c&&t){q=j[Ext.Array.indexOf(f,a.minyorg)];m.drawCircle(i+Math.round((q-a.minx)*(g/n)),h+Math.round(e-(e*((a.minyorg-a.miny)/k))),c,null,t).append()}if(c&&s){q=j[Ext.Array.indexOf(f,a.maxyorg)];m.drawCircle(i+Math.round((q-a.minx)*(g/n)),h+Math.round(e-(e*((a.maxyorg-a.miny)/k))),c,null,s).append()}}a.canvasTop=h;if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.updateDisplay()}m.render()}});Ext.define('Ext.sparkline.Pie',{extend:Ext.sparkline.Base,alias:'widget.sparklinepie',config:{offset:0,sliceColors:['#3366cc','#dc3912','#ff9900','#109618','#66aa00','#dd4477','#0099c6','#990099'],borderWidth:0,borderColor:'#000'},tipTpl:'&#9679; {value} ({percent:number("0.0")}%)',applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);this.updateConfigChange();return a},onUpdate:function(){var a=this,b=a.values,d=0,c;a.callParent(arguments);a.shapes={};a.valueShapes={};if(b.length>0){for(c=b.length;c--;){d+=b[c]}}a.total=d;a.radius=Math.floor(Math.min(a.getWidth(),a.getHeight())/2)},getRegion:function(c,d){var b=window.devicePixelRatio||1,a=this.canvas.getShapeAt(c*b,d*b);return (a!=null&&this.shapes[a]!=null)?this.shapes[a]:null},getRegionFields:function(a){var b=this.getSliceColors();return {isNull:this.values[a]==null,value:this.values[a],percent:this.values[a]/this.total*100,color:b[a%b.length],offset:a}},renderHighlight:function(a){this.renderSlice(a,!0).append()},renderSlice:function(o,n){var a=this,p=a.canvas,f=a.radius,m=a.getBorderWidth(),h=a.getOffset(),q=2*Math.PI,i=a.values,k=a.total,d=h?(2*Math.PI)*(h/360):0,j,e,b,l,c,g=this.getSliceColors();l=i.length;for(b=0;b<l;b++){j=d;e=d;if(k>0){e=d+(q*(i[b]/k))}if(o===b){c=g[b%g.length];if(n){c=a.calcHighlightColor(c)}return p.drawPieSlice(f,f,f-m,j,e,null,c)}d=e}},renderGraph:function(){var a=this,f=a.canvas,g=a.values,d=a.radius,c=a.getBorderWidth(),e,b,i=a.shapes||(a.shapes={}),h=a.valueShapes||(a.valueShapes={});if(!a.callParent()){return}if(c){f.drawCircle(d,d,Math.floor(d-(c/2)),a.getBorderColor(),null,c).append()}for(b=g.length;b--;){if(g[b]){e=a.renderSlice(b).append();h[b]=e.id;i[e.id]=b}}if(a.currentPageXY&&a.canvasRegion.contains(a.currentPageXY)){a.currentRegion=null;a.updateDisplay()}f.render()}});Ext.define('Ext.sparkline.TriState',{extend:Ext.sparkline.BarBase,alias:'widget.sparklinetristate',config:{barWidth:4,barSpacing:1,posBarColor:'#6f6',negBarColor:'#f44',zeroBarColor:'#999',colorMap:{}},tipTpl:['&#9679; {value:this.states}',{states:function(b){var a=Number(b);if(a===-1){return 'Loss'}if(a===0){return 'Draw'}if(a===1){return 'Win'}return b}}],applyColorMap:function(b){var a=this;if(Ext.isArray(b)){a.colorMapByIndex=b;a.colorMapByValue=null}else {a.colorMapByIndex=null;a.colorMapByValue=b;if(a.colorMapByValue&&a.colorMapByValue.get==null){a.colorMapByValue=new Ext.sparkline.RangeMap(b)}}a.updateConfigChange();return b},applyValues:function(a){a=Ext.Array.map(Ext.Array.from(a),Number);this.disabled=!(a&&a.length);this.updateConfigChange();return a},onUpdate:function(){this.totalBarWidth=this.getBarWidth()+this.getBarSpacing()},getBarWidth:function(){var a=this.values;return this._barWidth||(this.getWidth()-(a.length-1)*this.getBarSpacing())/a.length},getRegion:function(a,b){return Math.floor(a/this.totalBarWidth)},getRegionFields:function(a){return {isNull:this.values[a]==null,value:this.values[a],color:this.calcColor(this.values[a],a),offset:a}},calcColor:function(h,c){var b=this,g=b.values,d=b.colorMapByIndex,e=b.colorMapByValue,a,f;if(e&&(f=e.get(h))){a=f}else if(d&&d.length>c){a=d[c]}else if(g[c]<0){a=b.getNegBarColor()}else if(g[c]>0){a=b.getPosBarColor()}else {a=b.getZeroBarColor()}return a},renderRegion:function(d,k){var b=this,g=b.values,i=b.canvas,h,e,c,j,f,a;h=i.pixelHeight;c=Math.round(h/2);j=d*b.totalBarWidth;if(g[d]<0){f=c;e=c-1}else if(g[d]>0){f=0;e=c-1}else {f=c-1;e=2}a=b.calcColor(g[d],d);if(a==null){return}if(k){a=b.calcHighlightColor(a)}i.drawRect(j,f,b.getBarWidth()-1,e-1,a,a).append()}});Ext.define('Ext.util.Base64',{singleton:!0,_str:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a){var b=this,g='',f=0,h,c,d,j,k,i,e,l;a=b._utf8_encode(a);l=a.length;while(f<l){h=a.charCodeAt(f++);c=a.charCodeAt(f++);d=a.charCodeAt(f++);j=h>>2;k=((h&3)<<4)|(c>>4);i=((c&15)<<2)|(d>>6);e=d&63;if(isNaN(c)){i=e=64}else if(isNaN(d)){e=64}g=g+b._str.charAt(j)+b._str.charAt(k)+b._str.charAt(i)+b._str.charAt(e)}return g},decode:function(b){var c=this,a='',d=0,h,i,j,k,f,e,g,l;b=b.replace(/[^A-Za-z0-9+=\/]/g,"");l=b.length;while(d<l){k=c._str.indexOf(b.charAt(d++));f=c._str.indexOf(b.charAt(d++));e=c._str.indexOf(b.charAt(d++));g=c._str.indexOf(b.charAt(d++));h=(k<<2)|(f>>4);i=((f&15)<<4)|(e>>2);j=((e&3)<<6)|g;a=a+String.fromCharCode(h);if(e!==64){a=a+String.fromCharCode(i)}if(g!==64){a=a+String.fromCharCode(j)}}a=c._utf8_decode(a);return a},_utf8_encode:function(c){var b='',a,d,e;c=c.replace(/\r\n/g,"\n");for(d=0,e=c.length;d<e;d++){a=c.charCodeAt(d);if(a<128){b+=String.fromCharCode(a)}else if((a>127)&&(a<2048)){b+=String.fromCharCode((a>>6)|192);b+=String.fromCharCode((a&63)|128)}else {b+=String.fromCharCode((a>>12)|224);b+=String.fromCharCode(((a>>6)&63)|128);b+=String.fromCharCode((a&63)|128)}}return b},_utf8_decode:function(c){var d='',a=0,b=0,f=0,e=0,g=c.length;while(a<g){b=c.charCodeAt(a);if(b<128){d+=String.fromCharCode(b);a++}else if((b>191)&&(b<224)){e=c.charCodeAt(a+1);d+=String.fromCharCode(((b&31)<<6)|(e&63));a+=2}else {e=c.charCodeAt(a+1);f=c.charCodeAt(a+2);d+=String.fromCharCode(((b&15)<<12)|((e&63)<<6)|(f&63));a+=3}}return d}});Ext.define('Ext.util.CSS',function(){var a,b=null,c=document,e=/(-[a-z])/gi,d=function(b,a){return a.charAt(1).toUpperCase()};return {singleton:!0,rules:b,initialized:!1,constructor:function(){a=this},createStyleSheet:function(e,g){var d,f=c.getElementsByTagName('head')[0],b=c.createElement('style');b.setAttribute('type','text/css');if(g){b.setAttribute('id',g)}d=b.styleSheet;if(d){f.appendChild(b);d.cssText=e}else {b.appendChild(c.createTextNode(e));f.appendChild(b);d=b.sheet}a.cacheStyleSheet(d);return d},removeStyleSheet:function(a){var b=(typeof a==='string')?c.getElementById(a):a.ownerNode;if(b){b.parentNode.removeChild(b)}},swapStyleSheet:function(d,e){var b;a.removeStyleSheet(d);b=c.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("id",d);b.setAttribute("href",e);c.getElementsByTagName("head")[0].appendChild(b)},cacheStyleSheet:function(d){if(!b){b=a.rules={}}try{var h=d.cssRules||d.rules,g=h.length-1,f=d.imports,i=f?f.length:0,c,e;for(e=0;e<i;++e){a.cacheStyleSheet(f[e])}for(;g>=0;--g){c=h[g];if(c.styleSheet){a.cacheStyleSheet(c.styleSheet)}a.cacheRule(c,d)}}catch(j){}},cacheRule:function(d,g){var c,f,e;if(d.styleSheet){return a.cacheStyleSheet(d.styleSheet)}c=d.selectorText;if(c){c=c.split(',');f=c.length;for(e=0;e<f;e++){b[Ext.String.trim(c[e]).toLowerCase()]={parentStyleSheet:g,cssRule:d}}}},getRules:function(e){var d={},c;if(b===null||e){a.refreshCache()}for(c in b){d[c]=b[c].cssRule}return d},refreshCache:function(){var e=c.styleSheets,d=0,f=e.length;b=a.rules={};for(;d<f;d++){try{if(!e[d].disabled){a.cacheStyleSheet(e[d])}}catch(g){}}},getRule:function(c,g,f){var d,e;if(!b||g){a.refreshCache()}if(!Ext.isArray(c)){e=b[c.toLowerCase()];if(e&&!f){e=e.cssRule}return e||null}for(d=0;d<c.length;d++){if(b[c[d]]){return f?b[c[d].toLowerCase()]:b[c[d].toLowerCase()].cssRule}}return null},createRule:function(b,c,d){var f,e=b.cssRules||b.rules,g=e.length;if(b.insertRule){b.insertRule(c+' {'+d+'}',g)}else {b.addRule(c,d||' ')}a.cacheRule(f=e[g],b);return f},updateRule:function(c,b,i){var f,g,h;if(!Ext.isArray(c)){f=a.getRule(c);if(f){if(arguments.length===2){h=Ext.Element.parseStyles(b);for(b in h){f.style[b.replace(e,d)]=h[b]}}else {f.style[b.replace(e,d)]=i}return !0}}else {for(g=0;g<c.length;g++){if(a.updateRule(c[g],b,i)){return !0}}}return !1},deleteRule:function(f){var e=a.getRule(f,!1,!0),c,d;if(e){c=e.parentStyleSheet;d=Ext.Array.indexOf(c.cssRules||c.rules,e.cssRule);if(c.deleteRule){c.deleteRule(d)}else {c.removeRule(d)}delete b[f]}}}});Ext.define('Ext.util.DelimitedValue',{dateFormat:'C',delimiter:'\t',lineBreak:'\n',quote:'"',lineBreakRe:/\r?\n/g,lastLineBreakRe:/(\r?\n|\r)$/,constructor:function(a){if(a){Ext.apply(this,a)}this.parseREs={};this.quoteREs={}},decode:function(m,c,i){if(!m){return []}var e=this,d=[],l=[d],a=i!==undefined?i:e.quote,j=e.quoteREs,n=e.parseREs,k,h,b,f,g;c=c||e.delimiter;k=n[c]||new RegExp('(\\'+c+'|\\r?\\n|\\r|^)'+'(?:\\'+a+'([^\\'+a+']*(?:\\'+a+'\\'+a+'[^\\'+a+']*)*)\\'+a+'|'+'([^\\'+c+'\\r\\n]*))','gi');h=j[a]||(j[a]=new RegExp('\\'+a+'\\'+a,'g'));while((b=k.exec(m))){f=b[1];if(f.length&&f!==c){l.push(d=[])}if(!b.index&&b[0].charAt(0)===c){d.push('')}if(b[2]){g=b[2].replace(h,a)}else {g=b[3]}d.push(g)}return l},encode:function(k,n,h){var c=this,j=n||c.delimiter,m=c.dateFormat,b=h!==undefined?h:c.quote,o=b+b,g=k.length,l=c.lineBreakRe,i=[],e=[],a,d,f;while(g-->0){f=k[g];e.length=d=f.length;while(d-->0){a=f[d];if(a==null){a=''}else if(typeof a==='string'){if(a&&b!==null){if(a.indexOf(b)>-1){a=b+a.split(b).join(o)+b}else if(a.indexOf(j)>-1||l.test(a)){a=b+a+b}}}else if(Ext.isDate(a)){a=Ext.Date.format(a,m)}e[d]=a}i[g]=e.join(j)}return i.join(c.lineBreak)}});Ext.define('Ext.util.CSV',{extend:Ext.util.DelimitedValue,singleton:!0,delimiter:','});Ext.define('Ext.util.ClickRepeater',{alternateClassName:'Ext.util.TapRepeater',mixins:[Ext.mixin.Observable],config:{el:null,target:null,disabled:null},interval:20,delay:250,preventDefault:!0,stopDefault:!1,timer:0,handler:null,scope:null,constructor:function(a){var b=this;if(arguments.length===2){b.setEl(a);a=arguments[1]}b.mixins.observable.constructor.call(this,a)},destroy:function(){this.setEl(null);this.callParent()},privates:{fireClick:function(b){var a=this;a.fireEvent("click",a,b);Ext.callback(a.handler,a.scope,[a,b],0,a.getTarget())},updateDisabled:function(b){var a=this;if(b){a.savedEl=a.getEl();a.setEl(null)}else if(a.savedEl){a.setEl(a.savedEl)}},updateTarget:function(a){this.setEl(a.el)},updateEl:function(c,d){var a=this,b;if(d){d.selectable();Ext.undefer(a.timer);if(a.pressedCls){d.removeCls(a.pressedCls)}Ext.getDoc().un('mouseup',a.handleMouseUp,a);a.elListeners=Ext.destroy(a.elListeners)}if(c){c.unselectable();b={mousedown:a.handleMouseDown,scope:a,destroyable:!0};if(a.preventDefault||a.stopDefault){b.click=a.eventOptions}a.elListeners=c.on(b)}},eventOptions:function(a){if(this.preventDefault){a.preventDefault()}if(this.stopDefault){a.stopEvent()}},handleMouseDown:function(b){var a=this,c=a.getEl();Ext.undefer(a.timer);if(a.pressedCls){c.addCls(a.pressedCls)}a.mousedownTime=Ext.now();if(b.pointerType==='mouse'){c.on("mouseout",a.handleMouseOut,a)}Ext.getDoc().on("mouseup",a.handleMouseUp,a);a.fireEvent("mousedown",a,b);a.fireClick(b);if(a.accelerate){a.delay=400}a.timer=Ext.defer(a.click,a.delay||a.interval,a,[b]);if(a.mousedownPreventDefault){b.preventDefault()}if(a.mousedownStopEvent){b.stopEvent()}},click:function(b){var a=this;a.fireClick(b);a.timer=Ext.defer(a.click,a.accelerate?a.easeOutExpo(Ext.now()-a.mousedownTime,400,-390,12000):a.interval,a,[b])},easeOutExpo:function(d,a,b,c){return (d===c)?a+b:b*(-Math.pow(2,-10*d/c)+1)+a},handleMouseOut:function(){var a=this,b=a.getEl();Ext.undefer(a.timer);if(a.pressedCls){b.removeCls(a.pressedCls)}b.on("mouseover",a.handleMouseReturn,a)},handleMouseReturn:function(c){var a=this,b=a.getEl();b.un("mouseover",a.handleMouseReturn,a);if(a.pressedCls){b.addCls(a.pressedCls)}a.click(c)},handleMouseUp:function(c){var a=this,b=a.getEl();Ext.undefer(a.timer);b.un("mouseover",a.handleMouseReturn,a);b.un("mouseout",a.handleMouseOut,a);Ext.getDoc().un("mouseup",a.handleMouseUp,a);if(a.pressedCls){b.removeCls(a.pressedCls)}a.fireEvent("mouseup",a,c)}}});Ext.define('Ext.util.Cookies',{singleton:!0,set:function(h,g){var a=arguments,b=a.length,c=(b>2)?a[2]:null,e=(b>3)?a[3]:'/',d=(b>4)?a[4]:null,f=(b>5)?a[5]:!1;document.cookie=h+"="+escape(g)+((c===null)?"":("; expires="+c.toUTCString()))+((e===null)?"":("; path="+e))+((d===null)?"":("; domain="+d))+((f===!0)?"; secure":"")},get:function(e){var d=document.cookie.split('; '),f=d.length,b,a,c;for(a=0;a<f;++a){b=d[a].split('=');if(b[0]===e){c=b[1];return c?unescape(c):''}}return null},clear:function(b,a){if(this.get(b)){a=a||'/';document.cookie=b+'='+'; expires=Thu, 01-Jan-1970 00:00:01 GMT; path='+a}}});Ext.define('Ext.util.LocalStorage',{id:null,destroyed:!1,lazyKeys:!0,prefix:'',session:!1,_keys:null,_store:null,_users:0,statics:{cache:{},get:function(c){var d=this,e=d.cache,b={_users:1},a;if(Ext.isString(c)){b.id=c}else {Ext.apply(b,c)}if(!(a=e[b.id])){a=new d(b)}else {++a._users}return a},supported:!0},constructor:function(b){var a=this;Ext.apply(a,b);if(a._users){Ext.util.LocalStorage.cache[a.id]=a}a.init()},init:function(){var a=this,b=a.id;if(!a.prefix&&b){a.prefix=b+'-'}a._store=(a.session?window.sessionStorage:window.localStorage)},destroy:function(){var a=this;delete Ext.util.LocalStorage.cache[a.id];a._store=a._keys=null;a.callParent()},getKeys:function(){var c=this,g=c._store,f=c.prefix,a=c._keys,e=f.length,d,b;if(!a){c._keys=a=[];for(d=g.length;d--;){b=g.key(d);if(b.length>e){if(f===b.substring(0,e)){a.push(b.substring(e))}}}}return a},release:function(){if(!--this._users){this.destroy()}},save:Ext.emptyFn,clear:function(){var a=this,e=a._store,d=a.prefix,b=a._keys||a.getKeys(),c;for(c=b.length;c--;){e.removeItem(d+b[c])}b.length=0},key:function(a){var b=this._keys||this.getKeys();return (0<=a&&a<b.length)?b[a]:null},getItem:function(a){var b=this.prefix+a;return this._store.getItem(b)},removeItem:function(d){var a=this,f=a.prefix+d,b=a._store,c=a._keys,e=b.length;b.removeItem(f);if(c&&e!==b.length){if(a.lazyKeys){a._keys=null}else {Ext.Array.remove(c,d)}}},setItem:function(d,f){var b=this,g=b.prefix+d,a=b._store,e=a.length,c=b._keys;a.setItem(g,f);if(c&&e!==a.length){c.push(d)}}});Ext.define('Ext.util.Spans',{isSpans:!0,constructor:function(){this.spans=this.spans||[]},clear:function(){this.spans.length=0;return this},add:function(b,a){if(a===undefined){if(typeof b==='number'){a=b+1}else {a=b[1];b=b[0]}}var g=this,f=g.spans,i,h,d,e,c;d=g.bisect(b);if(d){c=f[d-1];i=c[0];h=c[1];if(b<=h){if(a<=h){return !1}b=i;f.splice(--d,1)}}e=g.bisect(a);if(e>d){c=f[e-1];a=Math.max(a,c[1])}if(e<f.length){c=f[e];if(a===c[0]){a=c[1];++e}}f.splice(d,e-d,[b,a]);return !0},contains:function(a,b){if(b===undefined){if(typeof a==='number'){b=a+1}else {b=a[1];a=a[0]}}var d=this.spans,c=this.bisect(a),f=!1,g,e;if(c&&a<(g=d[c-1][1])){f=b<=g}else if(c<d.length){e=d[c];f=e[0]<=a&&b<=e[1]}return f},each:function(g,e){var d=this.spans,f=d.length,a,b,c;for(a=0;a<f;a++){b=d[a];for(c=b[0];c<b[1];c++){if(g.call(e||this,a)===!1){return}}}},intersects:function(a,c){if(c===undefined){if(typeof a==='number'){c=a+1}else {c=a[1];a=a[0]}}var d=this.spans,b=this.bisect(a),e=!1;if(b&&a<d[b-1][1]){e=!0}else if(b<d.length){e=d[b][0]<c}return e},remove:function(a,b){if(b===undefined){if(typeof a==='number'){b=a+1}else {b=a[1];a=a[0]}}var i=this,f=i.spans,d=i.bisect(a),h=!1,c,e,g;if(d){e=f[d-1];g=e[1];if(a<g){e[1]=a;if(b<g){f.splice(d,0,[b,g]);return !0}h=!0}}c=i.bisect(b);if(d<c){h=!0;e=f[c-1];if(b<e[1]){e[0]=b;--c}c-=d;if(c){f.splice(d,c)}}return h},stash:function(){return this.spans.slice()},unstash:function(a){this.spans=a;return this},getCount:function(){var d=this.spans,e=d.length,c=0,a,b;for(a=0;a<e;a++){b=d[a];c+=b[1]-b[0]}return c},privates:{bisect:function(a){return Ext.Number.bisectTuples(this.spans,a,0)}}});Ext.define('Ext.util.TsvDecoder',{extend:Ext.util.DelimitedValue,alternateClassName:'Ext.util.TSV',delimiter:'\t'},function(a){Ext.util.TSV=new a()});Ext.define('Ext.util.TaskManager',{extend:Ext.util.TaskRunner,alternateClassName:['Ext.TaskManager'],singleton:!0});Ext.define('Ext.util.TextMetrics',{statics:{shared:null,measure:function(d,e,c){var b=this,a=b.shared||(b.shared=new b(d,c));a.bind(d);a.setFixedWidth(c||'auto');return a.getSize(e)},destroy:function(){this.shared=Ext.destroy(this.shared)}},constructor:function(b,a){var c=this,d=c.measure=Ext.getBody().createChild({role:'presentation',cls:Ext.baseCSSPrefix+'textmetrics',style:{position:'absolute',left:'-1000px',top:'-1000px',visibility:'hidden'}});if(b){c.bind(b)}if(a){d.setWidth(a)}},getSize:function(c){var a=this.measure,b;a.setHtml(c);b=a.getSize();a.setHtml('');return b},bind:function(a){this.measure.setStyle((this.el||(this.self.prototype.el=new Ext.dom.Fly())).attach(a).getStyle(['font-size','font-size-adjust','font-style','font-weight','font-family','font-kerning','font-stretch','line-height','text-transform','text-decoration','letter-spacing','word-break']))},setFixedWidth:function(a){this.measure.setWidth(a)},getWidth:function(a){this.measure.dom.style.width='auto';return this.getSize(a).width},getHeight:function(a){return this.getSize(a).height},destroy:function(){var a=this;a.el=a.measure=Ext.destroy(a.measure);a.callParent()}},function(){Ext.Element.override({getTextWidth:function(a,c,b){return Ext.Number.constrain(Ext.util.TextMetrics.measure(this.dom,Ext.valueFrom(a,this.dom.innerHTML,!0)).width,c||0,b||1000000)}})});Ext.define('Ext.util.paintmonitor.OverflowChange',{extend:Ext.util.paintmonitor.Abstract,eventName:Ext.browser.is.Firefox?'overflow':'overflowchanged',monitorClass:'overflowchange',onElementPainted:function(a){this.getCallback().apply(this.getScope(),this.getArgs())}});Ext.define('Ext.util.sizemonitor.OverflowChange',{extend:Ext.util.sizemonitor.Abstract,constructor:function(a){this.onExpand=this.onExpand.bind(this);this.onShrink=this.onShrink.bind(this);this.callParent(arguments)},getElementConfig:function(){return {reference:'detectorsContainer',classList:[Ext.baseCSSPrefix+'size-monitors','overflowchanged'],children:[{reference:'expandMonitor',className:'expand',children:[{reference:'expandHelper'}]},{reference:'shrinkMonitor',className:'shrink',children:[{reference:'shrinkHelper'}]}]}},bindListeners:function(b){var a=b?'addEventListener':'removeEventListener';this.expandMonitor[a](Ext.browser.is.Firefox?'underflow':'overflowchanged',this.onExpand,!0);this.shrinkMonitor[a](Ext.browser.is.Firefox?'overflow':'overflowchanged',this.onShrink,!0)},onExpand:function(a){if(!(this.destroyed||(Ext.browser.is.Webkit&&a.horizontalOverflow&&a.verticalOverflow))){Ext.TaskQueue.requestRead('refresh',this)}},onShrink:function(a){if(!(this.destroyed||(Ext.browser.is.Webkit&&!a.horizontalOverflow&&!a.verticalOverflow))){Ext.TaskQueue.requestRead('refresh',this)}},refreshMonitors:function(){if(this.destroying||this.destroyed){return}var b=this.expandHelper,c=this.shrinkHelper,d=this.getContentBounds(),f=d.width,e=d.height,a;if(b&&!b.destroyed){a=b.style;a.width=(f+1)+'px';a.height=(e+1)+'px'}if(c&&!c.destroyed){a=c.style;a.width=f+'px';a.height=e+'px'}Ext.TaskQueue.requestRead('refresh',this)},destroy:function(){this.onExpand=this.onShrink=null;this.callParent()}});Ext.define('Ext.util.translatable.ScrollParent',{extend:Ext.util.translatable.Dom,alias:'translatable.scrollparent',isScrollParent:!0,applyElement:function(b){var a=Ext.get(b);if(a){this.parent=a.parent()}return a},doTranslate:function(b,c){var a=this.parent;a.setScrollLeft(Math.round(-b));a.setScrollTop(Math.round(-c))},getPosition:function(){var c=this,a=c.position,b=c.parent;a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}});Ext.define('Ext.util.translatable.ScrollPosition',{extend:Ext.util.translatable.Dom,alias:'translatable.scrollposition',constructor:function(a){if(a&&a.element){this.x=a.element.getScrollLeft();this.y=a.element.getScrollTop()}this.callParent([a])},translateAnimated:function(){var a=this.getElement();this.x=a.getScrollLeft();this.y=a.getScrollTop();this.callParent(arguments)},doTranslate:function(b,c){var a=this.getElement();a.setScrollLeft(Math.round(b));a.setScrollTop(Math.round(c))},getPosition:function(){var c=this,a=c.position,b=c.getElement();a.x=b.getScrollLeft();a.y=b.getScrollTop();return a}});Ext.define('Ext.AbstractComponent',{extend:Ext.Widget});Ext.define('Ext.Button',{extend:Ext.Component,xtype:'button',isButton:!0,cachedConfig:{buttonType:'button',iconCls:null,textAlign:null,menuAlign:'tl-bl?',destroyMenu:!0,stretchMenu:!1},config:{allowDepress:!0,badgeText:null,text:null,icon:!1,iconAlign:'left',pressedDelay:0,menu:{lazy:!0,$value:null},arrow:null,arrowAlign:'right',handler:null,toggleHandler:null,scope:null,autoEvent:null,ui:null,enableToggle:!1,value:null},eventedConfig:{pressed:!1},preventDefaultAction:!0,isMenuOwner:!0,baseCls:Ext.baseCSSPrefix+'button',hasMenuCls:Ext.baseCSSPrefix+'has-menu',hoveredCls:Ext.baseCSSPrefix+'hovered',pressedCls:Ext.baseCSSPrefix+'pressed',pressingCls:Ext.baseCSSPrefix+'pressing',hasBadgeCls:Ext.baseCSSPrefix+'has-badge',hasIconCls:Ext.baseCSSPrefix+'has-icon',hasTextCls:Ext.baseCSSPrefix+'has-text',hasArrowCls:Ext.baseCSSPrefix+'has-arrow',noArrowCls:Ext.baseCSSPrefix+'no-arrow',defaultBindProperty:'text',publishes:['pressed'],element:{reference:'element',listeners:{click:'onClick'}},focusable:!0,focusEl:'buttonElement',ariaEl:'buttonElement',backgroundColorEl:'innerElement',focusClsEl:'el',initialize:function(){var a=this,b=a.el;a.callParent();if(a.getConfig('menu',!0)){a.addCls(a.hasMenuCls)}b.on({scope:a,touchstart:'onPress'});b.addClsOnOver(a.hoveredCls,a.isEnabled,a)},getTemplate:function(){return [{reference:'innerElement',cls:Ext.baseCSSPrefix+'inner-el',children:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',children:[{cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon',reference:'iconElement'},{reference:'textElement',cls:Ext.baseCSSPrefix+'text-el'}]},{reference:'arrowElement',cls:Ext.baseCSSPrefix+'arrow-el '+Ext.baseCSSPrefix+'font-icon'}]},{reference:'badgeElement',cls:Ext.baseCSSPrefix+'badge-el'},this.getButtonTemplate()]},getButtonTemplate:function(){return {tag:'button',reference:'buttonElement',cls:Ext.baseCSSPrefix+'button-el',listeners:{focus:'handleFocusEvent',blur:'handleBlurEvent'}}},shouldRipple:function(){var b=this,e=b.getUi(),a=b.getRipple(),f=e?e.split(" ").indexOf("fab")>=0:!1,c,d;if(!f&&a&&a.bound===undefined){c=b.getText();d=b.getIconCls();if((!c||c.length===0)&&d){a=Ext.clone(a);a.bound=!1;a.measureSelector='x-icon-el'}}return a},isPressed:function(){return Boolean(this.getPressed())},toggle:function(){this.setPressed(!this.isPressed())},updateBadgeText:function(c){var a=this,d=a.el,e=a.badgeElement,b=a.hasBadgeCls;if(c){e.setText(c);d.addCls(b)}else {d.removeCls(b)}},updateButtonType:function(a){this.buttonElement.dom.setAttribute('type',a)},updateText:function(a){this.textElement.setHtml(a);this.toggleCls(this.hasTextCls,!!a)},updateHtml:function(a){this.setText(a)},applyPressed:function(a){return Boolean(a)},updatePressed:function(c){var a=this,b=a.getToggleHandler();if(b&&!a.isConfiguring){Ext.callback(b,a.getScope(),[a,c],0,a)}a.element.toggleCls(a.pressedCls,c)},updateIcon:function(d){var a=this,c=a.iconElement,b=a.hasIconCls;if(d){a.addCls(b);c.setStyle('background-image','url('+d+')')}else {c.setStyle('background-image','');if(!a.getIconCls()){a.removeCls(b)}}},updateIconCls:function(e,c){var a=this,d=a.iconElement,b=a.hasIconCls;if(e){a.addCls(b);d.replaceCls(c,e)}else {d.removeCls(c);if(!a.getIcon()){a.removeCls(b)}}},updateIconAlign:function(d,c){var b=this.el,a=Ext.baseCSSPrefix+'icon-align-';b.removeCls(a+c);b.addCls(a+d)},_textAlignCls:{left:Ext.baseCSSPrefix+'text-align-left',right:Ext.baseCSSPrefix+'text-align-right',center:''},updateTextAlign:function(c,b){var a=this._textAlignCls,e=a[c||'center'],d=a[b||'center'];this.replaceCls(d,e)},updateArrowAlign:function(d,a){var b=this.element,c=Ext.baseCSSPrefix+'arrow-align-';if(a){b.removeCls(c+a)}b.addCls(c+d)},applyMenu:function(a){if(a){if(!a.isMenu){if(Ext.isArray(a)){a={items:a}}if(!a.xtype){a.xtype='menu'}a.ownerCmp=this;a=Ext.widget(a)}this.menuMinWidth=a.getMinWidth()}return a},updateMenu:function(b,a){var c={scope:this,hide:'onMenuHide'};if(a&&!a.destroyed){if(this.getDestroyMenu()){a.destroy()}else if(a.isMenu){a.un(c)}}this.toggleCls(this.hasMenuCls,!!b);if(b&&b.isMenu){b.on(c)}},updateArrow:function(a){this.toggleCls(this.noArrowCls,!a);this.toggleCls(this.hasArrowCls,!!a)},applyAutoEvent:function(a){var b=this;if(typeof a==='string'){a={name:a,scope:b.scope||b}}return a},updateAutoEvent:function(b){var c=b.name,a=b.scope;this.setHandler(function(){a.fireEvent(c,a,this)});this.setScope(a)},applyPressedDelay:function(a){if(Ext.isNumber(a)){return a}return (a)?100:0},enableFocusable:function(){this.buttonElement.dom.disabled=!1;this.callParent()},disableFocusable:function(){this.callParent();this.buttonElement.dom.disabled=!0},findEventTarget:function(){return this.element},onPress:function(c){var a=this,b=this.findEventTarget(c),d=a.getPressedDelay(),e=a.pressingCls;if(!a.getDisabled()&&!c.button){if(d>0){a.pressedTimeout=Ext.defer(function(){delete a.pressedTimeout;if(b){b.addCls(e)}},d)}else {b.addCls(e)}Ext.GlobalEvents.setPressedComponent(a,c)}},onRelease:function(a){this.fireAction('release',[this,a],'doRelease')},doRelease:function(a,c){var b=a.findEventTarget(c);if(!a.getDisabled()){if(a.hasOwnProperty('pressedTimeout')){Ext.undefer(a.pressedTimeout);delete a.pressedTimeout}else {if(b){b.removeCls(a.pressingCls)}}}},onClick:function(a){return this.onTap(a)},onTap:function(a){if(this.getDisabled()){return !1}this.fireAction('tap',[this,a],'doTap')},doTap:function(a,b){var d=a.getMenu(),c=a.getHandler();if(b&&b.preventDefault&&a.preventDefaultAction){b.preventDefault()}if(d){a.toggleMenu(b,d)}else {if((a.getToggleHandler()||a.getEnableToggle())&&(a.getAllowDepress()||!a.isPressed())){a.toggle()}if(c){Ext.callback(c,a.getScope(),[a,b],0,a)}}},onEnterKey:function(a){this.onTap(a);a.stopEvent();return !1},onDownKey:function(b){var a=this.getMenu();if(a&&!this.getDisabled()){this.showMenu(b,a);b.stopEvent();return !1}},onEscKey:function(b){var a=this.getMenu();if(a&&!this.getDisabled()&&a.isVisible()){a.hide();b.stopEvent();return !1}},onFocus:function(a){if(!this.keyHandlersAdded){this.setKeyMap({scope:'this',SPACE:'onEnterKey',ENTER:'onEnterKey',DOWN:'onDownKey',ESC:'onEscKey'});this.keyHandlersAdded=!0}this.callParent([a])},onMenuHide:function(a){if(a.isMenu&&!this.$buttonWasPressed){this.setPressed(!1)}},toggleMenu:function(c,a){var b=this;a=a||b.getMenu();if(a){if(a.isVisible()){b.hideMenu(c,a)}else {b.showMenu(c,a)}}},hideMenu:function(b,a){a=a||this.getMenu();if(a){a.hide()}},showMenu:function(e,a){var b=this,c=!e||e.pointerType,d;a=a||b.getMenu();b.setupMenuStretch(a);if(a){if(a.isVisible()){if(c){a.hide()}else {a.focus()}}else {a.autoFocus=!c;if(a.isMenu){b.$buttonWasPressed=d=b.getPressed();a.showBy(b.element,b.getMenuAlign());if(!d){b.setPressed(!0)}}else if(a.isViewportMenu){a.setDisplayed(!a.getDisplayed())}else {a.show()}}}},doDestroy:function(){var a=this;if(a.hasOwnProperty('pressedTimeout')){Ext.undefer(a.pressedTimeout)}a.setMenu(null);a.callParent()},getFocusClsEl:function(){return this.element},privates:{setupMenuStretch:function(b){var a=this;if(!a.menuMinWidth){if(a.getStretchMenu()){b.setMinWidth(a.el.measure('w'))}else {b.setMinWidth(null)}}}}});Ext.define('Ext.Title',{extend:Ext.Component,xtype:'title',config:{title:''},baseCls:Ext.baseCSSPrefix+'title',updateTitle:function(a){this.setHtml(a)}});Ext.define('Ext.Spacer',{extend:Ext.Component,xtype:'spacer',config:{},constructor:function(a){a=a||{};if(!a.width){a.flex=1}this.callParent([a])}});Ext.define('Ext.layout.Box',{extend:Ext.layout.Auto,alias:'layout.box',isBox:!0,config:{orient:'horizontal',align:'stretch',constrainAlign:!1,pack:'start',vertical:!1,reverse:!1,overflow:null,wrap:null},cls:Ext.baseCSSPrefix+'layout-box',baseItemCls:Ext.baseCSSPrefix+'layout-box-item',constrainAlignCls:Ext.baseCSSPrefix+'constrain-align',flexedCls:Ext.baseCSSPrefix+'flexed',wrapClsMap:{"true":Ext.baseCSSPrefix+'wrap','wrap':Ext.baseCSSPrefix+'wrap','wrap-reverse':Ext.baseCSSPrefix+'wrap-reverse'},orientMap:{horizontal:{sizeProp:'width',containerCls:[Ext.baseCSSPrefix+'layout-hbox',Ext.baseCSSPrefix+'horizontal'],itemCls:Ext.baseCSSPrefix+'layout-hbox-item'},vertical:{sizeProp:'height',containerCls:[Ext.baseCSSPrefix+'layout-vbox',Ext.baseCSSPrefix+'vertical'],itemCls:Ext.baseCSSPrefix+'layout-vbox-item'}},constructor:function(b){var a=this;a.callParent([b]);a.positionSortFn=a.positionSortFn.bind(a)},setConfig:function(b,e,d){var a=b,c;if(b){if(typeof b==='string'){a={};a[b]=e}else {Ext.apply({},b);d=e}c=a.type;delete a.type;if(a.vertical==null){if(c==='vbox'){a.vertical=!0}else if(c==='hbox'){a.vertical=!1}}this.callParent([a,d])}return this},destroy:function(){Ext.destroy(this.getOverflow());this.positionSortFn=null;this.callParent()},updateContainer:function(b,a){var c={flexchange:'onItemFlexChange',scope:this,delegate:'> component'};this.callParent([b,a]);if(b){b.on(c)}if(a){a.un(c)}},updateVertical:function(a){this.setOrient(a?'vertical':'horizontal')},updateOrient:function(l,h){var a=this,g=a.getContainer(),i=a.getOverflow(),f=g.getRenderTarget(),c=g.innerItems,n=c.length,o=a.orientMap,e=o[l],k=o[h],d=l==='vertical',b,j,m;a.sizePropertyName=e.sizeProp;if(h){f.removeCls(k.containerCls);for(b=0;b<n;++b){c[b].removeCls(k.itemCls)}}f.addCls(e.containerCls);a.itemCls=j=[a.baseItemCls,e.itemCls];for(b=0;b<n;++b){m=c[b];m.addCls(j)}a.setVertical(d);a.positionFn=d?'getTop':'getLeft';if(i){i.setVertical(d)}},updateConstrainAlign:function(a){this.getContainer().getRenderTarget().toggleCls(this.constrainAlignCls,a)},onItemInnerStateChange:function(b,d){var c=this,a;c.callParent(arguments);if(d){a=b.getFlex();if(a){c.setItemFlex(b,a)}}else {c.setItemFlex(b,null)}},onItemFlexChange:function(a,b){if(a.isInnerItem()){this.setItemFlex(a,b)}},setItemFlex:function(f,a){var h=f.el,g=typeof a,d=(g==='number'),e=(g==='string'),c,b;if(!a||d||e){if(d){b=a;a=a+' '+a}else if(e){c=Ext.String.splitWords(a);b=c[0];if(c.length===1){a=b+' '+b}}h.setStyle('flex',a)}else {b=a.grow;h.setStyle({flexGrow:b,flexShrink:a.shrink,flexBasis:a.basis})}f.toggleCls(this.flexedCls,!!b)},convertPosition:function(a){var b=this.positionMap;if(b.hasOwnProperty(a)){return b[a]}return a},applyAlign:function(a){return this.convertPosition(a)},updateAlign:function(b,a){this.getContainer().getRenderTarget().swapCls(b,a,!0,Ext.baseCSSPrefix+'align')},applyPack:function(a){return this.convertPosition(a)},updatePack:function(b,a){this.getContainer().getRenderTarget().swapCls(b,a,!0,Ext.baseCSSPrefix+'pack')},updateReverse:function(a){this.getContainer().getRenderTarget().toggleCls(Ext.baseCSSPrefix+'reverse',a)},ensureVisible:function(e,c){var g=this,l,h,k,j,a,b,f,o,d,m,n,i;if(!e.isWidget){c=e;e=c.item}if(c&&!isNaN(c.offset)){e=this.getItemByOffset(c.offset)}if(!e){return}l=this.getContainer();h=l.getScrollable();k=h.getElement();j=g.getVertical();a=g.getItemInfo(k);b=g.getItemInfo(e);f=b.size>a.size;o=(c&&c.scroll)||'min';i=h.translatable;if(g._currentEnsureVisibleItem===e&&(i&&i.isAnimating)){return}if(o==='min'){if((!f&&(b.start<a.start))||(f&&(b.start>a.start))){d=b.start-a.start}else if((!f&&(b.end>a.end))||(f&&b.end<a.end)){d=b.end-a.end}else if(f&&b.start<a.start&&b.end>a.end){d=b.start-a.start}}else {if(b.start<a.start){d=b.end-a.end}else {d=b.start-a.start}}if(d){m=!j?d:null;n=j?d:null;g._currentEnsureVisibleItem=e;h.scrollBy(m,n,c.animation)}},getItemByOffset:function(a){var k=this,o=this.getContainer(),q=o.getScrollable().getElement(),n=k.getItemInfo(q),f=o.getInnerItems(),g=f.length,l=-Infinity,m=-Infinity,h=0,i=g-1,e,b,c,d,p,j;if(!a){return}f.sort(k.positionSortFn);for(b=0;b<g;b++){p=f[b];j=k.getItemInfo(p);c=j.start-n.start;d=n.end-j.end;if((c>l)&&(c<0)&&d>0){l=c;h=b}if((d>m)&&(d<0)&&c>0){m=d;i=b;break}}if(a>0){a--;e=i+=a;if(i>=g){e=g-1}}else {a++;e=h+=a;if(h<0){e=0}}return f[e]},getItemInfo:function(c){var d=this,a=d.getVertical(),b=c.el;return {start:b[a?'getTop':'getLeft'](),end:b[a?'getBottom':'getRight'](),size:b[a?'getHeight':'getWidth']()}},createOverflow:function(a){return Ext.apply({owner:this,vertical:this.getVertical()},a)},applyOverflow:function(b,a){return Ext.Factory.layoutOverflow.update(a,b,this,'createOverflow')},updateWrap:function(c,b){var f=this,e=f.getContainer().getRenderTarget(),d=f.wrapClsMap,a;if(b){a=d[b];if(a){e.removeCls(a)}}if(c){a=d[c];if(a){e.addCls(a)}}},privates:{positionSortFn:function(a,b){var c=this.positionFn;a=a.el[c]();b=b.el[c]();if(a<b){return -1}else if(b<a){return 1}return 0}}});Ext.define('Ext.Toolbar',{extend:Ext.Container,xtype:'toolbar',isToolbar:!0,config:{title:null,defaultType:'button',defaultButtonUI:null,minHeight:null,layout:{type:'box',align:'center'}},statics:{shortcuts:{'->':!0}},autoSize:null,border:!1,classCls:Ext.baseCSSPrefix+'toolbar',constructor:function(a){a=a||{};if(a.docked==='left'||a.docked==='right'){a.layout=Ext.apply({type:'box',align:'stretch',vertical:!0},a.layout)}this.callParent([a])},applyTitle:function(a){if(typeof a==='string'){a={title:a,centered:!0}}return Ext.factory(a,Ext.Title,this.getTitle())},updateTitle:function(a,b){if(a){this.add(a)}if(b){b.destroy()}},showTitle:function(){var a=this.getTitle();if(a){a.show()}},hideTitle:function(){var a=this.getTitle();if(a){a.hide()}},onItemAdd:function(a,c){var b=this.getDefaultButtonUI();if(b){if(a.isSegmentedButton){if(a.getDefaultUI()==null){a.setDefaultUI(b)}}else if(a.isButton&&(a.getUi()==null)){a.setUi(b)}}this.callParent([a,c])},factoryItem:function(a){if(a==='->'){a={xtype:'component',flex:1}}return this.callParent([a])}});Ext.define('Ext.panel.Buttons',function(){var b=Ext.platformTags,a=b.ios||b.mac||b.android;return {isOKFirst:!a,config:{buttonAlign:null,buttonDefaults:null,buttons:null,minButtonWidth:75,standardButtons:{ok:{text:'OK',weight:a?120:10},abort:{text:'Abort',weight:a?110:20},retry:{text:'Retry',weight:a?100:30},ignore:{text:'Ignore',weight:a?90:40},yes:{text:'Yes',weight:a?80:50},no:{text:'No',weight:a?70:60},cancel:{text:'Cancel',weight:a?60:70},apply:{text:'Apply',weight:a?50:80},save:{text:'Save',weight:a?40:90},submit:{text:'Submit',weight:a?30:100},help:{text:'Help',weight:a?10:110},close:{text:'Close',weight:a?20:120}}},_packButtonAlign:{left:'start',right:'end',center:'center'},updateButtonAlign:function(b){var a,c=this._buttons;if(b&&c){a=this._packButtonAlign[b];if(a){c.getLayout().setPack(a)}}},applyButtons:function(b,i){var f=this,d=Ext.convertKeyedItems(b,'xxx','xxx'),e=f.getButtonDefaults(),k=f.getStandardButtons(),j=d?d.length:0,a,g,h,c;if(b&&typeof b==='object'){if(b.xtype||b.itemId||b.items||b.reference){return f.adjustButtons(b,i)}}if(b){if(d===b){d=[];for(c=0;c<j;++c){a=b[c];if(typeof a==='string'){if(!Ext.Toolbar.shortcuts[a]){a=Ext.applyIf({itemId:a,text:a},e)}}else if(e){a=Ext.apply({},a,e)}d[c]=a}}else {for(c=0;c<j;++c){a=d[c];h=a.xxx;g=k[a.itemId];if(g){Ext.applyIf(a,g)}if(h){delete a.xxx;a.handler=h}if(e){Ext.applyIf(a,e)}}}}return f.adjustButtons(d,i)},onClassMixedIn:function(a){var c=a.prototype,b=c.buttons;if(b){delete c.buttons;a.addConfig({buttons:b})}},privates:{normalizeButtonBar:function(a,d,h,e,m){var b=this,c,g,j,l,k,f,i;if(!a){if(d){d.destroy()}return a}c=a.isComponent;if(Ext.isArray(a)){a={xtype:'toolbar',items:a}}else if(!c){a=Ext.clone(a)}if(!c){a.$initParent=b;a.parent=b;if(!a.xtype){a.xtype='toolbar'}}if(c){a.setDocked(h)}else if(h){a.docked=h}if(m){if(c){a.setEnableFocusableContainer(!1)}else {a.enableFocusableContainer=!1}}if(e&&!c){if(e.xtype){delete a.xtype}a=Ext.merge(Ext.clone(e),a);a.layout=Ext.merge(k={},a.layout);g=b.getButtonAlign();if(g){i=b._packButtonAlign[g];if(i){k.pack=i}}f=this.getMinButtonWidth();j=a.defaults;a.defaults=function(g){var b=j||{},c=!g.xtype||g.isButton,i;if(!c){i=Ext.ClassManager.getByAlias('widget.'+g.xtype);if(i){c=i.prototype.isButton}}if(c&&f&&!('minWidth' in b)){b=Ext.apply({minWidth:f},b)}return b}}if(d){l=b.indexOf(d);d.destroy();a=b.insert(l,a)}else {a=b.add(a)}return a}}}});Ext.define('Ext.Tool',{extend:Ext.Component,alternateClassName:'Ext.panel.Tool',xtype:['tool','paneltool'],isPanelTool:!0,isTool:!0,focusable:!0,tabIndex:0,focusEl:'element',ariaEl:'element',inheritUi:!0,classCls:Ext.baseCSSPrefix+'tool',pressedCls:Ext.baseCSSPrefix+'pressed',hoveredCls:Ext.baseCSSPrefix+'hovered',passiveCls:Ext.baseCSSPrefix+'passive',element:{reference:'element',tabIndex:0,listeners:{click:'onClick',mousedown:'onMouseDown',mouseover:'onMouseOver',mouseout:'onMouseOut'},children:[{reference:'iconElement',cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'}]},handler:null,scope:null,toolOwner:null,config:{iconCls:null,type:null,passive:null},stopEvent:!0,weight:10,updateIconCls:function(b,a){this.iconElement.replaceCls(a,b)},updateType:function(a,c){var d=this,b=Ext.Tool.prototype.classCls,e=d.iconElement;d.type=a;e.replaceCls(c&&(b+'-type-'+c),a&&(b+'-type-'+a))},updateDisabled:function(b,a){this.callParent([b,a]);this.el.removeCls([this.hoveredCls,this.pressedCls])},updatePassive:function(b){var a=this;a.setDisabled(b);a.el.toggleCls(a.passiveCls,b);a.el.setTabIndex(b?null:a.getTabIndex());a.focusable=!b},shouldRipple:function(a){return !this.getPassive()&&this.callParent()},privates:{invokeToolHandler:function(a,b,e,c,d){if(b){Ext.callback(b,a.scope,c,0,a)}a.fireEvent('click',a,d,a.toolOwner||a.ownerCt);return !0},onClick:function(d){var a=this,f=a.handler||a.callback,b=a.toolOwner,c,e;if(a.getDisabled()){return !1}if(a.stopEvent!==!1){d.stopEvent()}c=[a.parent,a,d];if(b){c[0]=b;if(b.augmentToolHandler){b.augmentToolHandler(a,c)}}e=(b&&b.invokeToolHandler)?b:a;return e.invokeToolHandler(a,f,a.scope,c,d)},onMouseDown:function(b){var a=this;if(!a.focusable){b.preventDefault()}if(a.getDisabled()){return !1}a.addCls(a.pressedCls);Ext.GlobalEvents.setPressedComponent(a,b)},onRelease:function(){this.removeCls(this.pressedCls)},onMouseOver:function(){if(this.getDisabled()){return !1}this.addCls(this.hoveredCls)},onMouseOut:function(){this.removeCls(this.hoveredCls)}}});Ext.define('Ext.mixin.Toolable',{mixinId:'toolable',config:{defaultToolWeights:{cached:!0,$value:{toggle:10,gear:20,prev:30,next:40,left:50,right:60,down:70,up:80,refresh:90,disclosure:100,plus:100,minus:110,search:120,edit:125,save:130,print:140,expand:150,collapse:160,help:170,pin:180,unpin:190,minimize:200,maximize:210,restore:220,close:230,trash:240}},toolDefaults:{xtype:'tool',zone:'end'},tools:null},toolAnchorName:'bodyElement',afterClassMixedIn:function(c){var a=c.prototype,b=a.toolDefaults,d=a.getRefItems;if(b){delete a.toolDefaults;c.getConfigurator().add({toolDefaults:Ext.apply({xtype:'tool',weight:0,zone:'end'},b)})}b=a.tools;if(b){delete a.tools;c.getConfigurator().add({tools:b})}if(d){a.getRefItems=function(a){return Ext.Array.push(d.call(this,a),this.getTools()||Ext.emptyArray)}}else {a.getRefItems=function(){return this.getTools()||Ext.emptyArray}}},lookupTool:function(d){var c=this.getTools(),e=c&&c.length,b,a;for(b=0;b<e;++b){a=c[b];if(a.type===d||a.getItemId()===d){return a}}return null},addTool:function(a){var d=this,c=d.getTools(),b,e;if(!c||!c.length){d.setTools([a]);a=d.getTools()[0]}else {c.push(a=d.instantiateTool(a));Ext.sortByWeight(c);b=c[c.indexOf(a)+1];e=a.zone;b=(b&&b.zone===e)?b.el.dom:null;d.getToolZone(e).el.insertBefore(a.el,b)}return a},applyTools:function(c){if(c){var e=this,a=e.createTools(c),f=a.length,b,d;Ext.sortByWeight(a);for(b=0;b<f;++b){a[b]=d=e.instantiateTool(a[b]);e.getToolZone(d.zone).el.appendChild(d.el)}c=a}return c},instantiateTool:function(a){if(!a.isTool){a=Ext.clone(a)}a.ownerCmp=a.toolOwner=this;if(!a.isTool){a=Ext.create(a)}a.doInheritUi();a.addCls(this._toolPositionClsMap[a.zone]);return a},updateTools:function(b,a){Ext.destroy(a)},privates:{_toolZoneNames:{end:'_endZone',head:'_headZone',start:'_startZone',tail:'_tailZone'},_tailedCls:Ext.baseCSSPrefix+'tailed',_headedCls:Ext.baseCSSPrefix+'headed',_toolZoneCls:Ext.baseCSSPrefix+'tool-zone',_toolZoneClsMap:{end:Ext.baseCSSPrefix+'end',head:Ext.baseCSSPrefix+'head',tail:Ext.baseCSSPrefix+'tail',start:Ext.baseCSSPrefix+'start'},_toolPositionClsMap:{end:Ext.baseCSSPrefix+'end',head:Ext.baseCSSPrefix+'start',tail:Ext.baseCSSPrefix+'end',start:Ext.baseCSSPrefix+'start'},_toolDockAlignCls:{left:Ext.baseCSSPrefix+'align-left',center:Ext.baseCSSPrefix+'align-center',right:Ext.baseCSSPrefix+'align-right'},hasToolZones:!1,adjustToolDefaults:function(a,c,b){c=c||this.getToolDefaults();if(b===undefined){b=this.getDefaultToolWeights()}if(c){Ext.applyIf(a,c);a.instanceCls=this.toolCls}if(!a.type&&!a.iconCls){a.type=a.itemId}if(b&&!('weight' in a)){a.weight=b[a.type]}return a},createTools:function(g,e){var d=this,c=Ext.convertKeyedItems(g,'handler','handler'),h=c.length,i=d.getDefaultToolWeights(),f=d.getToolDefaults(),b,a;e=e||d;if(c===g){c=[];for(b=0;b<h;++b){a=g[b];if(typeof a==='string'){a=d.adjustToolDefaults({type:a},f,null)}else {a=Ext.apply(d.adjustToolDefaults({},f,null),a)}a.toolOwner=e;c[b]=a}}else {for(b=0;b<h;++b){d.adjustToolDefaults(a=c[b],f,i);a.toolOwner=e}}return c},getToolZone:function(d){var a=this,f=a._toolZoneNames[d],c=a[f],e='_toolDockWrap',b;if(!c){c=Ext.Element.create({classList:[a._toolZoneCls,a._toolZoneClsMap[d]]});b=a[a.toolAnchorName];if(!a[e]){a[e]=b.wrap({cls:Ext.baseCSSPrefix+'tool-dock'});b.addCls(Ext.baseCSSPrefix+'tool-anchor');a.initUiReference(e,'tool-dock');a.syncToolableAlign()}if(d==='head'){c.insertBefore(b);b.addCls(a._headedCls)}else if(d==='tail'){c.insertAfter(b);b.addCls(a._tailedCls)}else if(d==='start'){c.insertBefore(a._headZone||b)}else if(d==='end'){c.insertAfter(a._tailZone||b)}a[f]=c;a.hasToolZones=!0}return c},syncToolableAlign:function(){var a=this,d=a._toolDockWrap,c=a._toolDockAlignCls,b;if(d&&(typeof a.getAlign==='function')){b=a.getAlign();d.replaceCls(c[a._toolDockAlign],c[b]);a._toolDockAlign=b}},doDestroy:function(){var a=this;a.setTools(null);Ext.destroy(a._startZone,a._endZone,a._headZone,a._tailZone,a._toolDockWrap)}}});Ext.define('Ext.Panel',{extend:Ext.Container,xtype:'panel',alternateClassName:'Ext.panel.Panel',isPanel:!0,mixins:[Ext.panel.Buttons,Ext.mixin.Toolable],defaultBindProperty:'title',config:{headerPosition:'top',header:null,icon:null,iconCls:null,iconAlign:null,title:null,titleAlign:null,anchor:null,anchorPosition:null,closable:null,bbar:null,lbar:null,rbar:null,tbar:null},cachedConfig:{border:!1,bodyBorder:null,bodyPadding:null,bodyStyle:null,buttonToolbar:{xtype:'toolbar',itemId:'buttonToolbar',docked:'bottom',defaultType:'button',weighted:!0,ui:'footer',defaultButtonUI:'action',layout:{type:'box',vertical:!1,pack:'center'}},closeAction:'destroy',closeToolText:'Close panel'},classCls:Ext.baseCSSPrefix+'panel',headerCls:null,titleCls:null,toolCls:Ext.baseCSSPrefix+'paneltool',sideCls:{top:Ext.baseCSSPrefix+'top',right:Ext.baseCSSPrefix+'right',bottom:Ext.baseCSSPrefix+'bottom',left:Ext.baseCSSPrefix+'left'},manageBorders:!0,allowHeader:!0,template:[{reference:'bodyWrapElement',cls:Ext.baseCSSPrefix+'body-wrap-el',uiCls:'body-wrap-el',children:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el'}]}],initialize:function(){var b=this,a;b.callParent();a=b.getScrollable();if(a&&a.isVirtualScroller){a.setAutoRefresh(!0)}},addBodyCls:function(a){this.bodyElement.addCls(a);return this},removeBodyCls:function(a){this.bodyElement.removeCls(a);return this},applyBodyPadding:function(a){if(a===!0){a=5}if(a){a=Ext.dom.Element.unitizeBox(a)}return a},applyBodyStyle:function(a,b){if(b&&a===b&&Ext.isObject(b)){a=Ext.apply({},a)}this.bodyElement.applyStyles(a);return null},addTool:function(c){var b=this.ensureHeader(),a;if(b){a=this.createTools(Ext.Array.from(c));if(a&&a.length){a=b.add(a)}}return a},applyHeader:function(b,e){var c=this,a=e,d;c.allowHeader=b!==!1;if(e&&!b){a=Ext.destroy(a)}if(b&&c.allowHeader){d=b===!0;if(a){if(!d){a.setConfig(b)}}else {if(d){b={}}b.$initParent=c;a=Ext.factory(c.createHeader(b));c.header=a;delete a.$initParent;delete b.$initParent;a.ownerCmp=c;(c.maxHeightElement||c.el).insertFirst(a.el);a.doInheritUi()}}return a||null},updateHeader:function(a){if(a){this.positionHeader(a)}else {this.syncBorders()}},applyTools:function(c){var b=this.ensureHeader(),a;if(b){b.clearTools();a=this.createTools(c);if(a&&a.length){b.add(a)}}},close:function(){var a=this,b=a.getCloseAction(),c=b==='destroy';if(a.fireEvent('beforeclose',a)!==!1){if(b&&!c){a[b]()}a.fireEvent('close',a);if(c){a.destroy()}}},createHeader:function(e){var a=this,d={xtype:'panelheader',instanceCls:a.headerCls,docked:'top'},c,b;a._isCreatingHeader=!0;if(e&&e!==!0){Ext.merge(d,e)}if(a.initialized){b=a.getTitle();if(b!=null){if(typeof b==='string'){b={text:b}}Ext.merge(d,{title:b})}c=a.getIconCls();if(c!=null){d.iconCls=c}else {c=a.getIcon();if(c!=null){d.icon=c}}}a._isCreatingHeader=!1;return d},applyAnchor:function(a,c){var d=this,f=d.el.dom,b,e;if(a){if(c){return}else {a=d.el.insertFirst({cls:Ext.baseCSSPrefix+'anchor-el'});b=document.createElementNS("http://www.w3.org/2000/svg",'svg');b.setAttribute('class',Ext.baseCSSPrefix+'pointer-el');e=document.createElementNS("http://www.w3.org/2000/svg",'path');b.appendChild(e);a.dom.appendChild(b)}f.style.overflow='visible'}else if(c){d.anchorSize=c.destroy();f.style.overflow=''}return a},initAnchor:function(){var c=this,b=c.getAnchor(),f=c.sideCls.top,d=b.dom.firstChild,e=d.firstChild,a;b.addCls(f);b.show();a=b.measure();c.anchorSize=a=new Ext.util.Offset(a.width,a.height);c.anchorMargin=parseFloat(b.getStyle('marginLeft'))||0;b.dom.style.margin='0';d.setAttribute('height',a.y);d.setAttribute('width',a.x);e.setAttribute('d','M0 '+a.y+' L'+a.x/2+' 0.5 L'+a.x+' '+a.y);a.y-=parseFloat(Ext.fly(e).getStyle('stroke-width'));b.removeCls(f);b.hide()},updateAnchorPosition:function(b,c){var e=this,a=e.getAnchor(),d=e.sideCls;if(a){if(c){a.removeCls(d[c.side])}if(b){a.addCls(d[b.side]);a.translate(b.x,b.y);a.show()}else {a.hide()}}},updateBorder:function(b,c){var a=this;a.callParent([b,c]);if(a.getBodyBorder()===null){a.setBodyBorderEnabled(b!==!1)}a.syncBorders()},updateBodyPadding:function(a){this.bodyElement.setStyle('padding',a)},updateBodyBorder:function(a){var b=this;a=(a===null)?b.getBorder():a;b.setBodyBorderEnabled(a!==!1);b.syncBorders()},updateClosable:function(c){var a=this,b;if(c){b=a.addTool({type:'close',weight:1000,scope:a,handler:'onCloseTool',tooltip:a.getCloseToolText(),$internal:!0});if(b&&b.length){a.closeTool=b[0]}}else {Ext.destroy(a.closeTool)}},updateHeaderPosition:function(b,a){this.moveHeaderPosition(b,a)},updateIcon:function(b){var a=this.ensureHeader();if(a){a.setIcon(b)}},updateIconCls:function(b){var a=this.ensureHeader();if(a){a.setIconCls(b)}},updateIconAlign:function(b){var a=this.ensureHeader();if(a){a.setIconAlign(b)}},applyBbar:function(b,a){return this.normalizeButtonBar(b,a,'bottom')},applyLbar:function(b,a){return this.normalizeButtonBar(b,a,'left')},applyRbar:function(b,a){return this.normalizeButtonBar(b,a,'right')},applyTbar:function(b,a){return this.normalizeButtonBar(b,a,'top')},updateTitle:function(c){var b=this.ensureHeader(),a=this.tab;if(b){b.setTitle(c)}if(a&&a.isTab&&!a.destroying&&!a.destroyed){a.setText(c)}},updateTitleAlign:function(b){var a=this.ensureHeader();if(a){a.setTitleAlign(b)}},updateUi:function(b,a){this.callParent([b,a]);if(this.hasResizable){this.onResizableUiChange(b,a)}this.anchorSize=null},alignTo:function(c,f,i){var a=this,h=a.getAnchor(),n=a.initialConfig,l=a.isPositioned(),q=l?a.setLeft:a.setX,p=l?a.setTop:a.setY,j,k,g,e,d,b,m,o;if(h){if(!a.anchorSize){a.initAnchor()}}else {return a.callParent([c,f,i])}e=a.anchorMargin;g=c.isRegion?c:(c.isWidget?c.el:Ext.fly(c)).getRegion();g.adjust(-e,e,e,-e);d=a.getAlignmentInfo(g,f);if(d.isAligned){return}o=a.getParent();if(!a.getFloated()){if(!o){a.setFloated(!0)}else {a.positioned=!0}}if('unconstrainedWidth' in a){a.setWidth(a.unconstrainedWidth)}if('unconstrainedHeight' in a){a.setHeight(a.unconstrainedHeight)}a.alignToArgs=[c,f,i];b=a.getAlignRegion(g,f,Ext.apply({anchorSize:a.anchorSize,axisLock:a.getAxisLock()},i));if(b){q.call(a,b.x);p.call(a,b.y);if(b.constrainWidth){a.unconstrainedWidth=n.width||a.self.prototype.width;m=a.el.getHeight();a.setWidth(d.stats.width=b.getWidth());if(b.align.position===0){p.call(a,b.y+(m-a.el.getHeight()))}}if(b.constrainHeight){a.unconstrainedHeight=n.height||a.self.prototype.height;a.setHeight(d.stats.height=b.getHeight())}if(b.anchor){j=0;k=0;if(b.anchor.align&1){k=b.anchor.y-b.y}else {j=b.anchor.x-b.x}a.setAnchorPosition({side:b.anchor.position,x:j,y:k})}else {a.setAnchorPosition(null)}a.setCurrentAlignmentInfo(d)}else if(h){h.show()}if(!a.viewportResizeListener){a.viewportResizeListener=Ext.on({resize:'onViewportResize',scope:a,destroyable:!0})}},getRefItems:function(c){var b=this.callParent([c]),a=this.getConfig('header',!1,!0);if(a){if(c&&a.getRefItems){b.unshift.apply(b,a.getRefItems(c))}b.unshift(a)}return b},onCloseTool:function(){this.close()},onRender:function(){var a=this,b;a.callParent();b=a.getHeader();if(b){b.setRendered(!0)}if(a.hasCollapsible){a.onCollapsibleRendered()}},doDestroy:function(){Ext.destroy(this.header,this.anchor);this.callParent()},privates:{headerPositionMap:{top:{cls:Ext.baseCSSPrefix+'header-position-top',dom:0,horz:!0},right:{cls:Ext.baseCSSPrefix+'header-position-right',dom:1,vert:!0},bottom:{cls:Ext.baseCSSPrefix+'header-position-bottom',dom:1,horz:!0},left:{cls:Ext.baseCSSPrefix+'header-position-left',dom:0,vert:!0}},adjustButtons:function(b,a){return this.normalizeButtonBar(b,a,'bottom',this.getButtonToolbar())},ensureHeader:function(){var a=this,b;if(!a._isCreatingHeader){a.getItems();b=a.getHeader();if(!b&&a.allowHeader){a.setHeader(!0);b=a.getHeader()}}return b},moveHeaderPosition:function(d,c){var a=this,j=a.element,i=a.headerPositionMap,f=i[c],k=i[d],h=f?f.cls:'',g=k.cls,e,b;if(h!==g){if(c){j.removeCls(h)}j.addCls(g)}if(c||d!=='top'){b=a.ensureHeader();if(b){if(!a.isConfiguring){a.positionHeader(b,d);e=!0}}}if(!e){a.syncBorders()}return b},positionHeader:function(c,b){var a=this,d=b||a.getHeaderPosition();c.setPosition(d);a.syncBorders()},setBodyBorderEnabled:function(a){this.bodyElement.setStyle('border-width',a?'':'0')},syncBorders:function(){if(!this.isConfiguring){this.getLayout().handleDockedItemBorders(!0)}}}});Ext.define('Ext.panel.Collapsible',{override:'Ext.Panel',config:{collapsed:null,collapsible:null,titleCollapse:null},hasCollapsible:!0,collapsed:!1,collapsing:!1,expanded:!1,expanding:!1,defaultCollapserCls:'Ext.panel.Collapser',doDestroy:function(){this.setCollapsible(null);this.callParent()},collapse:function(a){return this.getCollapsible().collapse(a)},expand:function(a){return this.getCollapsible().expand(a)},saveState:function(f,d){var h=this,a=h.getCollapsible(),e=a&&a.getCollapsed()&&a.savedProps,c,b,g;h.callParent([f,d]);if(e){c=a.getDirection();b=(c==='top'||c==='bottom')?'height':'width';if(d&&d[b]&&(g=e[b])!==null){f.set(b,g)}}},toggleCollapsed:function(b,a){return this.getCollapsible().toggleCollapsed(b,a)},getCollapsed:function(){var a=this.getCollapsible();return a?a.getCollapsed():!1},updateCollapsed:function(b){var a=this.getCollapsible();if(a){a.setCollapsed(b)}},applyCollapsible:function(a,b){if(a===!0){a={direction:this.getHeaderPosition()}}else if(typeof a==='string'){a={direction:a}}else if(!a){return null}if(b){b.setConfig(a)}else {a=Ext.apply({xclass:this.defaultCollapserCls,target:this},a);b=Ext.create(a)}return b},updateCollapsible:function(b,a){if(a){if(!this.destroying){a.doExpandCollapse(!1)}a.destroy()}if(b&&this.rendered){this.initCollapsible(b)}},updateHeader:function(c,b){var a=this.getCollapsible();this.callParent([c,b]);if(this.isConfiguring&&a){a.toggleCollapsed(a.getCollapsed(),!1)}},updateHeaderPosition:function(b,c){var a=this.getCollapsible();if(a&&a.getCollapsed()){b=a.getDirection()}this.moveHeaderPosition(b,c)},privates:{hasHiddenContent:function(){return this.getCollapsed()||this.callParent()},initCollapsible:function(a){this.ensureHeader();a.initialize()},onCollapsibleRendered:function(){var a=this.getCollapsible();if(a){this.initCollapsible(a)}},reattachBodyWrap:function(){var a=this,c=a._header,d=a.maxHeightElement||a.element,b=a.bodyWrapElement;if(b.parent()!==d){if(c){b.insertAfter(c.element)}else {d.insertFirst(b)}}}}});Ext.define('Ext.panel.Resizable',{override:'Ext.Panel',config:{resizable:null},hasResizable:!0,defaultResizerCls:'Ext.panel.Resizer',applyResizable:function(a){if(a){if(a===!0){a={}}a=Ext.create(Ext.apply({xclass:this.defaultResizerCls,target:this,ui:this.getUi()},a))}return a},updateResizable:function(b,a){if(a){a.destroy()}},doDestroy:function(){this.setResizable(null);this.callParent()},privates:{onResizableUiChange:function(b,c){var a=this.getResizable();if(a){a.setUi(b)}}}});Ext.define('Ext.Mask',{extend:Ext.Component,xtype:'mask',config:{transparent:!1,top:0,left:0,right:0,bottom:0},baseCls:Ext.baseCSSPrefix+'mask',initialize:function(){var a=this;a.callParent();a.element.on('tap','onTap',a);a.on('hide','onHide',a);a.on('show','onShow',a)},onHide:function(a){var b;if(a.sender&&a.tabbingDisabled){a.sender.enableTabbing();a.tabbingDisabled=!1}Ext.util.InputBlocker.unblockInputs();if(Ext.browser.is.AndroidStock4&&Ext.os.version.getMinor()===0){b=this.element.getFirstChild();if(b){b.redraw()}}},onShow:function(a){if(a.sender&&!a.tabbingDisabled){a.sender.disableTabbing();a.tabbingDisabled=!0}},onTap:function(a){this.fireEvent('tap',this,a)},updateTransparent:function(a){this.toggleCls(this.baseCls+'-transparent',a)}});Ext.define('Ext.Sheet',{extend:Ext.Panel,xtype:'sheet',isViewportMenu:!1,hidden:!0,config:{reveal:null,cover:null,side:null,stretchX:null,stretchY:null,enter:'bottom',exit:'bottom'},translatable:{type:'csstransform'},showAnimation:{type:'slideIn',duration:250,easing:'ease-out'},hideAnimation:{type:'slideOut',duration:250,easing:'ease-in'},modal:!0,hideOnMaskTap:!0,centered:!0,classCls:Ext.baseCSSPrefix+'sheet',manageBorders:!1,autoSize:null,border:!0,bodyBorder:!1,floated:!0,isInputRegex:/^(input|textarea|select|a)$/i,destroy:function(){var a=this;a.setSide(null);a.callParent()},applyHideAnimation:function(d){var b=this.getExit(),c=b,a;if(b===null){return null}if(d===!0){d={type:'slideOut'}}a=this.callParent([d]);if(a){if(b==='bottom'){c='down'}else if(b==='top'){c='up'}a.setDirection(c)}return a},applyShowAnimation:function(d){var b=this.getEnter(),c=b,a;if(b===null){return null}if(d===!0){d={type:'slideIn'}}a=this.callParent([d]);if(a){if(b==='bottom'){c='down'}if(b==='top'){c='up'}a.setBefore({display:null});a.setReverse(!0);a.setDirection(c)}return a},hide:function(a){var b=this.getSide();if(b){Ext.Viewport.hideMenu(b,a)}else {this.callParent([a])}},show:function(e,a){var b=this,d=Ext.Viewport,c=a&&('side' in a)?a.side:b.getSide();if(c){d.setMenu(b);d.showMenu(c)}else {b.callParent([e,a])}},updateSide:function(b,c){var a=this,d=!a.isConfiguring&&a.isVisible();a.isViewportMenu=!!b;if(c){Ext.Viewport.removeMenu(c)}if(b){Ext.Viewport.setMenu(a,{side:b});if(d){a.show()}}},updateStretchX:function(a){this.getLeft();this.getRight();if(a){this.setLeft(0);this.setRight(0)}},updateStretchY:function(a){this.getTop();this.getBottom();if(a){this.setTop(0);this.setBottom(0)}}});Ext.define('Ext.ActionSheet',{extend:Ext.Sheet,xtype:'actionsheet',classCls:Ext.baseCSSPrefix+'actionsheet',centered:!1,layout:'vbox',side:'bottom',defaultType:'button'});Ext.define('Ext.Anim',{isAnim:!0,disableAnimations:!1,defaultConfig:{from:{},to:{},duration:250,delay:0,easing:'ease-in-out',autoClear:!0,out:!0,direction:null,reverse:!1},opposites:{'left':'right','right':'left','up':'down','down':'up'},constructor:function(a){a=Ext.apply({},a||{},this.defaultConfig);this.config=a;this.callParent([a]);this.running=[]},initConfig:function(c,d){var b=this,a=Ext.apply({},d||{},b.config);a.el=c=Ext.get(c);if(a.reverse&&b.opposites[a.direction]){a.direction=b.opposites[a.direction]}if(b.config.before){b.config.before.call(a,c,a)}if(d.before){d.before.call(a.scope||a,c,a)}return a},run:function(d,a){var e=this,c,b,f;d=Ext.get(d);a=a||{};c=d.dom.style;f=a.after;if(e.running[d.id]){e.onTransitionEnd(null,d,{config:a,after:f})}a=this.initConfig(d,a);if(this.disableAnimations){for(b in a.to){if(!a.to.hasOwnProperty(b)){continue}c[b]=a.to[b]}this.onTransitionEnd(null,d,{config:a,after:f});return e}d.un('transitionend',e.onTransitionEnd,e);c.webkitTransitionDuration='0ms';c.transitionDuration='0ms';for(b in a.from){if(!a.from.hasOwnProperty(b)){continue}c[b]=a.from[b]}Ext.defer(function(){if(!d.dom){return}if(a.is3d===!0){d.parent().setStyle({'-webkit-perspective':'1200','-webkit-transform-style':'preserve-3d'})}c.webkitTransitionDuration=a.duration+'ms';c.webkitTransitionProperty='all';c.webkitTransitionTimingFunction=a.easing;c.transitionDuration=a.duration+'ms';c.transitionProperty='all';c.transitionTimingFunction=a.easing;d.on('transitionend',e.onTransitionEnd,e,{single:!0,config:a,after:f});for(b in a.to){if(!a.to.hasOwnProperty(b)){continue}c[b]=a.to[b]}},a.delay||5);e.running[d.id]=a;return e},onTransitionEnd:function(g,c,f){var e=this,a=f.config,b,d;c=Ext.get(c);if(this.running[c.id]===undefined){return}b=c.dom.style;if(a.autoClear){for(d in a.to){if(!a.to.hasOwnProperty(d)||a[d]===!1){continue}b[d]=''}}b.webkitTransitionDuration=null;b.webkitTransitionProperty=null;b.webkitTransitionTimingFunction=null;b.transitionDuration='';b.transitionProperty='';b.transitionTimingFunction='';if(a.is3d){c.parent().setStyle({'-webkit-perspective':'','-webkit-transform-style':''})}if(e.config.after){e.config.after.call(a,c,a)}if(f.after){f.after.call(a.scope||e,c,a)}delete e.running[c.id]}},function(){Ext.Anim.seed=1000;Ext.Anim.run=function(c,a,b){if(c.isComponent){c=c.element}else {c=Ext.get(c)}b=b||{};if(a.isAnim){a.run(c,b)}else {if(Ext.isObject(a)){if(b.before&&a.before){b.before=Ext.createInterceptor(b.before,a.before,a.scope)}if(b.after&&a.after){b.after=Ext.createInterceptor(b.after,a.after,a.scope)}b=Ext.apply({},b,a);a=a.type||'raw'}if(!Ext.anims[a]){throw a+' is not a valid animation type.'}else {if(c&&c.dom){Ext.anims[a].run(c,b)}}}};Ext.anims={fade:new Ext.Anim({type:'fade',before:function(e){var b=1,c=1,d=e.getStyle('z-index')==='auto'?0:e.getStyle('z-index'),a=d;if(this.out){c=0}else {a=Math.abs(d)+1;b=0}this.from={'opacity':b,'z-index':a};this.to={'opacity':c,'z-index':a}}}),slide:new Ext.Anim({direction:'left',cover:!1,reveal:!1,opacity:!1,'z-index':!1,before:function(b){var i=b.getStyle('z-index')==='auto'?0:b.getStyle('z-index'),j=b.getStyle('opacity'),c=i+1,f=this.out,a=this.direction,g=0,h=0,d=0,e=0,k=b.getHeight(),l=b.getWidth();if(a==='left'||a==='right'){if(f){g=-l}else {d=l}}else if(a==='up'||a==='down'){if(f){h=-k}else {e=k}}if(a==='right'||a==='down'){h*=-1;g*=-1;e*=-1;d*=-1}if(this.cover&&f){g=0;h=0;c=i}else if(this.reveal&&!f){d=0;e=0;c=i}this.from={'-webkit-transform':'translate3d('+d+'px, '+e+'px, 0)','z-index':c,'opacity':j-0.01};this.to={'-webkit-transform':'translate3d('+g+'px, '+h+'px, 0)','z-index':c,'opacity':j}}}),pop:new Ext.Anim({scaleOnExit:!0,before:function(h){var d=1,e=1,c=1,b=1,a=h.getStyle('z-index')==='auto'?0:h.getStyle('z-index'),f=a,g=a;if(!this.out){d=0.01;f=a+1;g=a+1;c=0}else {if(this.scaleOnExit){e=0.01;b=0}else {b=0.8}}this.from={'-webkit-transform':'scale('+d+')','-webkit-transform-origin':'50% 50%','opacity':c,'z-index':f};this.to={'-webkit-transform':'scale('+e+')','-webkit-transform-origin':'50% 50%','opacity':b,'z-index':g}}}),flip:new Ext.Anim({is3d:!0,direction:'left',before:function(){var b='Y',d=1,e=1,a=0,c=0;if(this.out){c=-180;e=0.8}else {a=180;d=0.8}if(this.direction==='up'||this.direction==='down'){b='X'}if(this.direction==='right'||this.direction==='left'){c*=-1;a*=-1}this.from={'-webkit-transform':'rotate'+b+'('+a+'deg) scale('+d+')','-webkit-backface-visibility':'hidden'};this.to={'-webkit-transform':'rotate'+b+'('+c+'deg) scale('+e+')','-webkit-backface-visibility':'hidden'}}}),cube:new Ext.Anim({is3d:!0,direction:'left',style:'outer',before:function(k){var a='0% 0%',b=0,c=0,g='Y',d=0,e=0,j=k.getWidth(),i=k.getHeight(),l=!0,h=' translateX(0)',f='';if(this.direction==='left'||this.direction==='right'){if(this.out){a='100% 100%';e=j;c=-90}else {a='0% 0%';d=j;b=90}}else if(this.direction==='up'||this.direction==='down'){g='X';if(this.out){a='100% 100%';e=i;c=90}else {a='0% 0%';d=i;b=-90}}if(this.direction==='down'||this.direction==='right'){b*=-1;c*=-1;a=(a==='0% 0%')?'100% 100%':'0% 0%'}if(this.style==='inner'){d*=-1;e*=-1;b*=-1;c*=-1;if(!this.out){f=' translateX(0px)';a='0% 50%'}else {f=h;a='100% 50%'}}this.from={'-webkit-transform':'rotate'+g+'('+b+'deg)'+(l?' translateZ('+d+'px)':'')+h,'-webkit-transform-origin':a};this.to={'-webkit-transform':'rotate'+g+'('+c+'deg) translateZ('+e+'px)'+f,'-webkit-transform-origin':a}},duration:250}),wipe:new Ext.Anim({before:function(a){var d=a.getStyle('z-index'),b,c='';if(!this.out){b=d+1;c='-webkit-gradient(linear, left bottom, right bottom, '+'from(transparent), to(#000), color-stop(66%, #000), color-stop(33%, '+'transparent))';this.from={'-webkit-mask-image':c,'-webkit-mask-size':a.getWidth()*3+'px '+a.getHeight()+'px','z-index':b,'-webkit-mask-position-x':0};this.to={'-webkit-mask-image':c,'-webkit-mask-size':a.getWidth()*3+'px '+a.getHeight()+'px','z-index':b,'-webkit-mask-position-x':-a.getWidth()*2+'px'}}},duration:500}),raw:new Ext.Anim({duration:250})}});Ext.define('Ext.Media',{extend:Ext.Component,xtype:'media',config:{url:'',enableControls:!0,controls:!0,autoResume:!1,autoPause:!0,preload:!0,loop:!1,media:null,volume:1,muted:!1},constructor:function(a){this.mediaEvents={};this.callParent([a])},initialize:function(){var a=this;a.callParent();a.on({scope:a,show:'onActivate',hide:'onDeactivate'});a.addMediaListener({canplay:'onCanPlay',play:'onPlay',pause:'onPause',ended:'onEnd',volumechange:'onVolumeChange',timeupdate:'onTimeUpdate'})},addMediaListener:function(b,e){var a=this,d=a.media.dom,c=Ext.Function.bind;Ext.Object.each(b,function(g,f){f=c(a[f],a);a.mediaEvents[g]=f;d.addEventListener(g,f)})},onPlay:function(){this.fireEvent('play',this)},onCanPlay:function(){this.fireEvent('canplay',this)},onPause:function(){this.fireEvent('pause',this,this.getCurrentTime())},onEnd:function(){this.fireEvent('ended',this,this.getCurrentTime())},onVolumeChange:function(){this.fireEvent('volumechange',this,this.media.dom.volume)},onTimeUpdate:function(){this.fireEvent('timeupdate',this,this.getCurrentTime())},isPlaying:function(){return !Boolean(this.media.dom.paused)},onActivate:function(){var a=this;if(a.getAutoResume()&&!a.isPlaying()){a.play()}},onDeactivate:function(){var a=this;if(a.getAutoPause()&&a.isPlaying()){a.pause()}},updateUrl:function(b){var a=this.media.dom;a.src=b;if('load' in a){a.load()}if(this.isPlaying()){this.play()}},updateEnableControls:function(a){this.setControls(a)},updateControls:function(a){this.media.set({controls:a?'controls':undefined})},updateLoop:function(a){this.media.dom.loop=a?'loop':!1},play:function(){var a=this.media.dom;if('play' in a){a.play();Ext.defer(function(){a.play()},10)}},pause:function(){var a=this.media.dom;if('pause' in a){a.pause()}},toggle:function(){if(this.isPlaying()){this.pause()}else {this.play()}},stop:function(){var a=this;a.setCurrentTime(0);a.fireEvent('stop',a);a.pause()},updateVolume:function(a){this.media.dom.volume=a},updateMuted:function(a){this.fireEvent('mutedchange',this,a);this.media.dom.muted=a},getCurrentTime:function(){return this.media.dom.currentTime},setCurrentTime:function(a){this.media.dom.currentTime=a;return a},getDuration:function(){return this.media.dom.duration},doDestroy:function(){var a=this,c=a.media.dom,b=a.mediaEvents;Ext.Object.each(b,function(a,b){c.removeEventListener(a,b)});a.callParent()},deprecated:{'6.5':{configs:{enableControls:{message:'Please use "controls" instead.'}}}}});Ext.define('Ext.Audio',{extend:Ext.Media,xtype:'audio',config:{cls:Ext.baseCSSPrefix+'audio'},onActivate:function(){var a=this;a.callParent();if(Ext.os.is.Phone){a.element.show()}},onDeactivate:function(){var a=this;a.callParent();if(Ext.os.is.Phone){a.element.hide()}},template:[{reference:'media',preload:'auto',tag:'audio',cls:Ext.baseCSSPrefix+'component'}]});Ext.define('Ext.menu.Item',{extend:Ext.Component,xtype:'menuitem',alternateClassName:'Ext.menu.TextItem',isMenuItem:!0,menuExpandDelay:200,menuHideDelay:200,scope:null,destroyMenu:!0,clickHideDelay:0,hideOnClick:!0,config:{href:null,target:null,handler:null,text:null,menu:{lazy:!0,$value:null},menuAlign:'tl-tr?',icon:null,iconCls:null,iconAlign:'left',indented:null,separator:null},inheritUi:!0,ariaRole:'menuitem',focusable:!0,classCls:Ext.baseCSSPrefix+'menuitem',activeCls:Ext.baseCSSPrefix+'active',hasLeftIconCls:Ext.baseCSSPrefix+'has-left-icon',hasRightIconCls:Ext.baseCSSPrefix+'has-right-icon',hasArrowCls:Ext.baseCSSPrefix+'has-arrow',hasHrefCls:Ext.baseCSSPrefix+'has-href',isMenuOwner:!0,template:[{reference:'bodyElement',tag:'a',href:'#',cls:Ext.baseCSSPrefix+'body-el '+Ext.baseCSSPrefix+'unselectable',children:[{reference:'leftIconWrapElement',cls:Ext.baseCSSPrefix+'left-icon-wrap-el '+Ext.baseCSSPrefix+'icon-wrap-el',children:[{reference:'leftIconElement',cls:Ext.baseCSSPrefix+'left-icon-el '+Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'}]},{html:'\xa0',reference:'textElement',cls:Ext.baseCSSPrefix+'text-el'},{reference:'rightIconWrapElement',cls:Ext.baseCSSPrefix+'right-icon-wrap-el '+Ext.baseCSSPrefix+'icon-wrap-el',children:[{reference:'rightIconElement',cls:Ext.baseCSSPrefix+'right-icon-el '+Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'}]},{reference:'arrowElement',cls:Ext.baseCSSPrefix+'arrow-el '+Ext.baseCSSPrefix+'font-icon'}]}],ariaEl:'bodyElement',focusEl:'bodyElement',initialize:function(){this.callParent();this.syncHasIconCls();if(Ext.supports.Touch){this.handleTouch()}},getFocusClsEl:function(){return this.el},expandMenu:function(c){var b=this,a=b.getMenu();if(!b.getDisabled()&&a){a.parentMenu=b.parentMenu;b.hideOnClick=!1;if(a.isVisible()){if(c&&c.type==='keydown'){a.focus()}}else {a.autoFocus=!c||!c.pointerType;a.showBy(b,b.getMenuAlign(),{axisLock:!0})}}},getRefItems:function(c){var b=this.getMenu(),a;if(b){a=b.getRefItems(c);a.unshift(b)}return a||[]},onFocusEnter:function(b){var a=this;a.callParent([b]);a.addCls(a.activeCls);a.activated=!0;if(a.hasListeners.activate){a.fireEvent('activate',a)}if(a.parentMenu){a.parentMenu.setActiveItem(a)}},onFocusLeave:function(c){var a=this,b=a.menu;a.callParent([c]);a.removeCls(a.activeCls);if(b){b.hide()}a.activated=!1;if(a.hasListeners.deactivate){a.fireEvent('deactivate',a)}if(a.parentMenu){a.parentMenu.setActiveItem(null)}},onRemoved:function(a){this.callParent([a]);this.parentMenu=null},doDestroy:function(){var a=this;a.separatorElement=Ext.destroy(a.separatorElement);a.setMenu(null);a.linkClickListener=Ext.destroy(a.linkClickListener);a.callParent()},updateText:function(a){if(a==null||a===''){a='\xa0'}this.textElement.dom.firstChild.data=a},applyMenu:function(a){var b=this,c=b.ariaEl.dom;if(a){if(a.isMenu){a.setConstrainAlign(Ext.getBody());a.ownerCmp=b}else {a=Ext.menu.Menu.create(a,{ownerCmp:b,$initParent:b,constrainAlign:Ext.getBody()})}c.setAttribute('aria-haspopup',!0);c.setAttribute('aria-owns',a.id)}else {c.removeAttribute('aria-haspopup');c.removeAttribute('aria-owns')}b.toggleCls(b.hasArrowCls,!!a);return a},updateMenu:function(b,a){if(a){if(this.destroyMenu){Ext.destroy(a)}else {a.parentMenu=null}}this.menu=b},updateHref:function(a){this.bodyElement.dom.href=a;this.toggleCls(this.hasHrefCls,!!a)},updateTarget:function(a){this.bodyElement.dom.target=a},updateIcon:function(c){var a=this,b=(a.getIconAlign()==='left')?this.leftIconElement:this.rightIconElement;if(c){b.setStyle('background-image','url('+c+')')}else {b.setStyle('background-image','')}if(!a.isConfiguring){a.syncHasIconCls()}},updateIconCls:function(d,c){var a=this,b=(a.getIconAlign()==='left')?this.leftIconElement:this.rightIconElement;if(d){b.replaceCls(c,d)}else {b.removeCls(c)}if(!a.isConfiguring){a.syncHasIconCls()}},updateIconAlign:function(a){if(!this.isConfiguring){this.syncHasIconCls()}},updateSeparator:function(c){var b=this,a=b.separatorElement;if(c){if(a){a.show()}else {b.separatorElement=a=Ext.Element.create({cls:Ext.baseCSSPrefix+'menuseparator'});b.el.dom.insertBefore(a.dom,b.el.dom.firstChild)}}else if(a){a.hide()}},privates:{handleTouch:function(){var a=this,b=a.bodyElement;a.linkClickListener=b.on({click:a.onClick,capture:!0,translate:!1,scope:a,destroyable:!0})},onSpace:function(a){return this.onClick(a)},onClick:function(b){var a=this,f=a.getHref(),d=a.clickHideDelay,g=b.browserEvent,e=a.getHandler(),h=b.pointerType==='touch',c;if(a.linkClickListener&&!h&&b.parentEvent){b.stopEvent();return}if((!f||a.getDisabled())&&a.bodyElement.dom===b.getTarget('a')){b.stopEvent();if(a.getDisabled()){return !1}}if(a.getDisabled()||a.handlingClick){return}if(a.hideOnClick&&!a.getMenu()){if(!d){a.hideParentMenus()}else {a.hideParentMenusTimer=Ext.defer(a.hideParentMenus,d,a)}}c=a.fireEvent('click',a,b);if(a.destroyed){return}if(c!==!1&&e){Ext.callback(e,a.scope,[a,b],0,a)}if(a.destroyed){return}if(f&&b.type!=='click'&&!g.defaultPrevented){a.handlingClick=!0;a.bodyElement.dom.click();a.handlingClick=!1}return c},hideParentMenus:function(){var a;for(a=this.getRefOwner();a&&((a.isMenu&&a.getFloated())||a.isMenuItem);a=a.getRefOwner()){if(a.isMenu){a.hide()}}},hasIcon:function(){return !!(this.getIconCls()||this.getIcon())},syncHasIconCls:function(){var a=this,b=a.hasRightIconCls,c=a.hasLeftIconCls,d=a.getIconAlign();if(a.hasIcon()){if(d==='left'){a.replaceCls(b,c)}else if(d==='right'){a.replaceCls(c,b)}}else {a.removeCls([c,b])}}}});Ext.define('Ext.menu.Manager',{singleton:!0,alternateClassName:'Ext.menu.MenuMgr',hideAll:function(){var a=this.visible,d=a.length,c=!1,b;if(d){a=a.slice();for(b=0;b<d;b++){a[b].hide();c=!0}}return c},privates:{groups:{},visible:[],constructor:function(){var a=this;a.onShow=function(){a.registerGlobalListeners();return a.onShow.apply(a,arguments)}},onGlobalScroll:function(d){var a=this.visible,e=a.length,b,c;if(e&&d!==Ext.scroll.Scroller.viewport){a=a.slice();for(b=0;b<e;++b){c=a[b];if(d.contains(c)){c.hide()}}}},checkActiveMenus:function(f){var a=this.visible,e=a.length,c,b,d=Ext.Component.from(f);if(e){a=a.slice();for(c=0;c<e;++c){b=a[c];if(!(b.owns(f)||(d&&d.isMenuOwner&&d.getMenu()===b))){b.hide()}}}},onShow:function(a){if(a.getFloated()){Ext.Array.include(this.visible,a)}},onHide:function(a){if(a.getFloated()){Ext.Array.remove(this.visible,a)}},registerGlobalListeners:function(){var a=this;delete a.onShow;Ext.on({mousedown:a.checkActiveMenus,scrollstart:a.onGlobalScroll,scope:a})}}});Ext.define('Ext.layout.VBox',{extend:Ext.layout.Box,alias:'layout.vbox',config:{vertical:!0}});Ext.define('Ext.menu.Menu',{extend:Ext.Panel,xtype:'menu',isMenu:!0,config:{align:'tl-bl?',indented:!0,separator:null,autoHide:null,groups:null},allowOtherMenus:!1,ignoreParentClicks:!1,mouseLeaveDelay:50,defaultType:'menuitem',autoSize:null,twoWayBindable:'groups',keyMap:{scope:'this',SPACE:'onSpaceKey',ESC:'onEscKey'},layout:{type:'vbox',align:'stretch'},classCls:Ext.baseCSSPrefix+'menu',indentedCls:Ext.baseCSSPrefix+'indented',hasSeparatorCls:Ext.baseCSSPrefix+'has-separator',nonMenuItemCls:Ext.baseCSSPrefix+'non-menuitem',allowFocusingDisabledChildren:!0,border:!0,defaultFocus:':focusable',floated:!0,focusable:!0,focusableContainer:!0,nameHolder:!0,weighted:!0,initialize:function(){var a=this,b={click:a.onClick,mouseover:a.onMouseOver,scope:a};a.callParent();if(Ext.supports.Touch){b.pointerdown=a.onMouseOver}a.element.on(b);a.itemOverTask=new Ext.util.DelayedTask(a.handleItemOver,a);a.mouseMonitor=a.el.monitorMouseLeave(a.mouseLeaveDelay,a.onMouseLeave,a)},doDestroy:function(){var a=this;a.itemOverTask.cancel();Ext.menu.Manager.onHide(a);a.parentMenu=a.ownerCmp=null;if(a.rendered){a.el.un(a.mouseMonitor)}a.callParent()},showBy:function(b,a,c){this.callParent([b,a||this.getAlign(),c])},onFocusEnter:function(c){var a=this,b;a.callParent([c]);a.mixins.focusablecontainer.onFocusEnter.call(a,c);if(a.getFloated()){b=a.getInherited();if(!b.topmostFocusEvent){b.topmostFocusEvent=c}}},onFocusLeave:function(a){this.callParent([a]);if(this.getAutoHide()!==!1){this.hide()}},onItemAdd:function(a,b){this.callParent([a,b]);this.syncItemIndentedCls(a);if(!a.isMenuItem&&!a.isMenuSeparator){a.addCls(this.nonMenuItemCls)}},onItemRemove:function(a,c,b){this.callParent([a,c,b]);a.removeCls(this.indentedCls,this.nonMenuItemCls)},beforeShow:function(){var a=this,b;if(a.getFloated()){b=a.hasFloatMenuParent();if(!b&&!a.allowOtherMenus){Ext.menu.Manager.hideAll()}}a.callParent(arguments)},afterShow:function(){var a=this,b=a.ariaEl.dom;a.callParent();Ext.menu.Manager.onShow(a);if(a.getFloated()&&b){b.setAttribute('aria-expanded',!0)}if(a.getFloated()){a.maxHeight=a.savedMaxHeight}if(a.autoFocus){a.focus()}},afterHide:function(){var a=this,b=a.ariaEl.dom;a.callParent();a.lastHide=Ext.Date.now();Ext.menu.Manager.onHide(a);if(a.getFloated()&&b){b.setAttribute('aria-expanded',!1)}delete a.getInherited().topmostFocusEvent},factoryItem:function(a){var b;if(typeof a==='string'&&a[0]!=='@'){if(a==='-'){a={xtype:'menuseparator'}}else {a={}}}b=this.callParent([a]);if(b.isMenuItem){b.parentMenu=this}return b},updateIndented:function(b){var a=this;if(!a.isConfiguring){a.bodyElement.toggleCls(a.hasSeparatorCls,!!(b&&a.getSeparator()));a.items.each(a.syncItemIndentedCls,a)}},updateSeparator:function(a){this.bodyElement.toggleCls(this.hasSeparatorCls,!!(a&&this.getIndented()))},privates:{applyItemDefaults:function(a){a=this.callParent([a]);if(!a.isComponent&&!a.xtype&&!a.xclass){if(a.group||a.name){a.xtype='menuradioitem'}else if('checked' in a){a.xtype='menucheckitem'}}return a},applyGroups:function(f,l){var b=this,d=Ext.apply({},l),k=b.isConfiguring,a,e,j,c,h,g,i;if(f){b.updatingGroups=!0;for(a in f){i=d[a];d[a]=g=f[a];if(!k){e=b.lookupName(a);for(c=0,j=e.length;c<j;c++){h=e[c];h.setChecked(h.getValue()===g)}b.fireEvent('groupchange',b,a,g,i)}}b.updatingGroups=!1}return d},processFocusableContainerKeyEvent:function(a){var b=a.keyCode,c;if(b===a.ESC||(Ext.fly(a.target).is('input[type=checkbox]')&&(b===a.LEFT||b===a.RIGHT||b===a.UP||b===a.DOWN))){a.preventDefault();c=this.getItemFromEvent(a);a.target=c&&c.focusEl.dom}else if(b===a.TAB&&Ext.fly(a.target).is('input[type=text],textarea')){a.preventDefault();c=this.getItemFromEvent(a);a.target=c&&c.focusEl.dom;if(a.shiftKey){a.shiftKey=!1;a.keyCode=a.UP}else {a.keyCode=a.DOWN}}else {return this.callParent([a])}return a},onEscKey:function(a){if(this.getFloated()){this.hide()}},onSpaceKey:function(b){var a=this.getItemFromEvent(b);if(a&&a.isMenuItem){a.onSpace(b)}},onFocusableContainerLeftKey:function(a){a.preventDefault();if(this.parentMenu){this.hide()}},onFocusableContainerRightKey:function(a){var b=this.getItemFromEvent(a);a.preventDefault();if(b){b.expandMenu(a)}},onClick:function(b){var c=this,g=b.type,a,d,f=g==='keydown',e=b.pointerType==='touch';if(c.getDisabled()){return b.stopEvent()}a=c.getItemFromEvent(b);if(a&&a.isMenuItem){if(!a.getMenu()||!c.ignoreParentClicks){d=a.onClick(b)}else {b.stopEvent()}if(c.destroyed){return}if(a.getMenu()&&d!==!1&&(f||e)){a.expandMenu(b)}}if(!a||a.getDisabled()){a=undefined}c.fireEvent('click',c,a,b)},onMouseLeave:function(b){var a=this;if(a.itemOverTask){a.itemOverTask.cancel()}if(a.getDisabled()){return}a.fireEvent('mouseleave',a,b)},onMouseOver:function(c){var a=this,d=a.getActiveItem(),f=d&&d.getMenu&&d.getMenu(),i=f&&f.isVisible(),g=c.pointerType==='touch',e,b,h;if(!a.getDisabled()){if(g){e=!a.el.contains(document.activeElement)}else {e=!a.el.contains(c.getRelatedTarget())}b=a.getItemFromEvent(c);if(b){if(g){a.handleItemOver(c,b)}else {h=b.isMenuItem?b.bodyElement:b.el;if(!h.contains(c.getRelatedTarget())){a.itemOverTask.delay(i?a.mouseLeaveDelay:0,null,null,[c,b])}}}if(e){a.fireEvent('mouseenter',a,c)}a.fireEvent('mouseover',a,b,c)}},handleItemOver:function(c,a){var b=c.pointerType==='mouse';if(!a.containsFocus&&(b||a.isMenuItem)){a.focus()}if(a.expandMenu&&b){a.expandMenu(c)}},getItemFromEvent:function(c){var d=this.bodyElement.dom,b=c.getTarget(),a;while(b&&b.parentNode!==d){b=b.parentNode}a=b&&Ext.getCmp(b.id);if(a&&a.isMenuItem&&!c.within(a.bodyElement)){a=null}return a},hasFloatMenuParent:function(){return this.parentMenu||this.up('menu[_floated=true]')},syncItemIndentedCls:function(a){var b=a.isMenuItem?a.getIndented():a.indented;a.toggleCls(this.indentedCls,!!(b||(this.getIndented()&&(b!==!1))))}},statics:{create:function(a,b){if(Ext.isArray(a)){a=Ext.apply({xtype:'menu',items:a},b)}else {a=Ext.apply({xtype:'menu'},a,b)}return Ext.create(a)}},deprecated:{'6.5':{configs:{plain:{message:'To achieve classic toolkit "plain" effect, use "indented".'},showSeparator:{message:'To achieve classic toolkit "showSeparator" effect, use "separator".'}}}}});Ext.define('Ext.SplitButton',{extend:Ext.Button,xtype:'splitbutton',isSplitButton:!0,baseCls:Ext.baseCSSPrefix+'splitButton',config:{arrowHandler:null},arrowCls:'split',initialize:function(){var a=this;a.callParent();a.arrowElement.addClsOnOver(a.hoveredCls,a.isEnabled,a);a.splitInnerElement.addClsOnOver(a.hoveredCls,a.isEnabled,a);a.splitArrowCoverElement.on({focus:'handleFocusEvent',blur:'handleBlurEvent',scope:a})},getTemplate:function(){return [{reference:'innerElement',cls:Ext.baseCSSPrefix+'splitBody-el',children:[{reference:'splitInnerElement',cls:Ext.baseCSSPrefix+'splitInner-el',children:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',children:[{cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon',reference:'iconElement'},{reference:'textElement',cls:Ext.baseCSSPrefix+'text-el'}]},this.getButtonTemplate()]},{reference:'arrowElement',cls:Ext.baseCSSPrefix+'splitArrow-el',children:[{reference:'splitArrowElement',cls:Ext.baseCSSPrefix+'arrow-el '+Ext.baseCSSPrefix+'font-icon'},this.getArrowButtonTemplate()]}]}]},getArrowButtonTemplate:function(){return {tag:'button',reference:'splitArrowCoverElement',cls:Ext.baseCSSPrefix+'button-el'}},doTap:function(a,b){var c;if(a.preventDefaultAction){b.preventDefault()}if(!a.getDisabled()){if((b.type==='keydown'||b.type==='click')&&(b.target===this.splitArrowCoverElement.dom)){if(!Ext.isEmpty(a.menuShowDelay)&&a.menuShowDelay>0){a.menuShowTimeout=Ext.defer(a.getArrowHandler(),a.menuShowDelay)}else {a.toggleMenu(b,a.getMenu());a.fireEvent('arrowclick',a,b);Ext.callback(a.getArrowHandler(),a.getScope(),[a,b],0,a)}}else {c=a.getMenu();if(c&&c.isVisible()){a.hideMenu(b,c)}Ext.callback(a.getHandler(),a.getScope(),[a,b],0,a)}}},onDownKey:function(a){if(a.target===this.splitArrowCoverElement.dom){this.callParent([a])}},updatePressed:function(a){this.callParent([a]);this.arrowElement.toggleCls(this.pressedCls,a)},findEventTarget:function(a){return a.target===this.buttonElement.dom?this.splitInnerElement:this.arrowElement},shouldRipple:function(b){var a=this.splitArrowCoverElement,c=(a&&b.target===a.dom)?this.getArrowRipple():this.getSplitRipple();this.setRipple(c);return this.callParent([b])},enableFocusable:function(){this.splitArrowCoverElement.dom.disabled=!1;this.callParent()},disableFocusable:function(){this.callParent();this.splitArrowCoverElement.dom.disabled=!0},privates:{onButtonFocus:function(a){this.splitInnerElement.addCls(this.focusCls)},onButtonBlur:function(a){this.splitInnerElement.removeCls(this.focusCls)},onArrowFocus:function(a){this.arrowElement.addCls(this.focusCls)},onArrowBlur:function(a){this.arrowElement.removeCls(this.focusCls)},handleFocusEvent:function(a){this.callParent([a]);if(a.target===this.splitArrowCoverElement.dom){this.onArrowFocus([a])}else if(a.target===this.buttonElement.dom){this.onButtonFocus([a])}},handleBlurEvent:function(a){this.callParent([a]);if(a.target===this.splitArrowCoverElement.dom){this.onArrowBlur([a])}else if(a.target===this.buttonElement.dom){this.onButtonBlur([a])}}}});Ext.define('Ext.layout.overflow.Scroller',{alias:'layout.overflow.scroller',mixins:[Ext.mixin.Factoryable],config:{arrows:Ext.os.is.Desktop,backwardTool:{xtype:'tool',ui:'boxscroller',focusable:!1},animation:!0,forwardTool:{xtype:'tool',ui:'boxscroller',focusable:!1},toolAlign:'stretch',increment:'item',repeatInterval:500,mouseWheel:!0,wheelIncrement:10,vertical:null,owner:null,container:null,wrap:!0},cls:Ext.baseCSSPrefix+'boxscroller',bodyCls:Ext.baseCSSPrefix+'boxscroller-body',toolAlignCls:{start:Ext.baseCSSPrefix+'tool-align-start',end:Ext.baseCSSPrefix+'tool-align-end',center:Ext.baseCSSPrefix+'tool-align-center',stretch:Ext.baseCSSPrefix+'tool-align-stretch'},orientMap:{"false":{cls:Ext.baseCSSPrefix+'horizontal',crossSize:'height',getSize:'getWidth',setCrossSize:'setHeight',measureCross:'h',scrollSize:'scrollWidth',scrollbarMargin:'margin-bottom',forwardTool:'scroll-right',backwardTool:'scroll-left',startPad:'l',endPad:'r',posProp:'x'},"true":{cls:Ext.baseCSSPrefix+'vertical',crossSize:'width',getSize:'getHeight',setCrossSize:'setWidth',measureCross:'w',scrollSize:'scrollHeight',scrollbarMargin:'margin-right',forwardTool:'scroll-down',backwardTool:'scroll-up',startPad:'t',endPad:'b',posProp:'y'}},constructor:function(b){var a=this;a.repeaters=[];a.initConfig(b);a.syncMouseWheel();a.getContainer().$onScrollerContainerVisible=a.sync.bind(a)},applyWrap:function(){var c=this,a=c.getContainer(),d=c.getContainer().bodyElement,b=Ext.Element.create({cls:c.cls,children:[{cls:c.bodyCls}]}),f='boxscroller',e=b.first();a.boxScrollerElement=b;a.uiReferences.boxScrollerElement=f;a.initUiReference('boxScrollerElement',f);if(!a.isConfiguring){a.syncUiCls({boxScrollerElement:'boxscroller'})}this._body=e;b.insertBefore(d);e.appendChild(d);return b},getBody:function(){var a=this._body;if(!a){this.getWrap()}return this._body},onActiveItemChange:function(c,b){var a=this;if(a.getContainer().rendered){a.ensureVisible(b)}},onActiveTabChange:function(c,b){var a=this;if(a.getContainer().rendered){a.ensureVisible(b)}},ensureVisible:function(c,a){var b=this;if(a===undefined){a=b.getAnimation()}b.getOwner().ensureVisible(c,{animation:a})},createForwardTool:function(a){var b=this;return Ext.apply({$initParent:b.getContainer(),hidden:!0,preventRefocus:!0},a)},createBackwardTool:function(a){var b=this;return Ext.apply({$initParent:b.getContainer(),hidden:!0,preventRefocus:!0},a)},scrollToItemOffset:function(b,c){var a=this.getAnimation();this.getOwner().ensureVisible({offset:b,scroll:c?'max':'min',animation:a})},applyVertical:function(a){return !!a},updateVertical:function(c){var a=this,b=a.orientMap[c];a.getWrap().replaceCls(a.orientMap[!c].cls,b.cls);if(a.getArrows()){a.getForwardTool().setType(b.forwardTool);a.getBackwardTool().setType(b.backwardTool)}if(!a.isConfiguring){a.syncContainerScrollable();a.syncMouseWheel()}},applyForwardTool:function(a,c){var b=this.getContainer();a=Ext.updateWidget(c,a,this,'createForwardTool');delete a.$initParent;a.ownerCmp=b;a.doInheritUi();a.addUi('boxscroller-'+b.xtype);return a},applyBackwardTool:function(a,c){var b=this.getContainer();a=Ext.updateWidget(c,a,this,'createBackwardTool');delete a.$initParent;a.ownerCmp=b;a.doInheritUi();a.addUi('boxscroller-'+b.xtype);return a},updateArrows:function(f){var a=this,b=a.getContainer(),e=a.getWrap(),d=a.getForwardTool(),c=a.getBackwardTool();e.insertFirst(c.el);e.append(d.el);a.addClickListener(d,a.onForwardClick);a.addClickListener(c,a.onBackwardClick);if(b.rendered){a.sync()}else {b.whenVisible('$onScrollerContainerVisible');b.on({painted:'sync',scope:a,single:!0})}},updateMouseWheel:function(){if(!this.isConfiguring){this.syncMouseWheel()}},updateOwner:function(c){var a=this,b=c.getContainer();b.on({activeitemchange:'onActiveItemChange',activetabchange:'onActiveTabChange',scope:a});Ext.override(b,{getRefItems:function(f){var b=this.callParent([f]),e=a.getForwardTool(),d=a.getBackwardTool();b.push(e,d);return b}});a.syncContainerScrollable();b.getScrollable().on('scrollend','sync',a);b.on('resize','sync',a);b.bodyElement.on('resize','sync',a)},updateToolAlign:function(c,b){var a=this.toolAlignCls;this.getWrap().replaceCls(a[b],a[c])},getContainer:function(){return this.getOwner().getContainer()},destroy:function(){var a=this;Ext.destroy(a.repeaters);a.getForwardTool().destroy();a.getBackwardTool().destroy();a.callParent()},privates:{addClickListener:function(e,c){var a=this,d=a.getRepeatInterval(),b;if(d){b=new Ext.util.ClickRepeater(Ext.apply({target:e,preventDefault:!0,listeners:{click:c,scope:a}},d));a.repeaters.push(b)}else {e.on({click:c,scope:a})}},doMoveFromClick:function(c){var a=this,g=a.getContainer().getScrollable(),h=a.getAnimation(),d=a.getVertical(),b=a.getIncrement(),e,f;if(isNaN(b)){a.scrollToItemOffset(c,b==='page')}else {e=!d?b:0;f=d?b:0;g.scrollBy(e*c,f*c,h)}},onBackwardClick:function(){this.doMoveFromClick(-1)},onForwardClick:function(){this.doMoveFromClick(1)},onMouseWheel:function(g){var a=this,d=a.getContainer().getScrollable(),b=a.getVertical(),c=g.getWheelDelta()*a.getWheelIncrement()*-1,e=!b?c:0,f=b?c:0;d.scrollBy(e,f)},syncMouseWheel:function(){var a=this,b=a.getContainer().getScrollerTarget(),c=a.getMouseWheel()&&!a.getVertical()?'on':'un';b[c]('wheel','onMouseWheel',a)},syncContainerScrollable:function(){var a=this,b=a.getVertical(),c=a.getContainer();c.setScrollable({element:a.getBody(),x:!b,y:b})},sync:function(){var b=this,c=b.getContainer(),g=c.getScrollerTarget(),a=b.orientMap[b.getVertical()],m=c.el[a.getSize](),n=g.dom[a.scrollSize],e=b.getForwardTool(),d=b.getBackwardTool(),l=Ext.scrollbar.size()[a.crossSize],i=n>m,j=a.posProp,f,k,h;if(b.getArrows()&&i){e.show();d.show();f=c.getScrollable();k=f.getMaxPosition()[j];h=f.getPosition()[j];e.setDisabled(h+g.getPadding(a.endPad)>=k);d.setDisabled(h<=g.getPadding(a.startPad))}else {e.hide();d.hide()}c.bodyElement.setStyle(a.scrollbarMargin,i?(-l+'px'):0);b.getBody()[a.setCrossSize](c.bodyElement.measure(a.measureCross))}}});Ext.define('Ext.BreadcrumbBar',{extend:Ext.Toolbar,xtype:'breadcrumbbar',config:{buttonUI:'',displayField:'text',showIcons:null,showMenuIcons:null,store:null,useSplitButtons:!0,selection:'root',menu:!0,buttonConfig:null,btnCls:''},isBreadcrumb:!0,publishes:['selection'],twoWayBindable:['selection'],classCls:Ext.baseCSSPrefix+'breadcrumbbar',buttonCls:Ext.baseCSSPrefix+'breadcrumbbar-items',folderIconCls:Ext.baseCSSPrefix+'breadcrumbbar-icon-folder',leafIconCls:Ext.baseCSSPrefix+'breadcrumbbar-icon-leaf',constructor:function(a){this.buttons=[];this.callParent([a])},updateButtonUI:function(a){this.handleButtonUpdate('setUi',a)},updateBtnCls:function(a){this.handleButtonUpdate('setCls',a)},updateShowIcons:function(){var d=this,e=d.getStore(),b,c,f,a,g;if(e){b=d.buttons;g=b.length;for(a=0;a<g;a++){c=b[a];f=e.getNodeById(c.breadcrumbNodeId);d.handleButtonIcon(c,f)}}},updateMenu:function(){this.handleMenu(this.buttons,null,!0)},handleButtonUpdate:function(d,c){var b=this.buttons,e=b.length,a;for(a=0;a<e;a++){b[a][d](c)}},applySelection:function(a){var b=this.getStore();if(b){a=(a==='root')?b.getRoot():a}return a},applyStore:function(a){if(a){a=Ext.data.StoreManager.lookup(a)}return a},updateStore:function(b,d){var a=this,c={datachanged:'onStoreDataChange',clear:'onStoreClear',scope:this};if(d){d.un(c)}if(!b){if(a.getSelection()){a.setSelection('root')}return}b.on(c);a.needsSync=!0;if(a.getSelection()){a.setSelection(b.getRoot())}},updateUseSplitButtons:function(){var a=this,b;if(!a.isConfiguring){b=a.getSelection();a.setSelection(null);a.setSelection(b)}},updateSelection:function(e,o){var a=this,f=a.buttons,i=f.length,r=a.needsSync,l,g,n,p,h,c,k,m,b,q,j,d;if(!e||!e.isNode||a.isDestructing()){a.removeAllBreadcrumbButtons();return}c=e;j=e.get('depth');g=j+1;d=j;l=a.getDisplayField();m=a.getUseSplitButtons();while(c){q=c.getId();b=f[d];h=!1;if(!r&&b&&b.breadcrumbNodeId===q){break}k=c.get(l);if(b){b.setText(k);h=!0}else {n=m?'splitbutton':'button';b=f[d]=a.createButton({xtype:n,text:k,ui:a.getButtonUI(),instanceCls:a.buttonCls,cls:a.getBtnCls()})}b.breadcrumbNodeId=c.getId();b.setArrow(c.hasChildNodes());a.handleMenu([b],h);a.handleButtonIcon(b,c);c=c.parentNode;d--}if(g>i){p=f.slice(i,g);a.add(p)}else {for(d=i-1;d>=g;d--){a.remove(f[d],!0);Ext.Array.removeAt(a.buttons,d,0)}}a.fireEvent('selectionchange',a,e,o);if(a.shouldFireChangeEvent){a.fireEvent('change',a,e,o)}a.shouldFireChangeEvent=!0;a.needsSync=!1},handleMenu:function(g,h,i){var e=this,k=g.length,j=e.getMenu(),a,c,b,d,f;for(c=0;c<k;c++){b=g[c];f=b.getArrow();if(!f||!j){b.setMenu(!1);continue}a=b.getMenu();if(!a||i){a=e.createMenu(b)}else if(h&&a){a.removeAll(!0);d=e.getMenuItems(b.breadcrumbNodeId);if(d){a.add(d)}}}},createMenu:function(b){var c=this,d={click:'onMenuClick',scope:c},a=c.getMenu();b.setMenu(Ext.apply({items:c.getMenuItems(b.breadcrumbNodeId)},a));a=b.getMenu();a.on(d);return a},createButton:function(d){var b=this,c=Ext.apply(d,b.getButtonConfig()),a;a=Ext.create(c);a.on({tap:'onButtonTap',scope:b});return a},handleButtonIcon:function(g,a){var h=this,e=this.getShowIcons(),f=null,b=null,d,c;if(e!==!1){d=a.get('icon');c=a.get('iconCls');if(d){f=d}else if(c){b=c}else if(e){b=(a.isLeaf()?h.leafIconCls:h.folderIconCls)}}g.setIcon(f);g.setIconCls(b)},destroy:function(){var a=this;a.setStore(null);a.callParent()},privates:{onButtonTap:function(b,c){var a;if(this.getUseSplitButtons()){a=b.arrowElement;if(a&&a.contains(c.target)){return}this.setSelection(this.getStore().getNodeById(b.breadcrumbNodeId))}},onMenuClick:function(b,a,c){if(a){a=this.getStore().getNodeById(a.breadcrumbNodeId);this.setSelection(a);a=this.buttons[a.getDepth()];if(a){a.focus()}}},getMenuItems:function(m){var c=this,d,k,f,g,a,i,e,j,h,l,b;d=c.getStore().getNodeById(m);if(!d||!d.hasChildNodes()){return}g=d.childNodes;i=[];k=c.getDisplayField();f=c.getShowMenuIcons();l=g.length;for(e=0;e<l;e++){a=g[e];b={text:a.get(k),breadcrumbNodeId:a.getId()};if(f!==!1){j=a.get('icon');h=a.get('iconCls');if(j){b.icon=j}else if(h){b.iconCls=h}else if(f){b.iconCls=(a.isLeaf()?c.leafIconCls:c.folderIconCls)}}i.push(b)}return i},removeAllBreadcrumbButtons:function(){var b=this,c=b.buttons,d=c.length,a;for(a=0;a<d;a++){b.remove(c[a],!0)}b.buttons=[]},updateButtonOnDataChange:function(){var b=this,g=b.buttons,i=b.getStore(),h=b.getDisplayField(),f,e,d,c,a;for(c=0;c<g.length;c++){a=g[c];d=i.getNodeById(a.breadcrumbNodeId);if(!d){b.remove(a,!0);Ext.Array.removeAt(b.buttons,c,0);c-=1;continue}f=d.get(h);if(a.getText()!==f){a.setText(f)}e=d.hasChildNodes();if(a.getArrow()!==e){a.setArrow(e)}b.handleButtonIcon(a,d)}},onStoreDataChange:function(){this.updateButtonOnDataChange();this.handleMenu(this.buttons,null,!0)},onStoreClear:function(){this.removeAllBreadcrumbButtons()}}});Ext.define('Ext.Chip',{extend:Ext.Component,xtype:'chip',isChip:!0,focusable:!1,tabIndex:null,classCls:Ext.baseCSSPrefix+'chip',hasIconCls:Ext.baseCSSPrefix+'has-icon',closableCls:Ext.baseCSSPrefix+'closable',element:{reference:'element',children:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',children:[{reference:'iconElement',cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'},{reference:'textElement',cls:Ext.baseCSSPrefix+'text-el'},{reference:'closeElement',cls:Ext.baseCSSPrefix+'close-el '+Ext.baseCSSPrefix+'font-icon',listeners:{click:'onClick'}}]}]},config:{icon:!1,iconCls:null,text:null,closable:null,closeHandler:null,scope:null},defaultBindProperty:'text',onClick:function(c){var a=this,b=a.getCloseHandler();Ext.callback(b,a.getScope(),[a,c],0,a)},applyIcon:function(a){return Ext.resolveResource(a)},updateClosable:function(a){this.el.toggleCls(this.closableCls,a)},updateIcon:function(d){var a=this,c=a.iconElement,b=a.hasIconCls;if(d){c.setStyle('background-image','url('+d+')');a.addCls(b)}else {c.setStyle('background-image','');if(!a.getIconCls()){a.removeCls(b)}}},updateIconCls:function(a,b){this.iconElement.replaceCls(b,a);this.el.toggleCls(this.hasIconCls,!!a)},updateText:function(a){this.textElement.setHtml(Ext.htmlEncode(a))}});Ext.define('Ext.Decorator',{extend:Ext.Component,isDecorator:!0,config:{component:{xtype:'component'}},statics:{generateProxySetter:function(a){return function(c){var b=this.getComponent();b[a].call(b,c);return this}},generateProxyGetter:function(a){return function(){var b=this.getComponent();return b[a].call(b)}}},onClassExtended:function(i,a){var h,b,f,g,d,e,c;if(!a.hasOwnProperty('proxyConfig')){return}h=Ext.Class;b=a.proxyConfig;f=a.config;a.config=(f)?Ext.applyIf(f,b):b;for(g in b){if(b.hasOwnProperty(g)){d=Ext.Config.get(g).names;e=d.set;c=d.get;a[e]=this.generateProxySetter(e);a[c]=this.generateProxyGetter(c)}}},getRefItems:function(c){var b=this.getComponent(),a;if(b){a=[b];if(c&&b.getRefItems){a=a.concat(b.getRefItems(c))}}return a||[]},applyComponent:function(b){var a=Ext.factory(b);a.ownerCmp=this;return a},updateComponent:function(c,b){var a=this;if(b){if(a.isRendered()&&b.rendered){b.setRendered(!1);b.fireEventedAction('renderedchange',[a,b,!1],a.doUnsetComponent,a,!1)}else {a.doUnsetComponent(b)}}if(c){if(a.isRendered()&&!c.rendered){c.fireEventedAction('renderedchange',[a,c,!0],a.doSetComponent,a,!1)}else {a.doSetComponent(c)}}},doUnsetComponent:function(b){var a=b.renderElement.dom;if(a){this.bodyElement.dom.removeChild(a)}},doSetComponent:function(a){var b=a.renderElement.dom;if(b){this.bodyElement.dom.appendChild(b);if(this.rendered){a.setRendered(!0)}}},setDisabled:function(b){var a;this.callParent(arguments);a=this.getComponent();if(a){a.setDisabled(b)}},doDestroy:function(){Ext.destroy(this.getComponent());this.callParent()}});Ext.define('Ext.Dialog',{extend:Ext.Panel,xtype:['dialog','window'],alternateClassName:['Ext.Window','Ext.window.Window'],isDialog:!0,isWindow:!0,ariaRole:'dialog',classCls:Ext.baseCSSPrefix+'dialog',cachedConfig:{dismissAction:['cancel','abort','no','close'],maximizeAnimation:{easing:'ease-in',from:{opacity:0.6},to:{opacity:1}},maximizeProxy:{centered:!1,draggable:!1,modal:!1,showAnimation:null,hideAnimation:null},maximizeTool:{itemId:'maximize',tooltip:'Maximize to fullscreen'},restoreAnimation:{easing:'ease-in',from:{opacity:1},to:{opacity:0.6}},restoreTool:{itemId:'restore',tooltip:'Restore to original size'}},config:{constrainDrag:!0,dismissHandler:null,maximizable:null,maximized:null,maskTapHandler:null,restorable:null},border:!0,bodyBorder:!1,centered:!0,floated:!0,focusable:!1,tabIndex:-1,draggable:{handle:'.'+Ext.baseCSSPrefix+'draggable',listeners:{beforedragstart:'onBeforeDragDialog',scope:'this'}},keyMap:{ESC:'onEscape',scope:'this'},modal:!0,shadow:!0,headerCls:Ext.baseCSSPrefix+'dialogheader',titleCls:Ext.baseCSSPrefix+'dialogtitle',toolCls:[Ext.baseCSSPrefix+'paneltool',Ext.baseCSSPrefix+'dialogtool'],hideMode:'offsets',hideAnimation:{type:'popOut',duration:250,easing:'ease-out'},showAnimation:{type:'popIn',duration:150,easing:'ease-out'},initialize:function(){var a=this;a.callParent();if(a.tabGuard){a.addPlugin({type:'tabguard',tabGuardBeforeIndex:a.tabGuardBeforeIndex,tabGuardAfterIndex:a.tabGuardAfterIndex})}},doDestroy:function(){Ext.destroy(this.maximizeTool,this.restoreTool);this.callParent()},close:function(c){var a=this,j=a.getButtons(),b=a.getDismissAction(),g=a.getDismissHandler(),e,d,i,h,f,k;c=c||null;if(a.fireEvent('beforeclose',a,c)!==!1){if(g!==!0){if(g){Ext.callback(g,null,[a,c],0,a);h=!0}else if(b&&j){if(typeof b==='string'){b=[b]}for(f=0,k=b.length;f<k;++f){e=j.getComponent(b[f]);if(e&&e.isButton){e.onTap(c);h=!0;break}}}}if(!h){d=a.getCloseAction();if(d){if(!(i=d==='destroy')){a[d]()}}}if(!a.destroyed){a.fireEvent('close',a,c);if(i){a.destroy()}}}},createMaximizeProxy:function(b){var a=this;return Ext.apply({title:a.getTitle(),cls:a.getCls(),userCls:a.getUserCls(),iconCls:a.getIconCls(),ui:a.getUi()},b)},maximize:function(c){var a=this,b=a.maximizing;if(!b&&!a.getMaximized()){a._maximizeAnim=c;a.setMaximized(!0);if(!(b=a.maximizing)){return Ext.Promise.resolve(!1)}}return b?b.promise:Ext.Promise.resolve(!0)},restore:function(c){var a=this,b=a.restoring;if(!b&&a.getMaximized()){a._maximizeAnim=c;a.setMaximized(!1);if(!(b=a.restoring)){return Ext.Promise.resolve(!1)}}return b?b.promise:Ext.Promise.resolve(!0)},shouldRecenter:function(){return !this.getMaximized()&&this.callParent()},updateConstrainDrag:function(a){var b=this.getDraggable();if(b){if(a===!0){a=Ext.getBody()}b.setConstrain(a)}},updateDraggable:function(a,b){this.callParent([a,b]);if(!this.isConfiguring){this.syncHeaderItems()}},updateHeader:function(c,d){var a=this,b;a.callParent([c,d]);if(c){a.syncHeaderItems();if(a.tabGuard&&a.getTabGuard){b=a.getTabGuard('before');if(b&&b.dom){b.insertBefore(c.el)}}}},applyMaximizable:function(b){var a=this;a.maximizeTool=Ext.updateWidget(a.maximizeTool,b,a,'createMaximizeTool','maximizeTool');a.syncHeaderItems();return b},applyMaximized:function(b){var a=this,c;if(!a.isConfiguring){c=b?'beforemaximize':'beforerestore';if(a.fireEvent(c,a)===!1){a._maximizeAnim=undefined;return}}return !!b},updateMaximized:function(b){var a=this,i=a.el,e=a.maximizedCls,j=a.maximizeTool,c=b?'restoring':'maximizing',k=a[c],h,d,f,g;if(a.isConfiguring){a.needsCenter=b}else {d=a._maximizeAnim;g=a.needsCenter&&!b;a.needsCenter=!1;if(d===undefined){d=a[b?'getMaximizeAnimation':'getRestoreAnimation']()}}a._maximizeAnim=undefined;if(k){k.destroy()}if(a.getMaximizable()){a.setRestorable(b)}else {a.syncHeaderItems()}if(j){j.setHidden(b)}if(!d){i.toggleCls(e,b);if(g){a.center()}a.fireEvent(b?'maximize':'restore',a)}else {if(b){c='maximizing';f=a.captureSize();h=a.captureSize(!0)}else {c='restoring';i.removeCls(e);if(g){a.center()}f=a.captureSize(!0);h=a.captureSize()}a[c]=a.animateMaximizeRestore(f,h,d,function(){if(b){i.addCls(e)}a[c]=null;a.fireEvent(b?'maximize':'restore',a)})}},createMaximizeTool:function(b){var a=this.adjustToolDefaults(Ext.clone(b));a.handler='onMaximize';a.scope=this;return a},applyRestorable:function(b){var a=this;a.restoreTool=Ext.updateWidget(a.restoreTool,b,a,'createRestoreTool','restoreTool');a.syncHeaderItems();return b},createRestoreTool:function(b){var a=this.adjustToolDefaults(Ext.clone(b));a.handler='onRestore';a.scope=this;return a},afterShow:function(){this.callParent();if(this.getModal()){this.focus()}},onBeforeDragDialog:function(c,d,b){var a=this.getHeader();if(!a||!a.el.contains(b.target)){return !1}},onCloseTool:function(b,c,a){this.close(a)},onEscape:function(a){this.close(a)},onMaximize:function(){this.setMaximized(!0)},onRestore:function(){this.setMaximized(!1)},onModalMaskTap:function(d){var a=this,b=a.getMaskTapHandler(),c;if(b){Ext.callback(b,null,[a,d],0,a)}else {c=a.callParent([d])}return c},privates:{draggableCls:Ext.baseCSSPrefix+'draggable',needsCenter:!1,maximizedCls:Ext.baseCSSPrefix+'maximized',animateMaximizeRestore:function(d,e,h,g){var f=this,c=new Ext.Deferred(),a=f.getMaximizeProxy(),b=Ext.merge({from:{width:d.w+'px',height:d.h+'px',transform:{translateX:d.x+'px',translateY:d.y+'px'}},to:{width:e.w+'px',height:e.h+'px',transform:{translateX:e.x+'px',translateY:e.y+'px'}}},h);a=f.createMaximizeProxy(a);a=new f.self(a);a.show();b.element=a.el;b.callback=function(){a.destroy();g();c.resolve(!0)};b=new Ext.fx.animation.Abstract(b);Ext.Animator.run(b);c.destroy=function(){c.destroy=Ext.emptyFn;b.destroy();c.destroyed=!0};return c},captureSize:function(c){var a,b;if(c){return {x:0,y:0,w:Ext.getViewportWidth(),h:Ext.getViewportHeight()}}a=this;b=a.el.measure();return {x:a.getX(),y:a.getY(),w:b.width,h:b.height}},syncHeaderItems:function(){var b=this,c=b.maximizeTool,d=b.restoreTool,a=(c||d)?b.ensureHeader():b.getHeader(),g=b.draggableCls,e,f;if(a){e=b.getDraggable()&&!b.getMaximized();a.toggleCls(g,e);f=a.getTitle();if(f){f.toggleCls(g,e)}if(c&&c.parent!==a){a.add(c)}if(d&&d.parent!==a){a.add(d)}}},updateX:function(b,a){this.callParent([b,a]);if(!this._centering&&this.getCentered()){this.setCentered(!1)}}}});Ext.define('Ext.field.Dirty',{extend:Ext.Mixin,mixinConfig:{id:'dirtyfield',after:{_fixReference:'fixDirtyState'}},config:{bubbleDirty:!0,dirty:{lazy:!0,$value:!1}},dirty:!1,_childDirtyState:null,adjustChildDirtyCount:function(b){var c=this,a=c._childDirtyState;if(a){if(a.ready){a.counter+=b?1:-1;c.setDirty(!!a.counter)}else if(b){++a.counter}}},beginSyncChildDirty:function(){this._childDirtyState={counter:0,ready:!1}},finishSyncChildDirty:function(){var b=this,c=b._childDirtyState,a=!!c.counter;if(a!==b.dirty){b.setDirty(a)}else if(a){b.informParentDirty(a)}c.ready=!0},fireDirtyChange:function(){this.fireEvent('dirtychange',this,this.dirty)},fixDirtyState:function(){var a=this;if(!a._childDirtyState&&a.dirty){a.informParentDirty(!0)}},informParentDirty:function(e){var a=this,b=a.getBubbleDirty()&&a.lookupNameHolder(),d=a._childDirtyState,c=b&&b._childDirtyState;if(c){if(d){if(!d.ready&&c.ready){if(!e){return}}}b.adjustChildDirtyCount(e,a)}},invalidateChildDirty:function(){this._childDirtyState=null},isDirty:function(){if(Ext.referencesDirty){Ext.fixReferences()}return this.getDirty()},updateDirty:function(b){var a=this;a.dirty=b;if(!a.isDirtyInitializing){if(a.fireEvent){a.fireDirtyChange()}a.informParentDirty(b)}}});Ext.define('Ext.field.Field',{extend:Ext.Component,alternateClassName:'Ext.form.Field',xtype:'field',mixins:[Ext.field.Dirty],isField:!0,isFormField:!0,cachedConfig:{bodyAlign:'start',labelAlign:'left',labelCls:null,labelTextAlign:'left',labelWidth:null,labelMinWidth:null,labelWrap:!1},config:{name:null,label:null,required:!1,requiredMessage:'This field is required',value:null,dataType:{cached:!0,$value:null},validators:null,validationMessage:'Is in the wrong format',validateDisabled:null,autoFitErrors:null,inline:null,error:null,errorMessage:null,errorTarget:'qtip',errorTpl:null,errorTip:null,sideError:null,tipError:null,titleError:null,underError:null},htmlErrorsTpl:['<tpl if="count == 1">','<tpl for="errors">{.:htmlEncode}</tpl>','<tpl elseif="count">','<ul class="{listCls}">','<tpl for="errors"><li>{.:htmlEncode}</li></tpl>','</ul>','</tpl>'],plainErrorsTpl:['<tpl if="count">','<tpl for="errors" between="\\n">{.}</tpl>','</tpl>'],_errorTplMap:{title:'plainErrorsTpl'},originalValue:null,focusable:!0,classCls:Ext.baseCSSPrefix+'field',requiredCls:Ext.baseCSSPrefix+'required',noLabelWrapCls:Ext.baseCSSPrefix+'no-label-wrap',invalidCls:Ext.baseCSSPrefix+'invalid',noAutoFitErrorsCls:Ext.baseCSSPrefix+'no-auto-fit-errors',inlineCls:Ext.baseCSSPrefix+'inline',labelAlignVerticalCls:Ext.baseCSSPrefix+'label-align-vertical',labelAlignHorizontalCls:Ext.baseCSSPrefix+'label-align-horizontal',labeledCls:Ext.baseCSSPrefix+'labeled',verticalLabelMap:{top:1,placeholder:1,bottom:1},horizontalLabelMap:{left:1,right:1},nameable:!0,validateOnInit:'auto',errorElement:null,errorIconElement:null,errorMessageElement:null,element:{reference:'element',classList:[Ext.supports.CSSMinContent?'':Ext.baseCSSPrefix+'no-min-content',Ext.supports.PercentageSizeFlexBug?Ext.baseCSSPrefix+'has-percentage-size-flex-bug':'']},initialize:function(){var a=this;a.callParent();if(a.getValue()===''&&a.validateOnInit==='all'){a.validate()}a.handleFieldDefaults()},didValueChange:function(a,b){return !this.isEqual(a,b)},getTemplate:function(){return [{reference:'labelElement',cls:Ext.baseCSSPrefix+'label-el',tag:'label',children:[{reference:'labelTextElement',cls:Ext.baseCSSPrefix+'label-text-el',tag:'span'}]},{reference:'bodyWrapElement',cls:Ext.baseCSSPrefix+'body-wrap-el',children:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',children:this.getBodyTemplate()},{reference:'errorElement',cls:Ext.baseCSSPrefix+'error-el',children:[{reference:'errorIconElement',cls:Ext.baseCSSPrefix+'error-icon-el '+Ext.baseCSSPrefix+'font-icon'},{reference:'errorMessageElement',cls:Ext.baseCSSPrefix+'error-message-el'}]}]}]},getBodyTemplate:Ext.emptyFn,initElement:function(){this.callParent();this.innerElement=this.innerElement||this.bodyElement},onFocusLeave:function(a){this.callParent([a]);this.completeEdit()},completeEdit:Ext.emptyFn,updateBodyAlign:function(b,a){var c=this.element;if(a){c.removeCls(Ext.baseCSSPrefix+'body-align-'+a)}if(b){c.addCls(Ext.baseCSSPrefix+'body-align-'+b)}},updateAutoFitErrors:function(a){this.toggleCls(this.noAutoFitErrorsCls,a===!1)},applyErrorTpl:function(a){if(a&&!a.isTemplate){a=Ext.XTemplate.get(a)}return a},applyDataType:function(a){return a&&Ext.Factory.dataField(a)},formatErrors:function(b){var a=this,c=a.getErrorTpl();if(!c){c=a.lookupTpl(a._errorTplMap[a.getErrorTarget()]||'htmlErrorsTpl')}return c.apply({count:b?b.length:0,label:a.getLabel(),errors:b})},updateError:function(a){var b=this.formatErrors(Ext.Array.from(a));this.setErrorMessage(b)},updateErrorMessage:function(b){var a=this,c,d;a.fireEvent('errorchange',a,b);if(a.preventMark){return}a.toggleInvalidCls(!!b);d=a.getErrorTarget();switch(d){case 'side':a.setSideError(b);break;case 'qtip':a.setTipError(b);break;case 'title':a.setTitleError(b);break;case 'under':a.setUnderError(b);break;case 'parent':c=a.up('[onFieldErrorChange]');if(c){c.onFieldErrorChange(a,b)};break;}},updateErrorTarget:function(c,b){var a=this,d,e;if(b){a.removeCls(Ext.baseCSSPrefix+'error-target-'+b);if(b==='qtip'){a.setTipError(null)}else if(b==='title'){a.setTitleError(null)}else if(b==='side'){a.setSideError(null)}else if(b==='under'){a.setUnderError(null)}else if(b==='parent'){e=a.up('[onFieldErrorChange]');if(e){e.onFieldErrorChange(a)}}}if(c){a.addCls(Ext.baseCSSPrefix+'error-target-'+c);if(!a.isConfiguring){d=a.getError();if(d){if(c==='qtip'){a.setTipError(d)}else if(c==='title'){a.setTitleError(d)}else if(c==='side'){a.setSideError(d)}else if(c==='under'){a.setUnderError(d)}else if(c==='parent'){e=a.up('[onFieldErrorChange]');if(e){e.onFieldErrorChange(a,d)}}}}}},updateInline:function(a){this.toggleCls(this.inlineCls,a)},updateSideError:function(a){if(a){a=Ext.apply({html:a},this.getErrorTip())}this.errorElement.getData().qtip=a},updateTipError:function(a){if(a){a=Ext.apply({html:a},this.getErrorTip())}this.bodyElement.getData().qtip=a},updateTitleError:function(a){var b=this.el.dom;if(a){b.setAttribute('title',a)}else {b.removeAttribute('title')}},updateUnderError:function(a){this.errorMessageElement.dom.innerHTML=a||''},updateLabel:function(a){this.labelTextElement.setHtml(a);this.el.toggleCls(this.labeledCls,!!a)},updateLabelAlign:function(b,d){var a=this,c=a.element;if(d){c.removeCls(Ext.baseCSSPrefix+'label-align-'+d)}if(b){c.addCls(Ext.baseCSSPrefix+'label-align-'+b)}c.toggleCls(a.labelAlignVerticalCls,b in a.verticalLabelMap);c.toggleCls(a.labelAlignHorizontalCls,b in a.horizontalLabelMap)},updateLabelTextAlign:function(b,a){var c=this.element;if(a){c.removeCls(Ext.baseCSSPrefix+'label-text-align-'+a)}if(b){c.addCls(Ext.baseCSSPrefix+'label-text-align-'+b)}},updateLabelCls:function(b,c){var a=this.labelElement;if(b){a.addCls(b)}if(c){a.removeCls(c)}},updateLabelWidth:function(a){this.labelElement.setWidth(a)},updateLabelMinWidth:function(a){this.labelElement.setStyle('min-width',Ext.Element.addUnits(a))},updateLabelWrap:function(a){this.element.toggleCls(this.noLabelWrapCls,!a)},updateName:function(a){this.name=a},updateRequired:function(b){var a=this;a.element.toggleCls(a.requiredCls,b);if(!a.isConfiguring){a.validate()}},updateRequiredMessage:function(){if(!this.isConfiguring){this.validate()}},updateDisabled:function(b,a){this.callParent([b,a]);if(!this.isConfiguring){this.validate()}},updateValidateDisabled:function(){if(!this.isConfiguring){this.validate()}},applyValue:function(a){if(this.isConfiguring){this.originalValue=a}return a},updateValue:function(b,d){var a=this,c;if(!(Ext.isEmpty(b)&&Ext.isEmpty(d))){a.validate()}if(b!==d){c=a.rawToValue(a.processRawValue(a.getRawValue()));if(!Ext.isEmpty(c,!0)&&String(b)!==String(c)){a._value=b=c}if(!a.isConfiguring){a.fireEvent('change',a,b,d)}}a.setDirty(a.isDirty())},reset:function(){this.setValue(this.originalValue);return this},resetOriginalValue:function(){this.originalValue=this.getValue();this.setDirty(!1)},isDirty:function(){return !this.isEqual(this.getValue(),this.originalValue)},toggleInvalidCls:function(a){this.el[a?'addCls':'removeCls'](this.invalidCls)},markInvalid:function(a){this.setError(a)},clearInvalid:function(){this.setError(null)},isValid:function(){return !this.getError()},isEqual:function(a,b){return String(a)===String(b)},applyValidators:function(a){var e=this,b,c,d;a=(a&&!Ext.isArray(a))?[a]:a;c=a&&a.length;d=c?[]:null;for(b=0;b<c;++b){d.push(e.decodeValidator(a[b]))}return d},wrapValidatorFn:function(c,a){var d=this,b=a&&a.scope;return new Ext.data.validator.Validator(function(e){return Ext.callback(c,b,[e],0,d)})},doValidate:function(g,f,e){var b=this.getValidators(),h=b&&b.length,a,d,c;for(a=0;a<h;++a){c=b[a];if(!e||!c.lazy){d=c.validate(g);if(d!==!0){f.push(d)}}}},parseValue:Ext.identityFn,validate:function(h){var a=this,d,b,g,f,e,c;if(a.isConfiguring&&a.validateOnInit==='none'){return !0}if(!a.getDisabled()||a.getValidateDisabled()){b=[];if(a.isInputField&&!a.isSelectField){c=a.getInputValue();d=!c;e=d&&a.inputElement.dom.validity;if(e&&e.badInput){b.push(a.badFormatMessage);d=!1}}else {c=a.getValue();d=c===''||c==null}if(d&&a.getRequired()){b.push(a.getRequiredMessage())}else if(!b.length){if(!d){c=a.parseValue(c,b)}if(!b.length){g=a._validationField;f=a._validationRecord;if(g&&f){g.validate(c,null,b,f)}if(!d){a.doValidate(c,b,h)}}}if(b.length){a.setError(b);return !1}}a.setError(null);return !0},getFocusClsEl:function(){return this.element},updateHeight:function(b,a){this.callParent([b,a]);this.syncFormLayoutHeight()},onAdded:function(b,a){this.callParent([b,a]);this.syncFormLayoutHeight();this.validateLayout()},onRemoved:function(a){this.callParent([a]);this.syncFormLayoutHeight()},rawToValue:Ext.identityFn,processRawValue:Ext.identityFn,transformRawValue:Ext.identityFn,getRawValue:function(){var a=this,b=a.inputElement?a.inputElement.getValue():Ext.valueFrom(a.rawValue,'');a.rawValue=b;return b},handleFieldDefaults:function(){var b=this,f=b.getInherited(),c,a,e,g,d;if(f){c=f.fieldDefaults;if(c){g=b.initialConfig;for(a in c){if(!g[a]){e=Ext.util.Format.capitalize(a);d=c[a];if(b['set'+e]){b['set'+e](d)}else {b[a]=d}}}}}},serialize:function(){var c=this,b=c.getValue(),a;if(b!=null){a=c._validationField||c.getDataType();if(a&&a.serialize){b=a.serialize(b)}}return b},privates:{syncFormLayoutHeight:function(){var b=this,c=b.parent,a=b.getHeight();if(!(a&&c&&c.getLayout().isFormLayout)){a=null}b.bodyElement.setHeight(a)},validateLayout:function(){var b=this.getErrorTarget(),a=this.parent;if(this.isInner&&a&&a.getLayout().isFormLayout){this.setLabelAlign('left');if(b==='under'){this.setErrorTarget('side')}}},applyBind:function(f,c){var b=this,e=c&&c.value,a,d;a=b.callParent([f,c]);if(a){d=a.value;b.hasBindingValue=!!d;if(d!==e&&b.getInherited().modelValidation){b.updateValueBinding(a)}}return a},updateValueBinding:function(b){var d=this,a=b.value,c=b.$fieldBinding;if(c){c.destroy();b.$fieldBinding=null}if(a&&a.bindValidationField){d.fieldBinding=a.bindValidationField('setValidationField',d)}},setValidationField:function(b,a){this._validationField=b;this._validationRecord=a},decodeValidator:function(a){var c=Ext.typeOf(a),b=a.fn;if(c==='function'){b=this.wrapValidatorFn(a)}else if(c==='regexp'){b=Ext.Factory.validator({type:'format',matcher:a})}else if(c==='object'&&b&&!a.isValidator){b=this.wrapValidatorFn(b,a)}else {b=Ext.Factory.validator(a)}return b}}});Ext.define('Ext.field.Input',{extend:Ext.field.Field,xtype:'inputfield',isInputField:!0,tag:'input',config:{inputType:{cached:!0,$value:'text'},readOnly:!1,inputValue:null},focusEl:'inputElement',ariaEl:'inputElement',inputTabIndex:0,getBodyTemplate:function(){return [this.getInputTemplate()]},getInputTemplate:function(){return {tag:this.tag,reference:'inputElement',tabindex:this.inputTabIndex,cls:Ext.baseCSSPrefix+'input-el'}},initElement:function(){this.callParent();this.labelElement.dom.setAttribute('for',this.inputElement.id)},updateDisabled:function(a,b){this.callParent([a,b]);this.inputElement.dom.disabled=!!a},updateInputType:function(a){this.setInputAttribute('type',a)},updateName:function(a,b){this.callParent([a,b]);this.setInputAttribute('name',a)},updateReadOnly:function(a){this.setInputAttribute('readonly',a?!0:null)},updateValue:function(a,b){if(this.canSetInputValue()){this.setInputValue(a)}this.callParent([a,b])},applyInputValue:function(a){return (a!=null)?(a+''):''},completeEdit:function(){var a=this,c=a.getInputValue(),b=a.parseValue(c);if(b!==null){a.setInputValue(a.getValue())}},updateInputValue:function(b){var a=this.inputElement.dom;if(a.value!==b){a.value=b}},reset:function(){var a=this,b=a.originalValue;if(a.isEqual(b,a.getValue())){a.setInputValue(b);if(!a.isValid()){a.validate()}}else {a.setValue(b)}return a},privates:{canSetInputValue:function(){return !0},setInputAttribute:function(b,c){var a=this.inputElement.dom;if(!Ext.isEmpty(c,!0)){a.setAttribute(b,c)}else {a.removeAttribute(b)}}},deprecated:{'6.5':{configs:{inputCls:null}}}});Ext.define('Ext.field.trigger.Base',{extend:Ext.Widget,alias:'trigger.base',mixins:[Ext.mixin.Factoryable],factoryConfig:{defaultType:'trigger',aliasPrefix:'trigger.'},isTrigger:!0,config:{field:null,group:null,side:null,name:null,triggers:null},classCls:Ext.baseCSSPrefix+'trigger',groupedCls:Ext.baseCSSPrefix+'grouped',inheritUi:!0,statics:{sort:function(a){Ext.sortByWeight(a);return a}},doDestroy:function(){var b=this.getTriggers(),a,c;if(b){for(a=0,c=b.length;a<c;a++){b[a].destroy()}}this.setTriggers(null);this.callParent()},updateField:function(a){this.field=this.ownerCmp=a;this.doInheritUi()},updateGroup:function(a){if(!this.isConfiguring){this.getField().syncTriggers()}},updateSide:function(){if(!this.isConfiguring){this.getField().syncTriggers()}},updateTriggers:function(a){var c=this,e=c.element.dom,b,d;c.toggleCls(c.groupedCls,!!(a&&a.length));if(a){for(b=0,d=a.length;b<d;b++){e.appendChild(a[b].element.dom)}}}});Ext.define('Ext.field.trigger.Trigger',{extend:Ext.field.trigger.Base,xtype:'trigger',alias:'trigger.trigger',config:{handler:null,iconCls:null,repeat:null,scope:null,focusOnTap:!0},interactiveCls:Ext.baseCSSPrefix+'interactive',template:[{reference:'iconElement',classList:[Ext.baseCSSPrefix+'icon-el',Ext.baseCSSPrefix+'font-icon']}],constructor:function(c){var a=this,b;a.callParent([c]);b=a.getRepeat();if(b){a.repeater=new Ext.util.ClickRepeater(Ext.apply({target:a,preventDefault:!0,listeners:{mousedown:'onClickRepeaterTouchStart',mouseup:'onClickRepeaterTouchEnd',click:'onClickRepeaterClick',scope:a}},b))}else {a.element.on({click:'onClick',mousedown:'onMouseDown',scope:a})}},doDestroy:function(){Ext.destroyMembers(this,'repeater');this.callParent()},onClickRepeaterClick:function(b,a){this.onClick(a)},onClick:function(c){var b=this,e=!b.getDisabled()&&b.getHandler(),a=b.getField(),d;if(a){if(c.pointerType!=='mouse'){c.preventDefault();if(b.getFocusOnTap()){d=a.getFocusTrap?a.getFocusTrap():a.getFocusEl();if(d.dom!==document.activeElement){if(b.isExpandTrigger){a.focusingFromExpandTrigger=!0}a.focus()}}}if(e){Ext.callback(e,b.getScope(),[a,b,c],null,a)}}},onMouseDown:function(b){var a;if(b.pointerType==='mouse'){a=this.getFocusOnTap()&&this.getField();if(a){a.focus()}b.preventDefault()}},onClickRepeaterTouchStart:function(b,a){this.onMouseDown(a)},onClickRepeaterTouchEnd:function(d,c){var a=this,b=a.field;Ext.callback(a.endHandler,a.scope,[b,a,c],0,b)},updateHandler:function(a){this.toggleCls(this.interactiveCls,!!a)},updateIconCls:function(b,a){this.iconElement.replaceCls(a,b)}});Ext.define('Ext.field.trigger.Clear',{extend:Ext.field.trigger.Trigger,xtype:'cleartrigger',alias:'trigger.clear',classCls:Ext.baseCSSPrefix+'cleartrigger',weight:-1000,hidden:!0,handler:'onClearIconTap',scope:'this'});Ext.define('Ext.field.Text',{extend:Ext.field.Input,xtype:'textfield',alternateClassName:'Ext.form.Text',config:{clearable:!0,placeholder:null,maxLength:null,autoComplete:null,autoCapitalize:null,autoCorrect:null,autoHideInputMask:null,inputMask:null,pattern:null,triggers:{clear:{type:'clear'}},editable:!0,bodyAlign:'stretch',labelInPlaceholder:{lazy:!0,$value:!0},textAlign:null},cachedConfig:{animateUnderline:!1,parseValidator:null},bubbleEvents:['action'],badFormatMessage:'Value does not match the required format',defaultBindProperty:'value',twoWayBindable:{value:1},publishes:{value:1},inputType:'text',classCls:Ext.baseCSSPrefix+'textfield',focusedCls:Ext.baseCSSPrefix+'focused',emptyCls:Ext.baseCSSPrefix+'empty',webkitBorderBoxBugCls:Ext.baseCSSPrefix+'webkit-border-box-bug',requiredIndicator:'*',getBodyTemplate:function(){var a=[{reference:'beforeInputElement',cls:Ext.baseCSSPrefix+'before-input-el'}];a.push(this.getInputTemplate());a.push({reference:'afterInputElement',cls:Ext.baseCSSPrefix+'after-input-el'});return [{reference:'inputWrapElement',cls:Ext.baseCSSPrefix+'input-wrap-el'+(Ext.supports.WebKitInputTableBoxModelBug?(' '+this.webkitBorderBoxBugCls):''),children:a},{reference:'underlineElement',cls:Ext.baseCSSPrefix+'underline-el'}]},initialize:function(){var a=this;if(Ext.isRobot){a.focusedInputDelay=0}a.callParent();a.inputElement.on({keyup:'onKeyUp',keydown:'onKeyDown',keypress:'onKeyPress',paste:'onPaste',mousedown:'onMouseDown',input:{fn:'onInput',delegated:!1},scope:a});a.syncEmptyState()},clearValue:function(){var a=this,b=a.getInputMask();if(b){b.showEmptyMask(a,!0)}else {a.forceSetValue('')}a.syncEmptyState()},isEqual:function(a,b){var c=this.transformValue(a),d=this.transformValue(b);return c===d},forceSetValue:function(a){this.forceInputChange=!0;this.setValue(a);this.forceInputChange=!1},transformValue:function(a){if(a==null){a=''}return a},applyInputMask:function(a,c){var b=Ext.field['InputMask'];return a?b.from(a,c):null},updateInputMask:function(a,b){this.hasMask=!1;if(b){b.release()}if(a){this.hasMask=!0;a.syncPattern(this)}},doValidate:function(b,d,c){this.callParent([b,d,c]);if(!c){var a=this.getInputMask();if(a&&!a.isFilled(b)&&b!==a._mask){d.push(this.badFormatMessage)}}},parseValue:function(b,h){var d=this,i=d.getParseValidator(),f,e,g,j,a,c;if(i){f=d._validationField;for(g=2;g-->0;){c=g?d.getValidators():(f&&f.getValidators());j=c&&c.length;for(e=0;e<j;++e){a=c[e];if(a.parse){a=a.parse(b);if(a!==null){return a}}}}b=i.parse(b);if(b===null&&h){h.push(d.badFormatMessage)}}return b},applyValue:function(a,b){if(a&&typeof a==='string'){a=this.parseValue(a);if(a===null){return}}return this.transformValue(this.callParent([a,b]))},updateInputValue:function(d,c){var a=this,b=a.getInputMask();a.callParent([d,c]);a.syncEmptyState();a.syncLabelPlaceholder(!1);if(b){b.onChange(this,d,c)}},updateTextAlign:function(a,b){var c=this.element;if(b){c.removeCls(Ext.baseCSSPrefix+'text-align-'+b)}if(a){c.addCls(Ext.baseCSSPrefix+'text-align-'+a)}},updatePlaceholder:function(a){this.setInputAttribute('placeholder',a)},updateMaxLength:function(a){this.setInputAttribute('maxlength',a)},applyAutoComplete:function(a){return a===!0||a==='on'},updateAutoComplete:function(a){this.setInputAttribute('autocomplete',a?'on':'off')},applyAutoCapitalize:function(a){return a===!0||a==='on'},updateAutoCapitalize:function(a){this.setInputAttribute('autocapitalize',a?'on':'off')},applyAutoCorrect:function(a){return a===!0||a==='on'},updateAutoCorrect:function(a){this.setInputAttribute('autocorrect',a?'on':'off')},updateReadOnly:function(c){var a=this,e=a.getTriggers(),f=a.getEditable(),d,b;a.callParent([c||!f]);for(d in e){b=e[d];if(b.disableOnReadOnly!==!1){b.setDisabled(c)}}a.syncEmptyState()},updateEditable:function(d){var b=this.getTriggers(),e=this.getReadOnly(),a,c;this.updateReadOnly(!d);for(a in b){c=b[a];if(c.disableOnReadOnly!==!1){b[a].setDisabled(e)}}},updatePattern:function(a){this.setInputAttribute('pattern',a)},updateDisabled:function(b,a){this.callParent([b,a]);this.syncEmptyState()},updateClearable:function(d,e){var a=this,c,b;if(!a.isConfiguring){c=a.getTriggers();b=c&&c.clear;if(d){if(!b){a.addTrigger('clear','clear')}}else if(b){a.removeTrigger('clear')}}},applyTriggers:function(e,g){var f=this,c=g||{},h=f.getClearable(),a,d,b;for(a in e){d=e[a];b=c[a];if(b){b.destroy()}if(d){if(!h&&(a==='clear')){continue}c[a]=f.createTrigger(a,d)}}return c},updateTriggers:function(){this.syncTriggers()},addTrigger:function(d,a){var b=this,e=b.getTriggers(),c;a=b.createTrigger(d,a);if(e){e[d]=a;b.syncTriggers()}else {c={};c[d]=a;b.setTriggers(c)}return a},removeTrigger:function(a,e){var f=this,d=f.getTriggers(),b=a,c;if(b.isTrigger){b=a.getName()}else {a=d[b]}delete d[b];if(e!==!1){a.destroy()}else {c=a.el.dom;c.parentNode.removeChild(c)}this.syncTriggers();return a},fireKey:function(a){if(a.isSpecialKey()){this.fireEvent('specialkey',this,a)}},onKeyPress:function(b){var a=this,c=a.getInputMask();if(c){c.onKeyPress(a,a.getValue(),b)}a.fireEvent('keypress',a,b);if(!Ext.supports.SpecialKeyDownRepeat){a.fireKey(b)}},onKeyDown:function(b){var a=this,c=a.getInputMask();a.lastKeyTime=Date.now();if(c){c.onKeyDown(a,a.getValue(),b)}a.ignoreInput=!0;if(Ext.supports.SpecialKeyDownRepeat){a.fireKey(b)}a.fireAction('keydown',[a,b],'doKeyDown')},doKeyDown:Ext.emptyFn,onKeyUp:function(a){this.fireAction('keyup',[this,a],'doKeyUp')},doKeyUp:function(a,b){a.syncEmptyState();if(b.browserEvent.keyCode===13){a.fireAction('action',[a,b],'doAction')}},onInput:function(g){var a=this,f=a.inputElement.dom,b=f.value,d=a.getInputMask(),c,e;if(d){d.processAutocomplete(this,b);b=f.value}a._inputValue=b;if(!a.hasFocus&&a.getLabelAlign()==='placeholder'){a.syncLabelPlaceholder(!0)}if(b){c=[];b=a.parseValue(b,c)}if(c&&c.length){a.setError(c)}else {e=a.getValue();a.setValue(b);if(a.getValue()===e){a.validate()}}a.syncEmptyState();if(a.ignoreInput){a.ignoreInput=!1;return}Ext.defer(function(){if(!a.ignoreInput&&!a.destroyed){a.fireEvent('keyup',g);a.ignoreInput=!1}},10)},doAction:function(){if(document.documentElement.getBoundingClientRect().top<0){this.blur()}},onClearIconTap:function(a,b){this.fireAction('clearicontap',[this,a,b],'doClearIconTap')},doClearIconTap:function(){this.clearValue()},onFocusEnter:function(c){var a=this,b=a.getInputMask();a.callParent([c]);a.addCls(a.focusedCls);a.syncLabelPlaceholder(!0);if(b){b.onFocus(a,a.getValue())}},onFocusLeave:function(c){var a=this,b=a.getInputMask();a.callParent([c]);a.removeCls(a.focusedCls);a.syncLabelPlaceholder(!0);if(b){b.onBlur(a,a.getValue())}},onPaste:function(a){this.forceInputChange=!0;this.handlePaste(a);this.forceInputChange=!1},getCaretPos:function(){return this.inputElement.getCaretPos()},setCaretPos:function(a){this.inputElement.setCaretPos(a)},getTextSelection:function(){return this.inputElement.getTextSelection()},select:function(b,c,a){if(this.containsFocus){this.inputElement.selectText(b,c,a)}return this},reset:function(){this.callParent();this.syncEmptyState()},onClick:function(a){this.fireEvent('click',a)},onMouseDown:function(a){this.fireEvent('mousedown',a)},trimValueToMaxLength:function(){var b=this,a=b.getMaxLength(),c=b.getValue();if(a&&c.length>a){b.setValue(c.slice(0,a))}},doDestroy:function(){var a=this,e=a.getTriggers(),c=a.triggerGroups,b,d;d=a.labelElement&&a.labelElement.getActiveAnimation();if(d){d.stop()}if(c){for(b in c){c[b].destroy()}a.triggerGroups=null}for(b in e){e[b].destroy()}a.setTriggers(null);a.setInputMask(null);a.callParent()},onRender:function(){this.callParent();this.syncLabelPlaceholder()},getRefItems:function(e){var f=this,d=f.getTriggers(),b=[],c,a;for(c in d){a=d[c];b.push(a);if(e&&a.getRefItems){b.push.apply(b,a.getRefItems(e))}}return b},privates:{focusedInputDelay:300,forceInputChange:!1,hasMask:!1,lastKeyTime:0,applyParseValidator:function(a){return this.decodeValidator(a)},updateLabelInPlaceholder:function(b){var a=this,c=a.getPlaceholder()||'',d=a._animPlaceholderLabel;if(a.getLabelAlign()!=='placeholder'||!a.getLabel()){a.clearWhenVisible('doPositionPlaceholder');a.setInputAttribute('placeholder',c);return}a.whenVisible('doPositionPlaceholder',[b,d]);a.el.toggleCls(Ext.baseCSSPrefix+'label-inside',b)},updateAnimateUnderline:function(a){this.toggleCls(Ext.baseCSSPrefix+'animate-underline',a)},canSetInputValue:function(){var a=this;return a.hasMask||a.forceInputChange||!a.hasFocus||Date.now()-a.lastKeyTime>a.focusedInputDelay},doPositionPlaceholder:function(h,i){var b=this,c=b.labelElement,g,f,a,e,d;f=c.getActiveAnimation();if(f){f.stop()}a=b.lastPlaceholderAnimInfo;if(!a){b.lastPlaceholderAnimInfo=a=b.getPlaceholderAnimInfo()}e=a.inside;d=a.outside;g={from:h?d:e,to:h?e:d,preserveEndState:!0,duration:250,easing:'ease-out'};if(i){c.animate(g)}else {c.setStyle(g.to)}},getPlaceholderLabel:function(){var b=this,a=b.getLabel();if(a&&b.getRequired()){a+=' '+b.requiredIndicator}return a},getPlaceholderAnimInfo:function(){var c=this,f=c.element,b=c.labelElement,a=c.inputElement,e=b.getOffsetsTo(f),d=a.getOffsetsTo(f),h=b.getPadding('l'),g=a.getPadding('l'),j=b.getPadding('t'),i=a.getPadding('t'),k=d[0]-e[0]+(g-h),l=d[1]-e[1]+(i-j);return {inside:{transform:{translateX:k+'px',translateY:l+'px'},'font-size':a.getStyle('font-size')},outside:{transform:{translateX:'0px',translateY:'0px'},'font-size':b.getStyle('font-size')}}},handlePaste:function(c){var a=this,b=a.getInputMask();if(b){b.onPaste(a,a.getValue(),c)}a.fireEvent('paste',a,c)},createTrigger:function(b,a){if(!a.isTrigger){if(a===!0){a={type:b}}else if(typeof a==='string'){a={type:a}}a=Ext.apply({name:b,field:this},a);a=a.xtype?Ext.create(a):Ext.Factory.trigger(a)}return a},syncLabelPlaceholder:function(c){var a=this,b;a._animPlaceholderLabel=c;if(a.rendered){if(a.hasValue()){b=!1}else {b=!a.hasFocus||a.getDisabled()||a.getReadOnly()}a.setLabelInPlaceholder(b)}a._animPlaceholderLabel=!1},hasValue:function(){return this.inputElement&&this.inputElement.dom.value},processRawValue:function(c){var e=this,a=e.stripCharsRe,d,b;if(a){if(!a.global){d='g';d+=(a.ignoreCase)?'i':'';d+=(a.multiline)?'m':'';a=new RegExp(a.source,d)}b=c.replace(a,'');if(b!==c){if(!e.transformRawValue.$nullFn){b=e.transformRawValue(b)}e.inputElement.dom.value=b;c=b}}return c},syncTriggers:function(){var i=this,l=i.getTriggers(),n=i.beforeInputElement,o=i.afterInputElement,h=i.triggerGroups||(i.triggerGroups={}),f=[],g=[],e={},j=Ext.field.trigger['Base'],m,d,b,a,c,k;for(m in l){d=l[m];b=d.getGroup();if(b){(e[b]||(e[b]=[])).push(d)}else if(d.getSide()==='left'){f.push(d)}else {g.push(d)}}for(b in e){a=h[b];if(!a){a=l[b];if(!a){a=new j()}h[b]=a}a.setTriggers(j.sort(e[b]));if(a.getSide()==='left'){f.push(a)}else {g.push(a)}}j.sort(f);j.sort(g);for(c=0,k=f.length;c<k;c++){n.appendChild(f[c].element)}for(c=0,k=g.length;c<k;c++){o.appendChild(g[c].element)}for(b in h){if(!(b in e)){a=h[b];a.setTriggers(null);a.destroy();delete h[b]}}},syncEmptyState:function(){var a=this,e=a.getTriggers(),d=a.getInputMask(),b=e&&e.clear,f=a.inputElement.dom.value,c;a.toggleCls(a.emptyCls,!f);if(b){if(a.getClearable()){if(a.hasValue()&&!a.getDisabled()&&!a.getReadOnly()){c=!0}if(d){if(f===d._mask){c=!1}}}if(c){b.show()}else {b.hide()}}}},deprecated:{'6.5':{configs:{placeHolder:'placeholder',clearIcon:'clearable'},methods:{getPlaceHolder:'getPlaceholder',setPlaceHolder:'setPlaceholder'}}}},function(){if(Ext.os.is.Android){window.addEventListener('resize',function(){var c=document.activeElement,d=c&&c.tagName,b,a;if(d==='INPUT'||d==='TEXTAREA'){b=Ext.Component.from(c);a=b&&b.element&&b.element.dom;if(a){if(a.scrollIntoViewIfNeeded){a.scrollIntoViewIfNeeded()}else {a.scrollIntoView()}}}})}});Ext.define('Ext.Editor',{extend:Ext.Container,xtype:'editor',isEditor:!0,config:{field:{xtype:'textfield'}},floated:!0,allowBlur:!0,revertInvalid:!0,hideEl:!0,value:'',alignment:'c-c?',offset:[0,0],shadow:'frame',constrain:!1,swallowKeys:!0,completeOnEnter:!0,cancelOnEsc:!0,cancelOnClear:!1,updateEl:!1,focusOnToFront:!1,baseCls:Ext.baseCSSPrefix+'editor',editing:!1,preventDefaultAlign:!0,useBoundValue:!0,specialKeyDelay:1,matchFont:!1,getLocation:Ext.emptyFn,beforeEdit:function(b,a){return this.fireEvent('beforestartedit',this,b,a,this.getLocation())},applyField:function(a){return Ext.widget(a)},updateField:function(b,c){var a=this,d;if(c){a.remove(c,!0);c.un({specialkey:'onSpecialKey',clearicontap:'onFieldClear',scope:this});a._fieldSwallower=Ext.destroy(a._fieldSwallower)}if(b){d=b.inputElement;a.add(b);b.on({specialkey:'onSpecialKey',clearicontap:'onFieldClear',scope:this});if(a.swallowKeys){a._fieldSwallower=d.swallowEvent(['keypress','keydown'])}}},onAdded:function(a){this.ownerCmp=a;this.callParent(arguments)},onSpecialKey:function(g,b){var a=this,e=b.getKey(),d=a.completeOnEnter&&e===b.ENTER,f=a.cancelOnEsc&&e===b.ESC,c=a.specialKeyTask;if(!b.fromBoundList&&(d||f)){b.stopEvent();if(!c){a.specialKeyTask=c=new Ext.util.DelayedTask()}c.delay(a.specialKeyDelay,d?a.completeEdit:a.cancelEdit,a)}a.fireEvent('specialkey',a,g,b)},startEdit:function(b,d,g){var a=this,c=a.getField(),f,e;if(!this.allowBlur&&this.editing){a.toggleBoundEl(!0)}a.completeEdit(!0);a.boundEl=b=Ext.get(b);f=a.boundEl.dom;if(a.useBoundValue&&!Ext.isDefined(d)){d=Ext.String.trim(f.textContent||f.innerText||f.innerHTML)}if(a.beforeEdit(b,d)!==!1){if(a.context){d=a.context.value}if(this.matchFont){e=b.getStyle('font');if(!e){e=b.getStyle('fontWeight')+' '+b.getStyle('fontSize')+'/'+b.getStyle('lineHeight')+' '+b.getStyle('fontFamily')}c.inputElement.setStyle('font',e)}a.startValue=d;a.show();if(!a.getFloated()){a.setTop(0)}a.realign();c.suspendEvents();c.setValue(d);c.resetOriginalValue();c.resumeEvents();if(g!==!1){c.focus(c.selectOnFocus?!0:[Number.MAX_VALUE])}a.toggleBoundEl(!1);a.editing=!0}},realign:function(){var a=this;a.setConstrainAlign(Ext.getBody().getConstrainRegion());a.alignTo(a.boundEl,a.alignment,{offset:a.offset})},completeEdit:function(c){var a=this,e=a.getField(),d=a.startValue,f=a.context&&a.context.cancel,b;if(!a.editing){return}b=a.getValue();if(!e.isValid()||!e.validate()){if(a.revertInvalid!==!1){a.cancelEdit(c)}return}if(a.ignoreNoChange&&!e.didValueChange(b,d)){a.onEditComplete(c);return}if(a.fireEvent('beforecomplete',a,b,d,a.getLocation())!==!1){b=a.getValue();if(a.updateEl&&a.boundEl){a.boundEl.setHtml(b)}a.onEditComplete(c,f);a.fireEvent('complete',a,b,d,a.getLocation())}},afterShow:function(){var a=this;a.callParent();a.fireEvent('startedit',a,a.boundEl,a.startValue,a.getLocation())},onFieldClear:function(){if(this.cancelOnClear){this.cancelEdit()}},cancelEdit:function(e){var a=this,c=a.startValue,b=a.getField(),d;if(a.editing){if(b){d=a.editedValue=a.getValue();b.suspendEvents();a.setValue(c);b.resumeEvents()}a.onEditComplete(e,!0);a.fireEvent('canceledit',a,d,c);delete a.editedValue}},onEditComplete:function(b,d){var a=this,c=a.getField();a.editing=!1;if(b!==!0){a.hide();a.toggleBoundEl(!0)}c.inputElement.setStyle('font',null)},onFocusLeave:function(b){var a=this;if(a.allowBlur===!0&&a.editing){a.completeEdit()}a.callParent([b])},updateHidden:function(c,d){var a=this,b;if(c&&!a.destroying){b=a.getField();if(a.editing){a.completeEdit()}else if(b.collapse){b.collapse()}}a.callParent([c,d])},getValue:function(){var a=this.getField();return a.getValue()},setValue:function(b){var a=this.getField();a.setValue(b)},toggleBoundEl:function(a){if(this.hideEl){this.boundEl.setVisibilityMode(Ext.Element.VISIBILITY);this.boundEl.setVisible(a)}},doDestroy:function(){var b=this,a=b.specialKeyTask;if(a){a.cancel()}b.callParent()}});Ext.define('Ext.Img',{extend:Ext.Component,xtype:['image','img'],alternateClassName:'Ext.Image',config:{src:null,imageCls:Ext.baseCSSPrefix+'img-image',backgroundCls:Ext.baseCSSPrefix+'img-background',mode:'background'},baseCls:Ext.baseCSSPrefix+'img',beforeInitialize:function(){var a=this;a.onLoad=a.onLoad.bind(a);a.onError=a.onError.bind(a)},initialize:function(){var a=this;a.callParent();a.relayEvents(a.renderElement,'*');a.element.on({tap:'onTap',scope:a})},hide:function(){var a=this;a.callParent(arguments);a.hiddenSrc=a.hiddenSrc||a.getSrc();if(!a.isDestroying){a.setSrc(null)}},afterShow:function(){this.callParent();if(this.hiddenSrc){this.setSrc(this.hiddenSrc);delete this.hiddenSrc}},updateMode:function(d){var a=this,c=a.getImageCls(),b=a.getBackgroundCls();if(d==='background'){if(a.imageElement){a.imageElement.destroy();delete a.imageElement;a.updateSrc(a.getSrc())}a.replaceCls(c,b)}else {a.imageElement=a.element.createChild({tag:'img'});a.replaceCls(b,c)}},updateImageCls:function(a,b){this.replaceCls(b,a)},updateBackgroundCls:function(a,b){this.replaceCls(b,a)},onTap:function(a){this.fireEvent('tap',this,a)},applySrc:function(a){return a&&Ext.resolveResource(a)},updateSrc:function(c){var b=this,a;if(b.getMode()==='background'){a=this.imageObject||new Image()}else {a=b.imageElement.dom}this.imageObject=a;a.setAttribute('src',Ext.isString(c)?c:'');a.addEventListener('load',b.onLoad,!1);a.addEventListener('error',b.onError,!1)},detachListeners:function(){var a=this.imageObject;if(a){a.removeEventListener('load',this.onLoad,!1);a.removeEventListener('error',this.onError,!1)}},onLoad:function(a){this.detachListeners();if(this.getMode()==='background'){this.element.dom.style.backgroundImage='url("'+this.imageObject.src+'")'}this.fireEvent('load',this,a)},onError:function(a){this.detachListeners();if(this.getMode()==='background'){this.element.dom.style.backgroundImage='url("'+this.imageObject.src+'")'}this.fireEvent('error',this,a)},updateWidth:function(b){var a=(this.getMode()==='background')?this.element:this.imageElement;a.setWidth(b);this.callParent(arguments)},updateHeight:function(b){var a=(this.getMode()==='background')?this.element:this.imageElement;a.setHeight(b);this.callParent(arguments)},doDestroy:function(){var a=this;a.detachListeners();a.imageObject=a.imageElement=Ext.destroy(a.imageObject,a.imageElement);a.callParent()}});Ext.define('Ext.Label',{extend:Ext.Component,xtype:'label',baseCls:Ext.baseCSSPrefix+'label'});Ext.define('Ext.LoadMask',{extend:Ext.Mask,xtype:'loadmask',config:{message:'Loading...',cls:Ext.baseCSSPrefix+'loading-mask',messageCls:Ext.baseCSSPrefix+'mask-message',indicator:!0},getTemplate:function(){var a=Ext.baseCSSPrefix;return [{reference:'innerElement',cls:a+'mask-inner',children:[{reference:'indicatorElement',cls:a+'loading-spinner-outer',children:[{cls:a+'loading-spinner',children:[{tag:'span',cls:a+'loading-top'},{tag:'span',cls:a+'loading-right'},{tag:'span',cls:a+'loading-bottom'},{tag:'span',cls:a+'loading-left'}]}]},{reference:'messageElement'}]}]},updateMessage:function(a){var b=Ext.baseCSSPrefix+'has-message';if(a){this.addCls(b)}else {this.removeCls(b)}this.messageElement.setHtml(a)},updateMessageCls:function(a,b){this.messageElement.replaceCls(b,a)},updateIndicator:function(a){this[a?'removeCls':'addCls'](Ext.baseCSSPrefix+'indicator-hidden')}});Ext.define('Ext.field.TextArea',{extend:Ext.field.Text,xtype:'textareafield',alternateClassName:'Ext.form.TextArea',config:{autoCapitalize:!1,maxRows:null,clearable:!1},tag:'textarea',classCls:Ext.baseCSSPrefix+'textareafield',updateMaxRows:function(a){this.setInputAttribute('rows',a)},doKeyUp:function(a){this.syncEmptyState()}});Ext.define('Ext.MessageBox',{extend:Ext.Dialog,xtype:'messagebox',config:{iconCls:null,defaultTextHeight:75,buttons:null,message:null,prompt:null,layout:{type:'vbox',pack:'center'},multiLine:null},classCls:Ext.baseCSSPrefix+'messagebox',closeAction:'hide',headerCls:[Ext.baseCSSPrefix+'dialogheader',Ext.baseCSSPrefix+'messageboxheader'],titleCls:[Ext.baseCSSPrefix+'dialogtitle',Ext.baseCSSPrefix+'messageboxtitle'],toolCls:[Ext.baseCSSPrefix+'paneltool',Ext.baseCSSPrefix+'dialogtool',Ext.baseCSSPrefix+'messageboxtool'],statics:{INFO:Ext.baseCSSPrefix+'msgbox-info',WARNING:Ext.baseCSSPrefix+'msgbox-warning',QUESTION:Ext.baseCSSPrefix+'msgbox-question',ERROR:Ext.baseCSSPrefix+'msgbox-error',OK:{ok:'me.onClick'},YES:{yes:'me.onClick'},NO:{no:'me.onClick'},CANCEL:{cancel:'me.onClick'},OKCANCEL:{ok:'me.onClick',cancel:'me.onClick'},YESNOCANCEL:{yes:'me.onClick',no:'me.onClick',cancel:'me.onClick'},YESNO:{yes:'me.onClick',no:'me.onClick'}},constructor:function(a){var d=['ui','showAnimation','hideAnimation','title','message','prompt','iconCls','buttons','defaultTextHeight'],e,b,c;a=a||{};if(a.hasOwnProperty('multiline')||a.hasOwnProperty('multiLine')){a.prompt=a.prompt||{};Ext.applyIf(a.prompt,{multiLine:a.multiline||a.multiLine});delete a.multiline;delete a.multiLine}this.defaultAllowedConfig={};e=d.length;for(b=0;b<e;b++){c=d[b];this.defaultAllowedConfig[c]=this.defaultConfig[c]}this.callParent([a])},applyTitle:function(a){if(typeof a==="string"){return a}return a.title},updateTitle:function(b){var a=this.getHeader()||{};if(Ext.isSimpleObject(a)){a.title=b;this.setHeader(a)}else if(Ext.isFunction(a.setTitle)){a.setTitle(b)}},applyMessage:function(a){a={html:a,cls:this.baseCls+'-text'};return Ext.factory(a,Ext.Component,this._message)},updateMessage:function(a){if(a){this.add(a)}},getMessage:function(){if(this._message){return this._message.getHtml()}return null},applyIconCls:function(a){if(a){a={xtype:'component',docked:'left',width:40,height:40,hidden:(a)?!1:!0,cls:Ext.baseCSSPrefix+'icon '+a};return Ext.factory(a,Ext.Component,this._iconCls)}return a},updateIconCls:function(a,b){this.getTitle();this.getButtons();if(a){this.add(a)}else {this.remove(b)}},getIconCls:function(){var b=this._iconCls,a;if(b){a=b.getCls();return (a)?a[0]:null}return null},applyPrompt:function(b){var a;if(b){a={label:!1};if(Ext.isObject(b)){Ext.apply(a,b)}if(a.multiLine){a.height=Ext.isNumber(a.multiLine)?parseFloat(a.multiLine):this.getDefaultTextHeight();return Ext.factory(a,Ext.field['TextArea'],this.getPrompt())}else {return Ext.factory(a,Ext.field['Text'],this.getPrompt())}}return b},updatePrompt:function(b,a){if(b){this.add(b)}if(a&&!a.destroyed){this.remove(a)}},onClick:function(a){var b=this,d=b.msgBoxOptions,c=b.getPrompt(),f=d.fn,e;if(a){if(typeof f==='function'){a.disable();c=c?c.getValue():null;e=a.getItemId()||a.getText();b.on({single:!0,hiddenchange:function(){f.call(d.scope||b,e,c,d);a.enable()}})}}b.hide()},show:function(c,f){var b=this,e,a,d;Ext.util.InputBlocker.blockInputs();if(!c){return b.callParent(arguments)}a=Ext.apply({buttons:Ext.MessageBox.OK,draggable:!1,prompt:null,defaultFocus:null},c);if(a.multiLine){a.prompt=a.prompt||{};a.prompt.multiLine=a.multiLine;delete a.multiLine}delete a.value;delete a.fn;delete a.scope;a=Ext.merge({},b.defaultAllowedConfig,a);b.setConfig(a);b.msgBoxOptions=c;e=b.getButtons();e.items.each(function(a){var d;if(a.isButton){d=a.getScope();if(a.fn&&d){a.fn=a.fn.bind(d)}d=a.getHandler();if(!d||d==='me.onClick'){a.setHandler('onClick');a.setScope(b)}}});d=b.getPrompt();if(d){d.setValue(c.value||'')}b.callParent([null,f]);return b},alert:function(d,c,b,a){return this.show({title:d||null,message:c||null,buttons:Ext.MessageBox.OK,defaultFocus:'#ok',prompt:!1,fn:function(){if(b){Ext.callback(b,a,arguments)}},scope:a})},confirm:function(d,c,b,a){return this.show({title:d||null,message:c||null,buttons:Ext.MessageBox.YESNO,defaultFocus:'#yes',prompt:!1,scope:a,fn:function(){if(b){Ext.callback(b,a,arguments)}}})},prompt:function(f,d,b,a,c,g,e){return this.show({title:f||null,message:d||null,buttons:Ext.MessageBox.OKCANCEL,scope:a,prompt:e||!0,defaultFocus:'textfield',multiLine:c,value:g,fn:function(){if(b){Ext.callback(b,a,arguments)}}})}},function(a){Ext.onInternalReady(function(){Ext.Msg=new Ext.MessageBox({id:'ext-messagebox'})})});Ext.define('Ext.SegmentedButton',{extend:Ext.Container,xtype:'segmentedbutton',alternateClassName:'Ext.button.Segmented',isSegmentedButton:!0,classCls:Ext.baseCSSPrefix+'segmentedbutton',config:{allowMultiple:!1,allowDepress:!1,allowToggle:!0,forceSelection:!1,pressedButtons:null,defaultType:'button',defaultUI:'segmented',value:undefined,vertical:!1},defaults:{flex:'1 1 auto'},autoSize:null,layout:{type:'box',vertical:!1,align:'stretch'},defaultBindProperty:'value',twoWayBindable:'value',publishes:'value',constructor:function(a){this.valueMap={};this.callParent([a])},initialize:function(){var a=this;a.callParent();a.onAfter({delegate:'> button',scope:a,hide:'onButtonHiddenChange',show:'onButtonHiddenChange'})},applyPressedButtons:function(b){var a=b,e,c,d;b=[];if(a){a=Ext.Array.from(a);e=a&&a.length;for(c=0;c<e;++c){d=this.getComponent(a[c]);if(d){b.push(d)}}}return b},updatePressedButtons:function(a){this.setValue(a)},getPressedButtons:function(){var c=this.getItems().items,e=c.length,d=[],a,b;for(a=0;a<e;++a){b=c[a];if(b.getPressed()){d.push(b)}}return d},applyValue:function(a,j){var b=this,g=b.getItems(),e=b.getAllowMultiple(),c,d,i,h,f;if(b.isConfiguring){if(a==null){c=[];i=g.length;for(d=0;d<i;d++){h=g.getAt(d);if(h.isPressed()){f=b.getButtonValue(h);if(!Ext.Array.contains(c,f)){c.push(f)}}}a=c}else {a=Ext.Array.from(a)}}else {a=Ext.Array.from(a)}a=e?b.sortValues(a):a[0];if((e?!a.length:a==null)&&b.getForceSelection()){a=b.getButtonValue(g.getAt(0));if(e){a=[a]}}return Ext.isDefined(a)?a:null},updateValue:function(i,h){var b=this,d=[],f=Ext.Array.from(i),g=Ext.Array.from(h),c,a,e;b.settingValue=!0;if(g.length){e=g.length;for(a=0;a<e;a++){c=b.lookupButtonByValue(g[a]);if(!Ext.Array.contains(f,g[a])){c.setPressed(!1);d.push(c)}}}if(f.length){e=f.length;for(a=0;a<e;a++){c=b.lookupButtonByValue(f[a]);if(!Ext.Array.contains(g,f[a])){c.setPressed(!0);d.push(c)}}}if(!b.isConfiguring){if(b.hasListeners.toggle){e=d.length;b.sortToggleItems(d);for(a=0;a<e;a++){c=d[a];b.fireEvent('toggle',b,c,c.getPressed())}}if(b.hasListeners.change){d=b.getAllowMultiple()?!Ext.Array.equals(i,h):i!==h;if(d){b.fireEvent('change',b,i,h)}}}b.settingValue=!1},updateAllowMultiple:function(a){if(!this.initialized&&!this.getInitialConfig().hasOwnProperty('allowDepress')&&a){this.setAllowDepress(!0)}},updateVertical:function(a){var d=this,c=Ext.baseCSSPrefix+'vertical',b=Ext.baseCSSPrefix+'horizontal';d.replaceCls(a?b:c,a?c:b);d.getLayout().setVertical(a)},onItemAdd:function(a,e){var b=this,c=b.getDefaultUI(),d=a.getValue();b.getAllowMultiple();if(c&&(a.getUi()==null)){a.setUi(c)}if(d!==null){b.valueMap[d]=a;b.useValueMap=!0}a.$segmentedListeners=a.on({scope:b,beforepressedchange:'onBeforePressedChange',pressedchange:'onPressedChange',order:'before',destroyable:!0});b.callParent([a,e]);b.updateFirstAndLastCls(b.getItems());a.$enableToggle=a.getEnableToggle();a.$allowDepress=a.getAllowDepress();a.setEnableToggle(b.getAllowToggle());a.setAllowDepress(b.getAllowDepress())},onItemRemove:function(a,d,j){var b=this,g=a.getValue(),h=b.useValueMap,i=a.$segmentedListeners,f,c,e;b.callParent([a,d,j]);if(!b.destroying){if(i){i.destroy()}b.updateFirstAndLastCls(this.getItems());if(h){delete b.valueMap[g]}else {g=d}if(a.getPressed()){f=b.getValue();if(b.getAllowMultiple()){d=f.indexOf(g);c=f.slice();if(!h){for(e=c.length-1;e>d;--e){--c[e]}}c.splice(d,1)}else {c=null}b.setValue(c)}a.setEnableToggle(a.$enableToggle);a.setAllowDepress(a.$allowDepress)}a.$segmentedListeners=null},isPressed:function(a){return a.getPressed()},updateDisabled:function(b,c){var a=this;a.items.each(function(a){a.setDisabled(b)},a);a.callParent([b,c])},updateDefaultUI:function(d){var c=this.items&&this.items.items,e=c.length,a,b;for(a=0;a<e;a++){b=c[a];if(b.getUi()==null){b.setUi(d)}}},doDestroy:function(){this.valueMap=null;this.callParent()},privates:{getAllPressed:function(b){var f={},g=this.pressingItem,e,c,a,d;b=b.items;e=b.length;for(c=0;c<e;++c){a=b[c];if(a===g){d=!a.getPressed()}else {d=a.getPressed()}if(d){f[a.id]=a}}return f},lookupButtonByValue:function(a){return this.useValueMap?this.valueMap[a]:this.getItems().getAt(a)},getButtonValue:function(b){var a;if(this.useValueMap){a=b.getValue()}if(a==null){a=this.getItems().indexOf(b)}return a},onBeforePressedChange:function(d,c){var b=this.getValue(),a;if(this.getForceSelection()&&!c){if(this.getAllowMultiple()){a=b.length===1}else if(b===this.getButtonValue(d)){a=!1}}return a},onPressedChange:function(g,h){var b,f,d,c,a,e;if(this.settingValue){return}b=this;f=Ext.Array;d=b.getAllowMultiple();c=b.getButtonValue(g);a=b.getValue();if(d){e=f.indexOf(a,c)}if(h){if(d){if(e===-1){a=f.slice(a);a.push(c)}}else {a=c}}else {if(d){if(e>-1){a=f.slice(a);a.splice(e,1)}}else if(a===c){a=null}}b.pressingItem=g;b.setValue(a);b.pressingItem=null},onButtonHiddenChange:function(){this.updateFirstAndLastCls(this.getItems())},sortToggleItems:function(b){var a=this.getItems();Ext.Array.sort(b,function(d,e){var f=d.getPressed()?1:0,g=e.getPressed()?1:0,c=f-g;if(c===0){c=a.indexOf(d)-a.indexOf(e)}return c})},sortValues:function(a){var d=Ext.Array.numericSortFn,c=this.valueMap,b=this.getItems();a=Ext.Array.clone(a);if(this.useValueMap){d=function(d,e){d=b.indexOf(c[d]);e=b.indexOf(c[e]);return d-e}}Ext.Array.sort(a,d);return a},updateFirstAndLastCls:function(c){var d=c.length,e=Ext.baseCSSPrefix,f=e+'first',g=e+'last',b,a;for(a=0;a<d;a++){b=c.items[a];b.removeCls(f);b.removeCls(g)}for(a=0;a<d;a++){b=c.items[a];if(!b.isHidden()){b.addCls(f);break}}for(a=d-1;a>=0;a--){b=c.items[a];if(!b.isHidden()){b.addCls(g);break}}}}});Ext.define('Ext.TitleBar',{extend:Ext.Container,xtype:'titlebar',defaultBindProperty:'title',isToolbar:!0,classCls:Ext.baseCSSPrefix+'titlebar',inheritUi:!0,config:{cls:Ext.baseCSSPrefix+'navigation-bar',title:null,titleAlign:'center',defaultType:'button',defaultButtonUI:null,minHeight:null,layout:{type:'hbox',align:'center'},items:[],maxButtonWidth:'40%'},autoSize:null,border:!1,beforeInitialize:function(){this.applyItems=this.applyInitialItems},initialize:function(){var a=this;a.callParent();delete a.applyItems;a.add(a.initialItems);delete a.initialItems;a.on({scope:a,painted:'refreshTitlePosition',single:!0})},applyInitialItems:function(d){var a=this,c=a.getTitleAlign(),b=a.getDefaults()||{};a.initialItems=d;a.leftBox=a.add({xtype:'container',style:'position: relative',cls:Ext.baseCSSPrefix+'titlebar-left',autoSize:null,layout:{type:'hbox',align:'center'},listeners:{resize:'refreshTitlePosition',scope:a}});a.spacer=a.add({xtype:'component',style:'position: relative',cls:Ext.baseCSSPrefix+'titlebar-center',flex:1,listeners:{resize:'refreshTitlePosition',scope:a}});a.rightBox=a.add({xtype:'container',style:'position: relative',cls:Ext.baseCSSPrefix+'titlebar-right',autoSize:null,layout:{type:'hbox',align:'center'},listeners:{resize:'refreshTitlePosition',scope:a}});switch(c){case 'left':a.titleComponent=a.leftBox.add({xtype:'title',cls:Ext.baseCSSPrefix+'title-align-left',hidden:b.hidden});a.refreshTitlePosition=Ext.emptyFn;break;case 'right':a.titleComponent=a.rightBox.add({xtype:'title',cls:Ext.baseCSSPrefix+'title-align-right',hidden:b.hidden});a.refreshTitlePosition=Ext.emptyFn;break;default:a.titleComponent=a.add({xtype:'title',hidden:b.hidden,centered:!0});break;}a.doAdd=a.doBoxAdd;a.remove=a.doBoxRemove;a.doInsert=a.doBoxInsert},doBoxAdd:function(b){var a=this,c=a.getTitleAlign();a.addDefaultButtonUI(b);if(b.config.align==='right'){a.rightBox.add(b)}else if(a.titleComponent&&c==='left'){a.leftBox.insertBefore(b,a.titleComponent)}else {a.leftBox.add(b)}},doBoxRemove:function(a,b){if(a.config.align==='right'){this.rightBox.remove(a,b)}else {this.leftBox.remove(a,b)}},doBoxInsert:function(c,a){var b=this;b.addDefaultButtonUI(a);if(a.config.align==='right'){b.rightBox.insert(c,a)}else {b.leftBox.insert(c,a)}},addDefaultButtonUI:function(a){var b=this.getDefaultButtonUI();if(b){if(a.isSegmentedButton){if(a.getDefaultUI()==null){a.setDefaultUI(b)}}else if(a.isButton&&(a.getUi()==null)){a.setUi(b)}}},calculateMaxButtonWidth:function(){var a=this.getMaxButtonWidth();if(Ext.isString(a)){a=parseInt(a.replace('%',''),10)}a=Math.round((this.element.getWidth()/100)*a);return a},refreshTitlePosition:function(){var a,e,c,n,m,f,b,d,k,j,h,g,l,i;if(this.destroyed){return}a=this.titleComponent.renderElement;a.setWidth(null);a.setLeft(null);e=this.leftBox;c=e.down('button');n=e.getItems().getCount()===1;if(c&&n){if(c.getWidth()==null){c.renderElement.setWidth('auto')}m=e.renderElement.getWidth();f=this.calculateMaxButtonWidth();if(m>f){c.renderElement.setWidth(f)}}b=this.spacer.renderElement.getBox();if(Ext.browser.is.IE){a.setWidth(b.width)}d=a.getBox();k=d.width-b.width;j=d.left;h=d.right;if(k>0){g=k/2;j+=g;h-=g;a.setWidth(b.width)}l=b.left-j;i=h-b.right;if(l>0){a.setLeft(l)}else if(i>0){a.setLeft(-i)}a.repaint()},updateTitle:function(a){this.getItems();this.titleComponent.setTitle(a);if(this.isPainted()){this.refreshTitlePosition()}}});Ext.define('Ext.Toast',{extend:Ext.Sheet,config:{alignment:'t-t',centered:!1,showAnimation:{type:'popIn',duration:250,easing:'ease-out'},hideAnimation:{type:'popOut',duration:250,easing:'ease-out'},zIndex:999,message:'',timeout:1000,maxQueue:3,messageAnimation:!0,hideOnMaskTap:!0,modal:!1,layout:{type:'vbox',pack:'center'}},classCls:Ext.baseCSSPrefix+'toast',applyMessage:function(b){var a={html:b,cls:this.baseCls+'-text'};return Ext.factory(a,Ext.Component,this._message)},updateMessage:function(a){if(a){this.add(a)}},startTimer:function(){var a=this.getTimeout();if(this._timeoutID){Ext.undefer(this._timeoutID)}if(!Ext.isEmpty(a)){this._timeoutID=Ext.defer(this.onTimeout.bind(this),a)}else {this.onTimeout()}},stopTimer:function(){Ext.undefer(this._timeoutID);this._timeoutID=null},next:Ext.emptyFn,getIsAnimating:function(){var a=this.getMessage();return (a&&Ext.Animator.hasRunningAnimations(a))||Ext.Animator.hasRunningAnimations(this)},showToast:function(c){var a=this,e=c.message,f=c.timeout||this.getTimeout(),b=a.getMessage(),d=a.getMessageAnimation();if(a.isRendered()&&a.isHidden()===!1){b.onAfter({hiddenchange:function(){a.setMessage(e);a.setTimeout(f);b.onAfter({scope:a,hiddenchange:function(){a.startTimer()},single:!0});b.show(d)},scope:a,single:!0});b.hide(d)}else {Ext.util.InputBlocker.blockInputs();if(!a.getParent()&&Ext.Viewport){Ext.Viewport.add(a)}a.setMessage(e);a.setTimeout(f);a.startTimer();a.show({animation:null,alignment:{component:document.body,alignment:c.alignment||a.getAlignment(),options:{offset:[0,20]}}})}},beforeHide:function(a){this.callParent(arguments);if(this.getIsAnimating()){return !1}this.stopTimer();if(!this.next()){return !1}},onTimeout:function(){if(this._timeoutID!==null){this.hide()}},doDestroy:function(){this.stopTimer();this.callParent()}},function(b){var a=[];function getInstance(){if(!Ext.Toast._instance){Ext.Toast._instance=Ext.create('Ext.Toast')}return Ext.Toast._instance}b.prototype.next=function(){var c=a.shift();if(c){this.showToast(c)}return !c};Ext.Toast.destroy=function(){if(Ext.Toast._instance){Ext.Toast._instance.destroy();Ext.Toast._instance=null}};Ext.toast=function(d,g){var c=getInstance(),f=Ext.Toast.prototype.config.maxQueue,e=d;if(Ext.isString(d)){e={message:d,timeout:g}}a.push(e);if(a.length>f){a.shift()}if(!c.isRendered()||c.isHidden()){c.next()}return c}});Ext.define('Ext.Video',{extend:Ext.Media,xtype:'video',config:{posterUrl:null,showPosterOnPause:!1},baseCls:Ext.baseCSSPrefix+'video',template:[{reference:'ghost',classList:[Ext.baseCSSPrefix+'video-ghost']},{tag:'video',reference:'media',classList:[Ext.baseCSSPrefix+'media']}],initialize:function(){var a=this;a.callParent();a.media.hide();a.ghost.on({tap:'onGhostTap',scope:a});a.media.on({pause:'onPause',scope:a});if(Ext.os.is.Android4||Ext.os.is.iPad){this.isInlineVideo=!0}},applyUrl:function(a){return [].concat(a)},updateUrl:function(d){var b=this,e=b.media,f=d.length,c=e.query('source'),g=c.length,a;for(a=0;a<g;a++){Ext.fly(c[a]).destroy()}for(a=0;a<f;a++){e.appendChild(Ext.Element.create({tag:'source',src:d[a]}))}if(b.isPlaying()){b.play()}},onActivate:function(){this.media.show()},onDeactivate:function(){this.pause();this.media.hide();this.ghost.show()},onGhostTap:function(){var c=this,b=this.media,a=this.ghost;b.show();a.hide();c.play()},onPause:function(a){this.callParent([a]);if(!this.isInlineVideo&&!a.target.seeking&&this.getShowPosterOnPause()){this.media.hide();this.ghost.show()}},onPlay:function(a){this.callParent([a]);this.media.show()},updatePosterUrl:function(b){var a=this.ghost;if(a){a.setStyle('background-image','url('+b+')')}}});Ext.define('Ext.behavior.Behavior',{constructor:function(a){this.component=a;a.on('destroy','onComponentDestroy',this)},onComponentDestroy:Ext.emptyFn});Ext.define('Ext.carousel.Item',{extend:Ext.Decorator,config:{component:null,translatable:!0},baseCls:Ext.baseCSSPrefix+'carousel-item'});Ext.define('Ext.util.TranslatableGroup',{extend:Ext.util.translatable.Abstract,config:{items:[],activeIndex:0,itemLength:{x:0,y:0}},applyItems:function(a){return Ext.Array.from(a)},doTranslate:function(i,j){var g=this.getItems(),k=this.getActiveIndex(),d=this.getItemLength(),l=d.x,m=d.y,n=Ext.isNumber(i),o=Ext.isNumber(j),b,a,h,c,e,f;for(a=0,h=g.length;a<h;a++){c=g[a];if(c){b=(a-k);if(n){e=i+b*l}if(o){f=j+b*m}c.translate(e,f)}}}});Ext.define('Ext.carousel.Carousel',{extend:Ext.Container,alternateClassName:'Ext.Carousel',xtype:'carousel',config:{direction:'horizontal',animation:{duration:250,easing:{type:'ease-out'}},indicator:!0,ui:'dark',itemConfig:{translatable:{type:'csstransform'}},bufferSize:1,itemLength:null},baseCls:Ext.baseCSSPrefix+'carousel',itemLength:0,offset:0,flickStartOffset:0,flickStartTime:0,dragDirection:0,count:0,painted:!1,activeIndex:-1,beforeInitialize:function(){var a=this;a.element.on({resize:'onSizeChange',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd',dragcancel:'onDragEnd',scope:a});a.carouselItems=[];a.orderedCarouselItems=[];a.inactiveCarouselItems=[];a.hiddenTranslation=0},updateBufferSize:function(e){var j=Ext.carousel.Item,l=e*2+1,g=this.isRendered(),f=this.bodyElement,d=this.carouselItems,m=d.length,h=Ext.apply({ownerCmp:this},this.getItemConfig()),c=this.getItemLength(),k=this.getDirection(),i=k==='horizontal'?'setWidth':'setHeight',b,a;for(b=m;b<l;b++){a=Ext.factory(h,j);if(c){a[i].call(a,c)}d.push(a);f.append(a.renderElement);if(g&&a.setRendered(!0)){a.fireEvent('renderedchange',this,a,!0)}}this.getTranslatable().setActiveIndex(e)},onSizeChange:function(){this.refreshSizing();this.refreshCarouselItems();this.refreshActiveItem()},onItemAdd:function(c,d){var a,b;this.callParent([c,d]);a=this.getInnerItems().indexOf(c);b=this.getIndicator();if(b&&c.isInnerItem()){b.add()}if(a<=this.getActiveIndex()){this.refreshActiveIndex()}if(this.isIndexDirty(a)&&!this.isItemsInitializing){this.refreshActiveItem()}},doItemLayoutAdd:function(a,c,b){if(a.isInnerItem()){return}this.callParent(arguments)},onItemRemove:function(f,i,h){var d,e,b,a,g,c;this.callParent(arguments);d=this.getInnerItems().indexOf(f);e=this.getIndicator();b=this.carouselItems;if(f.isInnerItem()&&e){e.remove()}if(d<=this.getActiveIndex()){this.refreshActiveIndex()}if(this.isIndexDirty(d)){for(a=0,g=b.length;a<g;a++){c=b[a];if(c.getComponent()===f){c.setComponent(null);break}}this.refreshActiveItem()}},doItemLayoutRemove:function(a){if(a.isInnerItem()){return}this.callParent(arguments)},onInnerItemMove:function(c,b,a){if((this.isIndexDirty(b)||this.isIndexDirty(a))){this.refreshActiveItem()}},doItemLayoutMove:function(a){if(a.isInnerItem()){return}this.callParent(arguments)},isIndexDirty:function(c){var a=this.getActiveIndex(),b=this.getBufferSize();return (c>=a-b&&c<=a+b)},getTranslatable:function(){var b=this,a=b.translatable;if(!a){b.translatable=a=new Ext.util.TranslatableGroup();a.setItems(b.orderedCarouselItems);a.on('animationend','onAnimationEnd',b)}return a},onDragStart:function(a){var d=this.getDirection(),b=a.absDeltaX,c=a.absDeltaY;this.isDragging=!0;if((d==='horizontal'&&b>c)||(d==='vertical'&&c>b)){a.stopPropagation()}else {this.isDragging=!1;return}this.getTranslatable().stopAnimation();this.dragStartOffset=this.offset;this.dragDirection=0},onDrag:function(l){var i,j,b,c,h,a,f,e,k,g,d;if(!this.isDragging){return}i=this.dragStartOffset;j=this.getDirection();b=j==='horizontal'?l.deltaX:l.deltaY;c=this.offset;h=this.flickStartTime;a=this.dragDirection;f=Ext.Date.now();e=this.getActiveIndex();k=this.getMaxItemIndex();g=a;if((e===0&&b>0)||(e===k&&b<0)){b*=0.5}d=i+b;if(d>c){a=1}else if(d<c){a=-1}if(a!==g||(f-h)>300){this.flickStartOffset=c;this.flickStartTime=f}this.dragDirection=a;this.setOffset(d)},onDragEnd:function(l){var k,g,i,d,b,j,a,e,f,h,c;if(!this.isDragging){return}this.onDrag(l);this.isDragging=!1;k=Ext.Date.now();g=this.itemLength;i=g/2;d=this.offset;b=this.getActiveIndex();j=this.getMaxItemIndex();a=0;e=d-this.flickStartOffset;f=k-this.flickStartTime;h=this.getIndicator();if(f>0&&Math.abs(e)>=10){c=e/f;if(Math.abs(c)>=1){if(c<0&&b<j){a=-1}else if(c>0&&b>0){a=1}}}if(a===0){if(b<j&&d<-i){a=-1}else if(b>0&&d>i){a=1}}if(h){h.setActiveIndex(b-a)}this.animationDirection=a;this.setOffsetAnimated(a*g)},onRender:function(){this.callParent();this.refresh()},applyAnimation:function(a){a.easing=Ext.factory(a.easing,Ext.fx.easing.EaseOut);return a},updateDirection:function(a){var b=this.getIndicator(),c=(a==='vertical');this.currentAxis=c?'y':'x';this.setTouchAction(c?{panY:!1}:{panX:!1});if(b){b.setDirection(a)}},setOffset:function(a){this.offset=a;if(Ext.isNumber(this.itemOffset)){this.getTranslatable().translateAxis(this.currentAxis,a+this.itemOffset)}return this},setOffsetAnimated:function(c){var a=this.getIndicator(),b;if(a){a.setActiveIndex(this.getActiveIndex()-this.animationDirection)}this.offset=c;b=c+this.itemOffset;this.getTranslatable().translateAxis(this.currentAxis,b,this.getAnimation());return this},onAnimationEnd:function(g){var e,b,f,c,d,a;if(this.destroyed){return}e=this.getActiveIndex();b=this.animationDirection;f=this.currentAxis;c=g[f];d=this.itemLength;if(b===-1){a=d+c}else if(b===1){a=c-d}else {a=c}a-=this.itemOffset;this.offset=a;this.setActiveItem(e-b)},refresh:function(){this.refreshSizing();this.refreshActiveItem()},refreshSizing:function(){var e=this.element,b=this.getItemLength(),d={x:0,y:0},c,a;if(this.getDirection()==='horizontal'){a=e.getWidth()}else {a=e.getHeight()}this.hiddenTranslation=-a;if(b===null){b=a;c=0}else {c=(a-b)/2}this.itemLength=b;this.itemOffset=c;d[this.currentAxis]=b;this.getTranslatable().setItemLength(d)},refreshOffset:function(){this.setOffset(this.offset)},refreshActiveItem:function(){this.updateActiveItem(this.getActiveItem())},getActiveIndex:function(){return this.activeIndex},refreshActiveIndex:function(){this.activeIndex=this.getInnerItemIndex(this.getActiveItem())},refreshCarouselItems:function(){var b=this.carouselItems,a,d,c;for(a=0,d=b.length;a<d;a++){c=b[a];c.getTranslatable().refresh()}this.refreshInactiveCarouselItems()},refreshInactiveCarouselItems:function(){var b=this.inactiveCarouselItems,e=this.hiddenTranslation,f=this.currentAxis,a,d,c;for(a=0,d=b.length;a<d;a++){c=b[a];c.translateAxis(f,e)}},getMaxItemIndex:function(){return this.innerItems.length-1},getInnerItemIndex:function(a){return this.innerItems.indexOf(a)},getInnerItemAt:function(a){return this.innerItems[a]},applyActiveItem:function(a,c){var b;a=this.callParent([a,c]);if(a){b=this.getInnerItemIndex(a);if(b!==-1){this.activeIndex=b;return a}}},updateActiveItem:function(l,r){var c=this,i=c.getActiveIndex(),q=c.getMaxItemIndex(),o=c.getIndicator(),k=c.getBufferSize(),g=c.carouselItems.slice(),m=this.orderedCarouselItems,f={},e={},d,n,a,b,j,p,h;if(g.length===0){return}c.callParent([l,r]);m.length=0;if(l){a=l.getId();e[a]=l;f[a]=k;if(i>0){for(b=1;b<=k;b++){j=i-b;if(j>=0){d=c.getInnerItemAt(j);a=d.getId();e[a]=d;f[a]=k-b}else {break}}}if(i<q){for(b=1;b<=k;b++){j=i+b;if(j<=q){d=c.getInnerItemAt(j);a=d.getId();e[a]=d;f[a]=k+b}else {break}}}for(b=0,p=g.length;b<p;b++){h=g[b];n=h.getComponent();if(n){a=n.getId();if(f.hasOwnProperty(a)){g.splice(b,1);b--;p--;delete e[a];m[f[a]]=h}}}for(a in e){if(e.hasOwnProperty(a)){d=e[a];h=g.pop();h.setComponent(d);m[f[a]]=h}}}c.inactiveCarouselItems.length=0;c.inactiveCarouselItems=g;c.refreshOffset();c.refreshInactiveCarouselItems();if(o&&!o.isDestroying&&i!==-1){o.sync(c.getInnerItems().length,i)}},next:function(){this.setOffset(0);if(this.activeIndex===this.getMaxItemIndex()){return this}this.animationDirection=-1;this.setOffsetAnimated(-this.itemLength);return this},previous:function(){this.setOffset(0);if(this.activeIndex===0){return this}this.animationDirection=1;this.setOffsetAnimated(this.itemLength);return this},applyIndicator:function(b,a){return Ext.factory(b,Ext.Indicator,a)},updateIndicator:function(b){var a=this,c,d;if(b){if(a.getDirection()==='horizontal'){c=0;d=null}else {c=null;d=0}b.setRight(d).setBottom(c).setUi(a.getUi()).on({indicatortap:'onIndicatorTap',next:'next',previous:'previous',scope:a});a.insertFirst(b)}},onIndicatorTap:function(b,a){this.setActiveItem(a)},doDestroy:function(){var a=this,b=a.carouselItems.slice();a.carouselItems.length=0;Ext.destroy(b,a.getIndicator(),a.translatable);a.callParent()}});Ext.define('Ext.carousel.Infinite',{extend:Ext.carousel.Carousel,config:{indicator:null,maxItemIndex:Infinity,innerItemConfig:{}},applyIndicator:function(a){return},updateBufferSize:function(e){var c,d,b,a;this.callParent(arguments);c=e*2+1;d=this.innerItems.length;b=this.getInnerItemConfig();this.isItemsInitializing=!0;for(a=d;a<c;a++){this.doAdd(this.factoryItem(b))}this.isItemsInitializing=!1;this.rebuildInnerIndexes();this.refreshActiveItem()},updateMaxItemIndex:function(b,c){var a;if(c!==undefined){a=this.getActiveIndex();if(a>b){this.setActiveItem(b)}else {this.rebuildInnerIndexes(a);this.refreshActiveItem()}}},rebuildInnerIndexes:function(i){var c=this.innerIndexToItem,e=this.innerIdToIndex,g=this.innerItems.slice(),k=g.length,l=this.getBufferSize(),m=this.getMaxItemIndex(),h=[],a,j,f,d,b;if(i===undefined){this.innerIndexToItem=c={};this.innerIdToIndex=e={};for(a=0;a<k;a++){b=g[a];d=b.getId();e[d]=a;c[a]=b;this.fireEvent('itemindexchange',this,b,a,-1)}}else {for(a=i-l;a<=i+l;a++){if(a>=0&&a<=m){if(c.hasOwnProperty(a)){Ext.Array.remove(g,c[a]);continue}h.push(a)}}for(a=0,k=h.length;a<k;a++){b=g[a];d=b.getId();f=h[a];j=e[d];delete c[j];e[d]=f;c[f]=b;this.fireEvent('itemindexchange',this,b,f,j)}}},reset:function(){this.rebuildInnerIndexes();this.setActiveItem(0)},refreshItems:function(){var d=this.innerItems,f=this.innerIdToIndex,c,b,a,e;for(a=0,e=d.length;a<e;a++){b=d[a];c=f[b.getId()];this.fireEvent('itemindexchange',this,b,c,-1)}},getInnerItemIndex:function(b){var a=this.innerIdToIndex[b.getId()];return (typeof a==='number')?a:-1},getInnerItemAt:function(a){return this.innerIndexToItem[a]},applyActiveItem:function(a){var c,b;this.getItems();this.getBufferSize();c=this.getMaxItemIndex();b=this.getActiveIndex();if(typeof a==='number'){a=Math.max(0,Math.min(a,c));if(a===b){return}this.activeIndex=a;this.rebuildInnerIndexes(a);a=this.getInnerItemAt(a)}if(a){return this.callParent([a])}}});Ext.define('Ext.dataview.Location',{isDataViewLocation:!0,isLocation:!0,child:null,event:null,item:null,record:null,recordIndex:-1,sourceElement:null,view:null,viewIndex:-1,constructor:function(b,a){this.view=b;if(a!=null){this.attach(a)}},attach:function(a){var c=this,f=c.view,g=f.store,e,b,d;if(a.isEvent){c.event=a;d=a.target}if(a.isElement||a.nodeType===1){d=a}c.source=a;if(a.isWidget){d=a.getFocusEl();a=a.element}if(typeof a==='number'){b=f.itemFromRecord(a);c.recordIndex=a;e=g&&g.getAt(a)}else {if(a.isModel){e=a}else {e=f.mapToRecord(a)}b=f.mapToItem(a);c.recordIndex=g?g.indexOf(e):-1}if(b&&!d){d=b.isWidget?b.getFocusEl():b}c.child=b;c.record=e;if(e&&b){c.item=b}if(b){c.viewIndex=f.mapToViewIndex(b)}c.sourceElement=Ext.getDom(d)},clone:function(){var b=this,a=new this.self(b.view);a.event=b.event;a.sourceElement=b.sourceElement;a.item=b.item;a.record=b.record;a.recordIndex=b.recordIndex;a.viewIndex=b.viewIndex;return a},equals:function(a){return a&&a.view===this.view&&a.isDataViewLocation&&a.sourceElement===this.sourceElement},getFocusEl:function(c){var a=this.get(),b=null;if(a&&a.isWidget){a=a.element}if(a){b=(c==='dom'||c===!0)?Ext.getDom(a):Ext.get(a)}return b},get:function(){return this.child},isFirstDataItem:function(){return this.recordIndex===0},isFirstViewItem:function(){var a=this.view;if(a.infinite){return a.previous(this.child==null)}return this.viewIndex===0},isLastDataItem:function(){return this.recordIndex===this.view.store.getCount()-1},isLastViewItem:function(){var a=this.view;if(a.infinite){return a.next(this.child==null)}return this.viewIndex===a.innerItems.length-1},refresh:function(){var b=this,a=b.view,c=b.child,d=a.mapToItem(b.record)||(a.items.contains(c)?c:a.mapToItem(Math.min(b.viewIndex,a.dataItems.length-1)));return new this.self(a,d)},isFirst:function(){return this.view.isFirstItem(this.child)},isLast:function(){return this.view.isLastItem(this.child)},next:function(d){var b=this,a=b.nextItem(d),c=a&&a.get();while(a&&(!c||!c.el.isFocusable())){if(a.equals(b)){return b}a=a.nextItem(d);c=a&&a.get()}return a||b},previous:function(d){var b=this,a=b.previousItem(d),c=a&&a.get();while(a&&(!c||!c.el.isFocusable())){if(a.equals(b)){return b}a=a.previousItem(d);c=a&&a.get()}return a||b},nextItem:function(a){var b=this.view,d=this.child,e=(typeof a==='boolean')?a:!!(a&&a.wrap),c;if(b.isLastItem(d)){if(e){c=b.getFirstItem()}else {return null}}else {c=b.nextItem(d)}return new this.self(b,c)},previousItem:function(a){var b=this.view,d=this.child,e=(typeof a==='boolean')?a:!!(a&&a.wrap),c;if(b.isFirstItem(d)){if(e){c=b.getLastItem()}else {return null}}else {c=b.previousItem(d)}return new this.self(b,c)},privates:{as:function(a,b){if(a){if(a.isWidget){if(b==='cmp'){return a}a=a.el}if(b==='dom'){a=a.dom||a}else if(b==='el'){if(!a.dom){a=Ext.get(a)}}}return a||null}}});Ext.define('Ext.dataview.NavigationModel',{extend:Ext.Evented,alias:'navmodel.dataview',mixins:[Ext.mixin.Factoryable,Ext.mixin.Bufferable],factoryConfig:{type:'navmodel',defaultType:'dataview',instanceProp:'isNavigationModel'},isNavigationModel:!0,config:{view:null,disabled:!1},bufferableMethods:{handleChildTrigger:1},locationClass:'Ext.dataview.Location',setLocation:function(a,d){var c=this,j=c.getView(),k=c.location,l=d&&d.animation,i,b,f,h,g,e;if(a==null){return c.clearLocation()}if(!a.isDataViewLocation){a=this.createLocation(a)}e=a.view;if(!a.equals(k)){f=a.record;b=a.child;if(f&&!b){return e.ensureVisible(f,{animation:l}).then(function(){if(!c.destroyed){e.getNavigationModel().setLocation({record:f,column:a.column},d)}})}if(b&&c.floatingItems==null){b=b.isComponent?b.el:Ext.fly(b);h=b.up();g=b.getStyleValue('float');c.floatingItems=(j.getInline&&j.getInline())||b.isStyle('display','inline-block')||g==='left'||g==='right'||(h.isStyle('display','flex')&&h.isStyle('flex-direction','row'))}i=e.getScrollable();if(i){i.ensureVisible(a.sourceElement,{animation:d&&d.animation})}c.handleLocationChange(a,d);if(!c.destroyed){c.doFocus()}}},clearLocation:function(){var a=this,b;if(a.location){a.lastLocation=a.location;b=a.location.getFocusEl();if(b&&!b.destroyed){Ext.fly(b).removeCls(a.focusedCls);a.previousLocation=a.location}else {a.previousLocation=null}a.location=null}},getLocation:function(){return this.location},getPreviousLocation:function(){var a=this.previousLocation;if(a&&(!a.sourceElement||!a.sourceElement.destroyed)){a.refresh()}return a},disable:function(){this.setDisabled(!0)},enable:function(){this.setDisabled(!1)},privates:{createLocation:function(b,a){return Ext.create(this.locationClass,this.getView(),b,a)},getKeyNavCfg:function(b){var a=this;return {target:b.getFocusEl(),processEvent:a.processViewEvent,processEventScope:a,eventName:'keydown',defaultEventAction:'stopEvent',esc:a.onKeyEsc,f2:a.onKeyF2,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,space:a.onKeySpace,enter:a.onKeyEnter,tab:a.onKeyTab,A:{ctrl:!0,handler:a.onSelectAllKeyPress},scope:a}},updateView:function(b){var a=this,c=a.getKeyNavCfg(b);a.focusedCls=b.focusedCls;if(c){a.keyNav=new Ext.util.KeyNav(c)}a.viewListeners=b.on(a.getViewListeners(b))},getViewListeners:function(b){var a={scope:this};a[b.getTriggerEvent()]='onChildTrigger';return a},processViewEvent:function(a){var c=this.getLocation(),b;if(c&&a.keyCode){b=Ext.fly(a.target).component;a.navigationMode=b&&b.parent===this.getView();a.setCurrentTarget(c.sourceElement);if(!Ext.fly(a.target).isInputField()){return a}}},doFocus:function(a){a=a||this.location;if(a&&a.getFocusEl()){a.getFocusEl().focus()}},onFocusMove:function(b){var a=this.createLocation(b);if(!a.equals(this.location)){this.handleLocationChange(a,{event:b,navigate:!1})}},handleLocationChange:function(e,f){var b=this,d=b.location,g=b.getView(),c,a;b.previousLocation=d;if(d){b.lastLocation=d;c=d.getFocusEl();if(c&&!c.destroyed){Ext.fly(c).removeCls(b.focusedCls)}}b.location=e;c=e&&e.getFocusEl('dom');if(c){a=e.get();if(a){if(a.isWidget){a=a.el}else {a=Ext.get(a)}if(a&&c===a.dom){a.addCls(b.focusedCls)}if(f&&(f.event||f.select)&&f.navigate!==!1){b.onNavigate(f.event)}}}if(!g.destroyed){g.fireEvent('navigate',g,e,d)}},onKeyUp:function(b){var a=this;b.preventDefault();if(a.location){if(a.floatingItems){a.moveUp(b)}else {a.movePrevious({event:b})}}else {a.setLocation(0)}},onKeyDown:function(b){var a=this;b.preventDefault();if(a.location){if(a.floatingItems){a.moveDown(b)}else {a.moveNext({event:b})}}else {a.setLocation(0)}},onKeyLeft:function(a){a.preventDefault();this.movePrevious({event:a})},onKeyRight:function(a){a.preventDefault();this.moveNext({event:a})},onKeyF2:function(a){return !1},onKeyEsc:function(a){return !1},onKeyTab:function(a){return !this.location.actionable},onKeyPageDown:function(d){var a=this,b,c,e;d.preventDefault();if(!a.location.actionable&&!a.floatingItems){c=a.getView();e=(c.infinite?c.getItemTop(a.location.child):a.location.child.el.dom.offsetTop)+c.el.getClientRegion().height;b=a.createLocation(c.getItemFromPoint(0,e));if(!(b.child&&b.child.el.isFocusable())){b=b.previous()}a.setLocation(b,{event:d})}},onKeyPageUp:function(d){var a=this,b,c,e;d.preventDefault();if(!a.location.actionable&&!a.floatingItems){c=a.getView();e=(c.infinite?c.getItemTop(a.location.child):a.location.child.el.dom.offsetTop)-c.el.getClientRegion().height;b=a.createLocation(c.getItemFromPoint(0,e));if(!(b.child&&b.child.el.isFocusable())){b=b.next()}a.setLocation(b,{event:d})}},onKeyHome:function(a){this.setLocation(0,{event:a})},onKeyEnd:function(a){this.setLocation(this.getView().getStore().last(),{event:a})},onKeySpace:function(a){this.onNavigate(a)},onKeyEnter:function(a){a.stopEvent();this.getView()._onChildTap(a)},onSelectAllKeyPress:function(c){var b=this.getView(),a=b.getSelectable();if(a&&b.getStore().getCount()){a[a.allSelected?'deselectAll':'selectAll']();c.preventDefault();return !1}},moveUp:function(f){var c=this.getView(),e=this.location,d=this.location.sourceElement,b=Ext.fly(d).getAnchorXY('t'),a;b[1]-=(Ext.fly(d).getMargin('tb')+10);a=c.getItemFromPagePoint(b[0],b[1],!0);if(!a||!a.isFocusable()){a=e.isFirst()?c.getLastItem():c.getFirstItem()}if(a){this.setLocation(a,{event:f})}},moveDown:function(f){var c=this.getView(),d=this.location,e=d.sourceElement,b=Ext.fly(e).getAnchorXY('b'),a;b[1]+=Ext.fly(e).getMargin('tb')+10;a=c.getItemFromPagePoint(b[0],b[1]);if(!a||!a.isFocusable()){a=d.isLast()?c.getFirstItem():c.getLastItem()}if(a){this.setLocation(a,{event:f})}},moveNext:function(b){var a=this.getLocation();if(a){a=a.next(b);if(a){this.setLocation(a,b)}}},movePrevious:function(b){var a=this.getLocation();if(a){a=a.previous(b);if(a){this.setLocation(a,b)}}},onChildTrigger:function(b,a){var c=a.event,d=(c.type===((c.pointerType==='touch')?'tap':'touchstart'));if(d){this.handleChildTrigger(b,a)}else {this.doHandleChildTrigger(b,a)}},doHandleChildTrigger:function(e,a){var b=this.location,c=a.event,d=a.isGridLocation?'equalCell':'equals';if(b&&b[d](a)){this.onNavigate(c)}else {this.setLocation(a,{event:c})}},onNavigate:function(a){var b=this,c=b.location;if(!a){a=new Ext.event.Event({target:c.sourceElement})}Ext.apply(a,{navigationModel:b,from:b.previousLocation,to:c});b.getView().onNavigate(a)},updateDisabled:function(a){if(this.keyNav){if(a){this.keyNav.disable()}else {this.keyNav.enable()}}}}});Ext.define('Ext.dataview.selection.Selection',{mixins:[Ext.mixin.Factoryable],factoryConfig:{type:'selection',defaultType:'records',instanceProp:'isSelection'},isSelection:!0,config:{selectionModel:null},constructor:function(a){if(a.isDataView){a={selectionModel:a.getSelectionModel()}}this.initConfig(a)},destroy:function(){this.clear();this.callParent()},privates:{applySelectionModel:function(b){var a=b.getView();this.view=a.isGrid?a.ownerGrid:a;return b}}});Ext.define('Ext.dataview.selection.Rows',{extend:Ext.dataview.selection.Selection,alias:'selection.rows',isRows:!0,config:{selected:!0},clone:function(){return new this.self({selectionModel:this.getSelectionModel(),selected:new Ext.util.Spans().unstash(this.getSelected().stash())})},add:function(a,h,g){var b=this,e=b.view,c,f,d;if(a.length===1){a=a[0]}if(a.isEntity){d=a;a=e.mapToRecordIndex(a)}if(typeof a==='number'){a=[a,a+1]}if(a[0]>a[1]){f=a[1];a[1]=a[0];a[0]=f}b.lastSelected=a[1];if(!h){b.clear()}b.getSelected().add(a);for(c=a[0];c<a[1];c++){e.onItemSelect(c)}b.manageSelection(d);if(!g){b.getSelectionModel().fireSelectionChange()}},remove:function(a,f){var c=this,d=c.getSelectionModel(),e=c.view,b;if(!d.getDeselectable()&&c.getCount()===1){return}if(a.length===1){a=a[0]}if(a.isEntity){a=e.mapToRecordIndex(a)}if(typeof a==='number'){a=[a,a+1]}c.getSelected().remove(a);for(b=a[0];b<a[1];b++){e.onItemDeselect(b)}if(!f){d.fireSelectionChange()}},isSelected:function(c){var f=this,e=f.getSelected().spans,g=e.length,b,d,a;b=c.isEntity?f.view.getStore().indexOf(c):c;for(a=0;a<g;a++){d=e[a];if(b>=d[0]&&b<d[1]){return !0}}return !1},getCount:function(){return this.getSelected().getCount()},selectAll:function(){var a=this.view,c=a.dataItems,d=c.length,b;for(b=0;b<d;b++){a.onItemSelect(b)}this.getSelected().add(0,a.store.getTotalCount()||a.store.getCount());this.getSelectionModel().fireSelectionChange()},getFirstRowIndex:function(){var a=this.getSelected().spans;return a.length?this.getSelected().spans[0][0]:0},getLastRowIndex:function(){var a=this.getSelected().spans;return a.length?a[a.length-1][1]-1:0},eachRow:function(h,f){var i=this,c=i.getSelected().spans,g=c&&c.length,e,d,a,b;for(a=0;a<g;a++){d=c[a];for(b=d[0];e!==!1&&b<d[1];b++){e=h.call(this||f,b)}}},eachColumn:function(e,c){var b=this.view.getHeaderContainer().getVisibleColumns(),d=b.length,a;if(this.getCount()){for(a=0;a<d;a++){if(e.call(this||c,b[a],a)===!1){return}}}},eachCell:function(l,j){var c=this,m=c.getSelected(),k=c.view,e=k.ownerGrid.getVisibleColumnManager().getColumns(),h=c.dragRange,g,b,f,a,i,d=!1;if(e){g=e.length;a=new Ext.grid.Location(k);if(m){c.eachRow(function(f){a.setItem(f);for(b=0;b<g;b++){a.setColumn(e[b]);if(l.call(j||c,a,a.columnIndex,a.recordIndex)===!1){d=!0;return !1}}})}if(!d&&h!=null){c.view.getStore().getRange(h[0],h[1],{forRender:!1,callback:function(h){i=h.length;for(b=0;!d&&b<i;b++){a.setItem(h[b]);for(f=0;!d&&f<g;f++){a.setColumn(e[f]);if(l.call(j||c,a,a.columnIndex,a.recordIndex)===!1){d=!0}}}}})}}},privates:{applySelected:function(a){if(!a.isSpans){a=new Ext.util.Spans()}return a},compareRanges:function(a,b){return a[0]-b[0]},clear:function(e){var a=this,d=a.getSelectionModel(),c=a.view,g=c.dataItems,h=g.length,f=c.renderInfo.indexTop,b;for(b=0;b<h;b++){c.onItemDeselect(b+f)}a.getSelected().clear();if(!d.getDeselectable()&&a.lastSelected){a.add(a.lastSelected,!0,!0)}a.manageSelection(null);if(!e){d.fireSelectionChange()}},addRecordRange:function(a,b){return this.add([a,b+1],!0)},removeRecordRange:function(a,b){return this.remove([a,b+1])},isAllSelected:function(){var a=this.view.store;return this.getCount()===(a.getTotalCount()||a.getCount())},setRangeStart:function(a){if(a==null){this.dragRange=null}else {this.dragRange=[a,a];this.view.onItemSelect(a,!0)}},setRangeEnd:function(b){var d=this,f=d.dragRange||(d.dragRange=[0,b]),j=f[1],c=f[0],g=d.view,h=g.renderInfo,l=f[1]=b,e=[],i=!1,a,k;if(c>b){b=c;c=l}a=Math.max(Math.min(f[0],c,j,b),h.indexTop);k=Math.min(Math.max(f[1],c,j,b),h.indexBottom-1);for(;a<=k;a++){if(a<c||a>b){g.onItemDeselect(a);e[e.length?1:0]=a}else {g.onItemSelect(a,!0);i=!0}}if(i){d.addRange(!0)}if(e.length){d.removeRecordRange(e[0],e[1])}d.lastSelectedIndex=b},addRange:function(b){var a=this.dragRange;if(a){this.addRecordRange(a[0],a[1]);if(!b){this.dragRange=null}}},extendRange:function(a){this.addRecordRange(a.start,a.end)},reduceRange:function(a){this.removeRecordRange(a.start,a.end)},getRange:function(){var a=this.dragRange;if(a==null){return [0,-1]}if(a[0]<=a[1]){return a}return [a[1],a[0]]},getRangeSize:function(){var a=this.getRange();return a[1]-a[0]+1},onSelectionFinish:function(){var a=this,b=a.getContiguousSelection();if(b){a.getSelectionModel().onSelectionFinish(a,new Ext.grid.Location(a.view,{record:b[0],column:0}),new Ext.grid.Location(a.view,{record:b[1],column:a.view.getHeaderContainer().getVisibleColumns().length-1}))}else {a.getSelectionModel().onSelectionFinish(a)}},getContiguousSelection:function(){var b=this.getSelected(),c=this.view.store,a=b.spans;if(a===1&&c.getAt(a[0][0])&&c.getAt(a[0][1])){return b.spans[0]}},manageSelection:function(c){var b=this,f=b.view,d=f.getStore(),e=b.getSelectionModel(),a;if(!d.isVirtualStore||e.getMode()!=='single'){return}a=e.getSelected();if(a.length){b.adjustPageLock(d,a.getAt(0),-1)}if(c){a.splice.apply(a,[0,0,c]);b.adjustPageLock(d,c,1)}else {a.remove(a.getAt(0))}},adjustPageLock:function(a,c,d){var b;if(!a.isVirtualStore||!c){return}b=a.pageMap.getPageOf(a.indexOf(c));if(b){b.adjustLock('active',d)}}}});Ext.define('Ext.dataview.selection.Records',{extend:Ext.dataview.selection.Rows,alias:'selection.records',isRecords:!0,config:{selected:null},clone:function(){return new this.self({selectionModel:this.getSelectionModel(),selected:this.getSelected()})},addRowRange:function(a,b,d,c){if(a>b){var e=b;b=a;a=e}this.add(this.getSelectionModel().getStore().getRange(a,b-1),d,c)},removeRowRange:function(a,b,c){if(a>b){var d=b;b=a;a=d}this.remove(this.getSelectionModel().getStore().getRange(a,b-1),c)},add:function(b,d,e){b=Ext.Array.from(b);var g=this,a=g.getSelected(),c=a.getCount(),f=[d?c:0,d?0:c,b];a.suppressEvent=e;a.splice.apply(a,f);a.suppressEvent=!1},remove:function(b,c){b=Ext.Array.from(b);var a=this.getSelected();if(!this.getSelectionModel().getDeselectable()&&a.getCount()===1){Ext.Array.remove(b,a.first())}if(b.length){a.suppressEvent=c;a.remove(b);a.suppressEvent=!1}},isSelected:function(a){if(!a||!a.isModel){return !1}return !!this.getSelected().byInternalId.get(a.internalId)},getRecords:function(){return this.getSelected().getRange()},selectAll:function(b){var a=this.getSelected();a.suppressEvent=b;a.add(this.getSelectionModel().getStore().getRange());a.suppressEvent=!1},getFirstRowIndex:function(){return this.getCount()?this.view.getStore().indexOf(this.getSelected().first()):0},getLastRowIndex:function(){return this.getCount()?this.view.getStore().indexOf(this.getSelected().last()):-1},eachRow:function(c,b){var a=this.getSelected();if(a){a.each(c,b||this)}},eachColumn:function(e,c){var b=this.view.getHeaderContainer().getVisibleColumns(),d=b.length,a;if(this.getSelected().getCount()){for(a=0;a<d;a++){if(e.call(this||c,b[a],a)===!1){return}}}},eachCell:function(j,i){var d=this,f=d.getSelected(),h=d.view,c=h.getHeaderContainer().getVisibleColumns(),g,b,e,a;if(c){g=c.length;e=new Ext.grid.Location(h);if(f){f.each(function(f){a=e.clone({record:f});for(b=0;b<g;b++){a=a.cloneForColumn(c[b]);if(j.call(i||d,a,a.columnIndex,a.recordIndex)===!1){return !1}}})}}},beginUpdate:function(){this.getSelected().beginUpdate()},endUpdate:function(){this.getSelected().endUpdate()},privates:{clear:function(c){var a=this.getSelected(),b;if(a){b=[0,a.getCount()];if(!this.getSelectionModel().getDeselectable()){b[2]=a.last()}a.suppressEvent=c;a.splice.apply(a,b);a.suppressEvent=!1}},addRecordRange:function(a,b){var e=this,g=e.view,f=g.getStore(),d=b,c;if(a&&a.isGridLocation){a=a.recordIndex}if(b&&b.isGridLocation){b=d=b.recordIndex}if(a>b){b=a;a=d}c=f.getRange(a,b||a);e.getSelected().add(c)},removeRecordRange:function(a,b){var g=this,f=g.view,e=f.getStore(),c=b,d;if(a&&a.isGridLocation){a=a.recordIndex}if(b&&b.isGridLocation){b=c=b.recordIndex;c=b}if(a>b){b=a;a=c}d=e.getRange(a,b||a);this.getSelected().remove(d)},onSelectionFinish:function(){var a=this,b=a.getContiguousSelection();if(b){a.getSelectionModel().onSelectionFinish(a,new Ext.grid.Location(a.view,{record:b[0],column:0}),new Ext.grid.Location(a.view,{record:b[1],column:a.view.getHeaderContainer().getVisibleColumns().length-1}))}else {a.getSelectionModel().onSelectionFinish(a)}},getContiguousSelection:function(){var b=this.view.getStore(),a,c,d;a=Ext.Array.sort(this.getSelected().getRange(),function(a,c){return b.indexOf(a)-b.indexOf(c)});c=a.length;if(c){if(c===1&&b.indexOf(a[0])===-1){return !1}for(d=1;d<c;d++){if(b.indexOf(a[d])!==b.indexOf(a[d-1])+1){return !1}}return [b.indexOf(a[0]),b.indexOf(a[c-1])]}},applySelected:function(a){return a},refresh:function(){var e=this,d=e.view,a=e.getSelectionModel(),b=e.getSelected(),f=a.getLastSelected(),c;Ext.dataview.selection.Model.refreshCollection(b,a.getStore().getData(),a.ignoredFilters,d.beforeSelectionRefresh&&d.beforeSelectionRefresh.bind(d));c=b.indexOf(f);if(c===-1){a.setLastSelected(b.last())}else {a.setLastSelected(b.getAt(c))}}}});Ext.define('Ext.dataview.selection.Model',{extend:Ext.Evented,alias:'selmodel.dataview',mixins:[Ext.mixin.Factoryable],factoryConfig:{type:'selmodel',defaultType:'dataview',aliasPrefix:'selmodel.'},isSelectionModel:!0,config:{view:null,store:null,disabled:null,mode:'single',deselectable:!0,toggleOnClick:!0,lastSelected:null,selected:!0,selectedRecord:undefined,selection:{type:'records'}},modes:{single:!0,simple:!0,multi:!0},onNavigate:function(a){if(!this.getDisabled()){this.selectWithEvent(a.to.record,a)}},getSelectedRecords:function(){var a=this.getSelection();return a&&a.isRecords?a.getRecords():Ext.emptyArray},getStoreListeners:function(){return {add:'onSelectionStoreAdd',remove:'onSelectionStoreRemove',update:'onSelectionStoreUpdate',clear:{fn:'onSelectionStoreClear',priority:1000},load:'onSelectionStoreLoad',refresh:'refreshSelection',idchanged:'onIdChanged'}},applySelected:function(b,c){var a=this,e=a.getStore(),d={rootProperty:'data',extraKeys:{byInternalId:{rootProperty:!1,property:'internalId'}},sorters:[function(a,d){return e.indexOf(a)-e.indexOf(d)}],autoSort:!1};if(c){c.removeObserver(a);if(a.destroySelected){c.destroy();a.destroySelected=!1}}if(b&&b.isCollection){a.destroySelected=!1;b.setConfig(d)}else {a.destroySelected=!0;b=new Ext.util.Collection(Ext.apply(d,b))}a.observerPriority=1000;b.addObserver(a);return b},updateSelected:function(a){this.setSelectedRecord(a.last()||null)},applyMode:function(a){var b=this.getView(),c=b.getRenderTarget();a=a?a.toLowerCase():'single';c.toggleCls(b.multiSelectCls,a==='multi');return this.modes[a]?a:'single'},updateMode:function(b){var a=this.getSelection();if(b!=='multi'&&a.getCount()>1){a.add(this.getLastSelected(),!1)}},updateView:function(a){this.setStore(a?a.getStore():null)},applyStore:function(a){return a?Ext.data.StoreManager.lookup(a):null},updateStore:function(d,a){var b=this,c=Ext.apply({scope:b},b.getStoreListeners());if(a&&Ext.isObject(a)&&a.isStore){a.un(c)}if(d){d.on(c);if(a){b.refreshSelection()}}},selectByLocation:function(a){this.select(a.record)},selectAll:function(a){this.select(this.getStore().getRange(),!0,a)},deselectAll:function(b){var a=this.getSelected();a.suppressEvent=b;a.removeAll();a.suppressEvent=!1},applySelectedRecord:function(a){if(a===!1){a=null}return a},updateSelectedRecord:function(a){var b=this,c=b.getSelected(),d=c.getCount();if(a){if(c.last()!==a){if(b.getMode()==='single'){c.splice(0,d,a)}else {c.add(a)}}b.setLastSelected(a)}else {if(!b.isConfiguring&&d){b.deselectAll()}}b.getView().publishState('selection',a)},selectWithEvent:function(b,d){var a=this,c=a.getMode(),e=a.isSelected(b);if(c==='multi'){a.selectWithEventMulti(b,d,e)}else {if(e){if(a.getDeselectable()&&(c==='single'&&a.getToggleOnClick())||c==='simple'||d.ctrlKey){a.deselect(b)}}else {a.select(b,c==='simple')}}if(!d.shiftKey&&a.isSelected(b)){a.selectionStart=b}},selectWithEventMulti:function(b,e,f){var a=this,c=e.shiftKey,g=e.ctrlKey,d=c?a.selectionStart:null;if(c&&d){a.selectRange(d,b,g)}else {if(f){a.deselect(b)}else {a.select(b,!0)}}},selectRange:function(a,b,e){var c=this.getStore(),d;a=(typeof a==='number')?a:c.indexOf(a);b=(typeof b==='number')?b:c.indexOf(b);if(a>b){d=a;a=b;b=d}this.getSelection().addRowRange(a,b+1,e)},select:function(a,e,c){var b=this,d;if(b.getDisabled()){return}if(typeof a==="number"){a=[b.getStore().getAt(a)]}if(!a){return}if(b.getMode()==="single"&&a){d=a.length?a[0]:a;b.doSingleSelect(d,c)}else {b.doMultiSelect(a,e,c)}},doSingleSelect:function(b,a){this.doMultiSelect([b],!1,a)},doMultiSelect:function(a,c,b){if(a===null||this.getDisabled()){return}this.getSelection().add(a,c,b)},deselect:function(a,h){var d=this,e,f,g,b,c;if(d.getDisabled()){return}a=Ext.isArray(a)?a:[a];e=d.getSelection();f=d.getStore();g=a.length;for(b=0;b<g;b++){c=a[b];if(typeof c==='number'){a[b]=f.getAt(c)}}e.remove(a,h)},onCollectionRemove:function(b,c){var a=this,e=a.getView(),d=c.items;a.getSelection().allSelected=this.allSelected=!1;if(!c.next&&!c.replacement){a.setSelectedRecord(b.last()||null)}e.onItemDeselect(d,b.suppressEvent);if(!b.suppressEvent){a.fireSelectionChange(d,!1)}},onCollectionAdd:function(b,f){var a=this,d=a.getView(),e=a.getSelection(),c=f.items;if(d.destroyed){return}e.allSelected=this.allSelected=e.getCount()===d.getStore().getCount();a.setSelectedRecord(b.last()||null);d.onItemSelect(a.getMode()==='single'?c[0]:c,b.suppressEvent);if(!b.suppressEvent){a.fireSelectionChange(c,!0)}},fireSelectionChange:function(b,a){this.fireEvent('selectionchange',this.getView(),b,a)},getSelections:function(){if(this.getSelection().isRecords){return this.getSelected().getRange()}},isRowSelected:function(a){var c=this,b=c.getSelection();if(b&&(b.isRows||b.isRecords)){a=Ext.isNumber(a)?c.getStore().getAt(a):a;return b.isSelected(a)}return !1},isSelected:function(a){return this.getSelection().isSelected(a)},hasSelection:function(){return this.getSelection().getCount()>0},refreshSelection:function(){if(this.getSelection().isRecords){this.getSelection().refresh()}},onSelectionStoreRemove:function(c,b){var a=this.getSelection();if(a.isRecords){a.remove(b)}},onSelectionStoreClear:function(a){this.getSelection().clear()},getSelectionCount:function(){return this.getSelection().getCount()},destroy:function(){var a=this;a.setView(null);Ext.destroy(a.selection,a.destroySelected?a.selected:null)},onIdChanged:function(e,c,b,d){var a=this.getSelected();if(a){a.updateKey(c,b)}},onSelectionStoreAdd:Ext.emptyFn,onSelectionStoreLoad:Ext.emptyFn,onSelectionStoreUpdate:Ext.emptyFn,onItemSelect:Ext.emptyFn,onItemDeselect:Ext.emptyFn,onEditorKey:Ext.emptyFn,privates:{addIgnoredFilter:function(a){if(a){Ext.Array.include(this.ignoredFilters||(this.ignoredFilters=[]),a)}},removeIgnoredFilter:function(b){var a=this.ignoredFilters;if(a){Ext.Array.remove(a,b);if(!a.length){this.ignoredFilters=null}}},onSelectionFinish:Ext.privateFn,applySelection:function(a,b){if(b){if(b.type===a.type){b.setConfig(a);return b}Ext.destroy(b)}if(a){var c=this.getStore();a=Ext.Factory.selection(Ext.apply({selectionModel:this,type:(c&&c.isVirtualStore)?'rows':'records',selected:this.getSelected()},a))}return a}},statics:{refreshCollection:function(e,d,c,m){var n=d.getFilters().getFilterFn(),j,h=[],k=[],i,l,a,g,b,f;if(c){f=[];i=c.length;for(a=0;a<i;a++){if(!c[a].getDisabled()){f.push(c[a]);c[a].setDisabled(!0)}}if(f.length){d=d.getSource()||d}else {c=null}}if(e.getCount()){j=e.getRange();l=j.length;for(a=0;a<l;a++){g=j[a];b=d.get(d.getKey(g));if(b&&c&&!n(b)){b=null}if(b){if(b!==g){h.push(g);k.push(b)}}else {h.push(g)}}if(m){m(h,k)}e.suppressEvent=!0;e.splice(e.getCount(),h,k);e.suppressEvent=!1}if(f){i=f.length;for(a=0;a<i;a++){f[a].setDisabled(!1)}}}}});Ext.define('Ext.dataview.EmptyText',{extend:Ext.Component,xtype:'emptytext',classCls:Ext.baseCSSPrefix+'emptytext',inheritUi:!0,html:'No data to display',top:0,right:0,bottom:0,left:0});Ext.define('Ext.dataview.Abstract',{extend:Ext.Container,mixins:[Ext.mixin.ConfigProxy,Ext.mixin.ItemRippler],isDataView:!0,cachedConfig:{associatedData:null,deferEmptyText:!0,deselectOnContainerClick:!0,disableSelection:!1,emptyTextDefaults:{xtype:'emptytext'},emptyItemText:'\xa0',itemsFocusable:!0,itemTpl:'<div>{text:htmlEncode}</div>',loadingText:'Loading...',pressedDelay:100,scrollToTopOnRefresh:!0,storeEventListeners:{add:'onStoreAdd',beforeload:'onStoreBeforeLoad',clear:'onStoreClear',load:'onStoreLoad',refresh:'onStoreRefresh',remove:'onStoreRemove',update:'onStoreUpdate'},triggerEvent:'childtap',triggerCtEvent:'tap'},config:{itemButtonMode:!1,data:null,emptyState:null,emptyText:null,enableTextSelection:null,inline:null,itemCls:null,loadingHeight:null,markDirty:null,navigationModel:{type:'dataview'},selectable:!0},autoSize:null,publishes:{selection:1},twoWayBindable:{selection:1},eventedConfig:{store:undefined},proxyConfig:{selectable:{configs:['mode','deselectable','lastSelected','selected'],methods:['isSelected','select','selectAll','deselectAll','getSelections','hasSelection','getSelectionCount']}},emptyTextProperty:'html',restoreFocus:!0,refreshCounter:0,selectionModel:'dataview',defaultBindProperty:'store',focusable:!0,scrollable:!0,tabIndex:0,classCls:Ext.baseCSSPrefix+'dataview',focusedCls:Ext.baseCSSPrefix+'focused',hoveredCls:Ext.baseCSSPrefix+'hovered',inlineCls:Ext.baseCSSPrefix+'inline',noWrapCls:Ext.baseCSSPrefix+'nowrap',pressedCls:Ext.baseCSSPrefix+'pressed',scrollDockCls:Ext.baseCSSPrefix+'scrolldock',selectedCls:Ext.baseCSSPrefix+'selected',hasLoadedStore:!1,scrollDockedItems:null,storeListeners:null,_trueStore:null,beforeInitialize:function(a){this.dataItems=[];this.callParent([a])},initialize:function(){var a=this;a.generateSelectorFunctions();a.callParent();a.bodyElement.on({touchstart:'_onChildTouchStart',touchend:'_onChildTouchEnd',touchcancel:'_onChildTouchCancel',tap:'_onChildTap',tapcancel:'_onChildTapCancel',longpress:'_onChildLongPress',taphold:'_onChildTapHold',singletap:'_onChildSingleTap',doubletap:'_onChildDoubleTap',swipe:'_onChildSwipe',mouseover:'_onChildMouseOver',mouseout:'_onChildMouseOut',contextmenu:'_onChildContextMenu',delegate:a.eventDelegate,scope:a});if(Ext.scrollbar.width()){a.bodyElement.on('touchstart','_onContainerTouchStart',a)}a.on(a.getTriggerCtEvent(),'onContainerTrigger',a)},onRender:function(){var a=this;a.callParent();if(a.forceRefreshOnRender){a.runRefresh()}else {a.refresh()}},doDestroy:function(){var a=this;a.destroyAllRipples();a.clearPressedTimer();a.setStore(null);a.setNavigationModel(null);a.setSelectable(null);a.lastPressedLocation=null;a.callParent()},createEmptyText:function(b){var a=Ext.apply({},this.getEmptyTextDefaults());if(typeof b==='string'){a[this.emptyTextProperty]=b}else if(b){Ext.apply(a,b)}a.isEmptyText=a.hidden=!0;a.showInEmptyState=null;return a},ensureVisible:function(e,d){var c=this,a=c.ensureVisiblePlan(e,d),b;for(;;){if(!(b=a.steps.pop())){break}c[b](a)}return a.promise},gatherData:function(a,c){var d=this,b=a&&a.getData(d.associatedData);if(b){if(c===undefined){c=d.store.indexOf(a)}b=d.prepareData(b,c,a)}return b||null},getFirstDataItem:function(){return this.dataItems[0]||null},getFirstItem:function(){return this.getFastItems()[0]||null},getItemAt:function(a){var b=this.getFastItems();if(a<0){a+=b.length}return b[a]||null},getItemIndex:function(a){return this.mapToRecordIndex(a)},getItem:function(a){var c=null,b;if(a){b=a.isEntity?this.store.indexOf(a):a;if(b>-1){c=this.getItemAt(b)}}return c},getLastDataItem:function(){var a=this.dataItems;return a[a.length-1]||null},getLastItem:function(){var a=this.getFastItems();return a[a.length-1]},getScrollDockedItems:function(b){var a=this.scrollDockedItems;if(a){if(b){b=this.scrollDockAliases[b]||b;a=a[b].slice()}else {a=a.start.items.concat(a.end.items)}}return a||[]},isItemSelected:function(b){var a=this.mapToRecord(b);return a?this.isSelected(a):!1},isFirstItem:function(a){return Ext.getDom(a)===this.getFirstItem()},isFirstDataItem:function(a){return Ext.getDom(a)===this.getFirstDataItem()},isLastItem:function(a){return Ext.getDom(a)===this.getLastItem()},isLastDataItem:function(a){return Ext.getDom(a)===this.getLastDataItem()},mapToItem:function(a,f){var c=this,e=c.element,b,d;if(a&&a.isEvent){b=a.getTarget(c.itemSelector,e)}else if(a&&(a.isElement||a.nodeType===1)){b=Ext.fly(a).findParent(c.itemSelector,e)}else if(a&&a.isEntity){b=c.itemFromRecord(a)}else {if(a&&a.isComponent&&c.items.contains(a)){b=a}else {d=c.getFastItems();if(a<0){a+=d.length}b=d[a||0]}}if(b){b=c.itemAs(b,f||(c.isElementDataView?'el':'cmp'))}return b||null},mapToRecord:function(g){var d=this,a=g,f=d.element,e=d.store,b,c;if(a&&a.isEntity){if(e&&e.getById(a.id)===a){c=a}a=null}else if(a&&a.isEvent){a=a.getTarget(d.itemSelector,f)}else if(a&&(a.isElement||a.nodeType===1)){a=Ext.fly(a).findParent(d.itemSelector,f)}else if(typeof a==='number'){a=d.mapToItem(a)}if(a){b=a.isWidget?a.el:a;b=b.dom||b;if(d.itemSelector(b)){c=b.getAttribute('data-recordid');c=c&&e.getByInternalId(+c)}}return c||null},mapToRecordIndex:function(f,e){var d=this,c=d.mapToRecord(f),b=-1,a=d.store;if(c){if(e&&a.isGroupStore){a=a.getSource()}b=a.indexOf(c)}return b},mapToViewIndex:function(h,e){var d=this,f=-1,a=h,g=d.element,b=d.getFastItems(),c;if(typeof a==='number'){e=e||0;for(;a<b.length;++a){c=b[a];if(c.isWidget){c=c.el.dom}if(+c.getAttribute('data-recordindex')===a+e){f=a;break}}}else if(a){if(a.isEntity){a=d.itemFromRecord(a)}else if(a.isEvent){a=a.getTarget(d.itemSelector,g)}else if(a.isElement||a.nodeType===1){a=Ext.fly(a).findParent(d.itemSelector,g)}if(a&&b.length){if(b[0].isWidget){if(!a.isWidget){a=Ext.Component.from(a)}}else {a=a.nodeType?a:a.el.dom}f=Array.prototype.indexOf.call(b,a)}}return f},nextItem:function(c,b){var a=this.traverseItem(c,1);return b?this.itemAs(a,b):a},previousItem:function(c,b){var a=this.traverseItem(c,-1);return b?this.itemAs(a,b):a},prepareData:function(a,c,b){return a},refresh:function(){this.whenVisible('runRefresh')},setLocation:function(a,b){return this.getNavigationModel().setLocation(a,b)},onFocusEnter:function(b){var a=this;a.callParent([b]);if(!(b.within(a.getRenderTarget())||b.target===a.getFocusEl().dom)){return}return a.onInnerFocusEnter(b)},onInnerFocusEnter:function(c){var b=this,d=b.getNavigationModel(),a,e;if(d.lastLocation==='scrollbar'){if(c.relatedTarget){c.relatedTarget.focus()}return}if(c.target===b.getFocusEl().dom){a=b.restoreFocus&&d.getPreviousLocation();if(a){a=a.refresh()}else if(c.backwards){a=b.getLastDataItem()}else {a=b.getFirstDataItem()}}else {a=c}b.toggleChildrenTabbability(!1);e=b.getFastItems().length;if(e){if(a.isWidget){a=a.getFocusEl()||a.el}d.setLocation(a,{event:c,navigate:!1})}if(d.getLocation()){b.el.dom.setAttribute('tabIndex',-1)}},onFocusLeave:function(c){var a=this,b=a.getNavigationModel();if(b.getLocation()){b.setLocation(null,{event:c});a.el.dom.setAttribute('tabIndex',0)}a.callParent([c])},onInnerFocusLeave:function(a){this.getNavigationModel().setLocation(null,{event:a})},onFocusMove:function(a){var b=this,d=b.el,c=b.getRenderTarget(),f=a.event.toComponent,e=a.event.fromComponent;if(!d.contains(a.toElement)){return b.callParent([a])}if(d.contains(a.toElement)&&!c.contains(a.toElement)&&c.contains(a.fromElement)){return b.onInnerFocusLeave(a.event)}if(d.contains(a.fromElement)&&!c.contains(a.fromElement)&&c.contains(a.toElement)){return b.onInnerFocusEnter(a.event)}if(!c.contains(a.fromElement)&&!c.contains(a.toElement)){return b.callParent([a])}if((f===b||f.up('dataview,componentdataview')===b)&&(e===b||e.up('dataview,componentdataview')===b)){b.getNavigationModel().onFocusMove(a.event)}return b.callParent([a])},onItemAdd:function(c,f){var b=this,a=c.scrollDock,e=b.scrollDockCls,d;if(!c.$dataItem&&c.isInner){if(a!==null){a=a||'end'}if(a){if(!(d=b.scrollDockedItems)){b.scrollDockedItems=d={start:{items:[],height:0,filter:b.filterScrollDockStart,name:a},end:{items:[],height:0,filter:b.filterScrollDockEnd,name:a}}}a=b.scrollDockAliases[a]||a;c.scrollDock=a;a=d[a];a.items=b.innerItems.filter(a.filter);if(c.showInEmptyState===undefined){c.showInEmptyState=!1}c.addCls(e+' '+e+'-'+a.name);if(b.getItemsFocusable()){c.el.set({tabIndex:-1})}if(b.addScrollDockedItem){b.addScrollDockedItem(c)}}}b.callParent([c,f])},onItemDeselect:function(b,c){var a=this;if(!a.isConfiguring&&!a.destroyed){if(c){a.setItemSelection(b,!1)}else {a.fireEventedAction('deselect',[a,b],'setItemSelection',a,[b,!1])}}},onItemSelect:function(b,c){var a=this;if(c){a.setItemSelection(b,!0)}else {a.fireEventedAction('select',[a,b],'setItemSelection',a,[b,!0])}},onChildTouchStart:function(a){var b=this,g=a.item,h=a.event,f=b.hasListeners,e=b.getNavigationModel().getLocation(),i=e&&e.actionable,c,d;if(!a.actionable&&!(a.equalCell||a.equals)(e)){b.rippleItem(g,h)}c='beforechildtouchstart';d=f[c]&&b.fireEvent(c,b,a)===!1;if(!d){c='beforeitemtouchstart';d=f[c]&&b.fireEvent(c,b,a.viewIndex,g,a.record,h)===!1}if(!d){if(!i){b.doChildTouchStart(a)}b.fireChildEvent('touchstart',a)}},onChildTouchEnd:function(a){var b=this,d=a.item,c=b.getNavigationModel().getLocation(),e=a.event;if(!(c&&c.actionable)){b.rippleItem(d,e)}b.clearPressedCls('touchend',a)},onChildTouchCancel:function(a){this.clearPressedCls('touchcancel',a)},onChildTouchMove:function(a){this.fireChildEvent('touchmove',a)},onChildTap:function(a){this.fireChildEvent('tap',a)},onChildTapCancel:function(b){var c=this,a=c.getItemButtonMode();if(!a){this.clearPressedCls('tapcancel',b)}},onChildContextMenu:function(a){this.fireChildEvent('contextmenu',a)},onChildLongPress:function(a){this.fireChildEvent('longpress',a)},onChildTapHold:function(a){this.fireChildEvent('taphold',a)},onChildSingleTap:function(a){this.fireChildEvent('singletap',a)},onChildDoubleTap:function(a){this.fireChildEvent('doubletap',a)},onChildSwipe:function(a){this.fireChildEvent('swipe',a)},onChildMouseOver:function(b){var a=this,c=b.item;if(a.mouseOverItem!==c){a.mouseOverItem=c;if(a.doHover){a.toggleHoverCls(!0)}a.fireChildEvent('mouseenter',b)}},onChildMouseOut:function(b){var a=this,d=a.getItemButtonMode(),c=b.item,e=b.event.getRelatedTarget(a.itemSelector);if(c&&c.dom!==e){if(a.doHover){a.toggleHoverCls(!1)}if(!d){this.clearPressedCls('mouseleave',b)}else {a.fireChildEvent('mouseleave',b)}a.mouseOverItem=null}},onNavigate:function(c){var a=this,b=!a.destroyed&&a.getSelectable();if(b&&a.shouldSelectItem(c)){b.onNavigate(c)}},shouldSelectItem:function(a){var e=this,c=e.getSelectable(),b=a.stopSelection||!c||c.getDisabled()||(a.isNavKeyPress()&&a.ctrlKey),d=!b&&a.getTarget('.'+Ext.baseCSSPrefix+'item-no-select,.'+Ext.baseCSSPrefix+'item-no-tap',this.element);if(d){b=e.el.contains(d)}return !b},onStoreAdd:function(){this.syncEmptyState()},onStoreBeforeLoad:function(){this.handleBeforeLoad()},onStoreClear:function(){this.doClear()},onStoreLoad:function(){this.hasLoadedStore=!0;this.clearMask();this.syncEmptyState()},onStoreRefresh:function(){this.refresh()},onStoreRemove:function(){this.syncEmptyState()},onStoreUpdate:function(f,b,g,e,c){var a=this,d;if(!c||!(c.indexChanged||c.filtered)){d=a.itemFromRecord(b);if(d){a.syncItemRecord({item:d,modified:a.indexModifiedFields(e),record:b})}}if(a.isSelected(b)){a.setItemSelection(b,!0)}},updateAssociatedData:function(a){this.associatedData={associated:a}},updateData:function(c){var a=this,b=a.store;if(!b){a.settingStoreFromData=!0;a.setStore({data:c,autoDestroy:!0});a.settingStoreFromData=!1}else {b.loadData(c)}},updateDisableSelection:function(a){var b=this.getRenderTarget();b.toggleCls(this.showSelectionCls,!a)},updateEmptyText:function(a){var b=this,c=a,d=b.emptyTextCmp;if(d){if(!a||typeof a==='string'){c={};c[b.emptyTextProperty]=a||'\xa0'}d.setConfig(c)}if(!b.isConfiguring){b.syncEmptyState()}},updateEnableTextSelection:function(a){this.setUserSelectable({bodyElement:!!a})},updateInline:function(b){var a=this,c=b&&b.wrap===!1;a.toggleCls(a.inlineCls,!!b);if(Ext.isEdge&&c){a.el.measure('w')}a.toggleCls(a.noWrapCls,c)},updateItemCls:function(d,e){if(!this.isConfiguring){var c=this.dataItems,f=c.length,b,a;for(b=0;b<f;b++){a=c[b];a=a.isWidget?a.el:Ext.fly(a);a.replaceCls(e,d)}}},applyItemTpl:function(a){return Ext.XTemplate.get(a)},updateItemTpl:function(){if(!this.isConfiguring){this.refresh()}},updateMarkDirty:function(b){var d=this.dataItems,a,e,c;b=!!b;for(a=0,e=d.length;a<e;a++){c=d[a];(c.el||Ext.fly(c)).toggleCls(this.markDirtyCls,b)}},updateMasked:function(c){var a=this,b=a.getLoadingHeight();if(c){if(b&&b>a.el.getHeight()){a.hasLoadingHeight=!0;a.oldMinHeight=a.getMinHeight();a.setMinHeight(b)}}else {if(!a.destroying&&a.hasLoadingHeight){a.setMinHeight(a.oldMinHeight);delete a.hasLoadingHeight}}},applySelectable:function(a,c){var b=this,d={type:b.selectionModel,view:b},e=b.selection;if(a===!1){a={disabled:!0}}if(a){if(typeof a==='string'){a={type:b.selectionModel,mode:a.toLowerCase(),view:b}}else if(a.isSelectionModel){return a.setConfig(d)}else {a=Ext.apply(d,a)}if(c){a=c.setConfig(a)}else {a=Ext.Factory.selmodel(b.mergeProxiedConfigs('selectable',a))}if(e){delete b.selection;a.select(e)}}return a},applyStore:function(a){var b=a?Ext.data.StoreManager.lookup(a):null;this.store=this._trueStore=b;return b},updateStore:function(b,c){var a=this,e=a.autoMask,d;if(c){if(!c.destroyed){if(c.getAutoDestroy()){c.destroy()}else {Ext.destroy(a.storeListeners)}}a.dataRange=a.storeListeners=Ext.destroy(a.dataRange);if(!a.destroying&&!a.destroyed&&!b){a.doClear()}}if(b){if(a.destroying){return}a.attachStoreEvents(b,Ext.apply({scope:a,destroyable:!0},a.getStoreEventListeners()));if(b.isLoaded()){a.hasLoadedStore=!0}d=!b.isTreeStore&&b.hasPendingLoad();a.bindStore(b);if(a.initialized){a.refresh()}}if(!a.isConfiguring||a.settingStoreFromData){a.getSelectable().setStore(b)}if(e&&!d){a.setMasked(!1);a.autoMask=!1}else if(!e&&d){a.handleBeforeLoad()}},updateHidden:function(b,a){this.callParent([b,a]);this.destroyAllRipples()},privates:{associatedData:!0,doHover:!0,showSelectionCls:Ext.baseCSSPrefix+'show-selection',multiSelectCls:Ext.baseCSSPrefix+'multi-select',markDirtyCls:Ext.baseCSSPrefix+'mark-dirty',scrollbarSelector:'.'+Ext.baseCSSPrefix+'scrollbar',scrollDockAliases:{top:'start',bottom:'end'},attachStoreEvents:function(b,a){this.storeListeners=b.on(a)},createLocation:function(){var a=this.getNavigationModel();return a.createLocation.apply(a,arguments)},getSelection:function(){return this.getSelectable().getSelectedRecord()},setSelection:function(a){return this.getSelectable().setSelectedRecord(a)},generateSelectorFunctions:function(){var a=this.getRenderTarget(),b=this.bodyElement;this.eventDelegate=this.itemSelector=function(c){return c&&(c.parentNode===b.dom||c.parentNode===a.dom)}},bindStore:function(a){this._trueStore=a;this.dataRange=a.createActiveRange()},clearMask:function(){this.setMasked(!1);this.autoMask=!1},clearPressedCls:function(f,b){var c=this,e=b.record,a=b.child,d;c.clearPressedTimer();if(e&&a){d=a.isWidget?a.element:Ext.fly(a);d.removeCls(c.pressedCls)}c.fireChildEvent(f,b)},clearPressedTimer:function(){var a=this.pressedTimeout;if(a){Ext.undefer(a);delete this.pressedTimeout}},doAddPressedCls:function(c){var b=this,a=b.itemFromRecord(c);if(a){a=a.isWidget?a.element:Ext.fly(a);a.addCls(b.pressedCls)}},doClear:function(){this.syncEmptyState()},doChildTouchStart:function(b){var a=this,c=b.record,e=a.getItemButtonMode(),d=a.getPressedDelay();a.clearPressedTimer();if(c){if(d>0){a.pressedTimeout=Ext.defer(a.doAddPressedCls,d,a,[c])}else {a.doAddPressedCls(c)}if(e){a.lastPressedLocation=b;Ext.GlobalEvents.setPressedComponent(a,b)}}},onRelease:function(){var a=this;if(a.lastPressedLocation){a.clearPressedCls('release',a.lastPressedLocation)}a.lastPressedLocation=null},ensureVisiblePlan:function(b,a){var d=this.store,c;if(b.record){a=Ext.apply({},b);b=a.record;delete a.record}else {a=Ext.apply({},a)}if(b.isEntity){c=d.indexOf(b)}else if(typeof b==='number'){c=b;b=d.getAt(b)}a.record=b;a.recordIndex=c;a.animation=a.animation||a.animate;a.async=!!a.animation;a.steps=[];if(c<0||c>=d.getCount()){a.promise=Ext.Deferred.getCachedRejected()}else {a.steps.push('ensureVisibleFocus','ensureVisibleSelect','ensureVisiblePrep')}return a},ensureVisibleFocus:function(a){if(a.focus){var c=this,b=c.isGrid;if(b&&!('column' in a)){a.column=0}if(a.async){a.promise=a.promise.then(function(d){c.getNavigationModel().setLocation(b?a:a.record);return d})}else {c.getNavigationModel().setLocation(b?a:a.record)}}},ensureVisiblePrep:function(c){var e=this,d=e.dataRange,f=function(){delete d.goto;if(a){d.goto(a[0],a[1])}},a,b;if(c.async){d.goto=function(b,d){if(a){a[0]=b;a[1]=d}else {a=[b,d]}};b=e.ensureVisibleScroll(c);b=b.then(function(a){f();return a},function(a){f();throw a})}else {b=e.ensureVisibleScroll(c)}c.promise=b},ensureVisibleScroll:function(a){var b=a.item||(a.item=this.itemFromRecord(a.recIndex));return this.getScrollable().ensureVisbile(b.el,{animation:a.animation})},ensureVisibleSelect:function(a){if(a.select){var d=this,c=d.getSelectable(),b;if(a.async){a.promise=a.promise.then(function(e){if(a.column){b=d.createLocation(a);c.selectCells(b,b)}else {c.select(a.record)}return e})}else {if(a.column){b=d.createLocation(a);c.selectCells(b,b)}else {c.select(a.record)}}}},filterScrollDockStart:function(b){var a=b.scrollDock;return a==='start'||a==='top'},filterScrollDockEnd:function(b){var a=b.scrollDock;return a==='end'||a==='bottom'},findTailItem:function(c){var h=this,b=c?h.innerItems:h.items.items,g=-1,f=null,a,e,d;for(a=b.length;a-->0;){e=b[a];d=e.scrollDock;if(d==='end'){f=b[g=a]}else {break}}return c?f:g},fireChildEvent:function(f,a){var b=this,c='item'+f,e='child'+f,d=b.hasListeners;if(d[e]){b.fireEvent(e,b,a)}if(d[c]&&a.record){b.fireEvent(c,b,a.viewIndex,a.item,a.record,a.event)}},getEmptyTextCmp:function(){var a=this,b=a.emptyTextCmp;if(!b){a.emptyTextCmp=b=a.add(a.createEmptyText(a.getEmptyText()))}return b},getRecordIndexFromPoint:function(b,c){var a=this.getItemFromPoint(b,c);return a?this.mapToRecordIndex(a):-1},getItemFromPoint:function(f,g){var a=this,d=a.getScrollable(),b=d.getPosition(),c=d.getSize(),e=a.getScrollerTarget().getXY();return a.getItemFromPagePoint(Math.max(Math.min(f,c.x),0)+e[0]-b.x,Math.max(Math.min(g,c.y),0)+e[1]-b.y)},getItemFromPagePoint:function(h,i){var d=this.getFastItems(),g=d.length,f=new Ext.util.Point(h,i),e=null,b,a,c;for(b=0;b<g;b++){a=d[b];c=a.isWidget?a.element:Ext.fly(a);if(c.getRegion().contains(f)){e=a.isWidget?a:Ext.get(c);break}}return e},handleBeforeLoad:function(){var a=this,b=a.getLoadingText();if(b){a.autoMask=!0;a.setMasked({xtype:'loadmask',message:b})}a.hideEmptyText()},hideEmptyText:function(){var a=this.emptyTextCmp;if(a){a.hide()}},indexModifiedFields:function(a){return a},itemAs:function(c,b){var a=c;if(typeof a==='number'){a=null}else if(a){if(b==='cmp'){if(!a.isWidget){a=Ext.getCmp(a.id)}}else {if(a.isWidget){a=a.el}if(a){if(a.isElement){if(b==='dom'){a=a.dom}}else if(b==='el'){a=Ext.fly(a)}}}}return a},itemFromRecord:function(a){var b=a.isEntity?this.store.indexOf(a):a;return ((b>-1)&&this.dataItems[b])||null},onContainerTrigger:function(b){var a=this;if(b.target===a.element.dom){if(a.getDeselectOnContainerClick()&&a.store){a.getSelectable().deselectAll()}}},runRefresh:function(){var a=this,c=a.store,d=a.getScrollToTopOnRefresh(),b=!d&&a.getScrollable(),e=b&&b.getMaxPosition().y;a.syncEmptyState();if(c&&!a.isConfiguring&&(c.isTreeStore||!c.hasPendingLoad())){a.fireEventedAction('refresh',[a],'doRefresh',a,[d]);if(b&&b.getMaxPosition().y<e){b.refresh()}}},saveFocusState:function(){var b=this,f=b.getNavigationModel(),e=f.location,g,c,d,a;if(e){c=e.record;g=e.viewIndex;return function(){d=b.getFastItems().length;if(d){if(c){a=b.mapToItem(c)}if(!a){a=b.mapToItem(Math.min(g||0,d-1))}f.setLocation(null);f.setLocation(a)}}}return Ext.emptyFn},setItemHidden:function(a,b){if(b){if(!a.$hidden){a.hide();a.$hidden=!0}}else if(a.$hidden){a.$hidden=!1;a.show()}},setItemSelection:function(c,j){c=Ext.Array.from(c);var b=this,k=c.length,g=b.pressedCls,f=b.selectedCls,h=g,d,i,a,e;if(!j){h=[g,f]}else {e=f}if(!b.isConfiguring&&!b.destroyed){for(d=0;d<k;d++){i=c[d];a=b.itemFromRecord(i);if(a){a=a.isWidget?a.element:Ext.fly(a);a.removeCls(h);if(e){a.addCls(e)}}}}},shouldRippleItem:function(a,c){var b=this.getDisableSelection();if(!b&&this.isItemSelected(a)){return !1}return this.mixins.itemrippler.shouldRippleItem.call(this,a,c)},syncEmptyState:function(){var a=this,c=a.store,d=!c||!c.getCount()&&a.getEmptyText(),b=a.emptyTextCmp;if(!d){if(b){b.hide()}}else if((a.hasLoadedStore||!a.getDeferEmptyText())&&!(c&&c.hasPendingLoad())){b=b||a.getEmptyTextCmp();b.show()}a.setEmptyState(d);return d},toggleChildrenTabbability:function(b){var a=this.getRenderTarget();if(b){a.restoreTabbableState({skipSelf:!0})}else {a.saveTabbableState({skipSelf:!0,includeSaved:!1})}},toggleHoverCls:function(b){var a=this.mouseOverItem;if(a&&!a.destroyed){a.toggleCls(this.hoveredCls,b)}},_onChildEvent:function(d,e){var b=this,c=b.lastPressedLocation,a=b.createLocation(e);if(a.child){a.pressing=!!(c&&c.child===a.child);b[d](a)}return a},_onChildTouchStart:function(c){var a=this._onChildEvent('onChildTouchStart',c).child,b=a&&(a.element||Ext.get(a));if(b){b.on('touchmove','_onChildTouchMove',this)}},_onChildTouchMove:function(a){this._onChildEvent('onChildTouchMove',a)},_onChildTouchEnd:function(c){var a=this._onChildEvent('onChildTouchEnd',c).child,b=a&&(a.element||Ext.get(a));if(b){b.un('touchmove','_onChildTouchMove',this)}},_onChildTouchCancel:function(c){var a=this._onChildEvent('onChildTouchCancel',c).child,b=a&&(a.element||Ext.get(a));if(b){b.un('touchmove','_onChildTouchMove',this)}},_onChildTap:function(a){var b=a.getTarget('.'+Ext.baseCSSPrefix+'item-no-tap',this.element);if(!b){this._onChildEvent('onChildTap',a)}},_onChildTapCancel:function(a){this._onChildEvent('onChildTapCancel',a)},_onChildContextMenu:function(a){this._onChildEvent('onChildContextMenu',a)},_onChildLongPress:function(a){this._onChildEvent('onChildLongPress',a)},_onChildTapHold:function(a){this._onChildEvent('onChildTapHold',a)},_onChildSingleTap:function(a){this._onChildEvent('onChildSingleTap',a)},_onChildDoubleTap:function(a){this._onChildEvent('onChildDoubleTap',a)},_onChildSwipe:function(a){this._onChildEvent('onChildSwipe',a)},_onChildMouseOver:function(a){var b=a.getRelatedTarget(this.itemSelector),c=a.getTarget(this.itemSelector);if(c!==b){this._onChildEvent('onChildMouseOver',a)}},_onChildMouseOut:function(a){var c=a.getRelatedTarget(this.itemSelector),b=a.getTarget(this.itemSelector);if(c!==b||!a.getRelatedTarget(this.eventDelegate)){this._onChildEvent('onChildMouseOut',a)}},_onContainerTouchStart:function(a){var b=this,c;if(a.getTarget(b.scrollbarSelector)){a.preventDefault();c=!0}else if(!a.getTarget(b.itemSelector)){a.preventDefault();if(!b.bodyElement.getClientRegion().contains(a.getPoint())){c=!0}}if(c){b.getNavigationModel().lastLocation='scrollbar'}},setupChildEvent:Ext.privateFn,updateEmptyState:function(f){var g=this,h=g.items.items,d,c,e,a,b;for(e=0;e<h.length;++e){a=h[e];d=a.showInEmptyState;c=b=!1;if(d===!1){c=!(b=!f)}else if(d){if(typeof d==='function'){c=!(b=a.showInEmptyState(f));if(b==null){continue}}else {c=!(b=f)}}if(c){if(a.isInner){g.setItemHidden(a,!0)}else {a.hide()}}else if(b){if(a.isInner){g.setItemHidden(a,!1)}else {a.show()}}}},applyNavigationModel:function(a){if(a){if(typeof a==='string'){a={type:a}}a=Ext.Factory.navmodel(Ext.apply({view:this},a))}return a},updateNavigationModel:function(b,a){Ext.destroy(a)},getUseComponents:function(){return this.isComponentDataView}}});Ext.define('Ext.dataview.GenericItem',{mixinId:'dataviewitem',isDataViewItem:!0,config:{innerCls:null,contentCls:null,recordIndex:null},updateRecordIndex:function(a){this.el.dom.setAttribute('data-recordindex',a)},getDataview:function(){return this.parent},updateInnerCls:function(a,b){this.innerElement.replaceCls(b,a)},updateContentCls:function(a,b){this.getInnerHtmlElement().replaceCls(b,a)},privates:{$dirty:!1,dirtyCls:Ext.baseCSSPrefix+'dirty',augmentToolHandler:function(c,a){var b=this;a[1]={event:a.pop(),item:b,list:b.parent,record:b.getRecord(),tool:a[1]}},handleEmptyText:function(b){var a;if(!b){a=this.parent;if(a&&a.getEmptyItemText){b=a.getEmptyItemText()}}return b},syncDirty:function(c){var a=this,b=c?c.dirty:!1;if(b!==a.$dirty){a.toggleCls(a.dirtyCls,b);a.$dirty=b}}}});Ext.define('Ext.dataview.DataItem',function(a){return {extend:Ext.Container,alternateClassName:'Ext.dataview.component.DataItem',xtype:'dataitem',mixins:[Ext.dataview.GenericItem],config:{itemCls:null,dataMap:{cached:!0,$value:null}},html:'\xa0',classCls:Ext.baseCSSPrefix+'dataitem',inheritUi:!0,autoSize:null,defaultType:'component',referenceHolder:!0,template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el',children:[{reference:'innerElement',cls:Ext.baseCSSPrefix+'inner-el',uiCls:'inner-el'}]}],updateItemCls:function(b,c){this.el.replaceCls(c,b)},updateRecord:function(d){var b=this,c,g,f,e;if(b.destroying){return}e=b.getViewModel();if(e){e.setData({record:d})}c=b.getDataMap();g=b.getTpl();if(c){a.executeDataMap(d,b,c)}b.syncDirty(d);if(g||!c||b.hasListeners.updatedata){f=b.parent.gatherData(d);if(g){b.updateData(f)}if(b.hasListeners.updatedata){b.fireEvent('updatedata',b,f)}}},updateHtml:function(c,b){this.callParent([this.handleEmptyText(c),b])},privates:{applyDataMap:function(b){return a.parseDataMap(b)},getRenderTarget:function(){return this.innerElement},statics:{assignDataToItem:function(m,i,h,l){var k=Ext.Config.map,j,e,c,f,d,g,b;for(d in h){g=l?d:((j=k[d])&&j.names.set);if(!i[g]){continue}e=h[d];b=m;for(c=0,f=e.length;b&&c<f;++c){b=b.interpret(e[c])}i[g]((c<f)?null:b)}},executeDataMap:function(h,d,g){var b,e,c,f;for(b in g){if(!(f=g[b])){continue}e=!1;if(!(c=(b==='#')?d:d.lookup(b))){if(typeof d[b]==='function'){c=d[b]();e=!0}if(!c){continue}}a.assignDataToItem(h,c,f,e)}},parseDataMap:function(e){var g={},f,b,c,d;for(c in e){g[c]=f={};b=e[c];for(d in b){f[d]=b[d].split('.')}}return g}}}}});Ext.define('Ext.dataview.Component',{extend:Ext.dataview.Abstract,xtype:'componentdataview',isComponentDataView:!0,config:{itemInnerCls:null,itemConfig:{xtype:'dataitem'},itemContentCls:null,itemDataMap:null,maxItemCache:20,striped:null,itemCount:0},firstCls:Ext.baseCSSPrefix+'first',lastCls:Ext.baseCSSPrefix+'last',oddCls:Ext.baseCSSPrefix+'odd',beforeInitialize:function(a){this.itemCache={max:0,unused:[]};this.callParent([a])},isFirstItem:function(a){return a===this.getFirstItem()},isFirstDataItem:function(a){return a===this.getFirstDataItem()},isLastItem:function(a){return a===this.getLastItem()},isLastDataItem:function(a){return a===this.getLastDataItem()},doDestroy:function(){Ext.destroy(this.itemCache.unused,this.dataRange);this.callParent()},onRender:function(){var a=this,b=a.getItemConfig(),c=b.viewModel;if(c){a.hasItemVm=!0;b.viewModel=Ext.applyIf({scheduler:null},c);if(!a.lookupViewModel()){a.setViewModel(!0)}}a.callParent()},getViewItems:function(){return this.getInnerItems().slice()},onStoreAdd:function(c,d,b){var a=this;a.callParent(arguments);a.setItemCount(c.getCount());a.syncItemRange(a.getStoreChangeSyncIndex(b))},onStoreRemove:function(h,g,e){var a=this,b=g.length,d=a.dataItems.splice(e,b),f=a.getItemCount(),c;a.callParent(arguments);if(!d.length){return}for(c=b;c-->0;){a.removeDataItem(d[c])}a.setItemCount(f-b);a.syncItemRange(a.getStoreChangeSyncIndex(e))},updateItemInnerCls:function(d){if(!this.isConfiguring){var c=this.dataItems,e=c.length,a,b;for(a=0;a<e;a++){b=c[a];if(b.setInnerCls){b.setInnerCls(d)}}}},applyItemConfig:function(a,b){a=a||{};if(b&&!a.xtype&&!a.xclass){var d=b.xtype,c=b.xclass;if(d||c){a=Ext.apply({},a);a[c?'xclass':'xtype']=c||d}}return a},updateItemConfig:function(){if(!this.isConfiguring){this.clearItems();this.refresh()}},updateItemContentCls:function(d){if(!this.isConfiguring){var c=this.dataItems,e=c.length,a,b;for(a=0;a<e;a++){b=c[a];if(b.setContentCls){b.setContentCls(d)}}}},applyItemDataMap:function(a){return Ext.dataview.DataItem.parseDataMap(a)},updateMaxItemCache:function(a){this.itemCache.max=a},updateStriped:function(e){var a=this,d=a.dataItems,g=a.oddCls,b,c,f;a.striped=!!e;if(!a.isConfiguring){for(b=0;b<d.length;++b){c=d[b].el;f=e?+c.dom.getAttribute('data-recordindex'):0;c.toggleCls(g,f%2)}}},privates:{dataRange:null,infinite:!1,striped:!1,_itemChangeHandlers:['changeItemRecordIndex','changeItemRecord','changeItemIsFirst','changeItemIsLast'],acquireItem:function(c,f){var b=this,d=null,e,a;if(typeof c==='number'){d=c;c=null}if(!c){c=b.getItemConfig();f=b.getItemsFocusable()}if(!(a=b.itemCache.unused.pop())){a=b.createDataItem(c);a=b.addDataItem(a,d);e=a.element;if(f){(a.getFocusEl()||e).setTabIndex(-1)}e.dom.setAttribute('data-viewid',b.id)}else {a.removeCls(b._cachedRemoveClasses);b.addDataItem(a,d)}return a},addDataItem:function(a,b){var c=this;if(b===null){b=c.findTailItem(!1)}a=(b<0)?c.add(a):c.insert(b,a);c.dataItems.push(a);return a},changeItem:function(f,b){var c=this,h=c.store,l=h.currentPage,m=b+(l?((l-1)*h.pageSize):0),o=c.dataItems,i=(f<0)?o.length+f:f,k=c.dataRange.records[b],d=c.getItemForRecord(i,k,b),n=h.getCount(),j=c._itemChangeHandlers,a={isFirst:!b,isLast:b===n-1,item:d,itemIndex:i,record:k,recordIndex:b,datasetIndex:m},e,g;a.afterEl=a.beforeEl=a.itemEl=g=d.renderElement;a.itemClasses=g.getClassMap(!1);a.isFirstChanged=d.isFirst!==a.isFirst;a.isLastChanged=d.isLast!==a.isLast;for(e=0;e<j.length;++e){c[j[e]](a)}g.setClassMap(a.itemClasses,!0);return a},changeItemIsFirst:function(a){if(!a.isFirstChanged){return}var d=this,f=d.firstCls,h=a.item,e=a.itemClasses,b=d.scrollDockedItems,c,g;if(!(h.isFirst=a.isFirst)){delete e[f]}else {e[f]=1;if(b&&!d.infinite){b=b.start.items;g=b.length;for(c=0;c<g;++c){b[c].renderElement.insertBefore(a.beforeEl)}}}},changeItemIsLast:function(a){if(!a.isLastChanged){return}var d=this,h=a.item,e=a.itemClasses,f=d.lastCls,b=d.scrollDockedItems,c,g;if(!(h.isLast=a.isLast)){delete e[f]}else {e[f]=1;if(b&&!d.infinite){b=b.end.items;g=b.length;for(c=0;c<g;++c){b[c].renderElement.insertAfter(a.afterEl)}}}},changeItemRecord:function(a){this.syncItemRecord(a)},changeItemRecordIndex:function(a){var b=a.item,c=a.recordIndex,d=a.itemClasses,e=this.oddCls;b.$datasetIndex=a.datasetIndex;if(b.isDataViewItem){if(b.getRecordIndex()!==c){b.setRecordIndex(c)}}else {b.el.dom.setAttribute('data-recordindex',c)}if(this.striped&&a.recordIndex%2){d[e]=1}else {delete d[e]}},clearItemCaches:function(){var a=this.itemCache.unused;Ext.destroy(a);a.length=0},clearItems:function(){var a=this,c=a.dataItems,e=c.length,d=a.itemCache.unused,b;for(b=0;b<e;++b){a.removeDataItem(c[b],!0)}Ext.destroy(d);c.length=d.length=0;a.setItemCount(0)},createDataItem:function(d){var b=this,c,a;a={xtype:b.getDefaultType(),tpl:b.getItemTpl(),$dataItem:'record'};c=b.getItemInnerCls();if(c){a.innerCls=c}c=b.getItemContentCls();if(c){a.contentCls=c}a=Ext.apply(a,d||b.getItemConfig());a.cls=[a.cls,b.getMarkDirty()?b.markDirtyCls:'',b.getItemCls()].join(' ');return a},doClear:function(){this.setItemCount(0);this.callParent()},doRefresh:function(e){var a=this,c=a.dataRange.records.length,d=a.getScrollable(),b;++a.refreshCounter;if(d&&e){d.scrollTo(0,0)}if(c){b=a.saveFocusState();a.hideEmptyText();a.setItemCount(c);a.syncItemRange();if(a.hasSelection()){a.setItemSelection(a.getSelections(),!0)}b()}else {a.doClear()}},getCacheForItem:function(){return this.itemCache},getFastItems:function(){return this.getInnerItems()},getItemForRecord:function(a){return this.dataItems[a]},getStoreChangeSyncIndex:function(a){return a},removeCachedItem:function(a,g,c,f){var e=this,d=!1,b=!g&&c&&c.unused;if(b&&b.length<c.max){if(f){e.setItemHidden(a,!0)}else {e.remove(a,!1)}b.push(a)}else {a.destroy();d=!0}return d},removeDataItem:function(b,a){return this.removeCachedItem(b,a,!a&&this.getCacheForItem(b))},syncItemRange:function(d,b){var c=this.store.getCount(),a;if(b==null){b=c}for(a=d||0;a<b;++a){this.changeItem(a,a)}},syncItemRecord:function(d,g){var f=this,a=d.item,c=d&&d.itemClasses,h=a.getRecord(),b=g||d.record,j=f.getItemDataMap(),k=a.el,i=a.getViewModel(),e=f.selectedCls;if(h===b){if(!g){if(a.isRecordRefreshable){a.refresh(d)}else {a.updateRecord(b,h)}}}else {if(f.getSelectable().isRowSelected(b)){if(c){c[e]=!0}else {k.addCls(e)}}else if(c){delete c[e]}else {k.removeCls(e)}a.setRecord(b);a.el.dom.setAttribute('data-recordid',b.internalId);if(a.isDragging){if(a.draggingRecordId===b.id){c[a.dragMarkerCls]=!0}else {delete c[a.dragMarkerCls]}}}if(j){Ext.dataview.DataItem.executeDataMap(b,a,j)}if(i){i.setData({record:d.record})}},traverseItem:function(a,f){var g=this,c=g.innerItems,d=null,e=a,b;if(a){if(a.isElement){e=Ext.getCmp(a.id)}b=c.indexOf(e);if(b>-1){d=c[b+f]||null}}return d},updateItemCount:function(c){var a=this,b=a.dataItems,e,d;if(b.length<c){e=a.getItemConfig();d=a.getItemsFocusable();while(b.length<c){a.acquireItem(e,d)}}while(b.length>c){a.removeDataItem(b.pop())}}}},function(b){var a=b.prototype;a._cachedRemoveClasses=[a.pressedCls,a.selectedCls]});Ext.define('Ext.dataview.GroupStore',{extend:Ext.data.ChainedStore,isGroupStore:!0,syncSourceGrouping:!0,applyGrouper:function(a,e){var c=this,b=c.getSource(),d;if(b&&a!==b.getGrouper()){b.setGrouper(a);a=b.getGrouper()}d=c.callParent([a,e]);c.refreshFromSource();return d},constructDataCollection:function(){var b=this,a=b.callParent();a.transformItems=function(c){return b.transformItems(a,c)};return a},createFiltersCollection:function(){return this.getSource().getFilters()},refreshFromSource:function(){var b=this.getData(),a=this.list,c=a.getScrollToTopOnRefresh();a.setScrollToTopOnRefresh(!1);b.onCollectionRefresh(b.getSource());a.setScrollToTopOnRefresh(c)},transformItems:function(r,f){var q=this,u=f.length,i=q.list,g=i.isGrouping()&&i.getCollapsible(),p=f,n={},o=q.getSource(),t=o.getModel(),s=g&&o.getGrouper().getProperty(),m,c,h,e,d,a,j,l,b,k;if(g){l=r.getSource().getGroups();k=g.getCollapsed();for(d=0;d<u;++d){j=f[d];b=l.getItemGroup(j);h=i.groupFrom(e=b.getGroupKey());m=h?h.collapsed:k;if(m){if(!c){c=p=f.slice(0,d)}if(!n[e]){if(!(a=b.placeholderRec)){b.placeholderRec=a=new t();a.data[s]=a.$groupKey=e;a.$collapsedGroupPlaceholder=!0;a.$srcGroup=b}n[e]=a;c.push(a)}}else if(c){c.push(j)}}}return p},updateSource:function(c,b){var a=this;if(c){a.list.store=a}if(b&&b.getAutoDestroy()){b.destroy()}a.callParent([c,b]);if(c&&!a.destroying){a.getSorters().setSource(c.getSorters())}}});Ext.define('Ext.dataview.Pinnable',{mixinId:'dataviewpinnable',isDataViewPinnable:!0,config:{pinned:null},pinnedCls:Ext.baseCSSPrefix+'pinned',updatePinned:function(e){var d=this,f=d.el,b=d.pinnedCls,c=d._pinnedClsMap,a=f.getClassMap(!1);delete a[c.top];delete a[c.bottom];if(e){a[b]=!0;b=c[e];if(b){a[b]=!0}}else {delete a[b]}f.setClassMap(a,!0)},_pinnedClsMap:{top:Ext.baseCSSPrefix+'pinned-top',bottom:Ext.baseCSSPrefix+'pinned-bottom'}});Ext.define('Ext.dataview.ItemHeader',{extend:Ext.Component,xtype:'itemheader',mixins:[Ext.mixin.Toolable,Ext.dataview.Pinnable],isItemHeader:!0,config:{group:null,contentWidth:null},html:'\xa0',classCls:Ext.baseCSSPrefix+'itemheader',inheritUi:!0,toolDefaults:{ui:'itemheader'},template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el'}],setGroup:function(b){var a=this,c=a._group;a._group=b;a.updateGroup(b,c);return a},updateGroup:function(d,b){var a=this,g,c,h,e,f;if(b&&d!==b&&b.getHeader()===a){b.setHeader(null)}if(d){d.setHeader(a);e=a.parent;c=e.getStore().getGrouper();f=(c&&c.owner===e&&c.headerTpl)||a.getTpl();if(f){g=a.getGroupHeaderTplData();h=f.apply(g)}}a.setHtml(h||'\xa0')},getScrollerTarget:function(){return this.el},doDestroy:function(){this.mixins.toolable.doDestroy.call(this);this.callParent()},privates:{augmentToolHandler:function(c,a){var b=a[1]={event:a.pop(),group:this.getGroup(),itemHeader:a[0],tool:a[1]};a[0]=b.list=this.parent},getGroupHeaderTplData:function(d){var c=this.getGroup(),e=this.parent,b=c&&c.data,a=b&&{name:b.getGroupKey(),group:c,groupField:e.getStore().getGrouper().getProperty(),children:b.items,count:b.length};if(a){a.value=b.items[0].data[a.groupField]}if(!d){a.html=Ext.htmlEncode(a.name)}a.groupValue=a.value;return a},getList:function(){return this.parent},onToggleCollapse:function(){this.getGroup().toggleCollapsed()},updateContentWidth:function(a){var b=this._toolDockWrap||this.bodyElement;if(b){b.setWidth(a?a:null)}}}});Ext.define('Ext.dataview.ListCollapser',{isListCollapser:!0,config:{collapsed:null,collapseToolText:'Collapse this group',expandToolText:'Expand this group',footer:!1,tool:{xtype:'tool',type:'collapse',handler:'up.onToggleCollapse',itemId:'groupCollapser',weight:900,zone:'end'}},collapsedCls:Ext.baseCSSPrefix+'group-collapsed',list:null,constructor:function(a){this.initConfig(a)},privates:{isRecordRendered:function(a){var c=this.list,b=c.groupFrom(a);return !(b&&b.collapsed)&&c.isRecordRendered(a)}}});Ext.define('Ext.dataview.ListGroup',{$configPrefixed:!1,config:{collapsed:null,collapsible:null,header:null},data:null,list:null,beginIndex:-1,endIndex:-1,nextGroup:null,previousGroup:null,constructor:function(a){this.initConfig(a)},collapse:function(){this.toggleCollapsed(!0)},expand:function(){this.toggleCollapsed(!1)},getCollapseTool:function(){var a=this.peekHeader();return a&&a.lookupTool('groupCollapser')},isAttached:function(){var b=this,e=b.data,d=b.list,a=d.store.getGroups(),c;a=a.get(e.getGroupKey());c=Ext.getExpando(a,d.expandoKey);return c===b},toggleCollapsed:function(b){var a=this,d=a.list,c;if(a.getCollapsible()!==!1&&a.isAttached()){if(b==null){b=!a.getCollapsed()}c='beforegroup'+(b?'collapse':'expand');if(d.fireEvent(c,d,a)!==!1){a.setCollapsed(b)}}},applyCollapsed:function(a){return !!a},updateCollapsed:function(a,g){var b=this,f=b.list,c=f.getCollapsible(),d=b.getCollapseTool(),e=b.peekHeader();if(b.isAttached()){if(d){d.setType(a?'expand':'collapse');d.setTooltip(a?c.getExpandToolText():c.getCollapseToolText())}if(e){e.el.toggleCls(c.collapsedCls,a)}if(a!==!!g){f.syncGroupCollapse(b,a)}}},updateHeader:function(d){if(d){var b=this,c=b.list.getCollapsible(),a=b.getCollapsed();if(c){if(!b.getCollapseTool()){d.addTool(c.getTool())}if(a===!!a){b.updateCollapsed(a,a)}else {b.setCollapsed(!!a)}}}},peekHeader:function(){var b=this,a=b.getHeader();if(a&&(a.destroying||!b.isAttached())){b.setHeader(a=null)}return a}},function(a){var b=a.prototype;Ext.each(['contains','containsAll','containsKey','each','eachKey','find','findBy','findIndex','findIndexBy','first','last','get','getAt','getByKey','getCount','getRange','getValues','indexOf','indexOfKey','getSummaryRecord'],function(c){b[c]=function(){var b=this.data;return b&&b[c].apply(b,arguments)}})});Ext.define('Ext.dataview.Disclosable',{mixinId:'disclosable',isListItem:!0,toolDefaults:{ui:'listitem'},toolAnchorName:'innerElement',getDisclosure:function(){return this.lookupTool('disclosure')},privates:{invokeDisclosure:function(c,b,d){var a=this.parent;if(c.type==='disclosure'&&!b){if(a&&a.onItemDisclosureTap){a.onItemDisclosureTap(this,d);return !0}}},syncDisclosure:function(d){var b=this,a=b.getDisclosure(),c=b.parent;if(a){a.setHidden(c.shouldHideDisclosure(d))}}}});Ext.define('Ext.dataview.SimpleListItem',{extend:Ext.Component,alternateClassName:'Ext.dataview.component.SimpleListItem',xtype:'simplelistitem',mixins:[Ext.dataview.Disclosable,Ext.mixin.Toolable,Ext.dataview.GenericItem,Ext.dataview.Pinnable],classCls:Ext.baseCSSPrefix+'listitem',inheritUi:!0,html:'\xa0',template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el',children:[{reference:'innerElement',cls:Ext.baseCSSPrefix+'inner-el',uiCls:'inner-el'}]}],doDestroy:function(){this.mixins.toolable.doDestroy.call(this);this.callParent()},handleFocusEvent:Ext.emptyFn,updateRecord:function(c){var a=this,b,d;if(a.destroying||a.destroyed){return}b=a.parent;d=b&&b.gatherData(c);a.updateData(d);a.syncDisclosure(c)},updateHtml:function(b,a){this.callParent([this.handleEmptyText(b),a])},privates:{getRenderTarget:function(){return this.innerElement},invokeToolHandler:function(a,b,d,e,c){if(this.invokeDisclosure(a,b,c)){return !1}return a.invokeToolHandler(a,b,d,e,c)}}});Ext.define('Ext.dataview.ListItemPlaceholder',{extend:Ext.dataview.SimpleListItem,xtype:'listitemplaceholder',isListItemPlaceholder:!0,config:{group:null},html:'',cls:Ext.baseCSSPrefix+'listitem-placeholder'});Ext.define('Ext.dataview.List',{extend:Ext.dataview.Component,alternateClassName:'Ext.List',xtype:'list',isList:!0,mixins:[Ext.mixin.Bufferable],config:{bufferSize:20,collapseDefaults:{cached:!0,$value:{xclass:'Ext.dataview.ListCollapser'}},collapsible:{lazy:!0,$value:!0},disclosureProperty:'disclosure',grouped:!0,groupFooter:{cached:!0,$value:null},groupHeader:{cached:!0,$value:{xtype:'itemheader',tpl:'{html} ({count})'}},groupPlaceholder:{cached:!0,$value:{xtype:'listitemplaceholder'}},indexBar:null,infinite:null,minimumBufferDistance:5,onItemDisclosure:{$value:null,merge:function(a,d,b){var c=a&&b&&b.$isClass&&typeof a;if(c==='string'||c==='function'){return {handler:a,scope:'self'}}return a}},pinFooters:!1,pinHeaders:!0,pinnedFooter:{lazy:!0,$value:null},pinnedHeader:{lazy:!0,$value:{xtype:'itemheader'}},preventSelectionOnDisclose:!0,preventSelectionOnTool:!0,rowLines:null,useSimpleItems:null,variableHeights:null,grouping:null,horizontalOverflow:{evented:!0,$value:null},innerCtHeight:null,innerWidth:null,pinnedFooterHeight:null,pinnedHeaderHeight:null,topRenderedIndex:null,verticalOverflow:null,visibleHeight:null,visibleLeft:null,visibleTop:null,visibleWidth:null},bufferableMethods:{syncVerticalOverflow:1},classCls:Ext.baseCSSPrefix+'list',itemConfig:{xtype:'simplelistitem'},maintainChildNodes:!1,placeholderHeight:null,rowHeight:0,scrollable:{x:!1,y:!0},storeEventListeners:{groupchange:'onStoreGroupChange',totalcountchange:'onStoreTotalCountChange'},template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el',children:[{reference:'outerCt',className:Ext.baseCSSPrefix+'list-outer-ct',children:[{reference:'innerCt',className:Ext.baseCSSPrefix+'list-inner-ct'}]}]}],beforeInitialize:function(c){var a=this,b=a.getInfinite();if(!b){a.innerCt.on('resize','onInnerCtResize',a)}a.expandoKey='list-'+a.$iid;a.gapMap={};if(!a.itemTranslationMethod){a.itemTranslationMethod=Ext.supports.TranslateYCausesHorizontalScroll?'cssposition':'csstransform'}a.groupingInfo={header:{config:a.getGroupHeader(),creator:'createGroupHeader',name:'$header',offset:0,max:0,unused:[]},footer:{config:a.getGroupFooter(),creator:'createGroupFooter',name:'$footer',offset:1,max:0,unused:[]},placeholder:{max:0,unused:[]}};a.bodyElement.on({resize:'onBodyResize',scope:a});a.selfPartner=[a];a.stickyItems=[];a.stickyItemsByRecordId={};a.callParent([c])},doDestroy:function(){var b=this,a=b.groupingInfo;Ext.destroy(b.resyncListener,a.header.unused,a.footer.unused,a.placeholder.unused);b.callParent()},createIndexBar:function(a){return Ext.apply({xtype:'indexbar',$initParent:this,parent:this,hidden:!0},a)},createPinnedFooter:function(b){var a=this.createPinnedHeaderFooter(b);a.bottom=0;a.pinned='bottom';return a},createPinnedHeader:function(e){var d=this,b=d.getGroupHeader(),a=d.createPinnedHeaderFooter(e),c;a.top=0;a.pinned='top';if(!a.tpl&&b.tpl){a.tpl=b.tpl}if(!('tools' in a)){c=b&&b.tools;if(c){a.tools=c}}return a},groupFrom:function(a){var d=this,f=d.isGrouping()&&d.store,e=null,h=d.expandoKey,b=null,g,c;if(f){c=f.getGroups();if(a.isGroup){a=a.getGroupKey()}else if(a.isModel){a=c.getGrouper().getGroupString(a)}e=c.get(a);if(e){if(!(b=Ext.getExpando(e,h))){if(f.isGroupStore){c=f.getSource().getGroups()}b={data:c.get(a),list:d};g=d.getCollapsible();if(g){b.collapsed=g.getCollapsed()}b=new Ext.dataview.ListGroup(b);Ext.setExpando(e,h,b)}}}return b},isGrouping:function(){var a=this,c=a.getGrouped()&&a.store,d=c&&c.getGrouper(),b=!!d;a.setGrouping(b);return b},isRecordRendered:function(a){var b=this,c=b.renderInfo;if(!b.infinite){return !0}if(a.isEntity){a=b.store.indexOf(a)}return a>=c.indexTop&&a<c.indexBottom},mapToViewIndex:function(b){var c=this,a;if(c.infinite&&typeof b==='number'){a=c.renderInfo.indexTop;b-=a}return c.callParent([b,a])},scrollToRecord:function(b,a){return this.ensureVisible({record:b,animation:a})},shouldSelectItem:function(d){var c=this,b=!c.callParent([d]),a;if(!b){a=d.getTarget(c.toolSelector);a=a&&c.el.contains(a)&&Ext.Component.from(a);if(a){b=a.preventSelection;if(b==null){if(a.type==='disclosure'){b=c.getPreventSelectionOnDisclose()}else {b=c.getPreventSelectionOnTool()}}}}return !b},onBodyResize:function(e,c){var a=this,d=c.height,b=c.width;if(b===a.getVisibleWidth()){a.setVisibleHeight(d)}else {a.suspendSync=!0;a.setVisibleHeight(a.outerCt.measure('h'));a.suspendSync=!1;a.setVisibleWidth(b);a.refreshScrollerSize()}},onItemAdd:function(a,c){var b=this;if(b.infinite){if(a.$dataItem&&b.variableHeights){a.on('resize','onDataItemResize',b)}if(a.isInner){a.setTranslatable({type:b.itemTranslationMethod})}}return b.callParent([a,c])},onItemRemove:function(a,f,e){var c=this,d=a.$height,b=a.scrollDock;c.callParent([a,f,e]);if(b&&d){Ext.Array.remove(c.scrollDockedItems[b].items,a);c.adjustScrollDockHeight(b,-d)}},onStoreAdd:function(c,d,b){var a=this;a.syncEmptyState();if(a.infinite){if(a.getVisibleHeight()){a.refreshGrouping();a.resyncOnPaint()}}else {a.refreshGrouping();a.setItemCount(c.getCount());a.syncItemRange(Math.max(0,b-1))}},onStoreRemove:function(f,d,e){var a=this,b=a.getNavigationModel(),c;if(a.infinite){if(a.getVisibleHeight()){a.refreshGrouping();a.resyncOnPaint()}a.syncEmptyState()}else {a.refreshGrouping();a.callParent([f,d,e])}if(b.location){c=b.location.refresh();b.setLocation(c)}},onStoreUpdate:function(k,c,l,j,d){var a=this,g=a.allPartners,i,b,e,f,h;if(d&&d.groupChanged&&a.isGrouping()){a.refreshGrouping();a.syncRows()}else {a.callParent([k,c,l,j,d]);if(a.partnerManager&&a.isActivePartner()){e=a.measurePartners(c);if(e!==null){for(b=0,i=g.length;b<i;++b){f=g[b];h=f.itemFromRecord(c);f.handleItemResize(h,e,!0)}}}}},applyCollapsible:function(b){var c=this,a=null,d=c.store;if(b&&!(d&&d.isVirtualStore)){a=Ext.clone(c.getCollapseDefaults());if(b!==!0){a=Ext.merge(a,b)}a.list=c;a=Ext.create(a)}return a},updateCollapsible:function(a){},updateGrouped:function(){var a=this;if(a.initialized){a.refreshGrouping();a.syncRows()}},updateGroupFooter:function(b){var a=this.groupingInfo;if(a){a.footer.config=b}},applyGroupHeader:function(a){var b=a&&a.tpl;if(b!=null){a=Ext.apply({},a);a.tpl=Ext.XTemplate.get(b)}return a},updateGroupHeader:function(b){var a=this.groupingInfo;if(a){a.header.config=b}},updateGrouping:function(a){this.toggleCls(this.groupedCls,a)},applyIndexBar:function(b,a){return Ext.updateWidget(a,b,this,'createIndexBar')},updateIndexBar:function(a){if(a){this.add(a)}},applyItemConfig:function(e,d){var c=this.callParent([e,d]),a,b;if(this.getOnItemDisclosure()){a={disclosure:!0};b=c.tools;c.tools=b?Ext.merge(a,b):a}return c},updateInfinite:function(b){var a=this;a.infinite=b;if(b){a.setItemHidden=a.setItemHiddenInfinite;a.el.addCls(a.infiniteCls);a.innerCt.addCls(a.infiniteCls);a.renderInfo={atBegin:!1,atEnd:!1,bottom:0,height:0,top:0,indexBottom:0,indexTop:0};a.getScrollable().on({scope:a,offsetychange:'onOffsetChange',offsetxchange:'onOffsetChange',scroll:'onContainerScroll',scrollstart:'onContainerScrollStart',scrollend:'onContainerScrollEnd'})}},updateMaxItemCache:function(b,c){var a=this.groupingInfo;this.callParent([b,c]);a.header.max=a.footer.max=a.placeholder.max=b},updatePinFooters:function(c){var a=this,b=a.pinnedFooter;a.pinFooters=c;if(a.isConfiguring){return}if(a.setupFooterPinning()){if(a.infinite){a.syncPinnedFooter()}}else if(b){a.setItemHidden(b,!0)}},applyPinnedFooter:function(e,d){var a=this,c=Ext.updateWidget(d,e,a,'createPinnedFooter'),b;if(!d){b=a.getIndexBar();if(b){b=a.indexOf(b);a.insert(b,c)}else {a.add(c)}a.setItemHidden(c,!0)}return c},updatePinnedFooter:function(a){var b=this;b.pinnedFooter=a;b.setupFooterPinning();if(a){a.$pinnedFooter=!0}},updatePinHeaders:function(c){var a=this,b=a.pinnedHeader;a.pinHeaders=c;if(a.isConfiguring){return}if(a.setupHeaderPinning()){if(a.infinite){a.syncPinnedHeader()}}else if(b){a.setItemHidden(b,!0)}},applyPinnedHeader:function(d,c){var b=this,a=Ext.updateWidget(c,d,b,'createPinnedHeader');if(!c&&a){b.insert(0,a);b.setItemHidden(a,!0)}return a},updatePinnedHeader:function(a){var b=this;b.pinnedHeader=a;b.setupHeaderPinning();if(a){a.$pinnedHeader=!0}},updateRowLines:function(a){this.innerCt.toggleCls(this.noRowLinesCls,a===!1)},createScrollable:function(b){var a=this.callParent([b]);if(this.infinite){a=Ext.apply({type:'virtual',innerElement:this.innerCt},a)}return a},applyStore:function(d,c){var a=this,b=a.callParent([d,c]);if(b){if(b.isVirtualStore){a.setCollapsible(null)}else if(a.isGrouping()&&a.getCollapsible()){a.store=b=new Ext.dataview.GroupStore({autoDestroy:!0,list:a,source:b})}}return b},updateUseSimpleItems:function(b){var a=this.getItemConfig();a=Ext.applyIf({xtype:b?'simplelistitem':'listitem'},a);this.setItemConfig(a)},updateVariableHeights:function(a){this.variableHeights=a},privates:{toolSelector:'.'+Ext.baseCSSPrefix+'tool:not(.'+Ext.baseCSSPrefix+'passive)',infiniteCls:Ext.baseCSSPrefix+'infinite',groupFirstCls:Ext.baseCSSPrefix+'group-first',groupLastCls:Ext.baseCSSPrefix+'group-last',groupedCls:Ext.baseCSSPrefix+'grouped',hasPinnedFooterCls:Ext.baseCSSPrefix+'has-pinned-footer',hasPinnedHeaderCls:Ext.baseCSSPrefix+'has-pinned-header',noRowLinesCls:Ext.baseCSSPrefix+'no-row-lines',stickyCls:Ext.baseCSSPrefix+'sticky',tombstoneCls:Ext.baseCSSPrefix+'tombstone',blockingScroll:0,gapAfter:0,groupingInfo:null,heightSyncs:0,manageHorizontalOverflow:!0,pinnedFooter:null,pinnedHeader:null,lastAdjustedPosition:null,measuredHeight:null,renderInfo:null,suspendSync:!1,onContainerScroll:function(f,d,e){var a=this,b,c;if(!a.blockingScroll){b=a._visibleLeft;c=a.infinite?a.lastAdjustedPosition:a._visibleTop;a.setVisibleLeft(d);a.setVisibleTop(e);a.fireEvent('scroll',a,{x:d,y:e,oldX:b,oldY:c})}},onContainerScrollStart:function(){var a=this,b=a.partnerManager;if(a.variableHeights&&b){b.claimActivePartner(a)}a.toggleHoverCls(!1);a.doHover=!1},onContainerScrollEnd:function(){var a=this,b=a.partnerManager;a.doHover=!0;a.toggleHoverCls(!0);if(a.variableHeights&&b){b.releaseActivePartner(a)}},onDataItemResize:function(d,e,c,b,a){if(b===null&&a===null){return}this.handleItemResize(d,c)},onItemDisclosureTap:function(c,e){var a=this,b=c.getRecord(),d=a.store.indexOf(b);a.fireAction('disclose',[a,b,c,d,e],'doDisclose')},_onChildTouchCancel:function(a){if(!a.getTarget(this.toolSelector)){this.callParent([a])}},_onChildTouchEnd:function(a){if(!a.getTarget(this.toolSelector)){this.callParent([a])}},_onChildTouchStart:function(a){if(!a.getTarget(this.toolSelector)){this.callParent([a])}},onOffsetChange:function(c){var b=this.dataItems,d=b.length,a;for(a=0;a<d;a++){c.syncOffsets(b[a].getTranslatable())}},onRangeAvailable:function(){this.syncRows()},onScrollDockItemHide:function(a){var b=a.$height;if(b){this.adjustScrollDockHeight(a.scrollDock,-b);a.$height=null}},onScrollDockItemResize:function(b,d,a){var c=b.$height;if(c!==a){b.$height=a;this.adjustScrollDockHeight(b.scrollDock,a-c)}},onScrollDockItemShow:function(b){var a=b.$height;if(a==null){a=this.measureItem(b)}this.adjustScrollDockHeight(b.scrollDock,a)},onStoreGroupChange:function(){if(this.initialized){this.refreshGrouping();this.syncRows()}},onStoreTotalCountChange:function(){if(this.getVisibleHeight()){this.syncRowsToHeight()}this.syncEmptyState()},addDataItem:function(c,d){var a=this,b;b=a.callParent([c,d]);if(a.infinite){a.getScrollable().syncOffsets(b.getTranslatable())}b.$height=a.variableHeights?null:a.rowHeight;return b},addScrollDockedItem:function(a){var b=this;if(b.infinite){a.on({hide:'onScrollDockItemHide',resize:'onScrollDockItemResize',show:'onScrollDockItemShow',scope:b});a.$height=null;b.setItemHidden(a,!0)}},adjustContentTop:function(d){var f=this,k=this.dataItems,h=k.length,j=f.renderInfo,i=f.scrollDockedItems,a,e,b,c,g;for(a=0;a<h;++a){e=k[a];f.setItemPosition(e,e.$position+d);b=e.$header;if(b){f.setItemPosition(b,b.$position+d)}b=e.$footer;if(b){f.setItemPosition(b,b.$position+d)}e.$y0+=d;e.$y1+=d}if(i){if(j.atBegin){g=i.start.items;h=g.length;for(a=0;a<h;++a){c=g[a];if(!c.getHidden()){f.setItemPosition(c,c.$position+d)}}}if(j.atEnd){g=i.end.items;h=g.length;for(a=0;a<h;++a){c=g[a];if(!c.getHidden()){f.setItemPosition(c,c.$position+d)}}}}},adjustScrollDockHeight:function(d,c){var b=this,a=b.scrollDockedItems;a=a&&a[d];if(a){a.height+=c;b.resyncOnPaint()}},adjustRenderedRows:function(d,o){var a=this,l=a.getBufferSize(),f=a.getMinimumBufferDistance(),h=a.renderInfo,i=h.indexTop,k=h.indexBottom,p=a.dataItems,e=p.length,n=a.getVisibleHeight(),m=a.store.getCount(),g=a.recordIndexByPosition(d),j=a.recordIndexByPosition(d+n),c,b;if(o<d){if(k-j>=f){return}}else {if(g-i>=f){return}}c=g-(l>>>1);c=Math.max(0,Math.min(c,m-e));b=c-i;if(b>0&&b<e){a.rollDown(b)}else if(b<0&&-b<e){a.rollUp(-b)}else if(b||a.refreshing){a.teleport(d)}},bindStore:function(d){var a=this,c=d.getModel(),b=new c();a.dataRange=a.store.createActiveRange({prefetch:!0,callback:'onRangeAvailable',scope:a});a.tombstoneRec=b;b.tombstone=!0;if(a.getVisibleHeight()){a.syncRowsToHeight()}},bisectPosition:function(b){var d=this.dataItems,a=0,f=d.length-1,c,e;b=b||0;if(b<d[0].$y0){return -1}while(a<=f){c=(a+f)>>>1;e=d[c].$y0;if(b===e){return c}if(e<b){a=c+1}else {f=c-1}}if(a&&b<d[a-1].$y1){--a}return a},blockAndScrollTo:function(c,d){var b=this,a=b.getScrollable();if(a.getPosition().y!==c){a.on({single:!0,priority:-1000,scroll:function(){--b.blockingScroll}});++b.blockingScroll}return a.scrollTo(null,c,d)},changeHeaderFooter:function(e,i,b,d){var c=this,h=b.name,a=e[h]||null,j=c.infinite,f,g;d=d&&b.config;f=d&&b.map[i];if(f){if(!a){if(!(a=b.unused.pop())){a=c[b.creator]()}a=c.reorderItem(a,e,b.offset)}a.$dataRow=e;a.setGroup(f)}else if(a){g=c.removeGroupItem(a,b,!d);if(!g&&j){c.setItemHidden(a,!0);c.reorderItem(a)}a=null}e[h]=a},changeItem:function(d,c){var a=this,b=a.callParent([d,c]),e=b.item;if(a.infinite&&a.variableHeights){e.$height=null}return b},changeItemGrouping:function(g){var a=this,b=a.isGrouping(),e=a.groupingInfo,d=g.item,f=g.recordIndex,c;a.changeHeaderFooter(d,f,e.header,b);if(b&&d.isListItemPlaceholder){c=a.getCollapsible();if(c){b=c.getFooter()}}a.changeHeaderFooter(d,f,e.footer,b)},changeItemIsFirst:function(d){if(d.isFirstChanged){var b=this,a=b.scrollDockedItems,c,e;b.callParent([d]);if(a&&!d.isFirst&&b.infinite){a=a.start.items;e=a.length;for(c=0;c<e;++c){b.setItemHidden(a[c],!0)}}}},changeItemIsLast:function(d){if(d.isLastChanged){var b=this,a=b.scrollDockedItems,c,e;b.callParent([d]);if(a&&!d.isLast&&b.infinite){a=a.end.items;e=a.length;for(c=0;c<e;++c){b.setItemHidden(a[c],!0)}}}},changeItemRecord:function(a){var b=this,d=a.itemClasses,c=b.tombstoneCls;if(a.record){delete d[c];b.syncItemRecord(a)}else {d[c]=1;b.syncItemRecord(a,b.tombstoneRec)}},changeItemStuck:function(b){var c=this,a=b.item,e=b.record,d=e&&c.stickyItemsByRecordId[e.internalId]||null;if(a.$sticky){if(e!==a.getRecord()){c.dislodgeItem(a,b,d)}}else if(d){c.dislodgeItem(a,b,d);c.removeDataItem(a)}},clearItemCaches:function(){var a=this.groupingInfo,d=a.header.unused,c=a.footer.unused,b=a.placeholder.unused;this.callParent();Ext.destroy(d,c,b);d.length=c.length=b.length=0},constrainStickyItem:function(c){var a=this,i=a.pinnedFooter,j=a.pinnedHeader,d=!1,l=a.renderInfo,k=c.$recordIndex,n=a.measureItem(c,a),g=c.$sticky,b=g.pos,e=a.getVisibleTop(),f=e+a.getVisibleHeight()-n,m=b,h;if(g.floated){a.setItemHidden(c,!1);return null}if(j){e+=a.measureItem(j)}if(i){f-=a.measureItem(i)}if(k<l.indexTop){h=!0;b=e;d='top'}else if(k>=l.indexBottom){h=!0;b=f;d='bottom'}else if(b<e){b=e;d='top'}else if(b>f){b=f;d='bottom'}if(g.autoPin){m=b;if(c.isDataViewPinnable){c.setPinned(d)}}else if(h){a.setItemHidden(c,!0)}return m},createGroupFooter:function(){var b=this,a=b.getGroupFooter();if(typeof a==='string'){a={xtype:a}}a=Ext.apply({$dataItem:'footer'},a);a.$initParent=a.ownerCmp=a.list=b;return a},createGroupHeader:function(){var d=this,a=d.getGroupHeader(),e=d.getCollapsible(),c=e&&e.getTool(),b;if(typeof a==='string'){a={xtype:a}}a=Ext.apply({$dataItem:'header'},a);a.$initParent=a.ownerCmp=a.list=d;if(c){c=Ext.clone(c);b=a.tools;if(!b||Ext.isArray(b)){a.tools=b=b?b.slice():[];b.push(c)}else {a.tools=b=Ext.apply({},b);b[c.itemId]=c}}return a},createGroupPlaceholder:function(){var b=this,a=b.getGroupPlaceholder();if(typeof a==='string'){a={xtype:a}}a=Ext.apply({$dataItem:'placeholder'},a);a.$initParent=a.ownerCmp=a.list=b;if(!b.variableHeights){a.$height=b.placeholderHeight}return a},createPinnedHeaderFooter:function(a){return Ext.merge({translatable:{type:'csstransform'},isPinnedItem:!0,list:this},a)},dislodgeItem:function(b,f,a){var d=this,e=d.dataItems,c=b.$sticky;if(!a){a=d.acquireItem(d.indexOf(b));e.pop()}else if(a.$sticky&&!a.$sticky.dislodged){d.dislodgeItem(a,{itemIndex:e.indexOf(a)})}d.dataItems[f.itemIndex]=f.item=a;a.$footer=b.$footer;a.$header=b.$header;a.$position=null;b.$footer=b.$header=null;if(c){c.dislodged=!0}c=a.$sticky;if(c){c.dislodged=!1}return a},doClear:function(){var a=this,b=a.groupingInfo,f=b.header.unused,e=b.footer.unused,c=b.placeholder.unused,d;Ext.destroy(f,e,c);e.length=f.length=c.length=0;if(a.infinite){a.setItemCount(0);a.lastAdjustedPosition=null;a.setVisibleTop(0);d=a.getScrollable();d.scrollTo(null,0);a.refreshScrollerSize();a.syncEmptyState()}else {a.callParent()}},doDisclose:function(c,e,g,f,h){var d=c.getOnItemDisclosure(),a=d,b;if(a&&a!==!0){if(a.handler){b=a.scope;a=a.handler}Ext.callback(a,b,[e,g,f,h],0,c)}},doRefresh:function(f){var a=this,c=a.getScrollable(),h=a.store,e,g,d,b;if(a.infinite){g=++a.refreshCounter;a.refreshGrouping();if(h.getCount()){a.hideEmptyText();if(g>1&&c){if(f){d=a.saveFocusState();a.blockAndScrollTo(0,!1);a.lastAdjustedPosition=null;a.refreshing=!0;a.syncRowsToHeight(!1);a.resetVisibleTop();a.setVisibleTop(0);e=!0;a.refreshing=!1;d()}else {b=c.getPosition().y}}}else if(a.dataItems.length&&!h.hasPendingLoad()){a.doClear()}if(!e){a.resync(!0);if(b!=null&&b!==c.getPosition().y){c.scrollTo(null,b)}}}else {a.refreshGrouping();a.callParent([f])}},ensureVisibleScroll:function(a){var b=this,c=a.recordIndex,h=a.item||(a.item=b.itemFromRecord(c)),f=b.getScrollable(),g,d,e;if(h){return f.ensureVisible(h.el,{align:a.align,animation:a.animation,highlight:a.highlight,x:!1})}d=f.getSize();e=Math.floor((d?d.y:0)*(c/b.store.getCount()));a.animation=!1;b.nextTeleportTopIndex=c;b.setVisibleTop(e);delete b.nextTeleportTopIndex;g=b.blockAndScrollTo(e,!1);a.item=b.itemFromRecord(c);return g.then(function(){if(!b.destroyed){a.item=b.itemFromRecord(c)}return a})},getCacheForItem:function(c){var b=c.$dataItem,a;if(b==='record'){a=this.itemCache}else {a=this.groupingInfo[b]}return a},getItemForRecord:function(e,g){var c=this,b=c.dataItems[e],h=g&&!!g.$collapsedGroupPlaceholder,i=c.groupingInfo.placeholder,d=b.el.dom,f,a;if(h!==!!b.isListItemPlaceholder){f={itemIndex:e};if(h){if(!(a=i.unused.pop())){a=c.createGroupPlaceholder()}a=c.insert(e,a);a.setGroup(c.groupFrom(g));d.parentNode.insertBefore(a.el.dom,d);c.dislodgeItem(b,f,a);c.removeDataItem(b);b=a}else {a=b;b=c.dislodgeItem(a,f);d.parentNode.insertBefore(b.el.dom,d);c.removeGroupItem(a,i)}}return b},getItemFromPoint:function(e,d){var a=this,b,c;if(a.infinite){c=Math.max(0,Math.min(d,a.getScrollable().getSize().y));b=a.recordIndexByPosition(c);return a.dataItems[b-a.renderInfo.indexTop]}return a.callParent([e,d])},getItemTop:function(a){var b;a=a.$header||a;if(this.infinite){b=a.$y0}else {b=this.getScrollable().getEnsureVisibleXY(a.element,{align:{y:'start?'}}).y}return b},getPositionedItemTarget:function(a){if(a&&a.layer==='inner'){return this.callParent([a])}return this.bodyElement},getRecordIndexFromPoint:function(b,a){if(this.infinite){return this.recordIndexByPosition(Math.max(0,Math.min(a,this.getScrollable().getSize().y)))}return this.callParent([b,a])},getRenderPartners:function(){var a=this.allPartners;if(!(a&&this.variableHeights)){a=this.selfPartner}return a},getRenderTarget:function(){return this.innerCt},getScrollableClientRegion:function(){return this.callParent().adjust(this.getPinnedHeaderHeight()||0,0,-(this.getPinnedFooterHeight()||0),0)},getScrollerTarget:function(){return this.outerCt},getStoreChangeSyncIndex:function(a){return this.isGrouping()?Math.max(0,a-1):a},handleItemResize:function(a,d,k){var c=this,i=c.dataItems,h=c.renderInfo,f=a.$dataRow||a,j,e,b,g;d+=a.el.getMargin('tb');if(k||a.$height!==d){a.$height=d;b=i.indexOf(f);if(b>-1){if(h.indexTop&&h.indexBottom>=c.store.getCount()){j=!0;e=b+1;g=f.$y1}else {e=i.length-b;g=f.$y0}c.positionItems(g,j,e)}}},isActivePartner:function(){if(this.variableHeights&&this.partnerManager){return this.partnerManager.isActivePartner(this)}return !0},itemFromRecord:function(b){var a=this,e=a.store,d,c;if(e){if(a.infinite){d=b.isEntity?e.indexOf(b):b;c=a.dataItems[d-a.renderInfo.indexTop]}else {c=a.callParent([b])}}return c||null},measureItem:function(b,c){var a=b.$height,d;if(a==null){if(this.variableHeights||!c||!(a=c.rowHeight)){d=b.el.measure('h');a=d+b.el.getMargin('tb');if(c){c.rowHeight=a}}this.setItemHeight(b,a);b.$measured=d}return a},measureItems:function(){var a=this,h=a.scrollDockedItems,l=a.dataItems,c=l.length,n=a.partnerManager&&a.isActivePartner(),m=a.hasItemVm,j=a.placeholderHeight,d,g,k,e,f,b,i;if(a.variableHeights){if(m){a.lookupViewModel().notify()}while(c-->0){b=l[c];if(n){a.measurePartners(b)}else {if(b.$height==null){b.$height=a.measureItem(b)}d=b.$header;if(d&&d.$height==null){d.$height=a.measureItem(d)}d=b.$footer;if(d){d.$height=a.measureItem(d)}}}}else if(c){i=a.rowHeight;if(!i||j===null){if(m){a.lookupViewModel().notify()}for(k=0;k<c;++k){b=l[k];if(!b.isListItemPlaceholder){if(!i){b.$height=null;a.rowHeight=i=a.measureItem(b)}b.$height=i}else {if(j===null){b.$height=null;a.placeholderHeight=j=a.measureItem(b)}b.$height=j}}}}if(h){f=h.start.items;for(g=0,c=f.length;c-->0;){e=f[c];if(!e.getHidden()){g+=e.$height||a.measureItem(e)}}h.start.height=g;f=h.end.items;for(g=0,c=f.length;c-->0;){e=f[c];if(!e.getHidden()){g+=e.$height||a.measureItem(e)}}h.end.height=g}},measurePartners:function(f,p){var l=this,e=l.allPartners,g=e.length,k=new Array(g),d=0,h=0,m=!0,b,c,j,n,o,a,i;if(f.isDataViewItem){f=f.getRecord()}if(l.hasItemVm&&!p){l.lookupViewModel().notify()}for(a=0;a<g;++a){o=e[a];b=o.itemFromRecord(f);k[a]=b;b.setMinHeight(null)}for(a=0;a<g;++a){b=k[a];n=b.$height;delete b.$height;c=e[a].measureItem(b);j=b.$measured;i=i||n!==c;if(a===0){d=c;h=j}if(c!==d){m=!1;if(c>d){d=c;h=j}}}if(!m){for(a=0;a<g;++a){b=k[a];b.setMinHeight(h);e[a].setItemHeight(b,d)}}return i?h:null},onInnerCtResize:function(){this.syncVerticalOverflow()},positionItems:function(n,p,o){var f=this,a=f.renderInfo,l=f.dataItems,e=l.length,d=f.scrollDockedItems,i=f.getRenderPartners(),m=i.length,b,g,k,j,h,c;for(b=0;b<m;++b){c=i[b];if(p){c.positionItemsBottomUp(n,o)}else {c.positionItemsTopDown(n,o)}}if(e){a.top=l[0].$y0;a.bottom=l[e-1].$y1}else {a.top=a.bottom=d&&d.start.height||0}a.height=a.bottom-a.top;for(b=0;b<m;++b){c=i[b];if(a.atEnd){h=a.bottom;h+=c.gapAfter;d=c.scrollDockedItems;if(d){j=d.end.items;e=j.length;for(g=0;g<e;++g){k=j[g];if(!k.getHidden()){h+=c.setItemPosition(k,h)}}}}c.refreshScrollerSize()}},positionItemsBottomUp:function(n,q){var b=this,k=b.groupingInfo,o=k.footer,p=k.header,i=b.renderInfo,r=b.dataItems,g=b.scrollDockedItems,a=n,m=i.indexTop,d,f,e,h,c,l,j;for(e=q;e-->0;){c=r[e];l=a;d=c.$footer;if(d){if((f=d.$height)==null){f=b.measureItem(d,o)}a-=f;b.setItemPosition(d,a)}a-=c.$height;if(c.$sticky){c.$sticky.pos=a;j=b.constrainStickyItem(c);if(j!==null){b.setItemPosition(c,j)}}else {b.setItemPosition(c,a)}d=c.$header;if(d){if((f=d.$height)==null){f=b.measureItem(d,p)}a-=f;b.setItemPosition(d,a)}a-=b.gapMap[e+m]||0;c.$y0=a;c.$y1=l}if(i.atBegin&&g){g=g.start.items;for(e=g.length;e-->0;){h=g[e];if(!h.getHidden()){a-=h.$height;b.setItemPosition(h,a)}}}if(a<0||(a>0&&i.indexTop===0)){b.adjustContentTop(-a)}},positionItemsTopDown:function(o,g){var a=this,k=a.groupingInfo,p=k.footer,q=k.header,l=a.dataItems,h=l.length,f=a.scrollDockedItems,n=a.renderInfo.indexTop,b=o,c,e,j,d,m,i;g=g||h;if(a.renderInfo.atBegin&&g===h){if(f){f=f.start.items;b=0;for(e=0;e<f.length;++e){j=f[e];if(!j.getHidden()){b+=a.setItemPosition(j,b)}}}}for(e=h-g;e<h;++e){d=l[e];m=b;b+=a.gapMap[n+e]||0;c=d.$header;if(c){if(c.$height==null){a.measureItem(c,q)}b+=a.setItemPosition(c,b)}if(d.$sticky){d.$sticky.pos=b;i=a.constrainStickyItem(d);if(i!==null){b+=a.setItemPosition(d,i)}}else {b+=a.setItemPosition(d,b)}c=d.$footer;if(c){if(c.$height==null){a.measureItem(c,p)}b+=a.setItemPosition(c,b)}d.$y0=m;d.$y1=b}},refreshGrouping:function(){var a=this,c=a.isGrouping(),d=a.infinite,b;if(d){b=(c&&a.getPinFooters())?a.getPinnedFooter():a.pinnedFooter;if(b){a.setItemHidden(b,!0)}b=(c&&a.getPinHeaders())?a.getPinnedHeader():a.pinnedHeader;if(b){a.setItemHidden(b,!0)}}a.refreshGroupIndices();a.syncIndexBar()},refreshGroupIndices:function(){var g=this,k=g.store,j=g.isGrouping()?k.getGroups():null,m=g.groupingInfo,e=m.footer,f=m.header,n=j&&j.length,d,h,i,a,l,c=null,o,p,b;if(n){f.map=p={};f.indices=l=[];e.map=i={};e.indices=h=[];for(b=0;b<n;++b){a=g.groupFrom(o=j.getAt(b));d=k.indexOf(o.first());a.previousGroup=c;l.push(d);p[a.beginIndex=d]=a;if(c){c.nextGroup=a;h.push(d-1);i[(c.endIndex=d)-1]=c}c=a}a.nextGroup=null;a.endIndex=b=k.getCount();h.push(--b);i[b]=a}else {f.map=f.indices=e.map=e.indices=null}},refreshScrollerSize:function(){var a=this,c,d,b,e;if(a.store&&a.infinite){a.syncContentTop();d=a.renderInfo;b=a.scrollDockedItems;e=a.store.getCount();c=d.bottom+(e-d.indexBottom)*a.rowHeight;b=b&&b.end;if(b){c+=b.height}a.getScrollable().setSize({x:null,y:c});a.setVerticalOverflow(c>a.getVisibleHeight());a.refreshPinnedAreas()}},reorderItem:function(a,f,h){h=h||0;var e=this,b=e.innerItems,g=b.length,c=(f==null)?g:(f.isWidget?b.indexOf(f)+h:f),i=e.items,d=(c<g)?i.indexOf(b[c]):i.length;if(!a.isWidget||!e.infinite||e.maintainChildNodes||a.parent!==e){a=e.insert(d,a)}else {i.insert(d,a);d=b.indexOf(a);if(d>-1){b.splice(d,1);if(d<c){--c}}if(c<g){b.splice(c,0,a)}else {b.push(a)}}return a},recordIndexByPosition:function(a){var d=this,b=d.renderInfo,f=b.top,e=b.bottom,g=b.indexTop,c;if(a<f){c=Math.floor(a/f*g)}else if(a<e){c=g+d.bisectPosition(a)}else {a-=e;c=Math.min(b.indexBottom+Math.floor(a/d.rowHeight),d.store.getCount()-1)}return c},removeDataItem:function(a,c){var b=this,f=a.$header,e=a.$footer,d=b.groupingInfo;if(f){b.removeGroupItem(f,d.header,c)}if(e){b.removeGroupItem(e,d.footer,c)}a.$header=a.$footer=null;return b.callParent([a,c])},removeGroupItem:function(a,d,c){var b=this.removeCachedItem(a,c,d,this.infinite);if(!b){a.$dataRow=null;if(a.setGroup){a.setGroup(null)}}return b},resync:function(c){var a=this,b=a.outerCt.measure('h');a.resyncListener=null;if(b){if(b===a.getVisibleHeight()){a.syncRowsToHeight(c)}else {a.setVisibleHeight(b)}}},resyncOnPaint:function(){this.whenVisible('resync',[!0])},rollDown:function(k){var b=this,f=b.dataItems,i=b.renderInfo,p=i.indexBottom,n=f[f.length-1],l=b.innerItems.indexOf(n)+1,m=b.getRenderPartners(),q=m.length,j,c,e,g,h,o,d,a;if(n.$footer){++l}b.setTopRenderedIndex(i.indexTop+k);for(g=0;g<q;++g){d=m[g];f=d.dataItems;e=l;for(h=0;h<k;h++){a=f.shift();f.push(a);j=(a.$header?1:0)+(a.$footer?1:0);o=d.changeItem(-1,p+h);a=o.item;j-=(a.$header?1:0)+(a.$footer?1:0);e-=j;c=a.$header;if(c){d.reorderItem(c,e)}d.reorderItem(a,e);c=a.$footer;if(c){d.reorderItem(c,e)}}}b.measureItems();b.positionItems(i.bottom,!1,k)},rollUp:function(j){var a=this,f=a.dataItems,l=a.renderInfo,i=l.indexTop,m=f[0],k=a.innerItems.indexOf(m),n=a.getRenderPartners(),p=n.length,b,e,g,h,o,d,c;if(m.$header){--k}a.setTopRenderedIndex(i-j);--i;for(g=0;g<p;++g){d=n[g];f=d.dataItems;e=k;for(h=0;h<j;h++){c=f.pop();f.unshift(c);o=d.changeItem(0,i-h);c=o.item;b=c.$footer;if(b){d.reorderItem(b,e)}d.reorderItem(c,e);b=c.$header;if(b){d.reorderItem(b,e)}}}a.measureItems();a.positionItems(l.top,!0,j)},setGaps:function(b){var a=this;b=b||{};if(!Ext.Object.equals(a.gapMap,b)){a.gapMap=b;a.gapAfter=a.gapMap[a.store.getCount()]||0;a.syncRowsToHeight(!0)}},setItemHiddenInfinite:function(a,b){if(!b){a.$hidden=!1}else if(!a.$hidden){a.$hidden=!0;a.$position=null;a.translate(0,-10000)}},setItemPosition:function(a,b){if(a.$hidden){this.setItemHidden(a,!1)}if(a.$position!==b){a.$position=b;a.translate(null,b)}return a.$height},setupFooterPinning:function(){var a=this;return a.setupGroupPinning(a.getPinFooters(),a.pinnedFooter,a.hasPinnedFooterCls,'setPinnedFooterHeight')},setupGroupPinning:function(e,b,d,c){var a=e&&!!b;if(a){b.setScrollable({x:!1,y:!1})}else {this[c](0)}this.el.toggleCls(d,a);return a},setupHeaderPinning:function(){var a=this;return a.setupGroupPinning(a.getPinHeaders(),a.pinnedHeader,a.hasPinnedHeaderCls,'setPinnedHeaderHeight')},shouldHideDisclosure:function(c){var a,b;if(this.getOnItemDisclosure()){a=this.getDisclosureProperty();b=!a||c.data[a]!==!1}return !b},stickItem:function(a,h){var c=this,b=a.$sticky,i=a.getRecord(),g=c.stickyCls,f=c.stickyItems,e=c.stickyItemsByRecordId,d;if(h){if(!b){f.push(a);e[i.internalId]=a;a.addCls(g);a.$sticky=b={pos:a.$position}}Ext.apply(b,h);d=c.constrainStickyItem(a);if(d!==null){c.setItemPosition(a,d)}}else if(b){Ext.Array.remove(f,a);delete e[i.internalId];a.removeCls(g);a.$sticky=null;if(b.autoPin&&a.isDataViewPinnable){a.setPinned(!1)}if(b.floated){delete a.$position}if(b.dislodged){c.removeDataItem(a)}else {c.setItemPosition(a,b.pos)}}},syncContentTop:function(){var a=this,c=a.renderInfo,f=a.getVisibleTop(),d=a.getVisibleHeight(),e=a.getMinimumBufferDistance()*a.rowHeight,b;if(c.atEnd){return}b=f+d-(c.bottom-e);if(b>=0){a.getScrollable().scrollBy(null,-b,!1)}},syncGroupCollapse:function(b,a){this.store.refreshFromSource();this.fireEvent(a?'groupcollapse':'groupexpand',this,b)},syncIndexBar:function(){var a=this,b=a.getIndexBar(),c=a.store;if(b){b.setHidden(a.getEmptyState()||!c||!c.getGrouper())}},syncPinnedFooter:function(l){var a=this,m=a.dataItems,s=m.length,d=a.pinnedFooter,q=a.renderInfo,r=a.pinFooters&&d&&s&&a.isGrouping(),f=d,j=q.indexTop,i=a.scrollDockedItems,e,g,n,o,c,p,h,b,k;l=l||a.getVisibleTop();if(r){p=a.getScrollable().getSize().y;e=l+a.getVisibleHeight();f=e<=a.renderInfo.top||e>=p-(i?i.end.height:0)-a.gapAfter;if(!f){h=a.bisectPosition(e-1)+j;n=a.groupingInfo.footer;g=n.indices;c=Ext.Number.binarySearch(g,h);d.setGroup(n.map[g[c]]);if(h===g[c]&&m[h-j].$y1===e){f=!0}else if(c){c=g[c-1];if(c<j){b=0}else {b=m[c-j].$y1;k=a.gapMap[c+1]||0;if(k){if(!(f=e-b<k)){b+=k}}}}else {b=i?i.start.height:0}if(!f){o=a.measureItem(d);b=e-b;b=(b<o)?o-b:0;a.setItemPosition(d,b)}}}if(f){a.setItemHidden(d,!0)}else if(d){a.syncPinnedHorz(d)}},syncPinnedHeader:function(d){var a=this,k=a.dataItems,p=k.length,c=a.pinnedHeader,q=a.renderInfo,s=a.pinHeaders&&c&&p&&a.isGrouping(),e=c,j=q.indexTop,r=a.scrollDockedItems,g,l,m,b,h,f,i,o,n;d=d||a.getVisibleTop()||0;if(s){e=(r&&d<=r.start.height)||(h=a.bisectPosition(d))<0||h>=p;if(!e){h+=j;l=a.groupingInfo.header;g=l.indices;b=Ext.Number.binarySearch(g,h);if(g[b]!==h){--b}i=g[b];c.setGroup(l.map[i]);if(i>=j){n=k[i-j];o=a.gapMap[i]||0;if(o){e=d-n.$y0<o}else {e=n.$y0===d}}if(!e){++b;if(b<g.length){b=g[b]-j;f=(b<p)?k[b].$y0-d:0}else {f=q.bottom-d;e=f<=0}if(!e){m=a.measureItem(c);f=(f&&f<m)?f-m:0;a.setItemPosition(c,f||0)}}}}if(e){a.setItemHidden(c,!0)}else if(c){a.syncPinnedHorz(c)}},syncPinnedHorz:function(b){var a=this,c=b.getScrollable();b.el.setWidth(a.getScrollable().getClientSize().x);if(b.isItemHeader&&a.getHorizontalOverflow()){b.setContentWidth(a.getInnerWidth())}if(a.getHorizontalOverflow()&&a.getScrollable().isPrimary!==!1){c.scrollTo(a.getVisibleLeft(),null)}},syncRows:function(o){var b=this,g=b.renderInfo,e=b.scrollDockedItems,n=b.getRenderPartners(),c,h,m,i,p,l,j,d,k,f,a;if(!b.infinite){b.syncItemRange();return}if(!b.isActivePartner()){return}l=b.getMaxHeight();i=b.dataItems.length;m=g.indexTop;k=n.length;if(i){if(o){h=g.bottom}else {h=g.top;if(!m&&e){h=e.start.height}}for(c=0;c<k;++c){for(f=0;f<i;++f){n[c].changeItem(f,m+f)}}}b.measureItems();b.positionItems(h,o,i);for(c=0;c<k;++c){a=n[c];if(a.pinnedHeader){a.syncPinnedHeader()}if(a.pinnedFooter){a.syncPinnedFooter()}if(a.stickyItems.length){a.syncStickyItems()}if(l){p=a.innerCt;j=g.bottom+a.gapAfter;e=a.scrollDockedItems;if(e){j+=e.end.height}d=p.measure('h');d=a.el.measure('h')-d+a.el.getBorderWidth('tb');d=Math.min(l-d,j);a.setInnerCtHeight(d)}}},syncRowsToHeight:function(g){var a=this,q=a.getBufferSize(),n=a.infinite,l=a.getItemCount(),r=a.rowHeight||24,m=!a.heightSyncs++,e=a.renderInfo,k=e&&e.indexBottom,f=a.store.getCount(),p=a.getMaxHeight()||a.getVisibleHeight(),i,d,b,h,o,c,j;if(!a.isActivePartner()){return}if(n){b=Math.ceil(p/r)+q;b=Math.min(b,f)}else {b=f}i=a.getRenderPartners();o=i.length;for(h=0;h<o;++h){c=i[h];j=c.isActivePartner();c.setItemCount(b);if((m&&a.store.isVirtualStore)||l!==b||f<k){if(n&&j){d=Math.min(f-b,e.indexTop);d=Math.max(0,d);if(d===c.getTopRenderedIndex()){c.updateTopRenderedIndex(d)}else {c.setTopRenderedIndex(d)}}if(!l){c.refreshGrouping()}g=g!==!1;if(g&&f<k&&j){e.top=e.indexTop*a.rowHeight}}}if(g||m){a.syncRows()}},syncStickyItems:function(){var c=this,d=c.stickyItems,f=d.length,a,e,b;for(a=0;a<f;++a){b=c.constrainStickyItem(e=d[a]);if(b!==null){c.setItemPosition(e,b)}}},doSyncVerticalOverflow:function(){var a=this.getScrollable();this.setVerticalOverflow(a.getSize().y>a.getClientSize().y)},resetVisibleTop:function(){this.lastAdjustedPosition=this._visibleTop=null},setItemHeight:function(b,a){b.$height=a;if(b.$pinnedFooter){this.setPinnedFooterHeight(a)}else if(b.$pinnedHeader){this.setPinnedHeaderHeight(a)}},teleport:function(k){var a=this,g=a.getScrollable().getSize(),c=a.renderInfo,l=a.dataItems.length,h=a.store.getCount(),j=h-l,e=a.getBufferSize(),d=a.scrollDockedItems,f=a.nextTeleportTopIndex,i,b;if(f!==undefined){b=f}else {b=Math.floor(k/g.y*h)}if(b<j){e=Math.min(b,e>>>1);b-=e;if(b){c.top=Math.max(0,k-a.rowHeight*e)}else {c.top=d?d.start.height:0}}else {i=!0;b=j;c.bottom=g.y-a.gapAfter;if(d){c.bottom-=d.end.height}}a.setTopRenderedIndex(b);a.syncRows(i)},toggleHoverCls:function(h){var a=this,e=a.mouseOverItem,i=a.hoveredCls,c=a.partners,f,b,d,g;a.callParent([h]);if(c&&e){g=e.getRecord();for(b=0,f=c.length;b<f;++b){d=c[b].itemFromRecord(g);if(d){d.toggleCls(i,h)}}}},setItemSelection:function(b,h){var e=this,i,a,c,d,f,g=e.partners||[];e.callParent([b,h]);if(!e.isActivePartner()){return}for(a=0,i=b.length;a<i;a++){for(c=0,f=g.length;c<f;++c){d=g[c].getSelectable();if(h){d.setSelectedRecord(b[a])}else {d.deselect(b[a],!0)}}}},syncItemRecord:function(e,i){var h=this,g,d=this.partners||[],a,b,c,f=e.item.getRecord();g=h.callParent([e,i]);for(a=0,b=d.length;a<b;++a){c=d[a].getSelectable();if(c.isRowSelected(f)){h.getSelectable().setSelectedRecord(f);break}}return g},traverseItem:function(a,f){var d=this,c=d.dataItems,e=d.renderInfo,b;if(a&&d.infinite){if(f<0){if(a===c[0]&&!a.isFirst){b=e.indexTop}}else if(a===c[c.length-1]&&!a.isLast){b=e.indexBottom+1}}return b?b-1:this.callParent([a,f])},updateEmptyState:function(a,b){this.callParent([a,b]);this.syncIndexBar()},updateHorizontalOverflow:function(a){var b=this.getScrollable();if(this.manageHorizontalOverflow){b.setX(a);if(!a){b.scrollTo(0,null)}}},updateInnerCtHeight:function(a){this.innerCt.setHeight(a)},updateInnerWidth:function(b){var a=this,g=a.innerCt,e=a.pinnedHeader,d=a.pinnedFooter,f=0,c;if(b==null){g.setStyle('width','');a.setHorizontalOverflow(!1)}else {g.setStyle('width',b+'px');c=a.getVisibleWidth();if(c!=null){if(a.getVerticalOverflow()){f=a.getScrollable().getScrollbarSize().width}a.setHorizontalOverflow(c<(b+f))}}a.refreshScrollerSize();if(e){a.syncPinnedHorz(e)}if(d){a.syncPinnedHorz(d)}},updateItemCount:function(c,d){var b=this,a=b.infinite&&b.renderInfo;b.callParent([c,d]);if(!c&&a){a.atBegin=a.atEnd=!0}},updatePinnedFooterHeight:function(b){var a=this;if(!a.destroyed&&!a.destroying){a.fireEvent('pinnedfooterheightchange',a,b)}},updatePinnedHeaderHeight:function(b){var a=this;if(!a.destroyed&&!a.destroying){a.fireEvent('pinnedheaderheightchange',a,b)}},updateTopRenderedIndex:function(a){var e=this,c=e.store,d=e.renderInfo,b=a+e.dataItems.length;if(!c.isLoaded()&&!c.getAutoLoad()){return}d.atBegin=!a;d.atEnd=b===c.getCount();d.indexTop=a;d.indexBottom=b;if(a===b&&c.isVirtualStore){b=a+c.getPageSize()}e.dataRange.goto(a,b)},updateVerticalOverflow:function(e,d){var a=this,f=a.items.items,h=f.length,b,c,g;if(a.infinite){g=a.getScrollable().getScrollbarSize().reservedWidth;for(b=0;b<h;++b){c=f[b];if(c.isPinnedItem){c.el.setStyle('width',g)}}a.syncPinnedHeader();a.syncPinnedFooter();if(d!=null&&e!==d){a.updateVisibleWidth(a.bodyElement.getWidth())}}a.fireEvent('verticaloverflowchange',a,e)},updateVisibleHeight:function(c,b){var a=this;if(a.infinite){if(a.store){a.syncRowsToHeight()}}else {a.syncVerticalOverflow()}a.fireEvent('visibleheightchange',a,c,b)},updateVisibleLeft:function(){var a=this;if(a.infinite&&!a.suspendSync){a.refreshPinnedAreas()}},updateVisibleTop:function(b,c){var a=this,e,h,d,g,f;if(!a.isActivePartner()){return}if(a.infinite){c=a.lastAdjustedPosition;e=a.dataItems.length&&(c==null||Math.abs(b-c)>a.rowHeight);if(e){a.lastAdjustedPosition=b;a.adjustRenderedRows(b,c)}f=a.getRenderPartners();for(d=0,h=f.length;d<h;++d){g=f[d];if(e){g.lastAdjustedPosition=b}g.refreshPinnedAreas(b)}}},updateVisibleWidth:function(d){var a=this,c=a.getInnerWidth(),b=0;if(c!=null){if(a.getVerticalOverflow()){b=a.getScrollable().getScrollbarSize().width}a.setHorizontalOverflow(d<(c+b))}},refreshPinnedAreas:function(b){var a=this;a.syncPinnedHeader(b);a.syncPinnedFooter(b);if(a.stickyItems.length){a.syncStickyItems()}}}},function(c){var b=c.prototype,a=b._itemChangeHandlers=b._itemChangeHandlers.slice();a.unshift('changeItemStuck');a.push('changeItemGrouping')});Ext.define('Ext.dataview.BoundListLocation',{extend:Ext.dataview.Location,next:function(b){var d=this,a=d.nextItem(b),c=a&&a.get();while(a&&(!c||!a.record)){if(a.equals(d)){return}a=a.nextItem(b);c=a&&a.get()}return a},previous:function(b){var d=this,a=d.previousItem(b),c=a&&a.get();while(a&&(!c||!a.record)){if(a.equals(d)){return}a=a.previousItem(b);c=a&&a.get()}return a}});Ext.define('Ext.dataview.BoundListNavigationModel',{extend:Ext.dataview.NavigationModel,alias:'navmodel.boundlist',config:{navigateOnSpace:!0},locationClass:'Ext.dataview.BoundListLocation',privates:{getKeyNavCfg:function(c){var a=this,b;if(a.keyboard!==!1){b=(c.ownerField||c).getFocusEl();if(b){return {target:b,eventName:'keydown',defaultEventAction:'stopEvent',esc:a.onKeyEsc,up:a.onKeyUp,down:a.onKeyDown,right:a.onKeyRight,left:a.onKeyLeft,pageDown:a.onKeyPageDown,pageUp:a.onKeyPageUp,home:a.onKeyHome,end:a.onKeyEnd,tab:a.onKeyTab,space:a.onKeySpace,enter:a.onKeyEnter,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1001,scope:a}}}},getViewListeners:function(b){var a=this.callParent([b]);a.childtouchstart='onChildTouchStart';a.childTap='onChildTap';return a},doFocus:Ext.privateFn,handleLocationChange:function(b,d){var c=b.sourceElement,a=this.getView().ownerField;if(c&&a){a.inputElement.dom.setAttribute('aria-activedescendant',c.id)}this.callParent([b,d])},onChildTouchStart:function(c,b){var a=b.event;if(a.pointerType!=='touch'){a.preventDefault()}},onChildTap:function(e,d){var a=this,b=d.event,c;if(!e.destroyed){if(b.pointerType==='touch'){b.preventDefault()}c=a.createLocation(d.item);if(a.location&&a.location.equals(c)){a.onNavigate(b)}else {a.setLocation(c,{event:d.event,animation:!0})}}if(b.pointerType==='touch'){b.stopEvent()}},onChildTrigger:Ext.privateFn,onKeyLeft:function(){return !0},onKeyRight:function(){return !0},onKeySpace:function(a){if(this.getNavigateOnSpace()){a.preventDefault();this.onNavigate(a)}return !0},onKeyEsc:function(){var b=this.getView(),a=b.ownerField;if(a&&b.isVisible()){a.collapse()}else {return !0}},onKeyTab:function(c){var b=this.getView(),a=b.ownerField;if(b.isVisible()){if(a.getSelectOnTab()){this.selectHighlighted(c)}if(a.collapse){a.collapse()}}return !0},onKeyEnter:function(b){var c=this.getView(),d=c.getSelectable(),a=c.ownerField;b.stopEvent();if(!(a.getMultiSelect&&a.getMultiSelect())&&d.isSelected(this.location.record)&&a.collapse){a.collapse()}else {this.selectHighlighted(b)}b.fromBoundList=!0;a.fireEvent('specialkey',a,b);return !1},onNavigate:function(a){var c=a&&(a.pointerType||(this.getNavigateOnSpace()&&a.keyCode===a.SPACE)),d=this.getView(),b=d.getRefOwner();if(c){this.callParent([a]);if(b&&b.maybeCollapse){b.maybeCollapse(a)}}},selectHighlighted:function(e){var d=this,b=d.getView(),h=b.getStore(),f=b.getSelectable(),c=d.location,a,g;if(c&&b.getViewItems().length){a=c.record;if(a){if(e.getKey()===e.ENTER||!f.isSelected(a)){f.selectWithEvent(a,e);if(!b.getStore().contains(a)){g=Math.min(c.recordIndex,h.getCount()-1);d.setLocation(h.getAt(g))}}}}}}});Ext.define('Ext.dataview.BoundList',{extend:Ext.dataview.List,xtype:'boundlist',tabIndex:null,focusEl:null,focusable:!1,itemsFocusable:!1,navigationModel:{type:'boundlist'},itemConfig:{cls:Ext.baseCSSPrefix+'boundlistitem',tools:{selected:{zone:'start',passive:!0,cls:Ext.baseCSSPrefix+'selected-icon',iconCls:Ext.baseCSSPrefix+'fa fa-check'}}},onFocusEnter:Ext.emptyFn,onFocusLeave:Ext.emptyFn,afterShow:function(){this.callParent();this.getNavigationModel().enable()},afterHide:function(a){var b=a.getNavigationModel();a.callParent([a]);b.setLocation(null);b.disable()},privates:{beforeSelectionRefresh:function(b,e){var c=b.length,a,d;for(a=0;a<c;){d=b[a];if(d.isEntered){b.splice(a,1);c--}else {a++}}}}});Ext.define('Ext.dataview.DataView',{extend:Ext.dataview.Abstract,alternateClassName:'Ext.DataView',xtype:'dataview',isElementDataView:!0,constructor:function(a){if(a&&a.useComponents){return new Ext.dataview['Component'](a)}this.callParent([a])},getViewItems:function(){return Array.prototype.slice.call(this.getFastItems())},onStoreAdd:function(c,b,a){this.callParent(arguments);this.renderItems(a,a+b.length)},onStoreRemove:function(c,b,a){this.removeItems(a,a+b.length)},getItemClass:function(a){return this.getItemCls()},privates:{dirtyCls:Ext.baseCSSPrefix+'dirty',changeItem:function(a){var b=this,d=b.dataItems,g=d[a],f=b.dataRange.records[a],c=b.store.getCount(),e={isFirst:!a,isLast:a===c-1,item:g,record:f,recordIndex:a};b.syncItemRecord(e)},clearItems:function(){var a=this.dataItems,b;while(a.length){b=a.pop();Ext.fly(b).destroy()}},createDataItem:function(d,e){var a=this,g=a.store,h=a.gatherData(e,d),f=a.getMarkDirty(),c,b;b=Ext.Element.create(a.getItemElementConfig(d,h,g));c=b.dom;if(f){b.addCls(a.markDirtyCls)}c.setAttribute('data-viewid',a.id);c.setAttribute('data-recordid',e.internalId);c.setAttribute('data-recordindex',d);return b},doClear:function(){this.clearItems();this.callParent()},resetSelection:function(a){this.setItemSelection(a,!1)},doRefresh:function(h){var a=this,g=a.dataRange.records,b=g.length,c=a.dataItems.length,f=a.getScrollable(),e,d;if(f&&h){f.scrollTo(0,0)}++a.refreshCounter;if(!b){a.doClear()}else {e=a.saveFocusState();a.hideEmptyText();a.resetSelection(g);if(c>b){a.removeItems(b,c);c=b}else if(c<b){a.renderItems(c,b)}for(d=0;d<c;++d){a.changeItem(d)}if(a.hasSelection()){a.setItemSelection(a.getSelections(),!0)}e()}},getFastItems:function(){return this.getRenderTarget().dom.childNodes},getItemElementConfig:function(d,c,e){var a=this,b={cls:a.baseCls+'-item '+(a.getItemClass(c)||''),html:a.renderItemTpl(d,c,e)};if(a.getItemsFocusable()){b.tabIndex=-1}return b},removeItems:function(c,e){var d=this,b=d.dataItems.splice(c,e-c),a;for(a=0;a<b.length;++a){Ext.fly(b[a]).destroy()}},renderItems:function(d,j){var a=this,e=a.dataItems,f=a.dataRange.records,i=a.getRenderTarget().dom,g=[d,0],b=a.dataItems[d]||null,h,c;if(f.length){a.hideEmptyText()}if(!b){b=a.findTailItem(!0);b=b&&b.el.dom}for(c=d;c<j;++c){g.push(h=a.createDataItem(c,f[c]).dom);i.insertBefore(h,b)}e.splice.apply(e,g)},renderItemTpl:function(d,a,e){var f=this.getItemTpl(),c=e.getData().items,b;a.xcount=typeof a.xcount==='number'?a.xcount:e.getCount();a.xindex=typeof a.xindex==='number'?a.xindex:d;b=f.apply(a,c,d+1,c.length);b=(b==null)?'':String(b);return b||this.getEmptyItemText()},syncItemRecord:function(c){var a=this,d=c.item,f=Ext.fly(d),b=c.record,g=a.store,e=c?c.recordIndex:g.indexOf(b),h=a.gatherData(b,e);d.innerHTML=a.renderItemTpl(e,h,g);d.setAttribute('data-recordid',b.internalId);d.setAttribute('data-recordindex',e);f.toggleCls(a.dirtyCls,b.dirty);f.toggleCls(a.selectedCls,a.getSelectable().isRowSelected(b))},traverseItem:function(b,f){var g=this,e=g.getRenderTarget().dom.childNodes,a=null,c,d;if(b){if(b.isElement){c=b.dom}else if(b.isWidget){c=b.el.dom}d=Array.prototype.indexOf.call(e,c);if(d>-1){a=e[d+f]||null;if(a){a=Ext.getCmp(a.id)||a}}}return a}}});Ext.define('Ext.dataview.ChipView',{extend:Ext.dataview.DataView,xtype:'chipview',classCls:Ext.baseCSSPrefix+'chipview',hasIconCls:Ext.baseCSSPrefix+'has-icon',closableCls:Ext.baseCSSPrefix+'closable',iconElCls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon',itemTpl:'<div class="'+Ext.baseCSSPrefix+'body-el">'+'<div class="{_chipIconCls}" style="{_chipIconStyle}"></div>'+'<div class="'+Ext.baseCSSPrefix+'text-el">'+'{_chipText}'+'</div>'+'<div class="'+Ext.baseCSSPrefix+'close-el '+Ext.baseCSSPrefix+'font-icon"></div>'+'</div>',config:{iconField:null,iconClsField:null,displayField:'text',closableField:null,closable:!0,closeHandler:null,scope:null,itemUi:null,displayTpl:null},listeners:{childtap:'onChipTap',scope:'this',priority:3000},getItemClass:function(e){var a=this,b=[a.callParent([e])],h=Ext.Chip.prototype.getClassCls(),i=h.length,f=a.getItemUi(),j=f&&f.length,c,d,g;for(c=0;c<i;c++){g=h[c];b.push(g);for(d=0;d<j;d++){b.push(g+'-'+f[d])}}if(a.hasIcon(e)){b.push(a.hasIconCls)}if(a.getChipClosable(e)){b.push(a.closableCls)}return b.join(' ')},onChipTap:function(d,b){var a=this,c=a.getCloseHandler();if(c&&b.event.getTarget('.'+Ext.baseCSSPrefix+'close-el')){return Ext.callback(c,a.getScope(),[a,b],0,a)}},prepareData:function(a,e,d){var b=this,c=b.getDisplayTpl();a._chipIconCls=b.getChipIconCls(a);a._chipIconStyle=b.getChipIconStyle(a);a._chipText=c?c.apply(a):a[b.getDisplayField()];return a},privates:{applyItemUi:function(a){return (typeof a==='string')?a.split(' '):Ext.Array.from(a)},updateItemUi:function(){this.doRefresh()},applyDisplayTpl:function(a){return Ext.XTemplate.get(a)},updateDisplayTpl:function(){if(!this.isConfiguring){this.refresh()}},getChipIconUrl:function(a){return Ext.resolveResource(a[this.getIconField()])},getChipIconStyle:function(b){var a=this.getChipIconUrl(b);return a?'background-image: url('+a+')':''},hasIcon:function(b){var a=this.getIconClsField();return this.getChipIconUrl(b)?!0:(a?!!b[a]:!1)},getChipIconCls:function(c){var a=this.getIconClsField(),b=a?c[a]:'';return this.iconElCls+' '+b},getChipClosable:function(b){var a=this.getClosableField();return a?!!b[a]:this.getClosable()},_onChildEvent:function(b,a){if(!this.ownerField||a.target!==this.ownerField.inputElement.dom){return this.callParent([b,a])}return {}},syncEmptyState:function(){var a=this.ownerField;if(a){a.syncEmptyState();a.syncLabelPlaceholder(!1)}},syncItemRecord:function(a){var b=this,c=a.record,d=a?a.recordIndex:b.store.indexOf(c),e=b.gatherData(c,d);a.item.className=b.getItemClass(e);b.callParent([a])}}});Ext.define('Ext.dataview.IndexBar',{extend:Ext.Component,alternateClassName:'Ext.IndexBar',xtype:'indexbar',cachedConfig:{letters:'ABCDEFGHIJKLMNOPQRSTUVWXYZ'},config:{animation:!0,autoHide:!1,dynamic:!1,listPrefix:null,indicator:!0},eventedConfig:{direction:'vertical'},top:0,bottom:0,left:0,right:0,inheritUi:!0,autoHideCls:Ext.baseCSSPrefix+'autohide',classCls:Ext.baseCSSPrefix+'indexbar',horizontalCls:Ext.baseCSSPrefix+'horizontal',indexedCls:Ext.baseCSSPrefix+'indexed',indexedHorizontalCls:Ext.baseCSSPrefix+'indexed-horizontal',indexedVerticalCls:Ext.baseCSSPrefix+'indexed-vertical',indexedNoAutoHideCls:Ext.baseCSSPrefix+'indexed-no-autohide',indicatorCls:Ext.baseCSSPrefix+'indexbar-indicator',pressedCls:Ext.baseCSSPrefix+'pressed',verticalCls:Ext.baseCSSPrefix+'vertical',element:{reference:'element',cls:Ext.baseCSSPrefix+'unselectable',children:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el'}]},initialize:function(){var a=this,b=a.bodyElement;a.callParent();b.addClsOnClick(a.pressedCls);b.on({tap:'onTap',touchstart:'onTouchStart',touchend:'onTouchEnd',mouseover:'onMouseOver',mouseout:'onMouseOut',drag:'onDrag',dragEnd:'onDragEnd',scope:a})},getVertical:function(){return this.getDirection()==='vertical'},setVertical:function(a){return this.setDirection(a?'vertical':'horizontal')},onAdded:function(b,c){var a=this;b.el.addCls(a.indexedCls);a.parentListeners=b.on({pinnedfooterheightchange:'onPinnedFooterHeightChange',pinnedheaderheightchange:'onPinnedHeaderHeightChange',verticaloverflowchange:'onVerticalOverflowChange',destroyable:!0,scope:a});a.callParent([b,c])},onRemoved:function(c){var b=this,a=b.parent;Ext.destroy(b.parentListeners);if(a&&!a.destroying&&!a.destroyed){a.el.removeCls(b.indexedCls)}b.callParent([c])},privates:{parentListeners:null,onDrag:function(a){this.trackMove(a,!1)},onDragEnd:function(c){var a=this,b=a.getIndicator();a.trackMove(c,!0);if(b&&a.indicator){a.indicator.hide()}},onMouseOver:function(){var a=this;a.$isMouseOver=!0;if(a.shouldAutoHide('over')){a.bodyElement.show()}},onMouseOut:function(){var a=this;a.$isMouseOver=!1;if(a.shouldAutoHide('out')){a.bodyElement.hide()}},onPinnedFooterHeightChange:function(b,a){this.setBottom(a)},onPinnedHeaderHeightChange:function(b,a){this.setTop(a)},onTap:function(a){a.stopPropagation()},onTouchStart:function(b){var a=this;a.$isPressing=!0;a.pageBox=a.bodyElement.getBox();a.onDrag(b);if(a.shouldAutoHide('press')){a.bodyElement.show()}},onTouchEnd:function(b){var a=this;a.$isPressing=!1;if(a.shouldAutoHide('release')){a.bodyElement.hide()}a.onDragEnd(b)},onVerticalOverflowChange:function(a){this.setRight(a.getScrollable().getScrollbarSize().width)},scrollToClosestByIndex:function(j){var i=this,c=i.parent,l=j.toLowerCase(),k=c.getStore(),g=k.getGroups(),m=g.length,b,f,d,a,h,e;for(d=0;d<m;d++){b=g.getAt(d);f=b.getGroupKey().toLowerCase();if(f>=l){a=b;break}a=b}if(a){e=a.first();if(!c.getInfinite()){h=c.itemFromRecord(e).$header}c.ensureVisible(e,{animation:i.getAnimation(),item:h,align:{y:'start'}})}},shouldAutoHide:function(a){var c=this,d=c.getAutoHide(),b=!1;if(d){if(d==='pressed'||!Ext.os.is.Desktop){b=a==='press'||a==='release'}else {b=a==='over'||(a==='release'&&!c.$isMouseOver)||(a==='out'&&!c.$isPressing)}}return b},syncIndicatorPosition:function(j,a,q){var d=this,p=d.getIndicator(),r=d.getDirection(),o=d.renderElement,c=d.bodyElement,b=d.indicator,m=d.indicatorInner,i=c.getFirstChild(),k=c.getLastChild(),n,l,e,f,h,g;if(p&&b){b.show();if(r==='vertical'){g=b.getHeight();n=c.getWidth();e=c.getMargin('lr');f=i.getY();h=k.getY();if(j.y<f){a=i}else if(j.y>h){a=k}if(q){m.setHtml(a.getHtml().toUpperCase())}b.setTop(a.getY()-o.getY()-(g/2)+(a.getHeight()/2));b.setRight(e+n)}else {g=b.getWidth();e=c.getMargin('tb');l=c.getHeight();f=i.getX();h=k.getX();if(j.x<f){a=i}else if(j.x>h){a=k}b.setLeft(a.getX()-o.getX()-(g/2)+(a.getWidth()/2));b.setBottom(e+l)}m.setHtml(a.getHtml().toUpperCase())}},trackMove:function(g,h){var b=this,f=b.bodyElement,c=b.pageBox||(b.pageBox=b.el.getBox()),d=Ext.util.Point.fromEvent(g),a,e;if(b.getDirection()==='vertical'){if(d.y>c.bottom||d.y<c.top){return}a=Ext.Element.fromPoint(c.left+(c.width/2),d.y);e=a&&a.getParent()===f}else {if(d.x>c.right||d.x<c.left){return}a=Ext.Element.fromPoint(d.x,c.top+(c.height/2));e=a&&a.getParent()===f}if(a&&e){if(b.getIndicator()){b.syncIndicatorPosition(d,a,e)}if(h||b.getDynamic()){b.scrollToClosestByIndex(a.dom.innerHTML)}}},updateAutoHide:function(e){var a=this,d=a.parent.el,c=a.autoHideCls,b=a.indexedNoAutoHideCls;a.bodyElement.setVisibilityMode(Ext.Element.OPACITY);if(e){a.addCls(c);a.bodyElement.hide();d.removeCls(b)}else {a.removeCls(c);a.bodyElement.show();d.addCls(b)}},updateDirection:function(j){var a=this,i=a.verticalCls,h=a.horizontalCls,g=a.indexedVerticalCls,f=a.indexedHorizontalCls,c,b,e,d;if(j==='vertical'){c=h;b=i;e=f;d=g}else {c=i;b=h;e=g;d=f}a.element.replaceCls(c,b);a.bodyElement.replaceCls(c,b);a.parent.element.replaceCls(e,d)},updateIndicator:function(b){var a=this,c={cls:a.indicatorCls};if(b&&b!==!0){c=Ext.apply(c,b)}if(b){a.indicator=a.el.appendChild(c);a.indicatorInner=a.indicator.appendChild({cls:a.indicatorCls+'-inner'});a.indicator.hide(!1)}else if(a.indicator){a.indicator.destroy();a.indicatorInner.destroy();a.indicator=a.indicatorInner=null}},updateLetters:function(b){var c=this.bodyElement,d=b.length,a;c.setHtml('');if(b){for(a=0;a<d;a++){c.createChild({cls:Ext.baseCSSPrefix+'indexbar-item',html:b[a]})}}},updateListPrefix:function(a){if(a&&a.length){this.bodyElement.createChild({html:a},0)}},updateUi:function(c,a){var b=this,f=b.parent,d=f.element,e=b.indexedCls;if(a){d.removeCls(a,e)}if(c){d.addCls(c,e)}b.callParent([c,a])}}});Ext.define('Ext.dataview.ListItem',{extend:Ext.dataview.DataItem,alternateClassName:'Ext.dataview.component.ListItem',xtype:'listitem',mixins:[Ext.dataview.Disclosable,Ext.mixin.Toolable,Ext.dataview.Pinnable],classCls:[Ext.baseCSSPrefix+'listitem',Ext.baseCSSPrefix+'container',Ext.baseCSSPrefix+'component'],classClsRoot:!0,inheritUi:!0,items:null,updateRecord:function(b){var a=this;if(!a.destroying&&!a.destroyed){a.callParent([b]);a.syncDisclosure(b)}},doDestroy:function(){this.mixins.toolable.doDestroy.call(this);this.callParent()},privates:{invokeToolHandler:function(a,b,d,e,c){if(this.invokeDisclosure(a,b,c)){return !1}return a.invokeToolHandler(a,b,d,e,c)}}});Ext.define('Ext.layout.HBox',{extend:Ext.layout.Box,alias:'layout.hbox',config:{vertical:!1}});Ext.define('Ext.dataview.NestedList',{alternateClassName:'Ext.NestedList',extend:Ext.Container,xtype:'nestedlist',config:{backText:'Back',useTitleAsBackText:!0,updateTitleText:!0,displayField:'text',loadingText:'Loading...',emptyText:'No items available.',onItemDisclosure:!1,allowDeselect:!1,useToolbar:null,toolbar:{docked:'top',xtype:'titlebar',ui:'light',inline:!0},title:'',layout:{type:'card',animation:{type:'slide',duration:250,direction:'left'}},store:null,detailContainer:undefined,detailCard:null,backButton:{hidden:!0},listConfig:null,variableHeights:!1,lastNode:null,lastActiveList:null,ui:null,clearSelectionOnListChange:!0},baseCls:Ext.baseCSSPrefix+'nested-list',listMode:'title',constructor:function(a){if(Ext.isObject(a)){if(a.getTitleTextTpl){this.getTitleTextTpl=a.getTitleTextTpl}if(a.getItemTextTpl){this.getItemTextTpl=a.getItemTextTpl}}this.callParent([a])},changeListMode:function(d){var a=this,c=a.getStore(),b=c&&c.getRoot();if(d===b){a.listMode='title'}else if(d.parentNode===b){a.listMode='node'}else {a.listMode='deep'}},onChildInteraction:function(){if(this.isGoingTo){return !1}},applyDetailContainer:function(a){if(!a){a=this}return a},updateDetailContainer:function(a,b){if(a){a.on('beforeactiveitemchange','onBeforeDetailContainerChange',this);a.on('activeitemchange','onDetailContainerChange',this)}},onBeforeDetailContainerChange:function(){this.isGoingTo=!0},onDetailContainerChange:function(){this.isGoingTo=!1},onChildTap:function(d,a){var b=this,e=b.hasListeners,c=a.record;if(b.onChildInteraction(d,a)===!1){return !1}if(e.childtap){a.list=d;b.fireEvent('childtap',b,a)}if(e.itemtap){b.fireEvent('itemtap',b,d,a.viewIndex,a.child,c,a.event)}if(c.isLeaf()){if(e.leafchildtap){a.list=d;b.fireEvent('leafchildtap',b,a)}if(e.leafitemtap){b.fireEvent('leafitemtap',b,d,a.viewIndex,a.child,c,a.event)}b.goToLeaf(c)}else {this.goToNode(c)}},onBeforeSelect:function(){this.fireEvent.apply(this,[].concat('beforeselect',this,Array.prototype.slice.call(arguments)))},onContainerTap:function(){this.fireEvent.apply(this,[].concat('containertap',this,Array.prototype.slice.call(arguments)))},onSelect:function(){var a=Array.prototype.slice.call(arguments);this.fireEvent.apply(this,[].concat('select',this,a));this.onSelectionChange(a)},onDeselect:function(){var a=Array.prototype.slice.call(arguments);this.fireEvent.apply(this,[].concat('deselect',this,a));this.onSelectionChange(a)},onSelectionChange:function(a){this.fireEvent.apply(this,[].concat('selectionchange',this,a))},onChildDoubleTap:function(d,a){var b=this,c=b.hasListeners;if(c.childdoubletap){a.list=d;b.fireEvent('childdoubletap',b,a)}if(c.itemdoubletap){b.fireEvent('itemdoubletap',b,d,a.viewIndex,a.child,a.record,a.event)}},onStoreBeforeLoad:function(){var a=this.getLoadingText();if(a){this.setMasked({xtype:'loadmask',message:a})}this.fireEvent.apply(this,[].concat('beforeload',this,Array.prototype.slice.call(arguments)))},onStoreLoad:function(a,e,c,d,b){this.setMasked(!1);this.fireEvent.apply(this,[].concat('load',this,Array.prototype.slice.call(arguments)));if(a.indexOf(this.getLastNode())===-1){this.goToNode(a.getRoot())}},onBackTap:function(){var a=this,g=a.getLastNode(),c=a.getDetailCard(),e=c&&a.getActiveItem()===c,d=a.getLayout(),b=d?d.getAnimation():null,f=a.getLastActiveList();if(!b||!(b&&b.isAnimating)){this.fireAction('back',[this,g,f,e],'doBack',null,null,'after')}},doBack:function(a,e,b,f){var d=a.getLayout(),c=d?d.getAnimation():null;if(f&&b){if(c){c.setReverse(!0)}a.setActiveItem(b);a.setLastNode(e.parentNode);a.syncToolbar()}else {a.goToNode(e.parentNode)}},updateData:function(a){if(!this.getStore()){this.setStore(new Ext.data.TreeStore({root:a}))}},applyStore:function(a){if(a){if(Ext.isString(a)){a=Ext.data.StoreManager.get(a)}else {if(!(a instanceof Ext.data.TreeStore)){a=Ext.factory(a,Ext.data.TreeStore,null)}}}return a},storeListeners:{rootchange:'onStoreRootChange',load:'onStoreLoad',beforeload:'onStoreBeforeLoad'},updateStore:function(c,a){var d=this,b=this.storeListeners;b.scope=d;if(a&&Ext.isObject(a)&&a.isStore){if(a.autoDestroy){a.destroy()}a.un(b)}if(c){c.on(b);d.goToNode(c.getRoot())}},onStoreRootChange:function(b,a){this.goToNode(a)},applyDetailCard:function(a,b){return Ext.factory(a,Ext.Component,a===null?b:undefined)},applyBackButton:function(b){var a=this.getToolbar();return !a?!1:Ext.factory(b,Ext.Button,this.getBackButton())},updateBackButton:function(b,c){var a=this;if(b){b.on('tap',a.onBackTap,a);b.setText(a.getBackText());if(a.$backButtonContainer){a.$backButtonContainer.insert(0,b)}else {a.getToolbar().insert(0,b)}}else if(c){c.destroy()}},applyToolbar:function(a){var b;if(a&&a.splitNavigation){Ext.apply(a,{docked:'top',xtype:'titlebar',ui:'light'});b=(a.splitNavigation===!0)?{}:a.splitNavigation;this.$backButtonContainer=this.add(Ext.apply({xtype:'toolbar',docked:'bottom',hidden:!0,ui:'dark'},b))}return Ext.factory(a,Ext.TitleBar,this.getToolbar())},updateToolbar:function(a,b){var c=this;if(a){a.setTitle(c.getTitle());if(!a.getParent()){c.add(a)}}else if(b){b.destroy()}},updateUseToolbar:function(a,b){if(!a){this.setToolbar(!1)}},updateTitle:function(b){var a=this,c=a.getBackButton();if(a.getUpdateTitleText()){if(a.listMode==='title'){a.setToolbarTitle(b)}else if(c&&a.getUseTitleAsBackText()&&a.listMode==='node'){c.setText(b)}}else {a.setToolbarTitle(b)}},getItemTextTpl:function(a){return '{'+this.getDisplayField()+'}'},getTitleTextTpl:function(a){return '{'+this.getDisplayField()+'}'},renderTitleText:function(a,c){var b;if(!a.titleTpl){a.titleTpl=Ext.create('Ext.XTemplate',this.getTitleTextTpl(a))}if(a.isRoot()){b=this.getTitle();return (c&&b==='')?this.getInitialConfig('backText'):b}return a.titleTpl.applyTemplate(a.data)},goToNode:function(b){var a=this,f,h,g,k,e,i,j,d,c;if(!b){return}f=a.getActiveItem();h=a.getDetailCard();g=h&&a.getActiveItem()===h;k=a.goToNodeReverseAnimation(b);e=a.firstList;i=a.secondList;j=a.getLayout();d=j?j.getAnimation():null;if(b.isLeaf()){throw new Error('goToNode: passed a node which is a leaf.')}if(b===a.getLastNode()&&!g){return}if(g){if(d){d.setReverse(!0)}c=a.getLastActiveList();c.getStore().setNode(b);b.expand();a.setActiveItem(c)}else {if(d){d.setReverse(k)}if(e&&i){f=a.getActiveItem();a.setLastActiveList(f);c=(f===e)?i:e;c.getStore().setNode(b);b.expand();a.setActiveItem(c);if(a.getClearSelectionOnListChange()){c.deselectAll()}}else if(e){a.setLastActiveList(a.getActiveItem());a.setActiveItem(a.getList(b));a.secondList=a.getActiveItem()}else {a.setActiveItem(a.getList(b));a.firstList=a.getActiveItem()}}a.fireEvent('listchange',a,a.getActiveItem());a.setLastNode(b);a.changeListMode(b);a.syncToolbar()},goToLeaf:function(h){var a=this,c,b,g,f,e,d;if(!h.isLeaf()){throw new Error('goToLeaf: passed a node which is not a leaf.')}c=a.getDetailCard();b=a.getDetailContainer();g=b===a;f=a.getLayout();e=f?f.getAnimation():!1;if(c){if(b.getItems().indexOf(c)===-1){b.add(c)}if(g){d=a.getActiveItem();if(d instanceof Ext.dataview.List){a.setLastActiveList(d)}a.setLastNode(h)}if(e){e.setReverse(!1)}b.setActiveItem(c);a.syncToolbar()}},syncToolbar:function(i){var a=this,f=a.getDetailCard(),b=a.getLastNode(),h=i||(f&&(a.getActiveItem()===f)),d=(h)?b:b.parentNode,c=a.getBackButton(),g=a.getToolbar(),e;if(!g){return}if(c){e=g.getInitialConfig('splitNavigation');if(e){a.$backButtonContainer[d?'show':'hide']()}c[d?'show':'hide']();if(d&&a.getUseTitleAsBackText()){c.setText(a.renderTitleText(b.parentNode,!0))}}if(b){a.setToolbarTitle(a.renderTitleText(b))}},updateBackText:function(b){var a=this.getBackButton();if(a){a.setText(b)}},goToNodeReverseAnimation:function(b){var a=this.getLastNode();if(!a){return !1}return (!a.contains(b)&&a.isAncestor(b))?!0:!1},getList:function(c){var a=this,d=new Ext.data.NodeStore({recursive:!1,node:c,rootVisible:!1,model:a.getStore().getModel(),proxy:'memory'}),b;c.expand();b=Ext.create(Ext.Object.merge({xtype:'list',pressedDelay:250,autoDestroy:!0,store:d,onItemDisclosure:a.getOnItemDisclosure(),variableHeights:a.getVariableHeights(),emptyText:a.getEmptyText(),selectable:{deselectable:a.getAllowDeselect()},listeners:{scope:a,childdoubletap:'onChildDoubleTap',beforeselectionchange:'onBeforeSelect',containertap:'onContainerTap',select:'onSelect',deselect:'onDeselect',childtap:{fn:'onChildTap',priority:1000},childtouchstart:{fn:'onChildInteraction',priority:1000}},itemTpl:'<span<tpl if="leaf == true"> class="x-list-item-leaf"</tpl>>'+a.getItemTextTpl(c)+'</span>'},a.getListConfig()));a.relayEvents(b,['activate']);return b},privates:{setToolbarTitle:function(b){var c=this,a=c.getToolbar();if(a){a.setTitle(b)}}}});Ext.define('Ext.dataview.listswiper.Item',{extend:Ext.Container,xtype:'listswiperitem',classCls:Ext.baseCSSPrefix+'listswiperitem',config:{leftActions:null,rightActions:null,undo:{lazy:!0,$value:{xtype:'button',text:'Undo',touchAction:{panX:!1,panY:!1}}},action:null,state:null,translationTarget:null},autoSize:null,initialize:function(){this.callParent();this.ownerCmp.on({scope:this,destroy:'onItemDestroy',removed:'onItemDestroy'})},applyUndo:function(b){var a=this.getAction();return Ext.apply({},a&&a.undoable,b)},onItemDestroy:function(b){var c=this,a=c.owner;a.destroyItem(b)},invokeAction:function(a,e){var d=this,g=d.owner,c=g.cmp,b=d.ownerCmp,h=a[e],f={item:b,record:b&&b.getRecord(),action:a};c.fireEvent('itemaction'+e,c,f);return Ext.callback(h,a.getScope&&a.getScope()||a.scope,[c,f],0,d)},updateState:function(b,a){if(a){this.removeCls(Ext.baseCSSPrefix+a)}if(b){this.addCls(Ext.baseCSSPrefix+b)}},onDragStart:Ext.emptyFn,onDragMove:Ext.emptyFn,onDragEnd:Ext.emptyFn});Ext.define('Ext.dataview.listswiper.Accordion',{extend:Ext.dataview.listswiper.Item,xtype:'listswiperaccordion',classCls:Ext.baseCSSPrefix+'listswiperaccordion',cls:Ext.baseCSSPrefix+'item-no-tap',config:{bodyOffset:null,actionDefaults:{cls:Ext.baseCSSPrefix+'listswiperaction',xtype:'button',iconAlign:'top'},actionUI:'square',singleActionDefaults:{},multiActionDefaults:{},undo:{cls:Ext.baseCSSPrefix+'listswiperundoable',ui:'undo',docked:'right',ignoreDefaults:!0},thresholds:null,scaleDrag:!0,swipeToCommit:!0,side:null},layout:{type:'hbox',align:'stretch'},template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el',children:[{reference:'leftElement',cls:Ext.baseCSSPrefix+'listswiperaccordion-wrapper '+Ext.baseCSSPrefix+'listswiperaccordion-wrapper-left'},{reference:'rightElement',cls:Ext.baseCSSPrefix+'listswiperaccordion-wrapper '+Ext.baseCSSPrefix+'listswiperaccordion-wrapper-right'}]}],scrollDock:null,constructor:function(b){var a=this;a.left={name:'left',isLeft:!0,items:[]};a.right={name:'right',isLeft:!1,items:[]};a.callParent([b])},initialize:function(){var a=this,b=a.getTranslationTarget();a.callParent();b.on({scope:a,tap:'onDismissTap'})},destroy:function(){var a=this,b=a.getTranslationTarget();if(a.$undoTimer){Ext.unraf(a.$undoTimer)}b.un({scope:a,tap:'onDismissTap'});a.callParent()},applyLeftActions:function(a){this.addActions('left',a)},applyRightActions:function(a){this.addActions('right',a)},applySide:function(a){this.side=a&&this[a];return a},getButtonBackgroundColor:function(a){var c=a.$action,b=a[c.backgroundColorEl||'innerElement'];return b.getStyle('backgroundColor')},addActions:function(a,f){var b=this,e,g,d,c;a=b[a];a.el=a.isLeft?b.leftElement:b.rightElement;a.multiple=f.length>1;g=a.multiple?b.getMultiActionDefaults():b.getSingleActionDefaults();a.el.toggleCls(b.baseCls+'-multiple',a.multiple);a.el.toggleCls(b.baseCls+'-single',!a.multiple);for(e=0;e<f.length;e++){d=b.createActionItem(Ext.apply({},f[e],g));d.$side=a;c=b.add(d);c.addUi(this.getActionUI());c.$action=d;c.$originalHandler=c.getHandler();c.setHandler(b.onActionTap.bind(b,d));a.items.push(c)}},createActionItem:function(a){return Ext.apply({},a,this.getActionDefaults())},getSwipeRange:function(){var a=this,d=a.side,c=a.owner,b=c.getSwipeMax();return a.itemWidth*(b[d.multiple?'multiple':'single']/100)},onActionTap:function(b,c,a){var e=this,d=e.getState();if(d!=='dragpeek'){a.stopPropagation();this.commit(a,b,c)}},onDismissTap:function(){var a=this,c=a.owner,b=c.getDismissOnTap();if(b){a.dismiss()}},onRender:function(){var a=this,b=a.ownerCmp;a.itemWidth=b.el.measure('w');a.syncSides()},updateSide:function(c,d){var a=this,b=a.getLayout();a.el.replaceCls(d,c,a.baseCls+'-side');if(c==='left'){b.setPack('start')}else {b.setPack('end')}},updateState:function(b,d){var a=this,e=a.side,c=a.getDefaultButton();a.callParent([b,d]);if(e.multiple){a.el.toggleCls(a.baseCls+'-collapsed',b==='dragcommit');if(b==='dragcommit'){c.el.setStyle({'flex-basis':e.maxActionWidth+'px'})}else {c.setStyle({'flex-basis':null})}if(d==='dragcommit'&&a.isDragging){a.el.addCls(a.baseCls+'-was-collapsed')}else {a.el.removeCls(a.baseCls+'-was-collapsed')}}},privates:{destroyItem:function(){var a=this,b=a.owner,c=a.ownerCmp;if(!a.destroyed){a.animating=!1;a.el.removeCls(a.baseCls+'-was-collapsed');b.destroyItem(c)}},animateItem:function(f,e){var a=this,b,g,d,c;e=e||{};b=a.side;g=this.getTranslationTarget();d=e.duration||150;return new Ext.Promise(function(h){a.animating=!0;a.offset=b.isLeft?f:-f;c=function(){if(!a.destroyed){a.animating=!1;a.el.removeCls(a.baseCls+'-was-collapsed')}h()};if(g.dom){if(b.el.dom){b.el.animate({preserveEndState:!0,duration:d,to:{width:f}})}g.animate({preserveEndState:!0,duration:d,to:{transform:{translateX:a.offset}},callback:c})}else {c()}})},commit:function(k,c,b){var a=this,h=a.owner,j,g,e,d,i,f;c=c||a.getDefaultAction();b=b||a.getDefaultButton();j=c.undoable;g=b.$originalHandler;a.setAction(c);a.$precommitResult=d=a.invokeAction(c,'precommit');if(g){a.snapback().then(function(){Ext.callback(g,b.getScope(),[c,k],0,b)}).then(function(){a.destroyItem()})}else {if(!j){a.dismiss()}else {i=a.add(a.getUndo());i.addUi(b.getUi());a.bodyElement.on({scope:a,tap:'onDismissTap'});if(a.$undoTimer){Ext.unraf(a.$undoTimer)}a.$undoTimer=Ext.raf(function(){a.$undoTimer=null;a.setState('undo');f=a.getButtonBackgroundColor(b);if(f){a.el.setStyle('backgroundColor',f)}i.setHandler(a.onUndoTap.bind(a));e=h.getCommitDelay();if(e){if(d&&d.then){d.then(function(){h.dismissAllTask.delay(e)})}else {h.dismissAllTask.delay(e)}}})}}},onUndoTap:function(){this.undo()},undo:function(){var a=this,c=a.getAction(),b=a.$precommitResult;a.setState('open');if(b&&b.then){b.then(function(){a.$precommitResult=null;a.undo()});return}a.snapback().then(function(){a.invokeAction(c,'revert')}).then(function(){a.destroyItem()})},dismiss:function(){var a=this,c=a.getAction(),b=a.$precommitResult;if(b&&b.then){b.then(function(){a.$precommitResult=null;a.dismiss()});return}if(c){a.snapback().then(function(){a.invokeAction(c,'commit')}).then(function(){a.destroyItem()})}else {a.snapback(!0)}},onDragStart:function(b){var a=this,c=a.getState();if(a.animating||c==='undo'){return}b.claimGesture();a.initialOffset=a.offset||0;a.startX=b.getX()-a.el.getX()-a.initialOffset;a.isDragging=!0;a.syncState(b.deltaX)},onDragMove:function(a){if((this.getState())==='undo'){return}a.preventDefault();this.syncState(a.deltaX)},onDragEnd:function(c){var a=this,b=a.getState();c.preventDefault();a.isDragging=!1;if(b==='dragcommit'){a.commit(c)}else if(b==='dragopen'){a.open()}else if(b==='undo'){return}else {a.snapback(!0)}},getDefaultButton:function(a){var b;a=a||this.side;b=a.items;return b[a.isLeft?0:b.length-1]},getDefaultAction:function(b){var a=this.getDefaultButton(b);return a&&a.$action},getRenderTarget:function(a){var b=a&&a.$side;if(b){return b.el}return this.callParent(arguments)},open:function(){return this.animateItem(this.side.naturalWidth)},snapback:function(c){var b=this,a=b.animateItem(0);return c?a.then(function(){b.destroyItem()}):a},syncSides:function(){var a=this;a.syncSide('left');a.syncSide('right')},syncSide:function(a){var b=this,c=b.getThresholds(),h=b.itemWidth,j=a==='left'?b.leftElement:b.rightElement,i=j.dom.childNodes,d=0,f,k,g,e,m,l;a=b[a];k=this.getDefaultButton(a);j.addCls(b.baseCls+'-measure');for(e=0;e<i.length;e++){m=Ext.get(i[e]);g=m.measure('w');if(g>d){d=g}}l=a.naturalWidth=d*i.length;a.maxActionWidth=d;if(c&&c.open){a.openThreshold=(c.open/100)*h}else {a.openThreshold=d}if(c&&c.commit){a.commitThreshold=(c.commit/100)*h}else {a.commitThreshold=Math.min(0.95*h,l*1.4)}j.removeCls(b.baseCls+'-measure');if(a.multiple){f=b.getButtonBackgroundColor(k);if(f){a.el.setStyle('backgroundColor',f)}}},syncState:function(f){var a=this,o=a.owner,m=a.itemWidth,k=a.getSwipeToCommit(),n=a.getScaleDrag(),l=a.initialOffset+f,b=this[(l<0?'right':'left')],p=n?Math.max(1,Math.min(3,Math.abs((b.isLeft?0:1)-(a.startX/m))*3)):1,c=a.offset=a.initialOffset+(f*p),j=a.side,h=o.getDirectionLock(),d,e,i,g;if(this.left.items.length===0||this.right.items.length===0){h=!1}if(b.items.length===0||(j&&(b.name!==j.name&&h))){c=a.offset=a.initialOffset+(f*0.1);if(b.items.length===0){a.setSide(b.name)}a.setState('draglocked')}else {a.setSide(b.name);e=a.getSwipeRange();i=b.openThreshold;g=b.commitThreshold;d=(b.isLeft?Math.abs(Math.max(0,c)):Math.abs(Math.min(0,c)));if(d<=i){a.setState('dragpeek')}else if(d<=g||!k){a.setState('dragopen')}else {a.setState('dragcommit')}if(b.isLeft){c=Math.min(c,e)}else {c=Math.max(c,-e)}}a.setBodyOffset(c)},updateBodyOffset:function(a){var b=this,d=b.side,c=b.getTranslationTarget();c.setStyle('transform','translateX('+a+'px)');d.el.setWidth(Math.abs(a))}}});Ext.define('Ext.dataview.listswiper.ListSwiper',{extend:Ext.plugin.Abstract,alias:'plugin.listswiper',config:{left:[],right:[],dismissOnTap:!0,dismissOnScroll:!0,commitDelay:0,widget:{xtype:'listswiperaccordion'},swipeMax:{single:50,multiple:90},directionLock:!0,target:null},shadowCls:Ext.baseCSSPrefix+'listswiper-shadow',init:function(b){var a=this,c=b.getScrollable();a.items=[];b.on({scope:this,add:'onItemAdd'});b.el.on({scope:this,dragstart:'onDragStart',drag:'onDragMove',dragend:'onDragEnd'});if(c){c.setX(!1)}a.dismissAllTask=new Ext.util.DelayedTask(a.dismissAll,a);a.updateDismissOnScroll(a.getDismissOnScroll())},destroy:function(){var a=this.cmp;a.un({scope:this,add:'onItemAdd'});a.el.un({scope:this,dragstart:'onDragStart',drag:'onDragMove',dragend:'onDragEnd'});this.callParent()},createWidget:function(d){var a=this,c=a.getLeft(),b=a.getRight();return Ext.apply({owner:a,defaults:a.defaults,leftActions:c,rightActions:b},d)},onScrollStart:function(){if(this.getDismissOnScroll()){this.dismissAll()}},onItemAdd:function(b,a){a.setTouchAction({panX:!1})},onItemUpdateData:function(a){Ext.asap(this.resyncItem,this,[a])},onDragStart:function(g){var c=this,f=c.cmp,h=f.mapToRecord(g),i,d,e,a,b;if(!c.hasActions()||(g.absDeltaX<g.absDeltaY)){return}if(h){a=f.mapToItem(h);if(a){b=a.$swiperWidget;if(!b){b=c.createWidget(c.getWidget());b.ownerCmp=a;i=c.getTarget();if(a.isGridRow||(i==='outer')){e=a.el;d=a.el.first()}else {e=a.bodyElement;d=a.hasToolZones?e.child('.'+Ext.baseCSSPrefix+'tool-dock'):a.innerElement}d.addCls(c.shadowCls);b.translationTarget=d;e=d.parent();a.$swiperWidget=b=Ext.create(b);e.insertFirst(b.el);b.setRendered(!0);if(f.infinite){f.stickItem(a,!0)}this.items.push(a)}b.onDragStart(g)}}},onDragMove:function(c){var d=this,e=d.cmp,b=e.mapToItem(c),a;if(b){a=b.$swiperWidget;if(!d.hasActions()||!a){return}a.onDragMove(c)}},onDragEnd:function(c){var d=this,e=d.cmp,b=e.mapToItem(c),a;if(b){a=b.$swiperWidget;if(!d.hasActions()||!a){return}a.onDragEnd(c)}},updateDismissOnScroll:function(d){var c=this.getCmp(),a,b;if(this.isConfiguring||!c){return}a=c.getScrollable();if(!a){return}b={scrollstart:'onScrollStart',scope:this};if(d===!0){a.on(b)}else {a.un(b)}},hasActions:function(){return this.getLeft()||this.getRight()},privates:{destroyItem:function(a){var b=this,d=b.cmp,c=a.$swiperWidget,e=b.items.indexOf(a);if(e!==-1){b.items.splice(e,1)}if(c){c.destroy()}a.$swiperWidget=null;if(d.infinite&&!a.destroyed){d.stickItem(a,null)}},dismissAll:function(){var a=this;a.items.map(function(a){return a.$swiperWidget}).forEach(function(a){a.dismiss()})}}});Ext.define('Ext.dataview.listswiper.Stepper',{extend:Ext.dataview.listswiper.Item,xtype:'listswiperstepper',config:{iconCls:null,text:null,undo:{docked:'right',ui:'listswiperstepper-trigger'},step:null,side:null,animation:!0},classCls:Ext.baseCSSPrefix+'listswiperstepper',layout:{type:'hbox',align:'center'},scrollDock:null,sideCls:{left:Ext.baseCSSPrefix+'side-left',right:Ext.baseCSSPrefix+'side-right'},tpl:'<div class="'+Ext.baseCSSPrefix+'listswiperstepper-text">{text}</div>',template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el',children:[{reference:'iconWrapElement',cls:Ext.baseCSSPrefix+'icon-wrap-el',uiCls:'icon-wrap-el',children:[{reference:'iconElement',cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'}]},{reference:'innerElement',cls:Ext.baseCSSPrefix+'inner-el',uiCls:'inner-el'}]}],initialize:function(){this.callParent();this.bodyElement.on('tap','onTap',this)},onRender:function(){this.steps=this.buildSteps()},applyAnimation:function(a){if(a===!0){a={duration:500,easing:{type:'ease-out'}}}return a},updateTranslationTarget:function(a){this.translatable=Ext.Factory.translatable({element:a},'csstransform')},revert:function(b){var a=this,c=a.getAction();a.invokeAction(c,'revert');a.finalize(b)},dismiss:function(b){var a=this,c=a.getAction(),d=a.getState();if(d==='undo'){a.invokeAction(c,'commit')}a.finalize(b)},sortFn:function(a,b){return b.x-a.x},buildSteps:function(){var c=this,g=c.ownerCmp,i=g.el,h=c.getLeftActions()||{},f=c.getRightActions()||{},b=i.getWidth(),d={r:[],l:[]},a=0,e=function(g,h,f){var e=Ext.util.Format.defaultValue(f.threshold,'25%'),c=parseInt(e,10);if(isNaN(c)){return}if(typeof e==='string'&&e.indexOf('%')!==-1){c=b*c/100}a+=c;d[g].push({action:f,side:g==='r'?'right':'left',tx:g==='r'?-b:b,x:a,key:f.key||h})};Ext.Object.each(h,e.bind(this,'l'));a=0;Ext.Object.each(f,e.bind(this,'r'));return d},findStep:function(f,h){var i=this,a={step:null,active:!0},c=i.steps[f>0?'l':'r'],e=c.length,g=Math.abs(f),d,b;for(b=e-1;!a.step&&b>=0;--b){d=c[b];if(d.x<g){a.step=d}}if(!a.step&&h&&e>0){a.step=c[0];a.active=!1}return a},updateStep:function(a,b){var c=this,e=(a&&a.action),d=(b&&b.action),i=e&&e.cls,h=d&&d.cls,g=a&&('swipe-action-'+a.key),f=b&&('swipe-action-'+b.key);if(a){c.setSide(a.side)}c.replaceCls(h,i);c.replaceCls(f,g,Ext.baseCSSPrefix);c.syncStep()},updateSide:function(d,e){var a=this,b=a.sideCls,c=a.getLayout();a.replaceCls(b[e],b[d]);if(c.setPack){c.setPack(d==='right'?'end':'start')}},onDragStart:function(a){a.stopPropagation()},onDragMove:function(g){var a=this,i=a.owner,h=i.getDirectionLock(),e=a.getState(),f=a.getStep(),d=a.translatable,c=g.deltaX,b;if(e==='undo'){return}if(e==='consumed'){a.setState('reaquired');d.stopAnimation()}b=a.findStep(c,!0);if(h&&(b.step&&f)&&(b.step.side!==f.side)){a.setState('overdrag');b.step=null}else {a.setState(b.step?b.active?'active':'peek':'overdrag');a.setStep(b.step||null)}d.translateAxis('x',b.step?c:c*0.1);g.stopPropagation()},onDragEnd:function(d){var a=this,c=a.getState(),e=a.getStep(),f=d.deltaX,b;if(c==='undo'||c==='consumed'){return}d.stopPropagation();b=a.findStep(f,!1);if(!b.step||b.step.side!==e.side){a.finalize(!0);return}a.setStep(b.step);a.commit(!0)},commit:function(g){var a=this,h=a.getStep(),c=h.action,e=a.owner,i=a.translatable,d,b,f;a.setAction(c);b=a.invokeAction(c,'precommit');if(c.undoable){a.setState('undo');f=a.add(a.getUndo());f.setHandler(a.onUndoTap.bind(a));a.setSide(f.getDocked()==='left'?'right':'left');i.translateAxis('x',h.tx,a.getAnimation());d=e.getCommitDelay();if(d){if(b&&b.then){b.then(function(){e.dismissAllTask.delay(d)})}else {e.dismissAllTask.delay(d)}}}else {if(b&&b.then){b.then(a.invokeAction.bind(a,c,'commit')).then(a.finalize.bind(a,g))}else {a.invokeAction(c,'commit');a.finalize(g)}}},finalize:function(c){var a=this,d=a.getAnimation(),b=a.translatable;b.stopAnimation();a.setState('consumed');if(!c){a.doFinalize();return}if(b.x!==0){b.on({animationend:'doFinalize',single:!0,scope:a});b.translateAxis('x',0,c&&d)}},doFinalize:function(){var a=this,d=a.owner,b=a.ownerCmp,e=a.getState(),c=a.translatable;if(e==='consumed'){c.translateAxis('x',0,!1);if(!a.destroyed&&b){d.destroyItem(b)}}},syncStep:function(){var c=this,i=c.ownerCmp,e=i.getRecord(),f=c.getStep(),h=null,d='',g='',a,b;if(f){a=f.action;if(a){h=a.ui;d=a.iconCls;g=a.text;b=a.data}b=Ext.apply({text:g},b,e?e.getData(!0):{});this.setUi(h);this.setIconCls(d);c.setData(b)}else {this.setUi(null);this.setIconCls(null);c.setData(null)}},updateIconCls:function(b,a){this.iconElement.replaceCls(a,b)},privates:{getRenderTarget:function(){return this.innerElement},onTap:function(d){var a=this,c=a.owner,b=c.getDismissOnTap();d.stopPropagation();if(b){a.dismiss()}},onUndoTap:function(b,a){a.stopPropagation();this.revert()}}});Ext.define('Ext.tip.ToolTip',{extend:Ext.Panel,xtype:'tooltip',floated:!0,hidden:!0,shadow:!0,border:!0,bodyBorder:!1,anchor:!1,closeAction:'hide',config:{align:'l-r?',alignDelegate:null,allowOver:null,anchorToTarget:!0,autoHide:!0,delegate:null,dismissDelay:5000,hideDelay:300,mouseOffset:[15,18],quickShowInterval:250,showDelay:500,showOnTap:null,target:null,trackMouse:!1},classCls:Ext.baseCSSPrefix+'tooltip',headerCls:Ext.baseCSSPrefix+'tooltipheader',titleCls:Ext.baseCSSPrefix+'tooltiptitle',toolCls:[Ext.baseCSSPrefix+'paneltool',Ext.baseCSSPrefix+'tooltiptool'],closeToolText:null,constructor:function(a){this.currentTarget=new Ext.dom.Fly();this.callParent([a])},getRefOwner:function(){var a=this.getTarget();return (a&&a.isComponent)?a:this.callParent()},updateAnchor:function(){this.doRealignToTarget()},applyAlign:function(a){var b=a[a.length-1];if(b!=='?'&&b!=='!'){a+='?'}return a},updateAlign:function(){this.doRealignToTarget()},updateAllowOver:function(b){var a=this;a.overListeners=Ext.destroy(a.overListeners);if(b){a.overListeners=a.el.on({mouseenter:'onTipOver',mouseleave:'onTipOut',scope:a,destroyable:!0})}},applyTarget:function(a){if(a){if(!a.isComponent){a=Ext.get(a.el||a)}}return a},updateTarget:function(b,c){var a=this;if(c){c.un('destroy',a.destroy,a)}if(b){if(b.isComponent){a.targetElement=b.element;b.on('destroy',a.destroy,a)}else {a.targetElement=Ext.get(b)}}else {a.targetElement=null}a.attachTargetListeners()},updateTrackMouse:function(a){if(a){this.setAllowOver(a)}},updateDisabled:function(b,d){var a=this,c;a.callParent([b,d]);if(b){a.clearTimers();a.hide();c=null}a.attachTargetListeners(c)},updateShowOnTap:function(a){if(!this.isConfiguring){this.attachTargetListeners()}},realignToTarget:function(){this.doRealignToTarget()},showBy:function(a,f,e){var b=this,d=a,c=b.getAlignDelegate();if(a.isEvent){b.alignToEvent(a)}else {if(a.isWidget){b.updateCurrentTarget(a.element.dom)}else if(a.isElement){b.updateCurrentTarget(a.dom)}else if(a.nodeType){b.updateCurrentTarget(a)}if(c){a=Ext.fly(a);d=a.down(c,!0)||a.up(c,b.targetElement,!0)}b.callParent([d,f||b.getAlign(),e])}},beforeShow:function(b){var a=this,c=a.callParent(arguments);if(c!==!1){if(!b.alignment&&(a.pointerEvent||a.getTarget())){b.alignment={component:a.targetElement,alignment:a.getAlign(),options:{overlap:a.getTrackMouse()&&!a.getAnchor()}}}a.clearTimer('dismiss')}},afterShow:function(){var a=this;a.callParent();a.postprocessShow();a.mousedownListener=Ext.on({mousedown:'onDocMouseDown',scope:a,destroyable:!0})},hide:function(){var a=this;a.clearTimer('hide');a.clearTimer('dismiss');a.callParent();a.lastHidden=new Date();a.updateCurrentTarget(null);Ext.destroy(a.mousedownListener)},doDestroy:function(){var a=this;a.clearTimers();a.setTarget(null);a.destroyMembers('mousedownListener','overListeners');a.callParent()},privates:{allowRealign:!0,onDocMouseDown:function(b){var a=this,c=a.getDelegate();if(b.within(a.el.dom)){if(b.pointerType!=='mouse'&&a.getAllowOver()){a.clearTimer('dismiss')}}else if(!a.getClosable()){if(b.within(a.targetElement)&&(!c||b.getTarget(c,a.targetElement))){a.delayHide()}else {a.disable();a.enableTimer=Ext.defer(a.enable,100,a)}}},onTargetOver:function(c){var a=this,e=a.targetElement,d=a.getDelegate(),f=a.currentTarget,b;if(a.getDisabled()){return}if(a.getAllowOver()&&a.el.contains(c.target)){return}if(d){if(f.contains(c.target)){return}b=c.getTarget(d,e);if(b&&c.getRelatedTarget(d)===b){return}}else if(!e.contains(c.relatedTarget)){b=e.dom}else {return}if(b){a.handleTargetOver(c,b)}else if(f.dom){a.handleTargetOut()}},handleTargetOver:function(d,b){var a=this,c=a.hasListeners;a.pointerEvent=d;a.updateCurrentTarget(b);if(a.isVisible()){if(c.beforeshow&&a.fireEvent('beforeshow',a)===!1){return a.hide()}a.clearTimer('hide');a.clearTimer('dismiss');a.showByTarget(b);if(c.show){a.fireEvent('show',a)}a.postprocessShow()}else {a.delayShow(b)}},postprocessShow:function(){var a=this,b=a.getDismissDelay();a.clearTimer('show');if(b&&a.getAutoHide()){a.dismissTimer=Ext.defer(a.hide,b,a)}a.toFront()},onTargetTap:function(a){if(a.pointerType!=='mouse'&&Ext.fly(a.target).isVisible(!0)){this.onTargetOver(a)}},onTargetOut:function(a){if(this.currentTarget.dom&&!this.currentTarget.contains(a.relatedTarget)){if(!this.getAllowOver()&&a.within(this.el,!0)){this.handleTargetOut()}}},handleTargetOut:function(){var a=this;if(a.showTimer){a.clearTimer('show')}if(a.isVisible()&&a.getAutoHide()){a.delayHide()}},onTipOver:function(){this.clearTimer('hide');this.clearTimer('dismiss')},onTipOut:function(a){if(!this.currentTarget.dom||!a.getPoint().isContainedBy(this.currentTarget.getRegion())){this.handleTargetOut()}},onMouseMove:function(b){var a=this,c=a.getDismissDelay();if(!a.el.contains(b.target)){a.pointerEvent=b}if(a.isVisible()&&a.currentTarget.contains(b.target)){if(c&&a.getAutoHide()!==!1){a.clearTimer('dismiss');a.dismissTimer=Ext.defer(a.hide,c,a)}if(a.getTrackMouse()){a.alignToEvent(b)}}},delayShow:function(b){var a=this;a.clearTimer('hide');if(a.getHidden()&&!a.showTimer){if(a.getDelegate()&&Ext.Date.getElapsed(a.lastHidden)<a.getQuickShowInterval()){a.showByTarget(b)}else {a.showTimer=Ext.defer(a.showByTarget,(!a.pointerEvent||a.pointerEvent.pointerType==='mouse')?a.getShowDelay():0,a,[b])}}else if(!a.getHidden()&&a.getAutoHide()!==!1){a.showByTarget(b)}},showByTarget:function(c){var a=this,b=a.getAnchorToTarget()&&!a.getTrackMouse();a.lastShowWasPointer=!b;a.showBy(b?c:a.pointerEvent,a.getAlign(),{overlap:a.getTrackMouse()&&!a.getAnchor()})},delayHide:function(){var a=this;if(!a.isHidden()&&!a.hideTimer){a.clearTimer('dismiss');a.hideTimer=Ext.defer(a.hide,a.getHideDelay(),a)}},alignToEvent:function(f){var a=this,d={overlap:a.getTrackMouse()&&!a.getAnchor()},b=a.getMouseOffset(),e=f.getPoint().adjust(-Math.abs(b[1]),Math.abs(b[0]),Math.abs(b[1]),-Math.abs(b[0])),c=a.getAnchor()?a.getAlign():null;if(!c&&b){if(b[0]>0){if(b[1]>0){c='tl-br?'}else {c='bl-tr?'}}else {if(b[1]>0){c='tr-bl?'}else {c='br-tl?'}}}if(a.isVisible()){a.clearTimer('hide');a.alignTo(e,c,d)}else {a.showBy(e,c,d)}},_timerNames:{},clearTimer:function(b){var a=this,d=a._timerNames,c=d[b]||(d[b]=b+'Timer'),e=a[c];if(e){Ext.undefer(e);a[c]=null;if(b==='show'&&a.isHidden()){a.updateCurrentTarget(null)}}},clearTimers:function(){var a=this;a.clearTimer('show');a.clearTimer('dismiss');a.clearTimer('hide');a.clearTimer('enable')},clipTo:function(a,c){var b;if(a.isRegion){b=a}else {b=(a.isComponent?a.el:Ext.fly(a)).getConstrainRegion()}this.callParent([b,c]);this.tipElement.clipTo(b,c)},doRealignToTarget:function(){var a=this,b=a.currentTarget,c=b&&b.dom;a.clearTimers();if(a.allowRealign&&a.isVisible()&&c){a.realign(null,a.getAlign())}},updateCurrentTarget:function(c){var a=this,b=a.currentTarget,d=b.dom;b.attach(c);if(!a.isConfiguring){a.fireEvent('hovertarget',a,b,d)}},attachTargetListeners:function(b){var a=this,c;a.targetListeners=Ext.destroy(a.targetListeners);if(b===null){return}b=a.targetElement;if(b){c={mouseover:'onTargetOver',mouseout:'onTargetOut',mousemove:'onMouseMove',scope:a,destroyable:!0};if(a.getShowOnTap()){c.tap='onTargetTap'}a.targetListeners=b.on(c)}}}});Ext.define('Ext.dataview.plugin.ItemTip',{extend:Ext.tip.ToolTip,alias:'plugin.dataviewtip',anchor:!0,showOnTap:!0,defaultBindProperty:'data',config:{cmp:null,constrainToView:!0},listeners:{beforeshow:'onBeforeShow',show:'onShow',scope:'this'},init:Ext.emptyFn,destroy:function(){this.parent=null;this.callParent()},applyData:function(a){if(a.isEntity){a=a.getData(!0)}return a},updateCmp:function(b){var a=this,c=b.getScrollable();a.dataview=a.parent=b;b.on('initialize','onDataViewInitialized',a);if(c){c.on('scroll','onDataViewScroll',a)}},onDataViewInitialized:function(b){var a=this;a.setTarget(b.bodyElement);a.itemSelector=b.itemSelector;if(!a.getDelegate()){a.setDelegate(a.itemSelector)}},onBeforeShow:function(){var a=this,b=a.getViewModel(),c=a.getCmp().createLocation(a.currentTarget);if(c.record){if(a.getBind()){b.set('record',c.record);b.set('recordIndex',a.location.recordIndex);b.notify()}else {a.setData(c.record.data)}}},onShow:function(){this.checkScrollVisibility()},onDataViewScroll:function(){this.checkScrollVisibility()},privates:{initId:function(a){if(a.id==='dataviewtip'){a.id=this.id=this.getId()}else {this.callParent([a])}},checkScrollVisibility:function(){var a=this,b,c;if(a.isVisible()&&a.getConstrainToView()){a.realignToTarget();c=a.getAnchor()||a.el;b=a.dataview.getScrollable().isInView(c);if(!(b.x&&b.y)){a.hide()}}},applyBind:function(f,d){var a=this,e=a.getCmp(),c=a.getViewModel(),b=e.lookupViewModel();if(c){c.setParent(b)}else {a.setViewModel(Ext.Factory.viewModel({parent:b,data:{}}))}a.callParent([f,d])}}});Ext.define('Ext.dataview.plugin.ListPaging',{extend:Ext.plugin.Abstract,alias:'plugin.listpaging',alternateClassName:'Ext.plugin.ListPaging',config:{autoPaging:!1,bufferZone:8,loadMoreText:'Load More...',noMoreRecordsText:'No More Records',loadMoreCmp:{xtype:'component',cls:Ext.baseCSSPrefix+'listpaging',scrollDock:'end',hidden:!0,inheritUi:!0},loading:!1},loadTpl:'<div class="'+Ext.baseCSSPrefix+'loading-spinner">'+'<span class="'+Ext.baseCSSPrefix+'loading-top"></span>'+'<span class="'+Ext.baseCSSPrefix+'loading-right"></span>'+'<span class="'+Ext.baseCSSPrefix+'loading-bottom"></span>'+'<span class="'+Ext.baseCSSPrefix+'loading-left"></span>'+'</div>'+'<div class="'+Ext.baseCSSPrefix+'message">{message}</div>',init:function(b){var a=this;b.on('storechange','onStoreChange',a);a.bindStore(b.getStore());a.addLoadMoreCmp()},destroy:function(){Ext.destroy(this._storeListeners);this.callParent()},updateAutoPaging:function(c){var b=this.getCmp().getScrollable(),a={scroll:'onScroll',scope:this};if(c){b.on(a);this.ensureBufferZone()}else {b.un(a)}},bindStore:function(b){var a=this,c={beforeload:'onStoreBeforeLoad',load:'onStoreLoad',filter:'onFilter',destroyable:!0,scope:a};a._storeListeners=Ext.destroy(a._storeListeners);if(b){a._storeListeners=b.on(c)}},disableDataViewMask:function(){var a=this.cmp;this._listMask=a.getLoadingText();a.setLoadingText(null)},enableDataViewMask:function(){var a;if(this._listMask){a=this.cmp;a.setLoadingText(this._listMask);delete this._listMask}},applyLoadMoreCmp:function(b,a){return Ext.updateWidget(a,b,this,'createLoadMoreCmp')},createLoadMoreCmp:function(a){return Ext.apply({html:this.getLoadTpl().apply({message:this.getLoadMoreText()})},a)},updateLoadMoreCmp:function(a,b){Ext.destroy(b);if(a){a.el.on({tap:'loadNextPage',scope:this})}},onScroll:function(){this.ensureBufferZone()},updateLoading:function(a){this.getLoadMoreCmp().toggleCls(this.loadingCls,a)},onStoreChange:function(b,a){this.bindStore(a)},onStoreBeforeLoad:function(a){if(a.getCount()===0){this.getLoadMoreCmp().hide()}},onStoreLoad:function(){this.syncState()},onFilter:function(a){this.getLoadMoreCmp.setVisible(a.getCount()===0)},addLoadMoreCmp:function(){var a=this;if(!a.isAdded){a.cmp.add(a.getLoadMoreCmp());a.isAdded=!0;a.syncState()}},storeFullyLoaded:function(){var a=this.cmp.getStore(),b=a?a.getTotalCount():null;return b!==null?b<=(a.currentPage*a.getPageSize()):!1},loadNextPage:function(){var a=this,b=a.cmp;if(a.storeFullyLoaded()){return}a.setLoading(!0);a.disableDataViewMask();a.currentScrollToTopOnRefresh=b.getScrollToTopOnRefresh();b.setScrollToTopOnRefresh(!1);b.getStore().nextPage({addRecords:!0})},privates:{loadingCls:Ext.baseCSSPrefix+'loading',ensureBufferZone:function(){var a=this,b=a.cmp;if(b.isPainted()){a.ensureBufferZone=a.doEnsureBufferZone;a.doEnsureBufferZone();return}if(!a.waitingForPainted){a.waitingForPainted=!0;b.on({painted:{single:!0,fn:function(){delete a.waitingForPainted;a.ensureBufferZone()}}})}},doEnsureBufferZone:function(){var c=this,f=c.cmp,a=f.getStore(),h=f.getScrollable(),d=a&&a.getCount(),g=c.getBufferZone(),e,b,j,i;if(!a||!d||!h||c.getLoading()){return}i=Math.min(Math.max(0,d-g),d-1);e=f.mapToItem(a.getAt(i));b=e&&e.element.getBox();if(!b){return}j=g>0?b.top+1:b.bottom;if(j>h.getElement().getBox().bottom){return}c.loadNextPage()},getLoadTpl:function(){return Ext.XTemplate.getTpl(this,'loadTpl')},syncState:function(){var a=this,e=a.cmp,b=a.getLoadMoreCmp(),d=a.storeFullyLoaded(),c=e.store,f=d?a.getNoMoreRecordsText():a.getLoadMoreText();if(c&&c.getCount()){b.show()}a.setLoading(!1);b.setHtml(a.getLoadTpl().apply({message:f}));b.setDisabled(d);if(a.currentScrollToTopOnRefresh!==undefined){e.setScrollToTopOnRefresh(a.currentScrollToTopOnRefresh);delete a.currentScrollToTopOnRefresh}a.enableDataViewMask();if(a.getAutoPaging()){a.ensureBufferZone()}}}});Ext.define('Ext.dataview.plugin.SortableList',{extend:Ext.plugin.Abstract,alias:'plugin.sortablelist',alternateClassName:'Ext.plugin.SortableList',config:{list:null,source:{xclass:'Ext.drag.Source',handle:'.'+Ext.baseCSSPrefix+'list-sortablehandle',constrain:{vertical:!0},proxy:{getElement:function(a){return this.getSource().list.mapToItem(a.initialEvent).el}}}},init:function(a){this.setList(a)},updateList:function(b){var a;if(b){a=this.getSource();if(a){a.list=b;a.setElement(b.getRenderTarget())}}},applySource:function(a){if(a){a=Ext.create(a)}return a},updateSource:function(a,c){var b=this.getList();Ext.destroy(c);if(a){a.on({scope:this,dragstart:'onDragStart',dragmove:'onDrag',dragend:'onDragEnd'});if(b){a.list=b;a.setElement(b.getRenderTarget())}}},onDragStart:function(d,a){var c=this.getList(),b=c.mapToItem(a.initialEvent);b.addCls(Ext.baseCSSPrefix+'item-no-ripple');b.translate(0,0);a.item=b;a.startIndex=b.getRecordIndex();a.listTop=c.getRenderTarget().getTop();a.itemHeight=b.el.measure('h');a.halfHeight=a.itemHeight/2;c.stickItem(b,{floated:!0})},onDrag:function(f,a){var b=this.getList(),e=Math.max(0,a.cursor.current.y-a.listTop),c=b.bisectPosition(e+a.halfHeight),d={};d[c]=a.itemHeight;a.index=c;b.setGaps(d)},onDragEnd:function(m,d){var i=this,b=i.getList(),a=d.item,k=d.item.el.dom.style,e=b.mapToItem(d.index),l,h,g,j,c,f;a.getTranslatable().on('animationend',function(){if(i.destroyed){return}g=b.getStore();j=d.startIndex;c=e?e.getRecordIndex():b.getStore().getCount();f=a.getRecord();b.stickItem(a);b.setGaps(null);if(j!==c){g.insert(c,f);c=g.indexOf(f);a=b.mapToItem(f);b.fireEvent('dragsort',b,a,c)}a.removeCls(Ext.baseCSSPrefix+'item-no-ripple')},i,{single:!0});if(!e){h=b.mapToItem(d.index-1).$y1}else {h=e.$y0}l=a.element.getTop(!0);k.left=k.top='';a.translate(0,l);a.translate(null,h,{duration:100})}});Ext.define('Ext.dataview.pullrefresh.Item',{extend:Ext.Component,config:{lastUpdated:null,state:null,pull:null},privates:{clsMap:{loaded:Ext.baseCSSPrefix+'pullrefresh-loaded',loading:Ext.baseCSSPrefix+'pullrefresh-loading',pulling:Ext.baseCSSPrefix+'pullrefresh-pulling',holding:Ext.baseCSSPrefix+'pullrefresh-holding'},isLoading:function(a){a=a||this.getState();return a==='loading'||a==='loaded'},updateState:function(d){var c=this.el,b=this.clsMap,a;if(c){a=c.getClassMap(!1);delete a[b.loaded];delete a[b.loading];delete a[b.pulling];delete a[b.holding];a[b[d]]=1;c.setClassMap(a,!0)}}}});Ext.define('Ext.dataview.pullrefresh.Bar',{extend:Ext.dataview.pullrefresh.Item,xtype:'pullrefreshbar',baseCls:Ext.baseCSSPrefix+'pullrefreshbar',cachedConfig:{lastUpdatedDateFormat:'m/d/Y h:iA',lastUpdatedText:'Last Updated:\xa0',loadedText:'Loaded.',loadingText:'Loading...',mode:'message',pullText:'Pull down to refresh...',releaseText:'Release to refresh...'},hidden:!0,showInEmptyState:null,scrollDock:'start',template:[{cls:Ext.baseCSSPrefix+'font-icon '+Ext.baseCSSPrefix+'pullrefreshbar-arrow'},{cls:Ext.baseCSSPrefix+'pullrefreshbar-loading-wrap',children:[{cls:Ext.baseCSSPrefix+'pullrefreshbar-loading '+Ext.baseCSSPrefix+'loading-spinner',children:[{tag:'span',cls:Ext.baseCSSPrefix+'loading-top'},{tag:'span',cls:Ext.baseCSSPrefix+'loading-right'},{tag:'span',cls:Ext.baseCSSPrefix+'loading-bottom'},{tag:'span',cls:Ext.baseCSSPrefix+'loading-left'}]}]},{cls:Ext.baseCSSPrefix+'pullrefreshbar-info-wrap',children:[{reference:'infoMessageEl',cls:Ext.baseCSSPrefix+'pullrefreshbar-info-message'},{reference:'infoUpdatedEl',cls:Ext.baseCSSPrefix+'pullrefreshbar-info-updated'}]}],privates:{modeCls:Ext.baseCSSPrefix+'pullrefreshbar-mode',textMap:{loaded:'getLoadedText',loading:'getLoadingText',pulling:'getPullText',holding:'getReleaseText'},updateLastUpdated:function(a){var b=this,c=a?b.getLastUpdatedText()+Ext.util.Format.date(a,b.getLastUpdatedDateFormat()):a;b.infoUpdatedEl.setText(c)},updateMode:function(b,a){this.el.replaceCls(a,b,this.modeCls)},updateState:function(c){var a=this,b=a.textMap[c],d=b&&a[b]();a.infoMessageEl.setText(d||'');this.callParent(arguments)}}});Ext.define('Ext.dataview.pullrefresh.PullRefresh',{extend:Ext.plugin.Abstract,alias:'plugin.pullrefresh',alternateClassName:'Ext.plugin.PullRefresh',mixins:[Ext.mixin.ConfigProxy],proxyConfig:{widget:['lastUpdatedDateFormat','lastUpdatedText','loadedText','loadingText','pullText','releaseText']},config:{autoSnapBack:!0,mergeData:!0,overlay:!1,snappingAnimationDuration:300,activateOffset:0.75,widget:{lazy:!0,$value:{xtype:'pullrefreshbar'}},lastUpdated:new Date(),list:null,overshotMaxDistance:50,state:'pulling'},init:function(a){this.setList(a)},destroy:function(){this.setList(null);this.callParent()},createWidget:function(b){var a=this.mergeProxiedConfigs('widget',b);a.hidden=!0;return a},privates:{overlayCls:Ext.baseCSSPrefix+'pullrefresh-overlay',fetchLatest:function(){this.getList().getStore().fetch({page:1,start:0,callback:this.onLatestFetched,scope:this})},reset:function(){var b=this,a=b.getWidget();a.setHidden(!0);a.setHeight(null);a.setMinHeight(null);b.$measuredHeight=null},snapBack:function(e){var a=this,b=a.getWidget(),f=a.getState(),c=b.getHideAnimation(),d=a.getSnappingAnimationDuration();if(f==='loaded'||e){if(!c){b.el.animate({preserveEndState:!0,duration:d,to:{height:0},callback:function(){a.onSnapBackEnd(!0)}})}else {a.onSnapBackEnd()}}},onDragEnd:function(){var a=this,d=a.getState(),c=a.getWidget(),b=a.getOvershotMaxDistance();if(a.running){a.running=!1;if(d==='holding'){if(b){c.el.animate({duration:75,preserveEndState:!0,to:{height:a.$measuredHeight},callback:function(){a.setState('loading');a.fetchLatest()}})}else {a.setState('loading');a.fetchLatest()}}else {a.snapBack(!0,!1)}}},onDragMove:function(i){var b=this,k=b.getList(),d=b.getWidget(),j=k.el.getHeight(),c=b.$measuredHeight,f=b.getActivateOffset()*c,e=b.getOvershotMaxDistance(),a,h,g;if(b.running){i.stopEvent();a=i.getXY()[1]-b.startY;d.setHidden(a<=0);if(a>0&&a<c){b.setState('pulling');d.setHeight(a)}else if(e&&a>=c){g=j-c;h=((a-c)/g);d.setHeight(c+(h*e))}d.setPull(a/f);if(a>=f){b.setState('holding')}}},onDragStart:function(c){var b=this,e=b.getList(),a=b.getWidget(),d;if(b.running){c.stopEvent();return}if(!b.$measuredHeight){a.setHidden(!1);b.$measuredHeight=a.el.getHeight();a.setMinHeight(0);a.setHidden(!0)}d=c.deltaY;if(e.getScrollable().getPosition().y===0&&d>0&&d>c.deltaX){a.setHidden(!1);b.running=!0;a.setHeight(0);c.stopEvent()}},onLatestFetched:function(b,l,k){var a=this,j=a.getList(),g=j.getStore(),i,d,h,c,f,e;if(k){if(a.getMergeData()){h=g.getData();d=[];i=b.length;for(e=0;e<i;e++){c=b[e];f=h.getByKey(c.getId());if(f){f.set(c.getData())}else {d.push(c)}}g.insert(0,d)}else {g.loadRecords(b)}a.setLastUpdated(new Date())}a.setState('loaded');j.fireEvent('latestfetched',a,d||b);if(a.getAutoSnapBack()){a.snapBack(!0)}},onSnapBackEnd:function(c){var a=this,b=a.getWidget();if(c){b.hide(null);a.setState('pulling');a.reset()}else {b.hide();b.on('hide',function(){a.setState('pulling');a.reset()},a,{single:!0})}},onTouchStart:function(a){this.startY=a.getXY()[1]},updateLastUpdated:function(b){var a=this.getWidget();if(a){a.setLastUpdated(b)}},updateList:function(a,c){var b=this,d=b.widget;if(c){c.el.un({scope:b,touchstart:'onTouchStart',dragstart:'onDragStart',drag:'onDragMove',dragend:'onDragEnd'})}if(a){a.el.on({scope:b,touchstart:'onTouchStart',dragstart:'onDragStart',drag:'onDragMove',dragend:'onDragEnd'});if(d){a.insert(0,d)}}},updateOverlay:function(b){var a=this.getWidget();if(a){a.el.toggleCls(this.overlayCls,b);a.setTop(b?0:null)}},updateState:function(b){var a=this.getWidget();if(a){a.setState(b)}},applyWidget:function(b,a){return Ext.updateWidget(a,b,this,'createWidget')},updateWidget:function(b){var a=this,c,d;a.widget=b;if(b){d=a.getOverlay();a.updateOverlay(d);b.setLastUpdated(a.getLastUpdated());b.setState(a.getState());c=a.getList();if(c){c.insert(0,b)}}}}});Ext.define('Ext.dataview.pullrefresh.Spinner',{extend:Ext.dataview.pullrefresh.Item,xtype:'pullrefreshspinner',hideAnimation:{type:'popOut'},baseCls:Ext.baseCSSPrefix+'pullrefreshspinner',template:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-loading-wrap',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-main '+Ext.baseCSSPrefix+'shadow',reference:'bodyEl',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-loader-wrapper',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-arrow-wrapper',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-arrow-main',reference:'arrowEl'}]},{cls:Ext.baseCSSPrefix+'pullrefreshspinner-spinner-wrapper',reference:'spinnerEl',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-spinner-main',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-spinner-left',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-half-circle'}]},{cls:Ext.baseCSSPrefix+'pullrefreshspinner-spinner-right',children:[{cls:Ext.baseCSSPrefix+'pullrefreshspinner-half-circle'}]}]}]}]}]}]}],privates:{toggleDisplay:function(a){var b=this;b.arrowEl.setVisible(!a);b.spinnerEl.setVisible(a)},updatePull:function(a){var b=this,c=Math.floor(Math.min(a,3)*100)-110;b.bodyEl.setOpacity(Math.min(1,a));b.arrowEl.dom.style.transform='rotate('+c+'deg)'},updateState:function(b){var a=this;a.toggleDisplay(a.isLoading(b))}}});Ext.define('Ext.field.BoxLabelable',{extend:Ext.Mixin,mixinConfig:{id:'boxLabelable',after:{initElement:'afterInitElement'}},config:{boxLabel:null,boxLabelAlign:null},boxLabeledCls:Ext.baseCSSPrefix+'box-labeled',getBodyTemplate:function(){return [{reference:'boxWrapElement',cls:Ext.baseCSSPrefix+'box-wrap-el',children:[{reference:'boxElement',cls:Ext.baseCSSPrefix+'box-el',children:this.getBoxTemplate()},{tag:'label',reference:'boxLabelElement',cls:Ext.baseCSSPrefix+'box-label-el'}]}]},getBoxTemplate:Ext.emptyFn,updateBoxLabel:function(a){this.boxLabelElement.setHtml(a);this.el.toggleCls(this.boxLabeledCls,!!a)},updateBoxLabelAlign:function(b,a){var d=this,c=d.el;if(a){c.removeCls(Ext.baseCSSPrefix+'box-label-align-'+a)}if(b){c.addCls(Ext.baseCSSPrefix+'box-label-align-'+b)}},afterInitElement:function(){var a=this.inputElement;if(a){this.boxLabelElement.dom.setAttribute('for',a.id)}}});Ext.define('Ext.field.Checkbox',{extend:Ext.field.Input,alternateClassName:'Ext.form.Checkbox',xtype:['checkbox','checkboxfield'],mixins:[Ext.field.BoxLabelable],qsaLeftRe:/[[]/g,qsaRightRe:/[\]]/g,shareableName:!0,isCheckbox:!0,defaultBindProperty:'checked',twoWayBindable:{checked:1},publishes:{checked:1},config:{value:'',checked:!1},inputType:'checkbox',classCls:Ext.baseCSSPrefix+'checkboxfield',checkedCls:Ext.baseCSSPrefix+'checked',getBodyTemplate:function(){return this.mixins.boxLabelable.getBodyTemplate.call(this)},getBoxTemplate:function(){return [{reference:'iconElement',cls:Ext.baseCSSPrefix+'font-icon '+Ext.baseCSSPrefix+'icon-el',children:[this.getInputTemplate()]}]},getInputTemplate:function(){var a=this.callParent();a.listeners=a.listeners||{};a.listeners.change={fn:'onChange',delegated:!1};return a},getSubmitValue:function(){return this.getChecked()?Ext.isEmpty(this._value)?!0:this._value:null},serialize:function(){return this.getSubmitValue()},checkedRe:/^(true|1|on)/i,getChecked:function(){return !!this.inputElement.dom.checked},applyChecked:function(a){if(this.isConfiguring){this.originalState=a}return !!this.checkedRe.test(String(a))},updateChecked:function(b,d){var a=this,c;if(!a.$onChange){a.inputElement.dom.checked=b}a.toggleCls(a.checkedCls,b);if(a.initialized){c=b?'check':'uncheck';a.fireEvent(c,a);a.fireEvent('change',a,b,d)}a.setDirty(a.isDirty())},isChecked:function(){return this.getChecked()},isDirty:function(){return this.getChecked()!==this.originalState},check:function(){return this.setChecked(!0)},uncheck:function(){return this.setChecked(!1)},onChange:function(b){var a=this;a.$onChange=!0;a.setChecked(!!b.target.checked);delete a.$onChange},getSameGroupFields:function(){var b=this,c=b.lookupNameHolder(),a=b.name;if(!c){a=a.replace(b.qsaLeftRe,'\\[').replace(b.qsaRightRe,'\\]');return Ext.Viewport.query('checkboxfield[name='+a+']')}return c.lookupName(a)},getGroupValues:function(){var a=[];this.getSameGroupFields().forEach(function(b){if(b.getChecked()){a.push(b.getValue())}});return a},setGroupValues:function(a){this.getSameGroupFields().forEach(function(b){b.setChecked(a.indexOf(b.getValue())!==-1)});return this},resetGroupValues:function(){this.getSameGroupFields().forEach(function(a){a.setChecked(a.originalState)});return this},reset:function(){this.setChecked(this.originalState);return this},resetOriginalValue:function(){this.originalState=this.getChecked();this.setDirty(!1)},getRawValue:function(){return this.getChecked()},rawToValue:Ext.emptyFn});Ext.define('Ext.field.Manager',{mixinId:'fieldmanager',fillRecord:function(c){var b,a;if(c){b=this.getValues();for(a in b){if(b.hasOwnProperty(a)&&c.getField(a)){c.set(a,b[a])}}}return this},consumeRecord:function(a){var b=a&&a.data;if(b){this.setValues(b)}},setValues:function(d){var h=this.getFields(),f,a,b,g,e,c;d=d||{};for(f in d){if(d.hasOwnProperty(f)){a=h[f];b=d[f];if(a){if(Ext.isArray(a)){g=a.length;for(e=0;e<g;e++){c=a[e];if(c.isRadio){c.setGroupValue(b);break}else if(c.isCheckbox){if(Ext.isArray(b)){c.setChecked(b.indexOf(c._value)!==-1)}else {c.setChecked(b===c._value)}}else {if(Ext.isArray(b)){c.setValue(b[e])}}}}else {if(a.isRadio||a.isCheckbox){a.setChecked(b)}else {a.setValue(b)}}if(this.getTrackResetOnLoad&&this.getTrackResetOnLoad()){a.resetOriginalValue()}}}}return this},getValues:function(d,l){var j=this.getFields(),b={},i=Ext.isArray,m=d,e,c,h,a,f,n,g,k;if(Ext.isObject(d)){m=d.enabled;l=d.nameless;k=d.serialize}h=function(e,f){if((!l&&(!f||f==='null'))||e.isFile){return}c=(k||e.isCheckbox)?e.serialize():e.getValue();if(!(m&&e.getDisabled())){if(e.isRadio){if(e.isChecked()){b[f]=c}}else {a=b[f];if(!Ext.isEmpty(a)){if(!e.isCheckbox||e.isChecked()){if(!i(a)){a=b[f]=[a]}if(i(c)){a=b[f]=a.concat(c)}else {a.push(c)}}}else {b[f]=c}}}};for(f in j){if(j.hasOwnProperty(f)){e=j[f];if(i(e)){n=e.length;for(g=0;g<n;g++){h(e[g],f)}}else {h(e,f)}}}return b},getSubmitValues:function(a){return this.getValues(Ext.applyIf({serialize:!0},a))},reset:function(a){this.getFields(!1).forEach(function(b){b.reset();if(a){b.setError(null)}});return this},updateDisabled:function(a){this.getFields(!1).forEach(function(b){b.setDisabled(a)});return this},setErrors:function(f){var e=function(a,c){if(a){b=f[c];if(b===null||(Ext.isArray(b)&&b.length===0)){a.setError(null)}else {a.setError(b)}}},a,c,b,d,g;for(a in f){c=this.lookupName(a)||this.lookup(a);if(Ext.isArray(c)){for(d=0,g=c.length;d<g;d++){e(c[d],a)}}else {e(c,a)}}return this},clearErrors:function(){var c=this.getFields(!1),b,d,a;for(b=0,d=c.length;b<d;b++){a=c[b];if(a.getName()&&a.setError){a.setError(null)}}return this},getErrors:function(){var e={},c,b,f,d,a;c=this.getFields(!1).filter(function(a){return a.getName()});for(b=0,f=c.length;b<f;b++){d=c[b];a=d.getError();if(!a||!a.length){a=null}e[d.getName()]=a}return e},isValid:function(){var b=this.getFields(!1),a,c;for(a=0,c=b.length;a<c;a++){if(!b[a].isValid()){return !1}}return !0},validate:function(e){var b=this.getFields(!1),d=!0,a,c;for(a=0,c=b.length;a<c;a++){if(!b[a].validate(e)){d=!1}}return d},getFields:function(e,l){var j=l===!1?'>':'',k=j+'field'+(e?'[name='+e+']':''),a=this.query(k),h=e===!1,d,g,i,c,f,b;if(!a&&h){return []}else if(a&&!h){if(!e){d={};for(g=0,i=a.length;g<i;g++){c=a[g];f=c.getName();b=d[f];if(b){if(Ext.isArray(b)){b.push(c)}else {d[f]=[b,c]}}else {d[f]=c}}return d}else if(a.length<2){return a[0]}}return a},getFocusedField:function(){var c=this.getFields(!1),d=c.length,b,a;for(a=0;a<d;a++){b=c[a];if(b.hasFocus){return b}}return null},getNextField:function(){var b=this.getFields(!1),c=this.getFocusedField(),a;if(c){a=b.indexOf(c);if(a!==b.length-1){a++;return b[a]}}return !1},focusNextField:function(){var a=this.getNextField();if(a){a.focus();return a}return !1},getPreviousField:function(){var c=this.getFields(!1),b=this.getFocusedField(),a;if(b){a=c.indexOf(b);if(a!==0){a--;return c[a]}}return !1},focusPreviousField:function(){var a=this.getPreviousField();if(a){a.focus();return a}return !1}});Ext.define('Ext.mixin.FieldDefaults',{extend:Ext.Mixin,mixinConfig:{id:'fieldDefaults',before:{initInheritedState:'initInheritedState'}},initInheritedState:function(b){var c=this,a=c.fieldDefaults;if(a){b.fieldDefaults=a}}});Ext.define('Ext.field.Container',{extend:Ext.field.Field,xtype:['containerfield','fieldcontainer'],mixins:[Ext.field.Manager,Ext.mixin.ConfigProxy,Ext.mixin.FieldDefaults],config:{container:{xtype:'container',autoSize:null,defaultType:'textfield',defaults:{errorTarget:'parent'},layout:{type:'hbox'}}},proxyConfig:{container:{configs:['defaults','defaultType','items','layout','autoSize'],methods:['add','insert','remove','removeAll','getAt','child','down','query']}},bodyAlign:'stretch',classCls:Ext.baseCSSPrefix+'containerfield',isField:!1,isContainer:!0,isContainerField:!0,errorTpl:'<tpl if="count == 1">'+'<tpl for="errors">{label:htmlEncode}: {error:htmlEncode}</tpl>'+'<tpl elseif="count">'+'<ul class="{listCls}">'+'<tpl for="errors">'+'<li>{label:htmlEncode}: {error:htmlEncode}</li>'+'</tpl>'+'</ul>'+'</tpl>',doDestroy:function(){this.setContainer(null);this.callParent()},applyContainer:function(a,b){if(a){if(!a.isInstance){a=this.mergeProxiedConfigs('container',a);a.$initParent=this;a=Ext.create(a);delete a.$initParent}a.ownerCmp=this}return a},updateContainer:function(c,a){var b=this.bodyElement;if(a){b.removeChild(a.el);a.destroy()}if(c){b.appendChild(c.el)}},updateRecord:function(a){this.consumeRecord(a)},onFieldErrorChange:function(c){var e=this,f=e.getErrors(),h=e.getFields(),d,a,g,b;for(d in f){c=h[d];a=f[d];if(a){g=c.getLabel()||c.getPlaceholder()||c.getName();a=Ext.Array.from(a).map(function(a){return {label:g,error:a}});if(b){b=b.concat(a)}else {b=a}}}e.setError(b||null)},getRefItems:function(c){var b=[],a=this.getContainer();if(a){b.push(a);if(c&&a.getRefItems){b.push.apply(b,a.getRefItems(c))}}return b},getFocusEl:function(){var c=this.getFields(!1),e=c&&c.length,a,d,b;for(a=0;a<e;a++){d=c[a];b=d.getFocusEl();if(b){return b}}return this.callParent()},reset:function(a){if(a){this.setError(null)}return this.mixins.fieldmanager.reset.call(this,a)},setErrors:function(e){var d=this,f=d.getFields(),c,b,a;d.setError(null);for(c in e){b=f[c];if(b){a=e[c];if(a==null||(Ext.isArray(a)&&a.length===0)){b.setError(null)}else {b.setError(Ext.Array.from(a))}}}return d},isValid:function(){return this.mixins.fieldmanager.isValid.call(this)},validate:function(a){return this.mixins.fieldmanager.validate.call(this,a)},getFields:function(b,a){if(a==null){a=!1}return this.mixins.fieldmanager.getFields.call(this,b,a)}});Ext.define('Ext.field.FieldGroupContainer',{extend:Ext.field.Container,xtype:'groupcontainer',config:{vertical:!1,fieldsName:undefined,defaultFieldValue:'on'},delegate:'[isField]',shareableName:!0,container:{cls:Ext.baseCSSPrefix+'group-inner-container',layout:{type:'box'},defaults:{labelAlign:'right'}},verticalCls:Ext.baseCSSPrefix+'field-group-vertical',classCls:Ext.baseCSSPrefix+'field-group-container',defaultBindProperty:'value',initialize:function(){var a=this;a.callParent();a.on({change:'onGroupChange',delegate:a.delegate,scope:a});a.getContainer().on({add:'onGroupItemAdd',scope:a});a.validate();a.resetOriginalValue()},applyFieldsName:function(a){return a||this.getName()||this.getId()},updateVertical:function(a){this.getContainer().toggleCls(this.verticalCls,a)},updateFieldsName:function(f,e){var d=this.getGroupItems(),g=d.length,c,b,a;for(a=0;a<g;a++){c=d[a];b=c.getName();if(b===null||b===e){c.setName(f)}}},updateDefaultFieldValue:function(f,e){var d=this.getGroupItems(),g=d.length,c,b,a;for(a=0;a<g;a++){c=d[a];b=c.getValue();if(b===''||b===e){c.setValue(f)}}},getGroupItems:function(a){return this.query(this.delegate+(a||''))},getValue:function(a,b){return this.getValues(a,b)},setValue:function(b){var a=this;if(a.isEqual(b,a.getValue())){return a}a.setValues(b);return a},isEqual:function(a,b){return Ext.Object.equals(a,b)},isValid:function(){var b=this.getValue(),a=this.getRequired();if(a&&Ext.Object.isEmpty(b)){return !1}return !0},onGroupChange:function(){var a=this,b,c;if(a.isConfiguring||a.isDestructing()||a.suspendCheckChange){return}b=a.getValue();c=a.lastValue||a.originalValue;if(!a.isEqual(b,c)){a.lastValue=b;a.fireEvent('change',a,b,c);a.validate()}},initializeItemsConfig:function(a){var c,b;if(!a.isCheckbox){return}c=this.getFieldsName();b=this.getDefaultFieldValue();if(a.getName()===null){a.setName(c)}if(!a.getValue()){a.setValue(b)}},handleContainerAdd:function(e){var c=this,d=e.getInnerItems(),f=d.length,b,a;for(b=0;b<f;b++){a=d[b];if(a.isContainer){c.handleContainerAdd(a);a.on('add','onGroupItemAdd',c);continue}c.initializeItemsConfig(a)}},onGroupItemAdd:function(b,a){if(a.isContainer){this.handleContainerAdd(a);a.on('add','onGroupItemAdd',this);return}this.initializeItemsConfig(a)},validate:function(f){var b=this,d=!0,e,c,a;if(!b.getRequired()){return d}if(!b.getDisabled()||b.getValidateDisabled()){c=[];a=b.getValue();a=Ext.Object.isEmpty(a)?'':a;e=a===''||a==null;if(e){c.push(b.getErrorMessage()||b.getRequiredMessage())}else {a=b.parseValue(a,c);b.doValidate(a,c,f)}b.updateErrorMessage(c.join(''));if(c.length){d=!1}}return d}});Ext.define('Ext.field.CheckboxGroup',{extend:Ext.field.FieldGroupContainer,xtype:'checkboxgroup',isCheckboxGroup:!0,defaultType:'checkbox',delegate:'[isCheckbox]',instanceCls:Ext.baseCSSPrefix+'checkbox-group',setValue:function(g){var a=this,f,i,d,h,e,b,c;if(a.isEqual(g,a.lastValue)){return a}f=a.getGroupItems();i=f.length;a.suspendCheckChange=1;for(e=0;e<i;e++){d=f[e];h=d.getName();b=!1;if(g){c=g[h];if(Ext.isArray(c)){b=Ext.Array.contains(c,d.getValue())}else {b=c}}d.setChecked(b)}a.suspendCheckChange=0;a.onGroupChange();return a},getValue:function(){var g=this.getGroupItems(),h=g.length,b={},e,c,d,a,f;for(f=0;f<h;f++){e=g[f];c=e.getName();d=e.getValue();if(d&&e.getChecked()){if(b.hasOwnProperty(c)){a=b[c];if(!Ext.isArray(a)){a=b[c]=[a]}a.push(d)}else {b[c]=d}}}return b}});Ext.define('Ext.field.ChipViewNavigationModel',{extend:Ext.dataview.BoundListNavigationModel,alias:'navmodel.fieldchipview',privates:{getKeyNavCfg:function(c){var a=this,b;if(this.keyboard!==!1){b=(c.ownerField||c).getFocusEl();if(b){return {target:b,eventName:'keydown',processEvent:c.ownerField?a.processViewEvent:undefined,processEventScope:a,defaultEventAction:'stopEvent',"delete":a.onKeyDelete,backspace:a.onKeyDelete,right:a.onKeyRight,left:a.onKeyLeft,A:{ctrl:!0,handler:a.onSelectAllKeyPress},priority:1002,scope:a}}}},processViewEvent:function(c){var b=this,a=b.getView().ownerField;if(a){if(a.inputElement.dom.value.length||!a.getValueCollection().getCount()){b.clearLocation();return}}return c},onKeyLeft:function(b){var a=this,e=a.getView(),c=a.location,d={event:b};b.preventDefault();if(c){if(!c.isFirstDataItem()){if(!b.shiftKey){e.getSelectable().deselectAll()}a.movePrevious(d)}}else {a.setLocation(e.getLastDataItem(),d)}return !0},onKeyRight:function(b){var a=this,d=a.getView(),c=a.location;b.preventDefault();if(c){if(c.isLastDataItem()){d.getSelectable().deselectAll();a.clearLocation()}else {if(!b.shiftKey){d.getSelectable().deselectAll()}a.moveNext({event:b})}}return !0},onKeyDelete:function(a){var e=this.getView(),f=e.ownerField,c,d,b,g;if(f){c=e.getSelectable();d=c.getSelectedRecords();if(d.length){c.deselect(d);f.getValueCollection().remove(d);b=this.getLocation();if(b){g=b.isLast();if(g&&a.keyCode===a.DELETE){this.clearLocation()}else if(e.dataItems.length){c.select(b.refresh().record)}}}else if(a.keyCode===a.BACKSPACE){this.onKeyLeft(a)}}},onNavigate:function(b){var c=this.getView(),d=c.ownerField,a=this.getLocation;if(d){if(!a||!c.getSelectable().isSelected(a.record)){Ext.dataview.NavigationModel.prototype.onNavigate.call(this,b)}}else {this.callParent([b])}}}});Ext.define('Ext.field.trigger.Expand',{extend:Ext.field.trigger.Trigger,xtype:'expandtrigger',alias:'trigger.expand',classCls:Ext.baseCSSPrefix+'expandtrigger',isExpandTrigger:!0,handler:'onExpandTap',scope:'this'});Ext.define('Ext.field.Picker',{extend:Ext.field.Text,xtype:'pickerfield',config:{picker:{lazy:!0,$value:'auto'},floatedPicker:{lazy:!0,$value:null},edgePicker:{lazy:!0,$value:null},clearable:!1,matchFieldWidth:!0,floatedPickerAlign:'tl-bl?',pickerSlotAlign:'center',hideTrigger:!1,focusTrap:{lazy:!0,$value:{tabIndex:-1,cls:'x-hidden-clip'}}},triggers:{expand:{type:'expand'}},alignTarget:'bodyElement',keyMap:{scope:'this',DOWN:'onDownArrow',ESC:'onEsc'},keyMapTarget:'inputElement',autoComplete:!1,classCls:Ext.baseCSSPrefix+'pickerfield',initialize:function(){var a=this;a.callParent();Ext.on('hide','onGlobalHide',a);a.inputElement.on('click','onInputElementClick',a)},onFocusEnter:function(a){this.callParent([a]);if(Ext.isTouchMode()&&a.event.toElement===this.inputElement.dom){this.getFocusTrap().focus();this.expand()}},onFocusMove:function(c){var a=this,b;a.callParent([c]);if(Ext.isTouchMode()){b=a.getFocusTrap();if(c.fromElement===b.dom&&c.toElement===a.getFocusEl().dom){if(a.getEditable()){a.collapse()}else {b.focus();a.expand()}}}},onFocusLeave:function(a){this.callParent([a]);this.collapse()},onEsc:function(a){if(Ext.isIE){a.preventDefault()}if(this.expanded){this.collapse();a.stopEvent()}},onDownArrow:function(b){var a=this;if((b.time-a.lastDownArrow)>150){delete a.lastDownArrow}if(!a.expanded){b.stopEvent();a.onExpandTap();a.setPickerLocation(!0);a.lastDownArrow=b.time}else if(!b.stopped&&(b.time-a.lastDownArrow)<150){delete a.lastDownArrow}},setPickerLocation:Ext.emptyFn,updateHideTrigger:function(c){var a=this.getTriggers(),b=a&&a.expand;if(b){b.setHidden(c)}},applyPicker:function(a){var b=this,d={show:'onPickerShow',hide:'onPickerHide',scope:b},c=a,e;if(!c){c='auto'}else if(Ext.isObject(a)){c=null;if(!a.isWidget&&!a.xtype){e=a;c='auto'}}if(c){if(c==='auto'){c=b.getAutoPickerType()}if(c==='edge'){a=b.createEdgePicker(e)}else {a=b.createFloatedPicker(e);d.resize=d.hiddenchange='realignFloatedPicker'}}if(a.isWidget){a.ownerField=b}else {a=Ext.apply({ownerField:b},a);b.fireEvent('beforepickercreate',b,a);a=Ext.create(a)}b.pickerType=c||(a.isViewportMenu?'edge':'floated');b.fireEvent('pickercreate',b,a);a.on(d);return a},getAutoPickerType:function(){return Ext.platformTags.phone?'edge':'floated'},getRefItems:function(c){var d=this,b=d.callParent([c]),a=d.getConfig('picker',!1,!0);if(a){b.push(a);if(c){Ext.Array.push(b,a.getRefItems(c))}}return b},updatePicker:function(a){var b=this.getValue();if(a&&a.setValue&&b!=null){if(this.pickerType==='floated'||a.isPicker){a.setValue(b)}}},applyFocusTrap:function(b){var a=this.el.appendChild(Ext.dom.Element.create(b));a.$isFocusTrap=!0;return a},onResize:function(){var b=this,d=b.getConfig('picker',!1,!0),c=Ext.GlobalEvents,a;if(d&&b.pickerType==='floated'&&d.isVisible()){a=b.up('[scrollable]');if(a){a=a.getScrollable();c.suspendEvent('scroll');a.ensureVisible(b.el)}b.realignFloatedPicker();if(a){Ext.defer(c.resumeEvent,100,c,['scroll'])}}},realignFloatedPicker:function(b){var a=this;b=b||a.getConfig('picker',!1,!0);if(b&&b.isVisible()){if(a.getMatchFieldWidth()){b.setWidth(a[a.alignTarget].getWidth())}b.realign(a[a.alignTarget],a.getFloatedPickerAlign(),{minHeight:100});if(!Ext.keyboardMode){a.setPickerLocation()}}},onInputElementClick:function(b){var a=this;if(b.pointerType==='mouse'&&(!a.getEditable()&&!a.getReadOnly())){a[a.expanded?'collapse':'expand']()}},onExpandTap:function(){if(this.expanded){if(Ext.now()-this.expanded>100){this.collapse()}}else {this.expand()}return !1},expand:function(){if(!this.expanded&&!this.getDisabled()){this.showPicker()}},collapse:function(){var a,b=Ext;if(this.expanded){a=this.getPicker();if(this.pickerType==='edge'){b.Viewport.removeMenu(a.getSide(),!0)}else {a.hide()}}},collapseIf:function(b){var a=this;if(!a.destroyed&&(!b.within(a.bodyElement,!1,!0)&&!a.owns(b.target))){a.collapse()}},showPicker:function(){var a=this,c=a[a.alignTarget],b=a.getPicker();if(a.pickerType==='floated'){if(a.getMatchFieldWidth()){b.setWidth(c.getWidth())}b.showBy(c,a.getFloatedPickerAlign(),{minHeight:100});a.touchListeners=Ext.getDoc().on({translate:!1,touchstart:a.collapseIf,scope:a,delegated:!1,destroyable:!0})}else {a.setShowPickerValue(b);b.show()}},updatePickerValue:function(b,d){var c=b.getSlots()[0],e=c.name||c.getName(),a={};a[e]=d;b.setValue(a)},onPickerShow:function(){var a=this;a.expanded=Ext.now();if(a.pickerType==='edge'){a.el.dom.scrollIntoView()}if(a.pickerType==='edge'){a.el.dom.scrollIntoView()}a.hideEventListeners=Ext.on({mousedown:'collapseIf',scroll:'onGlobalScroll',scope:a,destroyable:!0});a.fireEvent('expand',a)},onPickerHide:function(){var a=this;a.expanded=!1;Ext.destroy(a.hideEventListeners,a.touchListeners);a.fireEvent('collapse',a)},doDestroy:function(){this.destroyMembers('picker','hideEventListeners','touchListeners','focusTrap');this.callParent()},privates:{isFocusing:function(a){return a.event.toElement===this.getFocusTrap().dom||this.callParent([a])},isBlurring:function(a){return a.event.fromElement===this.getFocusTrap().dom||this.callParent([a])},onGlobalHide:function(a){if(this===a||a.isAncestor(this)){this.collapse()}},onGlobalScroll:function(c,d,e){var a=this,b=c.getElement();if(a.expanded){if(a.pickerType==='edge'){return}if(!a.getPicker().owns(b)&&b.dom!==document.body){a.collapse()}}},revertFocusTo:function(a){if(Ext.isTouchMode()){this.getFocusTrap().focus()}else {a.focus()}},setShowPickerValue:function(b){var a=this.getValue();if(a!=null){this.updatePickerValue(b,a)}}}});Ext.define('Ext.picker.Slot',{extend:Ext.dataview.DataView,xtype:'pickerslot',isSlot:!0,config:{title:null,showTitle:!0,cls:Ext.baseCSSPrefix+'picker-slot',name:null,value:null,flex:1,align:'left',displayField:'text',valueField:'value',itemTpl:null,scrollable:{x:!1,y:!0,scrollbars:!1},verticallyCenterItems:!0},focusable:!1,tabIndex:null,focusEl:null,itemsFocusable:!1,scrollToTopOnRefresh:!1,snapSelector:'.'+Ext.baseCSSPrefix+'dataview-item',deselectable:!1,navigationModel:{type:'boundlist',keyboard:!1},onFocusEnter:Ext.emptyFn,onFocusLeave:Ext.emptyFn,applyTitle:function(a){if(a){a=Ext.create('Ext.Component',{cls:Ext.baseCSSPrefix+'picker-slot-title',docked:'top',html:a})}return a},updateTitle:function(a,b){if(a){this.add(a);this.setupBar()}if(b){this.remove(b)}},updateShowTitle:function(b){var a=this.getTitle(),c=b?'show':'hide';if(a){a.on(c,this.setupBar,this,{single:!0,delay:50});a[b?'show':'hide']()}},updateDisplayField:function(a){if(!this.config.itemTpl){this.setItemTpl('<div class="'+Ext.baseCSSPrefix+'picker-item {cls}<tpl if="extra"> '+Ext.baseCSSPrefix+'picker-invalid</tpl>">'+'{'+a+'}</div>')}},updateAlign:function(a,b){this.element.swapCls(Ext.baseCSSPrefix+'picker-'+b,Ext.baseCSSPrefix+'picker-'+a)},applyData:function(c){var h=[],g=c&&c.length,e=this.getDisplayField(),f=this.getDisplayField(),d,a,b;if(c&&Ext.isArray(c)&&g){for(d=0;d<g;d++){a=c[d];b={};if(Ext.isArray(a)){b[f]=a[0];b[e]=a[1]}else if(Ext.isPrimitive(a)){b[f]=a;b[e]=a}else if(Ext.isObject(a)){b=a}h.push(b)}}return c},initialize:function(){this.callParent();this.on({scope:this,painted:'onPainted',single:!0})},onPainted:function(){this.setupBar()},onResize:function(){var a=this.getValue();if(a){this.setValue(a)}},getPicker:function(){if(!this.picker){this.picker=this.getParent()}return this.picker},setupBar:function(){if(!this.isPainted()){return}var a=this,c=a.getTitle(),d=a.getShowTitle()&&c?c.el.measure('h'):0,e=a.getPicker().bar.measure('h'),b;if(a.getVerticallyCenterItems()){b=Math.ceil((a.el.measure('h')-d-e)/2);a.bodyElement.setStyle({'padding-top':b+'px'});if(!a.bottomSpacer){a.bottomSpacer=a.add({xtype:'component',scrollDock:'end',height:b,style:'pointer-events: none'})}else {a.bottomSpacer.setHeight(b)}}a.setValue(a.getValue())},getScrollableClientRegion:function(){return this.picker.bar.getClientRegion()},navigateToItem:function(e,d){var a=this.getNavigationModel(),b=a.getLocation(),c=a.createLocation(e);if(!b||b.equals(c)){this.getScrollable().scrollIntoView(e,!1,d)}else {a.setLocation(c,{animation:d})}},onScrollEnd:function(i,h){var a=this,f=a.picker,c=f.ownerField,g=c&&c.getMultiSelect&&c.getMultiSelect(),d=a.getViewItems(),e,b;if(f.isVisible()){e=Ext.Number.constrain(Math.round(h/Ext.fly(d[0]).measure('h')),0,d.length-1);b=d[e];if(b){if(g){a.navigateToItem(b)}else {a.setValue(a.getStore().getAt(e).get(a.getValueField()),!0)}a.fireEvent('slotpick',a,a.getValue(),b)}}},getValue:function(f){if(this._value===!1){return null}if(!f){return this._value}var c=this,d=c.getValueField(),b=c.picker.ownerField,e=b&&b.getMultiSelect&&b.getMultiSelect(),a=c.getSelected();return a.getCount()?(e?a.collect(d,'data'):a.first().get(d)):null},setValue:function(c,f){var a=this,d=a.getStore(),e=(!Ext.isEmpty(c)&&d)?d.findExact(a.getValueField(),c):-1,b;if(e===-1){c=null}else {b=d.getAt(e)}if(b){a.select(b);if(a.refreshCounter){a.getNavigationModel().setLocation(b,{animation:f})}}a._value=c}});Ext.define('Ext.picker.Picker',{extend:Ext.Sheet,xtype:'picker',alternateClassName:'Ext.Picker',isPicker:!0,config:{doneButton:!0,cancelButton:!0,useTitles:!1,slots:null,value:null,height:220,layout:{type:'hbox',align:'stretch'},centered:!1,left:0,right:0,bottom:0,defaultType:'pickerslot',toolbarPosition:'top',toolbar:{xtype:'titlebar'},side:'bottom'},baseCls:Ext.baseCSSPrefix+'picker',floated:!0,focusable:!0,tabIndex:-1,constructor:function(a){this.callParent([a]);if('value' in a){this.setValue(a.value)}},initialize:function(){this.callParent();this.on({scope:this,delegate:'pickerslot',slotpick:'onSlotPick'})},getTemplate:function(){var c=this,a=Ext.baseCSSPrefix,b=c.callParent();b[0].children[0].children=[{reference:'mask',cls:a+'picker-mask',children:[{reference:'bar',cls:a+'picker-bar'}]}];return b},applyToolbar:function(a,b){if(a){if(a===!0){a={}}Ext.applyIf(a,{docked:this.getToolbarPosition()})}return Ext.factory(a,'Ext.TitleBar',b)},updateToolbar:function(a){if(a){this.add(a)}},applyDoneButton:function(a,b){if(a){if(a===!0){a={}}if(typeof a==="string"){a={text:a}}Ext.applyIf(a,{align:'right',text:'Done'})}return Ext.factory(a,'Ext.Button',b)},updateDoneButton:function(a){var b=this.getToolbar();if(a){b.add(a);a.on('tap',this.onDoneButtonTap,this)}},applyCancelButton:function(a,b){if(a){if(Ext.isBoolean(a)){a={}}if(typeof a==="string"){a={text:a}}Ext.applyIf(a,{align:'left',text:'Cancel'})}return Ext.factory(a,'Ext.Button',b)},updateCancelButton:function(a){var b=this.getToolbar();if(a){b.add(a);a.on('tap',this.onCancelButtonTap,this)}},updateUseTitles:function(d){var c=this.getInnerItems(),f=c.length,e=Ext.baseCSSPrefix+'use-titles',a,b;this.toggleCls(e,d);for(a=0;a<f;a++){b=c[a];if(b.isSlot){b.setShowTitle(d)}}},applySlots:function(a){if(a){var c=a.length,b;for(b=0;b<c;b++){a[b].picker=this}}return a},updateSlots:function(c){var a=this,d=Ext.baseCSSPrefix,b;a.removeAll();if(c){a.add(c)}b=a.getInnerItems();if(b.length>0){b[0].addCls(d+'first');b[b.length-1].addCls(d+'last')}a.updateUseTitles(a.getUseTitles());a.setValue(a.getValue())},onDoneButtonTap:function(){var a=this,c=a._value,b=a.getValue(!0);if(b!==c){a._values=a._value=b;a.fireEvent('change',a,b)}a.hide();Ext.util.InputBlocker.unblockInputs()},onCancelButtonTap:function(){this.fireEvent('cancel',this);this.hide();Ext.util.InputBlocker.unblockInputs()},onSlotPick:function(a){this.fireEvent('pick',this,this.getValue(!0),a)},afterShow:function(){this.callParent();this.scrollSlotsIntoView();Ext.util.InputBlocker.blockInputs()},updateDisplayed:function(b,a){this.callParent([b,a]);Ext.util.InputBlocker.blockInputs()},scrollSlotsIntoView:function(){var d=this.getInnerItems(),b,a,c;for(b=0;b<d.length;b++){a=d[b];c=a.getNavigationModel().location;a.navigateToItem(c?c.item:a.itemFromRecord(0))}},setValue:function(b,h){var e=this,c=e.getInnerItems(),i=c.length,g,d,a,f;if(!b){b={};for(a=0;a<i;a++){b[c[a].getName()]=null}}for(g in b){f=b[g];for(a=0;a<c.length;a++){d=c[a];if(d.getName()===g){if(h){d.setValueAnimated(f)}else {d.setValue(f)}break}}}e._values=e._value=b;return e},setValueAnimated:function(a){this.setValue(a,!0)},getValue:function(c){var d={},e=this.getItems().items,f=e.length,a,b;if(c){for(b=0;b<f;b++){a=e[b];if(a&&a.isSlot){d[a.getName()]=a.getValue(c)}}this._values=d}return this._values},getValues:function(){return this.getValue()}});Ext.define('Ext.picker.Tablet',{extend:Ext.Panel,xtype:'tabletpicker',isPicker:!0,focusable:!0,tabIndex:-1});Ext.define('Ext.picker.SelectPicker',{extend:Ext.picker.Picker,xtype:'selectpicker',constructor:function(c){var a=c.ownerCmp,d=a.getId()+'-picker',b=Ext.apply({ownerField:a,id:d,slots:[{id:d+'-slot',ownerField:a,selectable:c.selectable||!0,align:a.getPickerSlotAlign(),name:a.getValueField(),valueField:a.getValueField(),displayField:a.getDisplayField(),value:a.getValue(),store:a._pickerStore||a.getStore(),itemTpl:a.getItemTpl(),itemCls:a.getItemCls()}]},c);if(a.getMultiSelect()){b.cancelButton=!1;b.slots[0].selectable={selected:a.getValueCollection(),selectedRecord:a.getSelection(),deselectable:!0,mode:'multi'}}else {b.listeners={change:'onPickerChange',scope:this}}this.callParent([b]);this.slot=Ext.getCmp(d+'-slot')},onPickerChange:function(c,b){var a=this.ownerField;a.setValue(a.findRecordByValue(b[a.getValueField()]))},refresh:function(){this.slots.refresh()},setDisableSelection:function(a){return this.slot.setDisableSelection(a)},setValue:function(a){if(this.slot){this.slot.setValue(a)}return this},getEmptyText:function(){return this.slot.getEmptyText()},getItemCount:function(){return this.slot.getItemCount()},getNavigationModel:function(){return this.slot.getNavigationModel()},getSelectable:function(){return this.slot.getSelectable()},getViewItems:function(){return this.slot.getViewItems()},getStore:function(){return this.slot.getStore()},setStore:function(a){this.slot.setStore(a)},deselectAll:function(){this.slot.deselectAll()}});Ext.define('Ext.field.Select',{extend:Ext.field.Picker,xtype:'selectfield',alternateClassName:'Ext.form.Select',isSelectField:!0,config:{valueCollection:{rootProperty:'data'},valueField:'value',itemTpl:!1,itemCls:null,displayTpl:null,displayField:'text',store:null,options:null,hiddenName:null,autoSelect:!1,autoFocus:!0,autoFocusLast:!0,selection:null,autoLoadOnValue:!1,forceSelection:!0,valueNotFoundText:null,selectOnTab:!0,multiSelect:null,delimiter:',',filterPickList:!1,collapseOnSelect:null,chipView:{$value:{xtype:'chipview',tabIndex:null,focusable:!1,itemsFocusable:!1,focusedCls:'',navigationModel:'fieldchipview',selectable:{mode:'multi'},closable:!0,closeHandler:'up.onChipCloseTap'},lazy:!0},recordCreator:null,recordCreatorScope:null},editable:!1,floatedPicker:{xtype:'boundlist',infinite:!1,navigationModel:{disabled:!0},scrollToTopOnRefresh:!1,loadingHeight:70,maxHeight:300,floated:!0,axisLock:!0,hideAnimation:null},edgePicker:{xtype:'selectpicker',cover:!0},classCls:Ext.baseCSSPrefix+'selectfield',multiSelectCls:Ext.baseCSSPrefix+'multiselect',twoWayBindable:{selection:1},publishes:{selection:1},applyValueCollection:function(a){if(!a.isCollection){a=new Ext.util.Collection(a)}a.addObserver(this);return a},createSelectionRecord:function(b){var a=this.getStore().getModel();return new a(b)},completeEdit:Ext.emptyFn,expand:function(){if(this.getStore()){this.callParent()}},getRefItems:function(c){var d=this,b=d.callParent([c]),a=d.chipView;if(a){b.push(a);if(c){Ext.Array.push(b,a.getRefItems(c))}}return b},maybeCollapse:function(a){var c=a.to&&a.to.record,d=this.getMultiSelect(),b=this.getSelection();if(!d&&c===b){this.collapse()}},onCollectionRemove:function(c,d){var a=this,b=c.getRange();if(!d.replacement){a.processingCollectionMutation=!0;a.setSelection(b.length?(a.getMultiSelect()?b:b[0]):null);a.processingCollectionMutation=!1}},onCollectionAdd:function(b,c){var a=b.getRange();this.processingCollectionMutation=!0;this.setSelection(this.getMultiSelect()?a:a[0]);this.processingCollectionMutation=!1},onCollectionEndUpdate:function(){var a=this,d=a._pickerStore,c,b;if(a.getMultiSelect()){c=a.chipView;b=c.getNavigationModel();if(b.location&&!a.getValueCollection().contains(b.location.record)){b.clearLocation()}c.getSelectable().refreshSelection()}else {a.setFieldDisplay()}if(d&&a.getFilterPickList()){d.getData().onFilterChange()}},clearValue:function(){var a=this;a.forceSetValue(null);a.syncEmptyState()},applyValue:function(a,d){var b=this,c;b.getOptions();c=b.getStore();b.syncMode='value';if(a&&a.isEntity){if(!c||!c.getDataSource().contains(a)){a.isEntered=!0}b.setSelection(a);return}if(b.isConfiguring){b.originalValue=a}if(c&&a){if(b.getAutoLoadOnValue()&&!c.isLoaded()&&!c.hasPendingLoad()){c.load()}}return b.transformValue(a)},updateValue:function(b,a){var c=this;c.syncValue();if(c.getMultiSelect()?(!b||!a||!Ext.Array.equals(b,a)):b!==a){Ext.field.Field.prototype.updateValue.call(this,b,a)}},transformValue:function(a){if(a==null||a===''){a=this.getForceSelection()?null:''}else if(this.getMultiSelect()){a=Ext.Array.from(a)}else {if(Ext.isIterable(a)){a=a[0]}}return a},findRecordByValue:function(e){var c=this,d=c.getStore(),f=c.getValueField(),a,b=null;if(d){a=d.byValue.get(e);if(a){b=a[0]||a}}if(!b){b=c.getValueCollection().findBy(function(a){return a.get(f)===e})}return b},findRecordByDisplay:function(d){var b=this.getStore(),a,c=!1;if(b){a=b.byText.get(d);if(a){c=a[0]||a}}return c},applyChipView:function(b,a){return Ext.updateWidget(a,b,this,'createChipView')},updateChipView:function(a){if(a){a.on({element:'bodyElement',touchstart:'onChipBodyTouchStart',tap:'onChipBodyTap',scope:this,priority:1000})}this.chipView=a},applySelection:function(a,b){var c=a&&this.getMultiSelect();a=c?Ext.Array.from(a):a;if(c?(!b||!Ext.Array.equals(a,b)):a!==b){return a||null}},updateMultiSelect:function(b){var a=this,g=a.getConfig('picker',!1,!0),d=a.chipView,e=a.getValueCollection(),c=e.last(),f;if(b){if(d){d.show()}else {a.getChipView();a.chipView.render(a.inputWrapElement.dom,a.inputElement.dom)}a.chipView.bodyElement.dom.appendChild(a.inputElement.dom);a.setInputValue('');if(c){a.setSelection([c])}}else {if(d){a.inputWrapElement.dom.insertBefore(a.inputElement.dom,a.afterInputElement.dom);d.hide()}if(c){e.splice(0,1.0E99,[c])}}if(g){f=g.getSelectable();f.setConfig({deselectable:b,mode:b?'multi':'single'})}a.el.toggleCls(a.multiSelectCls,b)},updateSelection:function(b,d){var a=this,j=b==null,f=a.getMultiSelect(),c=a.getValueCollection(),h=a.getValueField(),k=a._value,i=null,e,g;if(a._ignoreSelection||a.destroyed||a.destroying){return}if(!a.processingCollectionMutation){if(j||(d&&b.length<d.length)||!c.containsAll(b)){g=[0,c.getCount()];if(!j){g.push(b)}c.splice.apply(c,g);if(a.destroyed){return}}}if(b){if(h){if(f){i=c.collect(h,'data')}else {i=b.get(h)}a.setValue(i)}if(a.fireEvent('select',a,b)===!1){a.setValue(k);a._selection=d}}else {a.clearValue()}if(a.destroyed){return}e=a.getConfig('picker',!1,!0);if(e&&e.isVisible()){if(!f||a.getCollapseOnSelect()||!a.getStore().getCount()){if(!f&&b&&d&&b.id===d.id){e.refresh()}else {if(!(b&&b.isEntered)){a.collapse()}}}}},getRecordDisplayData:function(a){return a.getData()},createFloatedPicker:function(){var a=this,b=a.getMultiSelect(),c=Ext.merge({ownerCmp:a,store:a._pickerStore||a.getStore(),selectable:{selected:a.getValueCollection(),selectedRecord:a.getSelection(),deselectable:!!b,mode:b?'multi':'single'},itemTpl:a.getItemTpl(),itemCls:a.getItemCls()},a.getFloatedPicker());c.navigationModel.navigateOnSpace=!a.getEditable();return c},createEdgePicker:function(){return Ext.merge({ownerCmp:this},this.getEdgePicker())},realignFloatedPicker:function(a){a=a||this.getConfig('picker',!1,!0);if(a&&a.isVisible()){if(!a.getItemCount()&&!a.getStore().hasPendingLoad()){this.collapse()}this.callParent([a])}},setPickerLocation:function(d){var c=this,b=c.getConfig('picker',!1,!0),e,a;if(b&&c.expanded){e=b.getStore();if(b.getItemCount()){a=b.getSelectable().getLastSelected();if(!a||!e.contains(a)){if(d||c.getAutoFocusLast()){a=b.getNavigationModel().lastLocation;if(a){a=a.refresh()}}if(!a&&(d||c.getAutoFocus())){a=e.getAt(0)}}b.getNavigationModel().setLocation(a);if(!d){Ext.setKeyboardMode(!0)}}}},updatePicker:function(a,c){var b=this.getFilterPickList();if(a&&b){a.getSelectable().addIgnoredFilter(b)}this.callParent([a,c])},updatePickerValue:function(c,a){var d=this.getValueField(),b={};if(!a){a=this.getValue()}b[d]=a;c.setValue(b)},applyItemTpl:function(a){if(a===!1){a='<span class="x-list-label">{'+this.getDisplayField()+':htmlEncode}</span>'}return a},applyDisplayTpl:function(a){if(a&&!a.isTemplate){a=new Ext.XTemplate(a)}return a},applyOptions:function(a){if(a){var g=a.length,f=this.getValueField(),d=this.getDisplayField(),c,b,e;a=Ext.Array.slice(a);for(c=0;c<g;c++){b=a[c];if(Ext.isPrimitive(b)){a[c]=e={};e.id=b;e[f]=b;if(d&&d!==f){e[d]=b}}}a=Ext.data.StoreManager.lookup({fields:[f,d],data:a})}return a},updateOptions:function(a,b){if(a){this.setStore(a)}else {if(b===this.getStore()){this.setStore(null)}}},applyStore:function(a){if(a){a=Ext.data.StoreManager.lookup(a)}return a},updateStore:function(a,b){var c=this,f=c.getValueField(),d=c.getDisplayField(),e;if(b){if(b.getAutoDestroy()){b.destroy()}else {b.byValue=b.byText=Ext.destroy(b.byValue,b.byText)}}if(a){e={byValue:{rootProperty:'data',unique:!1,property:f}};if(d!==f){e.byText={rootProperty:'data',unique:!1,property:d}}a.setExtraKeys(e);if(d===f){a.byText=a.byValue}a.on({scope:c,add:'onStoreDataChanged',remove:'onStoreDataChanged',update:'onStoreRecordUpdated',load:{fn:'onStoreLoad',priority:-1},refresh:'onStoreRefresh'});if(a.isLoaded()&&!a.hasPendingLoad()){c.syncValue()}else if(c.getValue()!=null&&c.getAutoLoadOnValue()&&!a.isLoaded()&&!a.hasPendingLoad()){a.load()}}c.updatePickerStore()},applyValueField:function(a){if(a==null){a=this.getDisplayField()}return a},updateValueField:function(b){var a=this.getStore();if(a&&!this.isConfiguring){a.byValue.setCollection(null);a.setExtraKeys({byValue:{rootProperty:'data',unique:!1,property:b}})}},applyDisplayField:function(a){if(a==null){a=this.getValueField()}return a},updateDisplayField:function(b){var a=this.getStore();if(a&&!this.isConfiguring){a.byText.setCollection(null);a.setExtraKeys({byText:{rootProperty:'data',unique:!1,property:b}})}},onStoreLoad:function(e,d,c){var a=this,b=a.isFiltering;a.isFiltering=!1;if(c){a.syncMode=b?'filter':'store';a.syncValue()}},syncValue:function(){var a=this,d=a.getStore(),g=a.getForceSelection(),i=a.getValueNotFoundText(),e,f,h,c,b;if(a.reconcilingValue||!d||!d.isLoaded()||d.hasPendingLoad()){return}a.reconcilingValue=!0;a.getSelection();e={};e[a.syncMode]=!0;c=((h=e.input||e.filter))?a.getInputValue():a.getValue();f=c==null||c==='';if(!f){if(a.getMultiSelect()){return a.syncMultiValues(Ext.Array.from(c))}b=(h?d.byText:d.byValue).get(c);if(b){if(!b.isEntity){b=b[0]}}else if(!g){b=a.findRecordByValue(c)}}if(!f&&!b&&!g){b=a.createEnteredRecord(c)}else {if(h||e.store){if(!b&&g){a.setValue(null);a.setSelection(null);if(!e.filter){a.setFieldDisplay()}}}else {if(f){if(a.mustAutoSelect()){b=d.first();if(a.getAutoSelect()==='initial'){a.setAutoSelect(!1)}}else {a.setSelection(null)}}else if(!b&&i){a.setError(i)}}}if(b){a.setSelection(b)}a.reconcilingValue=!1},syncMultiValues:function(h){var b=this,d=[],f=[],l=b.getForceSelection(),g=b.getValueField(),k=b.getValueCollection(),e,a,j,c,i;for(c=0,j=h.length;c<j;c++){a=e=h[c];if(!a||!a.isEntity){a=b.findRecordByValue(i=a);if(!a){a=k.find(g,i)}}if(!a){if(!l){if(!a&&e){a=b.createEnteredRecord(e)}}}if(a){d.push(a);f.push(a.get(g))}}if(d.length){b._value=f;b.setSelection(d)}else {b._value=null;b.setSelection()}b.reconcilingValue=!1},onStoreDataChanged:function(){var b=this,a;if(b.getForceSelection()){a=b.getValue();if(a!=null){b.setValue(a)}}},onStoreRecordUpdated:function(b,a){if(this.getValueCollection().contains(a)){this.updateSelection(this.getSelection())}if(!this.getMultiSelect()){this.setFieldDisplay()}},onStoreRefresh:function(i){var a=this,c=a.getConfig('picker',!1,!0),h=a.getValueCollection(),g,b,d,f,e;if(c){g=c.getSelectable().getSelected();f=c.getNavigationModel();e=f.getLocation();if(e&&!c.getStore().contains(e.record)){f.clearLocation()}}if(g!==h){b=[];if(a.getPrimaryFilter){b.push(a.getPrimaryFilter())}d=a.getFilterPickList();if(d){b.push(d)}Ext.dataview.selection.Model.refreshCollection(h,i.getData(),b,Ext.dataview.BoundList.prototype.beforeSelectionRefresh)}},reset:function(){var a=this,d=a.getConfig('picker',!1,!0),b=a.originalValue||null,c;if(a.getAutoSelect()){c=a.getStore();b=(b!=null)?b:c&&c.getAt(0)}else {if(d){d.deselectAll()}}a.setValue(b);return a},doDestroy:function(){var b=this,a=b.getStore();if(a&&!a.destroyed&&a.getAutoDestroy()){a.destroy()}b.destroyMembers('options','chipView');b.callParent()},privates:{syncMode:null,createChipView:function(c){var b=this,a=Ext.merge({ownerField:b,ownerCmp:b,store:{data:b.getValueCollection()}},c);if(!(a.displayField||a.displayTpl)){a.displayField=b.getDisplayField()}return a},createEnteredRecord:function(e){var a=this,f=a.getRecordCreator(),g=a.getDisplayField(),d=a.getValueField(),c,b;if(f){b=Ext.callback(f,a.getRecordCreatorScope(),[e,a.getStore().getModel(),a],0,a)}else {c={};c[g]=e;if(d&&g!==d){c[d]=e}b=a.createSelectionRecord(c)}if(b){b.isEntered=!0}return b},hasValue:function(){return this.callParent()||this.getValueCollection().getCount()},onChipCloseTap:function(a,b){var c=b.record;a.getNavigationModel().clearLocation();a.getSelectable().deselect(c);this.getValueCollection().remove(c);b.event.stopEvent();return !1},onChipBodyTouchStart:function(a){if(a.pointerType!=='touch'&&!this.containsFocus){this.inputElement.focus();a.preventDefault()}},onChipBodyTap:function(a){if(a.pointerType==='touch'&&!this.containsFocus){this.inputElement.focus();a.preventDefault()}if(!a.getTarget('.'+Ext.Chip.prototype.classCls)){this.onInputElementClick(a)}},mustAutoSelect:function(){var b=this,a=b.getAutoSelect();if(a&&!(b.isConfiguring||a==='initial')){a=!b.getClearable()&&b.getRequired()}return !!a},applyFilterPickList:function(b,a){var c=this,d=c._pickerStore;if(a&&a.isFilter&&d){d.removeFilter(a)}if(b){b=new Ext.util.Filter({scope:c,filterFn:c.filterPicked})}return b},updateFilterPickList:function(b,c){var a=this.getConfig('picker',!1,!0);if(a){if(b){a.getSelectable().addIgnoredFilter(b)}else if(c){a.getSelectable().removeIgnoredFilter(c)}}this.updatePickerStore();if(a){a.setDisableSelection(b)}},filterPicked:function(a){return !this.getValueCollection().contains(a)},updatePickerStore:function(){var a=this,f=a.getConfig('picker',!1,!0),d=a.getStore(),e=a.getFilterPickList()||undefined,g=a.getQueryMode&&a.getQueryMode()==='local'||e,c=d,b;if(g){b=[];if(a.getPrimaryFilter){b.push(a.getPrimaryFilter())}if(e){b.push(e)}if(a._pickerStore&&a._pickerStore.isChainedStore){c=a._pickerStore.setConfig({source:d,filters:b})}else {a._pickerStore=c=Ext.Factory.store({type:'chained',source:d,filters:b})}}else {a._pickerStore=c=d}if(f){f.setStore(c)}},setFieldDisplay:function(){var a=this,b,d='',c;if(!a.getMultiSelect()){b=a.getValueCollection().first();if(b){c=a.getDisplayTpl();if(c){d=c.apply(a.getRecordDisplayData(b))}else {d=b.get(a.getDisplayField())}}a.setInputValue(d);a.syncEmptyState()}}},rawToValue:Ext.emptyFn});Ext.define('Ext.field.ComboBox',{extend:Ext.field.Select,xtype:['combobox','comboboxfield'],alternateClassName:['Ext.form.field.ComboBox'],config:{primaryFilter:!0,queryParam:'query',queryMode:'remote',queryCaching:!0,queryDelay:!0,minChars:null,anyMatch:!1,caseSensitive:!1,typeAhead:!1,typeAheadDelay:250,triggerAction:'all',allQuery:null,enableRegEx:null},autoSelect:!1,classCls:Ext.baseCSSPrefix+'combobox',editable:!0,forceSelection:!1,lastQuery:{},keyMap:{scope:'this',ENTER:'onEnterKey'},onCollectionAdd:function(a,b){if(this.getMultiSelect()){this.inputElement.dom.value='';if(this.expanded){this.doRawFilter()}}this.callParent([a,b])},picker:'floated',onInput:function(g){var a=this,d=a.doFilterTask,e=a.inputElement.dom.value,f=a.getStore().getFilters(),b,c;if(Ext.supports.inputEventData){c=g.browserEvent.data===a.getDelimiter()}else {b=a.lastKeyMapEvent;c=b&&b.getChar()===a.getDelimiter()&&(Ext.ticks()-b.time)<20}a._inputValue=e;if(!a.hasFocus&&a.getLabelAlign()==='placeholder'){a.syncLabelPlaceholder(!0)}if(!a.getForceSelection()||(e===''&&!a.getRequired())){if(a.getMultiSelect()){if(c){return a.addNewMultiValues()}}else {a.callParent([g])}}else {a.syncEmptyState()}if(e.length){if(!d){d=a.doFilterTask=new Ext.util.DelayedTask(a.doRawFilter,a)}d.delay(a.getQueryDelay())}else {a.collapse();f.beginUpdate();a.getPrimaryFilter().setDisabled(!0);f.endUpdate()}},onEnterKey:function(b){var a=this;if(!a.getForceSelection()&&a.getMultiSelect()){a.addNewMultiValues()}},addNewMultiValues:function(){var b=this,c=b.inputElement.dom.value,a;a=b.getValue()||[];a.push.apply(a,c.split(b.getDelimiter()));return b.setValue(Ext.Array.clean(a))},doRawFilter:function(){var a=this,c=a.inputElement.dom.value,b=a.lastQuery.query,d=b&&b.length>c.length;a.doFilter({query:c,isErase:d})},onExpandTap:function(){var a=this,b=a.getTriggerAction();if(a.expanded){if(Ext.now()-a.expanded>100){a.collapse()}}else if(!a.getReadOnly()&&!a.getDisabled()){if(b==='all'){a.doFilter({query:a.getAllQuery(),force:!0})}else if(b==='last'){a.doFilter({query:a.lastQuery.query,force:!0})}else {a.doFilter({query:a.inputElement.dom.value})}}},clearValue:function(){var a=this;a.setValue(null);a.setInputValue('');a.setFieldDisplay()},doFilter:function(j){var a=this,f=a.getQueryMode()==='local',h=a.lastQuery,d=a.getStore()&&a._pickerStore,c=a.getPrimaryFilter(),i=d.getFilters(),b=a.beforeFilter(Ext.apply({filterGeneration:c.generation,lastQuery:h||{},combo:a,cancel:!1},j)),g,e;if(d&&b!==!1&&!b.cancel){if(a.getEnableRegEx()){try{b.query=new RegExp(b.query)}catch(k){b.query=null}}c.setValue(b.query);if(!a.getQueryCaching()||c.generation!==h.filterGeneration||j.force){if(Ext.isEmpty(b.query)){c.setDisabled(!0)}else {c.setDisabled(!1);a.isFiltering=!f}a.lastQuery=b;i.beginUpdate();i.endUpdate();if(d.isChainedStore){e=d.getSource();if(!e.isLoaded()&&!e.hasPendingLoad()){e.load()}}}if(a.getTypeAhead()){a.doTypeAhead(b)}g=a.getPicker();if(!f||d.getCount()||(g.getEmptyText&&g.getEmptyText())){a.expand();if(b.query&&f){a.setPickerLocation()}return !0}a.collapse()}return !1},beforeFilter:function(a){var d=this,c=a.query,b;if(d.fireEvent('beforequery',a)===!1){a.cancel=!0}else if(!a.cancel){b=c&&c.length;if(!a.force&&b&&b<d._getMinChars()){a.cancel=!0}}return a},completeEdit:function(){var a=this,b=a.getInputValue(),d=a.getValue(),c=a.getSelection();if(a.doFilterTask){a.doFilterTask.cancel()}if(!a.getForceSelection()&&a.getMultiSelect()){if(b){if(this.getSelectOnTab()){a.addNewMultiValues()}else {this.setInputValue('')}}}else {if(b){if(!c||c.get(this.getDisplayField())!==b){a.syncMode='input';a.syncValue();if(!a.getValue()){a.setValue(d)}}}else if(c){if(a.getRequired()){a.setFieldDisplay(c)}else {a.setSelection(null)}}if(a.getTypeAhead()){a.select(b?b.length:0)}}},onStoreFilterChange:function(){var b=this,d=b.getStore(),a=b.getSelection()||null,c=[];if(a&&!b.destroying&&d&&d.isLoaded()&&b.getPrimaryFilter().getDisabled()){if(b.getMultiSelect()){Ext.Array.each(a,function(a){if(!a.isEntered&&!d.contains(a)){c.push(a)}})}else {if(!a.isEntered&&!d.contains(a)){c.push(a)}}if(c.length){this.getValueCollection().remove(c)}}},onListSelect:Ext.emptyFn,applyQueryDelay:function(a){if(a===!0){a=this.getQueryMode()==='local'?10:500}return a},applyPrimaryFilter:function(a,d){var b=this,c=b.getStore()&&b._pickerStore,f=a&&a.isFilter,e;if(c&&d){if(a){if(f){c.removeFilter(d,!0)}else {d.setConfig(a);return}}else if(!c.destroyed){c.getFilters().remove(d)}}if(a){if(a===!0){a={id:b.id+'-primary-filter',anyMatch:b.getAnyMatch(),caseSensitive:b.getCaseSensitive(),root:'data',property:b.getDisplayField(),value:b.inputElement.dom.value,disabled:!0}}if(typeof a==='string'){e=a;a={filterFn:function(f){var c=b.resolveListenerScope(b);return c[e].call(this,f)}}}if(!a.isFilter){a=new Ext.util.Filter(a)}a.serialize=function(){return b.serializePrimaryFilter(this)};if(c){c.addFilter(a,!0)}}return a},updateOptions:function(a,b){if(a){this.setQueryMode('local')}this.callParent([a,b])},updatePicker:function(a,b){if(a){a.getSelectable().addIgnoredFilter(this.getPrimaryFilter())}this.callParent([a,b])},updateStore:function(d,c){var a=this,g=a.getQueryMode()==='remote',b,f,e;if(g){d.setRemoteFilter(!0);f=d.getProxy();if(f.setFilterParam){f.setFilterParam(a.getQueryParam())}}a.callParent([d,c]);b=a.getPrimaryFilter();if(b){if(c&&!c.destroyed){e=c.getFilters();if(e){e.remove(b)}}a._pickerStore.addFilter(b,!0)}if(a.getQueryMode()==='local'){d.on({filterchange:'onStoreFilterChange',scope:a})}},serializePrimaryFilter:function(a){return a.getValue()},doDestroy:function(){var a=this;a.setPrimaryFilter(null);if(a.typeAheadTask){a.typeAheadTask=a.typeAheadTask.cancel()}a.callParent()},doTypeAhead:function(a){var b=this;if(!b.typeAheadTask){b.typeAheadTask=new Ext.util.DelayedTask(b.onTypeAhead,b)}if((!a.lastQuery.query||!a.query||a.query.length>a.lastQuery.query.length)||!Ext.String.startsWith(a.lastQuery.query,a.query)){b.typeAheadTask.delay(b.getTypeAheadDelay())}},onTypeAhead:function(){var a=this,e=a.getDisplayField(),g=a.inputElement.dom,f=g.value,i=a.getStore(),h=i.findRecord(e,f),c,d,b;if(h){c=h.get(e);d=c.length;b=f.length;if(b!==0&&b!==d){g.value=a._inputValue=c;a.select(b,d)}}},privates:{_getMinChars:function(){var a=this.getMinChars();if(a==null){a=this.getQueryMode()==='remote'?4:0}return a},setFieldDisplay:function(c){var a=this,b;a.callParent([c]);if(!a.getMultiSelect()){if(a.getTypeAhead()){b=a.getInputValue();a.select(b?b.length:0)}}}}});Ext.define('Ext.field.trigger.Date',{extend:Ext.field.trigger.Expand,xtype:'datetrigger',alias:'trigger.date',classCls:Ext.baseCSSPrefix+'datetrigger'});Ext.define('Ext.picker.Date',{extend:Ext.picker.Picker,xtype:'datepicker',alternateClassName:'Ext.DatePicker',config:{yearFrom:1980,yearTo:new Date().getFullYear(),monthText:'Month',dayText:'Day',yearText:'Year',slotOrder:['month','day','year'],doneButton:!0},initialize:function(){var a=this;a.callParent();a.on({scope:a,delegate:'> slot',slotpick:a.onSlotPick})},setValue:function(a,c){var b=this;if(Ext.isDate(a)){a={day:a.getDate(),month:a.getMonth()+1,year:a.getFullYear()}}b.callParent([a,c]);if(b.rendered){b.onSlotPick()}return b},getValue:function(i){var a={},h=this.getItems().items,j=h.length,g,b,c,e,d,f;for(f=0;f<j;f++){d=h[f];if(d.isSlot){a[d.getName()]=d.getValue(i)}}if(a.year===null&&a.month===null&&a.day===null){return null}e=Ext.isNumber(a.year)?a.year:1;c=Ext.isNumber(a.month)?a.month:1;b=Ext.isNumber(a.day)?a.day:1;if(c&&e&&c&&b){g=this.getDaysInMonth(c,e)}b=(g)?Math.min(b,g):b;return new Date(e,c-1,b)},updateYearFrom:function(){if(this.initialized){this.createSlots()}},updateYearTo:function(){if(this.initialized){this.createSlots()}},updateMonthText:function(e,c){var d=this.getInnerItems,f=d.length,a,b;if(this.initialized){for(b=0;b<f;b++){a=d[b];if((typeof a.title==="string"&&a.title===c)||(a.title.html===c)){a.setTitle(e)}}}},updateDayText:function(e,d){var c=this.getInnerItems,f=c.length,a,b;if(this.initialized){for(b=0;b<f;b++){a=c[b];if((typeof a.title==="string"&&a.title===d)||(a.title.html===d)){a.setTitle(e)}}}},updateYearText:function(d){var c=this.getInnerItems,e=c.length,b,a;if(this.initialized){for(a=0;a<e;a++){b=c[a];if(b.title===this.yearText){b.setTitle(d)}}}},constructor:function(){this.callParent(arguments);this.createSlots()},createSlots:function(){var c=this,k=c.getSlotOrder(),b=c.getYearFrom(),e=c.getYearTo(),h=[],i=[],f=[],g=[],l=b>e,j,a,d;while(b){h.push({text:b,value:b});if(b===e){break}if(l){b--}else {b++}}d=c.getDaysInMonth(1,new Date().getFullYear());for(a=0;a<d;a++){i.push({text:a+1,value:a+1})}for(a=0,j=Ext.Date.monthNames.length;a<j;a++){f.push({text:Ext.Date.monthNames[a],value:a+1})}k.forEach(function(a){g.push(c.createSlot(a,i,f,h))});c.setSlots(g)},createSlot:function(c,f,d,e){var b=this,a;switch(c){case 'year':a={name:'year',align:'center',data:e,title:b.getYearText(),flex:3};break;case 'month':a={name:c,align:'right',data:d,title:b.getMonthText(),flex:4};break;case 'day':a={name:'day',align:'center',data:f,title:b.getDayText(),flex:2};}if(b._value){a.value=b._value[c]}return a},onSlotPick:function(){var f=this,k=[],g,a,j,e,i,c,d,m,l,b,h;if(f.isConfiguring){return}g=f.getValue(!0);a=f.getDaySlot();f.callParent(arguments);if(!a){return}j=a.getValueField();e=a.getStore();i=e.getData();d=e.getCount();m=g.getFullYear();l=g.getMonth();c=f.getDaysInMonth(l+1,m);if(d===c){return}if(c>d){for(b=d;b<c;b++){k.push(e.createModel({text:b+1,value:b+1}))}h=[d,0,k]}else {h=[c,5]}i.splice.apply(i,h);b=e.find(j,g.getDate());if(b>-1){a.navigateToItem(a.mapToItem(b));a.setValue(a.getValue(!0))}},getDaySlot:function(){var c=this.getInnerItems(),d=c.length,b,a;if(this.daySlot){return this.daySlot}for(b=0;b<d;b++){a=c[b];if(a.isSlot&&a.getName()==="day"){this.daySlot=a;return a}}return null},getDaysInMonth:function(a,c){var b=[31,28,31,30,31,30,31,31,30,31,30,31];return a===2&&this.isLeapYear(c)?29:b[a-1]},isLeapYear:function(a){return !!((a&3)===0&&(a%100||(a%400===0&&a)))},onDoneButtonTap:function(){var a=this,c=a._value,b=a.getValue(!0),d=b;if(Ext.isDate(b)){d=b.toDateString()}if(Ext.isDate(c)){c=c.toDateString()}if(d!==c){a.ownerField.onPickerChange(a,b);a.fireEvent('change',a,b)}a.hide();Ext.util.InputBlocker.unblockInputs()}});Ext.define('Ext.layout.Carousel',{extend:Ext.layout.Auto,alias:'layout.carousel',config:{visibleChildren:1,frontIndex:{$value:!0,lazy:!0},animation:!0},vertical:!1,targetCls:Ext.baseCSSPrefix+'layout-carousel',wrapCls:Ext.baseCSSPrefix+'layout-carousel-wrap',itemCls:Ext.baseCSSPrefix+'layout-carousel-item',singularCls:Ext.baseCSSPrefix+'layout-carousel-singular',destroy:function(){var a=this.getContainer();Ext.destroy(a.carouselElement,this.activeAnim);this.callParent()},updateContainer:function(a,c){var b=this;b.callParent([a,c]);a.bodyElement.addCls(b.wrapCls);a.carouselElement=a.getRenderTarget().appendChild({cls:b.targetCls});Ext.override(a,{privates:{getRenderTarget:function(){return this.carouselElement}}})},onContainerInitialized:function(b){var a=this;a.callParent([b]);if(!a.frontItem){a.setFrontItem(a.getFrontIndex(),!1)}},updateVisibleChildren:function(f){var c=this,e=c.getContainer().getRenderTarget(),b,a,g,d,h;a=c.getLayoutItems();b=c.calcItemBasis(f)+'%';if(a.length>f){e.setStyle('left','-'+b);e.setStyle('transform','translateX('+b+')')}for(d=0,h=a.length;d<h;d++){g=a[d];g.el.setStyle('flex-basis',b)}e.toggleCls(c.singularCls,f===1)},applyFrontIndex:function(b){var c,a;if(typeof b!=='number'){c=this.getVisibleChildren();a=c-1;b=!a?a:a%2?Math.floor(a/2)+1:a/2}return b},applyDuration:function(a){if(typeof a!=='number'){a=parseInt(a,10)||500}return a},calcItemBasis:function(a){a=a!=null?a:this.getVisibleChildren();return a===1?100:!(a%2)?100/a:(100/a).toFixed(5)},insertInnerItem:function(a,b){var c=this;c.callParent([a,b]);if(b===0){c.frontItem=a}a.el.setStyle('order',b+1);a.el.setStyle('flex-basis',c.calcItemBasis()+'%')},getLayoutItemCount:function(){return this.getLayoutItems().length},getLayoutItems:function(){return this.getContainer().getInnerItems()},getItemIndex:function(a){return this.getContainer().innerIndexOf(a)},shiftIndex:function(a,b){var c=this.getLayoutItemCount();a+=b;if(b<0){a=a<0?c-1:a}else if(b>0){a=a>=c?0:a}return a},getVisibleItems:function(){return this.visibleItems},getEdgeItem:function(b){var a=this.getOrderedLayoutItems();return b<0?a[0]:a[a.length-1]},getFirstVisibleItem:function(){return this.getVisibleItems()[0]},getLastVisibleItem:function(){var a=this.getVisibleItems();return a[a.length-1]},getFrontItem:function(){return this.frontItem},getFrontItemIndex:function(){return this.getItemIndex(this.getFrontItem())},getOrderedLayoutItems:function(){var a=Ext.Array.clone(this.getLayoutItems());return a.sort(this.sortByOrder)},setFrontItem:function(e,c){var b=this,r=b.getContainer(),p=r.getRenderTarget(),h=b.getFrontIndex(),m=b.getVisibleChildren(),a,k,n,f,g,o,j,d,q,l,i;a=b.getLayoutItems();if(a.length<m){return Ext.Deferred.getCachedResolved()}if(typeof e!=='number'){e=a.indexOf(e)}j=b.calcItemBasis();p.setStyle('left','-'+j+'%');n=b.getFrontItem();b.frontItem=a[e];h++;a=a.slice(e).concat(a.slice(0,e));f=a.indexOf(n);a=a.slice(-h).concat(a.slice(0,a.length-h));if(c==null){c=b.getAnimation()}if(c){if(typeof c==='boolean'){c={}}o=f>-1&&f<=Math.floor(a.length/2)?1:-1;Ext.destroy(b.activeAnim);i=new Ext.Deferred();l=i.promise;b.activeAnim=Ext.Animator.run(Ext.apply({element:p,to:{transform:{translateX:(j*o)+'%'}},callback:function(){b.orderItems(a);i.resolve();b.activeAnim=null}},c))}b.visibleItems=g=[];for(d=0,q=a.length;d<q;d++){k=a[d];if(d>0&&d<=m){g.push(k)}k.$carouselOrder=d+1}if(!c){b.orderItems(a);l=Ext.Deferred.getCachedResolved()}g.sort(b.sortByOrder);return l},getMoveItem:function(b){var a=this.getFrontItemIndex();a=this.shiftIndex(a,b);return this.getLayoutItems()[a]},cancelAnimation:function(){Ext.destroy(this.activeAnim)},move:function(a,b){return this.setFrontItem(this.getMoveItem(a),b)},prev:function(a){return this.move(-1,a)},next:function(a){return this.move(1,a)},privates:{orderItems:function(c){var d=c.length,a,b;for(a=0;a<d;++a){b=c[a];b.el.setStyle('order',b.$carouselOrder+1)}},sortByOrder:function(a,b){return +a.$carouselOrder-b.$carouselOrder}}});Ext.define('Ext.panel.DateView',{extend:Ext.Widget,xtype:'dateview',config:{specialDates:null,specialDays:null,monthOffset:0},cachedConfig:{captionFormat:null,dateCellFormat:null,format:null,headerLength:null,hideCaption:!0,hideOutside:!0,startDay:null,weekendDays:null},element:{reference:'element'},tableTpl:{reference:'tableElement',tag:'table',cellspacing:'0',cellpadding:'0',children:[]},captionTpl:{reference:'captionElement',tag:'caption'},headTpl:{tag:'thead',reference:'headElement'},headRowTpl:{tag:'tr'},headCellTpl:{tag:'th',cls:Ext.baseCSSPrefix+'cell',children:[{tag:'div',cls:Ext.baseCSSPrefix+'inner '+Ext.dom.Element.unselectableCls}]},bodyTpl:{tag:'tbody',reference:'bodyElement'},bodyRowTpl:{tag:'tr'},bodyCellTpl:{tag:'td',cls:Ext.baseCSSPrefix+'cell',tabIndex:-1,children:[{tag:'div',cls:Ext.baseCSSPrefix+'inner '+Ext.dom.Element.unselectableCls}]},rows:6,columns:7,cellCls:Ext.baseCSSPrefix+'cell',emptyCls:Ext.baseCSSPrefix+'empty',weekendDayCls:Ext.baseCSSPrefix+'weekend',disabledDayCls:Ext.baseCSSPrefix+'disabled',specialDateCls:Ext.baseCSSPrefix+'special',todayCls:Ext.baseCSSPrefix+'today',outsideCls:Ext.baseCSSPrefix+'outside',prevMonthCls:Ext.baseCSSPrefix+'prev-month',nextMonthCls:Ext.baseCSSPrefix+'next-month',currentMonthCls:Ext.baseCSSPrefix+'current-month',constructor:function(a){this.firstOfMonth=Ext.Date.getFirstDateOfMonth(new Date());this.callParent([a])},initElement:function(){var a=this;a.callParent();a.headCells=a.headElement.query('th');a.bodyCells=a.bodyElement.query('td');a.cellMap={}},getMonth:function(){return Ext.Date.add(this.firstOfMonth,Ext.Date.MONTH,this.getMonthOffset())},getTemplate:function(){var a=this,h=a.tableTpl,d=a.headRowTpl,j=a.headCellTpl,c=a.bodyRowTpl,i=a.bodyCellTpl,l=a.rows,k=a.columns,g,f,b,e;d=Ext.apply({children:[]},d);c=Ext.apply({children:[]},c);for(b=0,e=k;b<e;b++){d.children.push(j);c.children.push(i)}g=Ext.apply({children:[]},a.headTpl);g.children.push(d);f=Ext.apply({children:[]},a.bodyTpl);for(b=0,e=l;b<e;b++){f.children.push(c)}h.children=[a.captionTpl,g,f];return [h]},getCellByDate:function(a){return a?this.cellMap[a.getTime()]:null},updateWeekendDays:function(){if(!this.isConfiguring){this.refresh()}},updateStartDay:function(i){var d=this.headCells,g=this.getWeekendDays(),h=this.weekendDayCls,f=this.getHeaderLength(),c,a,e,b;for(a=0,e=d.length;a<e;a++){c=d[a];b=(a+i)%7;c.firstChild.innerHTML=Ext.Date.getShortDayName(b).substr(0,f);Ext.fly(c).toggleCls(h,!!g[b])}},updateSpecialDates:function(){if(!this.isConfiguring){this.refresh()}},updateSpecialDays:function(){if(!this.isConfiguring){this.refresh()}},applyMonthOffset:function(a){return !isNaN(a)?a:0},updateMonthOffset:function(){this.refresh()},updateCaptionFormat:function(b){var a=this.getMonth();if(a){this.captionElement.setHtml(Ext.Date.format(a,b))}},updateHideCaption:function(a){this.toggleCls(Ext.baseCSSPrefix+'hide-caption',a)},refresh:function(){var a=this,f=Ext.Date,p=a.bodyCells,c,e,m,n,g,o,l,b,d,q,j,i,h,k;if(a.refreshing){return}a.refreshing=!0;c=a.getMonth();n=a.getStartDay();e=n-c.getDay();if(e>0){e-=7}m=f.add(c,f.DAY,e);o=a.cellMap={};h=c.getMonth();b={today:Ext.Date.clearTime(new Date()),weekendDays:a.getWeekendDays(),specialDates:a.getSpecialDates(),specialDays:a.getSpecialDays(),format:a.getFormat(),dateCellFormat:a.getDateCellFormat(),hideOutside:a.getHideOutside()};for(d=0,q=p.length;d<q;d++){l=p[d];g=f.add(m,f.DAY,d);k=g.getMonth();j=k<h;i=k>h;o[g.getTime()]=l;b.cell=l;b.date=g;b.outside=j||i;b.outsidePrevious=j;b.outsideNext=i;a.refreshCell(b)}a.captionElement.setHtml(Ext.Date.format(c,a.getCaptionFormat()));a.refreshing=!1},refreshCell:function(b){var a=this,e=b.cell,d=b.date,l=d.getDay(),n=d.getTime(),f=b.specialDates,k=b.specialDays,c=[a.cellCls],m=Ext.Date.format(d,b.format),i=b.outside&&b.hideOutside,j,g,h;if(!i){if(b.outsidePrevious){c.push(a.outsideCls,a.prevMonthCls)}else if(b.outsideNext){c.push(a.outsideCls,a.nextMonthCls)}else {c.push(a.currentMonthCls);if(Ext.Date.isEqual(d,b.today)){c.push(a.todayCls)}}if(b.weekendDays[l]){c.push(a.weekendDayCls)}if(!g&&k){g=k[l]}if(f){g=f.dates[n]||(f.re&&f.re.test(m))}if(g){c.push(a.specialDateCls)}}else {c.push(a.emptyCls)}h=a.getParent().isDateDisabled(d);if(!i&&h){c.push(a.disabledDayCls)}e.tabIndex=-1;if(i){j='&#160;'}else {j=Ext.Date.format(d,b.dateCellFormat)}e.firstChild.innerHTML=j;if(a.transformCellCls){a.transformCellCls(d,c)}e.className=c.join(' ');e.date=d;e.disabled=h},ownsDate:function(b){var a=this.getMonth();return b.getFullYear()===a.getFullYear()&&b.getMonth()===a.getMonth()},privates:{measurePaneSize:function(){var a=this.element.first();return a.measure('w')+a.getMargin('lr')}}});Ext.define('Ext.panel.Title',{extend:Ext.Component,xtype:'paneltitle',isPanelTitle:!0,cachedConfig:{textAlign:'left',iconAlign:'left',rotation:0,rotateIcon:null},config:{text:'',icon:null,iconCls:null},weight:-10,inheritUi:!0,element:{reference:'element',cls:Ext.baseCSSPrefix+'unselectable'},template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',children:[{reference:'iconElement',cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'},{reference:'textElement',cls:Ext.baseCSSPrefix+'text-el'}]}],verticalCls:Ext.baseCSSPrefix+'vertical',horizontalCls:Ext.baseCSSPrefix+'horizontal',rotateIconCls:Ext.baseCSSPrefix+'rotate-icon',iconAlignVerticalCls:Ext.baseCSSPrefix+'icon-align-vertical',hasIconCls:Ext.baseCSSPrefix+'has-icon',_textAlignClasses:{left:Ext.baseCSSPrefix+'text-align-left',center:Ext.baseCSSPrefix+'text-align-center',right:Ext.baseCSSPrefix+'text-align-right'},_iconAlignClasses:{top:Ext.baseCSSPrefix+'icon-align-top',right:Ext.baseCSSPrefix+'icon-align-right',bottom:Ext.baseCSSPrefix+'icon-align-bottom',left:Ext.baseCSSPrefix+'icon-align-left'},_rotationClasses:{90:Ext.baseCSSPrefix+'rotate-90',270:Ext.baseCSSPrefix+'rotate-270'},classCls:Ext.baseCSSPrefix+'paneltitle',_titleSuffix:'-title',afterRender:function(){if(Ext.isSafari){this.repaintBodyElement()}this.callParent()},updateIcon:function(b,d){var c=this,a;c.syncIconVisibility();a=c.iconElement;a.setStyle('background-image',b?'url('+b+')':'')},updateIconAlign:function(a,e){var c=this,d=c._iconAlignClasses,b=c.el;if(e){b.removeCls(d[e])}if(a){b.addCls(d[a])}b.toggleCls(c.iconAlignVerticalCls,a==='top'||a==='bottom')},updateIconCls:function(c,b){var a=this.iconElement;this.syncIconVisibility();if(b){a.removeCls(b)}if(c){a.addCls(c)}},updateRotation:function(c,b){var a=this,f=a.verticalCls,e=a.horizontalCls,d=a.el;b=parseInt(b,10);c=parseInt(c,10);if(b!==0){d.removeCls(a._rotationClasses[b])}if(c===0){d.replaceCls(f,e)}else {d.replaceCls(e,[f,a._rotationClasses[c]])}if(Ext.isSafari&&this.rendered){this.repaintBodyElement()}},updateRotateIcon:function(a){this.el.toggleCls(this.rotateIconCls,!!a)},updateText:function(a){var b=this.textElement.dom;b.innerHTML=a||'&#160;';b.setAttribute('data-title',a)},updateTextAlign:function(d,c){var a=this,b=a._textAlignClasses;if(c){a.removeCls(b[c])}if(d){a.addCls(b[d])}},privates:{repaintBodyElement:function(){var a=this.bodyElement.dom,b=a.style;b.width='-webkit-min-content';a.offsetWidth;b.width=''},syncIconVisibility:function(){this.el.toggleCls(this.hasIconCls,!!(this.getIcon()||this.getIconCls()))}},deprecated:{'6.5':{configs:{glyph:null}}}});Ext.define('Ext.panel.DateTitle',{extend:Ext.panel.Title,xtype:'datetitle',classCls:Ext.baseCSSPrefix+'datetitle',template:[{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',children:[{reference:'iconElement',cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'},{cls:Ext.baseCSSPrefix+'text-container-el',children:[{reference:'yearElement',cls:Ext.baseCSSPrefix+'year-el'},{reference:'textElement',cls:Ext.baseCSSPrefix+'text-el'}]}]}],config:{split:{cached:!0,$value:!1},titleActive:{cached:!0,$value:!0},year:null},initialize:function(){var a=this;a.callParent();a.yearElement.on('tap','onYearTap',a);a.textElement.on('tap','onTextTap',a)},updateSplit:function(a){this.yearElement.setDisplayed(a);this.toggleCls(Ext.baseCSSPrefix+'split',a)},updateTitleActive:function(a){var b=Ext.baseCSSPrefix+'inactive';this.textElement.toggleCls(b,!a);this.yearElement.toggleCls(b,a)},updateYear:function(a){this.yearElement.dom.textContent=a},privates:{onTextTap:function(a){this.fireEvent('titletap',this,a)},onYearTap:function(a){this.fireEvent('yeartap',this,a)}}});Ext.define('Ext.panel.YearPicker',{extend:Ext.dataview.BoundList,xtype:'yearpicker',classCls:Ext.baseCSSPrefix+'yearpicker',config:{defaultOffset:100,end:undefined,start:undefined},itemConfig:{ui:'yearpicker',tools:null},itemTpl:'{year}',pinFooters:!1,pinHeaders:!1,scrollToTopOnRefresh:!1,initialize:function(){this.callParent();this.rebuildStore()},focusYear:function(e){var a=this,b=a.getStore().getById(e),d=a.mapToItem(b),c=a.getScrollable(),f=c.getEnsureVisibleXY(d.element,{align:{y:'center?'}}).y;c.scrollTo(null,f,!1);a.getNavigationModel().setLocation(b);a.select(b)},onChildTap:function(a){var b=a.record;if(b){a.event.stopEvent();this.fireEvent('yeartap',this,b.id)}},applyEnd:function(a){if(!a){a=(new Date()).getFullYear()+this.getDefaultOffset()}return a},updateEnd:function(){this.rebuildStore()},applyStart:function(a){if(!a){a=(new Date()).getFullYear()-this.getDefaultOffset()}return a},updateStart:function(){this.rebuildStore()},privates:{forceRefreshOnRender:!0,rebuildStore:function(){var a=this,e=a.getStart(),f=a.getEnd(),c=a.getStore(),d,b;if(a.isConfiguring){return}if(!c){c=new Ext.data.Store({autoDestroy:!0});a.setStore(c)}d=[];for(b=e;b<=f;++b){d.push({id:b,year:b})}c.loadData(d)}}});Ext.define('Ext.panel.Date',{extend:Ext.Panel,xtype:'datepanel',config:{animation:!0,autoConfirm:!1,captionFormat:{$value:'F Y',cached:!0},dateCellFormat:{$value:'j',cached:!0},disabledDates:null,disabledDays:null,focusableDate:null,format:{$value:Ext.Date.defaultFormat,cached:!0},handler:null,headerFormat:{$value:'D, M j Y',cached:!0},headerLength:1,hideCaptions:!0,hideOutside:!1,maxDate:null,minDate:null,navigationPosition:'header',nextText:'Next Month (Control+Right)',panes:1,prevText:'Previous Month (Control+Left)',selectOnNavigate:!0,showAfterMaxDate:!1,showBeforeMinDate:!1,showFooter:null,showTodayButton:null,specialDates:null,specialDays:null,splitTitle:!1,startDay:{$value:Ext.Date.firstDayOfWeek,cached:!0},titleAnimation:null,value:undefined,weekendDays:{$value:Ext.Date.weekendDays,cached:!0},yearPicker:{lazy:!0,$value:{}},yearPickerDefaults:null},focusable:!0,tabIndex:0,border:!1,mouseWheelBuffer:500,autoSize:null,headerCls:Ext.baseCSSPrefix+'datepanelheader',titleCls:Ext.baseCSSPrefix+'datetitle',toolCls:[Ext.baseCSSPrefix+'paneltool',Ext.baseCSSPrefix+'datepaneltool'],header:{title:{xtype:'datetitle'}},tools:{previousMonth:{reference:'navigatePrevMonth',iconCls:'x-fa fa-angle-left',cls:Ext.baseCSSPrefix+'left-year-tool ',weight:-100,increment:-1,focusable:!1,tabIndex:null,forceTabIndex:!0,listeners:{click:'onMonthToolClick'}},previousYear:{reference:'navigatePrevYear',iconCls:'x-fa fa-angle-double-left',cls:Ext.baseCSSPrefix+'left-month-tool',weight:-90,increment:-12,focusable:!1,tabIndex:null,forceTabIndex:!0,listeners:{click:'onMonthToolClick'}},nextYear:{reference:'navigateNextYear',iconCls:'x-fa fa-angle-double-right',cls:Ext.baseCSSPrefix+'right-month-tool',weight:90,increment:12,focusable:!1,tabIndex:null,forceTabIndex:!0,listeners:{click:'onMonthToolClick'}},nextMonth:{reference:'navigateNextMonth',iconCls:'x-fa fa-angle-right',cls:Ext.baseCSSPrefix+'right-year-tool',weight:100,increment:1,focusable:!1,tabIndex:null,forceTabIndex:!0,listeners:{click:'onMonthToolClick'}}},keyMapTarget:'bodyElement',keyMap:{'*+LEFT':'onLeftArrowKey','*+RIGHT':'onRightArrowKey',UP:'onUpArrowKey',DOWN:'onDownArrowKey',"*+PAGE_UP":'onPageUpKey',"*+PAGE_DOWN":'onPageDownKey',HOME:'onHomeKey',END:'onEndKey',ENTER:'onEnterKey',SPACE:'onSpaceKey',BACKSPACE:'onBackspaceKey',"*+TAB":'onTabKey',scope:'this'},paneXtype:'dateview',classCls:Ext.baseCSSPrefix+'datepanel',layout:{type:'carousel',animation:{duration:100}},defaultListenerScope:!0,referenceHolder:!0,buttonToolbar:{enableFocusableContainer:!1,cls:Ext.baseCSSPrefix+'datepanel-footer',reference:'footer'},buttons:{footerTodayButton:{text:'Today',tabIndex:-1,hidden:!0,weight:-20,handler:'onTodayButtonClick',reference:'footerTodayButton'},spacer:{xtype:'component',weight:-10,flex:1},ok:{tabIndex:-1,handler:'onOkButtonClick'},cancel:{tabIndex:-1,handler:'onCancelButtonClick'}},initialize:function(){var a=this,b=a.getValue();a.callParent();a.setToolText('navigatePrevMonth',a.getPrevText());a.setToolText('navigateNextMonth',a.getNextText());a.bodyElement.on({click:{delegate:a.cellSelector,fn:'onDateClick'},focus:'onBodyFocus',wheel:Ext.Function.createThrottled(a.onMouseWheel,a.mouseWheelBuffer),scope:a});a.getShowFooter();a.preventAnim=!0;a.setFocusableDate(b);a.preventAnim=!1;a.setTitleByDate(b);Ext.fly(a.getCellByDate(b)).addCls(a.selectedCls)},onRender:function(){this.callParent();this.measurePaneSize()},doDestroy:function(){var a=this;Ext.destroy(a.animTitle,a.animBody);a.callParent()},focusDate:function(b){var a=this;a.doFocus=!0;a.setFocusableDate(b);a.doFocus=!1},updateAnimation:function(a){this.getLayout().setAnimation(a)},updateAutoConfirm:function(b){var a=this;a.getButtons();if(!b){a.setShowFooter(!0)}else {a.setShowFooter(a.initialConfig.showFooter)}},updateCaptionFormat:function(a){this.broadcastConfig('captionFormat',a)},updateDateCellFormat:function(a){this.broadcastConfig('dateCellFormat',a)},applyDisabledDates:function(a){if(!a){return a}var c={dates:{}},d=[],b,e,f;if(a instanceof RegExp){c.re=a}else {if(!Ext.isArray(a)){a=[a]}for(e=0,f=a.length;e<f;e++){b=a[e];if(b instanceof Date){b=Ext.Date.clearTime(b);c.dates[b.getTime()]=!0}else if(b instanceof RegExp){d.push(b.source)}else {d.push(Ext.String.escapeRegex(b))}}if(d.length){c.re=new RegExp('(?:'+d.join('|')+')')}}return c},updateDisabledDates:function(){this.refreshPanes()},applyDisabledDays:function(a){return a?Ext.Array.toMap(a):a},updateDisabledDays:function(){this.refreshPanes()},updateFormat:function(a){this.broadcastConfig('format',a)},updateHeader:function(a,b){this.callParent([a,b]);a.getTitle().on({scope:this,yeartap:'onYearTitleTap',titletap:'onTitleTap'})},applyMaxDate:function(a){if(typeof a==='string'){a=Ext.Date.parse(a,this.getFormat())}return a},updateMaxDate:function(){this.refreshPanes()},applyMinDate:function(a){if(typeof a==='string'){a=Ext.Date.parse(a,this.getFormat())}return a},updateMinDate:function(){this.refreshPanes()},updateNavigationPosition:function(g){var a=this,f=a.toolList,h=f.length,e=g==='header',i=e?a.toolCt:a.getHeader(),b,d,c;if(e&&a.isConfiguring){return}a.getTools();b=[];for(d=0;d<h;++d){c=a.lookup(f[d]);if(c){b.push(c);i.remove(c,!1);c.toggleCls(a.toolCls,e)}}a.toolCt=Ext.destroy(a.toolCt);if(g==='header'){a.getHeader().add(b)}else {b.push({xtype:'component',flex:1,weight:0});a.toolCt=a.add({xtype:'container',cls:Ext.baseCSSPrefix+'navigation-tools',defaultType:'tool',weighted:!0,layout:'hbox',bottom:'auto',items:b})}},updateNextText:function(a){this.setToolText('navigateNextMonth',a)},updatePrevText:function(a){this.setToolText('navigatePrevMonth',a)},updatePanes:function(b){var a=this;a.getLayout().setVisibleChildren(b);a.initPanes(0);a.singlePane=b===1;a.toggleCls(Ext.baseCSSPrefix+'single',a.singlePane)},updateShowFooter:function(a){this.lookup('footer').setHidden(!a);this.getShowTodayButton()},updateShowTodayButton:function(b){var a;this.getButtons();a=this.lookup('footerTodayButton');if(a){a.setHidden(!b)}},applySpecialDates:function(a){return this.applyDisabledDates(a)},updateSpecialDates:function(a){this.broadcastConfig('specialDates',a)},applySpecialDays:function(a){return a?Ext.Array.toMap(a):a},updateSpecialDays:function(a){this.broadcastConfig('specialDays',a)},updateSplitTitle:function(a){this.getHeader().getTitle().setSplit(a)},updateStartDay:function(a){this.broadcastConfig('startDay',a)},applyValue:function(a){if(typeof a==='string'){a=Ext.Date.parse(a,this.getFormat())}else if(!a){a=new Date()}return Ext.isDate(a)?Ext.Date.clearTime(a,!0):null},updateValue:function(b,d){var a=this,f=a.getHandler(),e=a.selectedCls,c;if(d){c=a.getCellByDate(d);if(c){Ext.fly(c).removeCls(e)}}if(!a.isConfiguring){if(a.hasFocus){a.focusDate(b)}else {a.setFocusableDate(b)}c=a.getCellByDate(b);if(c){Ext.fly(c).addCls(e)}a.setTitleByDate(b);a.fireEvent('change',a,b,d);if(f){Ext.callback(f,a.scope,[a,b,d])}}},applyWeekendDays:function(a){return Ext.Array.toMap(a)},updateWeekendDays:function(a){this.broadcastConfig('weekendDays',a)},applyYearPicker:function(b,a){return Ext.updateWidget(a,b,this,'createYearPicker','yearPickerDefaults')},updateYearPicker:function(a){if(a){this.add(a)}},replacePanes:function(g,b){var a=this,c,e,f,d;if(a.destroying||a.destroyed){return}c=a.getLayout().getVisibleItems();e=function(){var d,e,a,f;for(a=0,f=c.length;a<f;a++){d=c[a];e=d.getMonthOffset();d.setMonthOffset(e+g)}};if(b==null){b=a.getAnimation()}if(b){f=g<0?'up':'down';d=a.animateVertical(a.carouselElement,f,0,e,'animBody')}else {e();d=Ext.Deferred.getCachedResolved()}return d},initPanes:function(h){var c=this,f=c.getPanes()+2,g=[],d,b,e,a;b=f-1;e=!b?b:b%2?Math.floor(b/2)+1:Math.floor(b/2);for(a=0;a<f;a++){g.push(c.getPaneTemplate((a+h)-e))}d=c.getInnerItems();for(a=0;a<d.length;a++){c.remove(d[a],!0)}c.add(g);c.getLayout().setFrontItem(e,!1)},getPaneByDate:function(f){var g=this,d=g.getInnerItems(),c,b,a,e;c=Ext.Date.getFirstDateOfMonth(f);for(a=0,e=d.length;a<e;a++){b=d[a];if(Ext.Date.isEqual(b.getMonth(),c)){return b}}return null},getCellByDate:function(a){var b=this.getPaneByDate(a);return b?b.getCellByDate(a):null},updateCellTabIndex:function(b,c){var a=b&&this.getCellByDate(b);if(a){Ext.fly(a).setTabIndex(c)}return a},canSwitchTo:function(e,d){var c=this,a,b;if(d<0){a=c.getMinDate();b=!c.getShowBeforeMinDate();if(a&&b){if(e.getTime()<Ext.Date.getFirstDateOfMonth(a).getTime()){return !1}}}else if(d>0){a=c.getMaxDate();b=!c.getShowAfterMaxDate();if(a&&b){if(e.getTime()>Ext.Date.getLastDateOfMonth(a).getTime()){return !1}}}return !0},navigateTo:function(b,h){var d=this,g=d.getLayout(),f,c,a,e;if(b.getTime()<(f=g.getFirstVisibleItem().getMonth()).getTime()){a=f}else if(b.getTime()>(f=g.getLastVisibleItem().getMonth()).getTime()){a=f}else {a=b}c=(b.getFullYear()*12+b.getMonth())-(a.getFullYear()*12+a.getMonth());if(c<0){a=d.getMinDate();e=!d.getShowBeforeMinDate();if(a&&e){if(b.getTime()<Ext.Date.getFirstDateOfMonth(a).getTime()){c=0}}}else if(c>0){a=d.getMaxDate();e=!d.getShowAfterMaxDate();if(a&&e){if(b.getTime()>Ext.Date.getLastDateOfMonth(a).getTime()){c=0}}}return d.navigateByIncrement(c,h,0)},switchPanes:function(a,e){var f=this,b=f.getLayout(),c,d;c=a<0?b.getFirstVisibleItem():b.getLastVisibleItem();d=b.getEdgeItem(a);d.setMonthOffset(c.getMonthOffset()+a);return b.move(a,e)},onMonthToolClick:function(j){var a=this,i=a.getInnerItems(),c=Ext.Date,b=j.increment,g=c.add(a.getFocusableDate(),c.MONTH,b),d=a.hasFocus,e,h,f;e=a.getCenterIndex();h=i[e];f=c.add(h.getMonth(),c.MONTH,b);if(!a.canSwitchTo(f,b)){return}a.navIncrement=a.singlePane?0:b;if(d||a.getSelectOnNavigate()){a.setValue(g)}else {a.doFocus=d;a.setFocusableDate(g);a.doFocus=!1}a.navIncrement=0},onDateClick:function(d){var a=this,b=d.getTarget(a.cellSelector,a.bodyElement),c=b&&b.date,e=!0,f=b&&b.disabled;if(!c||a.getDisabled()){return}if(!f){a.setValue(c);if(a.getAutoConfirm()){if(d.pointerType==='touch'){d.preventDefault()}e=!1;a.fireEvent('select',a,c)}}if(e){a.focusDate(c)}},onMouseWheel:function(b){var a=b.browserEvent.deltaY;if(a&&!this.pickerVisible){this.onMonthToolClick({increment:Ext.Number.sign(a)})}},onOkButtonClick:function(){this.setValue(this.getFocusableDate())},onCancelButtonClick:function(){this.fireEventArgs('tabout',[this])},onTodayButtonClick:function(){var b=this,a;a=b.getLayout().getFrontItem().getMonthOffset();if(a!==0){if(Math.abs(a)===1){b.switchPanes(-a)}else {b.replacePanes(-a)}}b.setValue(Ext.Date.clearTime(new Date()))},getFocusEl:function(){if(!this.initialized){return null}return this.getCellByDate(this.getFocusableDate())},onLeftArrowKey:function(a){this.walkCells(a.target.date,a.ctrlKey?Ext.Date.MONTH:Ext.Date.DAY,-1);a.preventDefault()},onRightArrowKey:function(a){this.walkCells(a.target.date,a.ctrlKey?Ext.Date.MONTH:Ext.Date.DAY,1);a.preventDefault()},onUpArrowKey:function(a){this.walkCells(a.target.date,Ext.Date.DAY,-7);a.preventDefault()},onDownArrowKey:function(a){this.walkCells(a.target.date,Ext.Date.DAY,7);a.preventDefault()},onPageUpKey:function(a){var b=a.ctrlKey||a.shiftKey?Ext.Date.YEAR:Ext.Date.MONTH;this.walkCells(a.target.date,b,-1);a.preventDefault()},onPageDownKey:function(a){var b=a.ctrlKey||a.shiftKey?Ext.Date.YEAR:Ext.Date.MONTH;this.walkCells(a.target.date,b,1);a.preventDefault()},onHomeKey:function(a){this.walkCells(Ext.Date.getFirstDateOfMonth(a.target.date));a.preventDefault()},onEndKey:function(a){this.walkCells(Ext.Date.getLastDateOfMonth(a.target.date));a.preventDefault()},onBackspaceKey:function(a){this.walkCells(new Date());a.preventDefault()},onEnterKey:function(d){var b=this,a=d.target,c=a&&a.date;if(c&&!a.disabled){b.setValue(c);b.fireEvent('select',b,a.date)}},onSpaceKey:function(a){this.onEnterKey(a);a.preventDefault()},onTabKey:function(a){this.handleTabKey(a);return !0},handleTabKey:function(d){var a=this,b=d.target,c=a.pickerField;if(!a.getDisabled()&&a.getAutoConfirm()&&b&&b.date&&!b.disabled){a.setValue(b.date);if(c&&c.isEditorComponent){d.preventDefault()}}else {a.fireEventArgs('tabout',[a])}},walkCells:function(c,d,e){var a=this,b;if(!a.getDisabled()){c=a.getFocusableDate();b=d?Ext.Date.add(c,d,e):c;if(a.isDateDisabled(b)){a.focusDate(b)}else {a.setValue(b)}}},onBodyFocus:function(d){var a=this,c=a.getFocusableDate(),b=a.getCellByDate(c);if(!b){a.navigateTo(c,!1)}b=a.updateCellTabIndex(c,a.getTabIndex());b.focus()},getTabIndex:function(){return this.getConfig('tabIndex',!0)},getFocusClsEl:function(){return this.bodyElement},onFocusEnter:function(a){if(this.bodyElement.contains(a.target)){this.onFocus(a)}this.callParent([a])},onFocusLeave:function(a){this.onBlur(a);this.callParent([a])},privates:{cellSelector:'.'+Ext.baseCSSPrefix+'cell',clonedCls:Ext.baseCSSPrefix+'cloned',lastNavigate:0,hideFocusCls:Ext.baseCSSPrefix+'hide-focus',selectedCls:Ext.baseCSSPrefix+'selected',toolList:['navigatePrevMonth','navigatePrevYear','navigateNextYear','navigateNextMonth'],paneWidthMap:{},pickerVisible:!1,applyFocusableDate:function(a){var c=this,d=Ext.Date,b;if(a){a=d.clearTime(a||new Date());if((b=c.getMinDate())&&!c.getShowBeforeMinDate()&&a.getTime()<b.getTime()){a=b}else if((b=c.getMaxDate())&&!c.getShowAfterMaxDate()&&a.getTime()>b.getTime()){a=b}}return a},updateFocusableDate:function(b,d){var a=this,i=a.doFocus,m=a.getLayout(),k=a.hideFocusCls,e=a.navIncrement,f,h,j,g,c,l;if(a.destroying||a.destroyed){return}if(d){c=a.getCellByDate(d);a.updateCellTabIndex(d,-1)}if(b){h=a.getPaneByDate(b);if(!a.preventAnim){j=a.getAnimation()}f=m.getVisibleItems();a.lastNavigate=g=Date.now();if(!e&&(!j||f.indexOf(h)>-1)){a.navigateTo(b,!1);if(i){a.getCellByDate(b).focus()}}else {if(c){Ext.fly(c).addCls(k)}l=e?a.navigateByIncrement(e):a.navigateTo(b);l.then(function(){c=a.getCellByDate(d);if(c){Ext.fly(c).removeCls(k)}if(i&&a.lastNavigate===g){a.getCellByDate(b).focus()}})}a.updateCellTabIndex(b,a.getTabIndex())}},animateVertical:function(d,e,g,f,c){var b=this,a=d.dom.cloneNode(!0),h=new Ext.Deferred();a.id='';Ext.fly(a).addCls(b.clonedCls);d.parent().appendChild(a);if(f){f()}Ext.destroy(b[c]);b[c]=Ext.Animator.run([{offset:g,type:'slide',direction:e,element:d},{offset:g,type:'slideOut',direction:e,element:a,callback:function(){Ext.fly(a).destroy();b[c]=null;h.resolve()}}]);return h.promise},broadcastConfig:function(f,g){if(this.isConfiguring){return}var d=this.getInnerItems(),b,c,a,e;b=Ext.Config.get(f).names.set;for(a=0,e=d.length;a<e;a++){c=d[a];if(c[b]){c[b](g)}}},createYearPicker:function(a){return Ext.apply({xtype:'yearpicker',hidden:!0,top:0,right:0,bottom:0,left:0,listeners:{yeartap:'onYearPickerTap'}},a)},getCenterIndex:function(){var b=this.getPanes(),a=b-1;return !a?a:a%2?Math.floor(a/2)+1:Math.floor(a/2)},getPaneTemplate:function(b){var a=this;return {xtype:a.paneXtype,monthOffset:b,hideOutside:a.getHideOutside(),hideCaption:a.getHideCaptions(),startDay:a.getStartDay(),weekendDays:a.getWeekendDays(),specialDates:a.getSpecialDates(),specialDays:a.getSpecialDays(),format:a.getFormat(),captionFormat:a.getCaptionFormat(),dateCellFormat:a.getDateCellFormat(),headerLength:a.getHeaderLength(),transformCellCls:a.transformCellCls}},getPositionedItemTarget:function(){return this.bodyElement},isDateDisabled:function(e){var b=this,f=e.getTime(),j=b.getMinDate(),i=b.getMaxDate(),a,d,c,h,g;a=(j&&f<j.getTime())||(i&&f>i.getTime());if(!a){d=b.getDisabledDays();if(d){a=d[e.getDay()]}}if(!a){c=b.getDisabledDates();if(c){a=c.dates[f];g=c.re;if(!a&&g){h=Ext.Date.format(e,b.getFormat());a=g.test(h)}}}return !!a},measurePaneSize:function(){var a=this,e=a.getPanes(),c=a.getUi()||'default',b=a.paneWidthMap,d;if(!b.hasOwnProperty(c)){b[c]=this.getLayout().getFrontItem().measurePaneSize()}d=a.el.getBorderWidth('lr');a.setWidth(d+e*b[c])},navigateByIncrement:function(a,c){var b;if(Math.abs(a)===1){b=this.switchPanes(a,c)}else {if(a!==0){b=this.replacePanes(a,c)}else if(!c){this.getLayout().cancelAnimation();b=Ext.Deferred.getCachedResolved()}}return b},onTitleTap:function(){var a;if(this.getSplitTitle()){a=!1}else {a=!this.pickerVisible}this.toggleYearPicker(a)},onYearPickerTap:function(c,b){this.toggleYearPicker(!1);var a=Ext.Date.clone(this.getFocusableDate());a.setFullYear(b);this.setValue(a)},onYearTitleTap:function(){this.toggleYearPicker(!this.pickerVisible)},refreshPanes:function(){if(this.isConfiguring){return}var b=this.getPanes(),c=b.length,a;for(a=0;a<c;++a){b[a].refresh()}},setTitleByDate:function(a){var b=this,c=b.lastTitleDate,d;if(c&&c.getTime()===a.getTime()){d=!1}b.setTitleText(Ext.Date.format(a,b.getHeaderFormat()),a,c,d);b.lastTitleDate=a},setTitleText:function(f,e,h,b){var a=this,c,g,d;if(a.destroying||a.destroyed){return}if(b===undefined){d=a.getTitleAnimation();if(d!==null){b=d}else {b=a.getAnimation()}}b=a.rendered?b:!1;c=a.getHeader().getTitle();if(b){g=(h||e).getTime()<e.getTime()?'bottom':'top';a.animateVertical(c.textElement,g,'150%',function(){c.setText(f)},'animTitle')}else {if(a.getSplitTitle()){c.setYear(e.getFullYear());c.setText(f)}else {c.setText(f)}}},setToolText:function(c,b){var a=this.lookup(c);if(a){a.setTooltip(b)}},toggleYearPicker:function(b){var a=this,c=a.getYearPicker();if(c){if(a.getSplitTitle()){a.getHeader().getTitle().setTitleActive(!b)}c.setHidden(!b);if(b){c.focusYear(a.getFocusableDate().getFullYear())}a.pickerVisible=b}}}});Ext.define('Ext.field.Date',{extend:Ext.field.Picker,alternateClassName:['Ext.form.DatePicker','Ext.field.DatePicker'],xtype:['datefield','datepickerfield'],config:{destroyPickerOnHide:!1,dataType:{type:'date'},dateFormat:'',altFormats:'m/d/Y|'+'n/j/Y|'+'n/j/y|'+'m/j/y|'+'n/d/y|'+'m/j/Y|'+'n/d/Y|'+'m-d-y|'+'m-d-Y|'+'m/d|'+'m-d|'+'md|'+'mdy|'+'mdY|'+'d|'+'Y-m-d|'+'n-j|'+'n/j',minDate:null,maxDate:null,triggers:{expand:{type:'date'}}},classCls:Ext.baseCSSPrefix+'datepickerfield',matchFieldWidth:!1,isDateField:!0,minDateMessage:"The date in this field must be equal to or after {0}",maxDateMessage:"The date in this field must be equal to or before {0}",initTime:'12',initTimeFormat:'H',floatedPicker:{xtype:'datepanel',autoConfirm:!0,floated:!0,listeners:{tabout:'onTabOut',select:'onPickerChange',scope:'owner'},keyMap:{ESC:'onTabOut',scope:'owner'}},edgePicker:{xtype:'datepicker',cover:!0},parseValidator:'date',applyValue:function(a,b){if(!(a||a===0)){a=null}a=this.callParent([a,b]);if(a){if(this.isConfiguring){this.originalValue=a}if(Ext.isDate(a)&&Ext.isDate(b)&&a.getTime()===b.getTime()){return}}return a},updateValue:function(b,c){var a=this._picker;if(a&&a.isPicker&&Ext.isDate(b)){this.updatePickerValue(a,b)}this.callParent([b,c])},updatePickerValue:function(a,b){a.setValue(b)},applyInputValue:function(a,b){if(Ext.isDate(a)){a=Ext.Date.format(a,this.getDateFormat())}return this.callParent([a,b])},applyAltFormats:function(a){if(a&&!Ext.isArray(a)){a=a.split('|')}return a},applyDateFormat:function(a){return a||Ext.util.Format.defaultDateFormat},updateDateFormat:function(){var a=this,b;if(!a.isConfiguring&&!a.hasFocus){b=a.getValue();if(Ext.isDate(b)){a.setInputValue(b)}}},applyMinDate:function(a){if(typeof a==='string'){a=Ext.Date.parse(a,this.getDateFormat())}return Ext.Date.clearTime(a,!0)},applyMaxDate:function(a){if(typeof a==='string'){a=Ext.Date.parse(a,this.getDateFormat())}return Ext.Date.clearTime(a,!0)},getFormattedValue:function(b){var a=this.getValue();return Ext.isDate(a)?Ext.Date.format(a,b||this.getDateFormat()):''},applyPicker:function(a,c){var b=this;a=b.callParent([a,c]);if(a){b.pickerType=a.xtype==='datepicker'?'edge':'floated';a.ownerCmp=b}return a},createFloatedPicker:function(){return this.getFloatedPicker()},createEdgePicker:function(){var c=this,b=this.getMinDate(),a=this.getMaxDate();return Ext.merge({yearFrom:b?b.getFullYear():(new Date().getFullYear()-20),yearTo:a?a.getFullYear():(new Date().getFullYear()+20)},c.getEdgePicker())},setPickerLocation:function(f){var b=this,e=b.pickerType,a=b.getPicker(),d=b.getValue(),c;b.$ignorePickerChange=!0;if(d!=null){a.setValue(d)}else if(e==='edge'){a.setValue(new Date())}delete b.$ignorePickerChange;if(e==='floated'){a.el.dom.tabIndex=-1;c=b.getMinDate();if(c){a.setMinDate(c)}c=b.getMaxDate();if(c){a.setMaxDate(c)}d=d||new Date();a.navigateTo(d,!1);if(f){a.focusDate(d)}}},doValidate:function(f,c,g){var b=this,e=b.getDateFormat(),a,d;b.callParent([f,c,g]);a=b.getMinDate();d=+f;if(a&&d<+a){a=Ext.Date.format(a,e);c.push(Ext.String.format(b.minDateMessage,a))}a=b.getMaxDate();if(a&&d>+a){a=Ext.Date.format(a,e);c.push(Ext.String.format(b.maxDateMessage,a))}},onPickerChange:function(c,b){var a=this;if(a.$ignorePickerChange){return}a.forceSetValue(b);a.fireEvent('select',a,b);a.onTabOut(c)},onTabOut:function(){this.collapse()},parseValue:function(d,j){var b=this,a=d,e=b.getDateFormat(),f=b.getAltFormats(),g=f?[e].concat(f):[e],i=g.length,c,h;if(a){if(!Ext.isDate(a)){for(c=0;c<i;c++){h=g[c];a=Ext.Date.parse(d+' '+b.initTime,h+' '+b.initTimeFormat);if(a){return Ext.Date.clearTime(a)}}}if(a!==null){return a}}return this.callParent([d,j])},isEqual:function(a,b){var c=this.transformValue(a),d=this.transformValue(b);return +c===+d},transformValue:function(a){if(Ext.isObject(a)){a=new Date(a.year,a.month,a.day);if(isNaN(a.getTime())){a=null}}return a},doDestroy:function(){var a=this._picker;if(a&&a.isPicker){a.destroy()}this.callParent()},rawToValue:function(a){var b=this;return b.parseValue(a)||a||null},privates:{setShowPickerValue:function(a){this.updatePickerValue(a,this.getValue()||new Date())}},deprecated:{'6.5':{configs:{format:'dateFormat'}}}});Ext.define('Ext.field.DatePickerNative',{extend:Ext.field.Date,alternateClassName:'Ext.form.DatePickerNative',xtype:'datepickernativefield',onFocus:function(e){var a=this,d,b,c;if(!(navigator.plugins&&navigator.plugins.dateTimePicker)){a.callParent();return}d=function(b){a.setValue(b)};b=function(a){console.log("DateTimePicker: error occurred or cancelled: "+a)};try{c=a.getName()==='date'?navigator.plugins.dateTimePicker.selectDate:navigator.plugins.dateTimePicker.selectTime;c(d,b,{value:a.getValue()})}catch(f){b(f)}}});Ext.define('Ext.field.Display',{extend:Ext.field.Field,xtype:'displayfield',alternateClassName:'Ext.form.Display',submitValue:!1,validateOnChange:!1,focusable:!1,readOnly:!0,config:{encodeHtml:!0,renderer:null},classCls:Ext.baseCSSPrefix+'displayfield',initialize:function(){this.callParent();this.syncDom()},getBodyTemplate:function(){return [{reference:'inputElement',cls:Ext.baseCSSPrefix+'input-el'}]},updateValue:function(a,b){this.callParent([a,b]);this.syncDom()},updateHtmlEncode:function(){this.syncDom()},updateRenderer:function(){this.syncDom()},validate:Ext.returnTrue,isValid:Ext.returnTrue,rawToValue:Ext.emptyFn,privates:{getDisplayValue:function(){var a=this,b=Ext.valueFrom(a.getValue(),''),c=a.getRenderer();if(c){b=Ext.callback(c,a.scope,[b,a],0,a)}return b},syncDom:function(){var a=this,c=a.inputElement.dom,b;if(!a.isConfiguring){b=a.getDisplayValue();if(a.getEncodeHtml()){c.textContent=b}else {c.innerHTML=b}}}}});Ext.define('Ext.field.Email',{extend:Ext.field.Text,alternateClassName:'Ext.form.Email',xtype:'emailfield',config:{autoCapitalize:!1},inputType:'email',classCls:Ext.baseCSSPrefix+'emailfield'});Ext.define('Ext.field.File',{extend:Ext.field.Text,xtype:'filefield',mixins:[Ext.mixin.ConfigProxy],isFile:!0,proxyConfig:{fileButton:['multiple','accept','capture']},readOnly:!0,editable:!1,focusable:!1,inputTabIndex:-1,triggers:{file:{type:'file'}},classCls:Ext.baseCSSPrefix+'filefield',captureLookup:{video:"camcorder",image:"camera",audio:"microphone"},onChange:function(c,b,a){c.fireEvent('change',this,b,a)},applyName:function(a){var b;if(a){if(b&&a.substr(-2,2)!=="[]"){a+="[]"}else if((!b)&&a.substr(-2,2)==="[]"){a=a.substr(0,a.length-2)}}return a},updateName:function(c){var b=this.getTriggers().file,a=b&&b.getComponent().buttonElement.dom;if(c&&a){a.name=c}},updateMultiple:function(){var a=this.getName();if(!Ext.isEmpty(a)){this.setName(a)}},updateTriggers:function(b,a){this.callParent([b,a]);this.getFileButton().on('change','onFileButtonChange',this)},updateValue:function(a,b){this.callParent([a,b]);this.getFileButton().setValue(a)},getFileButton:function(){return this.getTriggers().file.getComponent()},reset:function(){var a=this,b=a.originalValue;if(b==null){a.setInputValue('');a._value=''}a.getFileButton().buttonElement.dom.value=''},getFiles:function(){return this.getFileButton().getFiles()},privates:{onFileButtonChange:function(g,a){var f=g.buttonElement.dom,c=f.files,e,b,d;if(c){a=[];for(b=0,e=c.length;b<e;b++){d=c[b];a.push(d.name)}a=a.join(', ')}this.setValue(a)}}});Ext.define('Ext.field.FileButton',{extend:Ext.Button,xtype:'filebutton',config:{value:null,multiple:!1,accept:null,capture:null},buttonType:'file',ui:'action',text:'Browse...',preventDefaultAction:!1,keyHandlersAdded:!0,getButtonTemplate:function(){var a=this.callParent();a.tag='input';a.listeners=a.listeners||{};a.listeners.change={fn:'onChange',delegated:!1};return a},applyAccept:function(a){switch(a){case "video":case "audio":case "image":a=a+"/*";break;}this.setInputAttribute('accept',a)},applyCapture:function(a){this.setInputAttribute('capture',a);return a},applyMultiple:function(a){this.setInputAttribute('multiple',a?'':null);return a},onChange:function(a){this.setValue(this.buttonElement.dom.value)},updateValue:function(b,a){this.fireEvent('change',this,b,a)},getFiles:function(){return this.buttonElement.dom.files},privates:{setInputAttribute:function(b,c){var a=this.buttonElement.dom;if(!Ext.isEmpty(c,!0)){a.setAttribute(b,c)}else {a.removeAttribute(b)}}}});Ext.define('Ext.field.Hidden',{extend:Ext.field.Input,alternateClassName:'Ext.form.Hidden',xtype:'hiddenfield',inputType:'hidden',hidden:!0,classCls:Ext.baseCSSPrefix+'hiddenfield'});Ext.define('Ext.field.Number',{extend:Ext.field.Text,xtype:'numberfield',alternateClassName:'Ext.form.Number',config:{minValue:null,maxValue:null,decimals:2,trim:!0,decimalSeparator:null},inputType:Ext.os.is.Desktop?'text':'number',minValueText:'The minimum value for this field is {0}',maxValueText:'The maximum value for this field is {0}',decimalsText:'The maximum decimal places is {0}',badFormatMessage:'Value is not a valid number',classCls:Ext.baseCSSPrefix+'numberfield',parseValidator:'number',initialize:function(){var a=this;a.getDecimals();if(a.getDecimalSeparator()===null){a.setDecimalSeparator(Ext.util.Format.decimalSeparator)}a.callParent();a.inputElement.dom.setAttribute('inputmode','numeric')},updateDecimals:function(c){var a=this,d='0',e=a.getTrim()?'#':'0',b;a.syncDecimalValidator();if(c){d+='.'+Ext.String.repeat(e,c)}a.numberFormat=d;if(!a.isConfiguring){b=a.getValue();if(Ext.isDate(b)){a.setInputValue(b)}}},applyInputValue:function(a){var c=this,b=c.getDecimalSeparator();this.getDecimals();if(typeof a==='number'){a=Ext.util.Format.number(a,this.numberFormat)}if(a&&Ext.isString(a)&&b){a=a.replace(Ext.util.Format.decimalSeparator,b)}return a},doValidate:function(e,d,g){var a=this,f=Ext.String,c=a.getMinValue(),b=a.getMaxValue();a.callParent([e,d,g]);if(c!=null&&e<c){d.push(f.format(a.minValueText,c))}else if(b!=null&&e>b){d.push(f.format(a.maxValueText,b))}},onKeyDown:function(a){var b=this,c;if(b.getInputType()!=='number'){if(!a.ctrlKey&&!a.altKey){c=b.calculateNewValue(a.key());if(!b.specialKeys[a.getCharCode()]&&!b.isAllowableValue(c)){a.preventDefault();return !1}}}b.callParent([a])},transformValue:function(a){if(!(a||a===0)){a=null}return a},rawToValue:Ext.emptyFn,updateDecimalSeparator:function(){this.syncDecimalValidator()},privates:{calculateNewValue:function(d){var c=this,b=c.getTextSelection(),a=c.getInputValue();if(b[1]){a=a.substr(0,b[0])+d+a.substr(b[1])}else {a=Ext.String.insert(a,d,c.getCaretPos())}return a},handlePaste:function(c){var b=this,a;if(b.getInputType()!=='number'){a=c.getClipboardData('text/plain');if(a){a=b.calculateNewValue(a);if(b.isAllowableValue(a)){b.setValue(a)}c.preventDefault();return !1}}b.callParent([c]);b.validate()},isAllowableValue:function(a){var b=this.getMinValue(),c=b==null||b<0;if(!c&&Ext.String.startsWith(a,'-')){return !1}return this.isPartialValue(a)||this.parseValue(a)!==null},isPartialValue:function(a){var d=this,c=d.getMinValue(),b=c==null||c<0;if(b&&a==='-'){return !0}if(d.getDecimals()&&(a==='.'||(b&&a==='-.'))){return !0}return !1},syncDecimalValidator:function(){var a=this,b=(a.getDecimals()===0)?null:a.getDecimalSeparator();a.setParseValidator(Ext.create('Ext.data.validator.Number',{decimalSeparator:b}));a.validate()}}},function(b){var a=Ext.event.Event;b.prototype.specialKeys=Ext.Array.toMap([a.BACKSPACE,a.TAB,a.RETURN,a.CTRL,a.DELETE,a.LEFT,a.RIGHT,a.UP,a.DOWN,a.HOME,a.END,a.META])});Ext.define('Ext.form.Borders',{mixinId:'formborders',config:{fieldSeparators:null,inputBorders:null},fieldSeparatorsCls:Ext.baseCSSPrefix+'form-field-separators',noInputBordersCls:Ext.baseCSSPrefix+'form-no-input-borders',updateFieldSeparators:function(d,c){var a=this.bodyElement,b=this.fieldSeparatorsCls;if(d){a.addCls(b)}else if(c){a.removeCls(b)}},updateInputBorders:function(d,c){var a=this.bodyElement,b=this.noInputBordersCls;if(d===!1){a.addCls(b)}else if(c===!1){a.removeCls(b)}}});Ext.define('Ext.field.Panel',{extend:Ext.Panel,xtype:'fieldpanel',isFieldPanel:!0,mixins:[Ext.field.Dirty,Ext.field.Manager,Ext.form.Borders],scrollable:!0,nameable:!0,shareableName:!0,nameHolder:!0,publishes:{dirty:1},config:{api:null,baseParams:null,paramOrder:null,paramsAsHash:null,timeout:30,url:null},load:function(b){var a=this,c,h,d,g,e,f,i;b=b||{};c=a.getApi();h=b.url||a.getUrl();d=b.waitMsg;g=function(c,d){a.setValues(d.data);if(Ext.isFunction(b.success)){b.success.call(b.scope||a,a,c,d)}a.fireEvent('load',a,c)};e=function(c,d){if(Ext.isFunction(b.failure)){b.failure.call(b.scope,a,c,d)}a.fireEvent('exception',a,c)};if(b.waitMsg){if(typeof d==='string'){d={xtype:'loadmask',message:d}}a.setMasked(d)}if(c){c=Ext.direct.Manager.resolveApi(c,a);a.setApi(c);f=c.load;if(!f){Ext.raise("Cannot find Ext Direct API method for load action")}i=f.$directCfg.method.getArgs({params:a.getParams(b.params),paramOrder:a.getParamOrder(),paramsAsHash:a.getParamsAsHash(),scope:a,callback:function(d,c,f){a.setMasked(!1);if(f){g(c,d)}else {e(c,d)}}});f.apply(window,i)}else if(h){return Ext.Ajax.request({url:h,timeout:(b.timeout||a.getTimeout())*1000,method:b.method||'GET',autoAbort:b.autoAbort,headers:Ext.apply({'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'},b.headers||{}),callback:function(i,f,c){var d=c.responseText,h=Ext.data.request.Ajax.parseStatus(c.status,c);a.setMasked(!1);if(f){if(h&&d.length===0){f=!0}else {c=Ext.decode(d);f=!!c.success}if(f){g(c,d)}else {e(c,d)}}else {e(c,d)}}})}},getParams:function(a){return Ext.apply({},a,this.getBaseParams())},updateDisabled:function(a,b){this.mixins.fieldmanager.updateDisabled.call(this,a,b);this.callParent([a,b])},updateRecord:function(a){this.consumeRecord(a)}});Ext.define('Ext.field.trigger.Reveal',{extend:Ext.field.trigger.Trigger,xtype:'revealtrigger',alias:'trigger.reveal',classCls:Ext.baseCSSPrefix+'revealtrigger',weight:-1000,hidden:!0,handler:'onRevealTap',scope:'this'});Ext.define('Ext.field.Password',{extend:Ext.field.Text,xtype:'passwordfield',alternateClassName:'Ext.form.Password',config:{autoCapitalize:!1,revealable:!1,revealed:{$value:!1,lazy:!0}},inputType:'password',classCls:Ext.baseCSSPrefix+'passwordfield',revealedCls:Ext.baseCSSPrefix+'revealed',isPassword:!0,applyTriggers:function(a,b){if(a&&this.getRevealable()&&!a.reveal){a=Ext.apply({reveal:{type:'reveal'}},a)}return this.callParent([a,b])},updateRevealed:function(b,c){var a=this;if(b){a.element.addCls(a.revealedCls);a.setInputType("text")}else {a.element.removeCls(a.revealedCls);a.setInputType("password")}},updateValue:function(b,a){this.syncRevealTrigger();this.callParent([b,a])},doKeyUp:function(a,b){this.callParent([a,b]);this.syncRevealTrigger()},onRevealTap:function(a){this.fireAction('revealicontap',[this,a],'doRevealTap')},doRevealTap:function(a,b){this.setRevealed(!this.getRevealed())},privates:{isValidTextValue:function(a){return (a!==undefined&&a!==null&&a!=='')},syncRevealTrigger:function(){var a=this,d=a.getTriggers(),b=d&&d.reveal,e,c;if(b){if(a.getRevealable()){c=a.getValue();if(c!=null&&c!==''&&!a.getDisabled()&&!a.getReadOnly()){e=!0}}if(e){b.show()}else {b.hide()}}}}});Ext.define('Ext.field.Radio',{extend:Ext.field.Checkbox,xtype:['radio','radiofield'],alternateClassName:'Ext.form.Radio',isRadio:!0,inputType:'radio',classCls:Ext.baseCSSPrefix+'radiofield',getValue:function(){return this._value===undefined?null:this._value},setValue:function(a){this._value=a;return this},getSubmitValue:function(){var a=this._value;if(a===undefined||a===null){a=!0}return (this.getChecked())?a:null},updateChecked:function(b,c){var a=this;a.callParent([b,c]);if(a.initialized&&b){a.refreshGroupValues(a)}},getGroupValue:function(){var c=this.getSameGroupFields(),d=c.length,b=0,a;for(;b<d;b++){a=c[b];if(a.getChecked()){return a.getValue()}}return null},getSameGroupFields:function(){var a=this,b=a.lookupNameHolder(),c=a.name.replace(a.qsaLeftRe,'\\[').replace(a.qsaRightRe,'\\]');return b.query('radiofield[name='+c+']')},setGroupValue:function(d){var c=this.getSameGroupFields(),e=c.length,b=0,a;for(;b<e;b++){a=c[b];if(a.getValue()===d){a.setChecked(!0);return a}}},refreshGroupValues:function(d){var c=this.getSameGroupFields(),e=c.length,b=0,a;for(;b<e;b++){a=c[b];if(a!==d){a.setChecked(!1)}}}});Ext.define('Ext.field.RadioGroup',{extend:Ext.field.FieldGroupContainer,xtype:'radiogroup',isRadioGroup:!0,defaultType:'radiofield',simpleValue:!0,delegate:'[isRadio]',instanceCls:Ext.baseCSSPrefix+'radio-group',getChecked:function(a){return this.getGroupItems('[checked]'+(a||''))[0]},isEqual:function(a,b){if(this.simpleValue){return String(a)===String(b)}return this.callParent([a,b])},setValue:function(d){var a=this,e,g,c,b,h,f;if(a.isEqual(d,a.lastValue)){return a}e=a.getGroupItems();g=e.length;a.suspendCheckChange=1;if(a.simpleValue){for(b=0;b<g;b++){c=e[b];if(c.getValue()===d){c.setChecked(!0);break}}}else if(Ext.isObject(d)){for(f in d){h=d[f];for(b=0;b<g;b++){c=e[b];if(c.getName()===f&&h===c.getValue()){c.setChecked(!0);break}}}}a.suspendCheckChange=0;a.onGroupChange();return a},getValue:function(){var j=this,h,i,a,e,d,b,c,f,g;if(j.simpleValue){g=j.getChecked();if(g){b=g.getValue()}return b}h=this.getGroupItems();i=h.length;a={};for(f=0;f<i;f++){e=h[f];d=e.getName();b=e.getValue();if(b&&e.getChecked()){if(a.hasOwnProperty(d)){c=a[d];if(!Ext.isArray(c)){c=a[d]=[c]}c.push(b)}else {a[d]=b}}}return a}});Ext.define('Ext.field.trigger.Search',{extend:Ext.field.trigger.Trigger,xtype:'searchtrigger',alias:'trigger.search',classCls:Ext.baseCSSPrefix+'searchtrigger'});Ext.define('Ext.field.Search',{extend:Ext.field.Text,xtype:'searchfield',alternateClassName:'Ext.form.Search',inputType:'search',triggers:{search:{type:'search',side:'left'}},classCls:Ext.baseCSSPrefix+'searchfield'});Ext.define('Ext.slider.Thumb',{extend:Ext.Component,xtype:'thumb',baseCls:Ext.baseCSSPrefix+'thumb',isSliderThumb:!0,config:{fillCls:null,fillTrack:null,dragMax:null,dragMin:null,slider:null},template:[{reference:'iconElement',classList:[Ext.baseCSSPrefix+'icon-el',Ext.baseCSSPrefix+'font-icon']}],draggable:{local:!0,constrain:{horizontal:!0},listeners:{beforedragstart:'onBeforeDragStart',dragstart:'onDragStart',dragmove:'onDragMove',dragend:'onDragEnd',scope:'this'}},touchAction:{panX:!1},translatable:{type:'cssposition',listeners:{animationstart:'onAnimationStart',animationend:'onAnimationEnd',translate:'onTranslate',scope:'this'}},elementWidth:0,pressingCls:Ext.baseCSSPrefix+'pressing',fillCls:Ext.baseCSSPrefix+'fill-el',sizerCls:Ext.baseCSSPrefix+'thumb-sizer',constructor:function(a){this.sizerElement=Ext.Element.create({cls:this.sizerCls});this.callParent([a])},initialize:function(){var a=this,b;a.callParent();a.el.addClsOnClick(a.pressingCls,a.shouldAddPressingCls,a);b=a.fillElement=Ext.Element.create({cls:a.fillCls});b.setVisibilityMode(1)},updateFillTrack:function(b){var a=this.fillElement;if(b===!1){a.hide()}else {a.show();a.setStyle('background-color',(typeof b==='string')?b:'')}},updateFillCls:function(b,a){this.fillElement.replaceCls(a,b)},shouldAddPressingCls:function(){return !this.isDisabled()},initDragConstraints:function(){if(this.isDisabled()){return !1}this.getSlider().refreshAllThumbConstraints()},onAnimationStart:function(c,a,b){this.getSlider().onThumbAnimationStart(this,a,b)},onAnimationEnd:function(c,a,b){if(!this.destroyed){this.getSlider().onThumbAnimationEnd(this,a,b)}},onBeforeDragStart:function(d,c,b){var a;if(this.isDisabled()){return !1}a=c.proxy.current;this.getSlider().onThumbBeforeDragStart(this,b,a.x,a.y)},onDragStart:function(d,c,b){var a=c.proxy.current;this.getSlider().onThumbDragStart(this,b,a.x,a.y)},onDragMove:function(d,c,b){var a;if(this.isDisabled()){return !1}a=c.proxy.current;this.getSlider().onThumbDragMove(this,b,a.x,a.y)},onDragEnd:function(d,c,b){var a;if(this.isDisabled()){return !1}a=c.proxy.current;this.getSlider().onThumbDragEnd(this,b,a.x,a.y)},onTranslate:function(b,a,c){if(this.initialized){this.getSlider().syncFill(this,a)}},onResize:function(c){var b=this,a=b.ownerCmp;b.elementWidth=c;if(a&&a.thumbs&&a.thumbs[0]===b){a.onThumbResize(b,c)}},getElementWidth:function(){return this.elementWidth},updateUi:function(c,a){var b=this,e=b.sizerCls,d=b.sizerElement;if(a){d.removeCls(a,e)}if(c){d.addCls(c,e)}b.callParent([c,a])},updateDragMax:function(c){var a=this.getDraggable().getConstrain(),b=a.getX();a.setX([b&&b[0],c])},updateDragMin:function(c){var a=this.getDraggable().getConstrain(),b=a.getX();a.setX([c,b&&b[1]])},destroy:function(){Ext.destroyMembers(this,'fillElement','sizerElement');this.callParent()}});Ext.define('Ext.slider.Slider',{extend:Ext.Component,xtype:'slider',config:{thumbDefaults:{xtype:'thumb',inheritUi:!0,translatable:{easingX:{duration:300,type:'ease-out'}}},increment:1,value:0,valueIsArray:!1,minValue:0,maxValue:100,allowThumbsOverlapping:!1,animation:!0,readOnly:!1},defaultBindProperty:'value',twoWayBindable:{value:1},classCls:Ext.baseCSSPrefix+'slider',elementWidth:0,offsetValueRatio:0,activeThumb:null,isThumbAnimating:0,template:[{reference:'trackElement',cls:Ext.baseCSSPrefix+'track-el'},{reference:'thumbWrapElement',cls:Ext.baseCSSPrefix+'thumb-wrap-el'}],fillSelector:'.'+Ext.baseCSSPrefix+'fill-el',constructor:function(a){if(a&&a.hasOwnProperty('values')){a=Ext.apply({value:a.values},a);delete a.values}this.thumbs=[];this.callParent([a])},initialize:function(){this.callParent();this.element.on('tap','onTap',this)},onRender:function(){this.callParent();this.whenVisible('refreshSizes')},applyThumbDefaults:function(a){return Ext.apply({slider:this,ownerCmp:this},a)},factoryThumb:function(){var a=Ext.create(this.getThumbDefaults());a.doInheritUi();return a},getThumbs:function(){return this.thumbs},getThumb:function(a){if(typeof a!=='number'){a=0}return this.thumbs[a]},refreshOffsetValueRatio:function(){var a=this,b=a.getMaxValue()-a.getMinValue(),c=a.elementWidth-a.thumbWidth;a.offsetValueRatio=b===0?0:c/b},onThumbResize:function(b,a){this.thumbWidth=a;this.refresh()},onResize:function(a){this.elementWidth=a;this.refresh()},refresh:function(){this.refreshing=!0;this.refreshValue();this.refreshing=!1},setActiveThumb:function(b){var a=this.activeThumb;if(a&&a!==b){a.setZIndex(null)}this.activeThumb=b;b.setZIndex(2);return this},onThumbBeforeDragStart:function(b,a){if(this.offsetValueRatio===0||a.absDeltaX<=a.absDeltaY||this.getReadOnly()){return !1}},onThumbDragStart:function(b,c){var a=this;if(a.getAllowThumbsOverlapping()){a.setActiveThumb(b)}a.dragStartValue=a.getArrayValues()[a.getThumbIndex(b)];a.fireEvent('dragstart',a,b,a.dragStartValue,c)},onThumbDragMove:function(b,c,f){var a=this,g=a.getThumbIndex(b),e=a.offsetValueRatio,d=a.constrainValue(a.getMinValue()+f/e);c.stopPropagation();a.setIndexValue(g,d);a.fireEvent('drag',a,b,a.getArrayValues(),c);return !1},setIndexValue:function(f,j,i){var a=this,g=a.thumbs[f],e=a.getArrayValues(),d=a.getMinValue(),b=a.offsetValueRatio,c=a.getIncrement(),h=(j-d)*b;g.setXY(h,null,i);e[f]=d+Math.round((h/b)/c)*c;a.setValue(e);a.refreshAdjacentThumbConstraints(g)},onChange:function(d,b,c){var a=this;if(a.hasListeners.change){a.fireEvent('change',a,d,b,c)}},onThumbDragEnd:function(b,f){var a=this,e=a.getThumbIndex(b),c=a.getArrayValues()[e],d=a.dragStartValue;a.snapThumbPosition(b,c);a.fireEvent('dragend',a,b,a.getArrayValues(),f);if(d!==c){a.onChange(b,c,d)}},getThumbIndex:function(a){return this.thumbs.indexOf(a)},refreshAdjacentThumbConstraints:function(h){var a=this,e=h.getLeft(),f=a.thumbs,g=a.getThumbIndex(h),b=f[g-1],d=f[g+1],c=a.getAllowThumbsOverlapping()?0:a.thumbWidth;if(b){b.setDragMax(e-c)}if(d){d.setDragMin(e+c)}},onTap:function(p){var a=this,q=a.element,j=Infinity,d,g,l,b,h,o,i,e,c,n,m,f,k;if(a.offsetValueRatio===0||a.isDisabled()||a.getReadOnly()){return}f=Ext.get(p.target);if(!f||(Ext.browser.engineName==='WebKit'&&f.hasCls('x-thumb'))){return}k=p.touch.point.x;m=q.getX();n=k-m-(a.thumbWidth/2);c=a.constrainValue(a.getMinValue()+n/a.offsetValueRatio);e=a.getArrayValues();i=e.length;if(i===1){b=0}else {for(d=0;d<i;d++){l=e[d];g=Math.abs(l-c);if(g<j){j=g;b=d}}}h=e[b];o=a.thumbs[b];a.setIndexValue(b,c,a.getAnimation());if(h!==c){a.onChange(o,c,h)}},updateThumbs:function(a){this.add(a)},applyValue:function(j,g){var c=this,f=Ext.Array.from(j||0),i=c.getValueIsArray(),a=[],e=c.getMinValue(),b,d,h;for(d=0,h=f.length;d<h;d++){b=c.constrainValue(f[d]);if(b<e){b=e}a.push(b);e=b}if(!c.refreshing&&g&&Ext.Array.equals(f,g)){a=undefined}else {c.values=a;if(!i&&a.length===1){a=a[0]}}return a},updateValue:function(){var b=this,e=b.thumbs,c=b.getArrayValues(),d=c.length,a;b.setThumbsCount(d);if(!this.isThumbAnimating){for(a=0;a<d;a++){b.snapThumbPosition(e[a],c[a])}}},refreshValue:function(){this.refreshOffsetValueRatio();this.updateValue()},constrainValue:function(a){var e=this,d=e.getMinValue(),f=e.getMaxValue(),b=e.getIncrement(),c;a=parseFloat(a);if(isNaN(a)){a=d}c=(a-d)%b;a-=c;if(Math.abs(c)>=(b/2)){a+=(c>0)?b:-b}a=Math.max(d,a);a=Math.min(f,a);return a},setThumbsCount:function(c){var d=this,b=d.thumbs,f=b.length,e,a;while(c<b.length){a=b.pop();a.destroy()}while(c>b.length){a=d.factoryThumb();b.push(a);d.trackElement.appendChild(a.fillElement);d.thumbWrapElement.appendChild(a.element);d.element.appendChild(a.sizerElement)}if(f!==c){for(e=0;e<c;e++){a=b[e];if(c>2){a.setFillTrack(!1)}else if(c===2){a.setFillTrack(e===1)}else {a.setFillTrack(!0)}}}return this},setValues:function(a){this.setValue(a)},getValues:function(){return this.getValue()},getArrayValues:function(){return this.values},applyIncrement:function(a){if(a===0){a=1}return Math.abs(a)},updateAllowThumbsOverlapping:function(b,a){if(typeof a!=='undefined'){this.refreshValue()}},updateMinValue:function(b,a){if(typeof a!=='undefined'){this.refreshValue()}},updateMaxValue:function(b,a){if(typeof a!=='undefined'){this.refreshValue()}},updateIncrement:function(b,a){if(typeof a!=='undefined'){this.refreshValue()}},updateDisabled:function(d){var b,c,a;this.callParent(arguments);b=this.thumbs;c=b.length;for(a=0;a<c;a++){b[a].setDisabled(d)}},doDestroy:function(){this.thumbs=Ext.destroy(this.thumbs);this.callParent()},getRefItems:function(a){return this.thumbs},privates:{refreshAllThumbConstraints:function(){var a=this,b=a.thumbs,d=b.length,e=a.getAllowThumbsOverlapping()?0:a.thumbWidth,c;for(c=0;c<d;c++){a.refreshAdjacentThumbConstraints(b[c])}b[0].setDragMin(0);b[d-1].setDragMax(a.elementWidth-e)},refreshSizes:function(){var a=this,b=a.thumbs[0];a.elementWidth=a.element.measure('w');if(b){a.thumbWidth=b.element.measure('w')}a.refresh()},snapThumbPosition:function(c,d){var b=this.offsetValueRatio,a;if(isFinite(b)){a=Ext.Number.correctFloat((d-this.getMinValue())*b);c.setXY(a,null)}},syncFill:function(b,g){var c=this,h=c.thumbs,k=c.getArrayValues(),l=k.length,f=0,i=c.trackElement.query(c.fillSelector,!1),j=h.indexOf(b),e,d,a;g=g+Math.ceil(b.element.getWidth()/2);for(a=0;a<l;a++){b=h[a];d=i[a];e=(a===j)?g:b.getLeft()+(b.element.getWidth()/2);d.setWidth(e-f);d.setLocalX(f);f=e}},onThumbAnimationStart:function(){this.isThumbAnimating++},onThumbAnimationEnd:function(){this.isThumbAnimating--}}});Ext.define('Ext.field.Slider',{extend:Ext.field.Field,xtype:'sliderfield',alternateClassName:'Ext.form.Slider',mixins:[Ext.mixin.ConfigProxy,Ext.field.BoxLabelable],config:{slider:{xtype:'slider',inheritUi:!0},liveUpdate:!1,tabIndex:-1,readOnly:!1,value:0},classCls:Ext.baseCSSPrefix+'sliderfield',proxyConfig:{slider:['increment','minValue','maxValue']},bodyAlign:'stretch',defaultBindProperty:'value',twoWayBindable:{values:1,value:1},constructor:function(a){a=a||{};if(a.hasOwnProperty('values')){a.value=a.values}this.callParent([a]);this.updateMultipleState()},initialize:function(){this.callParent();this.getSlider().on({scope:this,change:'onSliderChange',dragstart:'onSliderDragStart',drag:'onSliderDrag',dragend:'onSliderDragEnd'})},getBodyTemplate:function(){return this.mixins.boxLabelable.getBodyTemplate.call(this)},applySlider:function(a){if(a&&!a.isInstance){a=this.mergeProxiedConfigs('slider',a);a.$initParent=this;a=Ext.create(a);delete a.$initParent}this.boxElement.appendChild(a.el);a.ownerCmp=this;return a},updateSlider:function(a){a.doInheritUi()},getValue:function(){return this._value},applyValue:function(a,b){a=this.callParent([a,b])||0;if(this.dragging&&this.isSyncing('value')){a=undefined}else if(Ext.isArray(a)){a=a.slice(0);if(b&&Ext.Array.equals(a,b)){a=undefined}}else {a=[a]}return a},updateValue:function(a,b){if(!this.dragging){a=this.setSliderValue(a)}this.callParent([a,b])},setSliderValue:function(a){return this.getSlider().setValue(a).getValue()},onSliderChange:function(a,d,b,c){this.setValue(a.getValue());this.fireEvent('dragchange',this,a,d,b,c)},onSliderDragStart:function(b,c,a,d){this.dragging=!0;this.fireEvent('dragstart',this,b,c,a,d)},onSliderDrag:function(b,c,d,e){var a=this;if(a.getLiveUpdate()){a.setValue(b.getValue())}a.fireEvent('drag',a,b,c,d,e)},onSliderDragEnd:function(b,c,a,d){this.dragging=!1;this.fireEvent('dragend',this,b,c,a,d)},setValues:function(a){this.setValue(a);this.updateMultipleState()},getValues:function(){return this.getValue()},reset:function(){var a=this.config,b=(this.config.hasOwnProperty('values'))?a.values:a.value;this.setValue(b)},updateReadOnly:function(a){this.getSlider().setReadOnly(a)},updateMultipleState:function(){var a=this.getValue();if(a&&a.length>1){this.addCls(Ext.baseCSSPrefix+'slider-multiple')}},updateDisabled:function(a,b){this.callParent([a,b]);this.getSlider().setDisabled(a)},doDestroy:function(){this.getSlider().destroy();this.callParent()},getRefItems:function(c){var a=[],b=this.getSlider();if(b){a.push(b);if(c&&b.getRefItems){a.push.apply(a,b.getRefItems(c))}}return a},rawToValue:Ext.emptyFn});Ext.define('Ext.field.SingleSlider',{extend:Ext.field.Slider,xtype:'singlesliderfield',twoWayBindable:{value:1},defaultBindProperty:'value',publishes:{value:1},applyValue:function(a,b){a=this.callParent([a,b]);if(a&&Ext.isArray(a)){a=a[0]}return a},getValue:function(){var a=this.callParent();if(a&&Ext.isArray(a)){a=a[0]}return a},onSliderChange:function(c,d,a,b){this.setValue(a);this.fireEvent('dragchange',this,c,a,b)},onSliderDragStart:function(b,d,a,c){this.fireEvent('dragstart',this,b,a,c)},onSliderDrag:function(c,e,b,d){var a=this;if(a.getLiveUpdate()){a.setValue(b)}a.fireEvent('drag',a,c,b,d)},onSliderDragEnd:function(b,d,a,c){this.fireEvent('dragend',this,b,a,c)}});Ext.define('Ext.field.trigger.SpinDown',{extend:Ext.field.trigger.Trigger,xtype:'spindowntrigger',alias:'trigger.spindown',classCls:Ext.baseCSSPrefix+'spindowntrigger',handler:'onSpinDown',scope:'this',focusOnTap:!1});Ext.define('Ext.field.trigger.SpinUp',{extend:Ext.field.trigger.Trigger,xtype:'spinuptrigger',alias:'trigger.spinup',classCls:Ext.baseCSSPrefix+'spinuptrigger',handler:'onSpinUp',scope:'this',focusOnTap:!1});Ext.define('Ext.field.Spinner',{extend:Ext.field.Number,xtype:'spinnerfield',alternateClassName:'Ext.form.Spinner',config:{stepValue:1,accelerateOnTapHold:!0,cycle:!1,clearable:!1,groupButtons:!0},triggers:{spindown:{type:'spindown',group:'spin',repeat:!0},spinup:{type:'spinup',group:'spin',repeat:!0}},value:0,decimals:0,classCls:Ext.baseCSSPrefix+'spinnerfield',groupedButtonsCls:Ext.baseCSSPrefix+'grouped-buttons',initElement:function(){this.callParent();this.inputElement.dom.readOnly=!0},updateGroupButtons:function(a){var b=this.getTriggers().spindown;b.setGroup(a?'spin':null);b.setSide(a?null:'left')},applyTriggers:function(a,g){var c=this.getAccelerateOnTapHold(),e,b,f,d;if(a&&c){e=a.spinup;b=a.spindown;f=e.repeat;if(f){e.repeat=Ext.apply({accelerate:c},f)}d=b.repeat;if(d){b.repeat=Ext.apply({accelerate:c},d)}}return this.callParent([a,g])},onKeyDown:function(a){var b;if(this.getInputType()!=='number'){switch(a.getKey()){case a.UP:a.stopEvent();this.spin(!1);break;case a.DOWN:a.stopEvent();this.spin(!0);break;case a.HOME:b=this.getMinValue();if(b!=null){a.stopEvent();this.setValue(b)};break;case a.END:b=this.getMaxValue();if(b!=null){a.stopEvent();this.setValue(b)};break;}}this.callParent([a])},onSpinDown:function(){if(!this.getDisabled()&&!this.getReadOnly()){this.spin(!0)}},onSpinUp:function(){if(!this.getDisabled()&&!this.getReadOnly()){this.spin(!1)}},spin:function(h){var b=this,e=b.getValue(),g=b.getStepValue(),f=h?'down':'up',d=b.getMinValue(),c=b.getMaxValue(),a;if(h){a=e-g}else {a=e+g}if(b.getCycle()){if(e===d&&a<d){a=c}if(e===c&&a>c){a=d}}else if(d!=null&&a<d){a=d}else if(c!=null&&a>c){a=c}b.spinning=!0;b.setValue(a);b.spinning=!1;a=b.getValue();b.fireEvent('spin',b,a,f);b.fireEvent('spin'+f,b,a)},rawToValue:Ext.emptyFn,privates:{spinning:!1,canSetInputValue:function(){return this.spinning||this.callParent()}}});Ext.define('Ext.field.trigger.Time',{extend:Ext.field.trigger.Expand,xtype:'timetrigger',alias:'trigger.time',classCls:Ext.baseCSSPrefix+'timetrigger'});Ext.define('Ext.panel.TimeHeader',{extend:Ext.Component,xtype:'analogtimeheader',classCls:Ext.baseCSSPrefix+'analogtimeheader',config:{position:null},template:[{reference:'headerEl',cls:Ext.baseCSSPrefix+'header-el',children:[{reference:'timeEl',cls:Ext.baseCSSPrefix+'time-wrapper-el',children:[{cls:Ext.baseCSSPrefix+'time-el '+Ext.baseCSSPrefix+'hour-el',reference:'hoursEl',listeners:{click:'onHoursClick'}},{cls:Ext.baseCSSPrefix+'time-el',html:':'},{cls:Ext.baseCSSPrefix+'time-el '+Ext.baseCSSPrefix+'minute-el',reference:'minutesEl',listeners:{click:'onMinutesClick'}}]},{reference:'meridiemEl',cls:Ext.baseCSSPrefix+'meridiem-wrapper-el',children:[{cls:Ext.baseCSSPrefix+'am-el '+Ext.baseCSSPrefix+'meridiem-el',reference:'amEl',html:'AM',listeners:{click:'onAmClick'}},{cls:Ext.baseCSSPrefix+'pm-el '+Ext.baseCSSPrefix+'meridiem-el',reference:'pmEl',html:'PM',listeners:{click:'onPmClick'}}]}]}],onHoursClick:function(a){this.ownerCmp.onHoursClick(a)},onMinutesClick:function(a){this.ownerCmp.onMinutesClick(a)},onAmClick:function(a){this.ownerCmp.onAmClick(a)},onPmClick:function(a){this.ownerCmp.onPmClick(a)}});Ext.define('Ext.panel.TimeView',{extend:Ext.Panel,xtype:'analogtime',config:{value:'now',autoAdvance:!0,vertical:!0,confirmable:!1,confirmHandler:null,declineHandler:null,scope:'this',buttonAlign:'right',defaultButtons:{ok:{handler:'up.onConfirm'},cancel:{handler:'up.onDecline'}},mode:'hour',meridiem:!0,alignPMInside:!1,hourDisplayFormat:'G'},updateMeridiem:function(){this.updateTimeView()},updateAlignPMInside:function(){this.updateTimeView()},updateHourDisplayFormat:function(){this.updateTimeView()},updateTimeView:function(){var a=this;if(a.isConfiguring){return}a.layoutFace();a.updateValue()},platformConfig:{'phone || tablet':{vertical:'auto'}},classCls:Ext.baseCSSPrefix+'analogtime',dotIndicatorCls:Ext.baseCSSPrefix+'analog-picker-dot-indicator',hour12Cls:Ext.baseCSSPrefix+'analog-picker-12hr-format',hour24Cls:Ext.baseCSSPrefix+'analog-picker-24hr-format',animationTimeDelay:200,initDate:'1/1/1970',header:{xtype:'analogtimeheader'},listeners:{painted:'onPainted',scope:'this'},MAX_MINUTES:(24*60)+59,getTemplate:function(){var a=this.callParent(),b=a[0].children[0];b.children=[{reference:'pickerWrapEl',cls:Ext.baseCSSPrefix+'picker-wrap-el',children:[{cls:Ext.baseCSSPrefix+'analog-picker-el',reference:'analogPickerEl',children:[{cls:Ext.baseCSSPrefix+'analog-picker-hand-el',reference:'handEl'},{cls:Ext.baseCSSPrefix+'analog-picker-face-el',reference:'faceEl'}],listeners:{mousedown:'onFaceMouseDown',mouseup:'onFaceMouseUp'}}]}];return a},activateHours:function(a,g){var b=this,d=b.getHeader(),h=this.getAm(),f=d.hoursEl,e=d.minutesEl,c=b.getHours();b.setMode('hour');if(a==null){a=c>11?c-12:c;a+=h?0:12}f.addCls('active');e.removeCls('active');b.setHours(a,g)},activateMinutes:function(a,f){var b=this,c=b.getHeader(),e=c.hoursEl,d=c.minutesEl;b.setMode('minute');a=a!=null?a:b.getMinutes();d.addCls('active');e.removeCls('active');b.setMinutes(a,f)},applyValue:function(a){var b;if(Ext.isDate(a)){a=(a.getHours()*60)+a.getMinutes()}else if(a==='now'||!Ext.isNumber(a)||isNaN(a)||a<0||a>(this.MAX_MINUTES)){b=new Date();a=(b.getHours()*60)+b.getMinutes()}return a},getAngleFromTime:function(i,c){var a=this,g=c!=='hour',f=a.getMeridiem(),e=a.getAlignPMInside(),h=g?60:(f||e)?12:24,b=360/h,d=a.getIntialRotation(c,b);return (i*(b))-d},getCenter:function(){var a=this,b,c;if(!a._center){a._center=b=a.analogPickerEl.getXY();c=a.analogPickerEl.measure();b[0]+=Math.floor(c.width/2);b[1]+=Math.floor(c.height/2)}return a._center},getTimeFromAngle:function(a,h){var d=this,j=d.getMode(),e=j!=='hour',g=d.getMeridiem(),f=d.getAlignPMInside(),i=e?60:(g||f)?12:24,b=360/i,k=d.getIntialRotation(j,b),c;a=(b*Math.round(a/b))+k;if(a>=360){a-=360}if(a===0&&!e){c=i}else {c=a/b}if(!e&&!g&&(h&&(h<75))&&f){c+=12}return c},getElementByValue:function(a){var b=this,c=b.getMode();a=parseInt(a);if(c==='hour'&&a===0){a=b.getMeridiem()?12:24}if(!b.itemValueMap){b.layoutFace()}return b.itemValueMap[a]},getHours:function(){var a=this.getValue();return Math.floor(a/60)},getMinutes:function(){var b=this,a=b.getValue(),c=b.getHours();return a!=null?a-(c*60):0},getAm:function(){var b=this.getValue(),a=Math.floor(b/60);if(a===24){a=0}return a<12},layoutFace:function(){var b=this,f,s,g,j,e,n,l,p,r,c,a,d,h,i,k,q,o,m;if(!b.rendered){return}f=b.getParent();s=b.getMode();g=b.faceEl;j=g.measure('w');e=s==='minute';n=e?'minute':'hour';l=50;p=70;r=e?60:b.getMeridiem()?12:24;i=b.getAlignPMInside();q='rotate({0}deg) translateX({1}px) rotate({2}deg)';o=b.getHourDisplayFormat();g.setHtml('');b.itemValueMap={};for(c=1;c<=r;c++){a=Ext.Element.create();h=b.getAngleFromTime(c,n);d=c;k=(j-l)/2;if(e){d=c;if(c%5!==0){a.setStyle('opacity',0)}if(c===60){d='0'}a.addCls('minute-picker-el')}else {a.addCls('hour-picker-el');a.toggleCls('align-pm-inside',i);if(c>12&&i){k=(j-l-p)/2;a.addCls('inner-track')}}a.setStyle('transform',Ext.String.format(q,h,k,-h));a.type=n;a.value=parseInt(d);a.rotation=h;if(e){m=Ext.String.leftPad(d,2,'0')}else {m=Ext.Date.format(new Date(new Date().setHours(d)),o)}b.itemValueMap[a.value]=a;a.setText(m);g.appendChild(a)}if(f&&f.isHeighted()){f.updateHeight()}},onConfirm:function(b){var a=this;a.updateField();Ext.callback(a.getConfirmHandler(),a.getScope(),[a,b],0,a)},onDecline:function(b){var a=this;a.collapsePanel();Ext.callback(a.getDeclineHandler(),a.getScope(),[a,b],0,a)},onFaceElementClick:function(b,e){var a=this,c,d;b=Ext.fly(b);if(!b){return}c=b.value;d=b.type;if(d){if(d==='hour'){a.syncHours(c,e)}else {a.setMinutes(c,e);if(!a.getConfirmable()){a.updateField()}}}if(a.getAutoAdvance()&&a.getMode()==='hour'){a.activateMinutes(null,{delayed:!0,animate:!0})}},onFaceMouseDown:function(b){var a=this;if(!a.dragging){b.preventDefault();a.startDrag()}},onFaceMouseUp:function(b){var c=this,a;if(b.pointerType==='touch'){a=document.elementFromPoint.apply(document,b.getXY())}else {a=b.target}c.stopDrag();c.onFaceElementClick(a)},onHoursClick:function(){this.activateHours(null,{animate:!0})},onMouseMove:function(k){var a=this,h={disableAnimation:!0},j=a.getMode(),b,d,e,g,c,f,i;if(a.dragging){d=a.getCenter();e=k.getXY();g=e[0]-d[0];c=e[1]-d[1];b=Math.atan2(c,g);b=b*(180/Math.PI);i=Math.sqrt(Math.pow(g,2)+Math.pow(c,2));if(c<0){b+=360}f=a.getAlignPMInside()?a.getTimeFromAngle(b,i):a.getTimeFromAngle(b);if(j==='hour'){a.syncHours(f,h)}else {a.setMinutes(f,h)}}},onAmClick:function(){this.setAm(!0)},onMinutesClick:function(){this.activateMinutes(null,{animate:!0})},onOrientationChange:function(){this.setVerticalByOrientation()},onPainted:function(){var a=this;a.layoutFace();a.updateValue();a.activateHours()},onPmClick:function(){this.setAm(!1)},setAm:function(d){var a=this,g=a.getAm(),i=a.getHours(),h=a.getHeader(),e=h.amEl,f=h.pmEl,j=d?e:f,b=a.hour12Cls,c=a.hour24Cls;if(a.getMeridiem()){e.replaceCls(c,b);f.replaceCls(c,b)}else {e.replaceCls(b,c);f.replaceCls(b,c)}if(!a.hasSetAm||g!==d){e.removeCls('active');f.removeCls('active');j.addCls('active');a.hasSetAm=!0}if(g!==d){a.setHours(i+(d?-12:12))}},setClockHand:function(b){var a=this,d=b.type==='minute',l=a.getMode(),n=d?'minute':'hour',i=a.getMeridiem(),j=a.getAlignPMInside(),m=i?a.convert24to12Hours(b.value):b.value,h=a.analogPickerEl,c=a.handEl,e=a.getElementByValue(m),k=(!d&&!i),f,g;if(!d&&i){f=a.convert24to12Hours(b.value)}else {f=b.value}g=a.getAngleFromTime(f,b.type);h.removeCls(['animated','animated-delayed']);h.toggleCls(a.dotIndicatorCls,d&&f%5!==0);if(l!==n){this.setMode(d?'minute':'hour')}if(d){e=a.getElementByValue(f)}if(e&&(!a.activeElement||a.activeElement!==e)){if(a.activeElement){a.activeElement.removeCls('active')}a.activeElement=e;if(b.disableAnimation){e.addCls('active')}else {Ext.defer(function(){e.addCls('active')},a.animationTimeDelay)}}if(c.rotation!==g){h.toggleCls('animated'+(b.delayed?'-delayed':''),!!b.animate);c.setStyle('transform','rotate('+g+'deg)');c.rotation=g}if(k&&!j){c.addCls('format-24hr')}else {c.removeCls('format-24hr')}if(k&&j&&(b.value===0||b.value>12)){c.addCls('inner-dial')}else {c.removeCls('inner-dial')}},setHours:function(c,f){var a=this,g=a.getHeader(),h=a.getMode(),e=a.getMinutes(),d=a.getMeridiem(),b=d?a.convert24to12Hours(c):c;if(d&&b===0){b=12}else if(!d&&b===24){b=0}g.hoursEl.setText(b);if(h==='hour'){a.setClockHand(Ext.apply({value:c,type:'hour','meridiem':a.getMeridiem()},f))}a.setValue((c*60)+e)},setMinutes:function(b,c){var a=this,d=a.getHeader(),f=a.getMode(),e=a.getHours();d.minutesEl.setText(Ext.String.leftPad(b,2,'0'));if(f==='minute'){a.setClockHand(Ext.apply({value:b,type:'minute'},c))}a.setValue((e*60)+b)},setTime:function(c,b,d){var a=this;a.setHours(c);a.setMinutes(b);a.setAm(d)},startDrag:function(){var a=this;a.el.on({mousemove:'onMouseMove',scope:a});a.dragging=!0},stopDrag:function(){var a=this;a.el.un({mousemove:'onMouseMove',scope:a});a._center=null;a.dragging=!1},updateConfirmable:function(a){this.setButtons(a&&this.getDefaultButtons())},updateMode:function(){this.layoutFace()},updateValue:function(){var a=this,c=a.getHours(),b=a.getMinutes(),d=a.getAm();if(this.rendered){a.setHours(c);a.setMinutes(b);a.hasSetAm=!1;a.setAm(d)}},updateField:function(){var a=this,c=a.getHours(),d=a.getMinutes(),b=new Date(a.initDate);b.setHours(c>23?c-12:c);b.setMinutes(d);a.fireEvent('select',a.parent,b)},collapsePanel:function(){this.fireEvent('collapsePanel',this)},setVerticalByOrientation:function(){this.updateVertical('auto')},updateVertical:function(c){var b=this,a=Ext.Viewport;if(a){if(c==='auto'){c=a.getOrientation()===a.PORTRAIT;a.on('orientationchange','onOrientationChange',b)}else {a.un('orientationchange','onOrientationChange',b)}}b.toggleCls(Ext.baseCSSPrefix+'vertical',c);b.setHeaderPosition(c?'top':'left');b.layoutFace()},doDestroy:function(){var a=Ext.Viewport;if(a){a.un('orientationchange','onOrientationChange',this)}this.callParent()},convert24to12Hours:function(a){return a>12?(a-12):a},getIntialRotation:function(g,c){var a=this,f=g!=='hour',e=a.getMeridiem(),b=a.getAlignPMInside(),d=f?15:e?3:(b?3:6);return c*d},syncHours:function(a,e){var b=this,d=b.getMeridiem(),c=b.getAm();if(d){if(!c&&a!==12){a=a+12}else if(c&&a===12){a=0}}else if(a===24){a=0}b.setHours(a,e)}});Ext.define('Ext.panel.Time',{extend:Ext.Panel,xtype:'timepanel',mixins:[Ext.mixin.ConfigProxy],config:{view:{xtype:'analogtime'}},proxyConfig:{view:{configs:['value','autoAdvance','vertical','confirmable','confirmHandler','declineHandler','scope','defaultButtons','mode','meridiem','alignPMInside','hourDisplayFormat'],methods:['getHours','getMinutes','updateField']}},autoSize:null,initialize:function(){var a=this;a.callParent();if(a.getFloated()){a.el.dom.setAttribute('tabIndex',-1);a.el.on('mousedown',a.onMouseDown,a)}a.relayEvents(a.getView(),['collapsePanel','select'])},applyView:function(a,b){return Ext.updateWidget(b,a,this,'createView')},createView:function(a){return this.mergeProxiedConfigs('view',a)},updateView:function(b,a){if(a){Ext.destroy(a)}this.add(b)},updateButtonAlign:function(a){this.getView().setButtonAlign(a)},onMouseDown:function(a){a.preventDefault()}});Ext.define('Ext.field.Time',{extend:Ext.field.Picker,xtype:'timefield',config:{triggers:{expand:{type:'time'}},format:'',altFormats:'g:ia|'+'g:iA|'+'g:i a|'+'g:i A|'+'h:i|'+'g:i|'+'H:i|'+'ga|'+'ha|'+'gA|'+'h a|'+'g a|'+'g A|'+'gi|'+'hi|'+'gia|'+'hia|'+'g|'+'H|'+'gi a|'+'hi a|'+'giA|'+'hiA|'+'gi A|'+'hi A'},platformConfig:{'phone || tablet':{floatedPicker:{modal:!0,centered:!0},errorTarget:'under'}},picker:'floated',floatedPicker:{xtype:'timepanel',floated:!0,confirmable:!0,listeners:{select:'onPickerChange',collapsePanel:'collapse',scope:'owner'}},initDate:'1970-01-01',initDateFormat:'Y-m-d',matchFieldWidth:!1,createFloatedPicker:function(b){var a=this.getFloatedPicker();return Ext.apply(a,b)},getAutoPickerType:function(){return 'floated'},onPickerChange:function(c,b){var a=this;a.forceSetValue(b);a.fireEvent('select',a,b);a.collapse()},parseValue:function(d,j){var b=this,a=d,h=b.getFormat(),i=b.getAltFormats(),e=[h].concat(i),c,g,f;if(a){if(!Ext.isDate(a)){for(c=0,g=e.length;c<g;c++){f=e[c];a=Ext.Date.parse(b.initDate+' '+d,b.initDateFormat+' '+f);if(a){return a}}}if(a){return a}}return this.callParent([d,j])},realignFloatedPicker:function(a){a=a||this.getPicker();if(a.isCentered()){a.center()}else {return this.callParent([a])}},showPicker:function(){var a=this,b;a.callParent();b=a.getPicker();b.setValue(a.getValue());if(b.getModal()){a.getFocusTrap().focus()}},isEqual:function(a,b){var c=this.transformValue(a),d=this.transformValue(b);return +c===+d},transformValue:function(a){if(Ext.isDate(a)){if(isNaN(a.getTime())){a=null}}return a},applyInputValue:function(a,b){if(Ext.isDate(a)){return Ext.Date.format(a,this.getFormat())}return this.callParent([a,b])},applyPicker:function(a,c){var b=this;if(a==='edge'){a='floated'}a=b.callParent([a,c]);if(a){a.ownerCmp=b}return a},applyAltFormats:function(a){if(!a){return []}else if(!Ext.isArray(a)){return a.split('|')}return a},applyFormat:function(a){return a||Ext.Date.defaultTimeFormat},updateFormat:function(a){this.setParseValidator({type:'time',format:a})},applyValue:function(a,b){if(!(a||a===0)){a=null}a=this.callParent([a,b]);if(a){if(this.isConfiguring){this.originalValue=a}}return a},updateValue:function(b,c){var a=this._picker;if(a){a.setValue(b)}this.callParent([b,c])},rawToValue:function(a){return this.parseValue(a)}});Ext.define('Ext.slider.Toggle',{extend:Ext.slider.Slider,xtype:'toggleslider',config:{onThumbUi:'toggle-on',offThumbUi:'toggle-off'},value:0,classCls:Ext.baseCSSPrefix+'toggleslider',minValueCls:Ext.baseCSSPrefix+'off',maxValueCls:Ext.baseCSSPrefix+'on',applyMinValue:function(){return 0},applyMaxValue:function(){return 1},applyIncrement:function(){return 1},updateMinValueCls:function(c,a){var b=this.element;if(a&&b.hasCls(a)){b.replaceCls(a,c)}},updateMaxValueCls:function(c,a){var b=this.element;if(a&&b.hasCls(a)){b.replaceCls(a,c)}},setIndexValue:function(c,f,e){var b=this.getValue()[c],d,a;this.callParent(arguments);d=this.thumbs[c];a=this.getValue();if(b!==a){this.fireEvent('change',this,d,a,b)}},onChange:function(h,c,g){var a=this,b=c>0,f=a.maxValueCls,e=a.minValueCls,d=a.element;d.addCls(b?f:e);d.removeCls(b?e:f);a.thumbs[0].setUi(b?a.getOnThumbUi():a.getOffThumbUi());a.callParent([h,c,g])},toggle:function(){var a=this.getValue();this.setValue((a===1)?0:1);return this},onTap:function(){var b,a,c;if(this.isDisabled()||this.getReadOnly()){return}b=this.getValue();a=(b===1)?0:1;c=this.thumbs[0];this.setIndexValue(0,a,this.getAnimation());this.refreshAdjacentThumbConstraints(c)},privates:{syncFill:function(){var a=this,b=a.trackElement.down(a.fillSelector),c=a.getArrayValues();if(c&&(c[0]===1)){b.show()}else {b.hide()}}}});Ext.define('Ext.field.Toggle',{extend:Ext.field.SingleSlider,xtype:'togglefield',alternateClassName:'Ext.form.Toggle',twoWayBindable:{value:1},publishes:{value:1},config:{slider:{xtype:'toggleslider'},activeLabel:null,inactiveLabel:null,value:!1},bodyAlign:'start',classCls:Ext.baseCSSPrefix+'togglefield',updateActiveLabel:function(a,b){this.getSlider().element.dom.setAttribute('data-activelabel',a)},updateInactiveLabel:function(a,b){this.getSlider().element.dom.setAttribute('data-inactivelabel',a)},applyValue:function(a,b){a=this.callParent([a,b]);if(typeof a!=='boolean'){a=a!==0}return a},updateValue:function(d,e){var a=this,c=a.getActiveLabel(),b=a.getInactiveLabel();if(c||b){a.setLabel(d?c:b)}a.callParent([d,e])},setSliderValue:function(a){this.getSlider().setValue(a?1:0);return !!a},toggle:function(){this.setValue(!this.getValue());return this},getRawValue:function(){return this.getValue()},rawToValue:Ext.emptyFn});Ext.define('Ext.field.Url',{extend:Ext.field.Text,xtype:'urlfield',alternateClassName:'Ext.form.Url',config:{autoCapitalize:!1},inputType:'url',classCls:Ext.baseCSSPrefix+'urlfield'});Ext.define('Ext.field.trigger.Component',{extend:Ext.field.trigger.Base,alias:'trigger.component',classCls:Ext.baseCSSPrefix+'componenttrigger',config:{component:null},doDestroy:function(){this.setComponent(null);this.callParent()},applyComponent:function(b,a){return Ext.updateWidget(a,b,this,'createComponent')},createComponent:function(a){return Ext.apply({$initParent:this,ownerCmp:this},a)},updateComponent:function(a){if(a){delete a.$initParent;a.ownerCmp=this;this.el.appendChild(a.el)}},updateDisabled:function(a,b){this.callParent([a,b]);this.getComponent().setDisabled(a)},getRefItems:function(c){var b=[],a=this.getComponent();if(a){b.push(a);if(c&&a.getRefItems){b.push.apply(b,a.getRefItems(c))}}return b}});Ext.define('Ext.field.trigger.File',{extend:Ext.field.trigger.Component,alias:'trigger.file',classCls:Ext.baseCSSPrefix+'filetrigger',component:{xtype:'filebutton'},disableOnReadOnly:!1});Ext.define('Ext.field.trigger.Menu',{extend:Ext.field.trigger.Trigger,xtype:'menutrigger',alias:'trigger.menu',cachedConfig:{menuAlign:'tl-bl?',destroyMenu:!0},config:{menu:{lazy:!0,$value:null}},doDestroy:function(){this.setMenu(null);this.callParent()},applyMenu:function(a,b){if(a){if(Ext.isArray(a)){a={items:a}}}if(b&&!this.getDestroyMenu()){b=null}return Ext.factory(a,Ext.menu.Menu,b)},updateMenu:function(b,a){if(a&&a.ownerCmp===this){delete a.ownerCmp}if(b){b.ownerCmp=this}},onClick:function(b){var a=this.getMenu();if(a){this.showMenu(b,a)}else {this.callParent([b])}},showMenu:function(c,a){var b=!c||c.pointerType;a=a||this.getMenu();if(a){if(a.isVisible()){if(b){a.hide()}else {a.focus()}}else {a.autoFocus=!b;if(a.isMenu){a.showBy(this.element,this.getMenuAlign())}else if(a.isViewportMenu){a.setDisplayed(!a.getDisplayed())}else {a.show()}}}}});Ext.define('Ext.form.FieldSet',{extend:Ext.Container,xtype:'fieldset',mixins:[Ext.form.Borders,Ext.mixin.FieldDefaults],config:{title:null,instructions:null},autoSize:null,baseCls:Ext.baseCSSPrefix+'form-fieldset',applyTitle:function(a){if(typeof a==='string'){a={title:a}}Ext.applyIf(a,{docked:'top',cls:this.baseCls+'-title'});return Ext.factory(a,Ext.Title,this._title)},updateTitle:function(a,b){if(a){this.add(a)}if(b){this.remove(b)}},getTitle:function(){var a=this._title;if(a&&a instanceof Ext.Title){return a.getTitle()}return a},applyInstructions:function(a){if(typeof a==='string'){a={title:a}}Ext.applyIf(a,{docked:'bottom',cls:this.baseCls+'-instructions'});return Ext.factory(a,Ext.Title,this._instructions)},updateInstructions:function(a,b){if(a){this.add(a)}if(b){this.remove(b)}},getInstructions:function(){var a=this._instructions;if(a&&a instanceof Ext.Title){return a.getTitle()}return a},updateDisabled:function(a){this.query('field').forEach(function(b){b.setDisabled(a)});return this}});Ext.define('Ext.form.Panel',{extend:Ext.field.Panel,xtype:'formpanel',isFormPanel:!0,mixins:[Ext.mixin.FieldDefaults],alternateClassName:'Ext.form.FormPanel',classCls:Ext.baseCSSPrefix+'formpanel',element:{reference:'element',tag:'form',novalidate:'novalidate'},config:{enableSubmissionForm:!0,enctype:null,method:'post',multipartDetection:!0,standardSubmit:!1,submitOnAction:!1,trackResetOnLoad:!1},getTemplate:function(){var a=this.callParent();a.push({tag:'input',type:'submit',cls:Ext.baseCSSPrefix+'hidden-submit'});return a},initialize:function(){this.callParent();this.element.on('submit','onSubmit',this)},applyEnctype:function(b){var a=this.element.dom||null;if(a){if(b){a.setAttribute('enctype',b)}else {a.setAttribute('enctype')}}},onSubmit:function(a){var b=this;if(a&&!b.getStandardSubmit()){a.stopEvent()}else {this.submit(null,a)}},updateSubmitOnAction:function(a){this[a?'on':'un']({action:'onFieldAction',scope:this})},onFieldAction:function(a){if(this.getSubmitOnAction()){a.blur();this.submit()}},submit:function(b,e){var a=this,d,c;b=b||{};d=a.getSubmitValues({enabled:a.getStandardSubmit()||!b.submitDisabled});c=a.element.dom||{};if(this.getEnableSubmissionForm()){c=this.createSubmissionForm(c,d)}b=Ext.apply({url:a.getUrl()||c.action,submit:!1,form:c,method:a.getMethod()||c.method||'post',autoAbort:!1,params:null,waitMsg:null,headers:null,success:null,failure:null},b||{});return a.fireAction('beforesubmit',[a,d,b,e],'doBeforeSubmit',null,null,'after')},privates:{applyExtraParams:function(c){var e=c.form,d=Ext.merge(this.getBaseParams()||{},c.params),b,a;for(b in d){a=document.createElement('input');a.setAttribute('type','text');a.setAttribute('name',b);a.setAttribute('value',d[b]);e.appendChild(a)}},beforeAjaxSubmit:function(c,e,m,i){var b=this,n=e.url||b.getUrl(),a=Ext.merge({},{url:n,timeout:b.getTimeout()*1000,form:c,scope:b},e),h={},l=b.jsonSubmit,j='params',g='x-www-form-urlencoded; charset=UTF-8',k,d,f;delete a.success;delete a.failure;if(l){j='jsonData';g='json';h=b.getSubmitValues({enabled:b.getStandardSubmit()||!e.submitDisabled});delete a.params;delete a.form}a[j]=Ext.merge({},b.getBaseParams(),e.params,h);a.header=Ext.apply({'Content-Type':'application/'+g},e.headers||{});a.callback=function(l,g,a){var f=a.responseText,j=a.responseXML,h=Ext.data.request.Ajax.parseStatus(a.status,a);if(c.$fileswap){Ext.each(c.$fileswap,function(b){k=b.original;d=b.placeholder;d.parentNode.insertBefore(k,d.nextSibling);d.parentNode.removeChild(d)});c.$fileswap=null;delete c.$fileswap}b.setMasked(!1);if(a.success===!1){g=!1}if(g){if(h&&f&&f.length===0){g=!0}else {if(!Ext.isEmpty(a.responseBytes)){g=h.success}else {if(Ext.isString(f)&&a.request.options.responseType==='text'){a.success=!0}else if(Ext.isString(f)){try{a=Ext.decode(f)}catch(o){a.success=!1;a.error=o;a.message=o.message}}else if(Ext.isSimpleObject(f)){a=f;Ext.applyIf(a,{success:!0})}if(!Ext.isEmpty(j)){a.success=!0}g=!!a.success}}if(g){m(a,f)}else {i(a,f)}}else {i(a,f)}};if(Ext.feature.has.XHR2&&a.xhr2){delete a.form;f=a.data=new FormData(c);if(a.params){Ext.iterate(a.params,function(b,a){if(Ext.isArray(a)){Ext.each(a,function(d){f.append(b,d)})}else {f.append(b,a)}});delete a.params}}return Ext.Ajax.request(a)},beforeDirectSubmit:function(b,g,f,e,d){var a=this,c;a.applyExtraParams(f);b=Ext.direct.Manager.resolveApi(b,a);a.setApi(b);c=b.submit;if(!c){Ext.raise('Cannot find Ext Direct API method for submit action')}return c(g,function(c,h,i){a.setMasked(!1);if(i){if(c.success){e(h,c)}else {d(h,c)}}else {d(h,c)}},a)},beforeStandardSubmit:function(a,c){var e,d,g,f,b;if(c.url&&Ext.isEmpty(a.action)){a.action=c.url}d=this.query('spinnerfield');g=d.length;f=document.body;for(b=0;b<g;b++){e=d[b];if(!e.getDisabled()){e.setDisabled(!1)}}f.appendChild(a);a.method=(c.method||a.method).toLowerCase();a.submit();f.removeChild(a)},createSubmissionForm:function(a,h){var g=this.getFields(),e,b,d,f,c;if(a.nodeType===1){a=a.cloneNode(!1);for(e in h){b=document.createElement('input');b.setAttribute('type','text');b.setAttribute('name',e);b.setAttribute('value',h[e]);a.appendChild(b)}}for(e in g){if(g.hasOwnProperty(e)){d=g[e];if(d.isFile){f=d.getTriggers().file;c=f&&f.getComponent().buttonElement.dom;if(c){if(!a.$fileswap){a.$fileswap=[]}b=c.cloneNode(!0);c.parentNode.insertBefore(b,c.nextSibling);a.appendChild(c);a.$fileswap.push({original:c,placeholder:b})}}else if(d.isPassword){if(d.getInputType()!=='password'){d.setRevealed(!1)}}}}return a},doBeforeSubmit:function(b,k,a){var d=a.form||{},i=!1,h,j,e,g,f,c;if(this.getMultipartDetection()===!0){this.getFields(!1).forEach(function(c){if(c.isFile===!0){i=!0;return !1}});if(i){d.setAttribute('enctype','multipart/form-data')}}if(a.enctype){d.setAttribute('enctype',a.enctype)}if(b.getStandardSubmit()){e=b.beforeStandardSubmit(d,a)}else {h=b.getApi();j=a.scope||b;f=function(c,d){if(Ext.isFunction(a.failure)){a.failure.call(j,b,c,d)}b.fireEvent('exception',b,c)};g=function(c,d){if(Ext.isFunction(a.success)){a.success.call(a.scope||b,b,c,d)}b.fireEvent('submit',b,c)};c=a.waitMsg;if(a.waitMsg){if(typeof c==='string'){c={xtype:'loadmask',message:c}}b.setMasked(c)}if(h){e=b.beforeDirectSubmit(h,d,a,g,f)}else {e=b.beforeAjaxSubmit(d,a,g,f)}}return e}}});Ext.define('Ext.grid.CellEditor',{extend:Ext.Editor,xtype:'celleditor',isCellEditor:!0,floated:!1,classCls:Ext.baseCSSPrefix+'celleditor',config:{autoPin:!0},relayedEvents:['beforestartedit','startedit','beforecomplete','complete','canceledit','specialkey'],swallowKeys:!1,layout:'fit',shadow:!1,allowBlur:!0,alignment:'tl-tl',zIndex:10,useBoundValue:!1,inheritUi:!0,field:{inheritUi:!0},constructor:function(a){var c=this,b;c.callParent([a]);if(a.plugin){b=a.plugin.getGrid()}if(b){b.relayEvents(c,c.relayedEvents)}},beforeEdit:function(d,c){var b=this,a;a=b.callParent([d,c]);if(a!==!1){a=b.$activeLocation.beforeEdit(b)}return a},startEdit:function(b,c,i){var a=this,d,g,f,e,h;if(b){d=b.cell;g=d.el;c=c!=null?c:b.record.get(d.dataIndex);a.$activeLocation=b;a.ownerCmp=d;a.render(g);a.callParent([g,c,i]);if(a.editing){a.$activeRow=f=b.row;a.$activeGrid=e=f.getGrid();a.editingPlugin.editing=!0;a.editingPlugin.location=a.$activeLocation=h=new Ext.grid.Location(e,a.getField().getFocusEl());a.editingPlugin.activeEditor=a;e.stickItem(f,{autoPin:a.getAutoPin()})}else {a.$activeLocation=null}}return h},onFocusLeave:function(a){if(!this.editingPlugin.getGrid().destroying){if(this.isCancelling){this.cancelEdit()}else {this.completeEdit(!1)}}this.isCancelling=!1},onFocusEnter:function(a){if(this.$activeLocation){a.relatedTarget=a.fromElement=this.$activeLocation.getFocusEl('dom')}this.callParent([a])},getLocation:function(){return this.$activeLocation},onSpecialKey:function(c,a){var b=this;if(a.getKey()===a.ESC){b.isCancelling=!0}else {b.callParent([c,a])}},onEditComplete:function(f,g){var a=this,b=a.$activeLocation,j=a.getValue(),d,h,e,c,i;a.callParent([f,g]);if(b){c=b.row.getGrid();if(!g&&j!==a.startValue){d=b.record;h=b.cell.dataIndex;if(d){d.set(h,j);c.ensureVisible(b.record);b.refresh()}}if(!f){e=b.row;i=!!e.$sticky;if(i){c.stickItem(e,null);c.ensureVisible(b.record,{column:b.columnIndex,focus:!0})}a.$stickyVisibility=a.$activeLocation=a.$activeRow=a.$activeGrid=null;a.editingPlugin.editing=!1;a.editingPlugin.location=a.editingPlugin.activeEditor=null}}},realign:Ext.emptyFn,toggleBoundEl:function(d){var b=this.$activeLocation,a,c;if(b&&this.hideEl){a=b.cell;if(a){c=a.bodyElement;c.setVisibility(d)}}}});Ext.define('Ext.grid.Location',{extend:Ext.dataview.Location,isGridLocation:!0,actionable:!1,cell:null,column:null,columnIndex:-1,summary:!1,row:null,rowBody:null,isTreeLocation:!1,inheritableStatics:{defineProtoProperty:function(a,b){Object.defineProperty(this.prototype,a,{get:function(){var c=this[b]();Object.defineProperty(this,a,{value:c,configurable:!0});return c}})}},attach:function(f){var b=this,g=b.view,j=g.store,h,a,k,e,c,d,i;if(f.constructor===Object){c=f.record;if(typeof c==='number'){c=j.getAt(Math.max(Math.min(c,j.getCount()-1),0))}d=f.column;if(typeof d==='number'){e=g.getVisibleColumns();d=e[Math.max(Math.min(d,e.length-1),0)]}if(!(c&&d)){if(c){d=g.getFirstVisibleColumn()}else {c=j.getAt(0)}}a=g.mapToCell(c,d);if(a){f=a.element}else {b._setColumn(d);f=c}}b.callParent([f]);h=b.item;if(h&&h.isGridRow){b.row=h;b.summary=h.isSummaryRow;if(!a){a=g.mapToCell(f);if(!a){e=g.getVisibleColumns();i=e[0];if(i){a=h.getCellByColumn(i)}}}b.cell=a;if(a){b.column=k=a.getColumn();e=e||g.getVisibleColumns();b.columnIndex=e.indexOf(k);b.isTreeLocation=!!a.isTreeCell}else {b.rowBody=g.mapToRowBody(f)}}},beforeEdit:function(a){return this.fireEditEvent('beforeedit',a)},fireEditEvent:function(d,b){var a=this,c=a.view;if(b){a.editor=b}return c.fireEvent(d,c,a)},clone:function(c){var b=this,a=b.callParent(),e,d,f;if(c){if(c.record!==undefined){e=c.record}if(c.column!==undefined){d=c.column}delete a.sourceElement}if(e!=null){delete b.source;b.superclass.attach.call(a,e);a.row=a.item}else {a.row=a.child=b.row;a.summary=b.summary;a.rowBody=b.rowBody}if(d!=null){a._setColumn(d)}else {a.cell=f=b.cell;a.column=b.column;a.columnIndex=b.columnIndex;b.isTreeLocation=!!(f&&f.isTreeCell)}return a},cloneForColumn:function(a){return this.clone({column:a})},equals:function(a){var b=this;if(a&&a.view===b.view&&a.isGridLocation){if(b.actionable!==a.actionable){return !1}if(b.sourceElement&&b.actionable){return a.sourceElement===b.sourceElement}if((b.recordIndex!==a.recordIndex)||b.record!==a.record){return !1}return b.column===a.column}return !1},equalCell:function(a){var b=this;return a&&a.view===b.view&&a.isGridLocation&&b.recordIndex===a.recordIndex&&b.column===a.column},getFocusEl:function(c){var b=this,a;if(b.actionable){a=b.sourceElement}else {a=b.get();a=a&&!a.destroyed&&a.el.dom}return Ext.getBody().contains(a)?b.as(a,c||'el'):null},getCell:function(b){var a=this.cell,c=null;if(a){c=(b==='dom'||b===!0)?a.el.dom:(b==='cmp'?a:a.el)}return c},get:function(){return this.cell},isFirstColumn:function(){var a=this.column,b=!1;if(a){b=this.view.isFirstVisibleColumn(a)}return b},isLastColumn:function(){var a=this.column,b=!1;if(a){b=this.view.isLastVisibleColumn(a)}return b},refresh:function(){var a=this,e=a.column,c=a.columnIndex,b=a.view.getHeaderContainer().indexOfLeaf(e),d;if(b===-1){b=(c===-1)?0:c}d=a.callParent();return d._setColumn(b)},next:function(c){var b=this,a;if(b.actionable){return b.navigate()}else {for(a=b.nextCell(c);a&&!a.get().el.isFocusable();a=a.nextCell(c)){}return a||b}},previous:function(c){var b=this,a;if(b.actionable){return b.navigate(!0)}else {for(a=b.previousCell(c);a&&!a.get().el.isFocusable();a=a.previousCell(c)){}return a||b}},down:function(b){var d=this,e=b&&b.column||d.column,a=d.nextItem(b),c;if(a){a._setColumn(e);c=a.get();while(a&&(!c||!c.el.isFocusable())){a=a.nextItem(b);if(a){a._setColumn(e);c=a.get()}}if(a&&!a.equals(d)){return a}}return d},up:function(b){var d=this,e=b&&b.column||d.column,a=d.previousItem(b),c;if(a){a._setColumn(e);c=a.get();while(a&&(!c||!c.el.isFocusable())){a=a.previousItem(b);if(a){a._setColumn(e);c=a.get()}}}if(a&&!a.equals(d)){return a}return d},privates:{determineActionable:function(){var a=this.sourceElement,b=this.cell,c=!1;if(a&&(!b||b.destroyed||b.element.dom!==a)){c=Ext.fly(a).isFocusable(!0)}return c},navigate:function(m){var d=this,c=d.sourceElement,j=d.view,l=j.getScrollable(),g=j.getNavigationModel().actionables,n=g&&g.length,a=d.clone(),k=d.clone(),i,o={callback:function(a){i=Ext.fly(a);if(!i.$isFocusTrap&&i.isFocusable()){h=Ext.Component.from(a);if(!h||!h.getDisabled()){e.push(a)}}},reverse:m,skipSelf:!0},e=[],f,b,h;while(a&&!b&&a.get()){e.length=0;a.get().el.visit(o);c=e[c?(Ext.Array.indexOf(e,c)+1):0];if(c){b=a;b.source=b.sourceElement=c;delete b.actionable;if(a.child){l.ensureVisible(a.child.el)}l.ensureVisible(c);c.focus()}else {a=a[m?'previousCell':'nextCell']();if(a.equals(k)){return d}if(a&&n){for(f=0;!b&&f<n;f++){j.ensureVisible(a.record,{column:a.columnIndex,focus:!0});b=g[f].activateCell(a)}}}k=a}return b||d},activate:function(){var h=this,g=h.view,f=g.getScrollable(),e=g.getNavigationModel().actionables,i=e&&e.length,b=h.clone(),c,d,a;b.get().el.visit({callback:function(a){if(Ext.fly(a).isFocusable()){c=a;return !1}},skipSelf:!0});if(c){a=b;a.source=a.sourceElement=c;delete a.actionable;if(b.child){f.ensureVisible(b.child.el)}f.ensureVisible(c);c.focus()}else {for(d=0;!a&&d<i;d++){a=e[d].activateCell(b)}}return a},getFocusables:function(){var a=[],b=this.sourceElement;if(b){Ext.fly(b).visit({callback:function(b){if(Ext.fly(b).isFocusable()){a.push(b)}},skipSelf:!0})}return a},nextCell:function(d){var b=this,h=b.clone(),a=b.clone(),c=b.getVisibleColumns(),f=b.view.store.indexOf(b.row.getRecord()),e,g=!1;if(d){if(typeof d==='boolean'){g=d}else {g=d.wrap}}do{e=c.indexOf(a.column)+1;if(e===c.length||!b.child.isGridRow){if(f<b.view.store.getData().count()-1){a=b.getUpdatedLocation(c[0],f+1)}else if(g){a=b.getUpdatedLocation(c[0],0)}}else {a=b.getUpdatedLocation(c[e],f)}if(a&&a.equals(h)){break}if(!a){a=h;break}}while(a&&!a.sourceElement);return a},getVisibleColumns:function(){var f=this,d=f.view,c=d.allPartners||[d],e=c.length,a,b=[];for(a=0;a<e;a++){b=b.concat(c[a].getVisibleColumns())}return b},previousCell:function(d){var b=this,h=b.clone(),a=b.clone(),c=b.getVisibleColumns(),f=b.view.store.indexOf(b.row.getRecord()),e,g=!1;if(d){if(typeof d==='boolean'){g=d}else {g=d.wrap}}do{e=c.indexOf(a.column)-1;if(e===-1||!b.child.isGridRow){if(f>0){a=b.getUpdatedLocation(c[c.length-1],f-1)}else if(g){a=b.getUpdatedLocation(c[c.length-1],b.view.store.getData().count()-1)}}else {a=b.getUpdatedLocation(c[e],f)}if(a&&a.equals(h)){break}if(!a){a=h;break}}while(a&&!a.sourceElement);return a},getUpdatedLocation:function(b,e){var c=this,d=b.getGrid(),f=c.view.store.getData().getAt(e),a=d.createLocation(f);a.column=b;a.columnIndex=d.getVisibleColumns().indexOf(b);a.cell=a.row&&a.row.getCellByColumn(b);if(a.cell){delete c.event;delete c.actionable;a.isTreeLocation=!!a.cell.isTreeCell;a.sourceElement=a.cell.el.dom;return a}else {return null}},_setColumn:function(b){var a=this,d=a.view.getVisibleColumns(),c;if(typeof b==='number'){c=b;b=d[c]}else {c=d.indexOf(b)}delete a.event;delete a.actionable;a.column=b;a.columnIndex=c;a.cell=a.row&&a.row.getCellByColumn(b);if(a.cell){a.isTreeLocation=!!a.cell.isTreeCell;a.sourceElement=a.cell.el.dom}return a}}},function(a){a.defineProtoProperty('actionable','determineActionable')});Ext.define('Ext.grid.NavigationModel',{extend:Ext.dataview.NavigationModel,alias:'navmodel.grid',locationClass:'Ext.grid.Location',statics:{ignoreInputFieldKeys:{PAGE_UP:!0,PAGE_DOWN:!0,END:!0,HOME:!0,LEFT:!0,UP:!0,RIGHT:!0,DOWN:!0}},setLocation:function(a,c){var b=this,e=b.getView(),d=c&&c.event;b.columnIndex=-1;if(a!=null&&!a.isGridLocation){if(Ext.isArray(a)){a={column:a[0],record:a[1]}}else if(typeof a==='number'){a=e.store.getAt(a)}a=b.createLocation(a);if(d){a.event=d}}return b.callParent([a,c])},clearLocation:function(){var a=this,b;if(a.location){a.previousLocation=a.location;b=a.location.sourceElement;if(b){Ext.fly(b).removeCls(a.focusedCls)}a.location=null}},registerActionable:function(a){var b=this,f=b.getView(),e=b.actionables||(b.actionables=[]),c,d;if(!Ext.Array.contains(e,a)){e.push(a);c=a.getTriggerEvent();if(c){d={scope:b,args:[a]};d[c]='triggerActionable';a.triggerEventListener=f.bodyElement.on(d)}}},unregisterActionable:function(b){var a=this.actionables;if(a){Ext.Array.remove(a,b)}},privates:{onFocusMove:function(c){var a=this,d=a.getView(),b=a.getLocation();if(c.toElement===d.el.dom&&b){a.clearLocation();return a.setLocation(b)}b=a.createLocation(c);if(!b.equals(a.location)){a.handleLocationChange(b,{event:c,navigate:!1})}},processViewEvent:function(a){var d=this,c=d.getView(),b=c.mapToCell(a);if(Ext.fly(a.target).isInputField()&&d.self.ignoreInputFieldKeys[a.getKeyName()]){return !1}if(b&&b.row.grid===c){return a}},activateCell:function(a){a.clone().activate()},triggerActionable:function(b,c){var a;a=b.activateCell(this.createLocation(c));if(a){this.setLocation(a)}},onChildTouchStart:function(c,a){var b=a.event;if(a.header||a.footer){b.preventDefault()}else {if(this.location&&!this.location.equalCell(a)){this.setLocation(a,{event:a.event,navigate:this.getView().getTriggerEvent()==='childtouchstart'})}}},onKeyUp:function(a){a.preventDefault();if(!this.location.actionable){if(this.location){this.moveUp(a)}else {this.setLocation(0)}}},onKeyDown:function(a){a.preventDefault();if(!this.location.actionable){if(this.location){this.moveDown(a)}else {this.setLocation(0)}}},onKeyLeft:function(b){var a=this.location,c=a.isLastColumn()&&a.isFirstColumn();if(!a.actionable){b.preventDefault();if(a.isTreeLocation&&!a.record.isLeaf()&&a.record.isExpanded()){if(c===!b.ctrlKey){return a.cell.collapse()}}if(!(b.shiftKey&&a.isFirstColumn())){this.movePrevious({event:b})}}else if(Ext.fly(b.target).isInputField()){return !0}},onKeyRight:function(b){var a=this.location,c=a.isLastColumn()&&a.isFirstColumn();if(!a.actionable){b.preventDefault();if(a.isTreeLocation&&!a.record.isLeaf()&&!a.record.isExpanded()){if(c===!b.ctrlKey){return a.cell.expand()}}if(!(b.shiftKey&&a.isLastColumn())){this.moveNext({event:b})}}else if(Ext.fly(b.target).isInputField()){return !0}},onKeyF2:function(a){if(this.location.actionable){this.onKeyEsc()}else {this.activateCell(this.location)}},onKeyEsc:function(a){if(this.location.actionable){this.location.get().el.focus()}},onKeyTab:function(d){var c=this,a=c.location,b;if(a.actionable){b=function(){c.location=d.shiftKey?a.previous():a.next()};b()}else {return !0}},onKeyPageDown:function(d){var c=this,b,e,a;d.preventDefault();if(!c.location.actionable){b=c.getView();e=(b.infinite?b.getItemTop(c.location.child):c.location.child.el.dom.offsetTop)+b.getVisibleHeight();a=b.getRecordIndexFromPoint(0,e);b.ensureVisible(a).then(function(){a=new Ext.grid.Location(b,{record:a,column:c.location.column});if(!(a.sourceElement&&Ext.fly(a.sourceElement).isFocusable())){a=a.up()}c.setLocation(a,{event:d})})}},onKeyPageUp:function(d){var c=this,b,e,a;d.preventDefault();if(!c.location.actionable){b=c.getView();e=(b.infinite?b.getItemTop(c.location.child):c.location.child.el.dom.offsetTop)-b.getVisibleHeight();a=b.getRecordIndexFromPoint(0,e);b.ensureVisible(a).then(function(){a=new Ext.grid.Location(b,{record:a,column:c.location.column});if(!(a.sourceElement&&Ext.fly(a.sourceElement).isFocusable())){a=a.down()}c.setLocation(a,{event:d})})}},onKeyHome:function(a){a.preventDefault();if(!this.location.actionable){if(a.ctrlKey){this.setLocation({record:this.getView().getStore().first(),column:this.location.column},{event:a})}else {this.setLocation({record:this.location.record,column:this.getView().getFirstVisibleColumn()},{event:a})}}},onKeyEnd:function(a){a.preventDefault();if(!this.location.actionable){if(a.ctrlKey){this.setLocation({record:this.getView().getStore().last(),column:this.location.column},{event:a})}else {this.setLocation({record:this.location.record,column:this.getView().getLastVisibleColumn()},{event:a})}}},onKeySpace:function(b){var e=Ext.fly(b.target),a,c,d;this.onNavigate(b);if(!this.location.actionable){c=this.location.getFocusables();if(c.length){a=Ext.get(c[0]).events}}else {if(e.isInputField()){d=!0}else {a=e.events}}if(a){if(a.tap){a.tap.fire(b)}if(a.click){a.click.fire(b)}}return d},onKeyEnter:function(b){var a=this.location;b.stopEvent();if(!a.actionable){if(a.isTreeLocation&&a.record.data.checked!=null){a.record.set('checked',!a.record.data.checked)}else {this.activateCell(a)}}else {this.onKeySpace(b)}},onSelectAllKeyPress:function(a){if(Ext.fly(a.target).isInputField()){return !0}else {return this.callParent([a])}},moveUp:function(b){var a=this.getLocation();if(a){a=a.up();if(a){this.setLocation(a,{event:b})}}},moveDown:function(b){var a=this.getLocation();if(a){a=a.down();if(a){this.setLocation(a,{event:b})}}}}});Ext.define('Ext.grid.cell.Base',{extend:Ext.Widget,xtype:'gridcellbase',isGridCell:!0,mixins:[Ext.mixin.Toolable],cachedConfig:{align:null,cls:null,bodyCls:null,bodyStyle:null,cellCls:null,selectable:null},config:{column:null,hidden:!1,record:null,value:null},classCls:Ext.baseCSSPrefix+'gridcell',dirtyCls:Ext.baseCSSPrefix+'dirty',alignCls:{left:Ext.baseCSSPrefix+'align-left',center:Ext.baseCSSPrefix+'align-center',right:Ext.baseCSSPrefix+'align-right'},inheritUi:!0,cellSelector:'.'+Ext.baseCSSPrefix+'gridcell',defaultBindProperty:'value',toolDefaults:{zone:'head',ui:'gridcell'},getTemplate:function(){var a={reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el'};if(!(a.children=this.innerTemplate)){a.html='\xa0'}return [a]},doDestroy:function(){this.setColumn(null);this.setRecord(null);this.mixins.toolable.doDestroy.call(this);this.callParent()},getComputedWidth:function(){return this.getHidden()?0:this.getWidth()},updateAlign:function(d,c){var a=this,b=a.alignCls;if(c){a.removeCls(b[c])}if(d){a.addCls(b[d])}a.syncToolableAlign()},updateBodyCls:function(b,a){if(b||a){this.bodyElement.replaceCls(a,b)}},updateBodyStyle:function(a){this.bodyElement.applyStyles(a)},updateCellCls:function(b,a){this.element.replaceCls(a,b)},updateCls:function(b,a){this.element.replaceCls(a,b)},updateColumn:function(a){var b=null,c=this.row;if(a){b=((c&&c.isSummaryRow)&&a.getSummaryDataIndex())||a.getDataIndex()}this.dataIndex=b},updateRecord:function(){if(!this.destroyed&&!this.destroying){this.refresh()}},updateSelectable:function(a){this.toggleCls(Ext.baseCSSPrefix+'item-no-select',a===!1)},refresh:function(b){var a=this,f=a.refreshContext,e,c,d;if(!a.isBound('value')){b=b||f;c=b&&b.modified;if(!c||a.bound(c)){a.refreshContext=e=a.beginRefresh(b);d=a.refreshValue(e);if(d!==a.getValue()){a.setValue(d)}else if(a.writeValue){a.writeValue()}a.refreshContext=f}}},refreshValue:function(b){var a=this,f=b.record,d=b.dataIndex,g,c,e;if(b.summary){g=a.summarize(b)}else if(f&&d){g=f.get(d);e=f.modified;c=!!(e&&e.hasOwnProperty(d));if(c!==a.$dirty){a.toggleCls(a.dirtyCls,c);a.$dirty=c}}return g},privates:{$dirty:!1,refreshContext:null,storeMethodRe:/^(?:average|max|min|sum)$/,augmentToolHandler:function(c,a){var b=a[1]={event:a.pop(),record:this.getRecord(),column:this.getColumn(),cell:a[0],tool:a[1]};a[0]=b.grid=b.column.getGrid()},beginRefresh:function(a){var b=this,c=b.getColumn(),d=b.row;a=a||(d?d.beginRefresh():{record:b.getRecord()});a.cell=b;a.column=c;a.dataIndex=b.dataIndex;a.scope=c.getScope();return a},bound:function(a){return !!a[this.dataIndex]},summarize:function(d){var h=this,g=d.column,a=g.getSummaryType(),c=d.dataIndex,i=d.group,e=d.store,f=d.records,b;if(a){if(Ext.isFunction(a)){b=a.call(e,e.data.items.slice(),c)}else if(a==='count'){b=e.getCount()}else if(h.storeMethodRe.test(a)){b=e[a](c)}else {b=Ext.callback(a,null,[e.data.items.slice(),c,e],0,h)}}else if(!(a=g.getSummary())){if(c){b=d.record.get(c)}}else {b=a.calculate(f,c,'data',0,f.length)}return b}},deprecated:{'6.5':{configs:{innerStyle:'bodyStyle',innerCls:'bodyCls'}}}});Ext.define('Ext.grid.cell.Text',{extend:Ext.grid.cell.Base,xtype:'textcell',config:{encodeHtml:!0,rawValue:null,zeroValue:null},getTemplate:function(){var a=this.callParent();a[0]["data-qoverflow"]=!0;return a},formatValue:function(a){var g=this,d=g.refreshContext,e=d.column,h=g.getZeroValue(),b=e.getFormatter(),c,f;if(d.summary){c=e.getSummaryRenderer();if(c){b=null;f=d.scope;if(typeof c==='string'){a=Ext.callback(c,f,[a,d],0,e)}else {a=c.call(f||g,a,d)}}b=e.getSummaryFormatter()||b}else if(a===0&&h!==null){a=h;b=null}if(b){a=b(a)}if(a!=null){a=String(a)}else {a=''}return a},printValue:function(d){var a=this,c=a.refreshContext,b;a.refreshContext=a.beginRefresh(c);b=a.formatValue(d);if(a.getEncodeHtml()){b=Ext.htmlEncode(b)}a.refreshContext=c;return b},updateRawValue:function(a){var c=this.bodyElement.dom,b=a==null?'':a;if(this.getEncodeHtml()){c.textContent=b}else {c.innerHTML=b}},updateValue:function(){var a=this,c=a.refreshContext,b=a.row;if(b&&b.parent){if(!c){a.refreshContext=a.beginRefresh()}a.writeValue();a.refreshContext=c}},updateZeroValue:function(){if(!this.isConfiguring){this.refresh()}},writeValue:function(){var b=this,a=b.getValue();if(!(a=b.formatValue(a))){a=b.getColumn().getEmptyText()}b.setRawValue(a)}});Ext.define('Ext.grid.cell.Cell',{extend:Ext.grid.cell.Text,xtype:'gridcell',config:{tpl:null,renderer:null,formatter:null,scope:null},friendly:null,updateColumn:function(b,g){var c=this,e=!0,f,a,d;c.callParent([b,g]);if(b){f=b.getTpl();a=b.getRenderer();d=b.getFormatter();if(a!==null){c.setRenderer(a);e=(typeof a==='function')&&a.length===1}if(f!==null){c.setTpl(f);e=!1}if(d!==null){c.setFormatter(d)}c.friendly=e}},applyTpl:function(a){return Ext.XTemplate.get(a)},applyFormatter:function(d){var c=this,a=d,b;if(typeof a==='string'){b=Ext.app.bind.Parser.fly(a);a=b.compileFormat();b.release();return function(b){return a(b,c.getScope()||c.resolveListenerScope())}}return a},updateTpl:function(){if(!this.isConfiguring){this.refresh()}},updateRenderer:function(){if(!this.isConfiguring){this.refresh()}},updateFormatter:function(){if(!this.isConfiguring){this.refresh()}},formatValue:function(h){var d=this,a=d.refreshContext,m=a.dataIndex,g=a.column,o=a.record,k=d.getZeroValue(),b=h,n=a.summary,i,j,e,c,f,l;if(!a.summary&&h===0&&k!==null){b=k}else if(!(l=d.getTpl(a))){e=d.getFormatter();if(n){c=g.getSummaryRenderer();if(c){e=null;f=a.scope;if(typeof c==='string'){b=Ext.callback(c,f,[h,a],0,g);d.friendly=!1}else {b=c.call(f||d,h,a);if(c.length>1){d.friendly=!1}}}e=g.getSummaryFormatter()||e}else {c=d.getRenderer();if(c){i=[h,o,m,d,g];f=d.getScope()||a.scope;if(typeof c==='function'){b=c.apply(f||g,i)}else {b=Ext.callback(c,f,i,0,d)}}}if(e){b=e(b)}}else {if(!(j=a.data)){a.data=j=a.summary?a.record.getData():a.grid.gatherData(a.record)}b=l.apply(j)}if(b!=null){b=String(b)}else {b=''}return b},privates:{bound:function(f){var d=this,a=!!f[d.dataIndex],c,b,e;if(!a){c=d.getColumn();b=c&&c.getDepends();if(b){for(e=b.length;!a&&e-->0;){a=!!f[b[e]]}}else if(!d.friendly){a=!0}}return a}}});Ext.define('Ext.grid.RowBody',{extend:Ext.Component,xtype:'rowbody',config:{widget:null},classCls:Ext.baseCSSPrefix+'rowbody',inheritUi:!0,template:[{reference:'spacerElement',cls:Ext.baseCSSPrefix+'spacer-el'},{reference:'contentElement',cls:Ext.baseCSSPrefix+'content-el'}],initialize:function(){var c=this,a,b;c.callParent();a=c.row.getGrid();if(a&&a.hasRowExpander){b=a.findPlugin('rowexpander');if(b){c.spacerElement.setWidth(b.getColumn().getWidth())}}},applyWidget:function(a){var b=this.row;if(a){a=Ext.apply({ownerCmp:b},a);a=Ext.widget(a)}return a},updateWidget:function(b,a){if(a){a.destroy()}if(b){this.contentElement.appendChild(b.element)}},updateRecord:function(b,a){var c=this.getTpl();if(c){this.callParent([b,a])}},getInnerHtmlElement:function(){return this.contentElement},doDestroy:function(){this.setWidget(null);this.callParent()}});Ext.define('Ext.grid.Row',{extend:Ext.Component,xtype:'gridrow',mixins:[Ext.mixin.Queryable,Ext.dataview.GenericItem,Ext.dataview.Pinnable],isGridRow:!0,isRecordRefreshable:!0,hasGridCells:!0,cachedConfig:{collapsed:!0},config:{body:null,expandedField:null,defaultCellUI:null,stickyVisibility:null},classCls:[Ext.baseCSSPrefix+'listitem',Ext.baseCSSPrefix+'gridrow'],inheritUi:!0,expandedCls:Ext.baseCSSPrefix+'expanded',element:{reference:'element',children:[{reference:'cellsElement',className:Ext.baseCSSPrefix+'cells-el'}]},constructor:function(a){this.cells=[];this.columnMap={};this.callParent([a])},doDestroy:function(){var a=this;a.setRecord(null);a.setBody(null);a.cells=Ext.destroy(a.cells);a.callParent()},collapse:function(){this.setCollapsed(!0)},expand:function(){this.setCollapsed(!1)},toggleCollapsed:function(){this.setCollapsed(!this.getCollapsed())},updateCollapsed:function(b){var a=this,e=a.getBody(),i=a.getParent(),c=a.getRecord(),g=a.getExpandedField(),h=a.expandedCls,f=a.expanderCell,d;if(c){if(g){c.set(g,!b)}else {d=i.$recordsExpanded||(i.$recordsExpanded={});if(b){delete d[c.internalId]}else {d[c.internalId]=!0}}}if(f){f.setCollapsed(b)}if(e){if(b){e.hide();a.removeCls(h)}else {e.show();a.addCls(h)}}},applyBody:function(b,a){return Ext.updateWidget(a,b,this,'createBody')},createBody:function(a){return Ext.merge({xtype:'rowbody',ownerCmp:this,row:this,hidden:!0},a)},updateBody:function(a){var b=this,c=b.getParent();if(a){b.bodyElement.appendChild(a.element);if(b.rendered&&!a.rendered){a.setRendered(!0)}}if(c){c.setVariableHeights(!0);if(!c.hasRowExpander){b.expand()}}},onAdded:function(g){var d=this,e=d.cells,b,h,c,a,f,i;d.callParent(arguments);if(g){c=g.getColumns();for(a=0,i=c.length;a<i;a++){b=e[a];h=c[a];if(b){if(b.getColumn()===h){continue}for(f=e.length;f-->a;){b=e[f];d.removeColumn(b.getColumn())}}d.addColumn(c[a])}}},addColumn:function(a){this.insertColumn(this.cells.length,a)},getCells:function(a){return a?Ext.ComponentQuery.query(a,this.cells):this.cells},getRefItems:function(f){var a=[],b=this.getConfig('body',!1,!0),e=this.cells,g=e&&e.length,d,c;for(d=0;d<g;d++){c=e[d];a.push(c);if(f&&c.getRefItems){a.push.apply(a,c.getRefItems())}}if(b){a.push(b);if(f&&b.getRefItems){a.push.apply(a,b.getRefItems())}}return a},insertColumn:function(e,d){var b=this,c=b.cells,a;if(d.isHeaderGroup){return}a=b.createCell(d);if(e>=c.length){b.cellsElement.appendChild(a.element);c.push(a)}else {a.element.insertBefore(c[e].element);c.splice(e,0,a)}b.columnMap[d.getId()]=a;if(a.isExpanderCell){b.expanderCell=a}if(b.rendered){a.setRendered(!0)}},insertColumnBefore:function(f,h){var b=this,i=b.columnMap,j=f.getId(),a=i[j],e=b.cells,d,c,g;if(h){d=b.getCellByColumn(h);c=e.indexOf(d)}else {c=e.length-(a?1:0)}if(a){g=e.indexOf(a);Ext.Array.move(e,g,c);if(d){a.element.insertBefore(d.element)}else {b.cellsElement.appendChild(a.element)}}else {b.insertColumn(c,f)}},removeColumn:function(e){var d=this,b=d.columnMap,c=e.getId(),a=b[c];if(a){Ext.Array.remove(d.cells,a);delete b[c];a.destroy()}},updateRecord:function(a){if(!this.destroyed&&!this.destroying){this.refresh()}},setColumnWidth:function(a){var b=this.getCellByColumn(a);if(b){b.setWidth(a.getComputedWidth())}},showColumn:function(a){this.setCellHidden(a,!1)},hideColumn:function(a){this.setCellHidden(a,!0)},getCellByColumn:function(a){return this.columnMap[a.getId()]},getColumnByCell:function(a){return a.getColumn()},updateStickyVisibility:function(a){this.fireEvent('stickyvisiblitychange',a)},refresh:function(a){var b=this,l=b.cells,e=b.getBody(),o=l.length,j=b.getExpandedField(),f=b.getParent(),m=f.getSelectable(),k=m.getSelection(),n=k.isCells||k.isColumns,g,h,d,c,i;b.refreshContext=a=b.beginRefresh(a);c=a.record;b.syncDirty(c);for(g=0,h=0;g<o;++g){d=l[g];if(!a.summary||!d.getColumn().getIgnore()){if(d.getRecord()===c){d.refresh(a)}else {d.refreshContext=a;d.setRecord(c);d.refreshContext=null}if(n){d.toggleCls(f.selectedCls,m.isCellSelected(b._recordIndex,h))}}if(!d.isHidden()){h++}}a.cell=a.column=a.dataIndex=a.scope=null;if(e){e.refreshContext=a;if(e.getRecord()===c){e.updateRecord(c)}else {e.setRecord(c)}e.refreshContext=null;if(j){b.setCollapsed(!c.get(j))}else {i=f.$recordsExpanded||(f.$recordsExpanded={});if(f.hasRowExpander){b.setCollapsed(!i[c.internalId])}}}b.refreshContext=null},privates:{refreshContext:null,beginRefresh:function(a){var b=this,c=b.getParent();a=a||{};a.grid=c;a.record=b.getRecord();a.row=b;a.store=c.store;return a},createCell:function(b){var a=b.createCell(this);a=Ext.create(a);delete a.$initParent;if(a.inheritUi){a.doInheritUi()}a.el.setTabIndex(-1);return a},setCellHidden:function(b,c){var a=this.getCellByColumn(b);if(a){a.setHidden(c)}},getGrid:function(){return this.getParent()}}});Ext.define('Ext.grid.HeaderContainer',{extend:Ext.Container,xtype:'headercontainer',isHeaderContainer:!0,config:{columns:null,defaultColumnUI:null,sortable:!0,verticalOverflow:null,reserveScrollbar:null,grid:null},docked:'top',defaultType:'column',layout:{type:'hbox',align:'stretch'},inheritUi:!0,scrollable:{x:!1,y:!1},weighted:!0,autoSize:null,constructor:function(b){var a=this,c=!a.isGridColumn;a.isRootHeader=c;if(c){b.grid._headerContainer=a}a.columns=[];a.callParent([b]);if(c){b.grid._headerContainer=null}},initialize:function(){var a=this;a.callParent();if(a.isRootHeader){a.setInstanceCls(Ext.baseCSSPrefix+'headercontainer');a.on({tap:'onHeaderTap',triggertap:'onHeaderTriggerTap',columnresize:'onColumnResize',show:'onColumnShow',hide:'onColumnHide',sort:'onColumnSort',scope:a,delegate:'[isLeafHeader]'});a.on({tap:'onGroupTap',triggertap:'onGroupTriggerTap',show:'onGroupShow',hide:'onGroupHide',add:'onColumnAdd',move:'onColumnMove',remove:'onColumnRemove',scope:a,delegate:'[isHeaderGroup]'});a.on({add:'onColumnAdd',move:'onColumnMove',remove:'onColumnRemove',scope:a})}},getRootHeaderCt:function(){var a=this.getGrid();return a&&a.getHeaderContainer()},getColumnForField:function(d){var c=this.columns,e=c.length,b,a;for(a=0;a<e;++a){b=c[a].getColumnForField(d);if(b){return b}}return null},getColumns:function(a){var b=this.columns;if(a){if(typeof a==='string'){b=Ext.ComponentQuery.query(a,b)}else if(Ext.isFunction(a)){return b.filter(a)}}return b},getVisibleColumns:function(){var a=this,b=a.visibleColumns;if(!b){b=a.visibleColumns=a.columns.filter(a.visibleLeafFilter)}return b},getClosestVisibleHeader:function(b){var a=typeof b==='number'?this.getVisibleColumns()[b]:b;if(a&&a.hidden){a=a.next(':visible')||a.prev(':visible')}return a},indexOfLeaf:function(a){return this.getVisibleColumns().indexOf(a)},factoryItem:function(a){var b=this.getGrid();if(a.isComponent){if(a.isGridColumn){a.setGrid(b)}}else {a=Ext.apply({grid:b},a)}return this.callParent([a])},updateColumns:function(b){var a=this;if(a.isRootHeader){a.columns=[];a.visibleColumns=null;a.add(b)}},beginColumnUpdate:function(){var a=this;if(!a.isRootHeader){return}a.hasBulkUpdate=a.hasBulkUpdate||0;a.hasBulkUpdate++;if(a.hasBulkUpdate===1){a.bulkAdd=[];a.updateMenuDisabledState=Ext.emptyFn}},endColumnUpdate:function(){var a=this,e,b,c,d;if(!a.isRootHeader||!a.hasBulkUpdate){return}a.hasBulkUpdate--;if(a.hasBulkUpdate===0){c=a.bulkAdd;e=c&&c.length;if(e){a.visibleColumns=null;a.columns=a.getLeaves();for(b=0;b<e;b++){d=c[b];d.columnIndex=a.columns.indexOf(d.column)}Ext.Array.sort(c,a.sortByColumnIndex);for(b=0;b<e;b++){d=c[b];a.fireEvent('columnadd',a,d.column,d.columnIndex)}}a.getGrid().refreshInnerWidth();a.bulkAdd=null;delete a.updateMenuDisabledState;a.updateMenuDisabledState();if(this.isRootHeader){this.onColumnComputedWidthChange()}}},sortByColumnIndex:function(a,b){return a.columnIndex-b.columnIndex},add:function(c){var b,a=this.getRootHeaderCt();if(a){a.beginColumnUpdate()}b=this.callParent([c]);if(a){a.endColumnUpdate()}return b},insert:function(c,d){var b,a=this.getRootHeaderCt();if(a){a.beginColumnUpdate()}b=this.callParent([c,d]);if(a){a.endColumnUpdate()}return b},remove:function(d,c){var b,a=this.getRootHeaderCt();if(a){a.beginColumnUpdate()}b=this.callParent([d,c]);if(a){a.endColumnUpdate()}return b},onColumnAdd:function(h,a){var b=this,g=b.getGrid(),d,e,c,f;if(a.isHeaderGroup){d=a.getItems().items;for(c=0,e=d.length;c<e;c++){b.onColumnAdd(a,d[c])}}else {f=a.getUi();if(f==null){a.setUi(b.getDefaultColumnUI())}a.setGrid(g);b.bulkAdd.push({column:a})}b.updateMenuDisabledState()},onColumnMove:function(g,b,h,d){var a=this,f=a.columns,e=null,c;a.visibleColumns=null;if(b.isHeaderGroup){c=b.getItems().items;e=b}else {c=[b]}d=f.indexOf(c[0]);a.columns=a.getLeaves();a.fireEvent('columnmove',a,c,e,d)},onColumnRemove:function(f,a){var b=this,d,c,e;b.visibleColumns=null;if(a.isHeaderGroup){if(!a.destroying){d=a.getItems().items;e=d.length;for(c=0;c<e;c++){b.onColumnRemove(a,d[c])}}}else {Ext.Array.remove(b.columns,a);b.fireEvent('columnremove',b,a)}b.updateMenuDisabledState()},onHeaderTap:function(b,c){var a=this.getGrid().getSelectable(),d=this.fireEvent('columntap',this,b,c);if(d!==!1){if(a.onHeaderTap){a.onHeaderTap(this,b,c)}}},onGroupTriggerTap:function(a){a.showMenu()},onHeaderTriggerTap:function(a){a.showMenu()},onColumnShow:function(b){var a=this;a.visibleColumns=null;a.fireEvent('columnshow',a,b);a.updateMenuDisabledState();if(this.isRootHeader){this.onColumnComputedWidthChange()}},onColumnHide:function(b){var a=this;a.visibleColumns=null;a.fireEvent('columnhide',a,b);a.updateMenuDisabledState();if(this.isRootHeader){this.onColumnComputedWidthChange()}},onGroupShow:function(d){var c=d.getInnerItems(),e=c.length,a,b;this.visibleColumns=null;for(a=0;a<e;a++){b=c[a];if(!b.isHidden()){this.fireEvent('columnshow',this,b)}}this.updateMenuDisabledState()},onGroupHide:function(d){var b=d.getInnerItems(),e=b.length,a,c;this.visibleColumns=null;for(a=0;a<e;a++){c=b[a];this.fireEvent('columnhide',this,c)}this.updateMenuDisabledState()},onGroupTap:function(a,b){return this.fireEvent('headergrouptap',this,a,b)},onColumnResize:function(b,c,a){this.fireEvent('columnresize',this,b,c,a)},onColumnSort:function(c,a,b){if(a!==null){this.fireEvent('columnsort',this,c,a,b)}},scrollTo:function(a){this.getScrollable().scrollTo(a)},updateGrid:function(a){if(this.isRootHeader){this.parent=a}},doDestroy:function(){this.setGrid(null);this.callParent()},afterRender:function(){this.callParent();if(this.isRootHeader){this.onColumnComputedWidthChange()}},privates:{columnsResizing:null,updateVerticalOverflow:function(){this.syncReserveSpace()},updateReserveScrollbar:function(){this.syncReserveSpace()},updateMenuDisabledState:function(){if(this.rendered){var h=this.isRootHeader?this:this.getRootHeaderCt(),d=[],c=[],g,b,e,f,a;h.visitPreOrder('gridcolumn:not([hidden])',function(a){d.push(a);if(!a.isHidden(!0)&&!a.getMenuDisabled()&&a.getConfig('menu',!0)){c.push(a)}});g=d.length;for(b=0;b<g;++b){e=d[b];a=e.getHideShowMenuItem(!1);if(a){f=c.length>1||c[0]!==e;a['set'+(a.getMenu()?'CheckChange':'')+'Disabled'](!f)}}}},getLeaves:function(){return this.query('[isLeafHeader]')},onColumnComputedWidthChange:function(h,j){var a=this,d=0,b=a.columnsResizing,f,i,e,c,g;if(a.destroying){return}if(b){b.push(h);return}a.columnsResizing=b=[];f=a.getColumns();i=f.length;for(e=0;e<i;e++){c=f[e];if(c===h){b.push(c);g=j}else {g=c.isHidden(!0)?0:c.measureWidth()}d+=g}d=Math.floor(d);a.getGrid().onColumnComputedWidthChange(b,d);a.columnsResizing=null},setRendered:function(a){this.visibleColumns=null;this.callParent([a])},setSortState:function(){var i=this.getGrid(),c=i.getStore(),f=i.getColumns(),g=c.isGrouped(),k=f&&f.length,j=c.getSorters(),h=c.getGrouper(),d,b,e,a;for(d=0;d<k;d++){b=f[d];a=b.sorter;e=c.getGroupField()===b.getDataIndex();if(a){if(g&&!e){a=null}else if(g&&e){a=h}else if(!(j.contains(a)||h===a)){a=null}}b.setSortState(a)}},syncReserveSpace:function(){var d=this.getVerticalOverflow()||this.getReserveScrollbar(),c=0,b,a;if(d){b=this.getGrid();if(b){a=b.getScrollable();if(a){c=a.getScrollbarSize().width+'px'}}}this.el.setStyle('padding-right',c)},visibleLeafFilter:function(a){return a.isLeafHeader&&!a.isHidden()}}});Ext.define('Ext.menu.CheckItem',{extend:Ext.menu.Item,xtype:'menucheckitem',isMenuCheckItem:!0,hideOnClick:!1,config:{checked:!1,checkHandler:null,checkChangeDisabled:!1,value:null,showCheckbox:null},classCls:Ext.baseCSSPrefix+'menucheckitem',checkedCls:Ext.baseCSSPrefix+'checked',checkboxIconElCls:Ext.baseCSSPrefix+'checkbox-icon-el',ariaRole:'menuitemcheckbox',defaultBindProperty:'checked',submenuText:'{0} submenu',href:null,target:null,element:{reference:'element',tabindex:Ext.is.iOS?-1:null,cls:Ext.baseCSSPrefix+'unselectable '+Ext.baseCSSPrefix+'has-left-icon'},focusEl:'checkboxElement',ariaEl:'checkboxElement',getTemplate:function(){var b=this.callParent(),a=b[0];a.tag='div';a.href=null;a.children.push({tag:'input',type:'checkbox',reference:'checkboxElement',cls:Ext.baseCSSPrefix+'checkbox-el'});return b},initialize:function(){var a=this;a.callParent();a.element.on({mousedown:'onCheckboxMousedown',translate:!1,scope:a});a.checkboxElement.on({change:'onCheckboxChange',delegated:!1,scope:a});this.syncCheckboxCls()},enableFocusable:function(){this.mixins.focusable.enableFocusable();this.checkboxElement.dom.readOnly=''},disableFocusable:function(){this.mixins.focusable.disableFocusable();this.checkboxElement.dom.readOnly='readonly'},setChecked:function(d,b){var a=this,c=a.isConfiguring;if(b){a.isConfiguring=!0}a.callParent([d]);if(b){a.isConfiguring=c}},updateChecked:function(a){this.checkboxElement.dom.checked=a;this.onCheckChange()},updateCheckChangeDisabled:function(a){this.checkboxElement.dom.readOnly=a},updateValue:function(a){this.checkboxElement.dom.value=a},updateText:function(b){var a=this,c=a.ariaEl.dom;a.callParent([b]);if(a.getValue()===null){a.setValue(b)}if(c&&a.getMenu()){c.setAttribute('aria-label',Ext.String.formatEncode(a.submenuText,b))}},applyShowCheckbox:function(a){return !!a},updateShowCheckbox:function(a){this.checkboxElement.setDisplayed(a)},updateIcon:function(b,a){this.callParent([b,a]);if(!this.isConfiguring){this.syncCheckboxCls()}},updateIconCls:function(b,a){this.callParent([b,a]);if(!this.isConfiguring){this.syncCheckboxCls()}},updateIconAlign:function(b,a){this.callParent([b,a]);if(!this.isConfiguring){this.syncCheckboxCls()}},privates:{onSpace:function(a){if(this.getDisabled()){a.preventDefault()}},onClick:function(b){var a=this,e=a.arrowElement,d,f,c;if(a.getDisabled()){b.preventDefault()}if(b.pointerType!=='mouse'){c=a.bodyElement.getRegion();if(a.getMenu()){c.setWidth(c.getWidth()-e.getWidth()-e.getMargin('lr'))}if(c.contains(b.getPoint())){d=!1}else {b.preventDefault()}}f=a.callParent([b]);return (d===!1)?d:f},onCheckboxMousedown:function(a){if((Ext.isApple&&!Ext.isChrome)||!this.checkboxElement.contains(a.target)){a.preventDefault()}},onCheckboxChange:function(){var a=this,c=a.checkboxElement.dom,d=a.getChecked(),b=c.checked;if(a.getCheckChangeDisabled()){c.checked=d;return !1}if(b===d||a.getDisabled()){return}if(a.fireEvent('beforecheckchange',a,b)===!1){c.checked=!b}else {a.setChecked(b)}},onCheckChange:function(){var a=this,b=a.checkboxElement.dom.checked,d=a.el,c=a.ariaEl.dom;d.toggleCls(a.checkedCls,!!b);if(c){c.setAttribute('aria-checked',a.getMenu()?'mixed':b)}a.publishState('checked',b);if(!a.isConfiguring){Ext.callback(a.getCheckHandler(),a.scope,[a,b],0,a);a.fireEvent('checkchange',a,b)}},syncHasIconCls:function(){var a=this;a.toggleCls(a.hasRightIconCls,a.hasIcon())},syncCheckboxCls:function(){var a=this,f=a.leftIconElement,e=a.rightIconElement,d=a.checkboxIconElCls,c,b;if(a.hasIcon()&&(a.getIconAlign()==='left')){c=e;b=f}else {c=f;b=e}c.addCls(d);b.removeCls(d)}}});Ext.define('Ext.grid.column.Column',{extend:Ext.grid.HeaderContainer,alternateClassName:'Ext.grid.column.Template',xtype:['gridcolumn','column','templatecolumn'],isGridColumn:!0,mixins:[Ext.mixin.StyleCacher,Ext.mixin.Toolable],config:{align:undefined,cell:{xtype:'gridcell'},dataIndex:null,locked:null,defaultWidth:100,depends:null,emptyText:{cached:!0,$value:'\xa0'},text:'\xa0',sortable:!0,groupable:!0,resizable:!0,hideable:!0,renderer:null,formatter:null,scope:null,editable:null,editor:null,defaultEditor:{lazy:!0,$value:{}},editorDefaults:{cached:!0,$value:{"default":{xtype:'textfield',autoComplete:!1,textAlign:undefined},'bool,boolean':{xtype:'checkboxfield',bodyAign:undefined},date:{xtype:'datefield',textAlign:undefined},'float,number':{xtype:'numberfield',textAlign:undefined},'int,integer':{xtype:'numberfield',decimals:0,textAlign:undefined}}},ignore:!1,ignoreExport:!1,exportStyle:null,exportRenderer:!1,summary:null,summaryCell:null,summaryDataIndex:null,summaryFormatter:null,summaryRenderer:null,summaryType:null,exportSummaryRenderer:!1,minWidth:40,tpl:null,computedWidth:null,grouper:{lazy:!0,$value:null},groupHeaderTpl:null,sorter:{lazy:!0,$value:!0},scratchCell:{lazy:!0,$value:!0},menu:{lazy:!0,$value:{}},menuDisabled:null,hideShowMenuItem:{lazy:!0,$value:{xtype:'menucheckitem'}}},updateLocked:function(g){var f=this,d=f.getGrid(),c=d&&d.region,b,e,a;if(c){b=c.lockedGrid;e=b.getRegionKey(g);a=b.getRegion(e);if(a&&a!==c){b.handleChangeRegion(a,f)}}return g},toolDefaults:{ui:'gridcolumn',zone:'tail'},toolAnchorName:'titleWrapElement',dockTools:!1,scrollable:!1,docked:null,sortState:null,ariaSortStates:{ASC:'ascending',DESC:'descending'},inheritUi:!0,classCls:Ext.baseCSSPrefix+'gridcolumn',sortedCls:Ext.baseCSSPrefix+'sorted',secondarySortCls:Ext.baseCSSPrefix+'secondary-sort',auxSortCls:Ext.baseCSSPrefix+'aux-sort',resizableCls:Ext.baseCSSPrefix+'resizable',groupCls:Ext.baseCSSPrefix+'group',leafCls:Ext.baseCSSPrefix+'leaf',menuOpenCls:Ext.baseCSSPrefix+'menu-open',alignCls:{left:Ext.baseCSSPrefix+'align-left',center:Ext.baseCSSPrefix+'align-center',right:Ext.baseCSSPrefix+'align-right'},constructor:function(c){var a=this,b,d;if(c.columns||a.columns){b=a.isHeaderGroup=!0}else {a.isLeafHeader=!0}a.callParent([c]);a.addCls(b?a.groupCls:a.leafCls);d=a.getConfig('menu',!0);if(!d&&a.getMenuDisabled()===null){a.setMenuDisabled(!0)}},getTemplate:function(){var d=this,b=d.beforeTitleTemplate,c=d.afterTitleTemplate,a=[];if(b){a.push.apply(a,b)}a.push({reference:'titleElement',className:Ext.baseCSSPrefix+'title-el',children:[{reference:'textElement',className:Ext.baseCSSPrefix+'text-el',"data-qoverflow":!0},{reference:'sortIconElement',cls:Ext.baseCSSPrefix+'sort-icon-el '+Ext.baseCSSPrefix+'font-icon'}]});if(c){a.push.apply(a,c)}return [{reference:'headerElement',cls:Ext.baseCSSPrefix+'header-el',children:[{reference:'titleWrapElement',cls:Ext.baseCSSPrefix+'title-wrap-el',uiCls:'title-wrap-el',children:a},{reference:'resizerElement',cls:Ext.baseCSSPrefix+'resizer-el '+Ext.baseCSSPrefix+'item-no-tap'},{reference:'triggerElement',cls:Ext.baseCSSPrefix+'trigger-el '+Ext.baseCSSPrefix+'font-icon '+Ext.baseCSSPrefix+'item-no-tap'}]},{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el'}]},initialize:function(){var a=this;if(a.isLeafHeader&&!a.getWidth()&&a.getFlex()==null){a.setWidth(a.getDefaultWidth())}a.callParent();a.element.on({tap:'onColumnTap',longpress:'onColumnLongPress',scope:this});a.triggerElement.on({tap:'onTriggerTap',scope:this});a.resizerElement.on({tap:'onResizerTap',doubletap:'onResizerDoubleTap',scope:this});if(a.isHeaderGroup){a.on({add:'doVisibilityCheck',remove:'doVisibilityCheck',show:'onColumnShow',hide:'onColumnHide',move:'onColumnMove',delegate:'> column',scope:a});a.on({show:'onShow',scope:a})}},doDestroy:function(){var a=this;a.destroyMembers('editor','resizeListener','menu','hideShowMenuItem','childColumnsMenu');a.setScratchCell(null);a.mixins.toolable.doDestroy.call(a);a.callParent()},onAdded:function(b,a){this.visibleIndex=null;this.callParent([b,a])},ensureEditor:function(){var b=this,c=b.getEditable(),a=c!==!1&&b.getEditor(),d;if(!a&&c){d=b.getDefaultEditor();a=Ext.create(d);b.setEditor(a)}return a},getVisibleIndex:function(){var a=this.visibleIndex,b;if(a==null){if(this.isHeaderGroup){a=!1}else {b=this.getRootHeaderCt();if(b){a=b.indexOfLeaf(this)}}this.visibleIndex=a}return a},_columnScopeRe:/^column\./,_gridScopeRe:/^grid\./,applyMenu:function(a){var c=this,f=c.getGrid(),j=c._columnScopeRe,k=c._gridScopeRe,h,e,i,b,g,d;Ext.destroy(c.sortChangeListener);if(a&&!a.isMenu){if(Ext.isArray(a)){h=a;a=null}else if(!a.items){a={items:a}}if(!(e=f.getColumnMenu())){a=a?Ext.clone(a):{}}else {e=Ext.clone(e);a=a?Ext.merge(e,a):e}a.ownerCmp=c;a=Ext.create(a);c.sortChangeListener=a.on({groupchange:'onColumnMenuGroupChange',scope:c});g=a.getItems().items;for(i=g&&g.length;i-->0;){b=g[i];if(j.test(d=b.getHandler()||'')){b.setHandler(d.substr(7));b.scope=c}else if(k.test(d)){b.setHandler(d.substr(5));b.scope=f}else if(b.isMenuCheckItem){if(j.test(d=b.getCheckHandler()||'')){b.setCheckHandler(d.substr(7));b.scope=c}else if(k.test(d)){b.setCheckHandler(d.substr(5));b.scope=f}}}if(h){a.add(h)}f.fireEvent('columnmenucreated',f,c,a)}return a},updateMenu:function(b,a){if(a){a.destroy()}},beforeShowMenu:function(b){var d=this,a=d.getGrid().getStore(),h=a&&!!a.getGrouper(),e=b.getComponent('groupByThis'),c=b.getComponent('showInGroups'),g=b.getComponent('sortAsc'),f=b.getComponent('sortDesc');g.setDisabled(!a);f.setDisabled(!a);if(!a){e.setHidden(!0);c.setHidden(!0);return}b.suspendEvent('groupchange');if(g){d.syncMenuItemState(g)}if(f){d.syncMenuItemState(f)}if(e){e.setHidden(!(d.canGroup()&&!a.isTreeStore))}b.resumeEvent('groupchange');if(c){c.setHidden(a.isTreeStore);c.setChecked(h);c.setDisabled(!h)}},showMenu:function(){var a=this,b=!a.getMenuDisabled()&&a.getMenu(),d=a.menuOpenCls,c;if(b){c=a.getGrid();if(a.beforeShowMenu(b)!==!1&&c.beforeShowColumnMenu(a,b)!==!1){b.showBy(a.triggerElement);a.addCls(d);b.on({single:!0,hide:function(){if(!(a.destroyed||a.destroying)){a.removeCls(d)}if(!(c.destroyed||c.destroying)){c.onColumnMenuHide(a,b)}}})}}},getCells:function(){var c=[],d=this.getGrid().items.items,e=d.length,a,b;for(a=0;a<e;++a){b=d[a];if(b.isGridRow){c.push(b.getCellByColumn(this))}}return c},getColumnForField:function(a){if(a===this.getDataIndex()){return this}return this.callParent([a])},isHideable:function(){var a=[];this.getRootHeaderCt().visitPreOrder('gridcolumn:not([hidden])',function(b){if(!b.getMenuDisabled()&&b.getConfig('menu',!0)){a.push(b)}});return a.length>1||a[0]!==this},applyTpl:function(a){return Ext.XTemplate.get(a)},applyAlign:function(a,b){if(a==null){a=this.isHeaderGroup?'center':'left'}return a},updateAlign:function(d,c){var a=this,b=a.alignCls;if(c){a.removeCls(b[c])}if(d){a.addCls(b[d])}a.syncToolableAlign()},updateMenuDisabled:function(a){if(this.triggerElement){this.triggerElement.setVisible(!a)}},onColumnTap:function(d){var a=this,g=a.getGrid(),f=g.getSelectable(),c=g.getStore(),i=c&&c.getSorters(!0),b=c&&a.pickSorter(),e=b?i.indexOf(b):-1,h=b&&(e!==-1||b===c.getGrouper());if(Ext.Component.from(d)!==a||d.getTarget('.'+Ext.baseCSSPrefix+'item-no-tap',a)){return}if(c&&a.isSortable()&&(!f||!f.getColumns())){if(b.isGrouper){b.toggle();c.group(b)}else if(e===0){a.toggleSortState()}else {if(h){c.sort(b,'prepend')}else {a.sort('ASC')}}}return a.fireEvent('tap',a,d)},onTriggerTap:function(a){this.fireEvent('triggertap',this,a)},onResizerTap:function(a){if(a.getPoint().isContainedBy(this.triggerElement.getRegion())){this.fireEvent('triggertap',this,a)}},onResizerDoubleTap:function(a){a.claimGesture();Ext.asap(this.autoSize,this)},onColumnLongPress:function(a){this.fireEvent('longpress',this,a)},onGroupByThis:function(){var a=this,e=a.getGrid(),b=a.getGrouper(),d=e.getStore(),c;if(!b){c=a.getDataIndex();if(c!=null){a.setGrouper({property:c});b=a.getGrouper()}}if(b){d.setGrouper(b)}},onColumnMenuGroupChange:function(c,a,b){if(a==='sortDir'){this.setSortDirection(b)}},getSortDirection:function(){var a=this.pickSorter();return a&&a.getDirection()},setSortDirection:function(b){var d=this,g=d.getGrid(),e=g.getStore(),a=d.pickSorter(),c=e.getSorters(!0),f=a&&(c.contains(a)||a.isGrouper);if(b){if(f){if(a.getDirection()!==b){a.setDirection(b);if(a.isGrouper){e.group(a)}else {c.beginUpdate();c.endUpdate()}}}else {return d.sort(b)}}else if(a){c.remove(a)}if(!e.getRemoteSort()){d.getRootHeaderCt().setSortState()}},syncMenuItemState:function(a){if(a){var c=this,d=c.isSortable(),f=c.getGrid().getStore(),b=c.pickSorter(),e=b&&(f.getSorters().contains(b)||b.isGrouper);a.setDisabled(!d);a.setChecked(d&&e&&b.getDirection()===a.getValue())}},onToggleShowInGroups:function(){var b=this.getGrid(),a=b.getStore();a.setGrouper(null)},updateResizable:function(){var a=this,b=a.getWidth()!=null,c=a.getFlex()!=null;a.toggleCls(a.resizableCls,!!(a.getResizable()&&(b||c||a.isLeafHeader)))},updateText:function(a){this.setHtml(a||'\xa0')},onResize:function(){if(!this.isHidden(!0)){this.updateResizable(this.getResizable());this.measureWidth();this.syncRowHeight()}},syncRowHeight:function(){var b=this.getGrid().allPartners||[this.getGrid()],a,d=b.length,c;for(a=0;a<d;++a){c=b[a];c.syncRowsToHeight(!0)}},getComputedWidth:function(){return this.isVisible(!0)?this._computedWidth:0},updateColumns:function(a){this.getItems();this.add(a)},measureWidth:function(){var a=this.el.measure('w');this.setComputedWidth(a);return a},updateComputedWidth:function(c,d){var a=this,b=!a.isConfiguring&&a.getRootHeaderCt();if(b){b.onColumnComputedWidthChange(a,c);a.fireEvent('columnresize',a,c,d)}},updateDataIndex:function(b){var a;if(!this.isConfiguring){a=this.pickSorter();if(a){this.setSorter(null)}}},applyGroupHeaderTpl:function(a){return Ext.XTemplate.get(a)},updateGroupHeaderTpl:function(b){var a=this.grouper;if(a){a.headerTpl=b}},isSortable:function(){var a=this;return a.isLeafHeader&&a.getSortable()&&(a.pickSorter()||a.getDataIndex())&&a.getRootHeaderCt().getSortable()&&a.getGrid().sortableColumns!==!1},applyEditor:function(a){if(a&&!a.isInstance){if(typeof (a)==='string'){a={xtype:a}}if(!a.xtype){a=Ext.apply({xtype:a.field?'celleditor':'textfield'},a)}return Ext.create(a)}return a},applyEditorDefaults:function(b){var e={},a,d,c;if(b){for(d in b){c=d.split(',');for(a=0;a<c.length;++a){e[c[a]]=b[d]}}}return e},applyDefaultEditor:function(b){var c=this,g=c.getDataIndex(),e='bodyAlign',f='textAlign',a,h,d,i;if(g){h=c.getGrid().store.getModel();d=h.getField(g);if(!b.isInstance){b=Ext.clone(b);if(!b.xtype){a=c.getEditorDefaults();a=Ext.clone((d&&a[d.type])||a.default);if(f in a&&a[f]===i){a[f]=c.getAlign()}else if(e in a&&a[e]===i){a[e]=c.getAlign()}Ext.applyIf(b,a)}}b._validationField=d}return b},updateEditor:function(a,b){if(b&&(!a||(a.isCellEditor&&a.getField()!==b))){b.destroy()}if(a){a.$column=this}},applyFormatter:function(d){var c=this,a=d,b;if(a){b=Ext.app.bind.Parser.fly(a);a=b.compileFormat();b.release();return function(b){return a(b,c.getScope()||c.resolveListenerScope())}}return a},applySummaryFormatter:function(d){var c=this,a=d,b;if(a){b=Ext.app.bind.Parser.fly(a);a=b.compileFormat();b.release();return function(b){return a(b,c.getScope()||c.resolveListenerScope())}}return a},applyGrouper:function(b){var c=this,a=b;if(a&&!a.isInstance){if(typeof a==='string'){a={groupFn:a}}else {a=Ext.apply({},a)}if(typeof a.groupFn==='string'){a=c.scopeReplacer(a,b,'groupFn','setGroupFn')}if(typeof a.sorterFn==='string'){a=c.scopeReplacer(a,b,'sorterFn','setSorterFn')}b=new Ext.util.Grouper(a)}if(b){b.owner=c.getGrid();b.headerTpl=c.getGroupHeaderTpl()}return b},updateGrouper:function(c,b){var a=this.getGrid().getStore();if(a&&b){if(b===a.getGrouper()){a.setGrouper(c)}}this.grouper=c},applySorter:function(b){var d=this,a=b,c;if(a&&!a.isInstance){if(a===!0){c=d.getSortParam();if(!c){return null}a={property:c,direction:'ASC'}}else {if(typeof a==='string'){a={sorterFn:a}}if(typeof a.sorterFn==='string'){a=d.scopeReplacer(a,b,'sorterFn','setSorterFn')}}b=new Ext.util.Sorter(a)}if(b){b.owner=d.getGrid()}return b},updateSorter:function(c,b){var d=this.getGrid().getStore(),a=d?d.getSorters():null,e;if(a){if(b&&(e=a.indexOf(b))>-1){if(c){a.splice(e,1,c)}else {a.remove(b)}}}this.sorter=c},pickSorter:function(){var a=this,c=a.getGrid().getStore(),b;if(c.isGrouped()&&c.getGroupField()===a.getDataIndex()){b=a.getGrouper()||c.getGrouper();a.sortState=b.getDirection()}else {b=a.getSorter()}return b},applyHideShowMenuItem:function(b,a){return Ext.updateWidget(a,b,this,'createHideShowMenuItem')},createHideShowMenuItem:function(a){return Ext.apply({text:this.getText(),checked:!this.getHidden(),column:this},a)},getHideShowMenuItem:function(g){var a=this,c=a.callParent(),e=a.items.items,h=e.length,f=[],b=a.childColumnsMenu,d;if(a.isHeaderGroup&&g!==!1){if(!b){c.setMenu({});a.childColumnsMenu=b=c.getMenu()}if(!b.items.length||a.rebuildChildColumnsMenu){for(d=0;d<h;d++){if(e[d].getHideable()){f.push(e[d].getHideShowMenuItem())}}b.removeAll(!1);b.add(f)}}c['set'+(c.getMenu()?'CheckChange':'')+'Disabled'](!a.isHideable());return c},getInnerHtmlElement:function(){return this.textElement},getSortParam:function(){return this.getDataIndex()},applyCell:function(a,b){if(b){a=Ext.apply(b,a)}return a},createCell:function(d){var b=this,c={row:d,ownerCmp:d||b,column:b,width:b.rendered?(b.getComputedWidth()||b.measureWidth()):b.getWidth(),minWidth:b.getMinWidth()},e=b.getAlign(),a;if(d&&d.isSummaryRow){a=b.getSummaryCell();if(!a){a=b.getCell();if(a.xtype==='widgetcell'){a=Ext.apply({},a);a.xtype='gridcell';delete a.widget}}}else {a=b.getCell()}if(e){c.align=e}if(d){c.hidden=b.isHidden(d.getGrid().getHeaderContainer());c.record=d.getRecord();if(!(c.ui=d.getDefaultCellUI())){delete c.ui}}if(typeof a==='string'){c.xtype=a}else {Ext.apply(c,a)}return c},applyScratchCell:function(a,c){var b=this;if(a){a=Ext.create(b.createCell());if(!a.printValue){Ext.destroy(a);a=b.createCell();a.xtype='gridcell';a=Ext.create(a)}a.addCls(b.floatingCls)}if(c){c.destroy()}return a},printValue:function(d){var c=this,b=c.getGrid().dataItems[0],a;if(b&&b.isGridRow){a=b.getCellByColumn(c)}a=(a&&a.printValue)?a:c.getScratchCell();return a.printValue(d)},autoSize:function(){var d=this,h=Math.max,m=new Ext.util.TextMetrics(),n=0,a=0,i=d.getCells(),p=d.getGrid(),g,j,k,e,f,b,c,q,o,l;if(!d.getResizable()){return}e=p.getStore();g=d.getDataIndex();if(e&&g){if(e.isVirtualStore){c=e.pageMap.pages}else {c=e.getData()&&e.getData().items}if(g&&Ext.isArray(c)){f=c.length;for(b=0;b<f;b++){j=m.getWidth(c[b].get(g));a=h(a,j)}}else if(Ext.isObject(c)){for(q in c){k=c[q].records;f=k&&k.length;for(b=0;b<f;b++){j=m.getWidth(k[b].get(g));a=h(a,j)}}}}o=d.textElement.dom.offsetWidth+d.titleElement.getPadding('lr');a=h(a,o);if(i.length){f=i.length;l=i[0].element;for(b=0;b<f;b++){a=h(a,i[b].element.getTextWidth())}if(Ext.supports.ScrollWidthInlinePaddingBug){n+=l.getPadding('r')}if(p.getColumnLines()){n+=l.getBorderWidth('lr')}a+=n}a=h(a+1,d.getMinWidth());d.setWidth(a);m.destroy()},privates:{directionSequence:{"null":"ASC","ASC":"DESC","DESC":null},applySummary:function(a){if(a){a=Ext.Factory.dataSummary(a)}return a},beginRefresh:function(a){var c=this,b=c.getGrid();a=a||{};a.column=c;a.grid=b;a.store=b.store;return a},canGroup:function(){return this.getGroupable()&&(this.getDataIndex()||this.getGrouper())},sort:function(d,g){var b=this,a=b.pickSorter(),f=b.getGrid(),c=f.getStore(),e=c.getSorters();if(!b.isSortable()){return}if(a.isGrouper){if(a.getDirection()!==d){a.toggle();c.group(a)}}else if(d){if(a){if(e.indexOf(a)!==0){a.setDirection(d)}}else {b.setSorter({property:b.getSortParam(),direction:'ASC'});a=b.getSorter()}c.sort(a,g||f.getMultiColumnSort()?'multi':'replace')}else {if(a){e.remove(a);if(!c.getRemoteSort()){b.getRootHeaderCt().setSortState()}}}},toggleSortState:function(){this.sort(this.directionSequence[this.sortState])},setSortState:function(c){var a=this,k=a.getGrid().getStore(),q=k.isGrouped()&&k.getGrouper(),n=a.sortState,b=null,d=a.sortedCls,m=a.secondarySortCls,o=a.auxSortCls,j=d+'-asc',i=d+'-desc',h=a.ariaEl.dom,g='',p,f,e=[m,o],l;if(c){if(typeof c==='string'){b=c}else {if(c===q){f=0}else {f=k.getSorters().indexOf(c)}b=c.getDirection();g=f===1?m:f>1?o:''}}p=b!==n;a.sortState=b;switch(b){case 'DESC':l=[d,i,g];e.push(j);break;case 'ASC':l=[d,j,g];e.push(i);break;default:e.push(d,j,i);break;}a.replaceCls(e,l);if(h){if(b){h.setAttribute('aria-sort',a.ariaSortStates[b])}else {h.removeAttribute('aria-sort')}}if(p){a.fireEvent('sort',a,b,n)}},getVisibleCount:function(){var b=this.getInnerItems(),d=b.length,c=0,a;for(a=0;a<d;++a){if(b[a].isHeaderGroup){c+=b[a].getVisibleCount()}else {c+=b[a].isHidden()?0:1}}return c},onShow:function(){var a;if(!this.getVisibleCount()){a=this.getComponent(0);if(a){a.show()}}},doVisibilityCheck:function(){var a=this,c=a.getInnerItems(),e=c.length,b,d;for(b=0;b<e;b++){d=c[b];if(!d.isHidden()){if(a.isHidden()){if(a.initialized){a.show()}else {a.setHidden(!1)}}return}}a.hide();a.rebuildChildColumnsMenu=!0;a.updateMenuDisabledState()},onColumnShow:function(){var a=this,b;if(a.getVisibleCount()>0){a.show();b=a.getHideShowMenuItem(!1);b.setChecked(!0);b.setCheckChangeDisabled(!1)}a.rebuildChildColumnsMenu=!0;a.updateMenuDisabledState()},onColumnHide:function(c){var a=this,b;if(a.getVisibleCount()===0){a.hide();b=a.getHideShowMenuItem(!1);b.setChecked(!1);b.setCheckChangeDisabled(!0)}a.rebuildChildColumnsMenu=!0;a.updateMenuDisabledState()},onColumnMove:function(a){this.rebuildChildColumnsMenu=!0},scopeReplacer:function(a,e,b,c){var f=this,d=a[b];if(typeof d==='string'){b=b||'sorterFn';c=c||'setSorterFn';if(e===a){a=Ext.apply({},a)}a[b]=function(){var g=f.resolveListenerScope(),h=g&&g[d],i=0;if(h){this[c](h.bind(g));i=h.apply(g,arguments)}return i}}return a}}});Ext.define('Ext.grid.filters.Column',{override:'Ext.grid.column.Column',config:{filter:null},createFilter:function(f){var b=this,a=b.getFilter(),e,c,d;if(a!==!1){if(!a||a===!0){e=!0;a={}}else if(typeof a==='string'){e=!0;a={type:a}}if(!a.type){if(!e){e=!0;a=Ext.clone(a)}if(!(a.type=b.defaultFilterType||b.columnFilterTypes[b.xtype])){d=b.getGrid().getStore();d=d&&d.getModel();c=b.getDataIndex();if(c&&d){c=d.getField(c);a.type=b.fieldFilterTypes[c&&c.type]}}if(!a.type){a=!1}}if(f&&a){if(!e){a=Ext.clone(a)}a=Ext.apply(a,f)}}return a},privates:{columnFilterTypes:{booleancolumn:'boolean',datecolumn:'date',numbercolumn:'number'},fieldFilterTypes:{auto:'string',bool:'boolean',date:'date','float':'number',number:'number','int':'number',integer:'number',string:'string'}}},function(){Ext.Factory.define('gridFilters',{defaultType:'string'})});Ext.define('Ext.grid.cell.Date',{extend:Ext.grid.cell.Text,xtype:'datecell',isDateCell:!0,config:{format:''},updateColumn:function(a,c){var b;this.callParent([a,c]);if(a&&a.isDateColumn){b=a.getFormat();if(b!==null){this.setFormat(b)}}},applyFormat:function(a){return a||Ext.Date.defaultFormat},updateFormat:function(a){if(!this.isConfiguring){this.writeValue()}},formatValue:function(a){return a?Ext.Date.format(a,this.getFormat()):''}});Ext.define('Ext.grid.column.Date',{extend:Ext.grid.column.Column,xtype:'datecolumn',isDateColumn:!0,config:{format:null,defaultEditor:{xtype:'datepickerfield'},cell:{xtype:'datecell'}}});Ext.define('Ext.grid.menu.Shared',{extend:Ext.menu.Item,config:{grid:null},doDestroy:function(){this.setGrid(null);this.callParent()},updateGrid:function(a,c){var b=this;if(c){c.removeSharedMenuItem(b)}b.grid=a;if(a){a.addSharedMenuItem(b)}},onBeforeShowColumnMenu:function(a){a.add(this)},onColumnMenuHide:function(a){if(!this.destroyed){a.remove(this,!1)}}});Ext.define('Ext.grid.menu.Columns',{extend:Ext.grid.menu.Shared,xtype:'gridcolumnsmenu',iconCls:Ext.baseCSSPrefix+'headermenu-columns-icon',text:'Columns',menu:{},updateMenu:function(b,c){var a=this;a.callParent([b,c]);Ext.destroy(a.menuListeners);if(b){a.menuListeners=b.on({checkchange:'onCheckItem',delegate:'menucheckitem',scope:a,destroyable:!0})}},onBeforeShowColumnMenu:function(h,g,f){var c=f.getHeaderContainer().items.items,e=[],i=c.length,d=this.getMenu(),a,b;this.callParent([h,g,f]);for(a=0;a<i;++a){b=c[a];if(b.getHideable()){e.push(b.getHideShowMenuItem())}}d.removeAll(!1);d.add(e)},onCheckItem:function(a,b){a.column.setHidden(!b)}});Ext.define('Ext.grid.menu.GroupByThis',{extend:Ext.menu.Item,xtype:'gridgroupbythismenuitem',iconCls:Ext.baseCSSPrefix+'headermenu-group-by-this',text:'Group by this field'});Ext.define('Ext.grid.menu.ShowInGroups',{extend:Ext.menu.CheckItem,xtype:'gridshowingroupsmenuitem',hideOnClick:!0,text:'Show in groups'});Ext.define('Ext.menu.RadioItem',{extend:Ext.menu.CheckItem,xtype:'menuradioitem',classCls:Ext.baseCSSPrefix+'menuradioitem',nameable:!0,shareableName:!0,ariaRole:'menuitemradio',config:{group:null,allowUncheck:null},privates:{onSpace:function(a){if(this.checkboxElement.dom.checked){a.preventDefault()}},updateGroup:function(a){this.name=a},onCheckboxChange:function(){var a=this.checkboxElement.dom,b=a.checked;if(b===this.getChecked()||this.getDisabled()){return}if(!b&&!this.getAllowUncheck()){a.checked=!0}else {this.callParent()}},onCheckChange:function(){var a=this,h=a.checkboxElement.dom,b=a.getParent(),d,c,f,g,e;a.getGroup();d=a.name;if(d&&b&&!b.updatingGroups){c={};if(h.checked){c[d]=a.getValue();b.setGroups(c)}else {f=b.lookupName(d);g=f&&f.length;for(e=0;e<g&&!f[e].checkboxElement.dom.checked;e++){}if(e===g){c[d]=null;b.setGroups(c)}}}a.callParent()}}});Ext.define('Ext.grid.menu.SortAsc',{extend:Ext.menu.RadioItem,xtype:'gridsortascmenuitem',iconCls:Ext.baseCSSPrefix+'headermenu-sort-asc',text:'Sort Ascending',value:'ASC',allowUncheck:!0,group:'grid-sorters'});Ext.define('Ext.grid.menu.SortDesc',{extend:Ext.menu.RadioItem,xtype:'gridsortdescmenuitem',iconCls:Ext.baseCSSPrefix+'headermenu-sort-desc',text:'Sort Descending',value:'DESC',allowUncheck:!0,group:'grid-sorters'});Ext.define('Ext.grid.selection.Cells',{extend:Ext.dataview.selection.Selection,alias:'selection.cells',isCells:!0,clone:function(){var a=this,b=new a.self(a.view);if(a.startCell){b.startCell=a.startCell.clone();b.endCell=a.endCell.clone()}return b},isSelected:function(a,c){var b;if(this.startCell){if(a.isGridLocation){c=a.columnIndex;a=a.recordIndex}b=this.getRowRange();if(a>=b[0]&&a<=b[1]){b=this.getColumnRange();return (c>=b[0]&&c<=b[1])}}return !1},eachRow:function(f,d){var b=this,c=b.getRowRange(),e=b.view.store,a;for(a=c[0];a<=c[1];a++){if(f.call(d||b,e.getAt(a))===!1){return}}},eachColumn:function(e,d){var b=this.getColumnRange(),c=this.view.getVisibleColumns(),a;for(a=b[0];a<=b[1];a++){if(e.call(d||this,c[a],a)===!1){return}}},eachCell:function(k,i){var c=this,h=c.view,j=h.store,g=c.getRowRange(),e=c.getColumnRange(),d,f,b,a;for(b=g[0];b<=g[1];b++){d=new Ext.grid.Location(h,j.getAt(b));for(a=e[0];a<=e[1];a++){f=d.cloneForColumn(a);if(k.call(i||c,f,a,b)===!1){return}}}},getFirstRowIndex:function(){return this.startCell?Math.min(this.startCell.recordIndex,this.endCell.recordIndex):0},getLastRowIndex:function(){return this.startCell?Math.max(this.startCell.recordIndex,this.endCell.recordIndex):-1},getFirstColumnIndex:function(){return this.startCell?Math.min(this.startCell.columnIndex,this.endCell.columnIndex):0},getLastColumnIndex:function(){return this.startCell?Math.max(this.startCell.columnIndex,this.endCell.columnIndex):-1},privates:{clear:function(d){var a=this,c=a.view,b;if(c.getVisibleColumns().length){a.eachCell(function(a){c.onCellDeselect(a);b=!0})}a.startCell=a.endCell=null;if(b&&!d){this.getSelectionModel().fireSelectionChange()}},setRangeStart:function(a){this.startCell=(this.endCell=a.clone()).clone();this.view.onCellSelect(a);this.fireCellSelection()},setRangeEnd:function(o){var e=this,d=e.view,p=d.store,i=d.renderInfo,n=d.getVisibleColumns().length-1,a,f,k,m,j,l,c,b,g,h;e.endCell=o.clone();a=e.getRange();f=e.lastRange||a;k=Math.max(Math.min(a[0][1],f[0][1]),i.indexTop);m=Math.min(Math.max(a[1][1],f[1][1]),i.indexBottom-1);j=Math.min(a[0][0],f[0][0]);l=Math.min(Math.max(a[1][0],f[1][0]),n);for(c=k;c<=m;c++){h=new Ext.grid.Location(d,p.getAt(c));for(b=j;b<=l;b++){g=h.cloneForColumn(b);if(c<a[0][1]||c>a[1][1]||b<a[0][0]||b>a[1][0]){d.onCellDeselect(g)}else {d.onCellSelect(g)}}}e.lastRange=a;e.fireCellSelection()},extendRange:function(b){var a=this,c=a.view,d;if(b[b.type]<0){d=new Ext.grid.Location(c,{record:a.getLastRowIndex(),column:a.getLastColumnIndex()});a.startCell=b.start.clone();a.setRangeEnd(d);c.getNavigationModel().setLocation({column:b.start.columnIndex,record:b.start.record})}else {a.startCell=new Ext.grid.Location(c,{record:a.getFirstRowIndex(),column:a.getFirstColumnIndex()});a.setRangeEnd(b.end);c.getNavigationModel().setLocation({column:b.end.columnIndex,record:b.end.record})}},reduceRange:function(a){var b=this,d=b.view,c;if(a.type==='rows'){c=new Ext.grid.Location(d,{record:a.end.recordIndex-1,column:a.end.columnIndex});b.setRangeEnd(c);d.getNavigationModel().setLocation({column:a.end.columnIndex,record:b.view.getStore().getAt(a.end.recordIndex-1)})}else {c=new Ext.grid.Location(d,{record:a.end.recordIndex,column:a.end.columnIndex});b.setRangeEnd(c);d.getNavigationModel().setLocation({column:a.end.columnIndex,record:b.view.getStore().getAt(a.end.recordIndex)})}},getRange:function(){return [[this.getFirstColumnIndex(),this.getFirstRowIndex()],[this.getLastColumnIndex(),this.getLastRowIndex()]]},getRangeSize:function(){return this.getCount()},getRecords:function(){var a=this.getRowRange();return this.getSelectionModel().getStore().getRange(a[0],a[1])},getCount:function(){var a=this.getRange();return (a[1][0]-a[0][0]+1)*(a[1][1]-a[0][1]+1)},fireCellSelection:function(){var b=this,c=b.getSelectionModel(),a=c.getView();a.fireEvent('cellselection',a,b.getRange())},selectAll:function(){var b=this,a=b.view,c=a.getVisibleColumns();b.clear();b.setRangeStart(new Ext.grid.Location(a,{record:0,column:0}));b.setRangeEnd(new Ext.grid.Location(a,{record:a.store.last(),column:c[c.length-1]}))},isAllSelected:function(){var b=this.startCell,a=this.endCell;if(b){if(!b.columnIndex&&!b.recordIndex){return a.columnIndex===a.view.getVisibleColumns().length-1&&a.recordIndex===a.view.store.getCount()-1}}return !1},getColumnRange:function(){return [this.getFirstColumnIndex(),this.getLastColumnIndex()]},getLastSelected:function(){return this.view.getStore().getAt(this.endCell.recordIndex)},getRowRange:function(){return [this.getFirstRowIndex(),this.getLastRowIndex()]},onSelectionFinish:function(){var a=this,b=a.view;if(a.getCount()){a.getSelectionModel().onSelectionFinish(a,new Ext.grid.Location(b,{record:a.getFirstRowIndex(),column:a.getFirstColumnIndex()}),new Ext.grid.Location(b,{record:a.getLastRowIndex(),column:a.getLastColumnIndex()}))}else {a.getSelectionModel().onSelectionFinish(a)}}}});Ext.define('Ext.grid.selection.Columns',{extend:Ext.dataview.selection.Selection,alias:'selection.columns',isColumns:!0,clone:function(){var a=this,c=new a.self(a.view),b=a.selectedColumns;if(b){c.selectedColumns=Ext.Array.slice(b)}return c},eachRow:function(c,b){var a=this.selectedColumns;if(a&&a.length){this.view.getStore().each(c,b||this)}},eachColumn:function(f,e){var d=this,b=d.selectedColumns,c,a;if(b){c=b.length;for(a=0;a<c;a++){if(f.call(e||d,b[a],a)===!1){return !1}}}},eachCell:function(h,g){var d=this,e=d.view,c=d.selectedColumns,a=new Ext.grid.Location(e),f,b;if(c){f=c.length;e.getStore().each(function(e){a=a.clone({record:e});for(b=0;b<f;b++){a=a.clone({column:c[b]});if(h.call(g||d,a,a.columnIndex,a.recordIndex)===!1){return !1}}})}},isSelected:function(b){var a=this.selectedColumns;if(b&&b.isGridColumn&&a&&a.length){return Ext.Array.contains(a,b)}return !1},getCount:function(){var a=this.selectedColumns;return a?a.length:0},getColumns:function(){return this.selectedColumns||[]},privates:{add:function(c,d){var a=this,b;b=a.getSelectionModel();Ext.Array.include((a.selectedColumns||(a.selectedColumns=[])),c);a.refreshColumns(c);b.updateHeaderState();if(!d){b.fireSelectionChange();a.fireColumnSelection()}},clear:function(d){var a=this,c=a.getSelectionModel(),b=a.selectedColumns;if(b&&b.length){a.selectedColumns=[];a.refreshColumns.apply(a,b);c.updateHeaderState();if(!d){c.fireSelectionChange();a.fireColumnSelection()}}},setRangeStart:function(b){var a=this,c=a.getColumns();c.push(b);a.clear(!0);a.startColumn=b;a.add(b)},setRangeEnd:function(h){var a=this,f=a.getColumns(),e=this.view.ownerGrid.getHeaderContainer(),g=e.getVisibleColumns(),c=e.indexOfLeaf(a.startColumn),d=e.indexOfLeaf(h),b;if(d<c){b=c;c=d;d=b}a.selectedColumns=[];for(b=c;b<=d;b++){a.selectedColumns.push(g[b]);f.push(g[b])}a.refreshColumns.apply(a,f);a.fireColumnSelection()},isAllSelected:function(){var b=this.selectedColumns,a;if(!b){return !1}a=this.view.getHeaderContainer();return b.length===a.getVisibleColumns().length},refreshColumns:function(k){var i=this,b=i.view,j=b.store,f=b.renderInfo,e=arguments,h=e.length,g=[],c,d,a;if(b.rendered){for(a=0;a<h;a++){g[a]=i.isSelected(e[a])}for(d=f.indexTop;d<f.indexBottom;d++){c=new Ext.grid.Location(b,j.getAt(d));for(a=0;a<h;a++){c=c.cloneForColumn(e[a]);if(g[a]){b.onCellSelect(c)}else {b.onCellDeselect(c)}}}}},remove:function(b,d){var a=this,c=a.getSelectionModel();if(a.selectedColumns){Ext.Array.remove(a.selectedColumns,b);if(b.getGrid()&&b.isVisible()){a.refreshColumns(b);c.updateHeaderState();if(!d){c.fireSelectionChange();a.fireColumnSelection()}}}},fireColumnSelection:function(){var b=this,c=b.getSelectionModel(),a=c.getView();a.fireEvent('columnselection',a,b.selectedColumns)},selectAll:function(){var a=this;a.clear();a.selectedColumns=a.getSelectionModel().lastContiguousColumnRange=a.view.getHeaderContainer().getVisibleColumns();a.refreshColumns.apply(a,a.selectedColumns)},extendRange:function(b){var c=this,d=c.view.getHeaderContainer().getVisibleColumns(),a;for(a=b.start.columnIndex;a<=b.end.columnIndex;a++){c.add(d[a])}},reduceRange:function(c){var b=this,g=b.view.getHeaderContainer().getVisibleColumns(),f=c.start.columnIndex,d=c.end.columnIndex,e=Math.abs(f-d)+1,h=b.selectedColumns.length-e,a;for(a=h;a>0;a--){b.remove(g[d+a])}},onSelectionFinish:function(){var a=this,b=a.getContiguousSelection(),c,d;if(b){c=new Ext.grid.Location(a.view,{record:0,column:b[0]});d=new Ext.grid.Location(a.view,{record:a.view.getStore().getCount()-1,column:b[1]});a.getSelectionModel().onSelectionFinish(a,c,d)}else {a.getSelectionModel().onSelectionFinish(a)}},getContiguousSelection:function(){var a=Ext.Array.sort(this.getColumns(),function(a,b){var e=a.getGrid().ownerGrid,c=e.getHeaderContainer().indexOfLeaf(a),f=b.getGrid().ownerGrid,d=f.getHeaderContainer().indexOfLeaf(b);return c-d}),c=a.length,b;if(c){for(b=1;b<c;b++){if(a[b].getVisibleIndex()!==a[b-1].getVisibleIndex()+1){return !1}}return [a[0],a[c-1]]}}}});Ext.define('Ext.grid.selection.Replicator',{extend:Ext.plugin.Abstract,alias:'plugin.selectionreplicator',init:function(a){this.gridListeners=a.on({beforeselectionextend:this.onBeforeSelectionExtend,scope:this,destroyable:!0})},onBeforeSelectionExtend:function(c,a,b){var d=this.columns=[];a.eachColumn(function(e){d.push(e)});return this.replicateSelection(c,a,b)},replicateSelection:function(w,r,e){var l=this,j,i,a,f,k,o,p,g,m,c,h,d,q,v,n,s,b,t,u;if(e.columns||r.isColumns){return}j=l.columns;g=r.getFirstRowIndex();m=r.getLastRowIndex();s=m-g+1;b=[];i=j.length;d=j[0].getGrid().getStore();if(s===1){k=l.getColumnValues(r.view.getStore().getAt(g))}else {k=new Array(i);if(e.rows<0){b=[d.getAt(g+1),d.getAt(g)]}else {b=[d.getAt(m-1),d.getAt(m)]}b[0]=l.getColumnValues(b[0]);b[1]=l.getColumnValues(b[1]);for(a=0;a<i;a++){t=b[1][a];u=b[0][a];if(!isNaN(t)&&!isNaN(u)){k[a]=Number(t)-Number(u)}}}if(e.rows<0){o=e.end.recordIndex;p=e.start.recordIndex-1;h=-1}else {o=e.start.recordIndex;p=e.end.recordIndex+1;h=1}if(s===1){for(c=o;c!==p;c+=h){q=d.getAt(c);for(a=0;a<i;a++){f=j[a];if(f.getDataIndex()){q.set(f.getDataIndex(),k[a])}}}}else {for(c=o;c!==p;c+=h){q=d.getAt(c);v=l.getColumnValues(d.getAt(c-h));for(a=0;a<i;a++){f=j[a];if(f.getDataIndex()){n=v[a];if(!isNaN(n)){q.set(f.getDataIndex(),Ext.coerce(Number(n)+k[a],n))}}}}}},getColumnValues:function(e){var b=this.columns,f=b.length,a,c,d=new Array(b.length);for(a=0;a<f;a++){c=b[a];if(c.getDataIndex()){d[a]=e.get(c.getDataIndex())}}return d},destroy:function(){this.gridListeners=Ext.destroy(this.gridListeners);this.callParent()}});Ext.define('Ext.grid.selection.SelectionExtender',{maskBox:{},constructor:function(b){var a=this,c=b.view,d={dragstart:'onDragStart',dragend:'onDragEnd',scope:a};Ext.apply(a,b);a.el=c.outerCt;a.handle=c.bodyElement.createChild({cls:Ext.baseCSSPrefix+'selmodel-extender-drag-handle'}).hide();if(Ext.supports.Touch){d.longpress='onHandleLongpress'}a.handle.on(d);a.mask=c.outerCt.createChild({cls:Ext.baseCSSPrefix+'selmodel-extender-mask'}).hide();a.scrollListener=c.getScrollable().on({scroll:a.onViewScroll,scope:a,destroyable:!0});a.viewListener=c.on({columnresize:'alignHandle',columnhide:'alignHandle',columnshow:'alignHandle',columnmove:'alignHandle',scope:a,destroyable:!0});if(b&&b.axes){a.setAxes(b.axes)}},setAxes:function(a){var b=this;b.axes=a;b.extendX=!!(a&1);b.extendY=!!(a&2)},setHandle:function(c,b){var a=this;a.firstPos=c;a.endPos=b;if(c&&b&&b.getCell(!0)){a.curPos=b;a.alignHandle()}else {a.disable()}},alignHandle:function(){var b=this,a=b.endPos;if(b.firstPos&&a&&b.view.isRecordRendered(a.recordIndex)){a=a.clone({record:a.record,column:a.column}).getCell();if(a&&a.isVisible()){b.enable()}else {b.disable()}b.handle.alignTo(a,'c-br')}else {b.disable()}},enable:function(){this.handle.show()},disable:function(){this.handle.hide();this.mask.hide()},onHandleLongpress:function(a){a.startDrag()},onDragStart:function(a){if(a.pointerType!=='touch'||a.longpress){a.claimGesture();this.handle.on('drag',this.onDrag,this)}},onDrag:function(d){var a=this,k,l,g,f,j,e,c,i,h,b;if(d.changedTouches){f=d.changedTouches[0];if(f&&!Ext.fly(f.target).getRegion().contains(f.point)){j=Ext.event.Event.resolveTextNode(Ext.Element.fromPagePoint(f.pageX,f.pageY,!0));if(j){d.target=j}}}k=d.target;l=a.view;g=l.getScrollable().getElement().getClientRegion();e=new Ext.grid.Location(l,k);c=a.scrollTask||(a.scrollTask=Ext.util.TaskManager.newTask({run:a.doAutoScroll,scope:a,interval:10}));i=25*(window.devicePixelRatio||1);h=3*(window.devicePixelRatio||1);b=a.scrollBy||(a.scrollBy=[]);d.claimGesture();a.lastXY=[d.pageX,d.pageY];if(!a.el.contains(k)){b[0]=b[1]=0;return c.stop()}if(a.lastXY[1]>g.bottom-i){if(a.extendY){b[1]=h;c.start()}}else if(a.lastXY[1]<g.top+i){if(a.extendY){b[1]=-h;c.start()}}else if(a.lastXY[0]>g.right-i){if(a.extendX){b[0]=h;c.start()}}else if(a.lastXY[0]<g.left+i){if(a.extendX){b[0]=-h;c.start()}}else {b[0]=b[1]=0;c.stop()}if(e&&e.getCell()&&!e.equals(a.lastOverCell)){a.lastOverCell=e;a.syncMaskOnCell(e)}},doAutoScroll:function(){var b=this,d=b.view,c=d.getScrollable(),a;c.scrollBy.apply(c,b.scrollBy);a=document.elementFromPoint.apply(document,b.lastXY);if(a){a=new Ext.grid.Location(b.view,a);if(a&&a.getCell()&&!a.equals(b.lastOverCell)){b.lastOverCell=a;b.syncMaskOnCell(a)}}},onDragEnd:function(d){var a=this,b=a.view.getSelectable(),c=b&&b.getSelection();a.handle.un('drag',a.onDrag,a);if(a.scrollTask){a.scrollTask.stop()}if(a.extensionDescriptor){a.disable();if((c.isColumns&&d.direction.y<0)||c.isRows&&d.direction.x<0){a.alignHandle();return}b.extendSelection(a.extensionDescriptor)}},onViewScroll:function(){var a=this;if((a.active&&a.lastOverCell)||a.firstPos){a.endPos=a.endPos.clone({record:a.endPos.recordIndex});a.alignHandle()}},stopEvent:function(a){a.stopEvent()},syncMaskOnCell:function(e){var a=this,h=a.view,i=h.renderInfo,c=a.maskBox,l=a.firstPos.recordIndex,j=a.endPos.recordIndex,f=a.firstPos.clone({record:l}),g=a.endPos.clone({record:j}),m=!a.allowReduceSelection,b,k,n,p,o,d;k=a.firstPos.clone({record:Ext.Number.constrain(Math.min(l,j),i.indexTop,i.indexBottom-1),column:a.firstPos.column});p=a.endPos.clone({record:Ext.Number.constrain(Math.max(k.recordIndex,j),i.indexTop,i.indexBottom-1)});n=k.getCell();o=p.getCell();a.selectionRegion=b=n.getRegion().union(o.getRegion());a.curPos=d=e;e=e.getCell('el');a.mask.dom.style.borderTopWidth=a.mask.dom.style.borderRightWidth=a.mask.dom.style.borderBottomWidth=a.mask.dom.style.borderLeftWidth='';if(d.recordIndex<a.firstPos.recordIndex&&a.extendY){a.extensionDescriptor={type:'rows',start:f.clone({record:d.recordIndex}),end:g.clone({record:a.firstPos.recordIndex-1}),rows:d.recordIndex-a.firstPos.recordIndex,mousePosition:a.lastXY};a.mask.dom.style.borderBottomWidth='0';c.x=b.x;c.y=e.getY();c.width=b.right-b.left;c.height=b.top-e.getY()}else if(d.recordIndex>a.endPos.recordIndex&&a.extendY){a.extensionDescriptor={type:'rows',start:f.clone({record:a.endPos.recordIndex+1}),end:g.clone({record:d.recordIndex}),rows:d.recordIndex-a.endPos.recordIndex,mousePosition:a.lastXY};a.mask.dom.style.borderTopWidth='0';c.x=b.x;c.y=b.bottom;c.width=b.right-b.left;c.height=e.getRegion().bottom-b.bottom}else if(!m&&d.recordIndex<a.endPos.recordIndex&&a.extendY&&d.columnIndex===a.endPos.columnIndex){a.extensionDescriptor={type:'rows',start:f.clone({record:a.endPos.recordIndex}),end:g.clone({record:d.recordIndex+1}),rows:-1,mousePosition:a.lastXY,reduce:!0};a.mask.dom.style.borderTopWidth='0';c.x=b.x;c.y=b.top;c.width=b.right-b.left;c.height=e.getRegion().bottom-b.top}else {if(d.columnIndex<a.firstPos.columnIndex&&a.extendX){a.extensionDescriptor={type:'columns',start:f.clone({column:d.columnIndex}),end:g.clone({column:a.firstPos.columnIndex-1}),columns:d.columnIndex-a.firstPos.columnIndex,mousePosition:a.lastXY};a.mask.dom.style.borderRightWidth='0';c.x=e.getX();c.y=b.top;c.width=b.left-e.getX();c.height=b.bottom-b.top}else if(d.columnIndex>a.endPos.columnIndex&&a.extendX){a.extensionDescriptor={type:'columns',start:f.clone({column:a.endPos.columnIndex+1}),end:g.clone({column:d.columnIndex}),columns:d.columnIndex-a.endPos.columnIndex,mousePosition:a.lastXY};a.mask.dom.style.borderLeftWidth='0';c.x=b.right;c.y=b.top;c.width=e.getRegion().right-b.right;c.height=b.bottom-b.top}else if(!m&&d.columnIndex<a.endPos.columnIndex&&a.extendX){a.extensionDescriptor={type:'columns',start:f.clone({column:a.firstPos.columnIndex}),end:g.clone({column:d.columnIndex}),columns:-1,mousePosition:a.lastXY,reduce:!0};a.mask.dom.style.borderLeftWidth='0';c.x=b.left;c.y=b.top;c.width=e.getRegion().right-b.left;c.height=b.bottom-b.top}else {a.extensionDescriptor=null}}if(h.hasListeners.selectionextenderdrag){h.fireEvent('selectionextenderdrag',h,h.getSelectable().getSelection(),a.extensionDescriptor)}if(a.extensionDescriptor){a.mask.show();a.mask.setBox(c)}else {a.mask.hide()}},destroy:function(){this.destroyMembers('viewListener','scrollListener','mask','handle')}});Ext.define('Ext.grid.cell.Number',{extend:Ext.grid.cell.Text,xtype:'numbercell',isNumberCell:!0,config:{format:'0,000.00'},classCls:Ext.baseCSSPrefix+'numbercell',zeroValue:null,updateColumn:function(a,c){var b;this.callParent([a,c]);if(a&&a.isNumberColumn){b=a.getFormat();if(b!==null){this.setFormat(b)}}},updateFormat:function(a){if(!this.isConfiguring){this.writeValue()}},formatValue:function(a){var c=a||a===0,b;if(a===0&&(b=this.getZeroValue())!==null){a=b||''}else {a=c?Ext.util.Format.number(a,this.getFormat()):''}return a}});Ext.define('Ext.grid.cell.Check',{extend:Ext.grid.cell.Base,xtype:'checkcell',config:{disabled:null},innerTemplate:[{reference:'checkboxElement',tabIndex:-1,cls:Ext.baseCSSPrefix+'checkbox-el '+Ext.baseCSSPrefix+'font-icon'}],classCls:Ext.baseCSSPrefix+'checkcell',disabledCls:Ext.baseCSSPrefix+'disabled',checkedCls:Ext.baseCSSPrefix+'checked',constructor:function(a){this.callParent([a]);this.checkboxElement.on('tap','onTap',this)},applyValue:function(a){return !!a},updateValue:function(a,d){var b=this,c=b.getColumn();b.el.toggleCls(b.checkedCls,!!a);if(a){c.updateHeaderState()}else {c.setHeaderStatus(a)}},updateColumn:function(a,b){this.callParent([a,b]);if(a){this.setDisabled(a.getDisabled())}},applyDisabled:function(a){return Boolean(a)},updateDisabled:function(a){this.element.toggleCls(this.disabledCls,a)},disable:function(){this.setDisabled(!0)},enable:function(){this.setDisabled(!1)},onTap:function(e){var c=this,a=c.getRecord(),b=c.getColumn(),f=b.up('grid').getStore().indexOf(a),d;if(a){d=!b.isRecordChecked(a);if(c.getDisabled()){return}if(b.fireEvent('beforecheckchange',c,f,d,a,e)!==!1){if(c.getColumn().getStopSelection()){e.stopSelection=!0}if(a){b.setRecordChecked(a,d,e)}if(b.hasListeners.checkchange){b.fireEvent('checkchange',c,f,d,a,e)}}}}});Ext.define('Ext.grid.column.Check',{extend:Ext.grid.column.Column,isCheckColumn:!0,xtype:'checkcolumn',cachedConfig:{headerCheckboxAlign:'bottom'},config:{stopSelection:!0,headerCheckbox:!1},align:'center',classCls:Ext.baseCSSPrefix+'checkcolumn',noHeaderCheckboxCls:Ext.baseCSSPrefix+'no-header-checkbox',checkedCls:Ext.baseCSSPrefix+'checked',hasTextCls:Ext.baseCSSPrefix+'has-text',checkboxAlignCls:{top:Ext.baseCSSPrefix+'checkbox-align-top',right:Ext.baseCSSPrefix+'checkbox-align-right',bottom:Ext.baseCSSPrefix+'checkbox-align-bottom',left:Ext.baseCSSPrefix+'checkbox-align-left'},text:'',ignoreExport:!0,cell:{xtype:'checkcell'},afterTitleTemplate:[{reference:'checkboxElement',classList:[Ext.baseCSSPrefix+'checkbox-el',Ext.baseCSSPrefix+'font-icon']}],onColumnTap:function(b){var a=this;if((b.target===a.checkboxElement.dom)&&!a.getDisabled()){a.toggleAll(b)}a.callParent([b])},toggleAll:function(c){var a=this,b=!a.allChecked;if(a.fireEvent('beforeheadercheckchange',a,b,c)!==!1){a.doToggleAll(b);a.setHeaderStatus(b);a.fireEvent('headercheckchange',a,b,c)}},doToggleAll:function(b){var a=this,c=a.getGrid().getStore();c.each(function(c){a.setRecordChecked(c,b)})},setRecordChecked:function(b,a,c){a=!!a;this.doSetRecordChecked(b,a);if(a){this.updateHeaderState()}else {this.setHeaderStatus(a)}},doSetRecordChecked:function(c,b){var a=this.getDataIndex();if(c.get(a)!==b){c.set(a,b)}},areAllChecked:function(){var e=this,a=e.getGrid().getStore(),c,d,b;if(a&&!a.isVirtualStore&&a.getCount()>0){c=a.getData().items;d=c.length;for(b=0;b<d;++b){if(!e.isRecordChecked(c[b])){return !1}}return !0}},isRecordChecked:function(a){return a.get(this.getDataIndex())},updateHeaderState:function(){if(!this.destroyed&&(this.getHeaderCheckbox()!==!1)){this.setHeaderStatus(this.areAllChecked())}},setHeaderStatus:function(b){var a=this;if(a.allChecked!==b){a.allChecked=b;a.el.toggleCls(a.checkedCls,b)}},updateDisabled:function(d,g){var c=this,e=c.getGrid(),b,f,a;c.callParent([d,g]);if(e){b=e.getViewItems();f=b.length;for(a=0;a<f;a++){b[a].getCellByColumn(c).setDisabled(d)}}},updateHeaderCheckboxAlign:function(d,c){var a=this,b=a.checkboxAlignCls;if(c){a.removeCls(b[c])}if(d){a.addCls(b[d])}},updateHeaderCheckbox:function(b){var a=this,c=a.getGrid();a.el.toggleCls(a.noHeaderCheckboxCls,!b);a.setSortable(a.getSortable()&&!b);if(c){a.updateHeaderState()}},updateText:function(a){this.setHtml(a);this.toggleCls(this.hasTextCls,!!a)}});Ext.define('Ext.grid.column.Selection',{extend:Ext.grid.column.Check,xtype:'selectioncolumn',classCls:Ext.baseCSSPrefix+'selectioncolumn',cell:{cls:Ext.baseCSSPrefix+'selection-cell'},weight:-900,menu:null,sortable:!1,draggable:!1,resizable:!1,hideable:!1,ignore:!0,stopSelection:!1,updateHeaderState:function(){if(!this.isConfiguring){this.getGrid().getSelectable().updateHeaderState()}},toggleAll:function(a){this.getGrid().getSelectable().toggleAll(this,a)},setRecordChecked:function(b,c,d){var a=this.getGrid().getSelectable();if(c){a.select(b,a.getMode()!=='single')}else {a.deselect(b)}},isRecordChecked:function(a){return this.getGrid().getSelectable().isRowSelected(a)}});Ext.define('Ext.grid.column.Number',{extend:Ext.grid.column.Column,xtype:'numbercolumn',isNumberColumn:!0,config:{format:null},cell:{xtype:'numbercell'},defaultEditor:{xtype:'numberfield'}});Ext.define('Ext.grid.cell.RowNumberer',{extend:Ext.grid.cell.Number,xtype:'rownumberercell',classCls:Ext.baseCSSPrefix+'rownumberercell',format:'0,000',refreshValue:function(b){var c=b.row,a;if(b.summary){a='\xa0'}else {a=c?c.$datasetIndex+1:null}return a}});Ext.define('Ext.grid.column.RowNumberer',{extend:Ext.grid.column.Number,xtype:'rownumberer',isRowNumberer:!0,cell:{xtype:'rownumberercell'},menu:null,align:'right',hideable:!1,ignore:!0,ignoreExport:!0,sortable:!1,text:'',width:'auto',minWidth:null,onAdded:function(d,c){var a=this,b;a.callParent([d,c]);a.checkWidth();b=a.getGrid();a.gridListeners=b.on({storechange:'attachStoreListeners',scope:a,destroyable:!0});a.attachStoreListeners(b.getStore())},onRemoved:function(a){Ext.destroy(this.gridListeners,this.storeListeners);this.callParent([a])},privates:{attachStoreListeners:function(a){Ext.destroy(this.storeListeners);if(a){this.storeListeners=a.on({datachanged:'checkWidth',totalcountchange:'checkWidth',scope:this,destroyable:!0})}},getCharWidth:function(){var b=this,c=b._charWidth,f,a,d,e,g;if(!c){f='0000000000';a=b.getScratchCell();d=b.getCell().ui;if(d){a.addUi(d)}e=b.getGrid().getUi();if(e){a.addUi(e)}document.body.appendChild(a.el.dom);g=Ext.util.TextMetrics.measure(a.bodyElement,f).width;document.body.removeChild(a.el.dom);b._charWidth=c=g/f.length}return c},checkWidth:function(){var a=this;if(document.fonts){document.fonts.ready.then(function(){if(!a.destroyed){a.doCheckWidth()}})}else {a.doCheckWidth()}},doCheckWidth:function(){var a=this,b=a.getGrid().getStore(),c=1,d=a.getCharWidth();if(b&&b.getTotalCount()){c=a.getScratchCell().printValue(b.getTotalCount()).length}a.textElement.setStyle('min-width',Math.ceil(c*d)+'px')}}});Ext.define('Ext.grid.selection.Model',{extend:Ext.dataview.selection.Model,alias:'selmodel.grid',isGridSelectionModel:!0,config:{columns:{$value:!1,lazy:!0},cells:{$value:!1,lazy:!0},rows:{$value:!0,lazy:!0},drag:!1,extensible:{$value:!1,lazy:!0},reducible:!0,checkbox:!1,headerCheckbox:!0,checkboxDefaults:{xtype:'selectioncolumn',text:null,width:30},showNumbererColumn:!1},checkboxSelect:!1,checkboxColumnIndex:0,mode:'multi',columnSelectCls:Ext.baseCSSPrefix+'selmodel-column-select',rowNumbererHeaderCls:Ext.baseCSSPrefix+'selmodel-row-numberer-hd',updateView:function(b,e){var a=this,c=a.numbererColumn=b.getRowNumbers(),d=a.getCheckbox();a.callParent([b,e]);if(e){a.navigationModel=null;Ext.destroy(a.viewListeners)}if(b){if(c){c.setCell({cls:a.rowNumbererCellCls});c.setCls(a.rowNumbererHeaderCls)}if(d){b.registerColumn(d)}a.viewListeners=b.on(a.getViewListeners())}},onViewCreated:function(a){if(this.getColumns()){a.addCls(this.columnSelectCls)}this.updateHeaderState()},updateDrag:function(c){var b=this.getView(),a={dragstart:'onViewDragStart',delegate:b.eventDelegate,scope:this};if(Ext.supports.Touch){a.longpress='onViewLongpress'}b.innerCt[c?'on':'un'](a)},getSelection:function(a,d){var c,b;if(a==='rows'||a==='records'){a=this.getStore().isVirtualStore?'rows':'records'}b=this.callParent();if(a){a=a.toLowerCase();if(!b||b.type!==a){c={type:a};if(a==='records'){c.selected=this.getSelected()}this.setSelection(c);b=this.callParent()}else if(d){b.clear(!0)}}return b},createCheckboxColumn:function(a){var b=this;return Ext.apply({headerCheckbox:b.getHeaderCheckbox()!==!1},a)},onHeaderTap:function(e,b,c){var a=this,d=a.getSelection(),g=!1,h,i,f;if(b===this.numbererColumn){a.toggleAll(b,c)}else if(a.getColumns()&&b!==a.getCheckbox()){if(c.shiftKey&&d&&d.lastColumnSelected){if(!c.ctrlKey){d.clear()}e=a.getView().getHeaderContainer();i=e.getColumns();h=Ext.Array.sort([e.indexOfLeaf(d.lastColumnSelected),e.indexOf(b)],Ext.Array.numericSortFn);for(f=h[0];f<=h[1];f++){a.selectColumn(i[f],!0)}}else {g=a.isColumnSelected(b);if(!c.ctrlKey){d.clear()}else if(g){a.deselectColumn(b);a.getSelection().lastColumnSelected=null}if(!g||!c.ctrlKey&&c.pointerType!=='touch'){a.selectColumn(b,c.ctrlKey);a.getSelection().lastColumnSelected=b}a.updateSelectionExtender()}}},toggleAll:function(d,c){var a=this,b=a.getSelection();c.stopEvent();if(!b||!b.isAllSelected()){a.selectAll()}else {a.deselectAll()}a.updateHeaderState();a.lastColumnSelected=null},selectByLocation:function(b){var a=this,d=b.record,c=b.column;if(a.getCells()){a.selectCells(b,b)}else if(a.getRows()&&d){this.select(d)}else if(a.getColumns()&&c){a.selectColumn(c)}},updateHeaderState:function(){var e=this,d=e.getStore(),a=e.getSelection(),c=!1,f=e.getCheckbox(),b;if(d&&a&&a.isRows){b=d.getCount();if(d.isBufferedStore){c=a.allSelected}else {c=b>0&&(b===a.getCount())}}if(f){f.setHeaderStatus(c)}},onColumnUpdate:function(b,c){var d=this,a=d.getCheckbox();if(a){if(b){b.remove(a,!1)}c.push(a)}},select:function(a,g,f){var e=this,i=e.getSelection('records'),h=e.getStore(),d,b,c;if(!Ext.isArray(a)){a=[a]}d=a.length;for(b=0;b<d;b++){c=a[b];if(typeof c==='number'){a[b]=c=h.getAt(c)}}i.add(a,g,f)},deselect:function(a,g){var f=this,d=f.getSelection('records'),h=f.getView().getStore(),e,b,c;if(d&&d.isRecords){if(!Ext.isArray(a)){a=[a]}e=a.length;for(b=0;b<e;b++){c=a[b];if(typeof c==='number'){a[b]=c=h.getAt(c)}}}d.remove(a,g)},onCollectionRemove:function(a,b){this.updateHeaderState();this.callParent([a,b])},onCollectionAdd:function(a,b){this.updateHeaderState();this.callParent([a,b])},selectCells:function(a,b,f){var c=this,e=c.getView(),d;a=a.isGridLocation?a.clone():new Ext.grid.Location(e,{record:a[0],column:a[1]});b=b.isGridLocation?b.clone():new Ext.grid.Location(e,{record:b[0],column:b[1]});c.resetSelection(!0);d=c.getSelection('cells');d.setRangeStart(a);d.setRangeEnd(b);if(!f){c.fireSelectionChange()}},selectAll:function(d){var a=this,c=a.getSelection(),b;if(a.getRows()){c=a.getSelection('records');b=!0}else if(a.getCells()){c=a.getSelection('cells');b=!0}else if(a.getColumns()){c=a.getSelection('columns');b=!0}if(b){c.selectAll(d)}},deselectAll:function(b){var a=this.getSelection();if(a&&a.getCount()){a.clear(b)}},selectRows:function(c,a,b){var d=this.getSelection('records');if(!a){this.resetSelection(!0)}d.add(c,a,b)},isSelected:function(a){return this.isRowSelected(a)},selectColumn:function(b,c,d){var a=this.getSelection('columns');if(!a.isSelected(b)){if(!c){a.clear(d);a.setRangeStart(b)}else {a.add(b)}}},deselectColumn:function(b,c){var a=this.getSelection();if(a&&a.isColumns&&a.isSelected(b)){a.remove(b,c)}},destroy:function(){var a=this,b=a.getView(),c=a.checkbox;if(b&&!b.destroying&&c){b.unregisterColumn(c,!0)}Ext.destroy(a.viewListeners,a.getConfig('extensible',null,!0));a.callParent()},privates:{axesConfigs:{x:1,y:2,xy:3,both:3,"true":3},getViewListeners:function(){return {columnschanged:'onColumnsChanged',columnmove:'onColumnMove',scope:this,destroyable:!0}},refreshSelection:function(){if(this.getSelection().isRecords){this.callParent()}else {this.resetSelection()}},onColumnsChanged:function(){var b=this,a=b.getSelection(),c,d;if(a){c=a.view;if(a.isCells){if(c.visibleColumns().length){a.eachCell(function(a){c.onCellDeselect(a)})}else {b.clearSelections()}}else if(a.isColumns){d=!1;a.eachColumn(function(a){if(!a.isVisible()||!c.isAncestor(a)){b.remove(a);d=!0}})}}Ext.on('idle',d?b.fireSelectionChange:b.updateSelectionExtender,b,{single:!0})},onColumnMove:function(){this.updateSelectionExtender()},resetSelection:function(b){var a=this.getSelection();if(a){a.clear(b)}},onViewLongpress:function(a){if(a.pointerType==='touch'){a.startDrag()}},onViewDragStart:function(b){if(b.pointerType==='touch'&&!b.longpress){return}var a=this,d=a.getView(),c=new Ext.grid.Location(d,b),h=c.column,i=d.getNavigationModel().getLocation(),f=h===a.getCheckbox(),g=!1,e;if(!c.cell){return}if(b.claimed||b.button>0||b.altKey||(i&&i.actionable)||!d.shouldSelectItem(b)){return}if(h){b.claimGesture();a.mousedownPosition=c.clone();if(f){a.checkCellClicked=c.cell.element.dom}if(h===a.numbererColumn||f||!a.getCells()){if(a.getRows()){if(b.shiftKey&&a.isSelected(c.record)){g=!0}else if(!b.shiftKey&&!f&&a.checkboxOnly){return}e=a.getSelection('records');if(!b.shiftKey&&!b.ctrlKey&&!f){e.clear()}}else if(a.getColumns()){e=a.getSelection('columns');if(b.shiftKey&&a.isColumnSelected(c.column)){g=!0}else if(!b.shiftKey&&!b.ctrlKey&&!f){e.clear()}}else {return !1}}else {e=a.getSelection('cells');if(b.shiftKey&&a.isCellSelected(c.recordIndex,c.columnIndex)){g=!0}else if(!b.shiftKey){e.clear()}}if(!g){a.lastDragLocation=null}if(b.longpress){c.row.removeCls(d.pressedCls);a.onViewSelectionDrag(b)}if(e){d.innerCt.on('dragend',a.onViewDragEnd,a,{single:!0});a.mousemoveListener=d.innerCt.on({drag:'onViewSelectionDrag',scope:a,delegate:d.eventDelegate,destroyable:!0})}}},onViewSelectionDrag:function(a){var c=this,d=c.getView(),f,b,e;if(a.changedTouches){b=a.changedTouches[0];if(b&&!Ext.fly(b.target).getRegion().contains(b.point)){e=Ext.event.Event.resolveTextNode(Ext.Element.fromPagePoint(b.pageX,b.pageY,!0));if(e){a.target=e}}}c.stopAutoScroller();if(!Ext.fly(a.target).up(d.eventDelegate)){c.scrollTowardsPointer(a,d);return}f=c.dragLocation=new Ext.grid.Location(d,a);c.changeSelectionRange(d,f,a)},changeSelectionRange:function(l,b,m){var c=this,i=b.column,j=b.record,k=b.recordIndex,g=c.lastDragLocation,a,d,h,f,e;m.claimGesture();if(g){d=g.record;h=g.column}if(c.checkCellClicked){a=c.getSelection('rows');a.setRangeStart(c.getStore().indexOf(j));c.checkCellClicked=null;return}a=c.getSelection();if(c.getExtensible()){c.getExtensible().disable()}if(i){f=j!==d;e=i!==h;if(a.isRows||a.isRecords){if(f){if(d){a.setRangeEnd(k)}else {a.setRangeStart(k)}}}else if(a.isCells){if(f||e){if(d){a.setRangeEnd(b)}else {a.setRangeStart(b)}}}else if(a.isColumns){if(e){if(h){a.setRangeEnd(b.column)}else {a.setRangeStart(b.column)}}}if(f||e){l.getNavigationModel().setLocation(b)}c.lastDragLocation=b}},scrollTowardsPointer:function(h,i){var b=this,c=i.getScrollable().getElement().getClientRegion(),g=h.getXY(),e=b.scrollTask||(b.scrollTask=Ext.util.TaskManager.newTask({run:b.doAutoScroll,args:[h,i],scope:b,interval:10})),f=25*(window.devicePixelRatio||1),d=3*(window.devicePixelRatio||1),a=b.scrollBy||(b.scrollBy=[]);h.claimGesture();if(g[1]>c.bottom-f){a[0]=0;a[1]=d;e.start()}else if(g[1]<c.top+f){a[0]=0;a[1]=-d;e.start()}else if(g[0]>c.right-f){a[0]=d;a[1]=0;e.start()}else if(g[0]<c.left+f){a[0]=-d;a[1]=0;e.start()}},doAutoScroll:function(g,c){var a=this,e=c.getScrollable().getElement().getClientRegion(),h=c.getScrollable(),d=[],b,f;h.scrollBy.apply(h,a.scrollBy);if(a.scrollBy[0]){d[0]=a.scrollBy[0]>0?e.right-5:e.left+5}else {d[0]=g.getX()}if(a.scrollBy[1]){d[1]=a.scrollBy[1]>0?e.bottom-5:e.top+5}else {d[1]=g.getY()}b=document.elementFromPoint.apply(document,d);if(b){b=Ext.fly(b).up(c.cellSelector);if(!b){a.stopAutoScroller();return}f=new Ext.grid.Location(c,b);if(b&&!f.equals(a.lastDragLocation)){a.changeSelectionRange(c,f,g)}}},stopAutoScroller:function(){var a=this;if(a.scrollTask){a.scrollBy[0]=a.scrollBy[1]=0;a.scrollTask.stop();a.scrollTask=null}},onViewDragEnd:function(d){var a=this,b=a.getView(),e=a.dragLocation,f=!e||!e.equals(a.mousedownPosition),g=d.location,c;a.checkCellClicked=null;a.stopAutoScroller();if(b&&!b.destroyed){if(!g){d.location=new Ext.grid.Location(b,d)}if(a.getExtensible()&&f){a.getExtensible().disable()}a.mousemoveListener.destroy();if((c=a.getSelection())&&c.isRows){c.addRange(!0)}else if(f){a.fireSelectionChange()}}},onNavigate:function(c){var b=this,w=b.getView(),v=b.getStore(),l=b.getRows(),h=b.getCells(),i=b.getColumns(),j=b.getCheckbox(),q=b.checkboxOnly,o=b.getMode(),f=c.to,d=f.column,k=f.record,a=b.getSelection(),g=c.ctrlKey,n=c.shiftKey,t=!0,s=c.getKey()===c.SPACE,u,r,e,m,p;if(c.stopSelection||d===b.checkboxColumn){return}if(!c.pointerType&&!s){if(g){return}r=!c.from||(f.recordIndex!==c.from.recordIndex);if(!r&&!(h||i)){return}}if(a&&(a.isCells||(a.isColumns&&l&&!(g||n)))&&a.getCount()>1&&!n&&c.type==='click'){return}if(!(h||i||l)||!k||c.type==='mousedown'){return}if(g&&c.keyCode===c.A&&o==='multi'){if(!a||a.getCount()<2){b.selectAll()}else {b.deselectAll()}b.updateHeaderState();return}if(n&&o==='multi'){if(d===b.numbererColumn||d===b.checkColumn||!(h||i)||(a&&(a.isRows||a.isRecords))){if(l){if(d!==j&&q){return}a=b.getSelection('records');if(!a.getRangeSize()){if(b.selectionStart==null){b.selectionStart=f.recordIndex}a.setRangeStart(b.selectionStart)}else {p=new Ext.grid.Location(w,b.getLastSelected());a.setRangeStart(p.recordIndex)}a.setRangeEnd(f.recordIndex);e=!0}}else {if(h){a=b.getSelection('cells');u=a.getCount();if(!a.getRangeSize()){a.setRangeStart(c.from||new Ext.grid.Location(b.getView(),{record:0,column:0}))}a.setRangeEnd(f);t=u<a.getCount();e=!0}else if(i){a=b.getSelection('columns');if(!a.getCount()){a.setRangeStart(d)}a.setRangeEnd(d);e=!0}}}else {b.selectionStart=null;if(a&&(o!=='multi'||!g)&&!s){a.clear(!0)}if(l&&(d===b.numbererColumn||d===j||!h)){if(d!==j&&q||(c.keyCode&&c.from&&k===c.from.record)){return}a=b.getSelection('records');if(a.isSelected(k)){if(g||d===j||b.getDeselectable()){a.remove(k);e=!0}}else {a.add(k,g||d===j);e=!0}if(e&&(m=a.getSelected())&&m.length){b.selectionStart=v.indexOf(m.first());a.setRangeStart(b.selectionStart)}}else {if(h){a=b.getSelection('cells',!0);a.setRangeStart(f);e=!0}else if(i){a=b.getSelection('columns');if(g){if(a.isSelected(d)){a.remove(d)}else {a.add(d)}}else {a.setRangeStart(d)}e=!0}}}if(e){if(!a.isRecords){b.fireSelectionChange(null,t)}}b.lastDragLocation=f},isColumnSelected:function(c){var d=this,a=d.getSelection(),b=!1;if(a&&a.isColumns){b=a.isSelected(c)}return b},isCellSelected:function(c,b){var a=this.getSelection();if(a){if(a.isColumns){if(typeof b==='number'){b=this.getView().getVisibleColumns()[b]}return a.isSelected(b)}if(a.isCells){return a.isSelected(c,b)}return a.isSelected(c)}return !1},updateSelection:function(a,c){var b=this.getView();Ext.destroy(c);if(a&&a.getCount()){b=a.view;if(a.isRows){a.eachRow(b.onRowSelect,b)}else if(a.isColumns){a.eachCell(b.onCellSelect,b)}else if(a.isCells){a.eachCell(b.onCellSelect,b)}}},updateRows:function(b){var a;if(!b){this.setCheckbox(!1);a=this.getSelection();if(a&&a.isRows){a.clear()}}},updateColumns:function(c){var a=this,d=a.getView(),b=a.getSelection();if(!c&&b&&b.isColumns){b.clear();a.fireSelectionChange()}d.toggleCls(a.columnSelectCls,!!c)},updateCells:function(c){var b=this,a=b.getSelection();if(!c&&a&&a.isCells){a.clear();b.fireSelectionChange()}},updateMode:function(a){if(a==='multi'){this.setDrag(this.getInitialConfig().drag)}else if(!this.isConfiguring){this.setDrag(!1)}},fireSelectionChange:function(e,d){var b=this,c=b.getView(),a=b.getSelection();b.updateSelectionExtender();b.fireEvent('selectionchange',c,b.getSelection());if(a.isCells){c.fireEvent('selectionchange',c,a.getRange(),d,a)}else {c.fireEvent('selectionchange',c,a.isRecords?e:(a.isCells?a.getRecords():null),d,b.getSelection())}},updateSelectionExtender:function(){var a=this.getSelection();if(a){a.onSelectionFinish()}},onSelectionFinish:function(d,b,c){var a=this.getExtensible();if(a){a.setHandle(b,c)}},applyExtensible:function(a,b){var d=this,c;if(!a){return undefined}if(a===!0||typeof a==='string'){c=d.axesConfigs[a];if(b){b.setAxes(c);return b}a={axes:c}}else {a=Ext.Object.chain(a)}a.allowReduceSelection=d.getReducible();a.view=d.getView();if(b){b.destroy()}return new Ext.grid.selection.SelectionExtender(a)},applyReducible:function(a){return !!a},updateReducible:function(b){var a;a=this.getConfig('extensible',null,!0);if(a){a.allowReduceSelection=b}},applyCheckbox:function(a){var b=this;if(a){b.checkboxOnly=a==='only';b.checkboxColumn=a=Ext.create(b.createCheckboxColumn(b.getCheckboxDefaults()))}return a},updateCheckbox:function(d,c){var b=this,a;if(!b.isConfiguring){a=b.getView();if(c){a.unregisterColumn(c,!0)}if(d){a.registerColumn(d);b.setRows(!0)}}},applyView:function(a){return a.ownerGrid},extendSelection:function(a){var c=this,d=c.getView(),b=c.getSelection(),e=a.reduce?'reduce':'extend';if(d.fireEvent('beforeselectionextend',d,b,a)!==!1){b[e+'Range'](a);if(!b.isRows){c.fireSelectionChange()}}},onIdChanged:function(e,c,b,d){var a=this.getSelection();if(a&&a.isRecords){a.getSelected().updateKey(c,b)}},onSelectionStoreAdd:function(){this.callParent(arguments);this.updateHeaderState()},onSelectionStoreClear:function(){this.callParent(arguments);this.updateHeaderState()},onSelectionStoreLoad:function(){this.callParent(arguments);this.updateHeaderState()}}},function(c){var b=Ext.ClassManager.get('Ext.grid.column.RowNumberer'),a;if(b){a=Ext.grid.column.RowNumberer.prototype.cellCls;c.prototype.rowNumbererCellCls=(a?(a+' '):'')+Ext.baseCSSPrefix+'selmodel-row-numberer-cell'}});Ext.define('Ext.grid.plugin.ColumnResizing',{extend:Ext.Component,alias:['plugin.columnresizing','plugin.gridcolumnresizing'],config:{grid:null,realtime:!1},hasResizingCls:Ext.baseCSSPrefix+'has-columnresizing',resizingCls:Ext.baseCSSPrefix+'resizing',columnSelector:'.'+Ext.baseCSSPrefix+'gridcolumn',resizerSelector:'.'+Ext.baseCSSPrefix+'gridcolumn .'+Ext.baseCSSPrefix+'resizer-el',init:function(a){this.setGrid(a);a.getHeaderContainer().setTouchAction({panX:!1})},updateGrid:function(c,d){var a=this,f=a.hasResizingCls,b,e;if(d){b=d.getHeaderContainer();b.renderElement.un({touchstart:'onContainerTouchStart',scope:a,priority:100});d.removeCls(f)}if(c){a._resizeMarker=e=c.resizeMarkerElement;a._resizeMarkerParent=e.parent();b=c.getHeaderContainer();b.renderElement.on({touchstart:'onContainerTouchStart',scope:a});c.addCls(f)}},onContainerTouchStart:function(c){var a=this,e=a.getGrid().getHeaderContainer(),d=c.getTarget(a.columnSelector),f=c.getTarget(a.resizerSelector),b;if(f&&!c.multitouch&&d&&!a._resizeColumn){b=Ext.Component.from(d);if(b&&b.getResizable()){a._startColumnWidth=b.getComputedWidth();a._minColumnWidth=b.getMinWidth();a._maxColumnWidth=b.getMaxWidth();a._resizeColumn=b;a._startX=c.getX();b.addCls(a.resizingCls);e.renderElement.suspendEvent('drag','longpress');if(!this.getRealtime()){a._resizeMarker.show();a._resizeMarker.setLeft(b.el.getOffsetsTo(a._resizeMarkerParent)[0]+a._startColumnWidth)}else {b.setWidth(a._startColumnWidth)}a.touchListeners=Ext.getBody().on({touchEnd:'onTouchEnd',touchMove:'onTouchMove',scope:a,destroyable:!0})}}else if(c.multitouch&&a._resizeColumn){a.endResize()}},onTouchMove:function(c){var a=this,b=a._resizeColumn,d;if(c.isMultitouch){a.endResize()}else if(b){d=c.getX()-a._startX;a.currentColumnWidth=Math.max(Math.ceil(a._startColumnWidth+d),a._minColumnWidth);if(a._maxColumnWidth){a.currentColumnWidth=Math.min(a.currentColumnWidth,a._maxColumnWidth)}if(a.getRealtime()){b.setWidth(a.currentColumnWidth);b.renderElement.setWidth(a.currentColumnWidth)}else {a._resizeMarker.setLeft(b.el.getOffsetsTo(a._resizeMarkerParent)[0]+a.currentColumnWidth)}b.resizing=!0;c.claimGesture()}},onTouchEnd:function(b){var a=this._resizeColumn,c=b.getX()!==this._startX;Ext.destroy(this.touchListeners);if(a){this.endResize();if(!c){a.onResizerTap(b)}}},endResize:function(){var a=this,b=a._resizeColumn,c=a.getGrid();if(b){if(!a.getRealtime()){c.resizeMarkerElement.hide()}if(a.currentColumnWidth){b.setFlex(null);if(b.resizing){b.setWidth(a.currentColumnWidth);b.resizing=!1}else if(a._resizeColumn.getWidth()===a._startColumnWidth){b.setWidth(a._startColumnWidth)}}b.removeCls(a.resizingCls);a._resizeColumn=null}}});Ext.define('Ext.dd.ScrollManager',{singleton:!0,scrollTowardsPointer:function(c){var a=this,b=a.scrollTask||(a.scrollTask=Ext.util.TaskManager.newTask({run:Ext.dd.ScrollManager.doAutoScroll,args:[c],scope:a,interval:100}));b.start()},stopAutoScroller:function(){var a=this;if(a.scrollTask){a.scrollTask.stop();a.scrollTask=null}},doAutoScroll:function(h){var d=this,e=!0,b,j,g,f,c,i,a;if(!d.info){Ext.dd.ScrollManager.stopAutoScroller.apply(d);return}i=Ext.dd.ScrollManager.getScrollDirection(h,d.info);a=h.getScrollable();if(!a){a=d.getViewScrollable()}if(!i||!a){return}b=d.scrollAmount;j=a.position;c=j.y;if(h.isLockedGrid){e=!1}if(i===-1){if(c>=b){a.scrollBy(0,-b,e)}else if(c>0){a.scrollBy(0,-c,e)}}else {g=a.getMaxPosition();f=g.y-c;if(f>0&&g.y>=c){if(f<b){b=f}a.scrollBy(0,b,e)}}},getScrollDirection:function(e,f){var a=e.bodyElement.getBox(),b=f.cursor.current,d,c;if(b.x>a.right||b.x<a.left){return 0}d=b.y-a.y;c=(d/a.height)*100;return (c<15?-1:(c>85)?1:0)}});Ext.define('Ext.dd.Manager',{singleton:!0,getTargetEl:function(a){var c=a.source,b=a.cursor.current;return c.manager.elementFromPoint(b.x,b.y)},getPosition:function(h,c,a){var f=h.cursor.current,g=c.element.getBox(),e,d,b;a=a||'y';e=f[a]-g[a];d=c.element[a==='y'?'getHeight':'getWidth']();b=(e/d)*100;return b<50?'before':'after'},toggleTargetNodeCls:function(c,a,e){var b,d;if(Ext.isArray(a)){d=a.length;for(b=0;b<d;b++){c.toggleCls(a[b],e)}}else {c.toggleCls(a,e)}},getTargetComp:function(c){var b=this.getTargetEl(c),a;if(b){a=Ext.Component.from(b);if(a.isGridCell){a=a.row}}return a},getSourceComp:function(a){return Ext.Component.from(a.eventTarget)},toggleMarkerCls:function(e,f,j,h){var l=this,g,i,b,c,d,k,a;if(e.isLockedGrid){i=e.getStore();g=f.getRecord();d=i.indexOf(g);if(d!==-1){b=e.visibleGrids;k=b.length;for(a=0;a<k;a++){c=b[a].getItemAt(d);if(c){l.toggleTargetNodeCls(c,j,h)}}}}else {l.toggleTargetNodeCls(f,j,h)}},toggleProxyCls:function(c,d,b){var a=c.proxy;if(a&&a.element){a.element.toggleCls(d,b)}}});Ext.define('Ext.plugin.dd.DragDrop',{extend:Ext.plugin.Abstract,alias:'plugin.viewdragdrop',dragText:undefined,enableDrag:!0,containerScroll:!0,dropIndicator:null,enableDrop:!0,handle:null,groups:null,overCls:'',scrollAmount:80,activateOnLongPress:(Ext.supports.Touch&&Ext.supports.TouchEvents)?!0:!1,enable:function(){var a=this;if(a.dragZone){a.dragZone.unlock()}if(a.dropZone){a.dropZone.unlock()}},disable:function(){var a=this;if(a.dragZone){a.dragZone.lock()}if(a.dropZone){a.dropZone.lock()}},destroy:function(){var a=this;a.dragZone=a.dropZone=Ext.destroy(a.dragZone,a.dropZone);a.callParent()}});Ext.define('Ext.grid.plugin.HeaderReorder',{extend:Ext.plugin.dd.DragDrop,alias:'plugin.headerreorder',config:{grid:null},handle:'.'+Ext.baseCSSPrefix+'gridcolumn',groups:'gridHeaderGroup',dropIndicator:Ext.baseCSSPrefix+'grid-column-drop-indicator',updateGrid:function(b,c){var a=this;if(c){a.dragZone=a.dropZone=Ext.destroy(a.dragZone,a.dropZone)}if(b){a.initializeDrag(b)}},initializeDrag:function(c){var a=this,d=c.getHeaderContainer(),b={};if(a.enableDrag){if(a.proxy){b.proxy=a.proxy}if(a.activateOnLongPress){b.activateOnLongPress=a.activateOnLongPress}a.dragZone=new Ext.grid.HeaderDragZone(Ext.apply({element:d.bodyElement,handle:a.handle,groups:a.groups,view:c,constrain:Ext.getBody()},b))}if(a.enableDrop){a.dropZone=new Ext.grid.HeaderDropZone({element:d.el,groups:a.groups,view:c,dropIndicator:a.dropIndicator})}}});Ext.define('Ext.grid.RowHeader',{extend:Ext.dataview.ItemHeader,xtype:'rowheader',classCls:Ext.baseCSSPrefix+'rowheader',isRowHeader:!0,toolDefaults:{ui:'itemheader rowheader'},privates:{augmentToolHandler:function(b,a){this.callParent([b,a]);a[1].grid=a[1].list},getGroupHeaderTplData:function(){var a=this.callParent([!0]),e=this.parent,d=e.allPartners||[e],g=d.length,c,f,b;if(a){for(c=0;c<g;++c){f=d[c];b=f.getColumnForField(a.groupField);if(b){break}}}if(b){a.columnName=b.getText();if(b.printValue){a.html=b.printValue(a.value)}}else if(a){a.html=Ext.htmlEncode(a.name)}return a}}});Ext.define('Ext.grid.Grid',{extend:Ext.dataview.List,xtype:'grid',isGrid:!0,mixins:[Ext.mixin.ConfigProxy],storeEventListeners:{sort:'onStoreSort'},config:{columns:null,columnMenu:{cached:!0,$value:{xtype:'menu',weighted:!0,align:'tl-bl?',hideOnParentHide:!1,items:{sortAsc:{xtype:'gridsortascmenuitem',group:'sortDir',weight:-100},sortDesc:{xtype:'gridsortdescmenuitem',group:'sortDir',weight:-90},groupByThis:{xtype:'gridgroupbythismenuitem',handler:'column.onGroupByThis',separator:!0,weight:-50},showInGroups:{xtype:'gridshowingroupsmenuitem',handler:'column.onToggleShowInGroups',weight:-40}}}},columnResize:!0,headerContainer:{xtype:'headercontainer'},hideHeaders:!1,enableColumnMove:!0,hideScrollbar:null,itemsFocusable:!1,title:'',titleBar:{xtype:'titlebar',docked:'top'},sortable:!0,multiColumnSort:!1,columnsMenuItem:{lazy:!0,$value:{xtype:'gridcolumnsmenu',weight:-80,separator:!0}},columnLines:null,rowNumbers:null},itemConfig:{xtype:'gridrow'},groupHeader:{xtype:'rowheader'},infinite:!0,navigationModel:'grid',pinnedHeader:{xtype:'rowheader'},scrollable:!0,scrollToTopOnRefresh:!1,striped:!0,proxyConfig:{headerContainer:['reserveScrollbar']},selectionModel:'grid',classCls:Ext.baseCSSPrefix+'grid',columnLinesCls:Ext.baseCSSPrefix+'column-lines',getTemplate:function(){var a=this.callParent();a.push({reference:'resizeMarkerElement',className:Ext.baseCSSPrefix+'resize-marker-el',hidden:!0});return a},beforeInitialize:function(){this.ownerGrid=this;this.callParent()},initialize:function(){var a=this,g=a.getColumns(),c=a.registeredColumns,f=a.getTitleBar(),b=a.getHeaderContainer(),e=a.getScrollable(),d=a.getSelectable();a.callParent();if(e){b.getScrollable().addPartner(e,'x')}if(f){a.insert(0,f)}a.add(b);if(d){d.onViewCreated(a)}if(!g.length&&c&&c.length){b.add(c)}},doDestroy:function(){this.destroyMembers('columnsMenu','columnsMenuItem','rowNumbererColumn');this.callParent()},addColumn:function(a){return this.getHeaderContainer().add(a)},addSharedMenuItem:function(a){(this.sharedMenuItems||(this.sharedMenuItems=[])).push(a)},removeSharedMenuItem:function(b){var a=this.sharedMenuItems;if(a){Ext.Array.remove(a,b)}},beforeShowColumnMenu:function(d,f){var a=this,c,g,e,b;a.getColumnsMenuItem();b=a.sharedMenuItems;for(c=0,g=b&&b.length;c<g;++c){e=b[c];e.onBeforeShowColumnMenu(f,d,a)}return a.fireEvent('beforeshowcolumnmenu',a,d,f)},onColumnMenuHide:function(f,d){var e=this,c=e.sharedMenuItems,g=c&&c.length,b,a;for(b=0;b<g;++b){a=c[b];if(!a.destroyed&&!a.destroying&&!d.isHidden()){a.onColumnMenuHide(d,f,e)}}},getColumnForField:function(a){return this.getHeaderContainer().getColumnForField(a)},getColumns:function(a){return this.getHeaderContainer().getColumns(a)},getVisibleColumns:function(){return this.getHeaderContainer().getVisibleColumns()},insertColumn:function(b,a){return this.getHeaderContainer().insert(b,a)},insertColumnBefore:function(c,a){var b;if(!a){b=this.getHeaderContainer().add(c)}else {b=a.getParent().insertBefore(c,a)}return b},mapToCell:function(a,b){var d=this,c;if(a){if(a.isGridCell&&a.row.getGrid()===d){c=a}else {if(a.isEntity){a=d.mapToItem(a)}if(a){if(a.isGridRow){b=b||d.getFirstVisibleColumn();if(b){c=a.getCellByColumn(b)}}else {c=Ext.Component.from(a,d.innerCt,'gridcellbase')}}}}return c||null},mapToItem:function(a,b){if(a&&a.isGridCell){a=a.row}return this.callParent([a,b])},mapToRowBody:function(a){if(a){if(!a.isGridRow){a=this.mapToItem(a)}if(a&&a.isGridRow){a=a.getBody()}}return a||null},removeColumn:function(a){return this.getHeaderContainer().remove(a)},registerActionable:function(a){this.getNavigationModel().registerActionable(a)},unregisterActionable:function(a){this.getNavigationModel().unregisterActionable(a)},onColumnAdd:function(h,f,e){var a=this,c,g,b,d;if(!a.initializingColumns&&!a.destroying){c=a.items.items;g=c.length;for(b=0;b<g;b++){d=c[b];if(d.hasGridCells){d.insertColumn(e,f)}}a.onColumnChange('columnadd',[a,f,e])}},onColumnHide:function(g,e){var a=this,c,f,b,d;if(a.initialized&&!a.destroying){c=a.items.items;f=c.length;for(b=0;b<f;b++){d=c[b];if(d.hasGridCells){d.hideColumn(e)}}a.onColumnChange('columnhide',[a,e])}},onColumnMove:function(n,f,o,m){var a=this,g=null,j=f.length,h,l,c,e,i,b,k,d;if(a.initialized&&!a.destroying){h=a.items.items;l=h.length;d=a.getHeaderContainer().getColumns();k=d.indexOf(f[j-1]);g=d[k+1]||null;for(c=j-1;c>=0;--c){b=f[c];for(e=0;e<l;e++){i=h[e];if(i.hasGridCells){i.insertColumnBefore(b,g)}}a.onColumnChange('columnmove',[a,b,m+c,d.indexOf(b)]);g=b}}},onColumnRemove:function(g,c){var a=this,d,f,b,e;if(a.initialized&&!a.destroying){if(c===a.sortedColumn){a.sortedColumn=null}d=a.items.items;f=d.length;for(b=0;b<f;b++){e=d[b];if(e.hasGridCells){e.removeColumn(c)}}a.onColumnChange('columnremove',[a,c])}},onColumnResize:function(e,b,d,c){var a=this;if(!a.destroying){if(c&&!b.getHidden()){if(a.infinite){a.refreshScrollerSize()}a.fireEvent('columnresize',a,b,d)}}},onColumnShow:function(g,e){var a=this,c,f,b,d;if(a.initialized&&!a.destroying){c=a.items.items;f=c.length;for(b=0;b<f;b++){d=c[b];if(d.hasGridCells){d.showColumn(e)}}a.onColumnChange('columnshow',[a,e])}},onColumnSort:function(c,b,a){this.fireEvent('columnsort',this,b,a)},onRender:function(){var a=this._hideHeaders;this.callParent();if(a){this.updateHideHeaders(a)}},privates:{dataItemMap:{header:1,footer:1},handleStoreSort:function(){if(this.rendered){this.getHeaderContainer().setSortState()}},onStoreGroupChange:function(b,a){this.callParent([b,a]);this.handleStoreSort()},onStoreSort:function(){this.handleStoreSort()},registerColumn:function(a){var b=this,d=b.registeredColumns,c=b.getHeaderContainer();if(!a.isGridColumn){a=Ext.create(a)}if(!d){b.registeredColumns=d=[]}d.push(a);if(!b.isConfiguring||(c&&c.items.getCount())){c.add(a)}return a},unregisterColumn:function(a,d){var c=this.registeredColumns,b=this.getHeaderContainer();if(!this.destroying){if(c){Ext.Array.remove(c,a)}if(b){b.remove(a,d===!0)}}return a},generateSelectorFunctions:function(){var a=this;a.callParent();a.eventDelegate=function(e){var b=Ext.Component.from(e),d=!0,c;if(!b||b===a){return !1}if(b.getRefOwner()===a){d=b.isGridRow||a.dataItemMap[b.$dataItem]}else {c=b.row;d=c&&c.isGridRow&&(c.grid||c.list)===a}return d}},getFirstVisibleColumn:function(){var a=this.getVisibleColumns();return a.length?a[0]:null},getLastVisibleColumn:function(){var a=this.getVisibleColumns(),b=a.length;return b?a[b-1]:null},isFirstVisibleColumn:function(a){return this.getFirstVisibleColumn()===a},isLastVisibleColumn:function(a){return this.getLastVisibleColumn()===a},createDataItem:function(b){var a=this.callParent([b]);a.grid=this;return a},onColumnChange:function(a,c){var b=this;if(a!=='columnmove'&&a!=='columnadd'&&a!=='columnremove'){b.refreshInnerWidth()}if(!b.isConfiguring){b.fireEventArgs(a,c)}b.clearItemCaches()},refreshInnerWidth:function(){var a=this.getHeaderContainer().bodyElement.dom;this.setInnerWidth(Math.max(a.scrollWidth,a.clientWidth))},onColumnComputedWidthChange:function(b,c){var a=this,d=a.groupingInfo;if(!a.destroying){a.setInnerWidth(c);a.setCellSizes(b,a.items.items);a.setCellSizes(b,a.itemCache);if(a.isGrouping()){a.setCellSizes(b,d.header.unused);a.setCellSizes(b,d.footer.unused)}if(a.hasListeners.columnlayout){a.fireEvent('columnlayout',a,b,c)}}},onCellSelect:function(b){var a=b.getCell();if(a){a.addCls(this.selectedCls)}},onCellDeselect:function(b){var a=b.getCell();if(a){a.removeCls(this.selectedCls)}},setCellSizes:function(d,e){var g=e.length,f=d.length,c,a,b;for(a=0;a<g;a++){c=e[a];if(c.hasGridCells){for(b=0;b<f;b++){c.setColumnWidth(d[b])}}}},updateColumnLines:function(a){this.el.toggleCls(this.columnLinesCls,a)},updateColumnResize:function(b){var a=this,c=a.findPlugin('columnresizing');if(!c){if(b){a.addPlugin('columnresizing')}}else {c.setGrid(b?a:null)}},updateColumns:function(c){var b=this,a=b.getHeaderContainer(),e=c&&c.length,d=b.registeredColumns;if(a){b.rowHeight=null;if(a){a.beginColumnUpdate();if(a.getItems().getCount()){if(d){a.remove(d,!1)}if(e){a.remove(c.filter(function(a){return a.isInstance}),!1)}a.removeAll(!0,!0)}if(e){b.initializingColumns=b.isConfiguring;a.setColumns(c);if(d){a.add(d)}delete b.initializingColumns}a.endColumnUpdate()}}},applyRowNumbers:function(a){var b=this;if(a){a=b.rowNumbererColumn=Ext.create(Ext.apply({xtype:'rownumberer',weight:-1000,editRenderer:b.renderEmpty},a))}return a},updateRowNumbers:function(b,a){if(a){this.unregisterColumn(a,!0)}if(b){this.registerColumn(b)}},renderEmpty:function(){return '\xa0'},applyColumnsMenuItem:function(b,a){return Ext.updateWidget(a,b,this,'createColumnsMenuItem')},createColumnsMenuItem:function(a){return Ext.apply({grid:this},a)},applyHeaderContainer:function(b,a){return Ext.updateWidget(a,b,this,'createHeaderContainer')},createHeaderContainer:function(a){a=this.mergeProxiedConfigs('headerContainer',a,!0);a.sortable=this.getSortable();a.grid=this;return a},updateHeaderContainer:function(a){if(a){a.on({columnresize:'onColumnResize',columnshow:'onColumnShow',columnhide:'onColumnHide',columnadd:'onColumnAdd',columnmove:'onColumnMove',columnremove:'onColumnRemove',columnsort:'onColumnSort',scope:this})}},updateHideHeaders:function(b){if(this.rendered){var a=this.getHeaderContainer();if(b){a.el.setStyle({marginBottom:'-'+a.el.measure('h')+'px'})}else {a.el.setStyle({marginBottom:''})}}},updateHideScrollbar:function(a){var b=Ext.scrollbar.width();this.element.setStyle('margin-right',a?-b+'px':'')},updateTitle:function(b){var a=this.getTitleBar();if(a){if(b){a.setTitle(b);if(a.isHidden()){a.show()}}else {a.hide()}}},applyTitleBar:function(b,a){return Ext.updateWidget(a,b)},updateTitleBar:function(a){if(a&&!a.getTitle()){a.setTitle(this.getTitle())}},applyTotalColumnWidth:function(a){var b=this.dataItems;return b.length===0?undefined:a},updateVerticalOverflow:function(f,h){var g=this.getHeaderContainer(),e=this.findPlugin('summaryrow')||this.findPlugin('gridsummaryrow'),a=this.getScrollable(),c=a&&a.getScrollbarSize().width,i=!!(a&&a.getY()),d=i&&c>0&&f,b;this.callParent([f,h]);g.setVerticalOverflow(d);if(e){b=e.getRow();if(!b.destroyed){b.rightSpacer.setStyle({width:(d?(c-1):0)+'px'})}}},updateEnableColumnMove:function(c){var b=this,a=b.findPlugin('headerreorder');if(!a&&c){a=b.addPlugin('headerreorder')}if(a){a.setGrid(c?b:null)}},getSelection:function(){var d=this,c=d.getSelectable(),a=c.getSelection(),b=a.type;if(b==='columns'){return a.lastColumnSelected}if(b==='cells'){return a.endCell&&a.endCell.record}return this.callParent()}}},function(a){a.prototype.indexModifiedFields=Ext.Array.toMap});Ext.define('Ext.plugin.dd.DragZone',{extend:Ext.drag.Source,dragMarkerCls:Ext.baseCSSPrefix+'drag-indicator',describe:function(a){var b=this.getDragData(a.eventTarget);a.setData('dragData',b)},proxy:{type:'placeholder',cls:Ext.baseCSSPrefix+'proxy-drag-el',cursorOffset:(Ext.supports.Touch&&Ext.supports.TouchEvents)?[44,-75]:[12,20]},beforeDragStart:function(b){var a=this.getProxy();if(a&&a.setHtml){a.setHtml(this.getDragText(b))}},getDragText:function(a){return ''},getDragData:Ext.emptyFn});Ext.define('Ext.grid.GridDragZone',{extend:Ext.plugin.dd.DragZone,getViewScrollable:function(){var b=this,e=b.view,c=e.getScrollable(),a,d;if(!c){if(e.isLockedGrid){if(b.ddRow){a=b.ddRow}else {a=Ext.dd.Manager.getTargetComp(b.info)}if(a&&a.getGrid){d=a.getGrid()}if(d){c=d.getScrollable()}}}return c},toggleDragMarker:function(d,c){var e=Ext.dd.Manager,f=this.view,a,b;for(b=0;b<d.length;b++){a=d[b];if(!a.isDestroyed){if(!c){delete a.isDragging;delete a.draggingRecordId;delete a.dragMarkerCls}e.toggleMarkerCls(f,a,this.dragMarkerCls,c)}}},getDraggingRows:function(g){var f=g.data.dragData,c=f.records||[],d=this.view,e=[],b,a;for(b=0;b<c.length;b++){a=null;if(d.isLockedGrid&&d.visibleGrids.length){a=d.visibleGrids[0].itemFromRecord(c[b])}else {a=d.itemFromRecord(c[b])}if(a){a.isDragging=!0;a.draggingRecordId=c[b].id;a.dragMarkerCls=this.dragMarkerCls;e.push(a)}}return e},onDragStart:function(c){var a=this,b=a.getViewScrollable();if(b&&b.isVirtualScroller){b.setDisabled(!0)}if(a.containerScroll){Ext.dd.ScrollManager.scrollTowardsPointer.apply(a,[a.view])}a.rows=a.getDraggingRows(c);a.toggleDragMarker(a.rows,!0)},onDragEnd:function(){var a=this,b=a.getViewScrollable();if(b&&b.isVirtualScroller){b.setDisabled(!1)}if(a.containerScroll){Ext.dd.ScrollManager.stopAutoScroller.apply(a)}a.onDragCancel()},onDragCancel:function(){this.toggleDragMarker(this.rows,!1);this.rows=null},getDragData:function(f){var d=this.view,c=Ext.Component.from(f,d),b,a,e;if(!c){return}a=c.getRecord();b=d.getSelections();if(b){e=b.indexOf(a);a=(e!==-1)?b:a}return {eventTarget:f,view:d,item:c,records:Ext.Array.from(a)}},getDragText:function(b){var c=b.data.dragData,a=c.records.length;if(Ext.isFunction(this.dragText)){return this.dragText(a,b)}return Ext.String.format(this.dragText,a,a===1?'':Ext.util.Inflector.pluralize(''))}});Ext.define('Ext.plugin.dd.DropZone',{extend:Ext.drag.Target,dropMarkerCls:Ext.baseCSSPrefix+'drop-indicator',validDropCls:Ext.baseCSSPrefix+'valid-drop',onDragMove:Ext.emptyFn,onDrop:Ext.emptyFn,onDragLeave:function(a){this.removeDropMarker();Ext.dd.Manager.toggleProxyCls(a,this.validDropCls,!1)},getViewScrollable:Ext.emptyFn,removeDropMarker:Ext.emptyFn});Ext.define('Ext.grid.GridDropZone',{extend:Ext.plugin.dd.DropZone,onDragMove:function(d){var b=this,i=Ext.dd.Manager,a=i.getTargetComp(d),j,h,k,c,e,g,f;k=i.getPosition(d,a);f=b.dropMarkerCls+'-'+k;if(!a||a.hasCls(f)){return}if(a.getRecord){e=a.getRecord()}h=Ext.Array.intersect(b.getGroups(),d.source.getGroups()).length;if(!e||!h){if(a.getStore){c=a.getStore()}if(!c||(c&&c.getCount()>0)){return}}j=d.data.dragData.records;g=j.indexOf(e)===-1;if(b.ddEl){b.removeDropMarker()}if(g){b.addDropMarker(a,[b.dropIndicator,f]);b.ddEl=a}},onDrop:function(h){var b=this,d,f,a,g,c,e;if(!b.ddEl){return}d=h.data.dragData;f=b.ddEl.hasCls(b.dropMarkerCls+'-before')?'before':'after';a=Ext.dd.Manager.getTargetComp(h);if(a.isGridRow){g=a.parent}c=a.getRecord();e=b.view;if(e.fireEvent('beforedrop',a,d,c,f)!==!1){b.onNodeDrop(d,c,f,g||e);e.fireEvent('drop',a,d,c,f)}b.removeDropMarker()},onNodeDrop:function(l,k,i,c){var h=l.view,d=c.getStore(),n=c!==h,a=l.records,f=n||a.length>1,e,b,m,j,g;if(this.copy){m=a.length;for(b=0;b<m;b++){a[b]=a[b].copy()}}else if(f){h.getStore().remove(a)}if(k&&i){e=d.indexOf(k);if(i!=='before'){e++}d.insert(e,a)}else {d.add(a)}if(f){g=c.getSelectable();j=g.getSelection().getSelectionModel();j.select(a)}},addDropMarker:function(c,d){var a=this,b=Ext.dd.Manager;b.toggleProxyCls(a.info,a.validDropCls,!0);b.toggleMarkerCls(a.view,c,d,!0);if(a.overCls){b.toggleTargetNodeCls(c,a.overCls,!0)}},removeDropMarker:function(){var a=this,c=a.dropMarkerCls+'-',b=Ext.dd.Manager,d;if(a.info){b.toggleProxyCls(a.info,a.validDropCls,!1)}if(a.ddEl){d=[a.dropIndicator,c+'before',c+'after'];b.toggleMarkerCls(a.view,a.ddEl,d,!1);if(a.overCls){b.toggleTargetNodeCls(a.ddEl,a.overCls,!1)}a.ddEl=null}}});Ext.define('Ext.grid.HeaderDragZone',{extend:Ext.plugin.dd.DragZone,autoDestroy:!1,resizerCls:Ext.baseCSSPrefix+'resizer-el',maskCls:Ext.baseCSSPrefix+'mask',beforeDragStart:function(a){var b=Ext.dd.Manager.getSourceComp(a),c=b.renderElement,e=Ext.dd.Manager.getTargetEl(a),d=c.isSuspended('drag')||c.isSuspended('longpress');if(d||b.isDragColumn||b.getDraggable()===!1||Ext.fly(a.eventTarget).hasCls(this.resizerCls)||Ext.fly(e).hasCls(this.maskCls)){return !1}this.callParent([a])},getDragText:function(b){var a=Ext.dd.Manager.getTargetComp(b);return a.getText()}});Ext.define('Ext.grid.HeaderDropZone',{extend:Ext.grid.GridDropZone,dropMarkerCls:Ext.baseCSSPrefix+'header-drop-indicator',autoDestroy:!1,isValidDrag:function(f,e){var h=this.info,g,d,c,a,b;if(!!f.up(e)){return !1}g=h.cursor.current;d=e.previousSibling();c=e.nextSibling();if(f===d){a=d.element.getBox();b=(g.x-a.left)/a.width;if(b>0.5){return !1}}else if(f===c){a=c.element.getBox();b=(g.x-a.left)/a.width;if(b<=0.5){return !1}}return !0},onDragMove:function(f){var b=this,d=Ext.dd.Manager,a=d.getTargetComp(f),h=a.isDragColumn,e=d.getSourceComp(f),i=!a.isHeaderContainer||!e.isHeaderContainer,g,c;if(i||a===e||h||a.getParent()===b.view){if(this.ddEl){this.removeDropMarker()}return}g=d.getPosition(f,a,'x');c=b.dropMarkerCls+'-'+g;if(a.hasCls(c)){return}if(this.ddEl){this.removeDropMarker()}if(b.isValidDrag(a,e)){b.ddEl=a;b.addDropMarker(a,[b.dropIndicator,c])}},trackHeaderMove:function(a,c){var b;if(!a||a===c||a.innerItems.length){return}b=a.getParent();b.remove(a);this.trackHeaderMove(b,c)},onDrop:function(h){var i=this,k='insertBefore',g,b,e,a,f,l,c,d,m,j;if(!i.ddEl){return}g=Ext.dd.Manager;b=g.getTargetComp(h);e=b.getParent()||b.getRootHeaderCt();a=g.getSourceComp(h);d=a.getRootHeaderCt();m=d.indexOf(a);f=e.indexOf(b);l=g.getPosition(h,b,'x');j=a.getParent();i.removeDropMarker();if(f===-1){return}if(l==='after'){c=e.getAt(f+1);if(!c){k='insertAfter';c=b}}else {c=e.getAt(f)}e[k](a,(c||null));i.trackHeaderMove(j,d);d.fireEvent('move',d,a,f,m)}});Ext.define('Ext.grid.PagingToolbar',{extend:Ext.Toolbar,xtype:'pagingtoolbar',classCls:Ext.baseCSSPrefix+'pagingtoolbar',config:{prevButton:{xtype:'button',iconCls:Ext.baseCSSPrefix+'pagingtoolbar-prev'},nextButton:{xtype:'button',iconCls:Ext.baseCSSPrefix+'pagingtoolbar-next'},sliderField:{xtype:'singlesliderfield',liveUpdate:!0,value:1,flex:1,minValue:1},summaryComponent:{xtype:'component',cls:Ext.baseCSSPrefix+'pagingtoolbar-summary'}},inheritUi:!0,initialize:function(){var a=this;a.callParent();a.add([a.getPrevButton(),a.getSummaryComponent(),a.getSliderField(),a.getNextButton()])},applyPrevButton:function(b,a){return Ext.factory(b,Ext.Button,a)},applyNextButton:function(b,a){return Ext.factory(b,Ext.Button,a)},applySliderField:function(b,a){return Ext.factory(b,Ext.field.SingleSlider,a)},applySummaryComponent:function(b,a){return Ext.factory(b,Ext.Component,a)}});Ext.define('Ext.grid.SummaryRow',{extend:Ext.grid.Row,xtype:'gridsummaryrow',isSummaryRow:!0,config:{group:null},defaultCellUI:'summary',classCls:Ext.baseCSSPrefix+'summaryrow',element:{reference:'element',children:[{reference:'cellsElement',className:Ext.baseCSSPrefix+'cells-el'},{reference:'rightSpacer',className:Ext.baseCSSPrefix+'cells-el-right-spacer'}]},updateGroup:function(){this.syncSummary()},privates:{beginRefresh:function(a){var c=this,b=c.getGroup();a=c.callParent([a]);a.group=b;a.records=(b?b.data:a.store.data).items;a.summary=!0;return a},syncSummary:function(){var a=this,d=a.getGroup()||a.parent.store,b=d.getSummaryRecord(),c=a.getViewModel();if(b===a.getRecord()){a.refresh()}else {a.setRecord(b);if(c){c.setData({record:b})}}}}});Ext.define('Ext.grid.cell.Boolean',{extend:Ext.grid.cell.Text,xtype:'booleancell',isBooleanCell:!0,config:{falseText:'False',trueText:'True',undefinedText:'\xa0'},updateColumn:function(b,c){var a;this.callParent([b,c]);if(b&&b.isBooleanColumn){a=b.getFalseText();if(a!==null){this.setFalseText(a)}a=b.getTrueText();if(a!==null){this.setTrueText(a)}a=b.getUndefinedText();if(a!==null){this.setUndefinedText(a)}}},updateFalseText:function(){if(!this.isConfiguring){this.writeValue()}},updateTrueText:function(){if(!this.isConfiguring){this.writeValue()}},updateUndefinedText:function(){if(!this.isConfiguring){this.writeValue()}},formatValue:function(a){var b=this;if(a===undefined){a=b.getUndefinedText()}else if(!a||a==='false'){a=b.getFalseText()}else {a=b.getTrueText()}return a}});Ext.define('Ext.grid.cell.Expander',{extend:Ext.grid.cell.Base,xtype:'expandercell',isExpanderCell:!0,config:{collapsed:!0},align:'center',classCls:Ext.baseCSSPrefix+'expandercell',expandedCls:Ext.baseCSSPrefix+'expanded',innerTemplate:[{reference:'iconElement',cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'}],updateCollapsed:function(a){this.element.toggleCls(this.expandedCls,!a)}});Ext.define('Ext.grid.cell.Widget',{extend:Ext.grid.cell.Base,xtype:'widgetcell',isWidgetCell:!0,config:{forceWidth:!1,widget:null},align:'center',classCls:Ext.baseCSSPrefix+'widgetcell',selectable:!1,getRefItems:function(c){var a=[],b=this.getWidget();if(b){a.push(b);if(c&&b.getRefItems){a.push.apply(a,b.getRefItems(c))}}return a},setValue:function(a){if(a&&typeof a==='object'){this._value=a;this.updateValue(a)}else {if(a===undefined){a=null}this.callParent([a])}return this},updateValue:function(d){var c=this,b=c.getWidget(),a=c.defaultBindCfg;if(a&&b){b[a.names.set](d)}},applyWidget:function(a){var b=this;if(a){a=Ext.apply({ownerCmp:b},a);a=Ext.create(a)}return a},updateWidget:function(b,d){var a=this,c;if(d){a.widgetChangeListener=Ext.destroy(a.widgetChangeListener);d.measurer=null;d.destroy()}if(b){a.bodyElement.setHtml('');a.bodyElement.appendChild(b.element);if(a.getForceWidth()){a.setWidgetWidth(a.getWidth())}c=b.defaultBindProperty;c=b.self.getConfigurator().configs[c];a.defaultBindCfg=c||null;if(a.dataIndex){a.widgetChangeListener=b.on({change:'onWidgetChange',scope:a})}}},onWidgetChange:function(f){var a=this,b,c,d,e;if(!a.refreshContext){b=a.getRecord();c=a.defaultBindCfg;d=a.dataIndex;if(c){e=f[c.names.get]();a.setValue(e);if(b&&!b.isSummaryRecord&&d){b.set(d,e)}}}},updateWidth:function(a,b){this.callParent([a,b]);if(this.getForceWidth()){this.setWidgetWidth(a)}},onRender:function(){var a=this;if(a.getForceWidth()){a.setWidgetWidth(a.getWidth())}},doDestroy:function(){this.setWidget(null);this.callParent()},privates:{setWidgetWidth:function(g){var c=this,f=c.bodyElement,b,a,e,d;if(!c.rendered){return}b=c.getWidget();if(b){a=c.getColumn();e=parseInt(a.getCachedStyle(f,'padding-left'),10)||0;d=parseInt(a.getCachedStyle(f,'padding-right'),10)||0;b.measurer=a;b.setWidth(g-e-d)}}}});Ext.define('Ext.grid.column.Boolean',{extend:Ext.grid.column.Column,xtype:'booleancolumn',isBooleanColumn:!0,config:{trueText:null,falseText:null,undefinedText:null,defaultEditor:{xtype:'checkboxfield'},cell:{xtype:'booleancell'}}});Ext.define('Ext.grid.column.Drag',{extend:Ext.grid.column.Column,xtype:'dragcolumn',classCls:Ext.baseCSSPrefix+'drag-column',cell:{bodyCls:Ext.baseCSSPrefix+'row-drag-indicator'},menu:null,sortable:!1,draggable:!1,resizable:!1,hideable:!1,ignore:!0,width:'auto',minWidth:30,ignoreExport:!0,text:'',isDragColumn:!0,onViewColumnAdd:function(c,a,b){if(!b&&!a.isDragColumn){c.insertColumn(0,this)}},onColumnMoved:function(c,b,d,a){this.onViewColumnAdd(c,b,a)},updateGrid:function(c,b){var a={scope:this,columnadd:'onViewColumnAdd',columnmove:'onColumnMoved'};if(this.isDestructing()){return}if(b){b.un(a)}if(c){c.on(a)}}});Ext.define('Ext.grid.column.Text',{extend:Ext.grid.column.Column,xtype:'textcolumn',cell:{xtype:'textcell'}});Ext.define('Ext.grid.filters.menu.Base',{extend:Ext.menu.CheckItem,isFilterMenuItem:!0,mixins:[Ext.mixin.Bufferable],text:'Filter',menu:{indented:!1},weight:-70,bufferableMethods:{onInputChange:300},syncFilter:function(){var e=this,h=e.column.getDataIndex(),j=e.plugin.getQuery(),c=j.getFilters(),i=e.getMenu().getItems().items,b,f,g,a,d;for(f=i.length;f-->0;){a=i[f];if(a.operator){d=null;for(g=h&&c&&c.length;g-->0;){b=c[g];if(b.property===h&&b.operator===a.operator){d=b.value;break}}a.setValue(d)}}},syncQuery:function(){var d=this,f=d.column.getDataIndex(),j=d.plugin,k=j.getQuery(),g=0,i=0,a,c,e,h,b;if(f){a=Ext.clone(k.getFilters());h=d.getMenu().getItems().items;for(c=a&&a.length;c-->0;){if(a[c].property===f){a.splice(c,1);++i}}if(d.getChecked()){for(c=h.length;c-->0;){e=h[c];if(e.operator){b=e.getValue();if(b!==null&&b!==''){++g;if(Ext.isDate(b)){b=Ext.Date.format(b,'C')}(a||(a=[])).push({property:f,operator:e.operator,value:b})}}}}if(!g){d.setChecked(!1)}if(g||i){j.setActiveFilter(a)}}},privates:{doOnInputChange:function(){this.setChecked(!0);this.syncQuery()}}});Ext.define('Ext.grid.filters.menu.Boolean',{extend:Ext.grid.filters.menu.Base,alias:'gridFilters.boolean',menu:{defaults:{name:'boolfilter',group:'value',xtype:'menuradioitem',operator:'==',checkHandler:'up.onInputChange'},items:{yes:{value:!0,text:'True',weight:10},no:{value:!1,text:'False',weight:20}}},syncFilter:function(){var e=this,j=e.column,h=j.getDataIndex(),k=e.plugin.getQuery(),d=k.getFilters(),i=e.getMenu().getItems().items,b,f,g,a,c;for(f=i.length;f-->0;){a=i[f];if(a.operator){c=null;for(g=h&&d&&d.length;g-->0;){b=d[g];if(b.property===h&&b.operator===a.operator){if(a.getChecked){if(b.value===a.getValue()){c=b.value;break}}else {c=b.value;break}}}if(a.operator==='=='&&a.getChecked){if(a.getValue()===c){a.setChecked(!0)}else {a.setChecked(!1)}}else {a.setValue(c)}}}},syncQuery:function(){var e=this,f=e.column.getDataIndex(),j=e.plugin,k=j.getQuery(),g=0,i=0,b,c,a,h,d;if(f){b=Ext.clone(k.getFilters());h=e.getMenu().getItems().items;for(c=b&&b.length;c-->0;){if(b[c].property===f){b.splice(c,1);++i}}if(e.getChecked()){for(c=h.length;c-->0;){a=h[c];if(a.operator){if(a&&a.getChecked){if(a.getChecked()&&(a.getValue()===!0||a.getValue()===!1)){d=a.getValue()}else {d=null}}else {d=a.getValue();e.setChecked(!0)}if(d!==null&&d!==''){++g;(b||(b=[])).push({property:f,operator:a.operator,value:d})}}}}if(!g){e.setChecked(!1)}if(g||i){j.setActiveFilter(b)}}}});Ext.define('Ext.grid.filters.menu.Date',{extend:Ext.grid.filters.menu.Base,alias:'gridFilters.date',menu:{items:{lt:{xtype:'datefield',label:'Before',placeholder:'Before...',operator:'<',weight:10,listeners:{change:'up.onInputChange'}},gt:{xtype:'datefield',label:'After',placeholder:'After...',operator:'>',weight:20,listeners:{change:'up.onInputChange'}},eq:{xtype:'datefield',label:'On',placeholder:'On...',operator:'=',separator:!0,weight:30,listeners:{change:'up.onInputChange'}}}},syncFilter:function(){var f=this,e=f.column,i=e.getDataIndex(),k=f.plugin.getQuery(),d=k.getFilters(),j=f.getMenu().getItems().items,a,g,h,c,b;for(g=j.length;g-->0;){c=j[g];if(c.operator){b=null;for(h=i&&d&&d.length;h-->0;){a=d[h];if(a.operator==='=='&&!c.getChecked&&!(typeof a.value==='boolean')){a.operator='='}if(a.property===i&&a.operator===c.operator){b=a.value;break}}if(e.columnFilterTypes[e.xtype]==='date'){b=b&&Ext.Date.parse(b)}c.setValue(b)}}}});Ext.define('Ext.grid.filters.menu.Number',{extend:Ext.grid.filters.menu.Base,alias:'gridFilters.number',menu:{items:{lt:{xtype:'numberfield',label:'Less than',placeholder:'Less than...',floatedPickerAlign:'tl-tr?',operator:'<',weight:10,listeners:{change:'up.onInputChange'}},gt:{xtype:'numberfield',label:'Greater than',placeholder:'Greater than...',floatedPickerAlign:'tl-tr?',operator:'>',weight:20,listeners:{change:'up.onInputChange'}},eq:{xtype:'numberfield',label:'Equal to',placeholder:'Equal to...',floatedPickerAlign:'tl-tr?',operator:'=',separator:!0,weight:30,listeners:{change:'up.onInputChange'}}}},syncFilter:function(){var e=this,h=e.column.getDataIndex(),j=e.plugin.getQuery(),c=j.getFilters(),i=e.getMenu().getItems().items,a,f,g,b,d;for(f=i.length;f-->0;){b=i[f];if(b.operator){d=null;for(g=h&&c&&c.length;g-->0;){a=c[g];if(a.operator==='=='&&!b.getChecked&&!(typeof a.value==='boolean')){a.operator='='}if(a.property===h&&a.operator===b.operator){d=a.value;break}}b.setValue(d)}}}});Ext.define('Ext.grid.filters.menu.String',{extend:Ext.grid.filters.menu.Base,alias:'gridFilters.string',menu:{items:{like:{xtype:'textfield',placeholder:'Like...',operator:'like',listeners:{change:'up.onInputChange'}}}}});Ext.define('Ext.grid.filters.Plugin',{extend:Ext.plugin.Abstract,alias:'plugin.gridfilters',mixins:[Ext.state.Stateful,Ext.mixin.StoreWatcher],config:{activeFilter:null,query:{type:'default',format:'filters'}},stateful:['activeFilter'],init:function(a){this.setOwner(a);a.on({beforeshowcolumnmenu:'onBeforeShowColumnMenu',scope:this})},destroy:function(){this.setOwner(null);this.callParent()},updateActiveFilter:function(a){var b=this.getQuery();if(Ext.isString(a)){b.setSource(a)}else {b.setFilters(a)}},applyQuery:function(a,b){return Ext.Factory.query.update(b,a)},updateQuery:function(a){if(a){var c=this,b=a.compile;a.compile=function(){b.call(a);c.queryModified(a)}}},updateStore:function(b,a){var c=this,d=c.getQuery();c.mixins.storewatcher.updateStore.call(c,b,a);if(a&&!(a.destroying||a.destroyed)){a.getFilters().remove(d)}if(b){b.getFilters().add(d)}},onSetFilter:function(a){this.setActiveFilter(a.rec.data.query)},privates:{onBeforeShowColumnMenu:function(f,d,e){var c=this,a=e.getComponent('filter'),b;if(!a){b=d.createFilter({itemId:'filter',plugin:c,column:d});a=b&&e.add(Ext.Factory.gridFilters(b));if(a){a.setCheckHandler(c.onFilterItemCheckChange.bind(c))}}if(a){a.syncFilter()}},onFilterItemCheckChange:function(a){a.syncQuery()},queryModified:function(){var a=this.cmp.getStore();a=a&&a.getFilters();if(a){a.beginUpdate();++a.generation;a.endUpdate()}}}});Ext.define('Ext.layout.Fit',{extend:Ext.layout.Auto,alias:'layout.fit',isFit:!0,cls:Ext.baseCSSPrefix+'layout-fit',itemCls:Ext.baseCSSPrefix+'layout-fit-item'});Ext.define('Ext.grid.locked.Grid',{extend:Ext.Panel,xtype:'lockedgrid',alternateClassName:'Ext.grid.LockedGrid',isLockedGrid:!0,classCls:Ext.baseCSSPrefix+'lockedgrid',config:{columnMenu:{items:{region:{text:'Locked',iconCls:'fi-lock',menu:{}}}},columns:null,defaultLockedRegion:'left',gridDefaults:null,hideHeaders:!1,itemConfig:{},leftRegionDefaults:{locked:!0,menuItem:{iconCls:'fi-chevron-left'}},regions:{left:{menuItem:{text:'Locked (Left)'},weight:-10},center:{flex:1,menuItem:{text:'Unlocked',iconCls:'fi-unlock'},weight:0},right:{menuItem:{text:'Locked (Right)'},weight:10}},rightRegionDefaults:{locked:!0,menuItem:{iconCls:'fi-chevron-right'}},store:null,variableHeights:!1,enableColumnMove:!0,grouped:!0},weighted:!0,layout:{type:'hbox',align:'stretch'},onRender:function(){this.callParent();this.setupHeaderSync();this.reconfigure()},doDestroy:function(){Ext.undefer(this.partnerTimer);this.callParent()},addColumn:function(g){var a=this,k=a.processColumns(g),h=Array.isArray(g),e=h?[]:null,i=a.gridItems,j=i.length,f,b,d,c;for(b=0;b<j;++b){d=i[b];c=k[d.regionKey];if(c){f=d.addColumn(c);if(h){Ext.Array.push(e,f)}else {e=f[0]}}}if(a.getVariableHeights()){a.doRefresh()}return e},getHorizontalOverflow:function(){var b=this.visibleGrids,c=b&&b.length,a;for(a=0;a<c;++a){if(b[a].getHorizontalOverflow()){return !0}}return !1},getRegion:function(a){return this.regionMap[a]||null},getVerticalOverflow:function(){var a=this.visibleGrids,b=a&&a.length;return b&&a[b-1].getVerticalOverflow()},insertColumnBefore:function(c,a){var b;if(a===null){b=this.gridMap.center.addColumn(c)}else {b=a.getParent().insertBefore(c,a)}if(this.getVariableHeights()){this.doRefresh()}return b},removeColumn:function(a){var b=a.getGrid().removeColumn(a);if(this.getVariableHeights()){this.doRefresh()}return b},createLocation:function(a){var b;if(a.isGridLocation&&a.column){b=a.column.getGrid();if(b.getHidden()){b=null;a=a.record}}if(!b){b=this.regionMap.center.getGrid()}return b.createLocation(a)},setLocation:function(a,c){var b;if(a.isGridLocation&&a.column){b=a.column.getGrid();if(b.getHidden()){b=null;a=a.record}}if(!b){b=this.regionMap.center.getGrid()}b.setLocation(a,c)},updateColumns:function(g){var a=this,d=a.gridItems,f,e,b,c;if(a.isConfiguring){return}f=a.processColumns(g);++a.bulkColumnChange;for(b=0,e=d.length;b<e;++b){c=d[b];c.setColumns(f[c.regionKey]||[])}a.doRefresh();--a.bulkColumnChange},updateGrouped:function(a){this.relayConfig('grouped',a)},updateHideHeaders:function(b){var a=this;a.headerSync=Ext.destroy(a.headerSync);a.relayConfig('hideHeaders',b);a.setupHeaderSync()},updateEnableColumnMove:function(d){var c=this,b,a;if(c.isConfiguring){return}b=c.gridItems;for(a=0;a<b.length;a++){b[a].setEnableColumnMove(d)}},updateItemConfig:function(a){this.relayConfig('itemConfig',a)},updateMaxHeight:function(a){this.relayConfig('maxHeight',a)},updateRegions:function(j){var a=this,e=a.regionMap,r=a.getGridDefaults(),q=a.getVariableHeights(),p=a.getEnableColumnMove(),c,d,n,b,m,k,g,o,h,f,i,l;if(e){for(c in e){a.remove(e[c])}}a.regionMap=e={};a.gridMap=m={};n=a.processColumns(a.getColumns());for(c in j){d=j[c];if(d){d=a.createRegion(c,j[c],n[c],r);d=a.add(d);b=d.getGrid();b.isDefaultPartner=c===a.unlockedKey;b.setEnableColumnMove(p);if(q){b.partnerManager=a;if(b.isDefaultPartner){a.defaultPartner=f=b}}d.on({scope:a,collapse:'onRegionCollapse',expand:'onRegionExpand',hide:'onRegionHide',show:'onRegionShow'});e[c]=d;m[c]=b;g=b.getScrollable();if(g){if(k){k.addPartner(g,'y')}k=g}a.setupGrid(b)}}a.regionItems=i=a.query('>[isLockedGridRegion]');a.gridItems=l=[];for(h=0,o=i.length;h<o;++h){b=i[h].getGrid();l.push(b);if(f&&b!==f){b.renderInfo=f.renderInfo}}a.setupHeaderSync()},applyStore:function(a){return a?Ext.data.StoreManager.lookup(a):null},updateStore:function(a){this.store=a;this.relayConfig('store',a)},updateVariableHeights:function(a){this.relayConfig('variableHeights',a)},registerActionable:function(a){var c=this,e=c.actionables||(c.actionables=[]),b=c.gridItems,d;if(!Ext.Array.contains(e,a)){e.push(a);if(b){for(d=b.length;d-->0;){b[d].registerActionable(a)}}}},unregisterActionable:function(d){var c=this.actionables,a=this.gridItems,b;if(c){Ext.Array.remove(c,d);if(a){for(b=a.length;b-->0;){a[b].registerActionable(d)}}}},statics:{relayGridMethod:function(d,b,c,a){b=b||'visibleGrids';c=c||0;if(a==null){a=null}this.prototype[d]=function(){var e=this[b],f=a;e=e&&e[c];if(e){if(e.isLockedGridRegion){e=e.getGrid()}f=e[d].apply(e,arguments)}return f}},relayGridMethods:function(d){var c=[],b,a;for(b in d){a=d[b];if(a===!0){a=c;c[0]=b}else {a=a.slice();a.unshift(b)}this.relayGridMethod.apply(this,a)}}},privates:{bulkColumnChange:0,partnerOffset:200,itemConfiguring:!1,lastPartnerRequest:0,unlockedKey:'center',claimActivePartner:function(b){var a=this,c=Date.now(),d=a.activePartner;a.partnerTimer=Ext.undefer(a.partnerTimer);if(!d||(c-a.lastPartnerRequest>a.partnerOffset)){a.activePartner=b;a.lastPartnerRequest=c;a.setActivePartner(b)}},configureHeaderHeights:function(){var a=this.headerSync;if(a){a.sync()}},configureItems:function(){var a=this,f=a.gridItems,h=a.regionItems,b,g,d,e,c;a.itemConfiguring=!0;for(b=f.length-1;b>=0;--b){d=f[b];c=h[b];a.setRegionVisibility(c);e=!0;if(!g||!d.getVerticalOverflow()){e=!1;g=!c.hasHiddenContent()}d.setHideScrollbar(e)}a.itemConfiguring=!1},configurePartners:function(){var e=this,d=this.gridItems,f=d.length,a,c,b;a=d.filter(function(a){return e.isRegionVisible(a.region)});e.visibleGrids=a;for(c=0;c<f;++c){b=d[c];b.allPartners=a;b.partners=a.filter(function(a){return a!==b})}},createRegion:function(f,e,c,g){var a=this,d=e.weight,b;a.fireEvent('createregion',a,c);if(d!==0){b=d<0?a.getLeftRegionDefaults():a.getRightRegionDefaults()}return Ext.merge({xtype:'lockedgridregion',regionKey:f,lockedGrid:a,grid:Ext.apply({regionKey:f,columnMenu:a.getColumnMenu(),columns:c,hideHeaders:a.getHideHeaders(),grouped:a.getGrouped(),itemConfig:a.getItemConfig(),store:a.getStore(),variableHeights:a.getVariableHeights()},g)},b,e)},doHorizontalScrollCheck:function(){var d=this.gridItems,e=d.length,a,c,b;for(b=0;b<e;++b){a=d[b];c=a.getScrollable();if(this.isRegionVisible(a.region)&&c){c.setX(a.getHorizontalOverflow()?'scroll':!0)}}},doRefresh:function(){this.reconfigure();this.refreshGrids();this.doHorizontalScrollCheck();this.doVerticalScrollCheck()},doReleaseActivePartner:function(){var a=this;if(!a.destroyed){a.lastPartnerRequest=0;a.activePartner=null;a.setActivePartner(a.defaultPartner)}},doVerticalScrollCheck:function(){var e=this.gridItems,f=e.length,b,d,a,c;for(c=0;c<f;++c){b=e[c];d=b.getScrollable();a=b.region;if(a&&this.isRegionVisible(a)&&d){if(b.getVerticalOverflow()){this.setGridScrollers(a,a.isHidden())}else {this.setGridScrollers(!1)}}}},handleChangeRegion:function(g,c){var a=this,b=g.getGrid(),d=a.gridItems,e=d.indexOf(b),f=d.indexOf(c.getGrid());++a.bulkColumnChange;if(e<f){b.addColumn(c)}else {b.insertColumn(0,c)}b.syncRowsToHeight(!0);--a.bulkColumnChange;a.doHorizontalScrollCheck();a.doVerticalScrollCheck()},handleRegionVisibilityChange:function(c,b){var a=this;if(!a.itemConfiguring){a.configurePartners();a.refreshGrids();a.setGridScrollers(c,b);a.configureHeaderHeights()}},isActivePartner:function(b){var a=this.activePartner;return a?b===a:b.isDefaultPartner},isHeaderVisible:function(a){return this.isRegionVisible(a.getGrid().region)},isRegionVisible:function(a){return !a.hasHiddenContent()},isLastVisibleRegion:function(d){var b=this.regionItems,e=b.indexOf(d),c,a;for(a=b.length-1;a>e;--a){c=b[a];if(!c.hasHiddenContent()){return !1}}return !0},onBeforeShowColumnMenu:function(e,i,a){var g=this.regionItems,j=g.length,h=e.region,f=!1,d,b,c;a=a.getComponent('region');if(a){a=a.getMenu();a.removeAll();d=[];f=!!(e.isDefaultPartner&&e.getVisibleColumns().length===1);for(c=0;c<j;++c){b=g[c];d.push(Ext.applyIf({disabled:f||b===h,handler:this.handleChangeRegion.bind(this,b,i)},b.getMenuItem()))}a.add(d)}},onColumnAdd:function(a){if(!this.setRegionVisibility(a.region)){this.refreshGrids()}this.configureHeaderHeights()},onColumnHide:function(a){if(!this.setRegionVisibility(a.region)){this.refreshGrids()}this.configureHeaderHeights()},onColumnRemove:function(b,c){var a=this;a.fireEvent('columnremove',b,c);if(!a.setRegionVisibility(b.region)){a.refreshGrids()}a.configureHeaderHeights()},onColumnShow:function(a){if(!this.setRegionVisibility(a.region)){this.refreshGrids()}this.configureHeaderHeights()},onGridHorizontalOverflowChange:function(){if(!this.bulkColumnChange){this.doHorizontalScrollCheck()}},onGridResize:function(a){a.syncRowsToHeight(!0)},onGridVerticalOverflowChange:function(b,c){var a=b.region;if(c){this.setGridScrollers(a,a.isHidden())}else {b.setHideScrollbar(!1)}},onRegionCollapse:function(a){this.handleRegionVisibilityChange(a,!0)},onRegionExpand:function(a){this.handleRegionVisibilityChange(a,!1)},onRegionHide:function(a){this.handleRegionVisibilityChange(a,!0)},onRegionShow:function(a){this.handleRegionVisibilityChange(a,!1)},getRegionKey:function(a){var c=this.getDefaultLockedRegion(),b;if(a){b=a===!0?c:a}else {b=this.unlockedKey}return b},processColumns:function(a){var i=this,f={},h,d,b,g,e,c;if(a){if(!Array.isArray(a)){a=[a]}for(d=0,h=a.length;d<h;++d){b=a[d];g=b.locked||(b.getLocked&&b.getLocked());e=i.getRegionKey(g);c=f[e];if(!c){f[e]=c=[]}c.push(b)}}return f},reconfigure:function(){this.configureItems();this.configurePartners();this.configureHeaderHeights()},refreshGrids:function(){var b=this.visibleGrids,c=b.length,a;if(!this.rendered){return}for(a=0;a<c;++a){b[a].syncRowsToHeight(!0)}},relayConfig:function(f,e){var b=this.gridItems,a,d,c;if(b&&!this.isConfiguring){c=Ext.Config.get(f).names.set;for(a=0,d=b.length;a<d;++a){b[a][c](e)}}},releaseActivePartner:function(b){var a=this;if(a.activePartner===b){Ext.undefer(a.partnerTimer);a.partnerTimer=Ext.defer(a.doReleaseActivePartner,a.partnerOffset,a)}},setActivePartner:function(b){var a=this.visibleGrids;Ext.Array.remove(a,b);a.unshift(b)},setGridScrollers:function(d,f){var b=this.gridItems,g=b.length,e,a,c;if(this.isLastVisibleRegion(d)){c=d.getGrid();e=b.indexOf(c)-(f?1:0);for(a=0;a<g;++a){b[a].setHideScrollbar(c.getVerticalOverflow()?a<e:!1)}}},setRegionVisibility:function(a){var c=a.getGrid(),b=!!a.getHidden();a.setHidden(c.getVisibleColumns().length===0);return b!==a.getHidden()},setupGrid:function(c){var b=this.actionables,a;if(b){for(a=0;a<b.length;++a){c.registerActionable(b[a])}}c.on({scope:this,beforeshowcolumnmenu:'onBeforeShowColumnMenu',columnadd:'onColumnAdd',columnhide:'onColumnHide',columnremove:'onColumnRemove',columnshow:'onColumnShow',horizontaloverflowchange:'onGridHorizontalOverflowChange',resize:'onGridResize',verticaloverflowchange:'onGridVerticalOverflowChange'})},setupHeaderSync:function(){var a=this,d=a.gridItems,c,b;if(!a.getHideHeaders()&&!a.isConfiguring){c=[];for(b=0;b<d.length;++b){c.push(d[b].getHeaderContainer())}Ext.destroy(a.headerSync);a.headerSync=new Ext.util.HeightSynchronizer(c,a.isHeaderVisible.bind(a))}}}},function(a){a.relayGridMethods({ensureVisible:!0,gatherData:!0,getSelections:!0,mapToItem:!0,mapToRecord:!0,mapToRecordIndex:!0})});Ext.define('Ext.grid.locked.Region',{extend:Ext.Panel,xtype:'lockedgridregion',isLockedGridRegion:!0,alternateClassName:'Ext.grid.LockedGridRegion',classCls:Ext.baseCSSPrefix+'lockedgridregion',autoSize:null,lockedGrid:null,config:{grid:{xtype:'grid',manageHorizontalOverflow:!1,reserveScrollbar:!0,scrollable:{x:!0,y:!0}},locked:!1,menuItem:{},menuLabel:'',regionKey:''},border:!0,layout:'fit',onResize:function(){},applyMenuItem:function(a){var b=this.getMenuLabel();if(a&&b){a=Ext.applyIf({text:b},a)}return a},updateHidden:function(d,e){var b=this,c=b.lockedGrid.headerSync,a;b.callParent([d,e]);if(d){a=b.getGrid().getNavigationModel();if(a&&a.getLocation()){a.setLocation(null)}}if(c){c.invalidateItems()}},applyGrid:function(a){if(a){a=this.add(a);a.region=this}return a},updateWeight:function(c,b){var a=this,d=a.sideClsMap;a.callParent([c,b]);if(b){a.removeCls(d[Ext.Number.sign(b)])}if(c){a.addCls(d[Ext.Number.sign(c)])}},privates:{sideClsMap:{'-1':Ext.baseCSSPrefix+'lock-start',1:Ext.baseCSSPrefix+'lock-end'}}});Ext.define('Ext.grid.plugin.CellEditing',{extend:Ext.plugin.Abstract,alias:['plugin.gridcellediting','plugin.cellediting'],config:{grid:null,triggerEvent:'doubletap',selectOnEdit:null},init:function(a){this.setGrid(a);a.setTouchAction({doubleTapZoom:!1});a.$cellEditing=!0},getEditor:function(c){var b=c.column,g=b.getDataIndex(),f=c.record,e=b.getEditable(),a,d;if(!(a=e!==!1&&b.getEditor(c.record))&&e){a=Ext.create(b.getDefaultEditor())}if(a){if(!a.isCellEditor){a=Ext.create({xtype:'celleditor',field:a,plugin:this})}b.setEditor(a);a.editingPlugin=this;d=a.getField();d.addUi('celleditor');d.setValidationField(f.getField(g),f)}return a},getActiveEditor:function(){return this.activeEditor},updateGrid:function(b,a){if(a){a.unregisterActionable(this)}if(b){b.registerActionable(this)}},activateCell:function(a){var c=this,f=c.activeEditor,e=c.$previousEditor,b,d,g;if(f&&f.$activeLocation.cell===a.cell){return f.$activeLocation}else {b=c.getEditor(a);if(b){if(e){if(e.isCancelling){e.cancelEdit()}else {e.completeEdit()}}g=b.startEdit(a);if(b.editing){if(c.getSelectOnEdit()){d=c.getGrid().getSelectable();if(d.getCells()){d.selectCells(a,a)}else if(d.getRows()){d.select(a.record)}}c.$previousEditor=b;return g}else {b.onEditComplete(!1,!0)}}}},startEdit:function(b,a){this.activateCell(new Ext.grid.Location(this.getGrid(),{record:b,column:a}))},destroy:function(){var a=this.getGrid();if(a){a.$cellEditing=!1}this.$previousEditor=null;this.callParent()}});Ext.define('Ext.grid.plugin.Clipboard',{extend:Ext.plugin.AbstractClipboard,alias:'plugin.clipboard',formats:{cell:{get:'getCells'},html:{get:'getCellData'},raw:{get:'getCellData',put:'putCellData'}},gridListeners:{initialize:'onCmpReady'},getCellData:function(h,l){var n=this.getCmp(),f=n.getSelectable(),g=f&&f.getSelection(),i=[],m=h==='raw',k=h==='text',a,c,e,d,b,j;if(g){g.eachCell(function(f,g,n){d=f.column;b=f.record;if(d.getIgnoreExport()){return}if(e!==b){e=b;i.push(j=[])}c=d.getDataIndex();a=b.data[c];if(!m){a=d.printValue(a);if(k){a=Ext.util.Format.stripTags(a)}}j.push(a);if(l&&c){b.set(c,null)}})}return Ext.util.TSV.encode(i)},getCells:function(j,h){var i=this.getCmp(),d=i.getSelectable(),e=d&&d.getSelection(),f=[],b,c,a,g;if(e){e.eachCell(function(d){a=d.record;if(c!==a){c=a;f.push(g={model:a.self,fields:[]})}b=d.column.getDataIndex();g.fields.push({name:b,value:a.data[b]});if(h&&b){a.set(b,null)}})}return f},getTextData:function(a,b){return this.getCellData(a,b)},putCellData:function(x,t){var k=this.getCmp(),i=Ext.util.TSV.decode(x,undefined,null),r=i.length,w=r?i[0].length:0,s=k.getHeaderContainer().getVisibleColumns(),j=k.getStore(),p=j?j.getCount()-1:0,o=s.length-1,n=k.getSelectable(),q=n&&n.getSelection(),v,a,c,h,u,d,e,f,b,g,l,m;if(p<=0||o<=0){return}if(q){q.eachCell(function(a){b=a;return !1})}l=b?b.columnIndex:0;m=b?b.recordIndex:0;for(a=0;a<r;a++){v=i[a];e=m+a;if(e>p){break}u=j.getAt(e);f={};d=l;c=0;while(c<w&&d<=o){h=s[d];g=h.getDataIndex();if(!h.getIgnoreExport()){if(g&&(t==='raw'||t==='text')){f[g]=v[c]}c++}d++}u.set(f)}},putTextData:function(b,a){this.putCellData(b,a)},getTarget:function(a){return a.element},privates:{validateAction:function(e){var c=this.getCmp(),a=c.getNavigationModel().getLocation(),b=c.getSelectable(),d=b&&b.getCheckbox();if(a&&a.actionable&&d!==a.column){return !1}}}});Ext.define('Ext.grid.plugin.Editable',{extend:Ext.plugin.Abstract,alias:'plugin.grideditable',config:{grid:null,triggerEvent:'childdoubletap',formConfig:null,defaultFormConfig:{xtype:'formpanel',scrollable:!0,items:[{xtype:'fieldset'}]},toolbarConfig:{xtype:'titlebar',docked:'top',items:[{xtype:'button',ui:'alt',text:'Cancel',align:'left',action:'cancel'},{xtype:'button',ui:'alt',text:'Submit',align:'right',action:'submit'}]},enableDeleteButton:!0},init:function(a){this.setGrid(a);a.setTouchAction({doubleTapZoom:!1})},destroy:function(){this.cleanup();this.callParent()},updateGrid:function(c,b){var a=this.getTriggerEvent();if(b){b.un(a,'onTrigger',this)}if(c){c.on(a,'onTrigger',this)}},onCancelTap:function(){this.sheet.hide()},onSubmitTap:function(){this.form.getRecord().set(this.form.getValues());this.sheet.hide()},onSheetHide:function(){this.cleanup()},getEditorFields:function(d){var e=[],f=d.length,c,b,a;for(c=0;c<f;c++){b=d[c];a=b.ensureEditor();if(a){if(a.isEditor){a=a.getField()}a.setLabel(b.getText());a.setName(b.getDataIndex());e.push(a)}}return e},onTrigger:function(f,h){var a=this,e=h.record,g=a.getFormConfig(),j=a.getToolbarConfig(),i,b,d,c;if(!e||!h.row){return}if(g){a.form=b=Ext.factory(g,Ext.form.Panel)}else {a.form=b=Ext.factory(a.getDefaultFormConfig());i=a.getEditorFields(f.getColumns());b.down('fieldset').setItems(i);b.clearFields=!0}c=Ext.factory(j,Ext.form.TitleBar);a.submitButton=c.down('button[action=submit]');c.down('button[action=cancel]').on('tap','onCancelTap',a);a.submitButton.on('tap','onSubmitTap',a);b.on({change:'onFieldChange',delegate:'field',scope:a});b.setRecord(e);a.sheet=d=f.add({xtype:'sheet',items:[c,b],hideOnMaskTap:!0,enter:'right',exit:'right',right:0,width:320,layout:'fit',stretchY:!0,hidden:!0});if(a.getEnableDeleteButton()){b.add({xtype:'button',text:'Delete',ui:'decline',margin:10,handler:function(){f.getStore().remove(e);d.hide()}})}d.on('hide','onSheetHide',a);d.show()},privates:{onFieldChange:function(){this.submitButton.setDisabled(!this.form.isValid())},cleanup:function(){var b=this,a=b.form;if(a&&!a.destroyed&&a.clearFields){a.removeAll(!1)}b.form=b.sheet=Ext.destroy(b.sheet)}}});Ext.define('Ext.grid.plugin.PagingToolbar',{extend:Ext.plugin.Abstract,alias:['plugin.pagingtoolbar','plugin.gridpagingtoolbar'],mixins:[Ext.mixin.Hookable],config:{grid:null,currentPage:1,pageSize:0,totalCount:0,totalPages:0,loadPages:null,buffer:250,toolbar:{xtype:'pagingtoolbar',docked:'bottom'}},init:function(a){this.setGrid(a);a.add(this.getToolbar())},destroy:function(){this.setBuffer(null);this.setGrid(null);this.callParent()},updateGrid:function(b,c){var a=this;a.gridListeners=a.storeListeners=a.scrollListeners=Ext.destroy(a.gridListeners,a.storeListeners,a.scrollListeners);if(b){a.gridListeners=b.on({updatevisiblecount:'onUpdateVisibleCount',storechange:'onStoreChanged',destroyable:!0,scope:a});a.scrollListeners=b.getScrollable().on({scrollend:'checkPageChange',buffer:100,scope:a});a.bindStore(b.getStore())}},bindStore:function(b){var a=this;Ext.destroy(a.storeListeners);a.getToolbar().setDisabled(!!b);if(!b){return}a.storeListeners=b.on({add:'onTotalCountChange',remove:'onTotalCountChange',refresh:'onTotalCountChange',clear:'onTotalCountChange',destroyable:!0,scope:a});a.setLoadPages(b.pageSize>0);a.cancelBufferTask();if(b.isLoaded()){a.onTotalCountChange(b)}},onStoreChanged:function(b,a){this.bindStore(a)},getPageData:function(){var e=this.getGrid(),a=e.getStore(),b=a.getTotalCount()||a.getCount(),d=this.getLoadPages()?a.pageSize:e.visibleCount,c=Math.ceil(b/d);return {totalCount:b,totalPages:Ext.Number.isFinite(c)?c:1,currentPage:a.currentPage,pageSize:d}},checkPageChange:function(){var a=this,d=a.getGrid(),c=a.getPageSize(),f=a.getCurrentPage(),e=d.topVisibleIndex,b=Math.ceil((e+c)/c);if(d.getStore()&&!a.getLoadPages()&&b>0&&b!==f){a.preventGridScroll=!0;a.setCurrentPage(b);a.preventGridScroll=!1}},updateBuffer:function(c){var a=this,b=a.bufferTask;if(Ext.isNumber(c)){a.bufferTask=b||new Ext.util.DelayedTask(a.bufferTaskRun,a);a.cancelBufferTask()}else if(b){b.cancel();a.bufferTask=null}},cancelBufferTask:function(){if(this.bufferTask){this.bufferTask.cancel()}},loadCurrentPage:function(){this.getGrid().getStore().loadPage(this.getCurrentPage())},bufferTaskRun:function(){this.loadCurrentPage()},applyToolbar:function(b,a){return Ext.factory(b,Ext.Toolbar,a)},updateToolbar:function(a){var b=this;if(a){a.getSliderField().on({change:'onPageChange',dragstart:'onPageSliderDrag',drag:'onPageSliderDrag',dragend:'onPageSliderDragEnd',scope:b});a.getNextButton().on({tap:'onNextPageTap',scope:b});a.getPrevButton().on({tap:'onPreviousPageTap',scope:b})}},onPageChange:function(b,a){this.setCurrentPage(a)},onPageSliderDrag:function(c,b,a){this.isDragging=!0;this.setCurrentPage(Ext.isArray(a)?a[0]:a)},onPageSliderDragEnd:function(){var a=this;a.isDragging=!1;if(a.getBuffer()==='dragend'||a.bufferTask.Id){a.cancelBufferTask();a.loadCurrentPage()}},onNextPageTap:function(){var a=this.getCurrentPage()+1;if(a<=this.getTotalPages()){this.setCurrentPage(a)}},onPreviousPageTap:function(){var a=this.getCurrentPage()-1;if(a>0){this.setCurrentPage(a)}},onTotalCountChange:function(c){var a=this,b=a.getPageData();a.bulkConfigs=!0;a.setConfig(b);a.bulkConfigs=!1;a.syncSummary()},onUpdateVisibleCount:function(d,a){var b=d.getStore(),c;if(b&&!this.getLoadPages()){a-=1;this.setPageSize(a);c=b.getTotalCount()||b.getCount();this.setTotalPages(Math.ceil(c/a))}},updateTotalPages:function(){if(!this.isConfiguring){this.syncSummary()}},updateCurrentPage:function(e){var a=this,d=a.isDragging,c=a.bufferTask,b=a.getBuffer();if(!a.isConfiguring){if(a.getLoadPages()){if(c&&Ext.isNumber(b)&&d){c.delay(b)}else if(b!=='dragend'||!d){a.getGrid().getStore().loadPage(e)}}else {a.syncSummary()}}},updateTotalCount:function(a){if(!this.isConfiguring){this.syncSummary()}},getPageTopRecord:function(e){var b=this.getGrid(),a=b&&b.getStore(),d=this.getPageSize(),c=(e-1)*d;return a&&a.getAt(c)},privates:{syncSummary:function(){var a=this,g=a.getGrid(),d=a.getToolbar(),f=d.getSliderField(),b=a.getCurrentPage(),c=a.getTotalPages(),e;if(a.bulkConfigs){return}d.getSummaryComponent().element.dom.innerHTML=b+' / '+c;f.setMaxValue(c||1);f.setValue(b);f.setDisabled(c<=1);e=a.getPageTopRecord(b);if(g&&!a.preventGridScroll&&e){g.scrollToRecord(e)}d.getNextButton().setDisabled(b===c);d.getPrevButton().setDisabled(b===1)}}});Ext.define('Ext.grid.plugin.RowDragDrop',{extend:Ext.plugin.dd.DragDrop,alias:'plugin.gridrowdragdrop',handle:'.'+Ext.baseCSSPrefix+'gridrow',groups:'gridRowGroup',dropIndicator:Ext.baseCSSPrefix+'grid-drop-indicator',dragText:'{0} selected row{1}',dragIcon:(Ext.supports.Touch&&Ext.supports.TouchEvents)?!0:!1,init:function(a){var b=this;if(a.isLockedGrid){b.addDragIndicator(a)}a.on('initialize',b.onViewInitialize,b)},onViewInitialize:function(b){var a=this,c={};if(a.enableDrag){if(a.proxy){c.proxy=a.proxy}if(a.activateOnLongPress){c.activateOnLongPress=a.activateOnLongPress}a.dragZone=new Ext.grid.GridDragZone(Ext.apply({element:b.bodyElement,view:b,dragText:a.dragText,handle:a.handle,groups:a.groups,scrollAmount:a.scrollAmount,containerScroll:a.containerScroll,constrain:Ext.getBody()},c))}if(a.enableDrop){a.dropZone=new Ext.grid.GridDropZone({view:b,element:b.bodyElement,groups:a.groups,dropIndicator:a.dropIndicator,overCls:a.overCls,copy:a.copy})}if(!b.isLockedGrid){a.addDragIndicator(b)}},addDragIndicator:function(a){if(!this.dragIcon){return}if(a.isLockedGrid){a.on({columnremove:'onColumnRemove',createregion:'onCreateRegion',scope:this})}else if(a.insertColumn){a.insertColumn(0,{xtype:'dragcolumn'})}},onCreateRegion:function(b,a){a=Ext.Array.from(a);if(a.length&&!b.hasDragColumn){a=Ext.Array.insert(a,0,[{xtype:'dragcolumn'}]);b.hasDragColumn=!0}return a},onColumnRemove:function(b,a){if(this.cmp.hasDragColumn&&!a.isDragColumn){Ext.asap(this.handleColumnMove,this)}},handleColumnMove:function(){var d=this.cmp,b=d.query('dragcolumn')[0],f,c,e,a;if(!b){return}f=d.getRegion('left');c=f.getGrid();a=c.getColumns();if(a.indexOf(b)!==-1&&a.length===1){e=d.getRegion('center');e.getGrid().insertColumn(0,b)}else if(a.length&&a.indexOf(b)===-1){c.insertColumn(0,b)}}});Ext.define('Ext.grid.plugin.RowExpander',{extend:Ext.plugin.Abstract,alias:'plugin.rowexpander',config:{grid:null,column:{weight:-1100,xtype:'gridcolumn',align:'center',text:'',width:50,resizable:!1,hideable:!1,sortable:!1,editable:!1,ignore:!0,ignoreExport:!0,cell:{xtype:'expandercell'},menuDisabled:!0}},expanderSelector:'.'+Ext.baseCSSPrefix+'expandercell .'+Ext.baseCSSPrefix+'icon-el',init:function(a){a.setVariableHeights(!0);this.setGrid(a)},destroy:function(){var a=this.getGrid(),b=this.colInstance;if(b&&!a.destroying){a.unregisterColumn(b,!0)}this.callParent()},applyColumn:function(b,a){return Ext.factory(Ext.apply({},b),null,a)},updateGrid:function(a){var b=this;if(a){a.hasRowExpander=!0;a.addCls(Ext.baseCSSPrefix+'has-rowexpander');b.colInstance=a.registerColumn(b.getColumn());a.refreshScrollerSize();a.element.on({tap:'onGridTap',delegate:b.expanderSelector,scope:b})}},onGridTap:function(c){var b=Ext.Component.from(c),a=b.row;if(a.getGrid()===this.getGrid()){a.toggleCollapsed()}}});Ext.define('Ext.grid.plugin.RowOperations',{extend:Ext.plugin.Abstract,alias:['plugin.rowoperations','plugin.multiselection','plugin.gridmultiselection'],alternateClassName:'Ext.grid.plugin.MultiSelection',config:{operation:{lazy:!0,$value:{xtype:'button',ui:'alt decline',align:'right',handler:'me.onOperationTap',margin:'0 0 0 10'}},selectButton:{lazy:!0,$value:{xtype:'button',ui:'alt',align:'right',margin:'0 0 0 10'}},selectionColumn:{sortable:!1},useTriggerButton:!0,triggerText:'Select',cancelText:'Done',deleteText:'Delete',disableSelection:!0,selecting:null},init:function(a){if(!this.useSelectButton()){this.setSelecting(!0)}if(this.getDisableSelection()){a.setDisableSelection(!0)}},destroy:function(){this.setOperation(null);this.setSelectButton(null);this.callParent()},getRecords:function(){var a=this.cmp;return a.getSelections()},onOperationTap:function(){this.deleteSelectedRecords()},onTriggerTap:function(){this.setSelecting(!this.getSelecting())},applyOperation:function(b,a){return Ext.updateWidget(a,b,this,'createOperation')},createOperation:function(c){var b=this,a=Ext.apply({text:b.getDeleteText()},c);a.plugin=b;if(a.handler==='me.onOperationTap'){a.handler='onOperationTap';a.scope=b}return a},updateOperation:function(c){var a,b,d;if(c){a=this.useSelectButton();b=this.cmp.getTitleBar();if(b){if(a){d=a.getParent();b.insert(d.indexOf(a),c)}else {b.add(c)}}}},applySelectButton:function(b,a){return Ext.updateWidget(a,b,this,'createSelectButton')},createSelectButton:function(c){var b=this,a=Ext.apply({text:b.getTriggerText()},c);a.handler='onTriggerTap';a.scope=b;return a},updateSelectButton:function(a){if(a){this.cmp.getTitleBar().add(a)}},updateSelecting:function(b){var a=this,g=a.cmp,d=a.getDisableSelection(),f=a.getOperation(),e=a.useSelectButton(),c=g.getSelectable();if(f){f.setHidden(!b)}if(e){e.setText(b?a.getCancelText():a.getTriggerText())}if(d){g.setDisableSelection(!b)}c.setCheckbox(b&&a.getSelectionColumn());c.setMode(b?'multi':'single');if(d||!b){c.deselectAll()}},privates:{deleteSelectedRecords:function(){var a=this.getRecords(),b=this.cmp.getStore();b.remove(a)},useSelectButton:function(){var a=this,b=a.cmp.getTitleBar();return a.getUseTriggerButton()&&b&&b.getTitle()&&a.getSelectButton()}}});Ext.define('Ext.grid.plugin.Summary',{extend:Ext.plugin.Abstract,alias:['plugin.gridsummary','plugin.summaryrow','plugin.gridsummaryrow'],alternateClassName:'Ext.grid.plugin.SummaryRow',mixins:[Ext.mixin.Bufferable,Ext.mixin.StoreWatcher],config:{row:{lazy:!0,$value:{xtype:'gridsummaryrow',docked:'bottom'}}},inheritUi:!0,storeListeners:{add:'syncSummary',clear:'syncSummary',remove:'syncSummary',refresh:'syncSummary',update:'syncSummary'},bufferableMethods:{syncSummary:5},init:function(c){var d=c.getScrollable(),b,a;this.setOwner(c);b=this.getRow();c.addCls(Ext.baseCSSPrefix+'grid-has-summaryrow');if(d){a=b.getScrollable();if(!a){b.setScrollable({x:!1,y:!1});a=b.getScrollable()}a.addPartner(d,'x')}},destroy:function(){this.setOwner(null);this.callParent()},createRow:function(a){return Ext.apply({viewModel:this.getOwner().getItemConfig().viewModel},a)},applyRow:function(a){if(a){a=this.createRow(a);a=this.cmp.add(a)}return a},updateStore:function(a,b){this.mixins.storewatcher.updateStore.call(this,a,b);if(a&&a.isLoaded()){this.syncSummary()}},privates:{doSyncSummary:function(){var a=this.getRow();if(a){a.syncSummary()}},onContainerScroll:function(d,c){var b=this.getRow(),a;if(!(a=b.getScrollable())){b.setScrollable({x:!1,y:!1});a=b.getScrollable()}a.scrollTo(c,null)}}});Ext.define('Ext.grid.plugin.ViewOptionsListItem',{extend:Ext.dataview.SimpleListItem,xtype:'viewoptionslistitem',toolDefaults:{hideMode:'visibility'},tools:{handle:{zone:'start',cls:Ext.baseCSSPrefix+'no-ripple',iconCls:Ext.baseCSSPrefix+'column-options-sortablehandle'},icon:{zone:'start',iconCls:''},group:{zone:'end',iconCls:Ext.baseCSSPrefix+'column-options-groupindicator',stopEvent:!1},hide:{zone:'end',iconCls:Ext.baseCSSPrefix+'column-options-visibleindicator',stopEvent:!1}},cls:Ext.baseCSSPrefix+'column-options-item',updateRecord:function(b,d){var a=this,c;if(!b){return}a.callParent([b,d]);a.toggleCls(a.hiddenColumnCls,b.get('hidden'));a.toggleCls(a.groupedColumnCls,b.get('grouped'));c=a.lookupTool('icon');c.setIconCls(b.get('header')?a.headerCls:a.leafCls);a.lookupTool('group').setHidden(!b.get('groupable'));a.lookupTool('hide').setHidden(!b.get('hideable'))},privates:{groupedColumnCls:Ext.baseCSSPrefix+'column-options-grouped',headerCls:Ext.baseCSSPrefix+'column-options-folder',hiddenColumnCls:Ext.baseCSSPrefix+'column-options-hidden',leafCls:Ext.baseCSSPrefix+'column-options-leaf'}});Ext.define('Ext.grid.plugin.ViewOptions',{extend:Ext.plugin.Abstract,alias:'plugin.gridviewoptions',config:{grid:null,sheetWidth:320,sheet:{lazy:!0,$value:{xtype:'sheet',cls:Ext.baseCSSPrefix+'gridviewoptions',items:[{docked:'top',xtype:'titlebar',title:'Customize',items:[{xtype:'button',text:'Done',ui:'action',align:'right',role:'donebutton'}]}],hidden:!0,hideOnMaskTap:!0,enter:'right',exit:'right',modal:!0,right:0,layout:'fit',stretchY:!0}},columnList:{lazy:!0,$value:{xtype:'nestedlist',title:'Columns',clearSelectionOnListChange:!1,listConfig:{triggerEvent:null,infinite:!0,mode:'MULTI',variableHeights:!0,plugins:{sortablelist:{source:{handle:'.'+Ext.baseCSSPrefix+'column-options-sortablehandle'}}},itemConfig:{xtype:'viewoptionslistitem'},itemTpl:'{text}'},store:{type:'tree',fields:['id','text','dataIndex','header','hidden','hideable','grouped','groupable'],root:{text:'Columns'}}}},visibleIndicatorSelector:'.'+Ext.baseCSSPrefix+'column-options-visibleindicator',groupIndicatorSelector:'.'+Ext.baseCSSPrefix+'column-options-groupindicator'},init:function(a){this.setGrid(a)},destroy:function(){this.destroyMembers('sheet','columnList');this.callParent()},updateGrid:function(b,a){if(a){a.getHeaderContainer().renderElement.un({contextmenu:'onHeaderContextMenu',longpress:'onHeaderLongPress',scope:this});a.un({columnadd:'onColumnAdd',columnmove:'onColumnMove',columnremove:'onColumnRemove',columnhide:'onColumnHide',columnshow:'onColumnShow',scope:this})}if(b){b.getHeaderContainer().renderElement.on({contextmenu:'onHeaderContextMenu',longpress:'onHeaderLongPress',scope:this})}},applySheet:function(a){if(a&&!a.isComponent){a=Ext.factory(a,Ext.Sheet)}return a},applyColumnList:function(a){if(a&&!a.isComponent){a=Ext.factory(a,Ext.Container)}return a},updateColumnList:function(a){if(a){a.on({listchange:'onListChange',scope:this});a.on('dragsort','onColumnDrag',this,{delegate:'> list'});this.attachTapListeners()}},updateSheet:function(a){a.setWidth(this.getSheetWidth());a.add(this.getColumnList());a.on('hide','onSheetHide',this)},onDoneButtonTap:function(){this.getSheet().hide()},onColumnDrag:function(i,h,b){var d=Ext.getCmp(h.getRecord().get('id')),e=d.getParent(),g=e.getInnerItems(),a,f,c;for(a=0,f=b;a<f;a++){c=g[a];if(!c.isHeaderGroup&&c.getIgnore()){b+=1}}this.isMoving=!0;e.insert(b,d);this.isMoving=!1},attachTapListeners:function(){var a=this.getColumnList().getActiveItem();if(!a.hasAttachedTapListeners){a.onBefore({childtap:'onListChildTap',scope:this});a.hasAttachedTapListeners=!0}},onListChange:function(i,g){var f=g.getStore(),e=f.getNode(),c=e.childNodes,h=c.length,a,d,b;for(a=0;a<h;a++){b=c[a];d=Ext.getCmp(b.getId());b.set('hidden',d.isHidden())}this.attachTapListeners()},onListChildTap:function(e,a){var b=this,c=!1,d=a.event;if(Ext.fly(d.target).is(b.getVisibleIndicatorSelector())){b.onVisibleIndicatorTap(a.row,a.record);c=!0}else if(Ext.fly(d.target).is(b.getGroupIndicatorSelector())){b.onGroupIndicatorTap(a.row,a.record);c=!0}return !c},onVisibleIndicatorTap:function(d,a){var b=!a.get('hidden'),c=Ext.getCmp(a.get('id'));c.setHidden(b);a.set('hidden',b)},onGroupIndicatorTap:function(e,a){var d=this,c=!a.get('grouped'),b=d.getGrid().getStore();this.getListRoot().cascade(function(b){b.set('grouped',!1)});if(c){b.setGrouper({property:a.get('dataIndex')});a.set('grouped',!0)}else {b.setGrouper(null)}},onColumnHide:function(f,d){var c=this.getColumnList(),b=c.getActiveItem(),e=b.getStore(),a=e.getById(d.getId());if(a){a.set('hidden',!0)}},onColumnShow:function(f,d){var c=this.getColumnList(),b=c.getActiveItem(),e=b.getStore(),a=e.getById(d.getId());if(a){a.set('hidden',!1)}},onColumnAdd:function(i,a){var n=this,j,g,b,l,c,f,h,k,m,d,e;if(a.getIgnore()||this.isMoving){return}j=n.getColumnList();g=i.getHeaderContainer();b=a.getParent();l=j.getStore();c=l.getRoot();f=i.getGrouped();h=i.getStore().getGrouper();k=a.getDataIndex();m={id:a.getId(),text:a.getText()||'\xa0',groupable:f&&a.canGroup(),hidden:a.isHidden(),hideable:a.getHideable(),grouped:!!(f&&h&&h.getProperty()===k),dataIndex:a.getDataIndex(),leaf:!0};if(b!==g){e=c.findChild('id',b.getId());if(!e){d=b.getParent().indexOf(b);e=c.insertChild(d,{groupable:!1,header:!0,hidden:b.isHidden(),id:b.getId(),text:b.getText()})}d=b.indexOf(a);c=e}else {d=g.indexOf(a)}c.insertChild(d,m)},onColumnMove:function(a,b,c){this.onColumnRemove(a,b);this.onColumnAdd(a,b,c)},onColumnRemove:function(d,b){var c,a;if(b.getIgnore()||this.isMoving){return}c=this.getListRoot();a=c.findChild('id',b.getId(),!0);if(a){a.parentNode.removeChild(a,!0)}},onHeaderContextMenu:function(a){a.preventDefault()},onHeaderLongPress:function(a){if(!this.getSheet().isVisible()){this.showViewOptions()}},hideViewOptions:function(){var a=this,b=a.getSheet();a.getGrid().getHeaderContainer().setSortable(a.cachedSortable);delete a.cachedSortable;b.hide()},onSheetHide:function(){this.hideViewOptions()},showViewOptions:function(){var a=this,c=a.getSheet(),b;a.setup();if(!c.isVisible()){b=a.getGrid().getHeaderContainer();a.cachedSortable=b.getSortable();b.setSortable(!1);a.updateListInfo();c.show()}},privates:{getListRoot:function(){return this.getColumnList().getStore().getRoot()},setup:function(){var a=this,b=a.getGrid(),c,d;if(a.doneSetup){return}a.doneSetup=!0;d=this.getListRoot();d.removeAll();b.getColumns().forEach(function(c){a.onColumnAdd(b,c)});b.on({columnadd:'onColumnAdd',columnmove:'onColumnMove',columnremove:'onColumnRemove',columnhide:'onColumnHide',columnshow:'onColumnShow',scope:a});c=a.getSheet();c.down('button[role=donebutton]').on({tap:'onDoneButtonTap',scope:a})},updateListInfo:function(){var b=this.getGrid(),e=b.getStore(),a=e.getGrouper(),c=b.getGrouped(),d=a&&a.getProperty();this.getColumnList().getStore().getRoot().cascade(function(e){var b=!1,a;if(c){a=e.get('dataIndex');b=a&&a===d}e.set('grouped',a&&b)})}}});Ext.define('Ext.grid.rowedit.Bar',{extend:Ext.Panel,xtype:'roweditorbar',isRowEditorBar:!0,mixins:[Ext.mixin.Bufferable],config:{active:null,defaultCellUI:null,grid:null},layout:{type:'hbox'},autoSize:!0,scrollable:{monitorScroll:!0,x:!1,y:!1},ui:'roweditor',bufferableMethods:{syncColumns:50},gridHeaderListeners:null,gridListeners:null,doDestroy:function(){this.setActive(!1);this.callParent()},commit:function(){this.eachEditor(function(b,a){a.commit(b)})},eachEditor:function(f){var d=this.items.items,c,b,a,e;for(b=0;b<d.length;++b){a=d[b];if(a.$hasValue){c=a.$driver;if(c){if((e=f(a,c))===!1){break}}}}return e},getEditorValues:function(a,b){this.eachEditor(function(c,d){if(b||(c.$hasValue&&c.isDirty())){(a||(a={}))[c.$column.getDataIndex()]=d.get(c)}});return a},getDriver:function(c){var g=this,b=g.plugin.getDrivers(),a=b[c.xtype],f=b.default,e=c.xtypes,d;if(c.driver){a=Ext.apply({},b[c.driver],a)}if(e){for(d=0;!a&&d<e.length;++d){a=b[e[d]]}}if(a&&a!==f){a=Ext.apply({},a,f)}return a||f},hasVerticalScroller:function(){var c=this.grid,b=c.region,a=b&&b.lockedGrid;if(a){a=a.visibleGrids;return c===a[a.length-1]}return !0},isClean:function(){return !this.isDirty()},isDirty:function(){var a=!1;this.eachEditor(function(b){a=b.isDirty();return !a});return a},isValid:function(){var a=!1;this.eachEditor(function(b){a=b.validate();return a});return a},onHorizontalOverflowChange:function(){this.syncTop()},onScroll:function(b,a){if(a.y!==a.oldY){this.syncTop()}},onVerticalOverflowChange:function(){if(this.hasVerticalScroller()){this.parent.syncWidth()}},onVisibleHeightChange:function(){this.syncTop()},resetChanges:function(){this.eachEditor(function(b,a){a.reset(b)})},setFieldValues:function(a){this.eachEditor(function(c,d){var b=c.$column.getDataIndex();if(b in a){d.set(c,a[b])}})},updateActive:function(g){var a=this,b=a.grid,c,f,e,d;if(!b||b.destroying){g=!1}else {c=b.getScrollable();d=a.getScrollable()}a.gridListeners=a.gridHeaderListeners=a.gridRegionListeners=Ext.destroy(a.gridListeners,a.gridHeaderListeners,a.gridRegionListeners);if(g){a.syncColumns();d.scrollTo(c.getPosition().x,null);c.addPartner(d,'x');a.gridListeners=b.on({scope:a,destroyable:!0,horizontaloverflowchange:'onHorizontalOverflowChange',scroll:'onScroll',verticaloverflowchange:'onVerticalOverflowChange',visibleheightchange:'onVisibleHeightChange'});e=b.region;if(e&&e.isLockedGridRegion){a.gridRegionListeners=e.el.on({scope:a,destroyable:!0,resize:'syncColumns'})}a.gridHeaderListeners=b.getHeaderContainer().on({scope:a,destroyable:!0,columnadd:'syncColumns',columnhide:'syncColumns',columnmove:'syncColumns',columnremove:'syncColumns',columnresize:'syncColumns',columnshow:'syncColumns'})}else {f=a.query('> [isRowEditorItem!=true]');if(f.length){a.remove(f,!1)}if(c){c.removePartner(d)}}},updateGrid:function(b,c){var a=this;a.grid=b;if(a.getActive()){a.updateActive(!0)}},updateRecord:function(){this.syncColumns()},doSyncColumns:function(){var a=this,c=a.grid,h=a.getRecord(),j=a.items.items,g,d,b,f,k,e,i;if(c&&!c.destroying){e=c.region;if(e&&e.lockedGrid){i=e.measure('w');if(c.getVerticalOverflow()&&a.hasVerticalScroller()){i-=Ext.scrollbar.width()}a.setWidth(Math.floor(i))}if(h){g=c.getHeaderContainer().getVisibleColumns();d={editors:[],gap:0,gaps:a.query('> roweditorgap'),index:0,record:h,total:0};for(b=0,k=g.length;b<k;++b){a.syncColumn(g[b],d)}for(b=d.index;b<j.length;){f=j[b];if(f.isRowEditorItem){f.destroy()}else {a.remove(f,!1)}}a.lastSyncRecord=h;a.getScrollable().setSize(d.total,0)}}},syncColumn:function(c,e){var d=this,o=d.plugin.getAdapters(),m=o.default,p=c.getCell(),q=p.xtype,i=o[q],h=c.$editorItemId,n=c.getDataIndex(),f=e.record,k=c.getComputedWidth(),l=e.gap,a,b,j,g;e.total+=k;g=f.data[n];if(!h||!(a=d.getComponent(h))){if(!(a=c.ensureEditor())){if(i!==null){a=Ext.apply({itemId:h=c.getId(),align:c.getAlign(),column:c,width:k},i,m);b=d.getDriver(a)}if(b&&b.read){g=b.read(f,c,d)}else if(!n){i=null}if(i!==null){a[b.prop]=b.convert(g,c)}else {a=null;e.gap+=k}}else {b=d.getDriver(a);h=a.getId();a._validationRecord=f;a.$hasValue=!0;a.addUi('celleditor');b.set(a,g);b.commit(a)}if(a){c.$editorItemId=h;a.$driver=b}}else if(d.lastSyncRecord!==f){b=a.$driver;if(b.read){g=b.read(f,c,d)}a._validationRecord=f;b.set(a,g);b.commit(a)}if(a){if(l){if(!(j=e.gaps.pop())){j=Ext.apply({xtype:'roweditorgap',width:l},m)}else {j.setWidth(l)}d.insert(e.index++,j);e.gap=0}a=d.insert(e.index++,a);a.setWidth(k);if(a.isRowEditorCell){a.$column=c}}},syncTop:function(){this.parent.unanimated().syncTop()}});Ext.define('Ext.grid.rowedit.Cell',{extend:Ext.Component,xtype:'roweditorcell',isRowEditorCell:!0,isRowEditorItem:!0,config:{align:null,column:null},cls:Ext.baseCSSPrefix+'roweditorcell',updateAlign:function(a){this.setUserCls(Ext.grid.cell.Base.prototype.alignCls[a])}});Ext.define('Ext.plugin.TabGuard',{extend:Ext.plugin.Abstract,alias:'plugin.tabguard',tabGuard:!0,tabGuardTemplate:[{tag:'span','aria-hidden':'true',cls:Ext.baseCSSPrefix+'tab-guard-el'}],tabGuardElements:{before:'tabGuardBeforeEl',after:'tabGuardAfterEl'},init:function(a){var b=this;b.decorateComponent(a);if(a.addTool){a.addTool=Ext.Function.createSequence(a.addTool,b.maybeInitTabGuards,b)}if(a.add){a.add=Ext.Function.createSequence(a.add,b.maybeInitTabGuards,b)}if(a.remove){a.remove=Ext.Function.createSequence(a.remove,b.maybeInitTabGuards,b)}a.onRender=Ext.Function.createSequence(a.onRender,b.maybeInitTabGuards,b);a.getTabGuard=b.getTabGuard.bind(b);a.on('show',b.initTabGuards,b)},destroy:function(){var a=this.getCmp();if(a){delete a.addTool;delete a.add;delete a.remove}this.callParent()},privates:{decorateComponent:function(a){var b=this,c=b.tabGuardTemplate;a=a||b.getCmp();a[b.tabGuardElements.before]=a.el.insertFirst(c);a[b.tabGuardElements.after]=a.el.createChild(c)},getTabGuard:function(a){var c=this.getCmp(),b=this.tabGuardElements[a];return c[b]},maybeInitTabGuards:function(){var a=this.getCmp();if(a.rendered&&a.initialized&&a.tabGuard){this.initTabGuards()}},initTabGuards:function(){var b=this,e=b.getCmp(),g=b.tabGuardBeforeIndex||0,f=b.tabGuardAfterIndex||0,c=b.getTabGuard('before'),d=b.getTabGuard('after'),i,h,a;if(!e.rendered||!e.tabGuard){return}a=e.el.findTabbableElements({skipSelf:!0});if(a[0]===c.dom){a.shift()}if(a[a.length-1]===d.dom){a.pop()}if(a&&a.length){if(g==null||f==null){for(i=0;i<a.length;i++){h=+a[i].getAttribute('tabIndex');if(h>0){g=Math.min(g,h);f=Math.max(f,h)}}}c.dom.setAttribute('tabIndex',g);d.dom.setAttribute('tabIndex',f)}else {c.dom.removeAttribute('tabIndex');d.dom.removeAttribute('tabIndex')}if(!c.hasListeners.focusenter){c.on('focusenter',b.onTabGuardFocusEnter,e)}if(!d.hasListeners.focusenter){d.on('focusenter',b.onTabGuardFocusEnter,e)}},onTabGuardFocusEnter:function(i,g){var f=this,d=f.el,e=f.getTabGuard('before'),j=f.getTabGuard('after'),h=i.relatedTarget,a,c,b;a=d.findTabbableElements({skipSelf:!0});if(a[0]===e.dom){a.shift()}if(a[a.length-1]===j.dom){a.pop()}if(a.length===0){b=d}else if(h===d.dom){c=g===e.dom}else if(d.contains(h)){c=!!i.forwardTab}else {c=g===e.dom}b=b||(c?a[0]:a[a.length-1]);if(b){Ext.fly(b).focus(a.length===1?1:0)}}}});Ext.define('Ext.grid.rowedit.Editor',{extend:Ext.dataview.ListItem,xtype:'roweditor',isRowEditor:!0,mixins:[Ext.mixin.StoreWatcher,Ext.panel.Buttons],ownerProperty:'grid',config:{buttonContainer:{xtype:'panel',ui:'roweditor-buttons',alignSelf:'center',border:!0,bodyBorder:!1,defaultType:'button',top:40,weighted:!0,layout:{type:'hbox',align:'center'}},minButtonWidth:null},classCls:Ext.baseCSSPrefix+'roweditor',buttonCtCls:Ext.baseCSSPrefix+'roweditor-button-ct',bubbleDirty:!1,defaultType:'roweditorbar',html:null,nameHolder:!0,plugins:'tabguard',tabGuard:!0,keyMap:{ESC:'cancel',ENTER:'saveAndClose','CmdOrCtrl+Enter':'onSaveAndNext','CmdOrCtrl+Down':'onNextRecord','CmdOrCtrl+Up':'onPrevRecord',HOME:'onHome',END:'onEnd',PAGE_DOWN:'onPageDown',PAGE_UP:'onPageUp',scope:'this'},layout:{type:'hbox'},storeListeners:{refresh:'onStoreRefresh'},activeLocation:null,activeRange:null,recordIndex:-1,initialize:function(){this.callParent();this.el.on({keydown:function(a){a.stopPropagation()}})},cancel:function(){this.hide()},getChanges:function(){return this.getEditorValues(!1)},getEditItem:function(c){var a=null,b=c.$editorItemId;if(b){this.eachBar(function(d){a=d.getComponent(b);return !a})}return a},getEditorValues:function(a){var b={};a=a!==!1;this.eachBar('getEditorValues',[b,a]);return (a||!Ext.Object.isEmpty(b))?b:null},isDirty:function(){return this.eachBar('isClean')===!1},isValid:function(){return this.eachBar('isValid')&&this.parent.fireEvent('validateedit',this.activeLocation)!==!1},resetChanges:function(){this.eachBar('resetChanges')},revertChanges:function(){var b=this,a=b.getRecord();b.resetChanges();a=a&&a.modified;if(a){b.setFieldValues(a)}},saveAndClose:function(){if(this.saveChanges(!0)){this.hide()}},setFieldValues:function(a){this.eachBar('setFieldValues',[a])},updateButtons:function(a){if(a){a.addCls(this.buttonCtCls)}},updateHidden:function(e,f){var a=this,c=a.plugin,b=!e,d=a.activeLocation;a.callParent([e,f]);c.editing=b;if(b){a.unanimated()}else {if(d&&!c.grid.destroying){c.grid.setLocation(d)}a.setRecord(null)}a.eachBar('setActive',[b]);if(b){a.ensureFocus()}},updateRecord:function(c,h){var a=this,f=a.activeLocation,b=a.activeRange,g=a.destroying,e,d;a.callParent([c,h]);a.eachBar('setRecord',[c]);if(c){d=a.grid.store;if(b&&b.store!==d){b=Ext.destroy(b)}if(!b){a.activeRange=b=d.createActiveRange()}a.recordIndex=e=d.indexOf(c);b.goto(e,e+1);a.syncTop();a.ensureFocus();a.activeLocation.fireEditEvent('beginedit',a)}else {if(f&&!g){f.fireEditEvent('canceledit',a)}a.activeLocation=a.activeRange=Ext.destroy(b);if(!g){a.setHidden(!0)}}},onAdded:function(c){var f=c.visibleGrids,e,d,a,b;if(c.isLockedGrid){for(b=0;b<f.length;++b){a=f[b];d=a.getFlex();e=d?{flex:d}:{width:a.getWidth()};this.trackGrid(a,e)}}else {this.trackGrid(c,{flex:1})}},onEnd:function(){this.gotoRecord(this.grid.store.getCount()-1)},onHome:function(){this.gotoRecord(0)},onNextRecord:function(){this.gotoRecord(this.recordIndex+1)},onPageDown:function(){this.advancePage(1)},onPageUp:function(){this.advancePage(-1)},onPrevRecord:function(){this.gotoRecord(this.recordIndex-1)},onResize:function(b,a){this.$height=a;this.syncTop();this.syncWidth()},onSaveAndNext:function(){var a=this,c=a.grid.store,b=a.recordIndex+1;if(a.saveChanges(!0)){if(b<c.getCount()){a.plugin.startEdit(c.getAt(b))}else {a.hide()}}},onStoreRefresh:function(){this.cancel()},adjustButtons:function(b,a){return this.normalizeButtonBar(b,a,null,this.getButtonContainer())},advancePage:function(e){var c=this,b=c.plugin.pickGrid(),f=b.store,d=Math.floor(b.getVisibleHeight()/b.rowHeight),a=c.recordIndex+d*e;a=Math.max(0,Math.min(a,f.getCount()-1));c.gotoRecord(a)},beforeEdit:function(e){var b=this,h=b.plugin,d=b.getRecord(),g=d&&d.phantom,a=h.$autoConfirm,i=b.isDirty(),c=!0,j,f;if(d===e.record){return !1}if(d&&b.isVisible()&&(g||i)){if(g){a=i?a.populated:a.new}else {a=a.updated}if(!a){c=!1;f=h.getDirtyText();if(f){Ext.toast(f)}}else if(a===!0){j=!0}if(c){if(e.beforeEdit(b)===!1){c=!1}else if(j){c=b.saveChanges()}}}else if(e.beforeEdit(b)===!1){c=!1}return c},gotoRecord:function(a){var c=this,b=c.grid.store;if(a>=0&&a<b.getCount()){c.plugin.startEdit(b.getAt(a))}},startEdit:function(b){var a=this,c;a.activeLocation=c=b.clone();c.editor=a;a.setRecord(b.record);if(a.getHidden()){a.show();a.ensureFocus()}},privates:{commit:function(){this.eachBar('commit')},eachBar:function(f,a){var b=this.items,g=typeof f==='function',e,c,h,d;b=b&&b.items;if(g){a=a?a.slice():[];a.unshift(null)}for(e=0,h=b&&b.length;e<h;++e){c=b[e];if(c.isRowEditorBar){if(g){a[0]=c;d=f.apply(null,a)}else {d=c[f].apply(c,a)}if(d===!1){break}}}return d},ensureFocus:function(){var a=this,b;if(a.rendered&&!a.getHidden()){a.eachBar('flushSyncColumns');b=a.down(':focusable:not(button)');if(b){b.focus()}}},getPositionedItemTarget:function(){return this.el},saveChanges:function(f){var a=this,e=a.isValid(),b,c,d;if(e){c=a.getChanges();if(c){a.getRecord().set(c)}b=a.activeLocation;b.commit=f;b.fireEditEvent('edit',a);if(b.commit){a.commit()}b.commit=null}else {d=a.plugin.getInvalidToastMessage();if(d){Ext.toast(d)}}return e},syncBtnTop:function(){var a=this,n=a.el,g=a.getButtons(),f=g.bodyElement,b=g.el,e=b.measure('h'),i=a.plugin,m=i.grid,k=i.pickGrid(),l=a.getTop(),h=a.$height,j=n.getBorderWidth('tb'),c,d;if(m.isLockedGrid){l-=k.getHeaderContainer().measure('h')}if(l+h+e<k.getVisibleHeight()){c=h-j-b.getBorderWidth('t')-f.getBorderWidth('t');d='-below'}else {c=b.getBorderWidth('b')+f.getBorderWidth('b')-e+j;d='-above'}a.setCls(a.buttonCtCls+d);b.setTop(c)},syncTop:function(){var d=this,l=d.plugin,a=l.pickGrid(),i=l.grid,j=d.$height,m=d.getRecord(),k=0,b,f,e,c,g,h;if(m){f=a.mapToItem(m);e=g=a.getVisibleHeight();h=a.getScrollable().getPosition().y;if(i.getHorizontalOverflow()){e-=Ext.scrollbar.height()}if(!a.infinite){}else if(f){c=f.$y0-h}else {c=(d.recordIndex<a.getTopRenderedIndex())?0:g}if(a.isGrouping()){b=a.getPinnedHeader();if(b&&b.$height){k=b.$height}b=a.getPinnedFooter();if(b&&b.$height){e-=b.$height}}c=Math.max(k,Math.min(c,e-(j||0)));if(i.isLockedGrid){c+=a.getHeaderContainer().measure('h')}d.setTop(c);if(j!=null){d.syncBtnTop()}}},syncWidth:function(){this.setRight(this.grid.getVerticalOverflow()?Ext.scrollbar.width():0)},trackGrid:function(b,a){this.add(Ext.apply({grid:b,plugin:this.plugin,record:this.getRecord()},a))},unanimated:function(){var a=this,b=Ext.baseCSSPrefix+'no-transition';a.addCls(b);Ext.defer(function(){if(!a.destroyed){a.removeCls(b)}},50);return a}}});Ext.define('Ext.grid.rowedit.Gap',{extend:Ext.Component,xtype:'roweditorgap',isRowEditorGap:!0,isRowEditorItem:!0,cls:Ext.baseCSSPrefix+'roweditorgap'});Ext.define('Ext.grid.rowedit.Plugin',{extend:Ext.plugin.Abstract,alias:'plugin.rowedit',config:{dirtyText:'You need to commit or cancel your changes',editor:{lazy:!0,$value:{xtype:'roweditor'}},invalidToastMessage:'Cannot save invalid data',triggerEvent:'doubletap',grid:null},cachedConfig:{autoConfirm:'discard',buttons:{ok:{iconCls:'fi-check',text:null,handler:'up.saveAndClose',tooltip:'Save changes and close editor'},cancel:{iconCls:'fi-times',text:null,handler:'up.cancel',tooltip:'Close editor, discarding any changes'},reset:{iconCls:'fi-refresh',text:null,handler:'up.resetChanges',margin:'0 0 0 8',tooltip:'Reset editor to initially displayed values',weight:200},revert:{iconCls:'fi-undo',text:null,handler:'up.revertChanges',margin:'0 0 0 8',tooltip:'Reset editor to record\'s original values',weight:210}},confirmation:{reset:'Are you sure you want to discard the current edits?',revert:'Are you sure you want to revert all edits to this record?'},adapters:{"default":{xtype:'roweditorcell'},checkcell:{xtype:'checkbox',isRowEditorCell:!0,bodyAlign:'center',label:null,$hasValue:!0},rownumberercell:{driver:'rownumber'},expandercell:null,widgetcell:null},drivers:{"default":{prop:'value',commit:function(a){a.resetOriginalValue()},convert:Ext.identityFn,get:function(a){return a.getValue()},reset:function(a){a.reset()},set:function(a,b){if(a.forceSetValue){a.forceSetValue(b)}else {a.setValue(b)}}},checkbox:{prop:'checked',convert:function(a){return !!a},get:function(a){return a.getChecked()},set:function(b,a){b.setChecked(a)}},rownumber:{read:function(c,b,a){return b.printValue(a.parent.recordIndex+1)}},roweditorcell:{prop:'html',commit:Ext.emptyFn,convert:function(a,b){return Ext.htmlEncode(b.printValue(a))},get:function(a){return Ext.htmlDecode(a.getHtml())},reset:Ext.emptyFn,set:function(a,b){a.setHtml(this.convert(b,a.getColumn()))}}}},editing:!1,constructor:function(a){this.callParent([a||{}])},init:function(a){this.callParent([a]);this.setGrid(a)},doDestroy:function(){this.editing=!1;this.setEditor(null);this.setGrid(null);this.callParent()},cancelEdit:function(){if(this.editing){this.getEditor().cancel()}},completeEdit:function(){if(this.editing){this.getEditor().saveAndClose()}},startEdit:function(d,e){var b=this,c=b.getEditor(),a=d;if(!a.isLocation){a=b.grid.createLocation({record:d,column:e})}b.grid.ensureVisible(a.record);if(a.record&&c.beforeEdit(a)!==!1){c.startEdit(a);return !0}return !1},updateAutoConfirm:function(b){var a;if(!Ext.isObject(b)){a={"new":b,populated:b,updated:b}}else {a=Ext.apply({},b);if(!('updated' in a)){a.updated='discard'}if(!('new' in a)){a.new=a.updated}if(!('populated' in a)){a.populated=a.new}}this.$autoConfirm=a},applyEditor:function(b,a){return Ext.updateWidget(a,b,this,'createEditor')},createEditor:function(b){var a=this.getGrid();return Ext.apply({$initParent:a,owner:a,parent:a,plugin:this,hidden:!0,buttons:this.getButtons(),left:0,right:0,top:0},b)},updateEditor:function(a){this.editor=a;if(a){this.getGrid().add(a)}},updateGrid:function(b,a){var c=this;c.grid=b;if(a&&!a.destroying){a.unregisterActionable(this)}if(b){b.registerActionable(this)}},activateCell:function(a){this.startEdit(a)},pickGrid:function(){var a=this.grid;if(a.isLockedGrid){a=a.regionMap.center.getGrid()}return a}});Ext.define('Ext.layout.Center',{extend:Ext.layout.Auto,alias:'layout.center',cls:Ext.baseCSSPrefix+'layout-center',itemCls:Ext.baseCSSPrefix+'layout-center-item'});Ext.define('Ext.layout.Float',{extend:Ext.layout.Auto,alias:'layout.float',config:{direction:'left'},cls:Ext.baseCSSPrefix+'layout-float',itemCls:Ext.baseCSSPrefix+'layout-float-item',updateDirection:function(c,b){var a='direction-';this.getContainer().getRenderTarget().swapCls(a+c,a+b)}});Ext.define('Ext.layout.Form',{extend:Ext.layout.Auto,alias:'layout.form',isFormLayout:!0,cls:Ext.baseCSSPrefix+'layout-form',itemCls:Ext.baseCSSPrefix+'layout-form-item',config:{itemSpacing:null,labelWidth:null},hasLabelWidthCls:Ext.baseCSSPrefix+'has-label-width',updateContainer:function(a,c){var b;b=this.columnGroupElement=a.getRenderTarget().appendChild({cls:Ext.baseCSSPrefix+'colgroup-el',cn:[{cls:Ext.baseCSSPrefix+'label-column-el'},{cls:Ext.baseCSSPrefix+'body-column-el'}]});this.labelColumnElement=b.first();this.callParent([a,c])},updateItemSpacing:function(b){var a=this.getContainer().getRenderTarget();a.setStyle('border-spacing',Ext.Element.addUnits(b))},updateLabelWidth:function(a){this.labelColumnElement.setWidth(a);this.getContainer().getRenderTarget().toggleCls(this.hasLabelWidthCls,a!=null&&a!=='auto')}});Ext.define('Ext.list.Location',{extend:Ext.dataview.Location,isListLocation:!0,dataItem:!1,footer:!1,group:null,header:!1,attach:function(c){var a=this,b;a.callParent([c]);b=a.item;if(b){a.header=b.$dataItem==='header';a.footer=b.$dataItem==='footer';if(a.header||a.footer){a.group=a.getGroup()}else {a.dataItem=!0}}},clone:function(){var b=this,a=b.callParent();a.dataItem=b.dataItem;a.footer=b.footer;a.group=b.group;a.header=b.header;return a},equals:function(a){var b=this;if(a&&a.isListLocation&&a.view===b.view){if(b.sourceElement){return a.sourceElement===b.sourceElement}return b.recordIndex!==a.recordIndex}return !1}});Ext.define('Ext.menu.Separator',{extend:Ext.Component,xtype:'menuseparator',isMenuSeparator:!0,focusable:!1,classCls:Ext.baseCSSPrefix+'menuseparator',ariaRole:'separator'});Ext.define('Ext.mixin.Progressable',{extend:Ext.Mixin,isProgressable:!0,mixinConfig:{id:'progressable'},config:{minProgressInput:0,maxProgressInput:1,minProgressOutput:0,maxProgressOutput:100,dynamic:!0,state:null},_progressActive:!1,_progress:0,_rawProgress:0,onStartProgress:Ext.emptyFn,onUpdateProgress:Ext.emptyFn,onEndProgress:Ext.emptyFn,startProgress:function(){if(!this._progressActive){this._progressActive=!0;this.onStartProgress();this.updateProgress(this.getMinProgressInput())}},updateProgress:function(a,c){var b;if(c&&c!==this.getState()){this.setState(c)}if(a>this.getMaxProgressInput()){a=this.getMaxProgressInput()}if(a<this.getMinProgressInput()){a=this.getMinProgressInput()}b=this.mapValues(a,this.getMinProgressInput(),this.getMaxProgressInput(),this.getMinProgressOutput(),this.getMaxProgressOutput());this._progress=b;this._rawProgress=a;if(this.getDynamic()){this.onUpdateProgress(b)}},endProgress:function(){if(this._progressActive){this._progressActive=!1;this.updateProgress(this.getMaxProgressInput());this.onEndProgress()}},mapValues:function(e,b,d,a,c){return (e-b)/(d-b)*(c-a)+a},setProgress:function(a){this.updateProgress(a)},getProgress:function(){return this._progress},getRawProgress:function(){return this._rawProgress}});Ext.define('Ext.navigation.Bar',{extend:Ext.TitleBar,isToolbar:!0,config:{cls:Ext.baseCSSPrefix+'navigation-bar',ui:'dark',title:null,defaultType:'button',layout:{type:'hbox'},defaultBackButtonText:'Back',animation:{duration:300},useTitleForBackButtonText:null,view:null,android2Transforms:!1,backButton:{align:'left',ui:'back',hidden:!0}},baseCls:Ext.baseCSSPrefix+'toolbar',constructor:function(a){a=a||{};if(!a.items){a.items=[]}this.backButtonStack=[];this.activeAnimations=[];this.callParent([a])},applyBackButton:function(a){return Ext.factory(a,Ext.Button,this.getBackButton())},updateBackButton:function(a,b){if(b){this.remove(b)}if(a){this.add(a);a.on({scope:this,tap:this.onBackButtonTap})}},onBackButtonTap:function(){this.fireEvent('back',this)},updateView:function(h){var a=this,f,g,d,e,c,i,b;a.getItems();f=a.getBackButton();if(h){g=h.getInnerItems();for(d=0;d<g.length;d++){c=g[d];i=(c.getTitle)?c.getTitle():c.config.title;a.backButtonStack.push(i||'&nbsp;')}b=a.getTitleText();if(b===undefined){b=''}a.setTitle(b);e=a.getBackButtonText();if(e){f.setText(e);f.show()}}},onViewAdd:function(f,a){var b=this,c=b.backButtonStack,d,e;b.endAnimation();e=(a.getTitle)?a.getTitle():a.config.title;c.push(e||'&nbsp;');d=c.length>1;b.doChangeView(f,d,!1)},onViewRemove:function(d){var a=this,b=a.backButtonStack,c;a.endAnimation();b.pop();c=b.length>1;a.doChangeView(d,c,!0)},doChangeView:function(p,l,r){var a=this,o=a.leftBox,j=o.element,k=a.titleComponent,f=k.element,b=a.getBackButton(),n=a.getTitleText(),i=a.getBackButtonText(),m=a.getAnimation()&&p.getLayout().getAnimation(),q=m&&m.isAnimation&&p.isPainted(),c,e,d,h,g;if(q){e=a.createProxy(o.element);j.setStyle('opacity','0');b.setText(i);b[l?'show':'hide']();d=a.createProxy(k.element.getParent());f.setStyle('opacity','0');a.setTitle(n);c=a.measureView(e,d,r);h=c.left;g=c.title;a.isAnimating=!0;a.animate(j,h.element);a.animate(f,g.element,function(){f.setLeft(c.titleLeft);a.isAnimating=!1;a.refreshTitlePosition()});a.animate(e.ghost,h.ghost);a.animate(d.ghost,g.ghost,function(){e.ghost.destroy();d.ghost.destroy()})}else {if(l){b.setText(i);b.show()}else {b.hide()}a.setTitle(n)}},measureView:function(k,w,r){var l=this,i=l.element,s=l.leftBox.element,g=l.titleComponent.element,p=Math.min(i.getWidth()/3,200),t=s.getWidth(),e=i.getX(),q=i.getWidth(),c=g.getX(),j=g.getLeft(!0),h=g.getWidth(),v=k.x,m=k.width,u=k.left,a,b,o,n,f,d;d=e-v-m;if(r){a=d;b=Math.min(c-m,p)}else {b=d;a=Math.min(c-e,p)}o={element:{from:{transform:{translateX:a},opacity:0},to:{transform:{translateX:0},opacity:1}},ghost:{to:{transform:{translateX:b},opacity:0}}};d=e-c+t;if((u+h)>c){f=e-c-h}if(r){g.setLeft(0);b=e+q-c-h;if(f!==undefined){a=f}else {a=d}}else {a=e+q-c-h;if(f!==undefined){b=f}else {b=d}a=Math.max(j,a)}n={element:{from:{transform:{translateX:a},opacity:0},to:{transform:{translateX:j},opacity:1}},ghost:{to:{transform:{translateX:b},opacity:0}}};return {left:o,title:n,titleLeft:j}},animate:function(e,c,d){var b=this,a;e.setLeft(0);c=Ext.apply(c,{element:e,easing:'ease-in-out',duration:b.getAnimation().duration||250,preserveEndState:!0});a=new Ext.fx.Animation(c);a.on('animationend',function(){if(d){d.call(b)}},b);Ext.Animator.run(a);b.activeAnimations.push(a)},endAnimation:function(){var c=this.activeAnimations,a,b,d;if(c){d=c.length;for(b=0;b<d;b++){a=c[b];if(a.isAnimating){a.stopAnimation()}else {a.destroy()}}this.activeAnimations=[]}},refreshTitlePosition:function(){if(!this.isAnimating){this.callParent()}},getBackButtonText:function(){var a=this.backButtonStack[this.backButtonStack.length-2],b=this.getUseTitleForBackButtonText();if(!b){if(a){a=this.getDefaultBackButtonText()}}return a},getTitleText:function(){return this.backButtonStack[this.backButtonStack.length-1]},beforePop:function(b){var a;b--;for(a=0;a<b;a++){this.backButtonStack.pop()}},updateHidden:function(a){if(!a){this.element.setStyle({position:'relative',top:'auto',left:'auto',width:'auto'})}else {this.element.setStyle({position:'absolute',top:'-1000px',left:'-1000px',width:this.element.getWidth()+'px'})}},createProxy:function(b){var a,d,e,f,c;a=b.dom.cloneNode(!0);a.id=b.id+'-proxy';b.getParent().dom.appendChild(a);a=Ext.get(a);d=b.getX();e=b.getY();f=b.getLeft(!0);c=b.getWidth();a.setStyle('position','absolute');a.setX(d);a.setY(e);a.setHeight(b.getHeight());a.setWidth(c);return {x:d,y:e,left:f,width:c,ghost:a}}});Ext.define('Ext.navigation.View',{extend:Ext.Container,alternateClassName:'Ext.NavigationView',xtype:'navigationview',config:{navigationBar:{docked:'top'},defaultBackButtonText:'Back',useTitleForBackButtonText:!1,layout:{type:'card',animation:{duration:300,easing:'ease-out',type:'slide',direction:'left'}}},baseCls:Ext.baseCSSPrefix+'navigationview',initialize:function(){var a=this,b=a.getNavigationBar(),c;a.callParent();if(b){b.on({back:a.onBackButtonTap,scope:a});a.relayEvents(b,'rightbuttontap');a.relayEvents(a,{add:'push',remove:'pop'})}},onBackButtonTap:function(){this.pop();this.fireEvent('back',this)},push:function(a){return this.add(a)},pop:function(a){if(this.beforePop(a)){return this.doPop()}},beforePop:function(a){var g=this,c=g.getInnerItems(),e,b,f,d;if(Ext.isString(a)||Ext.isObject(a)){e=c.length-1;for(b=e;b>=0;b--){if((Ext.isString(a)&&Ext.ComponentQuery.is(c[b],a))||(Ext.isObject(a)&&a===c[b])){a=e-b;break}}if(!Ext.isNumber(a)){return !1}}f=c.length;if(!Ext.isNumber(a)||a<1){a=1}a=Math.min(a,f-1);if(a){g.getNavigationBar().beforePop(a);d=c.splice(-a,a-1);for(b=0;b<d.length;b++){this.remove(d[b])}return !0}return !1},doPop:function(){var c=this,a=this.getInnerItems(),b;c.remove(a[a.length-1]);if(a.length<3&&this.$backButton){this.$backButton.hide()}if(this.$titleContainer){b=a[a.length-2];this.$titleContainer.setTitle((b.getTitle)?b.getTitle():b.config.title)}return this.getActiveItem()},getPreviousItem:function(){var a=this.getInnerItems();return a[a.length-2]},updateUseTitleForBackButtonText:function(b){var a=this.getNavigationBar();if(a){a.setUseTitleForBackButtonText(b)}},updateDefaultBackButtonText:function(b){var a=this.getNavigationBar();if(a){a.setDefaultBackButtonText(b)}},onBackButtonContainerAdd:function(b,a){a.on({scope:this,show:this.refreshBackButtonContainer,hide:this.refreshBackButtonContainer});this.refreshBackButtonContainer()},onBackButtonContainerRemove:function(b,a){a.un({scope:this,show:this.refreshBackButtonContainer,hide:this.refreshBackButtonContainer});this.refreshBackButtonContainer()},refreshBackButtonContainer:function(){var c,b,d,a;if(!this.$backButtonContainer){return}c=this.$backButtonContainer;b=c.items;for(a=0;a<b.length;a++){d=b.get(a);if(!d.isHidden()){this.$backButtonContainer.show();return}}this.$backButtonContainer.hide()},applyNavigationBar:function(b){var a=this,c;if(!b){b={hidden:!0,docked:'top'}}a.getItems();if(b.title){delete b.title}b.view=a;b.useTitleForBackButtonText=a.getUseTitleForBackButtonText();if(b.splitNavigation){a.$titleContainer=a.add({docked:'top',xtype:'titlebar',ui:'light',title:a.$currentTitle||''});c=(b.splitNavigation===!0)?{}:b.splitNavigation;a.$backButtonContainer=a.add({xtype:'toolbar',docked:'bottom',hidden:!0});a.$backButtonContainer.on({scope:a,add:a.onBackButtonContainerAdd,remove:a.onBackButtonContainerRemove});a.$backButton=a.$backButtonContainer.add({xtype:'button',text:'Back',hidden:!0,ui:'back'});if(b.items){a.$backButtonContainer.add(b.items)}if(c.items){a.$titleContainer.add(c.items)}a.$backButton.on({scope:a,tap:a.onBackButtonTap});b={hidden:!0,docked:'top'}}return Ext.factory(b,Ext.navigation.Bar,this.getNavigationBar())},updateNavigationBar:function(a,b){if(b){this.remove(b,!0)}if(a){this.add(a)}},applyActiveItem:function(b,c){var a=this,d=a.getInnerItems();a.getItems();if(!a.initialized){b=d.length-1}return this.callParent([b,c])},doResetActiveItem:function(b){var a=this,d=a.getInnerItems(),c=a.getLayout().getAnimation();if(b>0){if(c&&c.isAnimation){c.setReverse(!0)}a.setActiveItem(b-1);a.getNavigationBar().onViewRemove(a,d[b],b)}},doRemove:function(){var a=this.getLayout().getAnimation();if(a&&a.isAnimation){a.setReverse(!1)}this.callParent(arguments)},onItemAdd:function(a,c){var b=this,e=b.initialized,d;if(a&&a.getDocked()&&a.config.title===!0){b.$titleContainer=a}b.doItemLayoutAdd(a,c);if(e&&a.isInnerItem()){b.setActiveItem(a);d=this.getNavigationBar();if(d){this.getNavigationBar().onViewAdd(b,a,c)}if(b.$backButtonContainer){b.$backButton.show()}}if(a&&a.isInnerItem()){b.updateTitleContainerTitle((a.getTitle)?a.getTitle():a.config.title)}if(e){b.fireEvent('add',b,a,c)}},updateTitleContainerTitle:function(a){if(this.$titleContainer){this.$titleContainer.setTitle(a)}else {this.$currentTitle=a}},reset:function(){return this.pop(this.getInnerItems().length)}});Ext.define('Ext.panel.Collapser',{mixins:[Ext.mixin.ConfigProxy],config:{animation:{duration:250},collapseAnimation:null,collapsed:!1,collapseToolText:'Collapse panel',direction:'top',drawer:{xtype:'panel',border:!0,top:0,left:0,cls:Ext.baseCSSPrefix+'drawer'},drawerHideDelay:500,dynamic:null,expandAnimation:null,expandToolText:'Expand panel',target:null,tool:{xtype:'tool',weight:900},useDrawer:!0,state:'expanded'},proxyConfig:{target:['titleCollapse']},collapsed:!1,collapsing:!1,expanded:!1,expanding:!1,extraSpace:0,$unanimated:!1,constructor:function(a){this.initConfig(a)},initialize:function(){var a=this;a.rendered=!0;a.ensureCollapseTool();a.initialized=!0;if(a.getCollapsed()){a.doExpandCollapse(!0,!0)}a.setupHeaderListeners()},destroy:function(){var a=this,b=a.activeOperation,c=a.drawerTask;a.destroying=!0;if(c){c.cancel()}if(b){b.anim.end()}if(!a.getTarget().destroying){a.reattachBodyWrap()}Ext.destroy(a.headerListeners,a.drawerListeners,a.drawer,a.collapsibleTool);a.callParent()},collapse:function(a){return this.toggleCollapsed(!0,a)},expand:function(a){return this.toggleCollapsed(!1,a)},hideDrawer:function(b){var a=this,d=a.drawer,c;if(a.isSliding||!a.getCollapsed()||!d||!a.drawerVisible){return}b=a.parseAnimation(!1,b);if(b){a.getTarget().element.addCls(a.slidingCls);c=a.doAnimation(!1,a.getSlideOutCfg(a.getDirection(),a.afterDrawerHide,b));a.isSliding=!0}else {a.afterDrawerHide();c=Ext.Promise.resolve()}return c},isDynamic:function(){var a=this.getDynamic(),b;if(a===null){b=this.getTarget();a=b.getFloated()||!b.getRefOwner()}return a},showDrawer:function(c){var a=this,k=a.savedProps,d=a.getDirection(),l=a.getTarget(),e=a.getHeaderSize(),j=a.endDirection,m=a.verticalMap[d],b,i,h,g,f;if(a.isSliding||!a.getCollapsed()||!a.getDrawer()){return Ext.Promise.resolve()}b=a.createDrawer();if(m){h='100%';i=k.measuredWidth||a.defaultSize;b.setTop(0);b.setBottom(0);if(j[d]){b.setLeft(null);b.setRight(e)}else {b.setRight(null);b.setLeft(e)}}else {i='100%';h=k.measuredHeight||a.defaultSize;b.setRight(0);b.setLeft(0);if(j[d]){b.setTop(null);b.setBottom(e)}else {b.setBottom(null);b.setTop(e)}if(l.getHeader()&&l.getHeaderPosition()===d){f=b.ensureHeader();if(f){f.hide()}}}a.configureDrawer(b,i,h);b.show();c=a.parseAnimation(!1,c);a.isSliding=!0;if(c){c=a.getSlideInCfg(d,a.afterDrawerShow,c);c.preserveEndState=!0;a.getTarget().element.addCls(a.slidingCls);g=a.doAnimation(!1,c)}else {a.afterDrawerShow();g=Ext.Promise.resolve()}return g},toggleCollapsed:function(c,b){var a=this,d=a.getTarget(),h=a.getCollapsed(),e,f,g;if(a.activeOperation){a.activeOperation.anim.end();h=a.getCollapsed()}if(c===h){return Ext.Promise.resolve()}if(a.$unanimated){a.$unanimated=b=!1}else if(a.rendered){b=a.parseAnimation(c,b)}else {b=null}e='before'+(c?'collapse':'expand');if(a.initialized&&d.hasListeners[e]){f={animation:b};if(d.fireEvent(e,d,f)===!1){return Ext.Promise.resolve()}b=f.animation}a.hideDrawer(!1);if(b){g=a.doExpandCollapseAnimated(c,b)}else {g=a.doExpandCollapse(c)}return g},applyAnimation:function(a){if(a===!0){a={}}return a},updateCollapsed:function(b){var a=this;if(a.rendered&&!a.preventUpdate){a._collapsed=!b;a.toggleCollapsed(b)}else {a.setState(b?'collapsed':'expanded')}},updateCollapseToolText:function(a){this.setToolTextIf(a,this.getCollapsed())},updateDirection:function(c,b){var a=this;if(!a.isConfiguring){if(a.getCollapsed()){a.getTarget().moveHeaderPosition(c,b)}a.ensureCollapseTool()}},updateDynamic:function(c){var a=this,b=a.drawer;if(c&&b){if(a.hasDetachedBody){a.reattachBodyWrap()}a.drawer=Ext.destroy(b)}},updateExpandToolText:function(a){this.setToolTextIf(a,!this.getCollapsed())},updateState:function(b,a){var c=this,d=c.getTarget();if(a){c[a]=d[a]=!1}if(b){c[b]=d[b]=!0}},updateTitleCollapse:function(){if(this.rendered){this.setupHeaderListeners()}},updateUseDrawer:function(){if(this.rendered){this.setupHeaderListeners()}},privates:{animateEndCls:Ext.baseCSSPrefix+'placeholder-animate-end',collapsingDirections:{top:['up','down'],left:['left','right'],bottom:['down','up'],right:['right','left']},defaultSize:300,endDirection:{right:1,bottom:1},headerChangePosition:{top:['top','bottom'],left:['left','right'],bottom:['bottom','top'],right:['right','left']},hasDetachedBody:!1,rendered:!1,slidingCls:Ext.baseCSSPrefix+'sliding',verticalMap:{right:1,left:1},afterAnimation:function(a){a.deferred.resolve();this.activeOperation=null},afterDrawerHide:function(){var a=this,c=a.getTarget(),d=a.activeOperation,e=a.drawer,b;c.element.removeCls(a.slidingCls);a.drawerVisible=a.isSliding=!1;if(!a.destroying){a.drawerListeners=Ext.destroy(a.drawerListeners);e.hide();b=e.getHeader();if(b){b.show()}c.fireEvent('drawerhide',c)}if(d){a.afterAnimation(d)}},afterDrawerShow:function(){var a=this,f=a.activeOperation,c,d,b=a.getTarget(),e;a.isSliding=!1;a.drawerVisible=!0;if(!a.destroying){b.element.removeCls(a.slidingCls);d={mouseleave:'handleElMouseLeave',mouseenter:'handleElMouseEnter',scope:a,destroyable:!0};c=[Ext.on('mousedown','handleGlobalDrawerEvent',a,{destroyable:!0}),Ext.getDoc().on('mousemove','handleGlobalDrawerEvent',a,{destroyable:!0}),a.drawer.element.on(d)];e=b.getHeader();if(e){c.push(e.element.on(d))}a.drawerListeners=c;b.fireEvent('drawershow',b)}if(f){a.afterAnimation(f)}},afterExpandCollapseAnimation:function(){var c=this,a=c.activeOperation,e=c.getTarget(),g=a.animCls,d,b,f;if(!c.destroying){b=e.getHeader();if(a.placeHolder){c.drawer.hide()}if(a.reattach){c.reattachBodyWrap()}if(b&&a.restoreHeaderVis){b.element.setVisibility(!0)}if(g){e.element.removeCls(g)}if(a.restore){d=a.anim.config;if(d.to.height){d.element.setHeight(null)}if(d.to.width){d.element.setWidth(null)}c.restoreProps();f=e.bodyWrapElement;f.setWidth(null).setHeight(null);b=b&&b.element;if(b){b.setWidth(null).setHeight(null)}}c.afterExpandCollapse(a.collapsed,!0)}c.afterAnimation(a)},afterExpandCollapse:function(b){var c=this,a=c.getTarget(),g=c.headerChangePosition,e=c.getDirection(),d=a.getHeaderPosition(),f=b?'collapse':'expand';a.bodyWrapElement.setVisible(!b);if(g[d].indexOf(e)<0){a.moveHeaderPosition(b?e:d,!b?e:d)}c.setState(b?'collapsed':'expanded');c.preventUpdate=!0;a._collapsed=!b;a.setCollapsed(b);c.preventUpdate=!1;c.ensureCollapseTool();a.toggleCls(c.expandedCls,!b);if(c.initialized&&a.hasListeners[f]){a.fireEvent(f,a)}a.setCollapsed(b)},createDrawer:function(){var b=this,a=b.drawer;if(!a){b.drawer=a=Ext.create(b.getDrawer());a.bodyWrapElement.hide()}return a},configureDrawer:function(a,g,f,e){var b=this,d=b.getTarget(),c=d.bodyWrapElement;a.setTitle(d.getTitle());a.setWidth(g);a.setHeight(f);if(e){a.setTop(0);a.setRight(null);a.setBottom(null);a.setLeft(0)}a.element.append(c);b.getContainerTarget().appendChild(a.element);c.show();a.show();b.hasDetachedBody=!0},doAnimation:function(e,d,a){var b,c;a=a||{};b=a.deferred||new Ext.Deferred();c=new Ext.fx.Animation(d);a.anim=c;a.deferred=b;a.collapsed=e;this.activeOperation=a;Ext.Animator.run(c);return b.promise},doExpandCollapse:function(d,e){var a=this,c=a.getTarget(),b;if(a.rendered){if(d){a.saveProps();c.setFlex(null);b=a.getDirection();if(b==='top'||b==='bottom'){c.setHeight(null)}else {c.setWidth(null)}}else {a.reattachBodyWrap();a.restoreProps()}a.afterExpandCollapse(d)}return e?null:Ext.Promise.resolve()},doExpandCollapseAnimated:function(b,c){var a=this;a.setState(b?'collapsing':'expanding');if(a.isDynamic()){return a.doExpandCollapseDynamic(b,c)}return a.doExpandCollapsePlaceholder(b,c)},doExpandCollapseDynamic:function(f,u){var a=this,b=a.getTarget(),c=b.getHeaderPosition(),d=a.getDirection(),m=b.element,l=b.bodyWrapElement,t=b.getHeader(),g=t&&t.element,h={},i={},e=d==='top'||d==='bottom',r=c==='top'||c==='bottom',k=a.getHeaderSize(),j=c!==d,s=a.extraSpace,n,o,p,q;a.extraSpace=0;if(f){p=a.saveProps();n=p.measuredHeight;o=p.measuredWidth;if(e){a.measureAndSet(l,'Height');if(j){a.measureAndSet(g,'Height')}h.height=n;i.height=r?k:0;b.setHeight(null);b.setMinHeight(null)}else {a.measureAndSet(l,'Width');if(j){a.measureAndSet(g,'Width')}h.width=o;i.width=r?k:0;b.setWidth(null);b.setMinWidth(null)}b.setFlex(null)}else {j=c!==d;a.reattachBodyWrap();if(e){m.setHeight(null)}else {m.setWidth(null)}a.restoreProps(!0);if(j){b.moveHeaderPosition(f?d:c,!f?d:c)}l.show();if(g){g.setWidth(null).setHeight(null)}a.measureAndSet(l,e?'Height':'Width',!0);q=m.measure();n=q.height;o=q.width;b.setFlex(null);a.measureAndSet(g,e?'Height':'Width');if(e){h.height=k;i.height=n+s;b.setHeight(null)}else {h.width=k;i.width=o+s;b.setWidth(null)}}return a.doAnimation(f,Ext.apply({scope:a,callback:a.afterExpandCollapseAnimation,element:m,preserveEndState:!0,from:h,to:i},u),{restore:!f})},doExpandCollapsePlaceholder:function(d,s){var a=this,v=a.collapsingDirections,c=a.getTarget(),h=c.element,f=c.getHeaderPosition(),b=a.getDirection(),o=b==='top'||b==='bottom',u=f==='top'||f==='bottom',e=c.getHeader(),q=o!==u,r=a.getContainerTarget().getBox(),k,l,g,m,j,p,i,n,t;g=a.createDrawer();if(d){i=a.saveProps();k=i.measuredHeight;l=i.measuredWidth}else {a.reattachBodyWrap();a.restoreProps(!0);n=h.measure();k=n.height;l=n.width}a.configureDrawer(g,l,k,!0);g.setLeft(h.getLeft()-r.left);g.setTop(h.getTop()-r.top);if(o){c.setHeight(null);c.setMinHeight(null)}else {c.setWidth(null);c.setMinWidth(null)}c.setFlex(null);if(d){if(q&&v[f].indexOf(b)<0){c.moveHeaderPosition(d?b:f,!d?b:f)}if(e){e.element.setVisibility(!1)}m=a.getSlideOutCfg(b,function(){if(a.destroying){return}t=a.activeOperation;g.hide();if(e){e.element.setVisibility(!0);a.doAnimation(d,{type:'slideIn',element:e.element,reverse:!0,direction:b,isElementBoxFit:!1,scope:a,callback:a.afterExpandCollapseAnimation},t)}else {a.afterExpandCollapseAnimation()}},s)}else {m=a.getSlideInCfg(b,a.afterExpandCollapseAnimation,s);if(a.endDirection[b]){j=a.animateEndCls;h.addCls(j)}if(!q){e.element.setVisibility(!1);p=!0}}return a.doAnimation(d,m,{placeHolder:!0,restore:!d,reattach:!0,animCls:j,restoreHeaderVis:p})},ensureCollapseTool:function(){var a=this,d=a.getTarget(),h=d.ensureHeader(),g=a.getDirection(),c=a.getCollapsed(),e=a.collapsingDirections,b=a.collapsibleTool,f=a.getTool();if(h&&f){if(!b){a.collapsibleTool=b=d.addTool(Ext.apply({handler:a.onToggleToolTap,scope:a,$internal:!0},f))[0]}b.setType(c?e[g][1]:e[g][0]);b.setTooltip(c?a.getExpandToolText():a.getCollapseToolText())}else {a.collapsibleTool=Ext.destroy(b)}},getAnimationFor:function(a){var b=a?this.getCollapseAnimation():this.getExpandAnimation();return b||this.getAnimation()},getContainerTarget:function(){return this.getTarget().element.parent()},getDrawerTask:function(){var a=this,b=a.drawerTask;if(!b){a.drawerTask=b=new Ext.util.DelayedTask(a.hideDrawer,a)}return b},getHeaderSize:function(){var b=this.getTarget().ensureHeader(),a=b&&b.element;return a?Math.min(a.measure('h'),a.measure('w')):0},getSlideInCfg:function(b,c,a){return Ext.apply({type:'slideIn',direction:b,reverse:!0,element:this.drawer.element,isElementBoxFit:!1,scope:this,callback:c},a)},getSlideOutCfg:function(b,c,a){return Ext.apply({type:'slideOut',direction:b,element:this.drawer.element,isElementBoxFit:!1,scope:this,callback:c},a)},handleElMouseEnter:function(){this.getDrawerTask().cancel()},handleElMouseLeave:function(d){var a=this,b=d.getRelatedTarget(),c=a.getTarget();if(b&&(c.owns(b)||a.drawer.owns(b))){return}a.getDrawerTask().delay(a.getDrawerHideDelay())},handleGlobalDrawerEvent:function(c){var a=this,d=a.drawer,e=a.getTarget(),b;b=a.getDrawerTask();if(e.owns(c)||d.owns(c)){b.cancel()}else {b.delay(a.getDrawerHideDelay())}},measureAndSet:function(a,c,e){var b,d;if(!a){return}b='set'+c;d='get'+c;if(e){a[b](null)}a[b](a[d](!1,!0))},onHeaderTap:function(e){var a=this,d=a.getTitleCollapse(),b=a.getCollapsed(),c=Ext.Component.from(e);if(!(c.isPanelTitle||c.isPanelHeader)){return}if(d){a.toggleCollapsed(!b)}else if(a.getUseDrawer()&&b&&!a.isDynamic()){a[a.drawerVisible?'hideDrawer':'showDrawer']()}},onToggleToolTap:function(){this.toggleCollapsed(!this.getCollapsed())},parseAnimation:function(b,a){if(a===undefined){a=this.getAnimationFor(b)}else if(a){if(typeof a==='boolean'){a={}}a=Ext.apply({},a,this.getAnimationFor(b))}return a},reattachBodyWrap:function(){if(this.hasDetachedBody){this.getTarget().reattachBodyWrap();this.hasDetachedBody=!1}},restoreProps:function(e){var d=this,b=d.getTarget(),a=d.savedProps,c;if(a){c=a.flex;if(c){b.setFlex(c)}b.setMinHeight(a.minHeight);b.setMinWidth(a.minWidth);b.setHeight(a.height);b.setWidth(a.width);if(!e){d.savedProps=null}}},saveProps:function(){var d=this,a=d.getTarget(),c=a.element.measure(),b;d.savedProps=b={flex:a.getFlex(),minHeight:a.getMinHeight(),minWidth:a.getMinWidth(),height:a.getHeight(),width:a.getWidth(),measuredWidth:c.width,measuredHeight:c.height};return b},setToolTextIf:function(a,c){var b=this.collapsibleTool;if(a&&b&&c){b.setTooltip(a)}},setupHeaderListeners:function(){var a=this,b=a.getTarget().getHeader();a.headerListeners=Ext.destroy(a.headerListeners);if(b&&(a.getUseDrawer()||a.getTitleCollapse())){a.headerListeners=b.element.on({destroyable:!0,scope:a,tap:'onHeaderTap'})}},unanimated:function(a){this.$unanimated=!0;if(a){a(this);this.$unanimated=!1}return this}}});Ext.define('Ext.panel.Accordion',{extend:Ext.Panel,xtype:'accordion',mixins:[Ext.mixin.Bufferable],config:{defaultPanelUI:'accordion',expandedFirst:!1,openable:1},layout:{type:'vbox'},bufferableMethods:{syncState:'asap'},accordionCls:Ext.baseCSSPrefix+'layout-accordion',accordionSelector:'> [isPanel][collapsible][isInner]',prioritySeed:0,initialize:function(){var a=this,b=a.accordionSelector;a.callParent();a.on({scope:a,delegate:b,priority:-1000,beforeexpand:'onPanelBeforeExpand',beforehiddenchange:'onBeforePanelHiddenChange',hiddenchange:'onPanelHiddenChange',beforecollapse:{delegate:b,fn:'onPanelBeforeCollapse',priority:1000}});a.getRenderTarget().addCls(a.accordionCls);a.syncStateNow()},onItemAdd:function(a,g){var b=this,f=a.initialConfig,e=f.collapsed,c,d;if(a.isPanel&&a.isInnerItem()){c=a.getCollapsible();if(c!==!1){if(!a.getUi()&&!f.ui){a.$accordionUI=b;a.setUi(b.getDefaultPanelUI())}if(c){c.setUseDrawer(!1);c.setDynamic(!0)}else {a.setCollapsible({collapsed:e,dynamic:!0,useDrawer:!1})}d=++b.prioritySeed/-100000;if(b.isConfiguring){if(e){d-=1}else if(e===!1){d+=1}}else {b.collapsePanelNoAnim(a,!0)}a.$accordionPriority=d}}b.callParent([a,g])},onItemRemove:function(a,d,c){var b=this;if(a.$accordionUI===b&&a.getUi()===b.getDefaultPanelUI()){a.$accordionUI=null;a.setUi(null)}b.syncState();b.callParent([a,d,c])},privates:{_sortFn:function(a,b){return (a.$accordionPriority||0)-(b.$accordionPriority||0)},collapsePanelNoAnim:function(a,b){var c='before'+(b?'collapse':'expand');a.suspendEvent(c);a.getCollapsible().unanimated(function(c){c.setCollapsed(b)});a.resumeEvent(c)},doSyncState:function(l){var f=this,k=f.getAccordionPanels(),e=k.$expanded,p=f.getOpenable()||9.0E9,q=f.getLayout().getVertical(),m=q?'height':'width',i=0,o=l&&!l.animation,a,g,d,b,h,c,n,j;if(!e.length){c=k.pop();if(c){f.collapsePanelNoAnim(c,!1)}}else {while(p<e.length){c=e.shift();if(o){f.collapsePanelNoAnim(c,!0)}else {c.setCollapsed(!0)}a=c.getCollapsible().activeOperation;a=a&&a.anim;a=a&&a.config;if(a&&a.from&&a.to){i+=a.from[m]-a.to[m]}}}if(i){j=0;for(h=0,n=e.length;h<n;++h){b=(c=e[h]).getFlex();if(b){j+=b}else {g=c.getCollapsible();if(g.expanding){if(d){d=null;break}else {b=g.savedProps;b=b&&b.flex;if(b){d=[b,g]}}}}}if(d){b=d[0]/(d[0]+j);d[1].extraSpace=Math.round(i*b)}}},syncStateNow:function(a){this.cancelSyncState();this.doSyncState(a)},getAccordionPanels:function(){var d=this,a=d.query(d.accordionSelector),e=[],f=a.length,b,c;a.sort(d._sortFn);for(b=0;b<f;++b){c=a[b];if(c.getHidden()){a.splice(b,1);--f;--b}else if(!c.getCollapsed()||c.getCollapsible().expanding){e.push(c)}}a.$expanded=e;return a},onPanelBeforeCollapse:function(){var b=this,a=b.getAccordionPanels();if(a.$expanded.length===1){return !1}},onPanelBeforeExpand:function(a,d){var b=this,c;if(b.getExpandedFirst()){a.parent.insert(0,a)}a.$accordionPriority=++b.prioritySeed;c=a.getCollapsible();c.setState('expanding');b.syncStateNow(d)},onBeforePanelHiddenChange:function(b,a){if(a){this.syncState()}},onPanelHiddenChange:function(b,c){if(!c){var a=this.getAccordionPanels();Ext.Array.remove(a.$expanded,b);if(a.$expanded.length){this.collapsePanelNoAnim(b,!0)}}}}});Ext.define('Ext.panel.Header',{extend:Ext.Container,xtype:'panelheader',isPanelHeader:!0,config:{icon:null,iconAlign:null,iconCls:null,titleRotation:'auto',title:null,titleAlign:null,layout:{type:'box',vertical:!1,align:'center'},position:null},autoSize:null,classCls:Ext.baseCSSPrefix+'panelheader',verticalCls:Ext.baseCSSPrefix+'vertical',horizontalCls:Ext.baseCSSPrefix+'horizontal',toolEndCls:Ext.baseCSSPrefix+'end',toolStartCls:Ext.baseCSSPrefix+'start',rotationMap:{top:'0',right:'90',bottom:'0',left:'270'},dockCls:{top:Ext.baseCSSPrefix+'docked-top',right:Ext.baseCSSPrefix+'docked-right',bottom:Ext.baseCSSPrefix+'docked-bottom',left:Ext.baseCSSPrefix+'docked-left'},weighted:!0,vertical:!1,inheritUi:!0,addTools:function(b){var a=Ext.Array.from(b);if(a&&a.length){a=this.add(a)}return a},applyTitle:function(a,c){var b=c;if(b){if(!a||typeof a==='string'){b.setText(a||'')}else if(a){b.setConfig(a)}}else {b=Ext.create(this.createTitle(a))}return b},createTitle:function(a){var b=this.getRefOwner();if(a&&typeof a==='string'){a={text:a}}return Ext.merge({xtype:'paneltitle',instanceCls:(b&&b.titleCls)||null,flex:'1 1 auto'},a)},onItemAdd:function(a,f){var b=this,c=b.getTitle(),d=(c&&c.weight)||-10,e=a.weight||0;b.callParent([a,f]);if(a.isTool){a.addCls((e<d)?b.toolStartCls:b.toolEndCls)}},onItemRemove:function(a,c,b){this.callParent([a,c,b]);if(a.isTool){a.removeCls([this.toolStartCls,this.toolEndCls])}},updateIcon:function(a){this.ensureTitle().setIcon(a)},updateIconAlign:function(a){this.ensureTitle().setIconAlign(a)},updateIconCls:function(a){this.ensureTitle().setIconCls(a)},updateTitle:function(b,a){if(a){a.setConfig(b)}else {this.add(b)}},updateTitleAlign:function(a){this.ensureTitle().setTextAlign(a)},updateTitleRotation:function(b){var a=this,c;if(b==='auto'){if(a.isConfiguring){return}c=a.getRefOwner();if(c){b=a.rotationMap[c.getHeaderPosition()]}}a.rotateTitle(b)},updatePosition:function(b,d){var a=this,i=a.getLayout(),h=(b==='left'),j=(b==='right'),f=a.vertical=(h||j),e=a.verticalCls,c=a.horizontalCls,g=a.dockCls;i.setVertical(f);i.setReverse(h);if(d){a.removeCls(g[d])}if(b){a.addCls(g[b])}if(f){a.replaceCls(c,e)}else {a.replaceCls(e,c)}if(a.getTitleRotation()==='auto'){a.rotateTitle(a.rotationMap[b])}},privates:{clearTools:function(){var c=this.getItems().items,a,b;for(b=c.length;b-->0;){a=c[b];if(a.isTool&&!a.$internal){this.remove(a)}}},ensureTitle:function(){var b=this,a=b.getTitle();if(!a){b.setTitle('');a=b.getTitle()}return a},isVertical:function(){return this.vertical},rotateTitle:function(a){this.ensureTitle().setRotation(a)},sortByWeight:function(a,b){return (a.weight||0)-(b.weight||0)}},deprecated:{'6.5':{configs:{glyph:null}}}});Ext.define('Ext.panel.Resizer',{config:{constrainToParent:!0,dynamic:!1,edges:null,maxSize:null,minSize:null,preserveRatio:!1,snap:null,split:!1,target:null,ui:null},constructor:function(a){this.edgeMap={};this.initConfig(a)},applyEdges:function(a,c){var e=this.positionMap,d,b;if(a){if(a==='all'){a=Ext.Array.clone(this.allEdges)}else if(typeof a==='string'){a=a.trim();a=a.split(this.edgeDelimiterRe)}else {a=Ext.Array.clone(a)}for(b=0,d=a.length;b<d;++b){a[b]=e[a[b]]}a.sort()}if(a&&c&&Ext.Array.equals(a,c)){a=undefined}return a},updateEdges:function(e,q){var a=this,j=a.edgeMap,c={},m=a.getSplit(),r=a.baseCls,s=a.edgeInfoMap,o=a.getUi(),l=a.splitEdges,p=a.disabled,h=a.firstCorner,f=a.getTarget().element,k=a.splitPrefix,i,b,n,g,d;if(e){for(g=0,n=e.length;g<n;++g){c[e[g]]=!0}}if(q){for(b in j){if(!c[b]){i=j[b];if(s[b].corner&&i===h){h=null}i.destroy();if(m&&b in l){f.removeCls(k+b)}}}if(a.firstCorner&&!h){a.firstCorner=f.child('.'+this.baseCls+'[data-corner]')}}if(e){for(b in c){c[b]=d=j[b]||a.createEdge(f,b);if(m){d.addCls(a.splitterCls);if(b in l){f.addCls(k+b)}}else {d.addCls(a.handleCls)}if(p){d.addCls(a.disabledCls)}if(o){d.addCls(o,r)}}}this.edgeMap=c},applyMaxSize:function(a){return this.applyConstraintValue(a)},applyMinSize:function(a){return this.applyConstraintValue(a)},applySnap:function(a){return this.applyConstraintValue(a)},updateSplit:function(d){var a=this,f=a.edgeMap,h=a.splitEdges,g=a.splitPrefix,b,c,e;if(a.isConfiguring){return}e=a.getTarget().element;for(b in f){c=f[b];if(c.isElement){c.toggleCls(a.splitterCls,d);c.toggleCls(a.handleCls,!d);if(b in h){e.toggleCls(g+b,d)}}}},updateTarget:function(b){var a=this;a.targetListeners=a.dragListeners=Ext.destroy(a.targetListeners,a.dragListeners);if(b){a.setupDragListeners();a.targetListeners=b.on({expand:'onTargetExpand',collapse:'onTargetCollapse',scope:a,destroyable:!0});if(b.hasCollapsible&&b.getCollapsed()){a.onTargetCollapse(b)}}},updateUi:function(f,d){var c=this.edgeMap,b=this.baseCls,e,a;if(this.isConfiguring){return}for(e in c){a=c[e];if(d){a.removeCls(d,b)}if(f){a.addCls(f,b)}}},destroy:function(){var a=this,b=a.getTarget();if(a.dragStarted){a.cleanup()}if(b&&!b.destroying){a.setEdges(null)}a.setTarget(null);a.callParent()},privates:{baseCls:Ext.baseCSSPrefix+'panelresizer',proxyCls:Ext.baseCSSPrefix+'panelresizer-proxy',disabledCls:Ext.baseCSSPrefix+'disabled',handleCls:Ext.baseCSSPrefix+'handle',splitterCls:Ext.baseCSSPrefix+'splitter',horizontalCls:Ext.baseCSSPrefix+'horizontal',verticalCls:Ext.baseCSSPrefix+'vertical',splitPrefix:Ext.baseCSSPrefix+'split-',edgeDelegateSelector:'> .'+Ext.baseCSSPrefix+'panelresizer',allEdges:['north','northeast','east','southeast','south','southwest','west','northwest'],defaultMaxSize:100000,defaultMinSize:50,edgeDelimiterRe:/(?:\s*,\s*)|\s+/,emptyConstrain:[null,null],edgeInfoMap:{north:{vert:!0,constrainProp:{vert:'bottom'},adjustHeightOffset:-1,splitPosSetter:'setY',oppSplitPosSetter:'setX',sizeProp:'height',startEdge:'top',touchAction:{panY:!1}},northeast:{horz:!0,vert:!0,corner:!0,constrainProp:{horz:'left',vert:'bottom'},adjustHeightOffset:-1,adjustWidthOffset:1,touchAction:{panX:!1,panY:!1}},east:{horz:!0,constrainProp:{horz:'left'},adjustWidthOffset:1,splitPosSetter:'setX',oppSplitPosSetter:'setY',sizeProp:'width',startEdge:'right',touchAction:{panX:!1}},southeast:{horz:!0,vert:!0,corner:!0,constrainProp:{horz:'left',vert:'top'},adjustHeightOffset:1,adjustWidthOffset:1,touchAction:{panX:!1,panY:!1}},south:{vert:!0,constrainProp:{vert:'top'},adjustHeightOffset:1,splitPosSetter:'setY',oppSplitPosSetter:'setX',sizeProp:'height',startEdge:'bottom',touchAction:{panY:!1}},southwest:{horz:!0,vert:!0,corner:!0,constrainProp:{horz:'right',vert:'top'},adjustHeightOffset:1,adjustWidthOffset:-1,touchAction:{panX:!1,panY:!1}},west:{horz:!0,constrainProp:{horz:'right'},adjustWidthOffset:-1,splitPosSetter:'setX',oppSplitPosSetter:'setY',sizeProp:'width',startEdge:'left',touchAction:{panX:!1}},northwest:{horz:!0,vert:!0,corner:!0,constrainProp:{horz:'right',vert:'bottom'},adjustHeightOffset:-1,adjustWidthOffset:-1,touchAction:{panX:!1,panY:!1}}},positionMap:{n:'north',north:'north',ne:'northeast',northeast:'northeast',e:'east',east:'east',se:'southeast',southeast:'southeast',s:'south',south:'south',sw:'southwest',southwest:'southwest',w:'west',west:'west',nw:'northwest',northwest:'northwest'},sideInvertMap:{top:'bottom',right:'left',bottom:'top',left:'right'},splitEdges:{north:!0,east:!0,south:!0,west:!0},applyConstraintValue:function(a){if(!Ext.isArray(a)){a=[a,a]}return a},calculateConstrain:function(c,d,b){var a=c;if(a===null){a=d}if(a===null){a=b}return a},createEdge:function(g,d){var b=this,f=b.edgeInfoMap[d],c=f.corner,e=b.firstCorner,a=g.createChild({cls:b.baseCls+' '+Ext.baseCSSPrefix+d,'data-edge':d},c?null:e);a.setTouchAction(f.touchAction);if(c){a.dom.setAttribute('data-corner','true')}if(c&&!e){b.firstCorner=a}return a},createProxy:function(f,d){var a=this,c=a.proxyCls,b=f.horz?a.horizontalCls:a.verticalCls,e=d?a.handleCls:a.splitterCls;return Ext.getBody().createChild({cls:c+' '+e+' '+b})},cleanup:function(){var a=this,c=a.info,b=c&&c.proxy;if(a.dragStarted){if(b){b.destroy()}a.dragStarted=!1;a.info=null}},getBoxLayout:function(){var b=this.getTarget().getParent(),a=b&&b.getLayout();return a&&a.isBox?a:null},getEdge:function(a){a=this.positionMap[a];return this.edgeMap[a]||null},getProxy:function(){var a=this.info;return a&&a.proxy},handleDrag:function(f){var d,t,g,s,b,l,v,k,j,x,w,h,i,p,r,o,q,n,m,c,e,u,y,z,A,a;if(!this.dragStarted){return}d=this.info;t=d.target;g=d.edge;s=d.asFloat;b=d.startBox;l=g.horz;v=g.vert;k=0;j=0;x=g.adjustWidthOffset;w=g.adjustHeightOffset;h=s&&g.adjustWidthOffset<0;i=s&&g.adjustHeightOffset<0;p=d.minHeight;r=d.minWidth;o=d.maxHeight;q=d.maxWidth;if(x){k=Math.round(x*f.deltaX)}if(w){j=Math.round(w*f.deltaY)}a={width:b.width+k,height:b.height+j,x:b.x+(h?-k:0),y:b.y+(i?-j:0)};c=a.width;e=a.height;n=l?this.snap(c,d.snapWidth,k>0):c;m=v?this.snap(e,d.snapHeight,j>0):e;if(c!==n||e!==m){if(h){a.x-=n-c}if(i){a.y-=m-e}a.width=c=n;a.height=e=m}if(l&&(c<r||c>q)){a.width=c=Ext.Number.constrain(c,r,q);if(h){a.x=b.x+(b.width-c)}}if(v&&(e<p||e>o)){a.height=e=Ext.Number.constrain(e,p,o);if(i){a.y=b.y+(b.height-e)}}if(s&&(d.preserveRatio||f.shiftKey)){u=d.ratio;e=Math.min(Math.max(p,c/u),o);c=Math.min(Math.max(r,a.height*u),q);if(l&&v){z=b.x+(h?b.width:0);A=b.y+(i?b.height:0);y=Math.abs(z-f.pageX)/Math.abs(A-f.pageY);if(y>u){a.height=e}else {a.width=c}if(h){a.x=b.x-(a.width-b.width)}if(i){a.y=b.y-(a.height-b.height)}}else if(l){a.height=e}else {a.width=c}}if(t.hasListeners.resizedrag){t.fireEvent('resizedrag',t,{edge:d.edgeName,event:f,width:a.width,height:a.height})}this.resize(a,f.type==='dragend',f)},handleDragCancel:function(c){var b=this.info,a=b.target;this.cleanup();if(a.hasListeners.resizedragcancel){a.fireEvent('resizedragcancel',a,{edge:b.edgeName,event:c})}},handleDragEnd:function(a){this.handleDrag(a);this.cleanup()},handleDragStart:function(i){var a=this,j=a.emptyConstrain,b=a.getTarget(),q=b.hasListeners,s=a.getDynamic(),g=i.target.getAttribute('data-edge'),d=a.edgeInfoMap[g],n=d.horz,w=d.vert,c=b.element.getRegion(),v=a.getSnap()||j,u=a.getMinSize()||j,t=a.getMaxSize()||j,p=a.defaultMinSize,o=a.defaultMaxSize,h,f,l,e,m,k,r;if(q.beforeresizedragstart){l={edge:g,event:i};if(b.fireEvent('beforeresizedragstart',b,l)===!1){return}}e=b.getFloated()||b.isPositioned();if(b.getFlex()){m=a.getBoxLayout();if(m){k=m.getVertical();r=(n&&!k)||(w&&k)}}a.info=h={target:b,edgeName:g,dynamic:s,startBox:c,snapHeight:v[1],snapWidth:v[0],clearFlex:r,minHeight:a.calculateConstrain(b.getMinHeight(),u[1],p),minWidth:a.calculateConstrain(b.getMinWidth(),u[0],p),maxHeight:a.calculateConstrain(b.getMaxHeight(),t[1],o),maxWidth:a.calculateConstrain(b.getMaxWidth(),t[0],o),edge:d,asFloat:e,preserveRatio:e?a.getPreserveRatio():!1,ratio:e?c.width/c.height:0,start:c[d.startEdge],floated:b.getFloated()};if(!s){h.proxy=f=a.createProxy(d,e);if(e){f.setBox(c)}else {f[d.splitPosSetter](h.start);f[d.oppSplitPosSetter](n?c.top:c.left);f.setSize(n?undefined:c.width,w?undefined:c.height)}}a.setupDragConstraints(h);a.dragStarted=!0;if(q.resizedragstart){b.fireEvent('resizedragstart',b,l||{edge:g,event:i})}i.stopPropagation();return !1},handleTouchStart:function(a){a.preventDefault()},onTargetCollapse:function(){var a=this,c=a.edgeMap,b;a.disabled=!0;a.dragListeners=Ext.destroy(a.dragListeners);for(b in c){c[b].addCls(a.disabledCls)}},onTargetExpand:function(){var a=this,c=a.edgeMap,b;a.disabled=!1;a.setupDragListeners();for(b in c){c[b].removeCls(a.disabledCls)}},resize:function(c,r,x){var u=this,a=u.info,f=a.target,k=a.startBox,p=a.asFloat,d=a.edge,l=c.x,m=c.y,v=p&&(k.x!==l||k.y!==m),i=d.horz,t=d.vert,w=a.floated,o=a.dynamic||r,b,h,j,s,q,n,g,e;if(o){b=u.getTarget()}else {b=a.proxy;h=!0}if(!p&&h){j=d.sizeProp;q=i?d.adjustWidthOffset:d.adjustHeightOffset;s=(c[j]-k[j])*q;b[d.splitPosSetter](a.start+s)}else {b.setSize(i?c.width:undefined,t?c.height:undefined);if(!h&&a.clearFlex){b.setFlex(null)}if(v){e=!w&&o;if(e){n=f.element.dom.parentNode;g=Ext.fly(n).getXY()}if(i){if(e){b.setLeft(l-g[0])}else {b.setX(l)}}if(t){if(e){b.setTop(m-g[1])}else {b.setY(m)}}}}if(r){if(f.hasListeners.resizedragend){f.fireEvent('resizedragend',f,{edge:a.edgeName,event:x,width:c.width,height:c.height})}}},setupDragConstraints:function(a){var f=this,l=f.getTarget().element.dom,i=l.parentNode,e=l.cloneNode(!1),b=Ext.fly(e),k=f.defaultMaxSize,j,h,d,c,g;e.style.position='absolute';b.setMinHeight(a.minHeight);b.setMinWidth(a.minWidth);b.setMaxHeight(a.maxHeight);b.setMaxWidth(a.maxWidth);b.setHeight(1);b.setWidth(1);i.appendChild(e);a.minHeight=b.getHeight();a.minWidth=b.getWidth();b.setHeight(k);b.setWidth(k);a.maxHeight=b.getHeight();a.maxWidth=b.getWidth();if(f.getConstrainToParent()){j=a.startBox;h=Ext.fly(i).getRegion();d=a.edge;g=f.sideInvertMap;if(d.horz){c=d.constrainProp.horz;a.maxWidth=Math.min(a.maxWidth,Math.abs(j[c]-h[g[c]]))}if(d.vert){c=d.constrainProp.vert;a.maxHeight=Math.min(a.maxHeight,Math.abs(j[c]-h[g[c]]))}}i.removeChild(e)},setupDragListeners:function(){var a=this,b=a.edgeDelegateSelector;a.dragListeners=a.getTarget().element.on({scope:a,destroyable:!0,delegate:b,dragstart:{priority:1000,delegate:b,fn:'handleDragStart'},drag:'handleDrag',dragend:'handleDragEnd',dragcancel:'handleDragCancel',touchstart:'handleTouchStart'})},snap:function(b,a,e){var d,c;if(a){d=b%a;if(d!==0){c=d*2;b-=d;if(e&&c>=a){b+=a}else if(!e&&c>a){b+=a}else if(c<-a){b-=a}}}return b}}});Ext.define('Ext.plugin.Responsive',{extend:Ext.plugin.Abstract,alias:'plugin.responsive',id:'responsive'});Ext.define('Ext.scroll.NativeScroller',{extend:Ext.scroll.Scroller,alias:'scroller.native',config:{monitorScroll:null,scrollingElement:null,spacerXY:null,xCls:null,yCls:null},statics:{initViewportScroller:function(){var a=Ext.getViewportScroller();if(!a.getElement()){a.setElement(Ext.getBody())}}},constructor:function(b){var a=this;a.trackingPosition={x:null,y:null};a.callParent([b]);a.syncXCls();a.syncYCls()},doDestroy:function(){var b=Ext.scroll.Scroller,a=this;a.setX(null);a.setY(null);if(a._spacer){a._spacer.destroy()}if(a.scrollListener){a.scrollListener.destroy()}if(a.translatable){a.translatable=null}if(b.viewport===a){b.viewport=null}a.callParent()},getClientSize:function(){var a=this.getElement().dom;return {x:a.clientWidth,y:a.clientHeight}},getScrollbarSize:function(){var h=this,j=0,i=0,g=h.getScrollingElement(),b,e,f,c,d,a;if(g&&!g.destroyed){e=h.getX();f=h.getY();b=g.dom;if(e||f){a=Ext.scrollbar.size()}if(e==='scroll'){c=!0}else if(e){c=b.scrollWidth>b.clientWidth}if(f==='scroll'){d=!0}else if(f){d=b.scrollHeight>b.clientHeight}if(c){i=a.height}if(d){j=a.width}}return {width:j,height:i,reservedWidth:d?a.reservedWidth:'',reservedHeight:c?a.reservedHeight:''}},getSize:function(){var a=this.getScrollingElement(),b,c;if(a&&!a.destroyed){c=a.dom;b={x:c.scrollWidth,y:c.scrollHeight}}else {b={x:0,y:0}}return b},getMaxPosition:function(){var b=this.getScrollingElement(),c=0,d=0,a;if(b&&!b.destroyed){a=b.dom;c=a.scrollWidth-a.clientWidth;d=a.scrollHeight-a.clientHeight}return {x:c,y:d}},getMaxUserPosition:function(){var c=this,b=c.getScrollingElement(),d=0,e=0,a;if(b&&!b.destroyed){a=b.dom;if(c.getX()){d=a.scrollWidth-a.clientWidth}if(c.getY()){e=a.scrollHeight-a.clientHeight}}return {x:d,y:e}},refresh:function(){var a=this,c=a.getElementScroll(),e=c.left,f=c.top,d=a.position,b=a.trackingPosition;d.x=b.x=e;d.y=b.y=f;return this.callParent()},updateElement:function(b,d){var a=this,e=a.nativeScrollerCls,c=null;a.callParent([b,d]);if(d&&!d.destroyed){d.removeCls([e,this.getXCls(),this.getYCls()])}if(b){if(b.dom===document.documentElement||b.dom===document.body){c=Ext.scroll.Scroller.getScrollingElement()}else {c=b}b.addCls(e)}a.setScrollingElement(c);if(!a.isConfiguring){a.syncXCls();a.syncYCls();a.getTranslatable().setElement(c)}},updateSize:function(e){var d=this,f=d.getScrollingElement(),a=e.x,b=e.y,c;if(f){c=d.getSpacer();if(!a&&!b){c.hide()}else {if(a>0){a-=1}if(b>0){b-=1}d.setSpacerXY({x:a,y:b});c.show()}}},updateX:function(a){if(!this.isConfiguring){this.syncXCls()}},updateY:function(a){if(!this.isConfiguring){this.syncYCls()}},privates:{nativeScrollerCls:Ext.baseCSSPrefix+'nativescroller',spacerCls:Ext.baseCSSPrefix+'scroller-spacer',overflowXClsMap:{auto:Ext.baseCSSPrefix+'overflow-x-auto',"true":Ext.baseCSSPrefix+'overflow-x-auto',"false":Ext.baseCSSPrefix+'overflow-x-hidden',scroll:Ext.baseCSSPrefix+'overflow-x-scroll'},overflowYClsMap:{auto:Ext.baseCSSPrefix+'overflow-y-auto',"true":Ext.baseCSSPrefix+'overflow-y-auto',"false":Ext.baseCSSPrefix+'overflow-y-hidden',scroll:Ext.baseCSSPrefix+'overflow-y-scroll'},constrainScrollRange:function(g){if(g<1000000){return g}if(!this.maxSpacerTranslate){var b=Math.pow(2,32),c=b,a=500,f=Ext.getBody().createChild({style:{position:'absolute',left:'-10000px',top:'0',width:'500px',height:'500px'},cn:{cls:this.spacerCls}},null,!0),e=Ext.get(f.firstChild),d=e.dom.style;e.translate(0,b-1);d.lineHeight=Number(!parseInt(d.lineHeight,10))+'px';while(c!==a+1){e.translate(0,(b=a+Math.floor((c-a)/2)));d.lineHeight=Number(!parseInt(d.lineHeight,10))+'px';if(f.scrollHeight<b){c=b}else {a=b}}e.translate(0,Ext.scroll.Scroller.prototype.maxSpacerTranslate=a);c=a*2;while(c!==a+1){e.dom.style.marginTop=((b=a+Math.floor((c-a)/2)))+'px';d.lineHeight=Number(!parseInt(d.lineHeight,10))+'px';if(f.scrollHeight<b){c=b}else {a=b}}Ext.fly(f).destroy();Ext.scroll.Scroller.prototype.maxSpacerMargin=a-Ext.scroll.Scroller.prototype.maxSpacerTranslate}return Math.min(g,this.maxSpacerTranslate)},doHighlight:function(b,a){if(a!==!0){Ext.fly(b).highlight(a)}else {Ext.fly(b).highlight()}},doScrollTo:function(a,e,j){var b=this,k=b.getScrollingElement(),f=b.getTranslatable(),g,h,i,d,c;if(k&&!k.destroyed){h=(a===Infinity);i=(e===Infinity);if(h||i){g=b.getMaxPosition();if(h){a=g.x}if(i){e=g.y}}if(a!==null){a=b.convertX(a)}if(j){c=new Ext.Deferred();f.on('animationend',function(){if(b.destroyed){c.reject()}else {c.resolve()}},Ext.global,{single:!0,onFrame:!0});f.translate(a,e,j);d=c.promise}else {f.translate(a,e);d=Ext.Deferred.getCachedResolved();b.onScroll()}}else {d=Ext.Deferred.getCachedRejected()}return d},getElementScroll:function(){return this.getScrollingElement().getScroll()},getSpacer:function(){var c=this,a=c._spacer,b;if(!a){b=c.getScrollingElement();a=c._spacer=b.createChild({cls:c.spacerCls,role:'presentation'},b.dom.firstChild);a.setVisibilityMode(2);a.hide();b.position()}return a},onScroll:function(h){var a=this,d=a.position,g=a.getElementScroll(),b=g.left,c=g.top,e=b-d.x,f=c-d.y;if(e||f){if(h){if(!a.getX()&&!a.getY()&&!a.getMonitorScroll()){h.preventDefault();return}}d.x=b;d.y=c;if(!a.isScrolling){a.setPrimary(!0);a.callPartners('onPartnerScrollStart',b,c);a.fireScrollStart(b,c,e,f);a.callPartners('fireScrollStart',b,c)}if(a.isPrimary){a.callPartners('onPartnerScroll',b,c);a.fireScroll(b,c,e,f);a.callPartners('fireScroll',b,c);a.onScrollEnd(b,c)}}},doOnScrollEnd:function(d,e){var a=this,c=a.position,b=a.trackingPosition;if(!a.destroying&&!a.destroyed){a.isScrolling=Ext.isScrolling=!1;b.x=c.x;b.y=c.y;a.callPartners('onPartnerScrollEnd');a.fireScrollEnd(d,e);a.callPartners('fireScrollEnd',d,e);if(!a.isScrolling){a.setPrimary(null)}}},restoreState:function(){var b=this,a=b.trackingPosition;b.doScrollTo(a.x,a.y)},syncXCls:function(){var a=this;if(a.getElement()){a.setXCls(a.overflowXClsMap[a.getX()])}},syncYCls:function(){var a=this;if(a.getElement()){a.setYCls(a.overflowYClsMap[a.getY()])}},translateSpacer:function(a,b){this.getSpacer().translate(a,b)},updateScrollingElement:function(c,g){var a=this,f=document,e=a.scrollListener,d,b;if(e){e.destroy();a.scrollListener=null}if(c){d=c.dom;if(d===f.scrollingElement||d===f.documentElement){b=Ext.getWin()}else {b=c}a.scrollListener=b.on({scroll:'onScroll',scope:a,destroyable:!0})}},applySpacerXY:function(a,b){if(b&&a.x===b.x&&a.y===b.y){a=undefined}return a},updateSpacerXY:function(e){var a=this,f=a.getSpacer(),b=f.dom.style,c=e.y,d;b.marginTop='';a.translateSpacer(e.x,a.constrainScrollRange(c));b.lineHeight=Number(!parseInt(b.lineHeight,10))+'px';if(c>1000000){d=c-a.getScrollingElement().dom.scrollHeight;if(d>0){b.marginTop=Math.min(d,a.maxSpacerMargin||0)+'px'}}},createTranslatable:function(a){if(this.isConfiguring){this.getElement()}return Ext.apply({element:this.getScrollingElement()},a)},updateXCls:function(c,b){var a=this.getScrollingElement();if(a&&!a.destroyed){a.replaceCls(b,c)}},updateYCls:function(c,b){var a=this.getScrollingElement();if(a&&!a.destroyed){a.replaceCls(b,c)}}}},function(a){var b=Ext.scroll.Scroller;Ext.getViewportScroller=function(d){var c=b.viewport;if(!c&&d!==!1){b.viewport=c=new a();a.initViewportScroller()}return c};Ext.setViewportScroller=function(c){var d=b.viewport;if(c!==d){Ext.destroy(d);if(c&&!c.isScroller){c=new a(c)}b.viewport=c}};Ext.onReady(function(){a.initViewportScrollerTimer=Ext.defer(a.initViewportScroller,100)})});Ext.define('Ext.scroll.indicator.Indicator',{extend:Ext.Widget,alias:'scrollindicator.indicator',mixins:[Ext.mixin.Factoryable],factoryConfig:{defaultType:'overlay',aliasPrefix:'scrollindicator.'},isScrollIndicator:!0,classCls:Ext.baseCSSPrefix+'scrollindicator',config:{axis:null,enabled:null,scroller:null,value:null},privates:{axisClsMap:{x:Ext.baseCSSPrefix+'horizontal',y:Ext.baseCSSPrefix+'vertical'},updateAxis:function(a){this.addCls(this.axisClsMap[a])}}});Ext.define('Ext.scroll.indicator.Bar',{extend:Ext.scroll.indicator.Indicator,alias:'scrollindicator.bar',isScrollbar:!0,config:{stylesheet:!0},classCls:Ext.baseCSSPrefix+'scrollbar',enabledCls:Ext.baseCSSPrefix+'enabled',scrollCls:Ext.baseCSSPrefix+'overflow-scroll',cornerCls:Ext.baseCSSPrefix+'scrollbar-corner',maxScrollSize:100000,scale:1,position:0,template:[{reference:'spacerElement',cls:Ext.baseCSSPrefix+'spacer-el'}],constructor:function(a){this.callParent([a]);this.element.on('scroll','onScrollbarScroll',this)},doDestroy:function(){this.setEnabled(null);this.callParent()},privates:{hasRules:{x:!1,y:!1},names:{x:{scrollerCls:Ext.baseCSSPrefix+'has-horizontal-scrollbar',margin:'margin-right',spacerMargin:'margin-left',getAxis:'getX',size:'height',oppositeSize:'width',scrollPosition:'scrollLeft',minSize:'min-height'},y:{scrollerCls:Ext.baseCSSPrefix+'has-vertical-scrollbar',margin:'margin-bottom',spacerMargin:'margin-top',getAxis:'getY',size:'width',oppositeSize:'height',scrollPosition:'scrollTop',minSize:'min-width'}},onRefresh:function(){var a=this,b=a.getScroller(),k=b.getElement(),c=a.getAxis(),d=a.names[c],i=b[d.getAxis](),g=b.getSize()[c],f=k[c==='x'?'getWidth':'getHeight'](),j=b.getMaxPosition()[c],h=b.getScrollbarSize()[d.oppositeSize],e=a.maxScrollSize;if(f&&g){a.setEnabled(b.isAxisEnabled(a.getAxis()));a.toggleCls(a.scrollCls,i==='scroll');a.scale=Math.max(j/(e-f+h),1);a.spacerElement.setStyle(d.spacerMargin,(Math.min(g,e)-1)+'px')}},onScroll:function(){var a=this,c=a.getScroller(),b=a.getAxis();if(!c.isScrollbarScrolling){a.element.dom[a.names[b].scrollPosition]=Math.round(a.getScroller().position[b]/a.scale);a.readPosition()}},onScrollbarScroll:function(){var b=this,a=b.getScroller(),f=b.getAxis(),e=b.position,c=b.readPosition(),d=(f==='y');if((e!==c)&&(!a.isScrolling||a.isScrollbarScrolling)){a.isScrollbarScrolling=!0;a.doScrollTo(d?null:c,d?c:null)}},readPosition:function(){var a=this,b=Math.round(a.element.dom[a.names[a.getAxis()].scrollPosition]*a.scale);a.position=b;return b},updateAxis:function(d,h){var c=this,e=c.el,g=c.getScroller().getInnerElement(),a=c.names[d],f=Ext.isIE?1:0,b=(Ext.scrollbar.size()[a.size]+f)+'px';this.callParent([d,h]);e.setStyle(a.size,b);e.setStyle(a.margin,b);g.setStyle(a.minSize,'calc(100% - '+b+')')},updateEnabled:function(d){var a=this,c=a.getScroller(),b;if(!a.destroying&&!a.destroyed){a.toggleCls(a.enabledCls,!!d)}if(c){b=c.getElement();if(b&&!b.destroyed){b.toggleCls(a.names[a.getAxis()].scrollerCls,!!d)}}},updateScroller:function(a){var c=this,b;if(a){b=a.getElement();if(b){b.appendChild(c.el);if(!a.isConfiguring){c.setEnabled(a.isAxisEnabled(c.getAxis()))}}}},applyStylesheet:function(){var b=this.self.prototype,a=b.stylesheet;if(!a){b.stylesheet=a=Ext.util.CSS.createStyleSheet('')}return a}}});Ext.define('Ext.scroll.indicator.Overlay',{extend:Ext.scroll.indicator.Indicator,alias:'scrollindicator.overlay',config:{axis:null,hideAnimation:!0,hideDelay:100},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'},classCls:Ext.baseCSSPrefix+'scrolloverlay',visible:!1,element:{reference:'element',style:'opacity: 0'},applyHideAnimation:function(a){if(a){a=Ext.mergeIf({onEnd:this.onHideAnimationEnd,scope:this},this.defaultHideAnimation,a)}return a},constructor:function(c){var a=this,b;a.callParent([c]);if(Ext.os.is.iOS){a.addUi('ios')}if(Ext.os.is.Android){a.addUi('android')}b=a.getAxis();a.names=a.names[b]},hide:function(){var a=this,b=a.getHideDelay();if(!a.visible){return}a.visible=!1;if(b){a._hideTimer=Ext.defer(a.doHide,b,a)}else {a.doHide()}},updateScroller:function(a){a.getElement().appendChild(this.element)},updateValue:function(c){var b=this,m=b.element,k=b.names,l=b.getAxis(),j=b.getScroller(),f=j.getMaxUserPosition()[l],g=j.getClientSize()[l],a=b.length,e=a,i=g-a-b.sizeAdjust,h=Math.round,d;if(c<0){e=h(a+(a*c/g));d=0}else if(c>f){e=h(a-(a*(c-f)/g));d=i+a-e}else {d=h(c/f*i)}b[k.translate](d);m[k.setLength](e)},show:function(){var a=this,b=a.element,c=b.getActiveAnimation();if(a.visible){return}a.visible=!0;if(c){c.end()}if(b.stopAnimation){b.stopAnimation()}if(!a.size){a.cacheStyles()}a.refreshLength();clearTimeout(a._hideTimer);b.setStyle('opacity','')},destroy:function(){this.callParent();clearTimeout(this._hideTimer)},privates:{cacheStyles:function(){var a=this,c=a.element,b=a.names;a.size=c[b.getSize]();a.margin=c.getMargin(b.side)},doHide:function(){var a=this.getHideAnimation(),b=this.element;if(a){b.animate(a)}else {b.setStyle('opacity',0)}},hasOpposite:function(){return this.getScroller().isAxisEnabled(this.oppositeAxis[this.getAxis()])},onHideAnimationEnd:function(){this.element.setStyle('opacity','0')},onScroll:function(){var a=this;a.setValue(a.getScroller().position[a.getAxis()])},onScrollEnd:function(){this.hide()},onScrollStart:function(){var a=this;a.setValue(a.getScroller().position[a.getAxis()]);a.show()},refreshLength:function(){var a=this,i=a.names,g=a.getAxis(),e=a.getScroller(),h=e.getSize()[g],c=e.getClientSize()[g],j=c/h,b=a.margin*2,d=a.hasOpposite()?(b+a.size):b,f=Math.round((c-d)*j);a.sizeAdjust=d;a.length=f;a.element[i.setLength](f)},translateX:function(a){this.element.translate(a)},translateY:function(a){this.element.translate(0,a)}}});Ext.define('Ext.scroll.VirtualScroller',{extend:Ext.scroll.Scroller,alias:'scroller.virtual',isVirtualScroller:!0,config:{autoRefresh:!1,barIndicator:{lazy:!0,$value:{type:'bar'}},bounceEasing:{duration:400},directionLock:!1,disabled:null,clientSize:undefined,scrollbarSize:{width:0,height:0},indicators:{x:!0,y:!0},infinite:!0,innerElement:null,maxAbsoluteVelocity:6,maxPosition:{x:0,y:0},maxUserPosition:{x:0,y:0},minPosition:{x:0,y:0},minUserPosition:{x:0,y:0},momentumEasing:{momentum:{acceleration:30,friction:0.5},bounce:{acceleration:30,springTension:0.3},minVelocity:1},outOfBoundRestrictFactor:0.5,overlayIndicator:{lazy:!0,$value:{type:'overlay'}},pageSize:{x:500000,y:500000},slotSnapEasing:{duration:150},slotSnapOffset:{x:0,y:0},slotSnapSize:{x:0,y:0},startMomentumResetTime:300},eventedConfig:{offsetX:0,offsetY:0},translatable:'csstransform',dragStartTime:0,dragEndTime:0,isDragging:!1,isWheeling:!1,isAnimating:!1,isMouseEvent:{mousedown:1,mousemove:1,mouseup:1},listenerMap:{touchstart:'onTouchStart',touchmove:'onTouchMove',dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd'},constructor:function(d){var a=this,b='onEvent',c;a.elementListeners={touchstart:b,touchmove:b,dragstart:b,drag:b,dragend:b,wheel:'onWheel',scope:a};a.minPosition={x:0,y:0};a.startPosition={x:0,y:0};a.velocity={x:0,y:0};a.isAxisEnabledFlags={x:!1,y:!1};a.flickStartPosition={x:0,y:0};a.flickStartTime={x:0,y:0};a.lastDragPosition={x:0,y:0};a.dragDirection={x:0,y:0};a.scrollbarSize={width:0,height:0};a.callParent([d]);c=a.getAutoRefresh();a.refreshScrollbarSize();if(c){a.refresh(!0)}else {a.refreshAxes();a.callIndicators('onRefresh')}a.scheduleRefresh={idle:a.doRefresh,scope:a,single:!0,destroyable:!0}},doDestroy:function(){var a=this,c=a.getElement(),b=a.getInnerElement(),d=a.sizeMonitors;if(d){d.element.destroy();d.container.destroy()}if(c&&!c.destroyed){c.removeCls(a.cls)}if(b&&!b.destroyed){b.removeCls(a.innerCls)}if(a._isWrapped){if(!c.destroyed){a.unwrapContent()}b.destroy()}a.setElement(null);a.setInnerElement(null);a.setIndicators(null);Ext.destroyMembers(a,'scrollbarCorner');a.callParent()},refresh:function(b){var a=this;if(b){a.doRefresh()}else if(!a.refreshScheduled){a.refreshScheduled=Ext.on(a.scheduleRefresh)}return a},updateDisabled:function(a){if(!this.isConfiguring){if(a){this.detachListeners()}else {this.attachListeners()}}},updateElement:function(c,b){var a=this,f=a.virtualScrollerCls,d=a.getInnerElement(),e;a.callParent([c,b]);if(b&&!b.destroyed){b.removeCls(f)}if(c){c.addCls(f);if(!d){d=a.wrapContent(c);a.setInnerElement(d)}if(!a.getDisabled()){a.attachListeners()}if(!a.isConfiguring){e=a.getAutoRefresh();if(e){a.toggleResizeListeners(e);a.refresh()}}}},applyIndicators:function(a,g){var i=this,h,f,b,c,d,e;if(a){if(a===!0||typeof a==='string'){b=c=a}else {h=a.type;b=a.x;c=a.y}}if(g){a=g}else {a={x:null,y:null}}if(b||c){f=Ext.scrollbar.width()&&h!=='overlay'?'barIndicator':'overlayIndicator'}d=a.x;e=a.y;if(b){a.x=Ext.Factory.scrollindicator.update(d,b,i,'createXIndicator',f)}else if(d){d.destroy();a.x=null}if(c){a.y=Ext.Factory.scrollindicator.update(e,c,i,'createYIndicator',f)}else if(e){e.destroy();a.y=null}return a},updateIndicators:function(a){if(!this.isConfiguring){this.refreshScrollbarSize()}},createXIndicator:function(a){return Ext.apply({axis:'x',scroller:this},a)},createYIndicator:function(a){return Ext.apply({axis:'y',scroller:this},a)},applySlotSnapSize:function(a){if(typeof a==='number'){a={x:a,y:a}}return a},updateX:function(){if(!this.isConfiguring){this.refreshAxes();this.refreshScrollbarSize()}},updateY:function(){if(!this.isConfiguring){this.refreshAxes();this.refreshScrollbarSize()}},privates:{virtualScrollerCls:Ext.baseCSSPrefix+'virtualscroller',innerCls:Ext.baseCSSPrefix+'scroller-inner',scrollbarCornerCls:Ext.baseCSSPrefix+'scrollbar-corner',attachListeners:function(){this.getElement().on(this.elementListeners)},callIndicators:function(a,f){var e=this,d=e.getIndicators(),b,c;if(d){if(f||e.isAxisEnabled('x')){b=d.x;if(b&&b[a]){b[a]()}}if(f||e.isAxisEnabled('y')){c=d.y;if(c&&c[a]){c[a]()}}}},constrainX:function(a){return Math.min(this.getMaxPosition().x,Math.max(a,0))},constrainY:function(a){return Math.min(this.getMaxPosition().y,Math.max(a,0))},convertEasingConfig:function(a){return a},detachListeners:function(){this.getElement().un(this.elementListeners)},doRefresh:function(c){var a=this,b=a.configuredSize;if(a.refreshScheduled){a.refreshScheduled=a.refreshScheduled.destroy()}if(a.getElement()){a.stopAnimation();a.getTranslatable().refresh();a.setSize({x:b.x?undefined:null,y:b.y?undefined:null});a.fireEvent('refresh',a)}},doScrollTo:function(b,c,f){var a=this,d=a.isDragging,l=a.isPrimary,m,h,e,i,g,j,k;if(a.destroyed||!a.getElement()){return a}g=a.getTranslatable();e=a.position;if(!d||a.isAxisEnabled('x')){if(isNaN(b)||typeof b!=='number'){b=e.x}else {if(l!==!1&&!d){b=a.constrainX(b)}if(e.x!==b){i=!0}}}if(!d||a.isAxisEnabled('y')){if(isNaN(c)||typeof c!=='number'){c=e.y}else {if(l!==!1&&!d){c=a.constrainY(c)}if(e.y!==c){i=!0}}}if(i){if(!a.isScrolling){a.onScrollStart()}j=a.convertX(-b);k=-c;if(f){h=new Ext.Deferred();g.on('animationend',function(){if(a.destroyed){h.reject()}else {h.resolve()}},Ext.global,{single:!0,onFrame:!0});g.translateAnimated(j,k,f);m=h.promise}else {g.translate(j,k);a.onScroll(b,c);if(a.isWheeling||a.isScrollbarScrolling){a.onScrollEnd()}else if(!d){a.doOnScrollEnd()}}}else if(f&&f.callback){f.callback()}return m||Ext.Deferred.getCachedResolved()},getAnimationEasing:function(b,m){if(!this.isAxisEnabled(b)){return null}var a=this,c=a.position[b],k=a.getMinUserPosition()[b],i=a.getMaxUserPosition()[b],g=a.getMaxAbsoluteVelocity(),d=null,j=a.dragEndTime,e=m.flick.velocity[b],l=b==='x',h,f;if(c<k){d=k}else if(c>i){d=i}if(l){c=a.convertX(c);d=a.convertX(d)}if(d!==null){f=a.getBounceEasing()[b];f.setConfig({startTime:j,startValue:-c,endValue:-d});return f}if(e===0){return null}if(e<-g){e=-g}else if(e>g){e=g}f=a.getMomentumEasing()[b];h={startTime:j,startValue:-c,startVelocity:e*1.5,minMomentumValue:-i,maxMomentumValue:0};if(l){a.convertEasingConfig(h)}f.setConfig(h);return f},getSnapPosition:function(d){var e=this,c=e.getSlotSnapSize()[d],f=null,b,h,g,a;if(c!==0&&e.isAxisEnabled(d)){b=e.position[d];h=e.getSlotSnapOffset()[d];g=e.getMaxUserPosition()[d];a=Math.floor((b-h)%c);if(a!==0){if(b!==g){if(Math.abs(a)>c/2){f=Math.min(g,b+((a>0)?c-a:a-c))}else {f=b-a}}else {f=b-a}}}return f},isAxisEnabled:function(a){this.getX();this.getY();return this.isAxisEnabledFlags[a]},onAnimationEnd:function(){this.isAnimating=!1;this.snapToBoundary();this.onScrollEnd()},onAnimationFrame:function(c,a,b){this.onScroll(this.convertX(-a),-b)},onAnimationStart:function(){this.isAnimating=!0},onAxisDrag:function(a,k){if(k&&this.isAxisEnabled(a)){var b=this,o=b.flickStartPosition,g=b.flickStartTime,f=b.lastDragPosition,d=b.dragDirection,r=b.position[a],q=b.getMinUserPosition()[a],e=b.getMaxUserPosition()[a],p=b.startPosition[a],l=f[a],c=p-k,i=d[a],h=b.getOutOfBoundRestrictFactor(),n=b.getStartMomentumResetTime(),m=Ext.Date.now(),j;if(c<q){c*=h}else if(c>e){j=c-e;c=e+j*h}if(c>l){d[a]=1}else if(c<l){d[a]=-1}if((i!==0&&(d[a]!==i))||(m-g[a])>n){o[a]=r;g[a]=m}f[a]=c;return !0}},onDrag:function(c){var a=this,b=a.lastDragPosition;if(!a.isDragging){return}if(a.onAxisDrag('x',a.convertX(c.deltaX))|a.onAxisDrag('y',c.deltaY)){a.doScrollTo(b.x,b.y)}},onDragEnd:function(d){var a=this,b,c;if(a.isDragging){a.dragEndTime=Ext.Date.now();a.onDrag(d);a.isDragging=!1;b=a.getAnimationEasing('x',d);c=a.getAnimationEasing('y',d);if(b||c){a.getTranslatable().animate(b,c)}else {a.onScrollEnd()}}},onDragStart:function(c){var a=this,m=c.absDeltaX,n=c.absDeltaY,k=a.startPosition,f=a.flickStartPosition,i=a.flickStartTime,g=a.lastDragPosition,h=a.position,j=a.dragDirection,d=h.x,e=h.y,b=Ext.Date.now(),l=a.getX(),o=a.getY();Ext.undefer(a.scrollEndTimer);if(a.getDirectionLock()&&!(l&&o)){if((l&&m>n)||(o&&n>m)){c.stopPropagation()}else {return}}g.x=d;g.y=e;f.x=d;f.y=e;k.x=d;k.y=e;i.x=b;i.y=b;j.x=0;j.y=0;a.dragStartTime=b;a.isDragging=!0;if(!a.isScrolling){a.onScrollStart()}},onElementResize:function(){this.refresh(!0)},onEvent:function(b){var a=this,c=a.self;if((!c.isTouching||a.isTouching)&&!c.isWheeling&&b.pointerType!=='mouse'&&(a.getY()||a.getX())){return a[a.listenerMap[b.type]](b)}},onInnerElementResize:function(){this.refresh(!0)},onPartnerScroll:function(a,b){this.callParent([a,b]);this.callIndicators('onScroll')},onPartnerScrollStart:function(c,d,a,b){this.callParent([c,d,a,b]);this.callIndicators('onScrollStart')},onPartnerScrollEnd:function(){this.callParent();this.callIndicators('onScrollEnd',!0)},onScroll:function(d,e){var a=this,f=a.position,l=d-f.x,m=e-f.y,i,b,c,j,k,g,h;if(l||m){f.x=d;f.y=e;if(a.getInfinite()){i=a.getPageSize();b=i.x;if(b){j=a.getOffsetX();g=d-j;if(g>b){a.setOffsetX(Math.floor(d/b)*b)}else if(g<-b){a.setOffsetX(Math.ceil(d/b)*b)}}c=i.y;if(c){k=a.getOffsetY();h=e-k;if(h>c){a.setOffsetY(Math.floor(e/c)*c)}else if(h<-c){a.setOffsetY(Math.ceil(e/c)*c)}}}if(a.isPrimary){a.callIndicators('onScroll');a.callPartners('onPartnerScroll',d,e);a.fireScroll(d,e,l,m);a.callPartners('fireScroll',d,e)}}},doOnScrollEnd:function(){var a=this,b=a.position,c=b.x,d=b.y;if(!a.destroying&&!a.destroyed&&a.isScrolling&&a.isPrimary&&!a.isTouching&&!a.snapToSlot()){a.isScrolling=Ext.isScrolling=a.isWheeling=a.self.isWheeling=a.isScrollbarScrolling=!1;a.callIndicators('onScrollEnd');a.callPartners('onPartnerScrollEnd');a.fireScrollEnd(c,d);a.callPartners('fireScrollEnd',c,d);if(!a.isScrolling){a.setPrimary(null)}}},onScrollStart:function(){var a=this,d=a.position,b=d.x,c=d.y;if(!a.isScrolling){a.setPrimary(!0);a.callIndicators('onScrollStart');a.callPartners('onPartnerScrollStart',b,c);a.fireScrollStart(b,c,0,0);a.callPartners('fireScrollStart',b,c)}},onTouchEnd:function(){var a=this;a.isTouching=a.self.isTouching=!1;if(!a.isAnimating){a.onScrollEnd()}},onTouchMove:function(a){a.preventDefault()},onTouchStart:function(b){var a=this;Ext.getDoc().on({touchend:'onTouchEnd',scope:a,single:!0});a.isTouching=a.self.isTouching=!0;a.stopAnimation()},onWheel:function(c){var a=this,j=a.self,f=c.deltaX,g=c.deltaY,b=a.position,h=b.x,i=b.y,d=a.constrainX(b.x+f),e=a.constrainY(b.y+g);if(d!==h||e!==i){a.isWheeling=j.isWheeling=!0;a.doScrollTo(d,e);c.preventDefault()}else if(a.isScrolling){a.onScrollEnd()}},refreshAxes:function(){var a=this,b=a.isAxisEnabledFlags,h=a.getSize(),g=a.getClientSize(),e,f,c,d;if(!h||!g){return}e=Math.max(0,h.x-g.x);f=Math.max(0,h.y-g.y);c=a.getX();d=a.getY();a.setMaxPosition({x:e,y:f});if(c===!0||c==='auto'){b.x=!!e}else if(c===!1){b.x=!1}else if(c==='scroll'){b.x=!0}if(d===!0||d==='auto'){b.y=!!f}else if(d===!1){b.y=!1}else if(d==='scroll'){b.y=!0}a.setMaxUserPosition({x:b.x?e:0,y:b.y?f:0});if(!a.isConfiguring){a.callIndicators('onRefresh',!0)}},refreshScrollbarSize:function(){var a=this,b=a.getIndicators(),f=a.scrollbarSize,e=Ext.scrollbar.size(),c,d;if(b){c=b.x;d=b.y;if(c&&c.isScrollbar&&a.getX()){f.height=e.height}if(d&&d.isScrollbar&&a.getY()){f.width=e.width}}},refreshSize:function(z,o){var a=this,v=a.getElement(),w=Ext.isIE?1:0,q,n,m,p,f,e,h,i,c,d,u,l,b,x,y,r,j,k,s,t,g;if(v&&!v.destroyed){u=v.dom;l=a.getInnerElement().dom;c=z.x;d=z.y;q=a.scrollbarSize;n=q.width;m=q.height;p=Ext.scrollbar.size();f=!1;e=!1;r=a.getIndicators();j=r.x;k=r.y;g=a.scrollbarCorner;if(c===undefined){c=o&&o.x}if(d===undefined){d=o&&o.y}if(c==null){c=l.scrollWidth;x=!0}if(d==null){d=l.scrollHeight;y=!0}h=u.clientWidth;i=u.clientHeight;b=a.getScrollbarFlags(c,d,h,i);f=!!(b&1);e=!!(b&2);if(b&&(b!==a.scrollbarFlags)){if(j){j.setEnabled(a.getX()==='scroll');j.setStyle('visibility','hidden')}if(k){k.setEnabled(a.getY()==='scroll');k.setStyle('visibility','hidden')}if(x&&f){k.setEnabled(!0);s=!0}if(y&&e){j.setEnabled(!0);t=!0}if(s){c=l.scrollWidth}if(t){d=l.scrollHeight}if(s||t){b=a.getScrollbarFlags(c,d,h,i);f=!!(b&1);e=!!(b&2)}if(e&&f){if(!g){a.scrollbarCorner=g=a.getElement().createChild({cls:a.scrollbarCornerCls});g.setVisibilityMode(2);if(Ext.isWindows){g.setStyle({width:(n+w)+'px',height:(m+w)+'px'})}}g.show()}else if(g){g.hide()}if(j){j.setStyle('visibility','')}if(k){k.setStyle('visibility','')}a.scrollbarFlags=b;a.setScrollbarSize({width:f?n:0,height:e?m:0,reservedWidth:f?p.reservedWidth:'',reservedHeight:e?p.reservedHeight:''})}h=f?(h-n):h;i=e?(i-m):i;a.setClientSize({x:h,y:i});return {x:Math.max(c,h),y:Math.max(d,i)}}return null},getScrollbarFlags:function(h,i,f,g){var d=this,a=0,e=d.scrollbarSize,c=e.width,b=e.height;if(c&&(d.getY()==='scroll'||i>g)){a|=1}if(b&&(d.getX()==='scroll'||h>f)){a|=2}if((a&1)&&(b&&(h>f-c))){a|=2}if((a&2)&&(c&&(i>g-b))){a|=1}return a},snapToBoundary:function(){var a=this,d=a.getPosition();if(a.isConfiguring||!(d.x||d.y)){return}var f=a.getMinUserPosition(),e=a.getMaxUserPosition(),i=f.x,j=f.y,g=e.x,h=e.y,b=Math.round(d.x),c=Math.round(d.y);if(b<i){b=i}else if(b>g){b=g}if(c<j){c=j}else if(c>h){c=h}a.doScrollTo(b,c)},snapToSlot:function(){var a=this,c=a.getSnapPosition('x'),d=a.getSnapPosition('y'),b=a.getSlotSnapEasing();if(c!==null||d!==null){a.doScrollTo(c,d,{easingX:b.x,easingY:b.y});return !0}return !1},stopAnimation:function(){this.getTranslatable().stopAnimation()},syncOffsets:function(a){a.setOffsetX(-this.getOffsetX());a.setOffsetY(-this.getOffsetY())},toggleResizeListeners:function(e){var a=this,d=a.getElement(),b,c;if(d){c=a.getInnerElement();b=e?'on':'un';d[b]('resize','onElementResize',a);c[b]('resize','onInnerElementResize',a)}},unwrapContent:function(){var a=this.getInnerElement().dom,c=this.getElement().dom,b;while((b=a.firstChild)){c.insertBefore(b,a)}},wrapContent:function(d){var a=document.createElement('div'),c=d.dom,b;while((b=c.lastChild)){a.insertBefore(b,a.firstChild)}c.appendChild(a);this.setInnerElement(a);this._isWrapped=!0;return this.getInnerElement()},updateAutoRefresh:function(a){this.toggleResizeListeners(a)},applyBounceEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},updateBounceEasing:function(a){this.getTranslatable().setEasingX(a.x).setEasingY(a.y)},updateClientSize:function(){if(!this.isConfiguring){this.refreshAxes()}},applyInnerElement:function(a){if(a){if(!a.isElement){a=Ext.get(a)}}return a},updateInnerElement:function(a){if(a){a.addCls(this.innerCls)}this.getTranslatable().setElement(a)},applyMaxPosition:function(a,c){if(c&&a.x===c.x&&a.y===c.y){return}var d=this.getTranslatable(),b;if(d.isAnimating){b=d.activeEasingY;if(b&&b.getStartVelocity&&b.getStartVelocity()<0&&a.y<c.y){b.setMinMomentumValue(-a.y)}}return a},applyMaxUserPosition:function(b,a){if(!a||b.x!==a.x||b.y!==a.y){return b}},updateMaxUserPosition:function(){this.snapToBoundary()},updateMinUserPosition:function(){this.snapToBoundary()},applyMomentumEasing:function(b){var a=Ext.fx.easing.BoundMomentum;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},updateOffsetX:function(a){if(!this.isConfiguring){this.getTranslatable().setOffsetX(a)}},updateOffsetY:function(a){if(!this.isConfiguring){this.getTranslatable().setOffsetY(a)}},applySize:function(a,b){a=this.callParent([a,b]);return this.refreshSize(a,b)},updateSize:function(b,a){if(!this.isConfiguring){this.refreshAxes()}},applySlotSnapEasing:function(b){var a=Ext.fx.easing.EaseOut;return {x:Ext.factory(b,a),y:Ext.factory(b,a)}},applySlotSnapOffset:function(a){if(typeof a==='number'){a={x:a,y:a}}return a},updateTranslatable:function(a){if(a){a.on({animationframe:'onAnimationFrame',animationstart:'onAnimationStart',animationend:'onAnimationEnd',scope:this})}},createTranslatable:function(a){return Ext.apply({element:this.getInnerElement()},a)}}});Ext.define('Ext.state.Builder',{constructor:function(b,c){var a=this;a.name=c||null;a.parent=b||null;a.root=b?b.root:a},child:function(a){return new this.self(this,a)},get:function(c){var a=this.getData(),b;if(a&&a.$){b=a.$[c]}return b},remove:function(b){var a=this.getData();if(a&&a.$){delete a.$[b]}},save:function(a,b){var g=this,d=a.self.$config.configs[b],e=a[d.names.get](),c=a.$statefulConfigs,f=c&&c[b];if(!f&&!d.equals(a.config[b],e)){c=c||(a.$statefulConfigs={});c[b]=f=!0}if(f){if(!d.save||d.save(g,b,e,a)!==!1){g.set(b,e)}}return g},set:function(b,e){var c=this,a=c.data,d;if(typeof b==='string'){if(e===undefined){if(a){a=a.$}if(a){delete a[b]}}else {a=a||c.getData(!0);a=a.$||(a.$={});a[b]=e}}else {for(d in b){c.set(d,b[d])}}return c},privates:{data:null,id:null,owner:null,clear:function(){var a=this,b=a.parent,c=b&&b.getData();if(c){delete c[a.name]}a.data=null},getData:function(d){var c=this,a=c.parent,b=c.data,e=c.name;if(!b){if(a){a=a.getData(d);if(a){if(!(b=a[e]||null)&&d){a[e]=b={}}}}else if(d){b={}}c.data=b}return b}}});Ext.define('Ext.state.LocalStorage',{extend:Ext.state.Provider,config:{storage:{id:'ext-state'}},applyStorage:function(a){return a&&new Ext.util.LocalStorage(a)},updateStorage:function(b){if(b){var e=this.state={},d=b.getKeys(),a,c;for(a=0;a<d.length;++a){c=d[a];e[c]=this.decodeValue(b.getItem(c))}}},clear:function(){this.getStorage().clear();this.callParent()},set:function(b,a){var c=this,d=c.getStorage();c.callParent([b,a]);if(a==null){d.removeItem(b)}else {d.setItem(b,c.encodeValue(a))}}});Ext.define('Ext.tab.Tab',{extend:Ext.Button,xtype:'tab',alternateClassName:'Ext.Tab',isTab:!0,config:{active:null,title:null,closable:null,tabPosition:'top',rotation:'default'},standardizedRotationByValue:{0:"none",none:"none",1:"right",right:"right",2:"left",left:"left"},defaultRotationForPosition:{top:"none",right:"right",bottom:"none",left:"left"},rotationClass:{none:Ext.baseCSSPrefix+'tab-rotate-none',right:Ext.baseCSSPrefix+'tab-rotate-right',left:Ext.baseCSSPrefix+'tab-rotate-left'},iconAlignForRotation:{left:{left:Ext.baseCSSPrefix+'icon-align-bottom',none:Ext.baseCSSPrefix+'icon-align-left',right:Ext.baseCSSPrefix+'icon-align-top'},top:{left:Ext.baseCSSPrefix+'icon-align-left',none:Ext.baseCSSPrefix+'icon-align-top',right:Ext.baseCSSPrefix+'icon-align-left'},right:{left:Ext.baseCSSPrefix+'icon-align-top',none:Ext.baseCSSPrefix+'icon-align-right',right:Ext.baseCSSPrefix+'icon-align-bottom'},bottom:{left:Ext.baseCSSPrefix+'icon-align-left',none:Ext.baseCSSPrefix+'icon-align-top',right:Ext.baseCSSPrefix+'icon-align-left'}},positionClass:{'top':Ext.baseCSSPrefix+'tab-position-top','right':Ext.baseCSSPrefix+'tab-position-right','bottom':Ext.baseCSSPrefix+'tab-position-bottom','left':Ext.baseCSSPrefix+'tab-position-left'},applyRotation:function(a){return a||'default'},updateRotation:function(a){this.syncRotationAndPosition()},updateTabPosition:function(){this.syncRotationAndPosition()},getActualRotation:function(){var a=this.getRotation()||"default";a=(a==='default')?this.defaultRotationForPosition[this.getTabPosition()]:a;return this.standardizedRotationByValue[a]},syncRotationAndPosition:function(){var a=this,b=a.getActualRotation(),e=a._rotationCls,h=a._rotationCls=a.rotationClass[b],c=a._iconAlignCls||Ext.baseCSSPrefix+'icon-align-'+a.getIconAlign(),f=a._iconAlignCls=a.iconAlignForRotation[a.getIconAlign()][b],d=a._positionCls,g=a._positionCls=a.positionClass[a.getTabPosition()];a.replaceCls(e,h);a.replaceCls(c,f);a.replaceCls(d,g)},pressedDelay:!0,classCls:Ext.baseCSSPrefix+'tab',activeCls:Ext.baseCSSPrefix+'active',closableCls:Ext.baseCSSPrefix+'closable',getTemplate:function(){var a=this.callParent();a.push({reference:'activeIndicatorElement',cls:Ext.baseCSSPrefix+'active-indicator-el'},{reference:'closeIconElement',cls:Ext.baseCSSPrefix+'close-icon-el '+Ext.baseCSSPrefix+'font-icon '+Ext.baseCSSPrefix+'no-ripple',listeners:{click:'onClick'}});return a},shouldRipple:function(){return this.getRipple()},onClick:function(b){var a=this,c=a.tabBar;if(b.currentTarget===a.closeIconElement.dom){if(c&&!a.getDisabled()){c.closeTab(a)}b.stopPropagation()}else {return a.callParent([b])}},updateTitle:function(a){this.setText(a)},updateActive:function(e,c){var a=this,d=a.el,b=a.activeCls;if(e&&!c){d.addCls(b);a.fireEvent('activate',a)}else if(c){d.removeCls(b);a.fireEvent('deactivate',a)}},updateClosable:function(a){this.toggleCls(this.closableCls,!!a)},onAdded:function(a,b){this.callParent([a,b]);this.tabBar=a.isTabBar?a:null},onRemoved:function(a){this.callParent([a]);this.tabBar=null}},function(){this.override({activate:function(){this.setActive(!0)},deactivate:function(){this.setActive(!1)}})});Ext.define('Ext.tab.Bar',{extend:Ext.Toolbar,alternateClassName:'Ext.TabBar',xtype:'tabbar',isTabBar:!0,config:{defaultTabUI:null,animateIndicator:!1,tabRotation:"default"},defaultType:'tab',layout:{type:'hbox',align:'stretch'},eventedConfig:{activeTab:null},baseCls:Ext.baseCSSPrefix+'tabbar',indicatorAnimationSpeed:150,initialize:function(){var a=this;a.callParent();a.on({tap:'onTabTap',delegate:'> tab',scope:a})},getTemplate:function(){var a=this.callParent();a.push({reference:'stripElement',cls:Ext.baseCSSPrefix+'strip-el'});return a},onTabTap:function(a){this.setActiveTab(a)},applyActiveTab:function(a,c){var b=this.parseActiveTab(a);if(!a&&a!==0){return}if(!b){return}return b},updateTabRotation:function(c){var b=this.getTabs(),a;for(a=0;a<b.length;a++){b[a].setRotation(c)}},updateDocked:function(b){var h=this,a=h.getLayout(),g=h.getInitialConfig(),c,d,e,f;if(!g.layout||!g.layout.pack){e=(b==='bottom')?'center':'left';if(a.isLayout){a.setPack(e)}else {a.pack=(a&&a.pack)?a.pack:e}}d=(b==='right'||b==='left');if(a.getVertical()!==d){a.setVertical(d)}f=this.getTabs();for(c=0;c<f.length;c++){f[c].setTabPosition(b)}this.callParent(arguments)},updateActiveTab:function(b,a){var d=this,c=this.getAnimateIndicator();if(c&&b&&a&&a.parent){d.animateTabIndicator(b,a)}else {if(b){b.setActive(!0)}if(a&&a.parent){a.setActive(!1);this.previousTab=a}}},updateAnimateIndicator:function(){var a=this;if(a.$animateIndicatorElement){a.$animateIndicatorElement.destroy()}if(a.$indicatorAnimationListeners){a.$indicatorAnimationListeners.destroy()}a.$indicatorAnimationListeners=a.$animateIndicatorElement=null},animateTabIndicator:function(h,i){var a=this,m=h.element,n=i.element,l=i.activeIndicatorElement,k=h.activeIndicatorElement,e,d,b,g,f,c,j=this.getDocked();g=((j==='left')||(j==='right'));c=function(c,a){var b={width:a.getWidth(),height:a.getHeight(),x:a.getX(),y:c.getY(),'background-color':a.getStyle('background-color')};if(!g){b.x=c.getX();b.y=a.getY()}return b};e=c(n,l);d=c(m,l);k.hide();h.setActive(!0);i.setActive(!1);f=g?'width':'height';if(e[f]||d[f]){b=a.$animateIndicatorElement;b=a.$animateIndicatorElement=a.element.insertFirst({cls:Ext.baseCSSPrefix+'active-indicator-el'});if(a.$indicatorAnimationListeners){a.$indicatorAnimationListeners.destroy();a.$indicatorAnimationListeners=null}a.$indicatorAnimation=b.animate({duration:a.indicatorAnimationSpeed,from:e,to:d});a.$indicatorAnimationListeners=a.$indicatorAnimation.on({destroyable:!0,animationend:{fn:function(){k.show();b.hide();b.destroy();a.$indicatorAnimationListeners.destroy();a.$indicatorAnimation=a.$indicatorAnimationListeners=null},single:!0}})}},getTabs:function(){return this.query('> tab')},parseActiveTab:function(a){if(typeof a==='number'){return this.getTabs()[a]}else if(typeof a==='string'){a=this.getComponent(a)||Ext.getCmp(a)}return a},onItemAdd:function(a,d){var b=this,c=b.getDefaultTabUI();if(a.isTab){a.setRotation(b.getTabRotation());a.setTabPosition(b.getDocked());if(c&&(a.getUi()==null)){a.setUi(c)}}this.callParent([a,d])},privates:{findNextActivatableTab:function(b){var d=this,a=d.previousTab,c;if(b.getActive()&&d.getItems().getCount()>1){if(a&&a!==b&&!a.getDisabled()){c=a}else {c=b.next('tab:not([disabled=true])')||b.prev('tab:not([disabled=true])')}}return c||d.getActiveTab()},closeTab:function(d){var c=this,a=c.findNextActivatableTab(d),b=c.parent;if(b&&b.isTabPanel){if(a){b.setActiveItem(a.card)}b.remove(d.card)}else {if(a){c.setActiveTab(a)}c.remove(d)}}}});Ext.define('Ext.tab.Panel',{extend:Ext.Container,xtype:'tabpanel',alternateClassName:'Ext.TabPanel',isTabPanel:!0,config:{autoOrientAnimation:null,tabBar:!0,tabBarPosition:'top',tabRotation:"default",layout:{type:'card',animation:{type:'slide'}},cls:Ext.baseCSSPrefix+'tabpanel'},defaults:{allowHeader:!1},initialize:function(){var a=this;a.callParent();a.on({beforeactivetabchange:'doTabChange',delegate:'> tabbar',scope:a});a.on({disabledchange:'onItemDisabledChange',delegate:'> component',scope:a})},applyScrollable:function(){return !1},updateTabRotation:function(b){var a=this.getTabBar();if(a){a.setTabRotation(b)}},updateUi:function(b,c){var a;this.callParent([b,c]);a=this.getTabBar();if(this.initialized&&a){a.setUi(b)}},updateActiveItem:function(f,h){var e,g,a,b,d,c;if(!f){return}e=this.getInnerItems();g=e.indexOf(h);a=e.indexOf(f);b=this.getTabBar();d=b.parseActiveTab(g);c=b.parseActiveTab(a);this.callParent(arguments);if(a!==-1){this.forcedChange=!0;b.setActiveTab(a);this.forcedChange=!1;if(d){d.setActive(!1)}if(c){c.setActive(!0)}}},doTabChange:function(d,c){var b=this.getActiveItem(),a;this.setActiveItem(d.indexOf(c));a=this.getActiveItem();return this.forcedChange||b!==a},applyTabBar:function(a){var c,b;if(this.isConfiguring){b=this.initialConfig.activeItem||0}else {c=this.getInnerItems();b=c.indexOf(this._activeItem)}if(a===!0){a={}}if(a){Ext.applyIf(a,{ui:this.getUi(),docked:this.getTabBarPosition(),activeItem:b});return Ext.factory(a,Ext.tab.Bar,this.getTabBar())}return null},updateTabBar:function(b,c){var a=this;if(c&&a.removingTabBar===undefined){a.remove(c,!0)}if(b){a.add(b);a.setTabBarPosition(b.getDocked())}},doAutoOrientAnimation:function(){var a=this.getTabBarPosition(),c=this.getLayout(),b=a==='left'||a==='right'?'top':'left';c.setAnimation({type:'slide',direction:b})},updateAutoOrientAnimation:function(c){var b=this.getLayout(),a=this.getInitialConfig('layout');if(c){this.doAutoOrientAnimation()}else {b.setAnimation(a.animation)}},updateTabBarPosition:function(c){var a=this.getTabBar(),b=this.getAutoOrientAnimation();if(a){a.setDocked(c);if(b){this.doAutoOrientAnimation()}}},onItemAdd:function(a,u){var f=this;if(!a.isInnerItem()){return f.callParent([a,u])}var e=f.getTabBar(),c=a.getInitialConfig(),b=c.tab||{},q=(a.getTitle)?a.getTitle():c.title,k=(a.getClosable)?a.getClosable():c.closable,j=(a.getIconAlign)?a.getIconAlign():c.iconAlign,n=(a.getIconCls)?a.getIconCls():c.iconCls,r=(a.getIcon)?a.getIcon():c.icon,p=(a.getHidden)?a.getHidden():c.hidden,l=(a.getDisabled)?a.getDisabled():c.disabled,i=(a.getBadgeText)?a.getBadgeText():c.badgeText,m=f.getInnerItems(),g=m.indexOf(a),t=e.query('> tab'),o=e.getActiveTab(),h=(t.length>=m.length)&&t[g],s=a.getConfig('header',!1,!0),d;if(q&&!b.title){b.title=q}if(k&&!b.closable){b.closable=k}if(j&&!b.iconAlign){b.iconAlign=j}if(n&&!b.iconCls){b.iconCls=n}if(r&&!b.icon){b.icon=r}if(p&&!b.hidden){b.hidden=p}if(l&&!b.disabled){b.disabled=l}if(i&&!b.badgeText){b.badgeText=i}d=Ext.factory(b,Ext.tab.Tab,h);if(!h){e.insert(g,d)}a.tab=d;d.card=a;if(s){s.setHidden(!0)}f.callParent([a,g]);if(!o&&o!==0){e.setActiveTab(d)}},onItemDisabledChange:function(a,b){if(a&&a.tab){a.tab.setDisabled(b)}},onItemRemove:function(c,g,d){var a=this,f=a.destroying,e,b;if(!f){b=a.getTabBar();if(c===b){e=a.removingTabBar===undefined}else if(b){b.remove(c.tab,!0)}}a.callParent([c,g,d]);if(e){a.removingTabBar=d;a.setTabBar(null);delete a.removingTabBar}}});Ext.define('Ext.tip.Manager',{config:{tooltip:{xtype:'tooltip',align:'',anchorToTarget:!1,anchor:!1,closeAction:'hide',quickShowInterval:0,maxWidth:'80vw'},overflowTip:{align:'l-r?',anchor:!0,showOnTap:!0}},interceptTitles:!1,constructor:function(c){var a=this,b;a.initConfig(c);a._fly=new Ext.dom.Fly();a.tip=b=Ext.create(a.createTooltip());b.allowRealign=!1;b.on({beforeshow:'onBeforeShow',hovertarget:'onHoverTarget',scope:a});a.globalListeners=Ext.on({scope:a,destroyable:!0,dragstart:'dragDisable',dragend:'dragEnable',dragcancel:'dragEnable'});if(!a.self.instance){a.self.instance=a}},disable:function(){var a=++this.disabled;if(a===1){this.getTooltip().disable()}},enable:function(){var a=--this.disabled;if(a===0){this.getTooltip().enable()}else if(a<0){this.disabled=0}},destroy:function(){var a=this;if(a.self.instance===a){a.self.instance=null}a._fly.detach();a.globalListeners=a.tip=Ext.destroy(a.tip,a.globalListeners);a.callParent()},createTooltip:function(){var a=this,b=a.getTooltip();return Ext.apply({id:'ext-global-tooltip',delegate:a.delegateQuickTip.bind(a),target:Ext.getBody()},b)},hide:function(){if(this.tip){this.tip.hide()}},privates:{disabled:0,_propertyMap:(function(){var c=function(a){return parseInt(a,10)},b=function(a){return !!a},a=Ext.identityFn;return {ui:{prop:'data-qui',parse:a},html:{prop:'data-qtip',parse:a},width:{prop:'data-qwidth',parse:c},minWidth:{prop:'data-qminWidth',parse:a},maxWidth:{prop:'data-qmaxWidth',parse:a},title:{prop:'data-qtitle',parse:a},autoHide:{prop:'data-qautoHide',parse:b},cls:{prop:'data-qcls',parse:a},axisLock:{prop:'data-axislock',parse:a},align:{prop:'data-qalign',parse:a},alignDelegate:{prop:'data-qaligndelegate',parse:a},anchor:{prop:'data-qanchor',parse:a},showDelay:{prop:'data-qshowDelay',parse:c},hideDelay:{prop:'data-qhideDelay',parse:c},dismissDelay:{prop:'data-qdismissDelay',parse:c},trackMouse:{prop:'data-qtrackMouse',parse:b},anchorToTarget:{prop:'data-qanchorToTarget',parse:b},allowOver:{prop:'data-qallowover',parse:b},closable:!0}})(),applyOverflowTip:function(b){var a=Ext.platformTags.phone;return Ext.apply({axisLock:!a,maxWidth:a?'80vw':400},b)},delegateQuickTip:function(b){var a=this.getTipConfig(b,'html');return !!a},dragDisable:function(){if(!this.disabled){this.tip.disable()}},dragEnable:function(){if(!this.disabled){this.tip.enable()}},getTipConfig:function(a,b){var h=this,i=h._propertyMap,f=h._tipDefaults,m=h._fly,k=m.attach(a).getData().qtip,n=h.tip,l=i.html.prop,g,d,e,j,c;if(!f&&b!=='html'){h._tipDefaults=f={};for(g in i){f[g]=n.getConfig(g)}}if(k){if(b){e=k[b]}else {e=Ext.apply({},f);Ext.apply(e,k)}}else {if(a.hasAttribute(l)){d=a.getAttribute(l);if(!d){d=h.interceptTitles&&a.title;if(d){a.setAttribute(l,d);a.removeAttribute('title')}}}else if(a.hasAttribute('data-qoverflow')){d=m.dom.innerHTML;if(b!=='html'){f=Ext.apply({},h.getOverflowTip(),f)}if(!b){if(!h.hasTextOverflow(a)){return !1}}}if(d){if(b==='html'){e=d}else if(b){c=i[b];if(c.prop){if(a.hasAttribute(c.prop)){e=c.parse(a.getAttribute(c.prop))}}}else {e=k={html:d};for(g in i){if(g!=='html'){c=i[g];j=null;if(c.prop){if(a.hasAttribute(c.prop)){j=c.parse(a.getAttribute(c.prop))}}if(j===null){j=f[g]}k[g]=j}}}}}m.detach();if(b&&e==null&&b!=='html'){e=f[b]}return e},onBeforeShow:function(c){var e=this,d=c.currentTarget.dom,a,b;if(d){a=e.getTipConfig(d);if(a===!1){return !1}if(!a){return}a.anchorToTarget=!!(a.align||a.anchor);c.setConfig(a);b=c.getHeader();if(b){b.setHidden(!a.title&&!a.closable)}}},priorityConfigs:['showDelay','anchor','anchorToTarget','align','trackMouse'],onHoverTarget:function(d,c){var b=c.dom,a;if(b){a={};this.priorityConfigs.forEach(function(e){a[e]=this.getTipConfig(b,e)},this);a.anchorToTarget=!!(a.align||a.anchor);d.setConfig(a)}},hasTextOverflow:function(a){var b;if(Ext.fly(a).isStyle('text-overflow','ellipsis')){b=Ext.util.TextMetrics.measure(a,a.innerHTML);return (b.width>Ext.fly(a).getViewRegion().width)}}}});Ext.define('Ext.util.Audio',{singleton:!0,ctx:null,beep:function(a){this.oscillate(200,1,a)},oscillate:function(d,b,c){var a;if(!this.ctx){this.ctx=new (window.audioContext||window.webkitAudioContext)()}if(!this.ctx){console.log("BEEP");return}b=(b%5)||0;try{a=this.ctx.createOscillator();a.type=b;a.connect(this.ctx.destination);a.noteOn(0);Ext.defer(function(){a.noteOff(0);if(c){c()}},d)}catch(e){throw new Error("[Ext.util.Audio.oscillate] Error with Oscillator playback")}}});Ext.define('Ext.util.Draggable',{isDraggable:!0,mixins:[Ext.mixin.Observable],config:{cls:Ext.baseCSSPrefix+'draggable',draggingCls:Ext.baseCSSPrefix+'dragging',element:null,constraint:'container',disabled:null,direction:'both',initialOffset:{x:0,y:0},translatable:{},component:null},DIRECTION_BOTH:'both',DIRECTION_VERTICAL:'vertical',DIRECTION_HORIZONTAL:'horizontal',defaultConstraint:{min:{x:-Infinity,y:-Infinity},max:{x:Infinity,y:Infinity}},containerWidth:0,containerHeight:0,width:0,height:0,constructor:function(a){var b;this.extraConstraint={};this.initialConfig=a;this.offset={x:0,y:0};this.elementListeners={dragstart:'onDragStart',drag:'onDrag',dragend:'onDragEnd',resize:'onElementResize',touchstart:'onPress',touchend:'onRelease',priority:2000,scope:this};if(a&&a.element){b=a.element;delete a.element;this.setElement(b)}return this},applyElement:function(a){if(!a){return}return Ext.get(a)},updateElement:function(a){a.on(this.elementListeners);a.setTouchAction({panX:!1,panY:!1});this.mixins.observable.constructor.call(this,this.initialConfig)},updateInitialOffset:function(a){var b,c,d;if(typeof a==='number'){a={x:a,y:a}}else if(!a){return}b=this.offset;b.x=c=a.x;b.y=d=a.y;this.getTranslatable().translate(c,d)},updateCls:function(a){this.getElement().addCls(a)},applyTranslatable:function(a,b){a=Ext.factory(a,Ext.util.translatable.CssTransform,b,'translatable');if(a){a.setElement(this.getElement())}return a},setExtraConstraint:function(a){this.extraConstraint=a||{};this.refreshConstraint();return this},addExtraConstraint:function(a){Ext.merge(this.extraConstraint,a);this.refreshConstraint();return this},applyConstraint:function(a){this.currentConstraint=a;if(!a){a=this.defaultConstraint}if(a==='container'){return Ext.merge(this.getContainerConstraint(),this.extraConstraint)}return Ext.merge({},this.extraConstraint,a)},updateConstraint:function(){this.refreshOffset()},getContainerConstraint:function(){var b=this.getContainer(),c=this.getElement(),a;if(!b||!c.dom){return this.defaultConstraint}a=b.getBorders();return {min:{x:0,y:0},max:{x:this.containerWidth-this.width-a.beforeX-a.afterX,y:this.containerHeight-this.height-a.beforeY-a.afterY}}},getContainer:function(){var a=this.container;if(!a){a=this.getElement().getParent();if(a){this.container=a;a.on({resize:'onContainerResize',destroy:'onContainerDestroy',scope:this,priority:2000})}}return a},onElementResize:function(b,a){this.width=a.width;this.height=a.height;this.refreshContainerSize()},onContainerResize:function(b,a){this.containerWidth=a.contentWidth;this.containerHeight=a.contentHeight;this.refresh()},refreshContainerSize:function(){var a=this,b=a.getContainer();a.containerWidth=b.getWidth();a.containerHeight=b.getHeight();this.refresh();return a},onContainerDestroy:function(){delete this.container;delete this.containerSizeMonitor},detachListeners:function(){this.getElement().un(this.elementListeners)},isAxisEnabled:function(b){var a=this.getDirection();if(b==='x'){return (a===this.DIRECTION_BOTH||a===this.DIRECTION_HORIZONTAL)}return (a===this.DIRECTION_BOTH||a===this.DIRECTION_VERTICAL)},onPress:function(a){this.fireEvent('touchstart',this,a)},onRelease:function(a){this.fireEvent('touchend',this,a)},onDragStart:function(c){var a=this,b=a.offset;if(a.getDisabled()){return !1}a.fireEventedAction('dragstart',[a,c,b.x,b.y],a.initDragStart,a)},initDragStart:function(c,d,a,b){this.dragStartOffset={x:a,y:b};this.isDragging=!0;this.getElement().addCls(this.getDraggingCls())},onDrag:function(b){var a;if(!this.isDragging){return}a=this.dragStartOffset;this.fireAction('drag',[this,b,a.x+b.deltaX,a.y+b.deltaY],this.doDrag)},doDrag:function(c,d,a,b){c.setOffset(a,b)},onDragEnd:function(a){if(!this.isDragging){return}this.onDrag(a);this.isDragging=!1;this.getElement().removeCls(this.getDraggingCls());this.fireEvent('dragend',this,a,this.offset.x,this.offset.y)},setOffset:function(a,b,i){var c=this.offset,d=this.getConstraint(),f=d.min,e=d.max,h=Math.min,g=Math.max;if(this.isAxisEnabled('x')&&typeof a==='number'){a=h(g(a,f.x),e.x)}else {a=c.x}if(this.isAxisEnabled('y')&&typeof b==='number'){b=h(g(b,f.y),e.y)}else {b=c.y}c.x=a;c.y=b;this.getTranslatable().translate(a,b,i)},getOffset:function(){return this.offset},refreshConstraint:function(){this.setOffset.apply(this,this.getTranslatable().syncPosition());this.setConstraint(this.currentConstraint)},refreshOffset:function(){var a=this.offset;this.setOffset(a.x,a.y)},refresh:function(){this.refreshConstraint();this.getTranslatable().refresh();this.refreshOffset()},enable:function(){return this.setDisabled(!1)},disable:function(){return this.setDisabled(!0)},destroy:function(){var a=this,c=a.getTranslatable(),b=a.getElement();if(b&&!b.destroyed){b.removeCls(a.getCls())}a.setComponent(null);a.detachListeners();if(c){c.destroy()}a.callParent()}});Ext.define('Ext.util.Geolocation',{extend:Ext.Evented,alternateClassName:['Ext.util.GeoLocation'],config:{autoUpdate:!0,frequency:10000,latitude:null,longitude:null,accuracy:null,altitude:null,altitudeAccuracy:null,heading:null,speed:null,timestamp:null,allowHighAccuracy:!1,timeout:Infinity,maximumAge:0,provider:undefined},updateMaximumAge:function(){if(this.watchOperation){this.updateWatchOperation()}},updateTimeout:function(){if(this.watchOperation){this.updateWatchOperation()}},updateAllowHighAccuracy:function(){if(this.watchOperation){this.updateWatchOperation()}},applyProvider:function(a){if(Ext.feature.has.Geolocation){if(!a){if(navigator&&navigator.geolocation){a=navigator.geolocation}else if(window.google){a=google.gears.factory.create('beta.geolocation')}}}else {this.fireEvent('locationerror',this,!1,!1,!0,'This device does not support Geolocation.')}return a},updateAutoUpdate:function(c,d){var a=this,b=a.getProvider();if(d&&b){Ext.uninterval(a.watchOperationId);a.watchOperationId=null}if(c){if(!b){a.fireEvent('locationerror',a,!1,!1,!0,null);return}try{a.updateWatchOperation()}catch(e){a.fireEvent('locationerror',a,!1,!1,!0,e.message)}}},updateWatchOperation:function(){var a=this,b=a.getProvider();if(a.watchOperationId){Ext.uninterval(a.watchOperationId)}function pollPosition(){b.getCurrentPosition(Ext.bind(a.fireUpdate,a),Ext.bind(a.fireError,a),a.parseOptions())}pollPosition();a.watchOperationId=Ext.interval(pollPosition,this.getFrequency())},updateLocation:function(b,e,f){var a=this,d=a.getProvider(),c=function(d,c){if(c){a.fireError(c)}else {a.fireEvent('locationerror',a,!1,!1,!0,d)}if(b){b.call(e||a,null,a)}};if(!d){c(null);return}try{d.getCurrentPosition(function(c){a.fireUpdate(c);if(b){b.call(e||a,a,a)}},function(a){c(null,a)},f||a.parseOptions())}catch(g){c(g.message)}},fireUpdate:function(b){var c=this,a=b.coords;this.position=b;c.setConfig({timestamp:b.timestamp,latitude:a.latitude,longitude:a.longitude,accuracy:a.accuracy,altitude:a.altitude,altitudeAccuracy:a.altitudeAccuracy,heading:a.heading,speed:a.speed});c.fireEvent('locationupdate',c)},fireError:function(a){var b=a.code;this.fireEvent('locationerror',this,b===a.TIMEOUT,b===a.PERMISSION_DENIED,b===a.POSITION_UNAVAILABLE,a.message===undefined?null:a.message)},parseOptions:function(){var a=this.getTimeout(),b={maximumAge:this.getMaximumAge(),enableHighAccuracy:this.getAllowHighAccuracy()};if(a!==Infinity){b.timeout=a}return b},destroy:function(){this.setAutoUpdate(!1);this.callParent()}});Ext.define('Ext.util.HeightSynchronizer',{active:null,candidates:null,filterer:null,constructor:function(a,d){var b=this,e=a.length,c;b.candidates=a;b.filterer=d;if(!d){b.active=a}for(c=0;c<e;++c){a[c].on('resize','handleResize',b)}},getActive:function(){var b=this,a=b.active,f=b.filterer,d=b.candidates,g,c,e;if(!a){if(f){a=[];for(c=0,g=d.length;c<g;++c){e=d[c];if(f(e)!==!1){a.push(e)}}}else {a=d}b.active=a}return a},handleResize:function(c,e,a,d,b){if(a&&a!==b){this.sync()}},invalidateItems:function(){this.active=null},sync:function(){var e=this.getActive(),g=e.length,c=null,h=!0,f,a,b,d;for(a=0;a<g;++a){e[a].setMinHeight(null)}for(a=0;a<g;++a){b=e[a];d=b.measure('h');if(c===null){c=d;f=b}if(d!==c){h=!1;if(d>c){c=d;f=b}}}if(!h){for(a=0;a<g;++a){b=e[a];if(b!==f){b.setMinHeight(c)}}}},destroy:function(e){var b=this,c=b.candidates,a,d;if(e){for(a=0,d=c.length;a<d;++a){c[a].un('resize','handleResize',b)}}b.callParent()}});Ext.define('Ext.util.LineSegment',{constructor:function(b,c){var a=Ext.util.Point;this.point1=a.from(b);this.point2=a.from(c)},intersects:function(l){var m=this.point1,n=this.point2,o=l.point1,p=l.point2,a=m.x,b=n.x,c=o.x,d=p.x,f=m.y,g=n.y,h=o.y,i=p.y,k=(a-b)*(h-i)-(f-g)*(c-d),e,j;if(k===0){return null}e=((c-d)*(a*g-f*b)-(a-b)*(c*i-h*d))/k;j=((h-i)*(a*g-f*b)-(f-g)*(c*i-h*d))/k;if(e<Math.min(a,b)||e>Math.max(a,b)||e<Math.min(c,d)||e>Math.max(c,d)||j<Math.min(f,g)||j>Math.max(f,g)||j<Math.min(h,i)||j>Math.max(h,i)){return null}return new Ext.util.Point(e,j)},getLength:function(){return Math.abs(this.point1.getDistanceTo(this.point2))},getAngleToX:function(){var a=this.point1,b=this.point2,d=b.y-a.y,c=b.x-a.x;return Math.atan2(d,c)},getInBetweenPoint:function(a){var b=this.point1,c=this.getAngleToX(),d=b.x+Math.cos(c)*a,e=b.y+Math.sin(c)*a;return new Ext.util.Point(d,e)},toString:function(){return this.point1.toString()+" "+this.point2.toString()}});Ext.define('Ext.util.TranslatableList',{extend:Ext.util.translatable.Abstract,config:{items:[]},applyItems:function(a){return Ext.Array.from(a)},doTranslate:function(h,g){var e=this.getItems(),d=0,b,f,a,c;for(b=0,f=e.length;b<f;b++){a=e[b];if(a&&!a._list_hidden){c=g+d;d+=a.$height;a.translate(0,c)}}}});Ext.define('Ext.util.translatable.Component',{extend:Ext.util.translatable.CssTransform,alias:'translatable.component',config:{component:null},doTranslate:function(b,c){var a=this.getComponent();if(a.getFloated()){a.setX(b);a.setY(c)}else if(a.isPositioned()){a.setLeft(b);a.setTop(c)}else {this.callParent([b,c])}},syncPosition:function(){var a=this.getComponent(),b;if(a.getFloated()){b=[a.getX(),a.getY()]}else if(a.isPositioned()){b=[a.getLeft(),a.getTop()]}else {b=this.callParent()}this.x=b[0];this.y=b[1];return b}});Ext.define('Ext.grid.Tree',{extend:Ext.grid.Grid,xtype:'tree',alternateClassName:'Ext.tree.Tree',classCls:Ext.baseCSSPrefix+'tree',expanderLastCls:Ext.baseCSSPrefix+'expander-last',expanderFirstCls:Ext.baseCSSPrefix+'expander-first',expanderOnlyCls:Ext.baseCSSPrefix+'expander-only',cellExpanderCls:Ext.baseCSSPrefix+'cell-expander',cachedConfig:{expanderFirst:!0,expanderOnly:!0},config:{root:{},selectOnExpander:!1,singleExpand:!1,rootVisible:!0,displayField:'text',columns:!1,rowLines:!1,folderSort:!1},eventsSelector:'.'+Ext.baseCSSPrefix+'grid-cell',applyColumns:function(a){if(!a){this.setHideHeaders(!0);a=[{xtype:'treecolumn',text:'Name',dataIndex:this.getDisplayField(),minWidth:100,flex:1}]}return a},onRootChange:function(a,d){var b=this,c;if(d){delete d.fireEventArgs}if(a){c=a.fireEventArgs;a.fireEventArgs=function(f){var e=c.apply(a,arguments);if(e!==!1){arguments[0]=b.rootEventsMap[f]||('item'+f);e=b.fireEventArgs.apply(b,arguments)}return e}}},updateExpanderFirst:function(a){var b=this.element;b.toggleCls(this.expanderFirstCls,a);b.toggleCls(this.expanderLastCls,!a)},updateExpanderOnly:function(a){var b=this.element;b.toggleCls(this.expanderOnlyCls,a);b.toggleCls(this.cellExpanderCls,!a)},setRootNode:function(a){var b=this.getStore();a=b.setRoot(a);return a},getRootNode:function(){var a=this.getStore();return a?a.getRoot():null},expandNode:function(b,d,a,c){return b.expand(d,a,c||this)},collapseNode:function(b,d,a,c){return b.collapse(d,a,c||this)},expandAll:function(c,d){var b=this,a=b.getRootNode();if(a){Ext.suspendLayouts();a.expand(!0,c,d||b);Ext.resumeLayouts(!0)}},collapseAll:function(d,a){var c=this,b=c.getRootNode();if(b){Ext.suspendLayouts();a=a||c;if(c.getStore().rootVisible){b.collapse(!0,d,a)}else {b.collapseChildren(!0,d,a)}Ext.resumeLayouts(!0)}},getChecked:function(){var b=[],a=this.getRootNode(),d=a.get('checked'),c=a.childNodes;if(d===!0){b.push(a)}this.getCheckedChildItems(c,b);return b},privates:{rootEventsMap:{beforeappend:'beforeitemappend',beforeremove:'beforeritememove',beforemove:'beforeitemmove',beforeinsert:'beforeiteminsert',beforeexpand:'beforeitemexpand',beforecollapse:'beforeitemcollapse'},doChildTouchStart:function(a){var b=a.cell;if(b&&(!b.isTreeCell||this.getSelectOnExpander()||a.event.target!==b.expanderElement.dom)){this.callParent([a])}},updateStore:function(a,d){var b=this,c;if(d){Ext.destroy(b.storeListeners,b.storeRelayers)}if(a){b.store=a;c=a.getRoot();if(c){b.onRootChange(c)}else {a.setRoot(b.getRoot());c=a.getRoot()}if(!('rootVisible' in a.initialConfig)){a.setRootVisible(b.getRootVisible())}a.ownerTree=b;b.callParent([a,d]);a.folderSort=b.getFolderSort();b.storeListeners=b.mon(a,{destroyable:!0,rootchange:b.onRootChange,scope:b});b.storeRelayers=b.relayEvents(a,['beforeload','load']);if(!a.rootVisible&&!a.autoLoad&&!(c.isExpanded()||c.isLoading())){if(c.isLoaded()){c.data.expanded=!0;a.onNodeExpand(c,c.childNodes)}else if(a.autoLoad!==!1&&!a.hasPendingLoad()){c.data.expanded=!1;c.expand()}}}},getCheckedChildItems:function(c,d){var b,a;for(b=0;b<c.length;b++){a=c[b];if(a.get('checked')===!0){d.push(a)}if(a.childNodes.length){this.getCheckedChildItems(a.childNodes,d)}}}}});Ext.define('Ext.grid.TreeDragZone',{extend:Ext.grid.GridDragZone,beforeDragStart:function(a){var b=Ext.dd.Manager.getTargetComp(a),c=b.getRecord();if(c.isRoot()){return !1}this.callParent([a])},getDragData:function(i){var e=this.view,h=Ext.Component.from(i,e),c,a,f,g,d,b;a=h.getRecord();g=a.getTreeStore();c=e.getSelections();if(c){f=c.indexOf(a);a=(f!==-1)?c:a}b=Ext.Array.from(a);d=a.indexOf(g.getRoot());if(d!==-1){b=Ext.Array.removeAt(b,d,0)}return {eventTarget:i,view:e,item:h,records:b}},getDragText:function(c){var b=this.dragText,e=c.data.dragData,a=e.records.length,d;if(Ext.isFunction(b)){return b(a,c)}if(a===1){d=Ext.dd.Manager.getTargetComp(c).getRecord();return d.get(this.view.getDisplayField())||''}return Ext.String.format(b,a,a===1?'':Ext.util.Inflector.pluralize(''))}});Ext.define('Ext.grid.TreeDropZone',{extend:Ext.grid.GridDropZone,expandNode:function(a){if(!a.isExpanded()){a.expand();if(this.ddEl){this.ddEl.removeCls(this.dropMarkerCls+'-after')}}this.timerId=null},cancelExpand:function(){this.timerId=Ext.undefer(this.timerId)},isTargetValid:function(c,b,f){var g=c.length,e=0,a,d;for(a=0;a<c.length;a++){d=c[a];if(d.contains(b)){return !1}if((d.parentNode===b)&&(f!=='before'||b.isRoot())){++e}}return e<g?!0:!1},onDragMove:function(e){var a=this,h=Ext.dd.Manager,c=h.getTargetComp(e),f=!0,d,j,i,l,k,b,g;d=h.getPosition(e,c);g=a.dropMarkerCls+'-'+d;if(!c||c.hasCls(g)){return}if(c.getRecord){b=c.getRecord()}l=Ext.Array.intersect(a.getGroups(),e.source.getGroups()).length;if(!b||!l){if(a.ddEl){a.removeDropMarker()}return}i=e.data.dragData.records;k=i.indexOf(b)===-1;j=a.isTargetValid(i,b,d);if(!k||!j){if(a.ddEl){a.removeDropMarker()}return}if(a.ddEl){a.removeDropMarker()}a.cancelExpand();a.ddEl=c;if(!b.isLeaf()){f=!1;h.toggleProxyCls(e,a.validDropCls,!0);if((!b.isExpanded()&&d==='after')||(!b.isRoot()&&d==='before')){f=!0}if(d==='after'&&a.allowExpandOnHover){a.timerId=Ext.defer(a.expandNode,a.expandDelay,a,[b])}}if(f){a.addDropMarker(c,[a.dropIndicator,g])}},arrangeNode:function(d,b,c,e){var f=b.length,a;for(a=0;a<f;a++){c[0]=b[a];d[e].apply(d,c)}this.view.ensureVisible(b[0])},onNodeDrop:function(e){var b=this,o=e.targetNode,k=e.draggedData,c=k.records,p=c.length,a=e.targetRecord,h=e.position,n=a.isRoot(),g=a.parentNode||b.view.getRootNode(),i='appendChild',j=[null],d,f,l,m;if(b.copy){for(d=0;d<p;d++){c[d]=c[d].copy(undefined,!0,!0)}}if(h==='before'){if(!n){i='insertBefore';j=[null,a]}}else if(h==='after'){f=a.nextSibling;if(n||!a.isLeaf()){g=a}else if(f){if(a.isLeaf()){j=[null,f];i='insertBefore'}else {g=a}}}b.arrangeNode(g,c,j,i);l=b.view.getSelectable();m=l.getSelection().getSelectionModel();m.select(c);b.view.fireEvent('drop',o,k,a,h);delete b.dragInfo},confirmDrop:function(){Ext.asap(this.onNodeDrop,this,[this.dragInfo])},prepareRecordBeforeDrop:function(b,f,g){var d=b.records,e=[],h=d.length,c,a;for(a=0;a<h;a++){c=d[a];if(c.parentNode!==f||g==='before'){e.push(c)}}b.records=e;return b},onDrop:function(f){var a=this,g=a.view,d=a.ddEl,c,b,e;a.cancelExpand();if(!d){return}b=d.getRecord();if(!b.isNode){return}c=f.data.dragData;e=d.hasCls(a.dropMarkerCls+'-before')?'before':'after';a.prepareRecordBeforeDrop(c,b,e);if(!c.records.length){return}if(g.fireEvent('beforedrop',d,c,b,e)!==!1){a.dragInfo={draggedData:c,targetRecord:b,position:e,targetNode:d};if(!b.isExpanded()&&e==='after'){b.expand(undefined,a.confirmDrop,a)}else if(b.isLoading()){b.on({expand:'confirmDrop',single:!0,scope:a})}else {a.confirmDrop()}}a.removeDropMarker()}});Ext.define('Ext.grid.cell.Tree',{extend:Ext.grid.cell.Cell,xtype:'treecell',isTreeCell:!0,classCls:Ext.baseCSSPrefix+'treecell',collapsedCls:Ext.baseCSSPrefix+'collapsed',expandedCls:Ext.baseCSSPrefix+'expanded',leafCls:Ext.baseCSSPrefix+'leaf',expandableCls:Ext.baseCSSPrefix+'expandable',withIconCls:Ext.baseCSSPrefix+'with-icon',withoutIconCls:Ext.baseCSSPrefix+'no-icon',loadingCls:Ext.baseCSSPrefix+'loading',selectedCls:Ext.baseCSSPrefix+'selected',checkableCls:Ext.baseCSSPrefix+'treecell-checkable',checkedCls:Ext.baseCSSPrefix+'treecell-checked',trimodeCls:Ext.baseCSSPrefix+'treecell-trimode',uncheckedCls:Ext.baseCSSPrefix+'treecell-unchecked',config:{iconClsProperty:'iconCls',iconCls:null,indent:null,text:{lazy:!0,$value:''},autoCheckChildren:!0,checkable:null,checkableField:'checkable',checkedField:'checked',checkOnTriTap:!0,enableTri:!0},element:{reference:'element',children:[{reference:'innerElement',cls:Ext.baseCSSPrefix+'inner-el',children:[{reference:'indentElement',cls:Ext.baseCSSPrefix+'indent-el'},{reference:'expanderElement',cls:Ext.baseCSSPrefix+'expander-el '+Ext.baseCSSPrefix+'font-icon'},{reference:'checkElement',listeners:{tap:'onCheckTap'},cls:Ext.baseCSSPrefix+'check-el '+Ext.baseCSSPrefix+'font-icon'},{reference:'iconElement',cls:Ext.baseCSSPrefix+'icon-el '+Ext.baseCSSPrefix+'font-icon'},{reference:'bodyElement',cls:Ext.baseCSSPrefix+'body-el',uiCls:'body-el'}]}]},toolDefaults:{zone:'tail'},relayedEvents:['beforecheckchange','checkchange'],constructor:function(b){var a=this;a.callParent([b]);a.element.on({scope:a,tap:'maybeToggle'});a.getGrid().relayEvents(a,a.relayedEvents)},toggle:function(){var a=this,b=a.getRecord();if(b.isExpanded()){a.collapse()}else if(b.isExpandable()){a.expand()}},collapse:function(){var a=this,b=a.getRecord();a.getGrid().fireEventedAction('nodecollapse',[a.parent,b,'collapse'],'doToggle',this)},expand:function(){var b=this,a=b.getRecord(),f=b.getGrid(),d,c,g,e;f.fireEventedAction('nodeexpand',[b.parent,a,'expand'],'doToggle',b);if(a.isExpanded&&!a.isRoot()&&f.getSingleExpand()){d=a.parentNode.childNodes;for(c=0,g=d.length;c<g;++c){e=d[c];if(e!==a){e.collapse()}}}},refresh:function(b){var a;this.callParent([b]);a=this.getRecord();if(a){this.doNodeUpdate(a)}},updateCheckable:function(){this.syncCheckElement()},updateIconCls:function(b,e){var a=this,d=a.element,c=!b;a.iconElement.replaceCls(e,b);d.toggleCls(a.withIconCls,!c);d.toggleCls(a.withoutIconCls,c)},updateUi:function(b,a){this.callParent([b,a]);this._indent=null;this.syncIndent()},syncCheckElement:function(){var a=this,g=a.getRecord(),b=a.getCheckable(),e=a.checkedCls,f=a.trimodeCls,d=a.uncheckedCls,h=null,c=null,i;if(g){h=g.get(a.getCheckableField());c=g.get(a.getCheckedField())}if((b&&h!==!1)||(b!==!1&&h&&c!=null)||(b===null&&c!=null)){a.addCls(a.checkableCls);i=a.shouldTri();if(c||i){if(a.getEnableTri()&&b!==null){a.bubbleUp(g)}if(i&&b!==null){a.replaceCls([e,d],f)}else {a.replaceCls([f,d],e)}}else {if(c!==null||b!==null){a.replaceCls([e,f],d)}}}else {a.removeCls([a.checkableCls,e,f,d])}},onCheckTap:function(f){var a=this,b=a.getRecord(),e,d,c;if(!b||a.getCheckable()===!1||b.get(a.getCheckableField()===!1)){return}e=a.getCheckedField();d=b.get(e);c=d&&d!==!0?this.getCheckOnTriTap():!d;if(a.fireEvent('beforecheckchange',a,c,d,b)!==!1){b.set(e,c);if(a.getCheckable()!==null){if(a.getAutoCheckChildren()){b.cascade(function(a){if(a!==b){a.set(e,c)}})}if(a.getEnableTri()){a.bubbleUp(b)}}a.fireEvent('checkchange',a,c,b)}},bubbleUp:function(c){var d=this,a=c.parentNode,b;if(!a){return}b=d.shouldTri(a,!0);a.set('checked',b?'tri':c.get('checked'));d.bubbleUp(a)},shouldTri:function(b,f){var c,a,d,e;b=b||this.getRecord();if(!this.getEnableTri()||!b){return !1}c=this.getCheckedField();a=b.get(c);if(a!=null&&(!f||b.isLeaf())){return a==='tri'}d=b.childNodes;if(d){return d.some(function(d,g){a=d.get(c);if(g&&(!!a!==!!e||(a&&a!==!0))){return !0}e=a})}return !1},privates:{doNodeUpdate:function(b){var a=this,c=a.getIconClsProperty(),d=a.element;if(c){a.setIconCls(b.data[c])}d.toggleCls(a.loadingCls,b.data.loading);d.toggleCls(a.leafCls,b.isLeaf());a.syncExpandCls();a.syncIndent();a.syncCheckElement()},getGrid:function(){return this.row.grid},syncExpandCls:function(){var a,g,e,b,f,d,c;if(!this.updatingExpandCls){a=this;g=a.getRecord();e=g.isExpandable();b=a.element;f=g.isExpanded();d=a.expandedCls;c=a.collapsedCls;a.updatingExpandCls=!0;b.toggleCls(a.expandableCls,e);if(e){b.toggleCls(d,f);b.toggleCls(c,!f)}else {b.removeCls([d,c])}a.updatingExpandCls=!1}},syncIndent:function(){var c=this,d=c.getColumn(),b,a,f,e;if(d){b=d._indentSize;a=c.getRecord();if(!b){d._indentSize=b=parseInt(c.el.getStyle('background-position'),10)}if(a){e=a.getTreeStore();f=(e&&e.rootVisible)?a.data.depth:a.data.depth-1;c.indentElement.dom.style.width=(f*b)+'px'}}},maybeToggle:function(c){var a=this,b=a.getRecord(),d=b.isExpanded(),e=a.getGrid();if(!b.isLeaf()&&(!e.getExpanderOnly()||c.target===a.expanderElement.dom)){a.toggle()}if(b.isExpanded()!==d){c.nodeToggled=!0;c.stopEvent()}},doToggle:function(c,a,b){a[b]()}}});Ext.define('Ext.grid.column.Tree',{extend:Ext.grid.column.Column,xtype:'treecolumn',config:{cell:{xtype:'treecell'}},isTreeColumn:!0});Ext.define('Ext.grid.plugin.TreeDragDrop',{extend:Ext.plugin.dd.DragDrop,alias:'plugin.treedragdrop',handle:'.'+Ext.baseCSSPrefix+'gridrow',groups:'treeDD',dropIndicator:Ext.baseCSSPrefix+'tree-drop-indicator',dragText:'{0} selected node{1}',expandDelay:1000,allowExpandOnHover:!0,init:function(b){var a=this;b.on('initialize',a.onViewInitialize,a)},onViewInitialize:function(b){var a=this,c={};if(a.enableDrag){if(a.proxy){c.proxy=a.proxy}if(a.activateOnLongPress){c.activateOnLongPress=a.activateOnLongPress}a.dragZone=new Ext.grid.TreeDragZone(Ext.apply({element:b.bodyElement,view:b,dragText:a.dragText,handle:a.handle,groups:a.groups,scrollAmount:a.scrollAmount,containerScroll:a.containerScroll,constrain:Ext.getBody()},c))}if(a.enableDrop){a.dropZone=new Ext.grid.TreeDropZone({view:b,element:b.bodyElement,groups:a.groups,dropIndicator:a.dropIndicator,overCls:a.overCls,copy:a.copy,expandDelay:a.expandDelay,allowExpandOnHover:a.allowExpandOnHover})}}});