diff --git a/web/Public/PCL/pcl.js b/web/Public/PCL/pcl.js index aa6b0251..5a25907f 100644 --- a/web/Public/PCL/pcl.js +++ b/web/Public/PCL/pcl.js @@ -1,3 +1,3 @@ -function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _instanceof(left,right){if(right!=null&& typeof Symbol!=="undefined"&&right[Symbol.hasInstance]){return right[Symbol.hasInstance](left)}else{return left instanceof right}}var _typeof=function(obj){"@swc/helpers - typeof";return obj&& typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj};var PCL={VERSION:"PCL2024 built2024-04-23 18:15"};var Ext={};(function(){var global=this,objectPrototype=Object.prototype,toString=objectPrototype.toString,enumerables=true,enumerablesTest={toString:1},emptyFn=function emptyFn(){},callOverrideParent=function(){var method=callOverrideParent.caller.caller;return method.$owner.prototype[method.$name].apply(this,arguments)},i1,nonWhitespaceRe=/\S/,ExtApp,iterableRe=/\[object\s*(?:Array|Arguments|\w*Collection|\w*List|HTML\s+document\.all\s+class)\]/;Function.prototype.$extIsFunction=true;Ext.global=global;for(i1 in enumerablesTest){enumerables=null}if(enumerables){enumerables=['hasOwnProperty','valueOf','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','constructor']}Ext.enumerables=enumerables;Ext.apply=function(object,config,defaults){if(defaults){Ext.apply(object,defaults)}if(object&&config&& typeof config==='object'){var i,j,k;for(i in config){object[i]=config[i]}if(enumerables){for(j=enumerables.length;j--;){k=enumerables[j];if(config.hasOwnProperty(k)){object[k]=config[k]}}}}return object};Ext.buildSettings=Ext.apply({baseCSSPrefix:'x-'},Ext.buildSettings||{});Ext.apply(Ext,{name:"Ext",emptyFn:function emptyFn(){},identityFn:function identityFn(o){return o},emptyString:new String(),baseCSSPrefix:Ext.buildSettings.baseCSSPrefix,applyIf:function applyIf(object,config){var property;if(object){for(property in config){if(object[property]===undefined){object[property]=config[property]}}}return object},iterate:function iterate(object,fn,scope){if(Ext.isEmpty(object)){return}if(scope===undefined){scope=object}if(Ext.isIterable(object)){Ext.Array.each.call(Ext.Array,object,fn,scope)}else{Ext.Object.each.call(Ext.Object,object,fn,scope)}}});Ext.apply(Ext,{extend:function(){var objectConstructor=objectPrototype.constructor,inlineOverrides=function inlineOverrides(o){for(var m in o){if(!o.hasOwnProperty(m)){continue}this[m]=o[m]}};return function(subclass,superclass,overrides1){if(Ext.isObject(superclass)){overrides1=superclass;superclass=subclass;subclass=overrides1.constructor!==objectConstructor?overrides1.constructor:function subclass(){superclass.apply(this,arguments)}}var F=function F(){},subclassProto,superclassProto=superclass.prototype;F.prototype=superclassProto;subclassProto=subclass.prototype=new F();subclassProto.constructor=subclass;subclass.superclass=superclassProto;if(superclassProto.constructor===objectConstructor){superclassProto.constructor=superclass}subclass.override=function(overrides){Ext.override(subclass,overrides)};subclassProto.override=inlineOverrides;subclassProto.proto=subclassProto;subclass.override(overrides1);subclass.extend=function(o){return Ext.extend(subclass,o)};return subclass}}(),override:function override(target,overrides){if(target.$isClass){target.override(overrides)}else if(typeof target=='function'){Ext.apply(target.prototype,overrides)}else{var owner=target.self,name,value;if(owner&&owner.$isClass){for(name in overrides){if(overrides.hasOwnProperty(name)){value=overrides[name];if(typeof value=='function'){value.$name=name;value.$owner=owner;value.$previous=target.hasOwnProperty(name)?target[name]:callOverrideParent}target[name]=value}}}else{Ext.apply(target,overrides)}}return target}});Ext.apply(Ext,{valueFrom:function valueFrom(value,defaultValue,allowBlank){return Ext.isEmpty(value,allowBlank)?defaultValue:value},typeOf:function typeOf(value){var type,typeToString;if(value===null){return'null'}type=typeof value==="undefined"?"undefined":_typeof(value);if(type==='undefined'||type==='string'||type==='number'||type==='boolean'){return type}typeToString=toString.call(value);switch(typeToString){case'[object Array]':return'array';case'[object Date]':return'date';case'[object Boolean]':return'boolean';case'[object Number]':return'number';case'[object RegExp]':return'regexp'}if(type==='function'){return'function'}if(type==='object'){if(value.nodeType!==undefined){if(value.nodeType===3){return nonWhitespaceRe.test(value.nodeValue)?'textnode':'whitespace'}else{return'element'}}return'object'}},coerce:function coerce(from,to){var fromType=Ext.typeOf(from),toType=Ext.typeOf(to),isString=typeof from==='string';if(fromType!==toType){switch(toType){case'string':return String(from);case'number':return Number(from);case'boolean':return isString&&(!from||from==='false')?false:Boolean(from);case'null':return isString&&(!from||from==='null')?null:from;case'undefined':return isString&&(!from||from==='undefined')?undefined:from;case'date':return isString&&isNaN(from)?Ext.Date.parse(from,Ext.Date.defaultFormat):Date(Number(from))}}return from},isEmpty:function isEmpty(value,allowEmptyString){return value===null||value===undefined||(!allowEmptyString?value==='':false)||Ext.isArray(value)&&value.length===0},isArray:'isArray'in Array?Array.isArray:function(value){return toString.call(value)==='[object Array]'},isDate:function isDate(value){return toString.call(value)==='[object Date]'},isObject:toString.call(null)==='[object Object]'?function(value){return value!==null&&value!==undefined&&toString.call(value)==='[object Object]'&&value.ownerDocument===undefined}:function(value){return toString.call(value)==='[object Object]'},isSimpleObject:function isSimpleObject(value){return _instanceof(value,Object)&&value.constructor===Object},isPrimitive:function isPrimitive(value){var type=typeof value==="undefined"?"undefined":_typeof(value);return type==='string'||type==='number'||type==='boolean'},isFunction:function isFunction(value){return!!(value&&value.$extIsFunction)},isNumber:function isNumber(value){return typeof value==='number'&&isFinite(value)},isNumeric:function isNumeric(value){return!isNaN(parseFloat(value))&&isFinite(value)},isString:function isString(value){return typeof value==='string'},isBoolean:function isBoolean(value){return typeof value==='boolean'},isElement:function isElement(value){return value?value.nodeType===1:false},isTextNode:function isTextNode(value){return value?value.nodeName==="#text":false},isDefined:function isDefined(value){return typeof value!=='undefined'},isIterable:function isIterable(value){if(!value|| typeof value.length!=='number'|| typeof value==='string'||value.$extIsFunction){return false}if(!value.propertyIsEnumerable){return!!value.item}if(value.hasOwnProperty('length')&&!value.propertyIsEnumerable('length')){return true}return iterableRe.test(toString.call(value))}});Ext.apply(Ext,{clone:function clone(item){var type,i,j,k,clone1,key;if(item===null||item===undefined){return item}if(item.nodeType&&item.cloneNode){return item.cloneNode(true)}type=toString.call(item);if(type==='[object Date]'){return new Date(item.getTime())}if(type==='[object Array]'){i=item.length;clone1=[];while(i--){clone1[i]=Ext.clone(item[i])}}else if(type==='[object Object]'&&item.constructor===Object){clone1={};for(key in item){clone1[key]=Ext.clone(item[key])}if(enumerables){for(j=enumerables.length;j--;){k=enumerables[j];if(item.hasOwnProperty(k)){clone1[k]=item[k]}}}}return clone1||item},getUniqueGlobalNamespace:function getUniqueGlobalNamespace(){var uniqueGlobalNamespace=this.uniqueGlobalNamespace,i;if(uniqueGlobalNamespace===undefined){i=0;do{uniqueGlobalNamespace='ExtBox'+ ++i}while(Ext.global[uniqueGlobalNamespace]!==undefined);Ext.global[uniqueGlobalNamespace]=Ext;this.uniqueGlobalNamespace=uniqueGlobalNamespace}return uniqueGlobalNamespace},functionFactoryCache:{},cacheableFunctionFactory:function cacheableFunctionFactory(){var me=this,args=Array.prototype.slice.call(arguments),cache=me.functionFactoryCache,idx,fn,ln;if(Ext.isSandboxed){ln=args.length;if(ln>0){ln--;args[ln]='var Ext=window.'+Ext.name+';'+args[ln]}}idx=args.join('');fn=cache[idx];if(!fn){fn=Function.prototype.constructor.apply(Function.prototype,args);cache[idx]=fn}return fn},functionFactory:function functionFactory(){var me=this,args=Array.prototype.slice.call(arguments),ln;if(Ext.isSandboxed){ln=args.length;if(ln>0){ln--;args[ln]='var Ext=window.'+Ext.name+';'+args[ln]}}return Function.prototype.constructor.apply(Function.prototype,args)},Logger:{verbose:emptyFn,log:emptyFn,info:emptyFn,warn:emptyFn,error:function error(message){throw new Error(message)},deprecate:emptyFn}});Ext.type=Ext.typeOf;ExtApp=Ext.app;if(!ExtApp){ExtApp=Ext.app={}}Ext.apply(ExtApp,{namespaces:{},collectNamespaces:function collectNamespaces(paths){var namespaces=Ext.app.namespaces,path;for(path in paths){if(paths.hasOwnProperty(path)){namespaces[path]=true}}},addNamespaces:function addNamespaces(ns){var namespaces=Ext.app.namespaces,i,l;if(!Ext.isArray(ns)){ns=[ns]}for(i=0,l=ns.length;ideepestPrefix.length&&prefix+'.'===className.substring(0,prefix.length+1)){deepestPrefix=prefix}}return deepestPrefix===''?undefined:deepestPrefix}})})();Ext.globalEval=Ext.global.execScript?function(code){execScript(code)}:function($$code){(function(){var Ext=this.Ext;eval($$code)})()};(function(){var version1='4.2.1.883',Version;Ext.Version=Version=Ext.extend(Object,{constructor:function constructor(version){var parts,releaseStartIndex;if(_instanceof(version,Version)){return version}this.version=this.shortVersion=String(version).toLowerCase().replace(/_/g,'.').replace(/[\-+]/g,'');releaseStartIndex=this.version.search(/([^\d\.])/);if(releaseStartIndex!== -1){this.release=this.version.substr(releaseStartIndex,version.length);this.shortVersion=this.version.substr(0,releaseStartIndex)}this.shortVersion=this.shortVersion.replace(/[^\d]/g,'');parts=this.version.split('.');this.major=parseInt(parts.shift()||0,10);this.minor=parseInt(parts.shift()||0,10);this.patch=parseInt(parts.shift()||0,10);this.build=parseInt(parts.shift()||0,10);return this},toString:function toString(){return this.version},valueOf:function valueOf(){return this.version},getMajor:function getMajor(){return this.major||0},getMinor:function getMinor(){return this.minor||0},getPatch:function getPatch(){return this.patch||0},getBuild:function getBuild(){return this.build||0},getRelease:function getRelease(){return this.release||''},isGreaterThan:function isGreaterThan(target){return Version.compare(this.version,target)===1},isGreaterThanOrEqual:function isGreaterThanOrEqual(target){return Version.compare(this.version,target)>=0},isLessThan:function isLessThan(target){return Version.compare(this.version,target)=== -1},isLessThanOrEqual:function isLessThanOrEqual(target){return Version.compare(this.version,target)<=0},equals:function equals(target){return Version.compare(this.version,target)===0},match:function match(target){target=String(target);return this.version.substr(0,target.length)===target},toArray:function toArray(){return[this.getMajor(),this.getMinor(),this.getPatch(),this.getBuild(),this.getRelease()]},getShortVersion:function getShortVersion(){return this.shortVersion},gt:function gt(){return this.isGreaterThan.apply(this,arguments)},lt:function lt(){return this.isLessThan.apply(this,arguments)},gtEq:function gtEq(){return this.isGreaterThanOrEqual.apply(this,arguments)},ltEq:function ltEq(){return this.isLessThanOrEqual.apply(this,arguments)}});Ext.apply(Version,{releaseValueMap:{'dev':-6,'alpha':-5,'a':-5,'beta':-4,'b':-4,'rc':-3,'#':-2,'p':-1,'pl':-1},getComponentValue:function getComponentValue(value){return!value?0:isNaN(value)?this.releaseValueMap[value]||value:parseInt(value,10)},compare:function compare(current,target){var currentValue,targetValue,i;current=new Version(current).toArray();target=new Version(target).toArray();for(i=0;itargetValue){return 1}}return 0}});Ext.apply(Ext,{versions:{},lastRegisteredVersion:null,setVersion:function setVersion(packageName,version){Ext.versions[packageName]=new Version(version);Ext.lastRegisteredVersion=Ext.versions[packageName];return this},getVersion:function getVersion(packageName){if(packageName===undefined){return Ext.lastRegisteredVersion}return Ext.versions[packageName]},deprecate:function deprecate(packageName,since,closure,scope){if(Version.compare(Ext.getVersion(packageName),since)<1){closure.call(scope)}}});Ext.setVersion('core',version1)})();Ext.String=(function(){var trimRegex=/^[\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,escapeRe=/('|\\)/g,formatRe=/\{(\d+)\}/g,escapeRegexRe=/([-.*+?\^${}()|\[\]\/\\])/g,basicTrimRe=/^\s+|\s+$/g,whitespaceRe=/\s+/,varReplace=/(^[^a-z]*|[^\w])/gi,charToEntity,entityToChar,charToEntityRegex,entityToCharRegex,htmlEncodeReplaceFn=function htmlEncodeReplaceFn(match,capture){return charToEntity[capture]},htmlDecodeReplaceFn=function htmlDecodeReplaceFn(match,capture){return capture in entityToChar?entityToChar[capture]:String.fromCharCode(parseInt(capture.substr(2),10))},boundsCheck=function boundsCheck(s,other){if(s===null||s===undefined||other===null||other===undefined){return false}return other.length<=s.length};return{insert:function insert(s,value,index){if(!s){return value}if(!value){return s}var len=s.length;if(!index&&index!==0){index=len}if(index<0){index*=-1;if(index>=len){index=0}else{index=len-index}}if(index===0){s=value+s}else if(index>=s.length){s+=value}else{s=s.substr(0,index)+value+s.substr(index)}return s},startsWith:function startsWith(s,start,ignoreCase){var result=boundsCheck(s,start);if(result){if(ignoreCase){s=s.toLowerCase();start=start.toLowerCase()}result=s.lastIndexOf(start,0)===0}return result},endsWith:function endsWith(s,end,ignoreCase){var result=boundsCheck(s,end);if(result){if(ignoreCase){s=s.toLowerCase();end=end.toLowerCase()}result=s.indexOf(end,s.length-end.length)!== -1}return result},createVarName:function createVarName(s){return s.replace(varReplace,'')},htmlEncode:function htmlEncode(value){return!value?value:String(value).replace(charToEntityRegex,htmlEncodeReplaceFn)},htmlDecode:function htmlDecode(value){return!value?value:String(value).replace(entityToCharRegex,htmlDecodeReplaceFn)},addCharacterEntities:function addCharacterEntities(newEntities){var charKeys=[],entityKeys=[],key,echar;for(key in newEntities){echar=newEntities[key];entityToChar[key]=echar;charToEntity[echar]=key;charKeys.push(echar);entityKeys.push(key)}charToEntityRegex=new RegExp('('+charKeys.join('|')+')','g');entityToCharRegex=new RegExp('('+entityKeys.join('|')+'|&#[0-9]{1,5};'+')','g')},resetCharacterEntities:function resetCharacterEntities(){charToEntity={};entityToChar={};this.addCharacterEntities({'&':'&','>':'>','<':'<','"':'"',''':"'"})},urlAppend:function urlAppend(url,string){if(!Ext.isEmpty(string)){return url+(url.indexOf('?')=== -1?'?':'&')+string}return url},trim:function trim(string){return string.replace(trimRegex,"")},capitalize:function capitalize(string){return string.charAt(0).toUpperCase()+string.substr(1)},uncapitalize:function uncapitalize(string){return string.charAt(0).toLowerCase()+string.substr(1)},ellipsis:function ellipsis(value,len,word){if(value&&value.length>len){if(word){var vs=value.substr(0,len-2),index=Math.max(vs.lastIndexOf(' '),vs.lastIndexOf('.'),vs.lastIndexOf('!'),vs.lastIndexOf('?'));if(index!== -1&&index>=len-15){return vs.substr(0,index)+"..."}}return value.substr(0,len-3)+"..."}return value},escapeRegex:function escapeRegex(string){return string.replace(escapeRegexRe,"\\$1")},escape:function escape(string){return string.replace(escapeRe,"\\$1")},toggle:function toggle(string,value,other){return string===value?other:value},leftPad:function leftPad(string,size,character){var result=String(string);character=character||" ";while(result.lengthmax?max:x},snap:function snap(value,increment,minValue,maxValue){var m;if(value===undefined||value=increment){value+=increment}else if(m*2< -increment){value-=increment}}}return me.constrain(value,minValue,maxValue)},snapInRange:function snapInRange(value,increment,minValue,maxValue){var tween;minValue=minValue||0;if(value===undefined||value=increment){value+=increment}}if(maxValue!==undefined){if(value>(maxValue=me.snapInRange(maxValue,increment,minValue))){value=maxValue}}return value},toFixed:isToFixedBroken?function(value,precision){precision=precision||0;var pow=math.pow(10,precision);return(math.round(value*pow)/pow).toFixed(precision)}:function(value,precision){return value.toFixed(precision)},from:function from(value,defaultValue){if(isFinite(value)){value=parseFloat(value)}return!isNaN(value)?value:defaultValue},randomInt:function randomInt(from,to){return math.floor(math.random()*(to-from+1)+from)},correctFloat:function correctFloat(n){return parseFloat(n.toPrecision(14))}});Ext.num=function(){return me.from.apply(this,arguments)}};(function(){var fixArrayIndex=function fixArrayIndex(array,index){return index<0?Math.max(0,array.length+index):Math.min(array.length,index)};var replaceSim=function replaceSim(array,index,removeCount,insert){var add=insert?insert.length:0,length=array.length,pos=fixArrayIndex(array,index),remove,tailOldPos,tailNewPos,tailCount,lengthAfterRemove,i;if(pos===length){if(add){array.push.apply(array,insert)}}else{remove=Math.min(removeCount,length-pos);tailOldPos=pos+remove;tailNewPos=tailOldPos+add-remove;tailCount=length-tailOldPos;lengthAfterRemove=length-remove;if(tailNewPostailOldPos){for(i=tailCount;i--;){array[tailNewPos+i]=array[tailOldPos+i]}}if(add&&pos===lengthAfterRemove){array.length=lengthAfterRemove;array.push.apply(array,insert)}else{array.length=lengthAfterRemove+add;for(i=0;i -1;i--){if(fn.call(scope||array[i],array[i],i,array)===false){return i}}}return true},forEach:supportsForEach?function(array,fn,scope){array.forEach(fn,scope)}:function(array,fn,scope){var i=0,ln=array.length;for(;imax1){max1=item}}}return max1},mean:function mean(array){return array.length>0?ExtArray.sum(array)/array.length:undefined},sum:function sum(array){var sum1=0,i,ln,item;for(i=0,ln=array.length;i0){return setTimeout(Ext.supports.TimeoutActualLateness?function(){fn()}:fn,millis)}fn();return 0},createSequence:function createSequence(originalFn,newFn,scope){if(!newFn){return originalFn}else{return function(){var result=originalFn.apply(this,arguments);newFn.apply(scope||this,arguments);return result}}},createBuffered:function createBuffered(fn,buffer,scope,args){var timerId;return function(){var callArgs=args||Array.prototype.slice.call(arguments,0),me=scope||this;if(timerId){clearTimeout(timerId)}timerId=setTimeout(function(){fn.apply(me,callArgs)},buffer)}},createThrottled:function createThrottled(fn,interval,scope){var lastCallTime,elapsed,lastArgs,timer,execute=function execute(){fn.apply(scope||this,lastArgs);lastCallTime=Ext.Date.now()};return function(){elapsed=Ext.Date.now()-lastCallTime;lastArgs=arguments;clearTimeout(timer);if(!lastCallTime||elapsed>=interval){execute()}else{timer=setTimeout(execute,interval-elapsed)}}},interceptBefore:function interceptBefore(object,methodName,fn,scope){var method=object[methodName]||Ext.emptyFn;return object[methodName]=function(){var ret=fn.apply(scope||this,arguments);method.apply(this,arguments);return ret}},interceptAfter:function interceptAfter(object,methodName,fn,scope){var method=object[methodName]||Ext.emptyFn;return object[methodName]=function(){method.apply(this,arguments);return fn.apply(scope||this,arguments)}}};Ext.defer=Ext.Function.alias(Ext.Function,'defer');Ext.pass=Ext.Function.alias(Ext.Function,'pass');Ext.bind=Ext.Function.alias(Ext.Function,'bind');(function(){var _arguments=arguments;var TemplateClass=function TemplateClass(){},ExtObject=Ext.Object={chain:Object.create||function(object){TemplateClass.prototype=object;var result=new TemplateClass();TemplateClass.prototype=null;return result},toQueryObjects:function toQueryObjects(name,value,recursive){var self=ExtObject.toQueryObjects,objects=[],i,ln;if(Ext.isArray(value)){for(i=0,ln=value.length;i0){components=part.split('=');name=decodeURIComponent(components[0]);value=components[1]!==undefined?decodeURIComponent(components[1]):'';if(!recursive){if(object.hasOwnProperty(name)){if(!Ext.isArray(object[name])){object[name]=[object[name]]}object[name].push(value)}else{object[name]=value}}else{matchedKeys=name.match(/(\[):?([^\]]*)\]/g);matchedName=name.match(/^([^\[]+)/);name=matchedName[0];keys=[];if(matchedKeys===null){object[name]=value;continue}for(j=0,subLn=matchedKeys.length;j 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),","week1monday = new Date(jan4.getTime() - ((jan4.getDay() - 1) * 86400000));","v = Ext.Date.clearTime(new Date(week1monday.getTime() + ((W - 1) * 604800000)));","} 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;"].join('\n');Ext.apply(utilDate,{now:Date.now||function(){return+new Date()},toString:function toString(date){var pad=Ext.String.leftPad;return date.getFullYear()+"-"+pad(date.getMonth()+1,2,'0')+"-"+pad(date.getDate(),2,'0')+"T"+pad(date.getHours(),2,'0')+":"+pad(date.getMinutes(),2,'0')+":"+pad(date.getSeconds(),2,'0')},getElapsed:function getElapsed(dateA,dateB){return Math.abs(dateA-(dateB||utilDate.now()))},useStrict:false,formatCodeToRegex:function formatCodeToRegex(character,currentGroup){var p=utilDate.parseCodes[character];if(p){p=typeof p=='function'?p():p;utilDate.parseCodes[character]=p}return p?Ext.applyIf({c:p.c?xf(p.c,currentGroup||"{0}"):p.c},p):{g:0,c:null,s:Ext.String.escapeRegex(character)}},parseFunctions:{"MS":function(input,strict){var r=(input||'').match(MSFormatRe);return r?new Date(((r[1]||'')+r[2])*1):null},"time":function(input,strict){var num=parseInt(input,10);if(num||num===0){return new Date(num)}return null},"timestamp":function(input,strict){var num=parseInt(input,10);if(num||num===0){return new Date(num*1e3)}return null}},parseRegexes:[],formatFunctions:{"MS":function(){return'\\/Date('+this.getTime()+')\\/'},"time":function(){return this.getTime().toString()},"timestamp":function(){return utilDate.format(this,'U')}},y2kYear:50,MILLI:"ms",SECOND:"s",MINUTE:"mi",HOUR:"h",DAY:"d",MONTH:"mo",YEAR:"y",defaults:{},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNumbers:{January:0,Jan:0,February:1,Feb:1,March:2,Mar:2,April:3,Apr:3,May:4,June:5,Jun:5,July:6,Jul:6,August:7,Aug:7,September:8,Sep:8,October:9,Oct:9,November:10,Nov:10,December:11,Dec:11},defaultFormat:"m/d/Y",getShortMonthName:function getShortMonthName(month){return Ext.Date.monthNames[month].substring(0,3)},getShortDayName:function getShortDayName(day){return Ext.Date.dayNames[day].substring(0,3)},getMonthNumber:function getMonthNumber(name){return Ext.Date.monthNumbers[name.substring(0,1).toUpperCase()+name.substring(1,3).toLowerCase()]},formatContainsHourInfo:function formatContainsHourInfo(format){return hourInfoRe.test(format.replace(stripEscapeRe,''))},formatContainsDateInfo:function formatContainsDateInfo(format){return dateInfoRe.test(format.replace(stripEscapeRe,''))},unescapeFormat:function unescapeFormat(format){return format.replace(slashRe,'')},formatCodes:{d:"Ext.String.leftPad(this.getDate(), 2, '0')",D:"Ext.Date.getShortDayName(this.getDay())",j:"this.getDate()",l:"Ext.Date.dayNames[this.getDay()]",N:"(this.getDay() ? this.getDay() : 7)",S:"Ext.Date.getSuffix(this)",w:"this.getDay()",z:"Ext.Date.getDayOfYear(this)",W:"Ext.String.leftPad(Ext.Date.getWeekOfYear(this), 2, '0')",F:"Ext.Date.monthNames[this.getMonth()]",m:"Ext.String.leftPad(this.getMonth() + 1, 2, '0')",M:"Ext.Date.getShortMonthName(this.getMonth())",n:"(this.getMonth() + 1)",t:"Ext.Date.getDaysInMonth(this)",L:"(Ext.Date.isLeapYear(this) ? 1 : 0)",o:"(this.getFullYear() + (Ext.Date.getWeekOfYear(this) == 1 && this.getMonth() > 0 ? +1 : (Ext.Date.getWeekOfYear(this) >= 52 && this.getMonth() < 11 ? -1 : 0)))",Y:"Ext.String.leftPad(this.getFullYear(), 4, '0')",y:"('' + this.getFullYear()).substring(2, 4)",a:"(this.getHours() < 12 ? 'am' : 'pm')",A:"(this.getHours() < 12 ? 'AM' : 'PM')",g:"((this.getHours() % 12) ? this.getHours() % 12 : 12)",G:"this.getHours()",h:"Ext.String.leftPad((this.getHours() % 12) ? this.getHours() % 12 : 12, 2, '0')",H:"Ext.String.leftPad(this.getHours(), 2, '0')",i:"Ext.String.leftPad(this.getMinutes(), 2, '0')",s:"Ext.String.leftPad(this.getSeconds(), 2, '0')",u:"Ext.String.leftPad(this.getMilliseconds(), 3, '0')",O:"Ext.Date.getGMTOffset(this)",P:"Ext.Date.getGMTOffset(this, true)",T:"Ext.Date.getTimezone(this)",Z:"(this.getTimezoneOffset() * -60)",c:function c(){var c1,code,i,l,e;for(c1="Y-m-dTH:i:sP",code=[],i=0,l=c1.length;i me.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,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:true},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:true},g:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|[0-9])"},G:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|1[0-9]|[0-9])"},h:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(1[0-2]|0[1-9])"},H:{g:1,c:"h = parseInt(results[{0}], 10);\n",s:"(2[0-3]|[0-1][0-9])"},i:{g:1,c:"i = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},s:{g:1,c:"s = parseInt(results[{0}], 10);\n",s:"([0-5][0-9])"},u:{g:1,c:"ms = results[{0}]; ms = parseInt(ms, 10)/Math.pow(10, ms.length - 3);\n",s:"(\\d+)"},O:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(3,5) / 60),","mn = o.substring(3,5) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{4})"},P:{g:1,c:["o = results[{0}];","var sn = o.substring(0,1),","hr = o.substring(1,3)*1 + Math.floor(o.substring(4,6) / 60),","mn = o.substring(4,6) % 60;","o = ((-12 <= (hr*60 + mn)/60) && ((hr*60 + mn)/60 <= 14))? (sn + Ext.String.leftPad(hr, 2, '0') + Ext.String.leftPad(mn, 2, '0')) : null;\n"].join("\n"),s:"([+-]\\d{2}:\\d{2})"},T:{g:0,c:null,s:"[A-Z]{1,5}"},Z:{g:1,c:"zz = results[{0}] * 1;\n"+"zz = (-43200 <= zz && zz <= 50400)? zz : null;\n",s:"([+-]?\\d{1,5})"},c:function c(){var calc=[],arr=[utilDate.formatCodeToRegex("Y",1),utilDate.formatCodeToRegex("m",2),utilDate.formatCodeToRegex("d",3),utilDate.formatCodeToRegex("H",4),utilDate.formatCodeToRegex("i",5),utilDate.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){",utilDate.formatCodeToRegex("P",8).c,"}else{",utilDate.formatCodeToRegex("O",8).c,"}","}"].join('\n')}],i,l;for(i=0,l=arr.length;i0?"-":"+")+Ext.String.leftPad(Math.floor(Math.abs(offset)/60),2,"0")+(colon?":":"")+Ext.String.leftPad(Math.abs(offset%60),2,"0")},getDayOfYear:function getDayOfYear(date){var num=0,d=Ext.Date.clone(date),m=date.getMonth(),i;for(i=0,d.setDate(1),d.setMonth(0);i28){day=Math.min(day,Ext.Date.getLastDateOfMonth(Ext.Date.add(Ext.Date.getFirstDateOfMonth(date),Ext.Date.MONTH,value)).getDate())}d.setDate(day);d.setMonth(date.getMonth()+value);break;case Ext.Date.YEAR:day=date.getDate();if(day>28){day=Math.min(day,Ext.Date.getLastDateOfMonth(Ext.Date.add(Ext.Date.getFirstDateOfMonth(date),Ext.Date.YEAR,value)).getDate())}d.setDate(day);d.setFullYear(date.getFullYear()+value);break}}if(decimalValue){switch(interval.toLowerCase()){case Ext.Date.MILLI:base=1;break;case Ext.Date.SECOND:base=1e3;break;case Ext.Date.MINUTE:base=1e3*60;break;case Ext.Date.HOUR:base=1e3*60*60;break;case Ext.Date.DAY:base=1e3*60*60*24;break;case Ext.Date.MONTH:day=utilDate.getDaysInMonth(d);base=1e3*60*60*24*day;break;case Ext.Date.YEAR:day=utilDate.isLeapYear(d)?366:365;base=1e3*60*60*24*day;break}if(base){d.setTime(d.getTime()+base*decimalValue)}}return d},subtract:function subtract(date,interval,value){return utilDate.add(date,interval,-value)},between:function between(date,start,end){var t=date.getTime();return start.getTime()<=t&&t<=end.getTime()},compat:function compat(){var nativeDate=window.Date,p,statics=['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'],proto=['dateFormat','format','getTimezone','getGMTOffset','getDayOfYear','getWeekOfYear','isLeapYear','getFirstDayOfMonth','getLastDayOfMonth','getDaysInMonth','getSuffix','clone','isDST','clearTime','add','between'],sLen=statics.length,pLen=proto.length,stat,prot,s;for(s=0;s0){for(i=0;i0){if(prefix===className){return paths[prefix]}path=paths[prefix];className=className.substring(prefix.length+1)}if(path.length>0){path+='/'}return path.replace(slashDotSlashRe,'/')+className.replace(dotRe,"/")+'.js'},getPrefix:function getPrefix(className){var paths=Loader.config.paths,prefix,deepestPrefix='';if(paths.hasOwnProperty(className)){return className}for(prefix in paths){if(paths.hasOwnProperty(prefix)&&prefix+'.'===className.substring(0,prefix.length+1)){if(prefix.length>deepestPrefix.length){deepestPrefix=prefix}}}return deepestPrefix},isAClassNameWithAKnownPrefix:function isAClassNameWithAKnownPrefix(className){var prefix=Loader.getPrefix(className);return prefix!==''&&prefix!==className},require:function require(expressions,fn,scope,excludes){if(fn){fn.call(scope)}},syncRequire:function syncRequire(){},exclude:function exclude(excludes){return{require:function require(expressions,fn,scope){return Loader.require(expressions,fn,scope,excludes)},syncRequire:function syncRequire(expressions,fn,scope){return Loader.syncRequire(expressions,fn,scope,excludes)}}},onReady:function onReady(fn,scope,withDomReady,options){var oldFn;if(withDomReady!==false&&Ext.onDocumentReady){oldFn=fn;fn=function fn(){Ext.onDocumentReady(oldFn,scope,options)}}fn.call(scope)}});var queue=[],isClassFileLoaded={},isFileLoaded={},classNameToFilePathMap={},scriptElements={},readyListeners=[],usedClasses=[],requiresMap={},comparePriority=function comparePriority(listenerA,listenerB){return listenerB.priority-listenerA.priority};Ext.apply(Loader,{documentHead:typeof document!='undefined'&&(document.head||document.getElementsByTagName('head')[0]),isLoading:false,queue:queue,isClassFileLoaded:isClassFileLoaded,isFileLoaded:isFileLoaded,readyListeners:readyListeners,optionalRequires:usedClasses,requiresMap:requiresMap,numPendingFiles:0,numLoadedFiles:0,hasFileLoadError:false,classNameToFilePathMap:classNameToFilePathMap,scriptsLoading:0,syncModeEnabled:false,scriptElements:scriptElements,refreshQueue:function refreshQueue(){var ln=queue.length,i,item,j,requires;if(!ln&&!Loader.scriptsLoading){return Loader.triggerReady()}for(i=0;iLoader.numLoadedFiles){continue}for(j=0;j=200&&status<300||status===304){if(!Ext.isIE){debugSourceURL="\n//@ sourceURL="+url}Ext.globalEval(xhr.responseText+debugSourceURL);onLoad.call(scope)}else{}xhr=null}},syncRequire:function syncRequire(){var syncModeEnabled=Loader.syncModeEnabled;if(!syncModeEnabled){Loader.syncModeEnabled=true}Loader.require.apply(Loader,arguments);if(!syncModeEnabled){Loader.syncModeEnabled=false}Loader.refreshQueue()},require:function require(expressions,fn,scope,excludes){var excluded={},included={},excludedClassNames=[],possibleClassNames=[],classNames=[],references=[],callback,syncModeEnabled,filePath,expression,exclude,className,possibleClassName,i2,j,ln1,subLn;if(excludes){excludes=typeof excludes==='string'?[excludes]:excludes;for(i2=0,ln1=excludes.length;i20){excludedClassNames=Manager.getNamesByExpression(exclude);for(j=0,subLn=excludedClassNames.length;j0){callback=function callback(){var classes=[],i,ln;for(i=0,ln=references.length;i0){possibleClassNames=Manager.getNamesByExpression(expression);subLn=possibleClassNames.length;for(j=0;j0){if(!Loader.config.enabled){throw new Error("Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. "+"Missing required class"+(classNames.length>1?"es":"")+": "+classNames.join(', '))}}else{callback.call(scope);return Loader}syncModeEnabled=Loader.syncModeEnabled;if(!syncModeEnabled){queue.push({requires:classNames.slice(),callback:callback,scope:scope})}ln1=classNames.length;for(i2=0;i2window.innerWidth?'portrait':'landscape'},destroy:function destroy(){var ln=arguments.length,i,arg;for(i=0;i]+>/gi,stripScriptsRe=/(?:)((\n|\r|.)*?)(?:<\/script>)/ig,nl2brRe=/\r?\n/g,allHashes=/^#+$/,formatPattern=/[\d,\.#]+/,formatCleanRe=/[^\d\.#]/g,I18NFormatCleanRe,formatFns={};Ext.apply(UtilFormat,{thousandSeparator:',',decimalSeparator:'.',currencyPrecision:2,currencySign:'$',currencyAtEnd:false,undef:function undef(value){return value!==undefined?value:""},defaultValue:function defaultValue1(value,defaultValue){return value!==undefined&&value!==''?value:defaultValue},substr:'ab'.substr(-1)!='b'?function(value,start,length){var str=String(value);return start<0?str.substr(Math.max(str.length+start,0),length):str.substr(start,length)}:function(value,start,length){return String(value).substr(start,length)},lowercase:function lowercase(value){return String(value).toLowerCase()},uppercase:function uppercase(value){return String(value).toUpperCase()},usMoney:function usMoney(v){return UtilFormat.currency(v,'$',2)},currency:function currency(v,currencySign,decimals,end){var negativeSign='',format=",0",i=0;v=v-0;if(v<0){v=-v;negativeSign='-'}decimals=Ext.isDefined(decimals)?decimals:UtilFormat.currencyPrecision;format+=decimals>0?'.':'';for(;i2){}else if(splitFormat.length===2){precision=splitFormat[1].length;trimTrailingZeroes=allHashes.test(splitFormat[1])}code=['var utilFormat=Ext.util.Format,extNumber=Ext.Number,neg,fnum,parts'+(hasComma?',thousandSeparator,thousands=[],j,n,i':'')+(extraChars?',formatString="'+formatString+'",formatPattern=/[\\d,\\.#]+/':'')+(trimTrailingZeroes?',trailingZeroes=/\\.?0+$/;':';')+'return function(v){'+'if(typeof v!=="number"&&isNaN(v=extNumber.from(v,NaN)))return"";'+'neg=v<0;','fnum=Ext.Number.toFixed(Math.abs(v), '+precision+');'];if(hasComma){if(precision){code[code.length]='parts=fnum.split(".");';code[code.length]='fnum=parts[0];'}code[code.length]='if(v>=1000) {';code[code.length]='thousandSeparator=utilFormat.thousandSeparator;'+'thousands.length=0;'+'j=fnum.length;'+'n=fnum.length%3||3;'+'for(i=0;i')},capitalize:Ext.String.capitalize,ellipsis:Ext.String.ellipsis,format:Ext.String.format,htmlDecode:Ext.String.htmlDecode,htmlEncode:Ext.String.htmlEncode,leftPad:Ext.String.leftPad,trim:Ext.String.trim,parseBox:function parseBox(box){box=box||0;if(typeof box==='number'){return{top:box,right:box,bottom:box,left:box}}var parts=box.split(' '),ln=parts.length;if(ln==1){parts[1]=parts[2]=parts[3]=parts[0]}else if(ln==2){parts[2]=parts[0];parts[3]=parts[1]}else if(ln==3){parts[3]=parts[1]}return{top:parseInt(parts[0],10)||0,right:parseInt(parts[1],10)||0,bottom:parseInt(parts[2],10)||0,left:parseInt(parts[3],10)||0}},escapeRegex:function escapeRegex(s){return s.replace(/([\-.*+?\^${}()|\[\]\/\\])/g,"\\$1")}})})();Ext.define('Ext.util.TaskRunner',{interval:10,timerId:null,constructor:function constructor(interval){var me=this;if(typeof interval=='number'){me.interval=interval}else if(interval){Ext.apply(me,interval)}me.tasks=[];me.timerFn=Ext.Function.bind(me.onTick,me)},newTask:function newTask(config){var task=new Ext.util.TaskRunner.Task(config);task.manager=this;return task},start:function start(task){var me=this,now=Ext.Date.now();if(!task.pending){me.tasks.push(task);task.pending=true}task.stopped=false;task.taskStartTime=now;task.taskRunTime=task.fireOnStart!==false?0:task.taskStartTime;task.taskRunCount=0;if(!me.firing){if(task.fireOnStart!==false){me.startTimer(0,now)}else{me.startTimer(task.interval,now)}}return task},stop:function stop(task){if(!task.stopped){task.stopped=true;if(task.onStop){task.onStop.call(task.scope||task,task)}}return task},stopAll:function stopAll(){Ext.each(this.tasks,this.stop,this)},firing:false,nextExpires:1e99,onTick:function onTick(){var me=this,tasks=me.tasks,now=Ext.Date.now(),nextExpires=1e99,len=tasks.length,expires,newTasks,i,task,rt,remove;me.timerId=null;me.firing=true;for(i=0;iexpires){nextExpires=expires}}}if(newTasks){me.tasks=newTasks}me.firing=false;if(me.tasks.length){me.startTimer(nextExpires-now,Ext.Date.now())}if(me.fireIdleEvent!==false){Ext.EventManager.idleEvent.fire()}},startTimer:function startTimer(timeout,now){var me=this,expires=now+timeout,timerId=me.timerId;if(timerId&&me.nextExpires-expires>me.interval){clearTimeout(timerId);timerId=null}if(!timerId){if(timeout','',' ({childCount} children)','','',' ({depth} deep)','','',', {type}: {[this.time(values.sum)]} msec (','avg={[this.time(values.sum / parent.count)]}',')','',''].join(''),{time:function time(t){return Math.round(t*100)/100}})}var data=this.getData(calibration);data.name=this.name;data.pure.type='Pure';data.total.type='Total';data.times=[data.pure,data.total];return formatTpl.apply(data)},getData:function getData(calibration){var me=this;return{count:me.count,childCount:me.childCount,depth:me.maxDepth,pure:setToJSON(me.count,me.childCount,calibration,me.pure),total:setToJSON(me.count,me.childCount,calibration,me.total)}},enter:function enter(){var me=this,frame={accum:me,leave:leaveFrame,childTime:0,parent:currentFrame};++me.depth;if(me.maxDepth','
','','
','
','
','
','
'].join('');doc.body.appendChild(div)}vector=supportsVectors[browserKey];while(n--){test=toRun[n];value=vector&&vector[n];if(value!==undefined){me[test.identity]=value}else if(div||test.early){me[test.identity]=test.fn.call(me,doc,div)}else{notRun.push(test)}}if(div){doc.body.removeChild(div)}me.toRun=notRun},PointerEvents:'pointerEvents'in document.documentElement.style,LocalStorage:(function(){try{return'localStorage'in window&&window['localStorage']!==null}catch(e){return false}})(),CSS3BoxShadow:'boxShadow'in document.documentElement.style||'WebkitBoxShadow'in document.documentElement.style||'MozBoxShadow'in document.documentElement.style,ClassList:!!document.documentElement.classList,OrientationChange:typeof window.orientation!='undefined'&&'onorientationchange'in window,DeviceMotion:'ondevicemotion'in window,Touch:'ontouchstart'in window&&!Ext.is.Desktop,TimeoutActualLateness:(function(){setTimeout(function(){Ext.supports.TimeoutActualLateness=arguments.length!==0},0)})(),tests:[{identity:'Transitions',fn:function fn(doc,div){var prefix=['webkit','Moz','o','ms','khtml'],TE='TransitionEnd',transitionEndName=[prefix[0]+TE,'transitionend',prefix[2]+TE,prefix[3]+TE,prefix[4]+TE],ln=prefix.length,i=0,out=false;for(;i

";return d.childNodes.length==2}},{identity:'Float',fn:function fn(doc,div){return!!div.lastChild.style.cssFloat}},{identity:'AudioTag',fn:function fn(doc){return!!doc.createElement('audio').canPlayType}},{identity:'History',fn:function fn(){var history=window.history;return!!(history&&history.pushState)}},{identity:'CSS3DTransform',fn:function fn(){return typeof WebKitCSSMatrix!='undefined'&&new WebKitCSSMatrix().hasOwnProperty('m41')}},{identity:'CSS3LinearGradient',fn:function fn(doc,div){var property='background-image:',webkit='-webkit-gradient(linear, left top, right bottom, from(black), to(white))',w3c='linear-gradient(left top, black, white)',moz='-moz-'+w3c,ms='-ms-'+w3c,opera='-o-'+w3c,options=[property+webkit,property+w3c,property+moz,property+ms,property+opera];div.style.cssText=options.join(';');return(""+div.style.backgroundImage).indexOf('gradient')!== -1&&!Ext.isIE9}},{identity:'CSS3BorderRadius',fn:function fn(doc,div){var domPrefixes=['borderRadius','BorderRadius','MozBorderRadius','WebkitBorderRadius','OBorderRadius','KhtmlBorderRadius'],pass=false,i;for(i=0;i=534.16}},{identity:'TextAreaMaxLength',fn:function fn(){var el=document.createElement('textarea');return'maxlength'in el}},{identity:'GetPositionPercentage',fn:function fn(doc,div){return getStyle(div.childNodes[2],'left')=='10%'}},{identity:'PercentageHeightOverflowBug',fn:function fn(doc){var hasBug=false,style,el;if(Ext.getScrollbarSize().height){el=doc.createElement('div');style=el.style;style.height='50px';style.width='50px';style.overflow='auto';style.position='absolute';el.innerHTML=['
','
','
'].join('');doc.body.appendChild(el);if(el.firstChild.offsetHeight===50){hasBug=true}doc.body.removeChild(el)}return hasBug}},{identity:'xOriginBug',fn:function fn(doc,div){div.innerHTML='
'+'
'+'
'+'
';var outerBox=document.getElementById('b1').getBoundingClientRect(),b2=document.getElementById('b2').getBoundingClientRect(),b3=document.getElementById('b3').getBoundingClientRect();return b2.left!==outerBox.left&&b3.right!==outerBox.right}},{identity:'ScrollWidthInlinePaddingBug',fn:function fn(doc){var hasBug=false,style,el;el=doc.createElement('div');style=el.style;style.height='50px';style.width='50px';style.padding='10px';style.overflow='hidden';style.position='absolute';el.innerHTML='';doc.body.appendChild(el);if(el.scrollWidth===70){hasBug=true}doc.body.removeChild(el);return hasBug}}]}})();Ext.supports.init();Ext.util.DelayedTask=function(fn,scope,args,cancelOnDelay){var me=this,delay,call=function call(){clearInterval(me.id);me.id=null;fn.apply(scope,args||[]);Ext.EventManager.idleEvent.fire()};cancelOnDelay=typeof cancelOnDelay==='boolean'?cancelOnDelay:true;me.id=null;me.delay=function(newDelay,newFn,newScope,newArgs){if(cancelOnDelay){me.cancel()}delay=newDelay||delay,fn=newFn||fn;scope=newScope||scope;args=newArgs||args;if(!me.id){me.id=setInterval(call,delay)}};me.cancel=function(){if(me.id){clearInterval(me.id);me.id=null}}};Ext.define('Ext.util.Event',function(){var arraySlice=Array.prototype.slice,arrayInsert=Ext.Array.insert,toArray=Ext.Array.toArray,DelayedTask=Ext.util.DelayedTask;return{isEvent:true,suspended:0,noOptions:{},constructor:function constructor(observable,name){this.name=name;this.observable=observable;this.listeners=[]},addListener:function addListener(fn,scope,options){var me=this,listeners,listener,priority,isNegativePriority,highestNegativePriorityIndex,hasNegativePriorityIndex,length,index,i,listenerPriority;scope=scope||me.observable;if(!me.isListening(fn,scope)){listener=me.createListener(fn,scope,options);if(me.firing){me.listeners=me.listeners.slice(0)}listeners=me.listeners;index=length=listeners.length;priority=options&&options.priority;highestNegativePriorityIndex=me._highestNegativePriorityIndex;hasNegativePriorityIndex=highestNegativePriorityIndex!==undefined;if(priority){isNegativePriority=priority<0;if(!isNegativePriority||hasNegativePriorityIndex){for(i=isNegativePriority?highestNegativePriorityIndex:0;i0){me.firing=true;args=arguments.length?arraySlice.call(arguments,0):[];len=args.length;for(i=0;i111&&event.keyCode<124){event.keyCode=-1}}catch(e){}}},getRelatedTarget:function getRelatedTarget(event){event=event.browserEvent||event;var target=event.relatedTarget;if(!target){if(EventManager.mouseLeaveRe.test(event.type)){target=event.toElement}else if(EventManager.mouseEnterRe.test(event.type)){target=event.fromElement}}return EventManager.resolveTextNode(target)},getPageX:function getPageX(event){return EventManager.getPageXY(event)[0]},getPageY:function getPageY(event){return EventManager.getPageXY(event)[1]},getPageXY:function getPageXY(event){event=event.browserEvent||event;var x=event.pageX,y=event.pageY,docEl=doc.documentElement,body=doc.body;if(!x&&x!==0){x=event.clientX+(docEl&&docEl.scrollLeft||body&&body.scrollLeft||0)-(docEl&&docEl.clientLeft||body&&body.clientLeft||0);y=event.clientY+(docEl&&docEl.scrollTop||body&&body.scrollTop||0)-(docEl&&docEl.clientTop||body&&body.clientTop||0)}return[x,y]},getTarget:function getTarget(event){event=event.browserEvent||event;return EventManager.resolveTextNode(event.target||event.srcElement)},resolveTextNode:Ext.isGecko?function(node){if(node){var s=HTMLElement.prototype.toString.call(node);if(s!=='[xpconnect wrapped native prototype]'&&s!=='[object XULElement]'){return node.nodeType==3?node.parentNode:node}}}:function(node){return node&&node.nodeType==3?node.parentNode:node},curWidth:0,curHeight:0,onWindowResize:function onWindowResize(fn,scope,options){var resize=EventManager.resizeEvent;if(!resize){EventManager.resizeEvent=resize=new Ext.util.Event();EventManager.on(win,'resize',EventManager.fireResize,null,{buffer:100})}resize.addListener(fn,scope,options)},fireResize:function fireResize(){var w=Ext.Element.getViewWidth(),h=Ext.Element.getViewHeight();if(EventManager.curHeight!=h||EventManager.curWidth!=w){EventManager.curHeight=h;EventManager.curWidth=w;EventManager.resizeEvent.fire(w,h)}},removeResizeListener:function removeResizeListener(fn,scope){var resize=EventManager.resizeEvent;if(resize){resize.removeListener(fn,scope)}},onWindowUnload:function onWindowUnload(fn,scope,options){var unload=EventManager.unloadEvent;if(!unload){EventManager.unloadEvent=unload=new Ext.util.Event();EventManager.addListener(win,'unload',EventManager.fireUnload)}if(fn){unload.addListener(fn,scope,options)}},fireUnload:function fireUnload(){try{doc=win=undefined;var gridviews,i,ln,el,cache;EventManager.unloadEvent.fire();if(Ext.isGecko3){gridviews=Ext.ComponentQuery.query('gridview');i=0;ln=gridviews.length;for(;i=525:!(Ext.isGecko&&!Ext.isWindows||Ext.isOpera),getKeyEvent:function getKeyEvent(){return EventManager.useKeyDown?'keydown':'keypress'}});if(!supportsAddEventListener&&document.attachEvent){Ext.apply(EventManager,{pollScroll:function pollScroll(){var scrollable=true;try{document.documentElement.doScroll('left')}catch(e){scrollable=false}if(scrollable&&document.body){EventManager.onReadyEvent({type:'doScroll'})}else{EventManager.scrollTimeout=setTimeout(EventManager.pollScroll,20)}return scrollable},scrollTimeout:null,readyStatesRe:/complete/i,checkReadyState:function checkReadyState(){var state=document.readyState;if(EventManager.readyStatesRe.test(state)){EventManager.onReadyEvent({type:state})}},bindReadyEvent:function bindReadyEvent(){var topContext=true;if(EventManager.hasBoundOnReady){return}try{topContext=window.frameElement===undefined}catch(e){topContext=false}if(!topContext||!doc.documentElement.doScroll){EventManager.pollScroll=Ext.emptyFn}if(EventManager.pollScroll()===true){return}if(doc.readyState=='complete'){EventManager.onReadyEvent({type:'already '+(doc.readyState||'body')})}else{doc.attachEvent('onreadystatechange',EventManager.checkReadyState);window.attachEvent('onload',EventManager.onReadyEvent);EventManager.hasBoundOnReady=true}},onReadyEvent:function onReadyEvent(e){if(e&&e.type){EventManager.onReadyChain.push(e.type)}if(EventManager.hasBoundOnReady){document.detachEvent('onreadystatechange',EventManager.checkReadyState);window.detachEvent('onload',EventManager.onReadyEvent)}if(Ext.isNumber(EventManager.scrollTimeout)){clearTimeout(EventManager.scrollTimeout);delete EventManager.scrollTimeout}if(!Ext.isReady){EventManager.fireDocReady()}},onReadyChain:[]})}Ext.onReady=function(fn,scope,options){Ext.Loader.onReady(fn,scope,true,options)};Ext.onDocumentReady=EventManager.onDocumentReady;EventManager.on=EventManager.addListener;EventManager.un=EventManager.removeListener;Ext.onReady(initExtCss)};Ext.define('Ext.util.Observable',function(Observable){var emptyArray=[],arrayProto=Array.prototype,arraySlice=arrayProto.slice,ExtEvent=Ext.util.Event,ListenerRemover=function(observable){if(_instanceof(observable,ListenerRemover)){return observable}this.observable=observable;if(arguments[1].isObservable){this.managedListeners=true}this.args=arraySlice.call(arguments,1)};ListenerRemover.prototype.destroy=function(){this.observable[this.managedListeners?'mun':'un'].apply(this.observable,this.args)};return{statics:{releaseCapture:function releaseCapture(o){o.fireEventArgs=this.prototype.fireEventArgs},capture:function capture(o,fn,scope){var newFn=function newFn(eventName,args){return fn.apply(scope,[eventName].concat(args))};this.captureArgs(o,newFn,scope)},captureArgs:function captureArgs(o,fn,scope){o.fireEventArgs=Ext.Function.createInterceptor(o.fireEventArgs,fn,scope)},observe:function observe(cls,listeners){if(cls){if(!cls.isObservable){Ext.applyIf(cls,new this());this.captureArgs(cls.prototype,cls.fireEventArgs,cls)}if(Ext.isObject(listeners)){cls.on(listeners)}}return cls},prepareClass:function prepareClass(T,mixin){if(!T.HasListeners){var HasListeners=function HasListeners(){},SuperHL=T.superclass.HasListeners||mixin&&mixin.HasListeners||Observable.HasListeners;T.prototype.HasListeners=T.HasListeners=HasListeners;HasListeners.prototype=T.hasListeners=new SuperHL()}}},isObservable:true,eventsSuspended:0,constructor:function constructor(config){var me=this;Ext.apply(me,config);if(!me.hasListeners){me.hasListeners=new me.HasListeners()}me.events=me.events||{};if(me.listeners){me.on(me.listeners);me.listeners=null}if(me.bubbleEvents){me.enableBubble(me.bubbleEvents)}},onClassExtended:function onClassExtended(T){if(!T.HasListeners){Observable.prepareClass(T)}},eventOptionsRe:/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate|element|destroyable|vertical|horizontal|freezeEvent|priority)$/,addManagedListener:function addManagedListener(item,ename,fn,scope,options,noDestroy){var me=this,managedListeners=me.managedListeners=me.managedListeners||[],config,passedOptions;if(typeof ename!=='string'){passedOptions=arguments.length>4?options:ename;options=ename;for(ename in options){if(options.hasOwnProperty(ename)){config=options[ename];if(!me.eventOptionsRe.test(ename)){me.addManagedListener(item,ename,config.fn||config,config.scope||options.scope||scope,config.fn?config:passedOptions,true)}}}if(options&&options.destroyable){return new ListenerRemover(me,item,options)}}else{if(typeof fn==='string'){scope=scope||me;fn=Ext.resolveMethod(fn,scope)}managedListeners.push({item:item,ename:ename,fn:fn,scope:scope,options:options});item.on(ename,fn,scope,options);if(!noDestroy&&options&&options.destroyable){return new ListenerRemover(me,item,ename,fn,scope)}}},removeManagedListener:function removeManagedListener(item,ename,fn,scope){var me=this,options,config,managedListeners,length,i,func;if(typeof ename!=='string'){options=ename;for(ename in options){if(options.hasOwnProperty(ename)){config=options[ename];if(!me.eventOptionsRe.test(ename)){me.removeManagedListener(item,ename,config.fn||config,config.scope||options.scope||scope)}}}}else{managedListeners=me.managedListeners?me.managedListeners.slice():[];if(typeof fn==='string'){scope=scope||me;fn=Ext.resolveMethod(fn,scope)}for(i=0,length=managedListeners.length;i=532){scale=120}else{scale=12}scale*=3}else{scale=120}return scale}(),clickRe:/(dbl)?click/,safariKeys:{3:13,63234:37,63235:39,63232:38,63233:40,63276:33,63277:34,63272:46,63273:36,63275:35},btnMap:Ext.isIE?{1:0,4:1,2:2}:{0:0,1:1,2:2},constructor:function constructor(event,freezeEvent){if(event){this.setEvent(event.browserEvent||event,freezeEvent)}},setEvent:function setEvent(event,freezeEvent){var me=this,button,options;if(event===me||event&&event.browserEvent){return event}me.browserEvent=event;if(event){button=event.button?me.btnMap[event.button]:event.which?event.which-1:-1;if(me.clickRe.test(event.type)&&button== -1){button=0}options={type:event.type,button:button,shiftKey:event.shiftKey,ctrlKey:event.ctrlKey||event.metaKey||false,altKey:event.altKey,keyCode:event.keyCode,charCode:event.charCode,target:Ext.EventManager.getTarget(event),relatedTarget:Ext.EventManager.getRelatedTarget(event),currentTarget:event.currentTarget,xy:freezeEvent?me.getXY():null}}else{options={button:-1,shiftKey:false,ctrlKey:false,altKey:false,keyCode:0,charCode:0,target:null,xy:[0,0]}}Ext.apply(me,options);return me},stopEvent:function stopEvent(){this.stopPropagation();this.preventDefault()},preventDefault:function preventDefault(){if(this.browserEvent){Ext.EventManager.preventDefault(this.browserEvent)}},stopPropagation:function stopPropagation(){var browserEvent=this.browserEvent;if(browserEvent){if(browserEvent.type=='mousedown'){Ext.EventManager.stoppedMouseDownEvent.fire(this)}Ext.EventManager.stopPropagation(browserEvent)}},getCharCode:function getCharCode(){return this.charCode||this.keyCode},getKey:function getKey(){return this.normalizeKey(this.keyCode||this.charCode)},normalizeKey:function normalizeKey(key){return Ext.isWebKit?this.safariKeys[key]||key:key},getPageX:function getPageX(){return this.getX()},getPageY:function getPageY(){return this.getY()},getX:function getX(){return this.getXY()[0]},getY:function getY(){return this.getXY()[1]},getXY:function getXY(){if(!this.xy){this.xy=Ext.EventManager.getPageXY(this.browserEvent)}return this.xy},getTarget:function getTarget(selector,maxDepth,returnEl){if(selector){return Ext.fly(this.target).findParent(selector,maxDepth,returnEl)}return returnEl?Ext.get(this.target):this.target},getRelatedTarget:function getRelatedTarget(selector,maxDepth,returnEl){if(selector&&this.relatedTarget){return Ext.fly(this.relatedTarget).findParent(selector,maxDepth,returnEl)}return returnEl?Ext.get(this.relatedTarget):this.relatedTarget},correctWheelDelta:function correctWheelDelta(delta){var scale=this.WHEEL_SCALE,ret=Math.round(delta/scale);if(!ret&&delta){ret=delta<0?-1:1}return ret},getWheelDeltas:function getWheelDeltas(){var me=this,event=me.browserEvent,dx=0,dy=0;if(Ext.isDefined(event.wheelDeltaX)){dx=event.wheelDeltaX;dy=event.wheelDeltaY}else if(event.wheelDelta){dy=event.wheelDelta}else if(event.detail){dy=-event.detail;if(dy>100){dy=3}else if(dy< -100){dy=-3}if(Ext.isDefined(event.axis)&&event.axis===event.HORIZONTAL_AXIS){dx=dy;dy=0}}return{x:me.correctWheelDelta(dx),y:me.correctWheelDelta(dy)}},getWheelDelta:function getWheelDelta(){var deltas=this.getWheelDeltas();return deltas.y},within:function within(el,related,allowEl){if(el){var t=related?this.getRelatedTarget():this.getTarget(),result;if(t){result=Ext.fly(el,'_internal').contains(t);if(!result&&allowEl){result=t==Ext.getDom(el)}return result}}return false},isNavKeyPress:function isNavKeyPress(){var me=this,k=this.normalizeKey(me.keyCode);return k>=33&&k<=40||k==me.RETURN||k==me.TAB||k==me.ESC},isSpecialKey:function isSpecialKey(){var k=this.normalizeKey(this.keyCode);return this.type=='keypress'&&this.ctrlKey||this.isNavKeyPress()||k==this.BACKSPACE||k>=16&&k<=20||k>=44&&k<=46},getPoint:function getPoint(){var xy=this.getXY();return new Ext.util.Point(xy[0],xy[1])},hasModifier:function hasModifier(){return this.ctrlKey||this.altKey||this.shiftKey||this.metaKey},injectEvent:function(){var createMouseEventDispatcher=function createMouseEventDispatcher(type,detail){var cancelable=type!='mousemove';return function(targetEl,srcEvent){var xy=srcEvent.getXY(),e=API.createMouseEvent(targetEl.ownerDocument,type,true,cancelable,detail,xy[0],xy[1],srcEvent.ctrlKey,srcEvent.altKey,srcEvent.shiftKey,srcEvent.metaKey,srcEvent.button,srcEvent.relatedTarget);API.fireEvent(targetEl,type,e)}};var cannotInject=function cannotInject(target,srcEvent){};var API,dispatchers={},crazyIEButtons;if(!Ext.isIE9m&&document.createEvent){API={createHtmlEvent:function createHtmlEvent(doc,type,bubbles,cancelable){var event=doc.createEvent('HTMLEvents');event.initEvent(type,bubbles,cancelable);return event},createMouseEvent:function createMouseEvent(doc,type,bubbles,cancelable,detail,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget){var event=doc.createEvent('MouseEvents'),view=doc.defaultView||window;if(event.initMouseEvent){event.initMouseEvent(type,bubbles,cancelable,view,detail,clientX,clientY,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget)}else{event=doc.createEvent('UIEvents');event.initEvent(type,bubbles,cancelable);event.view=view;event.detail=detail;event.screenX=clientX;event.screenY=clientY;event.clientX=clientX;event.clientY=clientY;event.ctrlKey=ctrlKey;event.altKey=altKey;event.metaKey=metaKey;event.shiftKey=shiftKey;event.button=button;event.relatedTarget=relatedTarget}return event},createUIEvent:function createUIEvent(doc,type,bubbles,cancelable,detail){var event=doc.createEvent('UIEvents'),view=doc.defaultView||window;event.initUIEvent(type,bubbles,cancelable,view,detail);return event},fireEvent:function fireEvent(target,type,event){target.dispatchEvent(event)},fixTarget:function fixTarget(target){if(target==window&&!target.dispatchEvent){return document}return target}}}else if(document.createEventObject){crazyIEButtons={0:1,1:4,2:2};API={createHtmlEvent:function createHtmlEvent(doc,type,bubbles,cancelable){var event=doc.createEventObject();event.bubbles=bubbles;event.cancelable=cancelable;return event},createMouseEvent:function createMouseEvent(doc,type,bubbles,cancelable,detail,clientX,clientY,ctrlKey,altKey,shiftKey,metaKey,button,relatedTarget){var event=doc.createEventObject();event.bubbles=bubbles;event.cancelable=cancelable;event.detail=detail;event.screenX=clientX;event.screenY=clientY;event.clientX=clientX;event.clientY=clientY;event.ctrlKey=ctrlKey;event.altKey=altKey;event.shiftKey=shiftKey;event.metaKey=metaKey;event.button=crazyIEButtons[button]||button;event.relatedTarget=relatedTarget;return event},createUIEvent:function createUIEvent(doc,type,bubbles,cancelable,detail){var event=doc.createEventObject();event.bubbles=bubbles;event.cancelable=cancelable;return event},fireEvent:function fireEvent(target,type,event){target.fireEvent('on'+type,event)},fixTarget:function fixTarget(target){if(target==document){return document.documentElement}return target}}}Ext.Object.each({load:[false,false],unload:[false,false],select:[true,false],change:[true,false],submit:[true,true],reset:[true,false],resize:[true,false],scroll:[true,false]},function(name,value){var bubbles=value[0],cancelable=value[1];dispatchers[name]=function(targetEl,srcEvent){var e=API.createHtmlEvent(name,bubbles,cancelable);API.fireEvent(targetEl,name,e)}});Ext.each(['click','dblclick','mousedown','mouseup','mouseover','mousemove','mouseout'],function(eventName){dispatchers[eventName]=createMouseEventDispatcher(eventName,1)});Ext.Object.each({focusin:[true,false],focusout:[true,false],activate:[true,true],focus:[false,false],blur:[false,false]},function(name,value){var bubbles=value[0],cancelable=value[1];dispatchers[name]=function(targetEl,srcEvent){var e=API.createUIEvent(targetEl.ownerDocument,name,bubbles,cancelable,1);API.fireEvent(targetEl,name,e)}});if(!API){dispatchers={};API={fixTarget:Ext.identityFn}}return function(target){var me=this,dispatcher=dispatchers[me.type]||cannotInject,t=target?target.dom||target:me.getTarget();t=API.fixTarget(t);dispatcher(t,me)}}()},function(){Ext.EventObject=new Ext.EventObjectImpl()});Ext.define('Ext.dom.AbstractQuery',{select:function select(q,root){var results=[],nodes,i,j,qlen,nlen;root=root||document;if(typeof root=='string'){root=document.getElementById(root)}q=q.split(",");for(i=0,qlen=q.length;i')}else{buffer.push('>');if(val=spec.tpl){val.applyOut(spec.tplData,buffer)}if(val=spec.html){buffer.push(val)}if(val=spec.cn||spec.children){me.generateMarkup(val,buffer)}closeTags=me.closeTags;buffer.push(closeTags[tag]||(closeTags[tag]=''))}}return buffer},generateStyles:function generateStyles(styles,buffer){var a=buffer||[],name;for(name in styles){if(styles.hasOwnProperty(name)){a.push(this.decamelizeName(name),':',styles[name],';')}}return buffer||a.join('')},markup:function markup(spec){if(typeof spec=="string"){return spec}var buf=this.generateMarkup(spec,[]);return buf.join('')},applyStyles:function applyStyles(el,styles){if(styles){var i=0,len;el=Ext.fly(el,'_applyStyles');if(typeof styles=='function'){styles=styles.call()}if(typeof styles=='string'){styles=Ext.util.Format.trim(styles).split(this.styleSepRe);for(len=styles.length;i "'+where+'"'},insertBefore:function insertBefore(el,o,returnElement){return this.doInsert(el,o,returnElement,'beforebegin')},insertAfter:function insertAfter(el,o,returnElement){return this.doInsert(el,o,returnElement,'afterend','nextSibling')},insertFirst:function insertFirst(el,o,returnElement){return this.doInsert(el,o,returnElement,'afterbegin','firstChild')},append:function append(el,o,returnElement){return this.doInsert(el,o,returnElement,'beforeend','',true)},overwrite:function overwrite(el,o,returnElement){el=Ext.getDom(el);el.innerHTML=this.markup(o);return returnElement?Ext.get(el.firstChild):el.firstChild},doInsert:function doInsert(el,o,returnElement,pos,sibling,append){var newNode=this.insertHtml(pos,Ext.getDom(el),this.markup(o));return returnElement?Ext.get(newNode,true):newNode}});Ext.define('Ext.dom.AbstractElement_static',{override:'Ext.dom.AbstractElement',inheritableStatics:{unitRe:/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i,camelRe:/(-[a-z])/gi,msRe:/^-ms-/,cssRe:/([a-z0-9\-]+)\s*:\s*([^;\s]+(?:\s*[^;\s]+)*)?;?/gi,opacityRe:/alpha\(opacity=(.*)\)/i,propertyCache:{},defaultUnit:"px",borders:{l:'border-left-width',r:'border-right-width',t:'border-top-width',b:'border-bottom-width'},paddings:{l:'padding-left',r:'padding-right',t:'padding-top',b:'padding-bottom'},margins:{l:'margin-left',r:'margin-right',t:'margin-top',b:'margin-bottom'},addUnits:function addUnits(size,units){if(typeof size=='number'){return size+(units||this.defaultUnit||'px')}if(size===""||size=="auto"||size===undefined||size===null){return size||''}if(!this.unitRe.test(size)){return size||''}return size},isAncestor:function isAncestor(p,c){var ret=false;p=Ext.getDom(p);c=Ext.getDom(c);if(p&&c){if(p.contains){return p.contains(c)}else if(p.compareDocumentPosition){return!!(p.compareDocumentPosition(c)&16)}else{while(c=c.parentNode){ret=c==p||ret}}}return ret},parseBox:function parseBox(box){box=box||0;var type=typeof box==="undefined"?"undefined":_typeof(box),parts,ln;if(type==='number'){return{top:box,right:box,bottom:box,left:box}}else if(type!=='string'){return box}parts=box.split(' ');ln=parts.length;if(ln==1){parts[1]=parts[2]=parts[3]=parts[0]}else if(ln==2){parts[2]=parts[0];parts[3]=parts[1]}else if(ln==3){parts[3]=parts[1]}return{top:parseFloat(parts[0])||0,right:parseFloat(parts[1])||0,bottom:parseFloat(parts[2])||0,left:parseFloat(parts[3])||0}},unitizeBox:function unitizeBox(box,units){var a=this.addUnits,b=this.parseBox(box);return a(b.top,units)+' '+a(b.right,units)+' '+a(b.bottom,units)+' '+a(b.left,units)},camelReplaceFn:function camelReplaceFn(m,a){return a.charAt(1).toUpperCase()},normalize:function normalize(prop){if(prop=='float'){prop=Ext.supports.Float?'cssFloat':'styleFloat'}return this.propertyCache[prop]||(this.propertyCache[prop]=prop.replace(this.msRe,'ms-').replace(this.camelRe,this.camelReplaceFn))},getDocumentHeight:function getDocumentHeight(){return Math.max(!Ext.isStrict?document.body.scrollHeight:document.documentElement.scrollHeight,this.getViewportHeight())},getDocumentWidth:function getDocumentWidth(){return Math.max(!Ext.isStrict?document.body.scrollWidth:document.documentElement.scrollWidth,this.getViewportWidth())},getViewportHeight:function getViewportHeight(){return window.innerHeight},getViewportWidth:function getViewportWidth(){return window.innerWidth},getViewSize:function getViewSize(){return{width:window.innerWidth,height:window.innerHeight}},getOrientation:function getOrientation(){if(Ext.supports.OrientationChange){return window.orientation==0?'portrait':'landscape'}return window.innerHeight>window.innerWidth?'portrait':'landscape'},fromPoint:function fromPoint(x,y){return Ext.get(document.elementFromPoint(x,y))},parseStyles:function parseStyles(styles){var out={},cssRe=this.cssRe,matches;if(styles){cssRe.lastIndex=0;while(matches=cssRe.exec(styles)){out[matches[1]]=matches[2]||''}}return out}}},function(){var makeSelectionRestoreFn=function makeSelectionRestoreFn(activeEl,start,end){return function(){activeEl.selectionStart=start;activeEl.selectionEnd=end}};var doc=document,activeElement=null,isCSS1=doc.compatMode=="CSS1Compat";if(!('activeElement'in doc)&&doc.addEventListener){doc.addEventListener('focus',function(ev){if(ev&&ev.target){activeElement=ev.target==doc?null:ev.target}},true)}this.addInheritableStatics({getActiveElement:function getActiveElement(){var active;try{active=doc.activeElement}catch(e){}active=active||activeElement;if(!active){active=activeElement=document.body}return active},getRightMarginFixCleaner:function getRightMarginFixCleaner(target){var supports=Ext.supports,hasInputBug=supports.DisplayChangeInputSelectionBug,hasTextAreaBug=supports.DisplayChangeTextAreaSelectionBug,activeEl,tag,start,end;if(hasInputBug||hasTextAreaBug){activeEl=doc.activeElement||activeElement;tag=activeEl&&activeEl.tagName;if(hasTextAreaBug&&tag=='TEXTAREA'||hasInputBug&&tag=='INPUT'&&activeEl.type=='text'){if(Ext.dom.Element.isAncestor(target,activeEl)){start=activeEl.selectionStart;end=activeEl.selectionEnd;if(Ext.isNumber(start)&&Ext.isNumber(end)){return makeSelectionRestoreFn(activeEl,start,end)}}}}return Ext.emptyFn},getViewWidth:function getViewWidth(full){return full?Ext.dom.Element.getDocumentWidth():Ext.dom.Element.getViewportWidth()},getViewHeight:function getViewHeight(full){return full?Ext.dom.Element.getDocumentHeight():Ext.dom.Element.getViewportHeight()},getDocumentHeight:function getDocumentHeight(){return Math.max(!isCSS1?doc.body.scrollHeight:doc.documentElement.scrollHeight,Ext.dom.Element.getViewportHeight())},getDocumentWidth:function getDocumentWidth(){return Math.max(!isCSS1?doc.body.scrollWidth:doc.documentElement.scrollWidth,Ext.dom.Element.getViewportWidth())},getViewportHeight:function getViewportHeight(){return Ext.isIE9m?Ext.isStrict?doc.documentElement.clientHeight:doc.body.clientHeight:self.innerHeight},getViewportWidth:function getViewportWidth(){return!Ext.isStrict&&!Ext.isOpera?doc.body.clientWidth:Ext.isIE9m?doc.documentElement.clientWidth:self.innerWidth},serializeForm:function serializeForm(form){var fElements=form.elements||(document.forms[form]||Ext.getDom(form)).elements,hasSubmit=false,encoder=encodeURIComponent,data='',eLen=fElements.length,element,name,type,options,hasValue,e,o,oLen,opt;for(e=0;e0?height:0},getWidth:function getWidth(contentWidth){var dom=this.dom,width=contentWidth?dom.clientWidth-this.getPadding("lr"):dom.offsetWidth;return width>0?width:0},setWidth:function setWidth(width){var me=this;me.dom.style.width=Element.addUnits(width);return me},setHeight:function setHeight(height){var me=this;me.dom.style.height=Element.addUnits(height);return me},getBorderWidth:function getBorderWidth(side){return this.addStyles(side,borders)},getPadding:function getPadding(side){return this.addStyles(side,paddings)},margins:margins1,applyStyles:function applyStyles(styles){if(styles){var i,len,dom=this.dom;if(typeof styles=='function'){styles=styles.call()}if(typeof styles=='string'){styles=Ext.util.Format.trim(styles).split(/\s*(?::|;)\s*/);for(i=0,len=styles.length;i'+msg+'':''});size=me.getSize();data.mask=mask1;if(dom===document.body){size.height=window.innerHeight;if(me.orientationHandler){Ext.EventManager.unOrientationChange(me.orientationHandler,me)}me.orientationHandler=function(){size=me.getSize();size.height=window.innerHeight;mask1.setSize(size)};Ext.EventManager.onOrientationChange(me.orientationHandler,me)}mask1.setSize(size);if(Ext.is.iPad){Ext.repaint()}},unmask:function unmask(){var me=this,data=(me.$cache||me.getCache()).data,mask=data.mask,prefix=Ext.baseCSSPrefix;if(mask){mask.remove();delete data.mask}me.removeCls([prefix+'masked',prefix+'masked-relative']);if(me.dom===document.body){Ext.EventManager.unOrientationChange(me.orientationHandler,me);delete me.orientationHandler}}});Ext.onReady(function(){var fixTransparent=function fixTransparent(dom,el,inline,style){var value=style[this.name]||'';return transparentRe.test(value)?'transparent':value};var fixRightMargin=function fixRightMargin(dom,el,inline,style){var result=style.marginRight,domStyle,display;if(result!='0px'){domStyle=dom.style;display=domStyle.display;domStyle.display='inline-block';result=(inline?style:dom.ownerDocument.defaultView.getComputedStyle(dom,null)).marginRight;domStyle.display=display}return result};var fixRightMarginAndInputFocus=function fixRightMarginAndInputFocus(dom,el,inline,style){var result=style.marginRight,domStyle,cleaner,display;if(result!='0px'){domStyle=dom.style;cleaner=Element.getRightMarginFixCleaner(dom);display=domStyle.display;domStyle.display='inline-block';result=(inline?style:dom.ownerDocument.defaultView.getComputedStyle(dom,'')).marginRight;domStyle.display=display;cleaner()}return result};var supports=Ext.supports,styleHooks,colorStyles,i,name,camel;styleHooks=Element.prototype.styleHooks;if(supports.init){supports.init()}if(!supports.RightMargin){styleHooks.marginRight=styleHooks['margin-right']={name:'marginRight',get:supports.DisplayChangeInputSelectionBug||supports.DisplayChangeTextAreaSelectionBug?fixRightMarginAndInputFocus:fixRightMargin}}if(!supports.TransparentColor){colorStyles=['background-color','border-color','color','outline-color'];for(i=colorStyles.length;i--;){name=colorStyles[i];camel=Element.normalize(name);styleHooks[name]=styleHooks[camel]={name:camel,get:fixTransparent}}}})});Ext.define('Ext.dom.AbstractElement_traversal',{override:'Ext.dom.AbstractElement',findParent:function findParent(simpleSelector,limit,returnEl){var target=this.dom,topmost=document.documentElement,depth=0,stopEl;limit=limit||50;if(isNaN(limit)){stopEl=Ext.getDom(limit);limit=Number.MAX_VALUE}while(target&&target.nodeType==1&&depth "+selector,me.dom);return returnDom?node:Ext.get(node)},parent:function parent(selector,returnDom){return this.matchNode('parentNode','parentNode',selector,returnDom)},next:function next(selector,returnDom){return this.matchNode('nextSibling','nextSibling',selector,returnDom)},prev:function prev(selector,returnDom){return this.matchNode('previousSibling','previousSibling',selector,returnDom)},first:function first(selector,returnDom){return this.matchNode('nextSibling','firstChild',selector,returnDom)},last:function last(selector,returnDom){return this.matchNode('previousSibling','lastChild',selector,returnDom)},matchNode:function matchNode(dir,start,selector,returnDom){if(!this.dom){return null}var n=this.dom[start];while(n){if(n.nodeType==1&&(!selector||Ext.DomQuery.is(n,selector))){return!returnDom?Ext.get(n):n}n=n[dir]}return null},isAncestor:function isAncestor(element){return this.self.isAncestor.call(this.self,this.dom,element)}});Ext.define('Ext.dom.AbstractElement',{trimRe:/^\s+|\s+$/g,whitespaceRe:/\s/,inheritableStatics:{trimRe:/^\s+|\s+$/g,whitespaceRe:/\s/,get:function get(el){var me=this,document=window.document,El=Ext.dom.Element,cacheItem,docEl,extEl,dom,id;if(!el){return null}if(el.isFly){el=el.dom}if(typeof el=="string"){if(el==Ext.windowId){return El.get(window)}else if(el==Ext.documentId){return El.get(document)}cacheItem=Ext.cache[el];if(cacheItem&&cacheItem.skipGarbageCollection){extEl=cacheItem.el;return extEl}if(!(dom=document.getElementById(el))){return null}if(cacheItem&&cacheItem.el){extEl=Ext.updateCacheEntry(cacheItem,dom).el}else{extEl=new El(dom,!!cacheItem)}return extEl}else if(el.tagName){if(!(id=el.id)){id=Ext.id(el)}cacheItem=Ext.cache[id];if(cacheItem&&cacheItem.el){extEl=Ext.updateCacheEntry(cacheItem,el).el}else{extEl=new El(el,!!cacheItem)}return extEl}else if(_instanceof(el,me)){if(el!=me.docEl&&el!=me.winEl){id=el.id;cacheItem=Ext.cache[id];if(cacheItem){Ext.updateCacheEntry(cacheItem,document.getElementById(id)||el.dom)}}return el}else if(el.isComposite){return el}else if(Ext.isArray(el)){return me.select(el)}else if(el===document){if(!me.docEl){docEl=me.docEl=Ext.Object.chain(El.prototype);docEl.dom=document;docEl.el=docEl;docEl.id=Ext.id(document);me.addToCache(docEl)}return me.docEl}else if(el===window){if(!me.winEl){me.winEl=Ext.Object.chain(El.prototype);me.winEl.dom=window;me.winEl.id=Ext.id(window);me.addToCache(me.winEl)}return me.winEl}return null},addToCache:function addToCache(el,id){if(el){Ext.addCacheEntry(id,el)}return el},addMethods:function addMethods(){this.override.apply(this,arguments)},mergeClsList:function mergeClsList(){var clsList,clsHash={},i,length,j,listLength,clsName,result=[],changed=false,trimRe=this.trimRe,whitespaceRe=this.whitespaceRe;for(i=0,length=arguments.length;i',tbe=''+te,trs=tbs+'',tre=''+tbe,detachedDiv=document.createElement('div'),bbValues=['BeforeBegin','previousSibling'],aeValues=['AfterEnd','nextSibling'],bb_ae_PositionHash={beforebegin:bbValues,afterend:aeValues},fullPositionHash={beforebegin:bbValues,afterend:aeValues,afterbegin:['AfterBegin','firstChild'],beforeend:['BeforeEnd','lastChild']};return{extend:Ext.dom.AbstractHelper,tableRe:/^(?:table|thead|tbody|tr|td)$/i,tableElRe:/td|tr|tbody|thead/i,useDom:false,createDom:function createDom(o,parentNode){var el,doc=document,useSet,attr,val,cn,i,l;if(Ext.isArray(o)){el=doc.createDocumentFragment();for(i=0,l=o.length;i1){for(;i]*)\>)|(?:<\/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.XTemplateCompiler',{extend:Ext.XTemplateParser,useEval:Ext.isGecko,useIndex:Ext.isIE8m,useFormat:true,propNameRe:/^[\w\d\$]*$/,compile:function compile(tpl){var me=this,code=me.generate(tpl);return me.useEval?me.evalTpl(code):new Function('Ext',code)(Ext)},generate:function generate(tpl){var me=this,definitions='var fm=Ext.util.Format,ts=Object.prototype.toString;',code;me.maxLevel=0;me.body=['var c0=values, a0='+me.createArrayTest(0)+', p0=parent, n0=xcount, i0=xindex, k0, v;\n'];if(me.definitions){if(typeof me.definitions==='string'){me.definitions=[me.definitions,definitions]}else{me.definitions.push(definitions)}}else{me.definitions=[definitions]}me.switches=[];me.parse(tpl);me.definitions.push((me.useEval?'$=':'return')+' function ('+me.fnArgs+') {',me.body.join(''),'}');code=me.definitions.join('\n');me.definitions.length=me.body.length=me.switches.length=0;delete me.definitions;delete me.body;delete me.switches;return code},doText:function doText(text){var me=this,out=me.body;text=text.replace(me.aposRe,"\\'").replace(me.newLineRe,'\\n');if(me.useIndex){out.push('out[out.length]=\'',text,'\'\n')}else{out.push('out.push(\'',text,'\')\n')}},doExpr:function doExpr(expr){var out=this.body;out.push('if ((v='+expr+') != null) out');if(this.useIndex){out.push('[out.length]=v+\'\'\n')}else{out.push('.push(v+\'\')\n')}},doTag:function doTag(tag){var expr=this.parseTag(tag);if(expr){this.doExpr(expr)}else{this.doText('{'+tag+'}')}},doElse:function doElse(){this.body.push('} else {\n')},doEval:function doEval(text){this.body.push(text,'\n')},doIf:function doIf(action,actions){var me=this;if(action==='.'){me.body.push('if (values) {\n')}else if(me.propNameRe.test(action)){me.body.push('if (',me.parseTag(action),') {\n')}else{me.body.push('if (',me.addFn(action),me.callFn,') {\n')}if(actions.exec){me.doExec(actions.exec)}},doElseIf:function doElseIf(action,actions){var me=this;if(action==='.'){me.body.push('else if (values) {\n')}else if(me.propNameRe.test(action)){me.body.push('} else if (',me.parseTag(action),') {\n')}else{me.body.push('} else if (',me.addFn(action),me.callFn,') {\n')}if(actions.exec){me.doExec(actions.exec)}},doSwitch:function doSwitch(action){var me=this;if(action==='.'){me.body.push('switch (values) {\n')}else if(me.propNameRe.test(action)){me.body.push('switch (',me.parseTag(action),') {\n')}else{me.body.push('switch (',me.addFn(action),me.callFn,') {\n')}me.switches.push(0)},doCase:function doCase(action){var me=this,cases=Ext.isArray(action)?action:[action],n=me.switches.length-1,match,i;if(me.switches[n]){me.body.push('break;\n')}else{me.switches[n]++}for(i=0,n=cases.length;i1){ out.push("',actions.between,'"); } \n')}},doForEach:function doForEach(action,actions){var me=this,s,L=me.level,up=L-1,parentAssignment;if(action==='.'){s='values'}else if(me.propNameRe.test(action)){s=me.parseTag(action)}else{s=me.addFn(action)+me.callFn}if(me.maxLevel1){ out.push("',actions.between,'"); } \n')}},createArrayTest:'isArray'in Array?function(L){return'Array.isArray(c'+L+')'}:function(L){return'ts.call(c'+L+')==="[object Array]"'},doExec:function doExec(action,actions){var me=this,name='f'+me.definitions.length;me.definitions.push('function '+name+'('+me.fnArgs+') {',' try { with(values) {',' '+action,' }} catch(e) {','}','}');me.body.push(name+me.callFn+'\n')},addFn:function addFn(body){var me=this,name='f'+me.definitions.length;if(body==='.'){me.definitions.push('function '+name+'('+me.fnArgs+') {',' return values','}')}else if(body==='..'){me.definitions.push('function '+name+'('+me.fnArgs+') {',' return parent','}')}else{me.definitions.push('function '+name+'('+me.fnArgs+') {',' try { with(values) {',' return('+body+')',' }} catch(e) {','}','}')}return name},parseTag:function parseTag(tag){var me=this,m=me.tagRe.exec(tag),name,format,args,math,v;if(!m){return null}name=m[1];format=m[2];args=m[3];math=m[4];if(name=='.'){if(!me.validTypes){me.definitions.push('var validTypes={string:1,number:1,boolean:1};');me.validTypes=true}v='validTypes[typeof values] || ts.call(values) === "[object Date]" ? values : ""'}else if(name=='#'){v='xindex'}else if(name=='$'){v='xkey'}else if(name.substr(0,7)=="parent."){v=name}else if(isNaN(name)&&name.indexOf('-')== -1&&name.indexOf('.')!= -1){v="values."+name}else{v="values['"+name+"']"}if(math){v='('+v+math+')'}if(format&&me.useFormat){args=args?','+args:"";if(format.substr(0,5)!="this."){format="fm."+format+'('}else{format+='('}}else{return v}return format+v+args+')'},evalTpl:function evalTpl($){eval($);return $},newLineRe:/\r\n|\r|\n/g,aposRe:/[']/g,intRe:/^\s*(\d+)\s*$/,tagRe:/^([\w-\.\#\$]+)(?:\:([\w\.]*)(?:\((.*?)?\))?)?(\s?[\+\-\*\/]\s?[\d\.\+\-\*\/\(\)]+)?$/},function(){var proto=this.prototype;proto.fnArgs='out,values,parent,xindex,xcount,xkey';proto.callFn='.call(this,'+proto.fnArgs+')'});Ext.define('Ext.XTemplate',{extend:Ext.Template,emptyObj:{},apply:function apply(values,parent){return this.applyOut(values,[],parent).join('')},applyOut:function applyOut(values,out,parent){var me=this,compiler;if(!me.fn){compiler=new Ext.XTemplateCompiler({useFormat:me.disableFormats!==true,definitions:me.definitions});me.fn=compiler.compile(me.html)}try{me.fn(out,values,parent||me.emptyObj,1,1)}catch(e){}return out},compile:function compile(){return this},statics:{getTpl:function getTpl(instance,name){var tpl=instance[name],owner;if(tpl&&!tpl.isTemplate){tpl=Ext.ClassManager.dynInstantiate('Ext.XTemplate',tpl);if(instance.hasOwnProperty(name)){owner=instance}else{for(owner=instance.self.prototype;owner&&!owner.hasOwnProperty(name);owner=owner.superclass){}}owner[name]=tpl;tpl.owner=owner}return tpl||null}}});Ext.ns('Ext.core');Ext.dom.Query=Ext.core.DomQuery=Ext.DomQuery=(function(){var children=function children(parent){var n=parent.firstChild,nodeIndex=-1,nextNode;while(n){nextNode=n.nextSibling;if(n.nodeType==3&&!nonSpace.test(n.nodeValue)){parent.removeChild(n)}else{n.nodeIndex=++nodeIndex}n=nextNode}return this};var attrValue=function attrValue(n,attr){if(!n.tagName&& typeof n.length!="undefined"){n=n[0]}if(!n){return null}if(attr=="for"){return n.htmlFor}if(attr=="class"||attr=="className"){return n.className}return n.getAttribute(attr)||n[attr]};var getNodes=function getNodes(ns,mode,tagName){var result=[],ri=-1,cs,i,ni,j,ci,cn,utag,n,cj;if(!ns){return result}tagName=tagName.replace('|',':')||"*";if(typeof ns.getElementsByTagName!="undefined"){ns=[ns]}if(!mode){tagName=unescapeCssSelector(tagName);if(!supportsColonNsSeparator&&DQ.isXml(ns[0])&&tagName.indexOf(':')!== -1){for(i=0;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName.split(':').pop());for(j=0;ci=cs[j];j++){if(ci.tagName===tagName){result[++ri]=ci}}}}else{for(i=0;ni=ns[i];i++){cs=ni.getElementsByTagName(tagName);for(j=0;ci=cs[j];j++){result[++ri]=ci}}}}else if(mode=="/"||mode==">"){utag=tagName.toUpperCase();for(i=0;ni=ns[i];i++){cn=ni.childNodes;for(j=0;cj=cn[j];j++){if(cj.nodeName==utag||cj.nodeName==tagName||tagName=='*'){result[++ri]=cj}}}}else if(mode=="+"){utag=tagName.toUpperCase();for(i=0;n=ns[i];i++){while((n=n.nextSibling)&&n.nodeType!=1);if(n&&(n.nodeName==utag||n.nodeName==tagName||tagName=='*')){result[++ri]=n}}}else if(mode=="~"){utag=tagName.toUpperCase();for(i=0;n=ns[i];i++){while(n=n.nextSibling){if(n.nodeName==utag||n.nodeName==tagName||tagName=='*'){result[++ri]=n}}}}return result};var concat=function concat(a,b){a.push.apply(a,b);return a};var byTag=function byTag(cs,tagName){if(cs.tagName||cs===doc){cs=[cs]}if(!tagName){return cs}var result=[],ri=-1,i,ci;tagName=tagName.toLowerCase();for(i=0;ci=cs[i];i++){if(ci.nodeType==1&&ci.tagName.toLowerCase()==tagName){result[++ri]=ci}}return result};var byId=function byId(cs,id){id=unescapeCssSelector(id);if(cs.tagName||cs===doc){cs=[cs]}if(!id){return cs}var result=[],ri=-1,i,ci;for(i=0;ci=cs[i];i++){if(ci&&ci.id==id){result[++ri]=ci;return result}}return result};var byAttribute=function byAttribute(cs,attr,value,op,custom){var result=[],ri=-1,useGetStyle=custom=="{",fn=DQ.operators[op],a,xml,hasXml,i,ci;value=unescapeCssSelector(value);for(i=0;ci=cs[i];i++){if(ci.nodeType===1){if(!hasXml){xml=DQ.isXml(ci);hasXml=true}if(!xml){if(useGetStyle){a=DQ.getStyle(ci,attr)}else if(attr=="class"||attr=="className"){a=ci.className}else if(attr=="for"){a=ci.htmlFor}else if(attr=="href"){a=ci.getAttribute("href",2)}else{a=ci.getAttribute(attr)}}else{a=ci.getAttribute(attr)}if(fn&&fn(a,value)|| !fn&&a){result[++ri]=ci}}}return result};var byPseudo=function byPseudo(cs,name,value){value=unescapeCssSelector(value);return DQ.pseudos[name](cs,value)};var nodupIEXml=function nodupIEXml(cs){var d=++key,r,i,len,c;cs[0].setAttribute("_nodup",d);r=[cs[0]];for(i=1,len=cs.length;itext';return d.children&&d.children.length===0}(),nonSpace=/\S/,trimRe=/^\s+|\s+$/g,tplRe=/\{(\d+)\}/g,modeRe=/^(\s?[\/>+~]\s?|\s|$)/,tagTokenRe=/^(#)?([\w\-\*\|\\]+)/,nthRe=/(\d*)n\+?(\d*)/,nthRe2=/\D/,startIdRe=/^\s*#/,isIE=window.ActiveXObject?true:false,key=30803,longHex=/\\([0-9a-fA-F]{6})/g,shortHex=/\\([0-9a-fA-F]{1,6})\s{0,1}/g,nonHex=/\\([^0-9a-fA-F]{1})/g,escapes=/\\/g,num,hasEscapes,supportsColonNsSeparator=function(){var xmlDoc,xmlString='';if(window.DOMParser){xmlDoc=new DOMParser().parseFromString(xmlString,"application/xml")}else{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.loadXML(xmlString)}return!!xmlDoc.getElementsByTagName('a:b').length}(),longHexToChar=function longHexToChar($0,$1){return String.fromCharCode(parseInt($1,16))},shortToLongHex=function shortToLongHex($0,$1){while($1.length<6){$1='0'+$1}return'\\'+$1},charToLongHex=function charToLongHex($0,$1){num=$1.charCodeAt(0).toString(16);if(num.length===1){num='0'+num}return'\\0000'+num},unescapeCssSelector=function unescapeCssSelector(selector){return hasEscapes?selector.replace(longHex,longHexToChar):selector},setupEscapes=function setupEscapes(path){hasEscapes=path.indexOf('\\')> -1;if(hasEscapes){path=path.replace(shortHex,shortToLongHex).replace(nonHex,charToLongHex).replace(escapes,'\\\\')}return path};eval("var batch = 30803, child, next, prev, byClassName;");child=useChildrenCollection?function child(parent,index){return parent.children[index]}:function child(parent,index){var i=0,n=parent.firstChild;while(n){if(n.nodeType==1){if(++i==index){return n}}n=n.nextSibling}return null};next=useElementPointer?function next(n){return n.nextElementSibling}:function(n){while((n=n.nextSibling)&&n.nodeType!=1);return n};prev=useElementPointer?function prev(n){return n.previousElementSibling}:function(n){while((n=n.previousSibling)&&n.nodeType!=1);return n};byClassName=useClassList?function byClassName(nodeSet,cls){cls=unescapeCssSelector(cls);if(!cls){return nodeSet}var result=[],ri=-1,i,ci,classList;for(i=0;ci=nodeSet[i];i++){classList=ci.classList;if(classList){if(classList.contains(cls)){result[++ri]=ci}}else if((' '+ci.className+' ').indexOf(cls)!== -1){result[++ri]=ci}}return result}:function(nodeSet,cls){cls=unescapeCssSelector(cls);if(!cls){return nodeSet}var result=[],ri=-1,i,ci;for(i=0;ci=nodeSet[i];i++){if((' '+ci.className+' ').indexOf(cls)!== -1){result[++ri]=ci}}return result};return DQ={getStyle:function getStyle(el,name){return Ext.fly(el,'_DomQuery').getStyle(name)},compile:function compile(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,modeMatch,lmode=path.match(modeRe),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=false;for(j=0;j1){return nodup(results)}return results},isXml:function isXml(el){var docEl=(el?el.ownerDocument||el:0).documentElement;return docEl?docEl.nodeName!=="HTML":false},select:doc.querySelectorAll?function(path,root,type,single){root=root||doc;if(!DQ.isXml(root)){try{if(root.parentNode&&root.nodeType!==9&&path.indexOf(',')=== -1&&!startIdRe.test(path)){path='#'+Ext.escapeId(Ext.id(root))+' '+path;root=root.parentNode}return single?[root.querySelector(path)]:Ext.Array.toArray(root.querySelectorAll(path))}catch(e){}}return DQ.jsSelect.call(this,path,root,type)}:function(path,root,type){return DQ.jsSelect.call(this,path,root,type)},selectNode:function selectNode(path,root){return Ext.DomQuery.select(path,root,null,true)[0]},selectValue:function selectValue(path,root,defaultValue){path=path.replace(trimRe,"");if(!valueCache[path]){valueCache[path]=DQ.compile(path,"select")}else{setupEscapes(path)}var n=valueCache[path](root),v;n=n[0]?n[0]:n;if(typeof n.normalize=='function'){n.normalize()}v=n&&n.firstChild?n.firstChild.nodeValue:null;return v===null||v===undefined||v===''?defaultValue:v},selectNumber:function selectNumber(path,root,defaultValue){var v=DQ.selectValue(path,root,defaultValue||0);return parseFloat(v)},is:function is(el,ss){if(typeof el=="string"){el=doc.getElementById(el)}var isArray=Ext.isArray(el),result=DQ.filter(isArray?el:[el],ss);return isArray?result.length==el.length:result.length>0},filter:function filter(els,ss,nonMatches){ss=ss.replace(trimRe,"");if(!simpleCache[ss]){simpleCache[ss]=DQ.compile(ss,"simple")}else{setupEscapes(ss)}var result=simpleCache[ss](els);return nonMatches?quickDiff(result,els):result},matchers:[{re:/^\.([\w\-\\]+)/,select:useClassList?'n = byClassName(n, "{1}");':'n = byClassName(n, " {1} ");'},{re:/^\:([\w\-]+)(?:\(((?:[^\s>\/]*|.*?))\))?/,select:'n = byPseudo(n, "{1}", "{2}");'},{re:/^(?:([\[\{])(?:@)?([\w\-]+)\s?(?:(=|.=)\s?['"]?(.*?)["']?)?[\]\}])/,select:'n = byAttribute(n, "{2}", "{4}", "{3}", "{1}");'},{re:/^#([\w\-\\]+)/,select:'n = byId(n, "{1}");'},{re:/^@([\w\-\.]+)/,select:'return {firstChild:{nodeValue:attrValue(n, "{1}")}};'}],operators:{"=":function(a,v){return a==v},"!=":function(a,v){return a!=v},"^=":function(a,v){return a&&a.substr(0,v.length)==v},"$=":function(a,v){return a&&a.substr(a.length-v.length)==v},"*=":function(a,v){return a&&a.indexOf(v)!== -1},"%=":function(a,v){return a%v===0},"|=":function(a,v){return a&&(a==v||a.substr(0,v.length+1)==v+'-')},"~=":function(a,v){return a&&(' '+a+' ').indexOf(' '+v+' ')!= -1}},pseudos:{"first-child":function(c){var r=[],ri=-1,n,i,ci;for(i=0;ci=n=c[i];i++){while((n=n.previousSibling)&&n.nodeType!=1);if(!n){r[++ri]=ci}}return r},"last-child":function(c){var r=[],ri=-1,n,i,ci;for(i=0;ci=n=c[i];i++){while((n=n.nextSibling)&&n.nodeType!=1);if(!n){r[++ri]=ci}}return r},"nth-child":function(c,a){var r=[],ri=-1,m=nthRe.exec(a=="even"&&"2n"||a=="odd"&&"2n+1"|| !nthRe2.test(a)&&"n+"+a||a),f=(m[1]||1)-0,l=m[2]-0,i,n,j,cn,pn;for(i=0;n=c[i];i++){pn=n.parentNode;if(batch!=pn._batch){j=0;for(cn=pn.firstChild;cn;cn=cn.nextSibling){if(cn.nodeType==1){cn.nodeIndex=++j}}pn._batch=batch}if(f==1){if(l===0||n.nodeIndex==l){r[++ri]=n}}else if((n.nodeIndex+l)%f===0){r[++ri]=n}}return r},"only-child":function(c){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(!prev(ci)&&!next(ci)){r[++ri]=ci}}return r},"empty":function(c){var r=[],ri=-1,i,ci,cns,j,cn,empty;for(i=0;ci=c[i];i++){cns=ci.childNodes;j=0;empty=true;while(cn=cns[j]){++j;if(cn.nodeType==1||cn.nodeType==3){empty=false;break}}if(empty){r[++ri]=ci}}return r},"contains":function(c,v){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if((ci.textContent||ci.innerText||ci.text||'').indexOf(v)!= -1){r[++ri]=ci}}return r},"nodeValue":function(c,v){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(ci.firstChild&&ci.firstChild.nodeValue==v){r[++ri]=ci}}return r},"checked":function(c){var r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(ci.checked===true){r[++ri]=ci}}return r},"not":function(c,ss){return DQ.filter(c,ss,true)},"any":function(c,selectors){var ss=selectors.split('|'),r=[],ri=-1,s,i,ci,j;for(i=0;ci=c[i];i++){for(j=0;s=ss[j];j++){if(DQ.is(ci,s)){r[++ri]=ci;break}}}return r},"odd":function(c){return this["nth-child"](c,"odd")},"even":function(c){return this["nth-child"](c,"even")},"nth":function(c,a){return c[a-1]||[]},"first":function(c){return c[0]||[]},"last":function(c){return c[c.length-1]||[]},"has":function(c,ss){var s=DQ.select,r=[],ri=-1,i,ci;for(i=0;ci=c[i];i++){if(s(ss,ci).length>0){r[++ri]=ci}}return r},"next":function(c,ss){var is=DQ.is,r=[],ri=-1,i,ci,n;for(i=0;ci=c[i];i++){n=next(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},"prev":function(c,ss){var is=DQ.is,r=[],ri=-1,i,ci,n;for(i=0;ci=c[i];i++){n=prev(ci);if(n&&is(n,ss)){r[++ri]=ci}}return r},focusable:function focusable(candidates){var len=candidates.length,results=[],i=0,c;for(;idom.clientHeight||dom.scrollWidth>dom.clientWidth},getScroll:function getScroll(){var me=this,dom=me.dom,doc=document,body=doc.body,docElement=doc.documentElement,left,top;if(dom===doc||dom===body){left=docElement.scrollLeft||(body?body.scrollLeft:0);top=docElement.scrollTop||(body?body.scrollTop:0)}else{left=dom.scrollLeft;top=dom.scrollTop}return{left:left,top:top}},getScrollLeft:function getScrollLeft(){var dom=this.dom,doc=document;if(dom===doc||dom===doc.body){return this.getScroll().left}else{return dom.scrollLeft}},getScrollTop:function getScrollTop(){var dom=this.dom,doc=document;if(dom===doc||dom===doc.body){return this.getScroll().top}else{return dom.scrollTop}},setScrollLeft:function setScrollLeft(left){this.dom.scrollLeft=left;return this},setScrollTop:function setScrollTop(top){this.dom.scrollTop=top;return this},scrollBy:function scrollBy(deltaX,deltaY,animate){var me=this,dom=me.dom;if(deltaX.length){animate=deltaY;deltaY=deltaX[1];deltaX=deltaX[0]}else if(typeof deltaX!='number'){animate=deltaY;deltaY=deltaX.y;deltaX=deltaX.x}if(deltaX){me.scrollTo('left',me.constrainScrollLeft(dom.scrollLeft+deltaX),animate)}if(deltaY){me.scrollTo('top',me.constrainScrollTop(dom.scrollTop+deltaY),animate)}return me},scrollTo:function scrollTo(side,value,animate){var top=/top/i.test(side),me=this,prop=top?'scrollTop':'scrollLeft',dom=me.dom,animCfg;if(!animate||!me.anim){dom[prop]=value;dom[prop]=value}else{animCfg={to:{}};animCfg.to[prop]=value;if(Ext.isObject(animate)){Ext.applyIf(animCfg,animate)}me.animate(animCfg)}return me},scrollIntoView:function scrollIntoView(container,hscroll,animate,highlight){var me=this,dom=me.dom,offsets=me.getOffsetsTo(container=Ext.getDom(container)||Ext.getBody().dom),left=offsets[0]+container.scrollLeft,top=offsets[1]+container.scrollTop,bottom=top+dom.offsetHeight,right=left+dom.offsetWidth,ctClientHeight=container.clientHeight,ctScrollTop=parseInt(container.scrollTop,10),ctScrollLeft=parseInt(container.scrollLeft,10),ctBottom=ctScrollTop+ctClientHeight,ctRight=ctScrollLeft+container.clientWidth,newPos;if(highlight){if(animate){animate=Ext.apply({listeners:{afteranimate:function afteranimate(){me.scrollChildFly.attach(dom).highlight()}}},animate)}else{me.scrollChildFly.attach(dom).highlight()}}if(dom.offsetHeight>ctClientHeight||topctBottom){newPos=bottom-ctClientHeight}if(newPos!=null){me.scrollChildFly.attach(container).scrollTo('top',newPos,animate)}if(hscroll!==false){newPos=null;if(dom.offsetWidth>container.clientWidth||leftctRight){newPos=right-container.clientWidth}if(newPos!=null){me.scrollChildFly.attach(container).scrollTo('left',newPos,animate)}}return me},scrollChildIntoView:function scrollChildIntoView(child,hscroll){this.scrollChildFly.attach(Ext.getDom(child)).scrollIntoView(this,hscroll)},scroll:function scroll(direction,distance,animate){if(!this.isScrollable()){return false}var me=this,dom=me.dom,side=direction==='r'||direction==='l'?'left':'top',scrolled=false,currentScroll,constrainedScroll;if(direction==='r'){distance=-distance}if(side==='left'){currentScroll=dom.scrollLeft;constrainedScroll=me.constrainScrollLeft(currentScroll+distance)}else{currentScroll=dom.scrollTop;constrainedScroll=me.constrainScrollTop(currentScroll+distance)}if(constrainedScroll!==currentScroll){this.scrollTo(side,constrainedScroll,animate);scrolled=true}return scrolled},constrainScrollLeft:function constrainScrollLeft(left){var dom=this.dom;return Math.max(Math.min(left,dom.scrollWidth-dom.clientWidth),0)},constrainScrollTop:function constrainScrollTop(top){var dom=this.dom;return Math.max(Math.min(top,dom.scrollHeight-dom.clientHeight),0)}},function(){this.prototype.scrollChildFly=new this.Fly();this.prototype.scrolltoFly=new this.Fly()});Ext.define('Ext.dom.Element_style',{override:'Ext.dom.Element'},function(){var Element=this,view=document.defaultView,adjustDirect2DTableRe=/table-row|table-.*-group/,INTERNAL='_internal',HIDDEN='hidden',HEIGHT='height',WIDTH='width',ISCLIPPED='isClipped',OVERFLOW='overflow',OVERFLOWX='overflow-x',OVERFLOWY='overflow-y',ORIGINALCLIP='originalClip',DOCORBODYRE=/#document|body/i,styleHooks,verticalStyleHooks90,verticalStyleHooks270,edges,k,edge,borderWidth;if(!view||!view.getComputedStyle){Element.prototype.getStyle=function(property,inline){var me=this,dom=me.dom,multiple=typeof property!='string',hooks=me.styleHooks,prop=property,props=prop,len=1,isInline=inline,camel,domStyle,values,hook,out,style,i;if(multiple){values={};prop=props[0];i=0;if(!(len=props.length)){return values}}if(!dom||dom.documentElement){return values||''}domStyle=dom.style;if(inline){style=domStyle}else{style=dom.currentStyle;if(!style){isInline=true;style=domStyle}}do{hook=hooks[prop];if(!hook){hooks[prop]=hook={name:Element.normalize(prop)}}if(hook.get){out=hook.get(dom,me,isInline,style)}else{camel=hook.name;if(hook.canThrow){try{out=style[camel]}catch(e){out=''}}else{out=style?style[camel]:''}}if(!multiple){return out}values[prop]=out;prop=props[++i]}while(i0&&floating<.5){height++}}if(contentHeight){height-=me.getBorderWidth("tb")+me.getPadding("tb")}return height<0?0:height},getWidth:function getWidth(contentWidth,preciseWidth){var me=this,dom=me.dom,hidden=me.isStyle('display','none'),rect,width,floating;if(hidden){return 0}if(preciseWidth&&Ext.supports.BoundingClientRect){rect=dom.getBoundingClientRect();width=me.vertical&&!Ext.isIE9&&!Ext.supports.RotatedBoundingClientRect?rect.bottom-rect.top:rect.right-rect.left}else{width=dom.offsetWidth}if(Ext.supports.Direct2DBug&&!me.vertical){floating=me.adjustDirect2DDimension(WIDTH);if(preciseWidth){width+=floating}else if(floating>0&&floating<.5){width++}}if(contentWidth){width-=me.getBorderWidth("lr")+me.getPadding("lr")}return width<0?0:width},setWidth:function setWidth(width,animate){var me=this;width=me.adjustWidth(width);if(!animate||!me.anim){me.dom.style.width=me.addUnits(width)}else{if(!Ext.isObject(animate)){animate={}}me.animate(Ext.applyIf({to:{width:width}},animate))}return me},setHeight:function setHeight(height,animate){var me=this;height=me.adjustHeight(height);if(!animate||!me.anim){me.dom.style.height=me.addUnits(height)}else{if(!Ext.isObject(animate)){animate={}}me.animate(Ext.applyIf({to:{height:height}},animate))}return me},applyStyles:function applyStyles(style){Ext.DomHelper.applyStyles(this.dom,style);return this},setSize:function setSize(width,height,animate){var me=this;if(Ext.isObject(width)){animate=height;height=width.height;width=width.width}width=me.adjustWidth(width);height=me.adjustHeight(height);if(!animate||!me.anim){me.dom.style.width=me.addUnits(width);me.dom.style.height=me.addUnits(height)}else{if(animate===true){animate={}}me.animate(Ext.applyIf({to:{width:width,height:height}},animate))}return me},getViewSize:function getViewSize(){var me=this,dom=me.dom,isDoc=DOCORBODYRE.test(dom.nodeName),ret;if(isDoc){ret={width:Element.getViewWidth(),height:Element.getViewHeight()}}else{ret={width:dom.clientWidth,height:dom.clientHeight}}return ret},getSize:function getSize(contentSize){return{width:this.getWidth(contentSize),height:this.getHeight(contentSize)}},adjustWidth:function adjustWidth(width){var me=this,isNum=typeof width=='number';if(isNum&&me.autoBoxAdjust&&!me.isBorderBox()){width-=me.getBorderWidth("lr")+me.getPadding("lr")}return isNum&&width<0?0:width},adjustHeight:function adjustHeight(height){var me=this,isNum=typeof height=="number";if(isNum&&me.autoBoxAdjust&&!me.isBorderBox()){height-=me.getBorderWidth("tb")+me.getPadding("tb")}return isNum&&height<0?0:height},getColor:function getColor(attr,defaultValue,prefix){var v=this.getStyle(attr),color=prefix||prefix===''?prefix:'#',h,len,i=0;if(!v||/transparent|inherit/.test(v)){return defaultValue}if(/^r/.test(v)){v=v.slice(4,v.length-1).split(',');len=v.length;for(;i5?color.toLowerCase():defaultValue},setOpacity:function setOpacity(opacity,animate){var me=this;if(!me.dom){return me}if(!animate||!me.anim){me.setStyle('opacity',opacity)}else{if(typeof animate!='object'){animate={duration:350,easing:'ease-in'}}me.animate(Ext.applyIf({to:{opacity:opacity}},animate))}return me},clearOpacity:function clearOpacity(){return this.setOpacity('')},adjustDirect2DDimension:function adjustDirect2DDimension(dimension){var me=this,dom=me.dom,display=me.getStyle('display'),inlineDisplay=dom.style.display,inlinePosition=dom.style.position,originIndex=dimension===WIDTH?0:1,currentStyle=dom.currentStyle,floating;if(display==='inline'){dom.style.display='inline-block'}dom.style.position=display.match(adjustDirect2DTableRe)?'absolute':'static';floating=(parseFloat(currentStyle[dimension])||parseFloat(currentStyle.msTransformOrigin.split(' ')[originIndex])*2)%1;dom.style.position=inlinePosition;if(display==='inline'){dom.style.display=inlineDisplay}return floating},clip:function clip(){var me=this,data=(me.$cache||me.getCache()).data,style;if(!data[ISCLIPPED]){data[ISCLIPPED]=true;style=me.getStyle([OVERFLOW,OVERFLOWX,OVERFLOWY]);data[ORIGINALCLIP]={o:style[OVERFLOW],x:style[OVERFLOWX],y:style[OVERFLOWY]};me.setStyle(OVERFLOW,HIDDEN);me.setStyle(OVERFLOWX,HIDDEN);me.setStyle(OVERFLOWY,HIDDEN)}return me},unclip:function unclip(){var me=this,data=(me.$cache||me.getCache()).data,clip;if(data[ISCLIPPED]){data[ISCLIPPED]=false;clip=data[ORIGINALCLIP];if(clip.o){me.setStyle(OVERFLOW,clip.o)}if(clip.x){me.setStyle(OVERFLOWX,clip.x)}if(clip.y){me.setStyle(OVERFLOWY,clip.y)}}return me},boxWrap:function boxWrap(cls){cls=cls||Ext.baseCSSPrefix+'box';var el=Ext.get(this.insertHtml("beforeBegin","
"+Ext.String.format(Element.boxMarkup,cls)+"
"));Ext.DomQuery.selectNode('.'+cls+'-mc',el.dom).appendChild(this.dom);return el},getComputedHeight:function getComputedHeight(){var me=this,h=Math.max(me.dom.offsetHeight,me.dom.clientHeight);if(!h){h=parseFloat(me.getStyle(HEIGHT))||0;if(!me.isBorderBox()){h+=me.getFrameWidth('tb')}}return h},getComputedWidth:function getComputedWidth(){var me=this,w=Math.max(me.dom.offsetWidth,me.dom.clientWidth);if(!w){w=parseFloat(me.getStyle(WIDTH))||0;if(!me.isBorderBox()){w+=me.getFrameWidth('lr')}}return w},getFrameWidth:function getFrameWidth(sides,onlyContentBox){return onlyContentBox&&this.isBorderBox()?0:this.getPadding(sides)+this.getBorderWidth(sides)},addClsOnOver:function addClsOnOver(className,testFn,scope){var me=this,dom=me.dom,hasTest=Ext.isFunction(testFn);me.hover(function(){if(hasTest&&testFn.call(scope||me,me)===false){return}Ext.fly(dom,INTERNAL).addCls(className)},function(){Ext.fly(dom,INTERNAL).removeCls(className)});return me},addClsOnFocus:function addClsOnFocus(className,testFn,scope){var me=this,dom=me.dom,hasTest=Ext.isFunction(testFn);me.on("focus",function(){if(hasTest&&testFn.call(scope||me,me)===false){return false}Ext.fly(dom,INTERNAL).addCls(className)});me.on("blur",function(){Ext.fly(dom,INTERNAL).removeCls(className)});return me},addClsOnClick:function addClsOnClick(className,testFn,scope){var me=this,dom=me.dom,hasTest=Ext.isFunction(testFn);me.on("mousedown",function(){if(hasTest&&testFn.call(scope||me,me)===false){return false}Ext.fly(dom,INTERNAL).addCls(className);var d=Ext.getDoc(),fn=function(){Ext.fly(dom,INTERNAL).removeCls(className);d.removeListener("mouseup",fn)};d.on("mouseup",fn)});return me},getStyleSize:function getStyleSize(){var me=this,d=this.dom,isDoc=DOCORBODYRE.test(d.nodeName),s,w,h;if(isDoc){return{width:Element.getViewWidth(),height:Element.getViewHeight()}}s=me.getStyle([HEIGHT,WIDTH],true);if(s.width&&s.width!='auto'){w=parseFloat(s.width);if(me.isBorderBox()){w-=me.getFrameWidth('lr')}}if(s.height&&s.height!='auto'){h=parseFloat(s.height);if(me.isBorderBox()){h-=me.getFrameWidth('tb')}}return{width:w||me.getWidth(true),height:h||me.getHeight(true)}},statics:{selectableCls:Ext.baseCSSPrefix+'selectable',unselectableCls:Ext.baseCSSPrefix+'unselectable'},selectable:function selectable(){var me=this;me.dom.unselectable='';me.removeCls(Element.unselectableCls);me.addCls(Element.selectableCls);return me},unselectable:function unselectable(){var me=this;if(Ext.isOpera){me.dom.unselectable='on'}me.removeCls(Element.selectableCls);me.addCls(Element.unselectableCls);return me},setVertical:function setVertical(angle,cls){var me=this,proto=Element.prototype,hooks;me.vertical=true;if(cls){me.addCls(me.verticalCls=cls)}me.setWidth=proto.setHeight;me.setHeight=proto.setWidth;if(!Ext.isIE9m){me.getWidth=proto.getHeight;me.getHeight=proto.getWidth}me.styleHooks=angle===270?Element.prototype.verticalStyleHooks270:Element.prototype.verticalStyleHooks90},setHorizontal:function setHorizontal(){var me=this,cls=me.verticalCls;delete me.vertical;if(cls){delete me.verticalCls;me.removeCls(cls)}delete me.setWidth;delete me.setHeight;if(!Ext.isIE9m){delete me.getWidth;delete me.getHeight}delete me.styleHooks}});Element.prototype.styleHooks=styleHooks=Ext.dom.AbstractElement.prototype.styleHooks;Element.prototype.verticalStyleHooks90=verticalStyleHooks90=Ext.Object.chain(Element.prototype.styleHooks);Element.prototype.verticalStyleHooks270=verticalStyleHooks270=Ext.Object.chain(Element.prototype.styleHooks);verticalStyleHooks90.width={name:'height'};verticalStyleHooks90.height={name:'width'};verticalStyleHooks90['margin-top']={name:'marginLeft'};verticalStyleHooks90['margin-right']={name:'marginTop'};verticalStyleHooks90['margin-bottom']={name:'marginRight'};verticalStyleHooks90['margin-left']={name:'marginBottom'};verticalStyleHooks90['padding-top']={name:'paddingLeft'};verticalStyleHooks90['padding-right']={name:'paddingTop'};verticalStyleHooks90['padding-bottom']={name:'paddingRight'};verticalStyleHooks90['padding-left']={name:'paddingBottom'};verticalStyleHooks90['border-top']={name:'borderLeft'};verticalStyleHooks90['border-right']={name:'borderTop'};verticalStyleHooks90['border-bottom']={name:'borderRight'};verticalStyleHooks90['border-left']={name:'borderBottom'};verticalStyleHooks270.width={name:'height'};verticalStyleHooks270.height={name:'width'};verticalStyleHooks270['margin-top']={name:'marginRight'};verticalStyleHooks270['margin-right']={name:'marginBottom'};verticalStyleHooks270['margin-bottom']={name:'marginLeft'};verticalStyleHooks270['margin-left']={name:'marginTop'};verticalStyleHooks270['padding-top']={name:'paddingRight'};verticalStyleHooks270['padding-right']={name:'paddingBottom'};verticalStyleHooks270['padding-bottom']={name:'paddingLeft'};verticalStyleHooks270['padding-left']={name:'paddingTop'};verticalStyleHooks270['border-top']={name:'borderRight'};verticalStyleHooks270['border-right']={name:'borderBottom'};verticalStyleHooks270['border-bottom']={name:'borderLeft'};verticalStyleHooks270['border-left']={name:'borderTop'};if(Ext.isIE7m){styleHooks.fontSize=styleHooks['font-size']={name:'fontSize',canThrow:true};styleHooks.fontStyle=styleHooks['font-style']={name:'fontStyle',canThrow:true};styleHooks.fontFamily=styleHooks['font-family']={name:'fontFamily',canThrow:true}}if(Ext.isIEQuirks||Ext.isIE&&Ext.ieVersion<=8){var getBorderWidth=function getBorderWidth(dom,el,inline,style){if(style[this.styleName]=='none'){return'0px'}return style[this.name]};edges=['Top','Right','Bottom','Left'];k=edges.length;while(k--){edge=edges[k];borderWidth='border'+edge+'Width';styleHooks['border-'+edge.toLowerCase()+'-width']=styleHooks[borderWidth]={name:borderWidth,styleName:'border'+edge+'Style',get:getBorderWidth}}}Ext.getDoc().on('selectstart',function(ev,dom){var doc=document.documentElement,selectableCls=Element.selectableCls,unselectableCls=Element.unselectableCls,tagName=dom&&dom.tagName;tagName=tagName&&tagName.toLowerCase();if(tagName==='input'||tagName==='textarea'){return}while(dom&&dom.nodeType===1&&dom!==doc){var el=Ext.fly(dom);if(el.hasCls(selectableCls)){return}if(el.hasCls(unselectableCls)){ev.stopEvent();return}dom=dom.parentNode}})});Ext.onReady(function(){var opacityRe=/alpha\(opacity=(.*)\)/i,trimRe=/^\s+|\s+$/g,hooks=Ext.dom.Element.prototype.styleHooks;hooks.opacity={name:'opacity',afterSet:function afterSet(dom,value,el){if(el.isLayer){el.onOpacitySet(value)}}};if(!Ext.supports.Opacity&&Ext.isIE){Ext.apply(hooks.opacity,{get:function get(dom){var filter=dom.style.filter,match,opacity;if(filter.match){match=filter.match(opacityRe);if(match){opacity=parseFloat(match[1]);if(!isNaN(opacity)){return opacity?opacity/100:0}}}return 1},set:function set(dom,value){var style=dom.style,val=style.filter.replace(opacityRe,'').replace(trimRe,'');style.zoom=1;if(typeof value=='number'&&value>=0&&value<1){value*=100;style.filter=val+(val.length?' ':'')+'alpha(opacity='+value+')'}else{style.filter=val}}})}});Ext.define('Ext.util.Positionable',{_positionTopLeft:['position','top','left'],_alignRe:/^([a-z]+)-([a-z]+)(\?)?$/,afterSetPosition:Ext.emptyFn,adjustForConstraints:function adjustForConstraints(xy,parent){var vector=this.getConstrainVector(parent,xy);if(vector){xy[0]+=vector[0];xy[1]+=vector[1]}return xy},alignTo:function alignTo(element,position,offsets,animate){var me=this,el=me.el;return me.setXY(me.getAlignToXY(element,position,offsets),el.anim&&!!animate?el.anim(animate):false)},anchorTo:function anchorTo(anchorToEl,alignment,offsets,animate,monitorScroll,callback){var me=this,scroll=!Ext.isEmpty(monitorScroll),action=function action(){me.alignTo(anchorToEl,alignment,offsets,animate);Ext.callback(callback,me)},anchor=me.getAnchor();me.removeAnchor();Ext.apply(anchor,{fn:action,scroll:scroll});Ext.EventManager.onWindowResize(action,null);if(scroll){Ext.EventManager.on(window,'scroll',action,null,{buffer:!isNaN(monitorScroll)?monitorScroll:50})}action();return me},calculateAnchorXY:function calculateAnchorXY(anchor,extraX,extraY,mySize){var me=this,el=me.el,doc=document,isViewport=el.dom==doc.body||el.dom==doc,round=Math.round,xy,myWidth,myHeight;anchor=(anchor||"tl").toLowerCase();mySize=mySize||{};myWidth=mySize.width||isViewport?Ext.Element.getViewWidth():me.getWidth();myHeight=mySize.height||isViewport?Ext.Element.getViewHeight():me.getHeight();switch(anchor){case'tl':xy=[0,0];break;case'bl':xy=[0,myHeight];break;case'tr':xy=[myWidth,0];break;case'c':xy=[round(myWidth*.5),round(myHeight*.5)];break;case't':xy=[round(myWidth*.5),0];break;case'l':xy=[0,round(myHeight*.5)];break;case'r':xy=[myWidth,round(myHeight*.5)];break;case'b':xy=[round(myWidth*.5),myHeight];break;case'tc':xy=[round(myWidth*.5),0];break;case'bc':xy=[round(myWidth*.5),myHeight];break;case'br':xy=[myWidth,myHeight]}return[xy[0]+extraX,xy[1]+extraY]},convertPositionSpec:Ext.identityFn,getAlignToXY:function getAlignToXY(alignToEl,posSpec,offset){var me=this,viewportWidth=Ext.Element.getViewWidth()-10,viewportHeight=Ext.Element.getViewHeight()-10,doc=document,docElement=doc.documentElement,docBody=doc.body,scrollX=docElement.scrollLeft||docBody.scrollLeft||0,scrollY=docElement.scrollTop||docBody.scrollTop||0,alignMatch,myPosition,alignToElPosition,myWidth,myHeight,alignToElRegion,swapY,swapX,constrain,align1,align2,p1y,p1x,p2y,p2x,x,y;alignToEl=Ext.get(alignToEl.el||alignToEl);if(!alignToEl||!alignToEl.dom){}offset=offset||[0,0];posSpec=(!posSpec||posSpec=="?"?"tl-bl?":!/-/.test(posSpec)&&posSpec!==""?"tl-"+posSpec:posSpec||"tl-bl").toLowerCase();posSpec=me.convertPositionSpec(posSpec);alignMatch=posSpec.match(me._alignRe);align1=alignMatch[1];align2=alignMatch[2];constrain=!!alignMatch[3];myPosition=me.getAnchorXY(align1,true);alignToElPosition=me.getAnchorToXY(alignToEl,align2,false);x=alignToElPosition[0]-myPosition[0]+offset[0];y=alignToElPosition[1]-myPosition[1]+offset[1];if(constrain){myWidth=me.getWidth();myHeight=me.getHeight();alignToElRegion=alignToEl.getRegion();p1y=align1.charAt(0);p1x=align1.charAt(align1.length-1);p2y=align2.charAt(0);p2x=align2.charAt(align2.length-1);swapY=p1y=="t"&&p2y=="b"||p1y=="b"&&p2y=="t";swapX=p1x=="r"&&p2x=="l"||p1x=="l"&&p2x=="r";if(x+myWidth>viewportWidth+scrollX){x=swapX?alignToElRegion.left-myWidth:viewportWidth+scrollX-myWidth}if(xviewportHeight+scrollY){y=swapY?alignToElRegion.top-myHeight:viewportHeight+scrollY-myHeight}if(yconstrainTo.right){overflowed=true;vector[0]=constrainTo.right-thisRegion.right}if(thisRegion.left+vector[0]constrainTo.bottom){overflowed=true;vector[1]=constrainTo.bottom-thisRegion.bottom}if(thisRegion.top+vector[1]