/*==================================================
 Copyright 20013-2014 司徒正美 and other contributors
 http://www.cnblogs.com/rubylouvre/
 https://github.com/RubyLouvre
 http://weibo.com/jslouvre/
 
 Released under the MIT license
 avalon 1.3 2014.5.29
 ==================================================*/

/*!
 * jQuery JavaScript Library v1.11.1
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-05-01T17:42Z
 */

/*!
 * Sizzle CSS Selector Engine v1.10.19
 * http://sizzlejs.com/
 *
 * Copyright 2013 jQuery Foundation, Inc. and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2014-04-18
 */

/*

  Javascript State Machine Library - https://github.com/jakesgordon/javascript-state-machine

  Copyright (c) 2012, 2013, 2014, Jake Gordon and contributors
  Released under the MIT license - https://github.com/jakesgordon/javascript-state-machine/blob/master/LICENSE

*/

/*!
	 * jScrollPane - v2.0.19 - 2013-11-16
	 * http://jscrollpane.kelvinluck.com/
	 *
	 * Copyright (c) 2013 Kelvin Luck
	 * Dual licensed under the MIT or GPL licenses.
	 */

// Copyright (c) 2013 Kelvin Luck

// Dual licensed under the MIT or GPL Version 2 licenses.

function load(e){require(["main"],function(){})}(function(DOC){function noop(){}function log(e){window.console&&console.log(W3C?e:e+"")}function getType(e){return e==null?String(e):typeof e=="object"||typeof e=="function"?class2type[serialize.call(e)]||"object":typeof e}function isWindow(e){return rwindow.test(serialize.call(e))}function resetNumber(e,t,n){return e===+e&&!(e%1)?e<0?e=e*-1>=t?0:e+t:e=e>t?t:e:e=n?t:0,e}function oneObject(e,t){typeof e=="string"&&(e=e.match(rword)||[]);var n={},r=t!==void 0?t:1;for(var i=0,s=e.length;i<s;i++)n[e[i]]=r;return n}function generateID(){return"avalon"+Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}function isArrayLike(e){if(e&&typeof e=="object"&&!avalon.isWindow(e)){var t=e.length;if(+t===t&&!(t%1)&&t>=0)try{return{}.propertyIsEnumerable.call(e,"length")===!1?Array.isArray(e)||/^\s?function/.test(e.item||e.callee):!0}catch(n){return!0}}return!1}function modelFactory(e,t){if(Array.isArray(e)){var n=e.concat();e.length=0;var r=Collection(e);return r.push.apply(r,n),r}if(typeof e.nodeType=="number")return e;var i={};t=t||{};var s={},o={},u=[],a=arguments[2]||{},f=e.$skipArray;for(var l=0,c;c=skipProperties[l++];)typeof c!="string"&&log("warning:$skipArray["+c+"] must be a string"),delete e[c],o[c]=!0;if(Array.isArray(f))for(var l=0,c;c=f[l++];)o[c]=!0;for(var l in e)loopModel(l,e[l],t,o,s,u,a);i=defineProperties(i,descriptorFactory(s),o);for(var c in o)i[c]=o[c];a.vmodel=i,i.$model=t,i.$events={},i.$id=generateID(),i.$accessors=s,i[subscribers]=[];for(var l in Observable){var h=Observable[l];W3C||(h=h.bind(i)),i[l]=h}i.hasOwnProperty=function(e){return e in i.$model};for(var l=0,h;h=u[l++];)Registry[expose]=h,h(),collectSubscribers(h),delete Registry[expose];return i}function safeFire(e,t,n,r){e.$events&&Observable.$fire.call(e,t,n,r)}function loopModel(e,t,n,r,i,s,o){n[e]=t;if(r[e]||t&&t.nodeType)return r[e]=t;if(e.charAt(0)==="$"&&!o[e])return r[e]=t;var u=getType(t);if(u==="function")return r[e]=t;var a,f;if(u==="object"&&typeof t.get=="function"&&Object.keys(t).length<=2){var l=t.set,c=t.get;a=function(t){var r=o.vmodel,i=n[e],s=i;if(!arguments.length)return avalon.openComputedCollect&&collectSubscribers(a),t=n[e]=c.call(r),isEqual(i,t)||(f=void 0,safeFire(r,e,t,s)),t;if(stopRepeatAssign)return;if(typeof l=="function"){var u=r.$events[e];r.$events[e]=[],l.call(r,t),r.$events[e]=u}isEqual(f,t)||(f=t,t=n[e]=c.call(r),withProxyCount&&updateWithProxy(r.$id,e,t),notifySubscribers(a),safeFire(r,e,t,s))},s.push(a)}else rchecktype.test(u)?(a=function(t){var r=a.$vmodel,i=r.$model;if(!arguments.length)return collectSubscribers(r),r;if(stopRepeatAssign)return;if(!isEqual(i,t)){t=a.$vmodel=updateVModel(r,t,u);var s=rebindings[t.$id];s&&s();var f=o.vmodel;n[e]=t.$model,notifySubscribers(r),safeFire(f,e,n[e],i)}},a.$vmodel=t.$model?t:modelFactory(t,t),n[e]=a.$vmodel.$model):(a=function(t){var r=n[e];if(!arguments.length)return collectSubscribers(a),r;if(!isEqual(r,t)){n[e]=t;var i=o.vmodel;withProxyCount&&updateWithProxy(i.$id,e,t),notifySubscribers(a),safeFire(i,e,t,r)}},n[e]=t);a[subscribers]=[],i[e]=a}function updateWithProxy(e,t,n){var r=withProxyPool[e];r&&r[t]&&(r[t].$val=n)}function updateVModel(e,t,n){if(n==="array"){if(!Array.isArray(t))return e;var r=t.concat();return e.clear(),e.push.apply(e,r),e}var i=e[subscribers]||[];withProxyPool[e.$id]&&(withProxyCount--,delete withProxyPool[e.$id]);var s=modelFactory(t);return rebindings[s.$id]=function(e){while(e=i.shift())(function(e){e.type&&avalon.nextTick(function(){e.rollback&&e.rollback(),bindingHandlers[e.type](e,e.vmodels)})})(e);delete rebindings[s.$id]},s}function iterator(e,t,n){var r="for(var "+e+"i=0,n = this.length; i < n; i++){"+t.replace("_","((i in this) && fn.call(scope,this[i],i,this))")+"}"+n;return Function("fn,scope",r)}function fixContains(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1}function kernel(e){for(var t in e){if(!ohasOwn.call(e,t))continue;var n=e[t];typeof kernel.plugins[t]=="function"?kernel.plugins[t](n):typeof kernel[t]=="object"?avalon.mix(kernel[t],n):kernel[t]=n}return this}function escapeRegExp(e){return(e+"").replace(rregexp,"\\$&")}function hyphen(e){return e.replace(/([a-z\d])([A-Z]+)/g,"$1-$2").toLowerCase()}function camelize(e){return e.indexOf("-")<0&&e.indexOf("_")<0?e:e.replace(/[-_][^-_]/g,function(e){return e.charAt(1).toUpperCase()})}function parseData(e){try{e=e==="true"?!0:e==="false"?!1:e==="null"?null:+e+""===e?+e:rbrace.test(e)?parseJSON(e):e}catch(t){}return e}function getWindow(e){return e.window&&e.document?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}function showHidden(e,t){if(e.offsetWidth<=0){if(rdisplayswap.test(cssHooks["@:get"](e,"display"))){var n={node:e};for(var r in cssShow)n[r]=e.style[r],e.style[r]=cssShow[r];t.push(n)}var i=e.parentNode;i&&i.nodeType==1&&showHidden(i,t)}}function getValType(e){var t=e.tagName.toLowerCase();return t==="input"&&/checkbox|radio/.test(e.type)?"checked":t}function registerSubscriber(e,t){Registry[expose]=e,avalon.openComputedCollect=!0;var n=e.evaluator;if(n)if(e.type==="duplex")e.handler();else try{e.handler(n.apply(0,e.args),e.element,e)}catch(r){delete e.evaluator,e.nodeType===3&&(e.node.data=openTag+e.value+closeTag),log("warning:evaluator of ["+e.value+"] throws error!")}else e();avalon.openComputedCollect=!1,delete Registry[expose]}function collectSubscribers(e){if(Registry[expose]){var t=e[subscribers];t&&avalon.Array.ensure(t,Registry[expose])}}function notifySubscribers(e){var t=e[subscribers];if(t&&t.length){var n=aslice.call(arguments,1);for(var r=t.length,i;i=t[--r];){var s=i.element,o;s&&!avalon.contains(ifSanctuary,s)&&(typeof s.sourceIndex=="number"?o=s.sourceIndex===0:o=!avalon.contains(root,s)),o?(t.splice(r,1),log("debug: remove "+i.name)):typeof i=="function"?i.apply(0,n):i.getter?i.handler.apply(i,n):i.handler(i.evaluator.apply(0,i.args||[]),s,i)}}}function checkScan(e,t){var n=NaN,r=setInterval(function(){var i=e.innerHTML;i===n?(clearInterval(r),t()):n=i},interval)}function scanTag(e,t,n){var r=e.getAttribute(prefix+"skip");if(!e.getAttributeNode)return log("warning "+e.tagName+" no getAttributeNode method");var i=e.getAttributeNode(prefix+"important"),s=e.getAttributeNode(prefix+"controller");if(typeof r=="string")return;if(n=i||s){var o=VMODELS[n.value];if(!o)return;t=n===i?[o]:[o].concat(t),e.removeAttribute(n.name),avalon(e).removeClass(n.name)}scanAttr(e,t)}function scanNodes(e,t){var n=e.firstChild;while(n){var r=n.nextSibling;n.nodeType===1?scanTag(n,t):n.nodeType===3&&rexpr.test(n.data)&&scanText(n,t),n=r}}function scanText(e,t){var n=[],r=scanExpr(e.data);if(r.length){for(var i=0,s;s=r[i++];){var o=DOC.createTextNode(s.value);if(s.expr){var u=s.filters,a={type:"text",node:o,nodeType:3,value:s.value,filters:u};u&&u.indexOf("html")!==-1&&(avalon.Array.remove(u,"html"),a.type="html",a.replaceNodes=[o],u.length||delete n.filters),n.push(a)}documentFragment.appendChild(o)}e.parentNode.replaceChild(documentFragment,e),n.length&&executeBindings(n,t)}}function scanAttr(e,t){var n=getAttributes?getAttributes(e):e.attributes,r=[],i={},s;for(var o=0,u;u=n[o++];)if(u.specified)if(s=u.name.match(rmsAttr)){var a=s[1],f=s[2]||"";i[u.name]=u.value,ons[a]&&(f=a,a="on");if(typeof bindingHandlers[a]=="function"){var l={type:a,param:f,element:e,name:s[0],value:u.value,priority:a in priorityMap?priorityMap[a]:a.charCodeAt(0)*10+(Number(f)||0)};a==="if"&&f.indexOf("loop")>-1&&(l.priority+=100),t.length&&(r.push(l),a==="widget"&&(e.msData=e.msData||i))}}r.sort(function(e,t){return e.priority-t.priority}),i["ms-checked"]&&i["ms-duplex"]&&log("warning!一个元素上不能同时定义ms-checked与ms-duplex");var c=r[0]||{};switch(c.type){case"if":case"repeat":case"widget":executeBindings([c],t);break;default:executeBindings(r,t),!stopScan[e.tagName]&&rbind.test(e.innerHTML.replace(rlt,"<").replace(rgt,">"))&&scanNodes(e,t)}e.patchRepeat&&(e.patchRepeat(),e.patchRepeat=null)}function executeBindings(e,t){for(var n=0,r;r=e[n++];)r.vmodels=t,bindingHandlers[r.type](r,t),r.evaluator&&r.name&&r.element.removeAttribute(r.name);e.length=0}function scanExpr(e){var t=[],n,r=0,i;do{i=e.indexOf(openTag,r);if(i===-1)break;n=e.slice(r,i),n&&t.push({value:n,expr:!1}),r=i+openTag.length,i=e.indexOf(closeTag,r);if(i===-1)break;n=e.slice(r,i);if(n){var s=[];n.indexOf("|")>0&&(n=n.replace(r11a,"U2hvcnRDaXJjdWl0"),n=n.replace(rfilters,function(e,t,n){return s.push(t+(n||"")),""}),n=n.replace(r11b,"||")),t.push({value:n,expr:!0,filters:s.length?s:void 0})}r=i+closeTag.length}while(1);return n=e.slice(r),n&&t.push({value:n,expr:!1}),t}function addAssign(e,t,n,r){var i=[],s=" = "+n+".";for(var o=e.length,u;u=e[--o];)t.hasOwnProperty&&t.hasOwnProperty(u)&&(i.push(u+s+u),r==="duplex"&&(e.get=n+"."+u),e.splice(o,1));return i}function uniqVmodels(e){var t={};return e.filter(function(e){if(!t[e.$id])return t[e.$id]=1,!0})}function createCache(e){function n(r,i){return t.push(r)>e&&delete n[t.shift()],n[r]=i}var t=[];return n}function parseExpr(e,t,n,r){var i=n.type,s=i=="html"||i==="text"?n.filters:"",o=t.map(function(e){return e.$id.replace(rproxy,"$1")})+e+i+s,u=getVariables(e).concat(),a=[],f=[],l=[],c="";t=uniqVmodels(t);for(var h=0,p=t.length;h<p;h++)if(u.length){var d="vm"+expose+"_"+h;f.push(d),l.push(t[h]),a.push.apply(a,addAssign(u,t[h],d,r))}s&&l.push(avalon.filters),n.args=l;var v=cacheExpr[o];if(v){n.evaluator=v;return}var c=a.join(", ");c&&(c="var "+c);if(s){e="\nvar ret"+expose+" = "+e;var m=[],g;m.push(e,"\r\n");for(var h=0,y;y=n.filters[h++];){var b=y.indexOf("(");b!==-1?(g=y.slice(b+1,y.lastIndexOf(")")).trim(),g=","+g,y=y.slice(0,b).trim()):g="",m.push(" if(filters",expose,".",y,"){\n	try{\nret",expose," = filters",expose,".",y,"(ret",expose,g,")\n	}catch(e){} \n}\n")}e=m.join(""),e+="\nreturn ret"+expose,f.push("filters"+expose)}else{if(i==="duplex"){var w="\nreturn function(vvv){\n	"+c+";\n	if(!arguments.length){\n		return "+e+"\n	}\n	"+(rduplex.test(e)?e:u.get)+"= vvv;\n} ";try{v=Function.apply(noop,f.concat(w)),n.evaluator=cacheExpr(o,v)}catch(E){log("debug: parse error,"+E.message)}return}if(i==="on"){e=e.replace("(",".call(this,"),r==="$event"&&f.push(r),e="\nreturn "+e+";";var S=e.lastIndexOf("\nreturn"),x=e.slice(0,S),T=e.slice(S);e=x+"\nif(avalon.openComputedCollect) return ;"+T}else e="\nreturn "+e+";"}try{v=Function.apply(noop,f.concat("\n"+c+e)),n.evaluator=cacheExpr(o,v)}catch(E){log("debug: parse error,"+E.message)}finally{u=m=f=null}}function parseExprProxy(e,t,n,r){if(Array.isArray(r)){var i=r.map(function(e){var n={};return e.expr?parseExpr(e.value,t,n)||n:e.value});n.evaluator=function(){var e="";for(var t=0,n;n=i[t++];)e+=typeof n=="string"?n:n.evaluator.apply(0,n.args);return e},n.args=[]}else parseExpr(e,t,n,r);n.evaluator&&(n.handler=bindingExecutors[n.handlerName||n.type],n.evaluator.toString=function(){return n.type+" binding to eval("+e+")"},registerSubscriber(n))}function parseDisplay(e,t){e=e.toLowerCase();if(!cacheDisplay[e]){var n=DOC.createElement(e);root.appendChild(n),W3C?t=getComputedStyle(n,null).display:t=n.currentStyle.display,root.removeChild(n),cacheDisplay[e]=t}return cacheDisplay[e]}function onTree(){if(!this.disabled&&this.oldValue!==this.value){var e=DOC.createEvent("Event");e.initEvent("input",!0,!0),this.dispatchEvent(e)}}function ticker(){for(var e=ribbon.length-1;e>=0;e--){var t=ribbon[e];avalon.contains(root,t)?t.onTree&&t.onTree():t.msRetain||(t.offTree&&t.offTree(),ribbon.splice(e,1))}ribbon.length||clearInterval(TimerID)}function launchImpl(e){ribbon.push(e)===1&&(TimerID=setInterval(ticker,30))}function fixEvent(e){var t={};for(var n in e)t[n]=e[n];var r=t.target=e.srcElement;if(e.type.indexOf("key")===0)t.which=e.charCode!=null?e.charCode:e.keyCode;else if(/mouse|click/.test(e.type)){var i=r.ownerDocument||DOC,s=i.compatMode==="BackCompat"?i.body:i.documentElement;t.pageX=e.clientX+(s.scrollLeft>>0)-(s.clientLeft>>0),t.pageY=e.clientY+(s.scrollTop>>0)-(s.clientTop>>0)}return t.timeStamp=new Date-0,t.originalEvent=e,t.preventDefault=function(){e.returnValue=!1},t.stopPropagation=function(){e.cancelBubble=!0},t}function Collection(e){var t=[];t.$id=generateID(),t[subscribers]=[],t.$model=e,t.$events={},t._=modelFactory({length:e.length}),t._.$watch("length",function(e,n){t.$fire("length",e,n)});for(var n in Observable)t[n]=Observable[n];return avalon.mix(t,CollectionPrototype),t}function convert(e){var t=getType(e);return rchecktype.test(t)&&(e=e.$id?e:modelFactory(e,e)),e}function getIndex(e,t,n){for(var r=n,i=t.length;r<i;r++)if(isEqual(e,t[r]))return r;return-1}function expelFromSanctuary(e){var t=queryComments(e);for(var n=0,r;r=t[n++];)r.nodeValue=="ms-if"&&cinerator.appendChild(r.elem);while(r=e.firstChild)cinerator.appendChild(r);cinerator.innerHTML=""}function iteratorCallback(e){var t=getBindingCallback(this.callbackElement,this.callbackName,this.vmodels);if(t){var n=this.parent;checkScan(n,function(){t.apply(n,e)})}}function shimController(e,t,n,r){function u(){delete VMODELS[s],e.group=1;if(!e.fastRepeat){e.group=o.childNodes.length,o.parentNode.removeChild(o);while(o.firstChild)t.appendChild(o.firstChild);u.node!==void 0&&u.parent.insertBefore(t,u.node)}}var i=e.template.cloneNode(!0),s=r.$id,o=i.firstChild;return e.fastRepeat||(o=DOC.createElement("msloop"),o.style.display="none",o.appendChild(i)),o.setAttribute("ms-controller",s),n.push(o),t.appendChild(o),r.$outer=e.$outer,VMODELS[s]=r,o.patchRepeat=u}function getLocatedNode(e,t,n){if(t.startRepeat){var r=t.startRepeat,i=t.endRepeat;n+=1;for(var s=0;s<n;s++){r=r.nextSibling;if(r==i)return i}return r}return e.childNodes[t.group*n]||null}function removeView(e,t,n){var r=t*(n||1),i=documentFragment;while(--r>=0){var s=e.nextSibling;i.appendChild(e),e=s;if(!e)break}return i}function createWithProxy(e,t,n){var r=modelFactory({$key:e,$outer:n,$val:t},0,{$val:1,$key:1});return r.$id="$proxy$with"+Math.random(),r}function getEachProxy(e,t,n,r){var i=n.param||"el",s;for(var o=0,u=eachPool.length;o<u;o++){var s=eachPool[o];if(s.hasOwnProperty(i))return s.$remove=function(){return n.getter().removeAt(s.$index)},s.$index=e,s.$outer=n.$outer,s[i]=t,s.$first=e===0,s.$last=r,eachPool.splice(o,1),s}return createEachProxy(e,t,n,r)}function createEachProxy(e,t,n,r){var i=n.param||"el",s={$index:e,$itemName:i,$outer:n.$outer,$first:e===0,$last:e===r};s[i]=t,s.$remove=function(){return n.getter().removeAt(o.$index)};var o=modelFactory(s,0,watchEachOne);return o.$id="$proxy$"+n.type+Math.random(),o}function recycleEachProxy(e){var t=e.$accessors;["$index","$last","$first",e.$itemName].forEach(function(e){t[e][subscribers].length=0}),eachPool.unshift(e)>kernel.maxRepeatSize&&eachPool.pop()}function fireReady(){DOC.body&&(modules["ready!"].state=2,innerRequire.checkDeps(),fireReady=noop)}function doScrollCheck(){try{root.doScroll("left"),fireReady()}catch(e){setTimeout(doScrollCheck)}}var Registry={},expose=new Date-0,subscribers="$"+expose,window=this||(0,eval)("this"),otherRequire=window.require,otherDefine=window.define,stopRepeatAssign=!1,rword=/[^, ]+/g,class2type={},oproto=Object.prototype,ohasOwn=oproto.hasOwnProperty,prefix="ms-",W3C=window.dispatchEvent,root=DOC.documentElement,serialize=oproto.toString,ap=Array.prototype,aslice=ap.slice,head=DOC.head||DOC.getElementsByTagName("head")[0],documentFragment=DOC.createDocumentFragment(),DONT_ENUM="propertyIsEnumerable,isPrototypeOf,hasOwnProperty,toLocaleString,toString,valueOf,constructor".split(",");"Boolean Number String Function Array Date RegExp Object Error".replace(rword,function(e){class2type["[object "+e+"]"]=e.toLowerCase()});var rnative=/\[native code\]/,rchecktype=/^(?:object|array)$/,rwindow=/^\[object (Window|DOMWindow|global)\]$/;avalon=function(e){return new avalon.init(e)},avalon.init=function(e){this[0]=this.element=e},avalon.fn=avalon.prototype=avalon.init.prototype,avalon.type=getType,avalon.isWindow=function(e){return e?e==e.document&&e.document!=e:!1},isWindow(window)&&(avalon.isWindow=isWindow),avalon.isPlainObject=function(e){if(getType(e)!=="object"||e.nodeType||this.isWindow(e))return!1;try{if(e.constructor&&!ohasOwn.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0},rnative.test(Object.getPrototypeOf)&&(avalon.isPlainObject=function(e){return!!e&&typeof e=="object"&&Object.getPrototypeOf(e)===oproto}),avalon.mix=avalon.fn.mix=function(){var e,t,n,r,i,s,o=arguments[0]||{},u=1,a=arguments.length,f=!1;typeof o=="boolean"&&(f=o,o=arguments[1]||{},u++),typeof o!="object"&&getType(o)!=="function"&&(o={}),u===a&&(o=this,u--);for(;u<a;u++)if((e=arguments[u])!=null)for(t in e){n=o[t],r=e[t];if(o===r)continue;f&&r&&(avalon.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,s=n&&Array.isArray(n)?n:[]):s=n&&avalon.isPlainObject(n)?n:{},o[t]=avalon.mix(f,s,r)):r!==void 0&&(o[t]=r)}return o};var eventMap=avalon.eventMap={};avalon.mix({rword:rword,subscribers:subscribers,version:1.3,ui:{},log:log,slice:W3C?function(e,t,n){return aslice.call(e,t,n)}:function(e,t,n){var r=[],i=e.length;t=resetNumber(t,i),n=resetNumber(n,i,1);for(var s=t;s<n;++s)r[s-t]=e[s];return r},noop:noop,error:function(e,t){throw new(t||Error)(e)},oneObject:oneObject,range:function(e,t,n){n||(n=1),t==null&&(t=e||0,e=0);var r=-1,i=Math.max(0,Math.ceil((t-e)/n)),s=Array(i);while(++r<i)s[r]=e,e+=n;return s},bind:function(e,t,n,r){var i=W3C?n:function(t){return n.call(e,fixEvent(t))};return W3C?e.addEventListener(eventMap[t]||t,i,!!r):e.attachEvent("on"+t,i),i},unbind:W3C?function(e,t,n,r){e.removeEventListener(eventMap[t]||t,n||noop,!!r)}:function(e,t,n){e.detachEvent("on"+t,n||noop)},css:function(e,t,n){e instanceof avalon&&(e=e[0]);var r=/[_-]/.test(t)?camelize(t):t;t=avalon.cssName(r)||r;if(n===void 0||typeof n=="boolean"){var i=cssHooks[r+":get"]||cssHooks["@:get"],s=i(e,t);return n===!0?parseFloat(s)||0:s}if(n==="")e.style[t]="";else{if(n==null||n!==n)return;isFinite(n)&&!avalon.cssNumber[r]&&(n+="px"),i=cssHooks[r+":set"]||cssHooks["@:set"],i(e,t,n)}},each:function(e,t){if(e){var n=0;if(isArrayLike(e))for(var r=e.length;n<r;n++)t(n,e[n]);else for(n in e)e.hasOwnProperty(n)&&t(n,e[n])}},getWidgetData:function(e,t){var n=avalon(e).data(),r={};for(var i in n)i.indexOf(t)===0&&(r[i.replace(t,"").replace(/\w/,function(e){return e.toLowerCase()})]=n[i]);return r},Array:{ensure:function(e,t){return e.indexOf(t)===-1&&e.push(t),e},removeAt:function(e,t){return!!e.splice(t,1).length},remove:function(e,t){var n=e.indexOf(t);return~n?avalon.Array.removeAt(e,n):!1}}}),avalon.nextTick=window.setImmediate?setImmediate.bind(window):function(e){setTimeout(e,0)};var VMODELS=avalon.vmodels={};avalon.define=function(e,t){VMODELS[e]&&log("warning: "+e+" 已经存在于avalon.vmodels中");var n={$watch:noop};t(n);var r=modelFactory(n);return stopRepeatAssign=!0,t(r),stopRepeatAssign=!1,r.$id=e,VMODELS[e]=r};var skipProperties=String("$id,$watch,$unwatch,$fire,$events,$model,$skipArray,$accessors,"+subscribers).match(rword),isEqual=Object.is||function(e,t){return e===0&&t===0?1/e===1/t:e!==e?t!==t:e===t},descriptorFactory=W3C?function(e){var t={};for(var n in e)t[n]={get:e[n],set:e[n],enumerable:!0,configurable:!0};return t}:function(e){return e},withProxyPool={},withProxyCount=0,rebindings={},defineProperty=Object.defineProperty;try{defineProperty({},"_",{value:"x"});var defineProperties=Object.defineProperties}catch(e){"__defineGetter__"in avalon&&(defineProperty=function(e,t,n){return"value"in n&&(e[t]=n.value),"get"in n&&e.__defineGetter__(t,n.get),"set"in n&&e.__defineSetter__(t,n.set),e},defineProperties=function(e,t){for(var n in t)t.hasOwnProperty(n)&&defineProperty(e,n,t[n]);return e})}if(!defineProperties&&window.VBArray){window.execScript(["Function parseVB(code)","	ExecuteGlobal(code)","End Function","Dim VBClassBodies",'Set VBClassBodies=CreateObject("Scripting.Dictionary")',"Function findOrDefineVBClass(name,body)","	Dim found",'	found=""',"	For Each key in VBClassBodies","		If body=VBClassBodies.Item(key) Then","			found=key","			Exit For","		End If","	next",'	If found="" Then','		parseVB("Class " + name + body)',"		VBClassBodies.Add name, body","		found=name","	End If","	findOrDefineVBClass=found","End Function"].join("\n"),"VBScript");function VBMediator(e,t,n){var r=e[t];if(typeof r=="function"){if(arguments.length!==3)return r();r(n)}}defineProperties=function(e,t,n){var r="VBClass"+setTimeout("1"),i=[];i.push("\r\n	Private [__data__], [__proxy__]","	Public Default Function [__const__](d, p)","		Set [__data__] = d: set [__proxy__] = p","		Set [__const__] = Me","	End Function");for(e in n)i.push("	Public ["+e+"]");i.push("	Public [hasOwnProperty]");for(e in t)e in n||i.push("	Public Property Let ["+e+"](val"+expose+")",'		Call [__proxy__]([__data__], "'+e+'", val'+expose+")","	End Property","	Public Property Set ["+e+"](val"+expose+")",'		Call [__proxy__]([__data__], "'+e+'", val'+expose+")","	End Property","	Public Property Get ["+e+"]","	On Error Resume Next","		Set["+e+'] = [__proxy__]([__data__],"'+e+'")',"	If Err.Number <> 0 Then","		["+e+'] = [__proxy__]([__data__],"'+e+'")',"	End If","	On Error Goto 0","	End Property");i.push("End Class");var s=i.join("\r\n"),o=window.findOrDefineVBClass(r,s);o==r&&window.parseVB(["Function "+r+"Factory(a, b)","	Dim o","	Set o = (New "+r+")(a, b)","	Set "+r+"Factory = o","End Function"].join("\r\n"));var u=window[o+"Factory"](t,VBMediator);return u}}if(!"司徒正美".trim){var rtrim=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;String.prototype.trim=function(){return this.replace(rtrim,"")}}for(var i in{toString:1})DONT_ENUM=!1;Object.keys||(Object.keys=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);if(DONT_ENUM&&e)for(var r=0;n=DONT_ENUM[r++];)e.hasOwnProperty(n)&&t.push(n);return t}),Array.isArray||(Array.isArray=function(e){return e&&getType(e)==="array"}),noop.bind||(Function.prototype.bind=function(e){if(arguments.length<2&&e===void 0)return this;var t=this,n=arguments;return function(){var r=[],i;for(i=1;i<n.length;i++)r.push(n[i]);for(i=0;i<arguments.length;i++)r.push(arguments[i]);return t.apply(e,r)}}),rnative.test([].map)||avalon.mix(ap,{indexOf:function(e,t){var n=this.length,r=~~t;r<0&&(r+=n);for(;r<n;r++)if(this[r]===e)return r;return-1},lastIndexOf:function(e,t){var n=this.length,r=t==null?n-1:t;r<0&&(r=Math.max(0,n+r));for(;r>=0;r--)if(this[r]===e)return r;return-1},forEach:iterator("","_",""),filter:iterator("r=[],j=0,","if(_)r[j++]=this[i]","return r"),map:iterator("r=[],","r[i]=_","return r"),some:iterator("","if(_)return true","return false"),every:iterator("","if(!_)return false","return true")}),root.contains||(Node.prototype.contains=function(e){return!!(this.compareDocumentPosition(e)&16)}),DOC.contains||(DOC.contains=function(e){return fixContains(this,e)}),!root.outerHTML&&window.HTMLElement&&HTMLElement.prototype.__defineGetter__("outerHTML",function(){cinerator.textContent="",cinerator.appendChild(this);var e=this.innerHTML;return cinerator.textContent="",e});var openTag,closeTag,rexpr,rexprg,rbind,rregexp=/[-.*+?^${}()|[\]\/\\]/g,plugins={debug:function(e){window.console&&(console._log||(console._log=console.log),console.log=e?console._log:noop)},loader:function(e){window.define=e?innerRequire.define:otherDefine,window.require=e?innerRequire:otherRequire},interpolate:function(e){if(Array.isArray(e)&&e[0]&&e[1]&&e[0]!==e[1]){openTag=e[0],closeTag=e[1];var t=escapeRegExp(openTag),n=escapeRegExp(closeTag);rexpr=new RegExp(t+"(.*?)"+n),rexprg=new RegExp(t+"(.*?)"+n,"g"),rbind=new RegExp(t+".*?"+n+"|\\sms-")}}};kernel.plugins=plugins,kernel.plugins.interpolate(["{{","}}"]),kernel.paths={},kernel.shim={},kernel.maxRepeatSize=100,avalon.config=kernel;var rnospaces=/\S+/g;avalon.fn.mix({hasClass:function(e){var t=this[0]||{};return t.nodeType===1&&t.className?(" "+t.className+" ").indexOf(" "+e+" ")>-1:!1},addClass:function(e){var t=this[0]||{};if(e&&typeof e=="string"&&t.nodeType===1)if(!t.className)t.className=e;else{var n=t.className.match(rnospaces);e.replace(rnospaces,function(e){n.indexOf(e)===-1&&n.push(e)}),t.className=n.join(" ")}return this},removeClass:function(e){var t=this[0]||{};if(e&&typeof e>"o"&&t.nodeType===1&&t.className){var n=(e||"").match(rnospaces)||[],r=n.length,i=" "+t.className.match(rnospaces).join(" ")+" ";for(var s=0;s<r;s++)i=i.replace(" "+n[s]+" "," ");t.className=i.slice(1,i.length-1)}return this},toggleClass:function(e,t){var n=t,r,i=0,s=e.match(rnospaces)||[],o=typeof t=="boolean";while(r=s[i++])n=o?n:!this.hasClass(r),this[n?"addClass":"removeClass"](r);return this},attr:function(e,t){return arguments.length===2?(this[0].setAttribute(e,t),this):this[0].getAttribute(e)},data:function(e,t){e="data-"+hyphen(e||"");switch(arguments.length){case 2:return this.attr(e,t),this;case 1:var n=this.attr(e);return parseData(n);case 0:var r={};return ap.forEach.call(this[0].attributes,function(t){t&&(e=t.name,e.indexOf("data-")||(e=camelize(e.slice(5)),r[e]=parseData(t.value)))}),r}},removeData:function(e){return e="data-"+hyphen(e),this[0].removeAttribute(e),this},css:function(e,t){if(avalon.isPlainObject(e))for(var n in e)avalon.css(this,n,e[n]);else var r=avalon.css(this,e,t);return r!==void 0?r:this},position:function(){var e,t,n=this[0],r={top:0,left:0};if(!n)return;return this.css("position")==="fixed"?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),e[0].tagName!=="HTML"&&(r=e.offset()),r.top+=avalon.css(e[0],"borderTopWidth",!0),r.left+=avalon.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-avalon.css(n,"marginTop",!0),left:t.left-r.left-avalon.css(n,"marginLeft",!0)}},offsetParent:function(){var e=this[0].offsetParent||root;while(e&&e.tagName!=="HTML"&&avalon.css(e,"position")==="static")e=e.offsetParent;return avalon(e||root)},bind:function(e,t,n){if(this[0])return avalon.bind(this[0],e,t,n)},unbind:function(e,t,n){return this[0]&&avalon.unbind(this[0],e,t,n),this},val:function(e){var t=this[0];if(t&&t.nodeType===1){var n=arguments.length===0,r=n?":get":":set",i=valHooks[getValType(t)+r];if(i)var s=i(t,e);else{if(n)return(t.value||"").replace(/\r/g,"");t.value=e}}return n?s:this}});var rbrace=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,rvalidchars=/^[\],:{}\s]*$/,rvalidbraces=/(?:^|:|,)(?:\s*\[)+/g,rvalidescape=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,rvalidtokens=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,parseJSON=window.JSON?JSON.parse:function(e){if(typeof e=="string"){e=e.trim();if(e&&rvalidchars.test(e.replace(rvalidescape,"@").replace(rvalidtokens,"]").replace(rvalidbraces,"")))return(new Function("return "+e))();avalon.error("Invalid JSON: "+e)}};avalon.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){avalon.fn[e]=function(n){var r=this[0]||{},i=getWindow(r),s=e==="scrollTop";if(!arguments.length)return i?t in i?i[t]:root[e]:r[e];i?i.scrollTo(s?avalon(i).scrollLeft():n,s?n:avalon(i).scrollTop()):r[e]=n}});var cssHooks=avalon.cssHooks={},prefixes=["","-webkit-","-o-","-moz-","-ms-"],cssMap={"float":"cssFloat",background:"backgroundColor"};avalon.cssNumber=oneObject("columnCount,order,fillOpacity,fontWeight,lineHeight,opacity,orphans,widows,zIndex,zoom"),avalon.cssName=function(e,t,n){if(cssMap[e])return cssMap[e];t=t||root.style;for(var r=0,i=prefixes.length;r<i;r++){n=camelize(prefixes[r]+e);if(n in t)return cssMap[e]=n}return null},cssHooks["@:set"]=function(e,t,n){try{e.style[t]=n}catch(r){}};if(window.getComputedStyle)cssHooks["@:get"]=function(e,t){var n,r=getComputedStyle(e,null);return r&&(n=t==="filter"?r.getPropertyValue(t):r[t],n===""&&(n=e.style[t])),n},cssHooks["opacity:get"]=function(e){var t=cssHooks["@:get"](e,"opacity");return t===""?"1":t};else{var rnumnonpx=/^-?(?:\d*\.)?\d+(?!px)[^\d\s]+$/i,rposition=/^(top|right|bottom|left)$/,ie8=!!window.XDomainRequest,salpha="DXImageTransform.Microsoft.Alpha",border={thin:ie8?"1px":"2px",medium:ie8?"3px":"4px",thick:ie8?"5px":"6px"};cssHooks["@:get"]=function(e,t){var n=e.currentStyle,r=n[t];if(rnumnonpx.test(r)&&!rposition.test(r)){var i=e.style,s=i.left,o=e.runtimeStyle.left;e.runtimeStyle.left=n.left,i.left=t==="fontSize"?"1em":r||0,r=i.pixelLeft+"px",i.left=s,e.runtimeStyle.left=o}return r==="medium"&&(t=t.replace("Width","Style"),n[t]==="none"&&(r="0px")),r===""?"auto":border[r]||r},cssHooks["opacity:set"]=function(e,t,n){e.style.filter="alpha(opacity="+n*100+")",e.style.zoom=1},cssHooks["opacity:get"]=function(e){var t=e.filters.alpha||e.filters[salpha],n=t?t.opacity:100;return n/100+""}}"top,left".replace(rword,function(e){cssHooks[e+":get"]=function(t){var n=cssHooks["@:get"](t,e);return/px$/.test(n)?n:avalon(t).position()[e]+"px"}});var cssShow={position:"absolute",visibility:"hidden",display:"block"},rdisplayswap=/^(none|table(?!-c[ea]).+)/;"Width,Height".replace(rword,function(e){var t=e.toLowerCase(),n="client"+e,r="scroll"+e,i="offset"+e;cssHooks[t+":get"]=function(t,n,r){var i="content-box";typeof r=="string"&&(i=r),n=e==="Width"?["Left","Right"]:["Top","Bottom"];switch(i){case"content-box":return t["client"+e]-avalon.css(t,"padding"+n[0],!0)-avalon.css(t,"padding"+n[1],!0);case"padding-box":return t["client"+e];case"border-box":return t["offset"+e];case"margin-box":return t["offset"+e]+avalon.css(t,"margin"+n[0],!0)+avalon.css(t,"margin"+n[1],!0)}},cssHooks[t+"&get"]=function(e){var n=[];showHidden(e,n);var r=cssHooks[t+":get"](e);for(var i=0,s;s=n[i++];){e=s.node;for(var o in s)typeof s[o]=="string"&&(e.style[o]=s[o])}return r},avalon.fn[t]=function(s){var o=this[0];if(arguments.length===0){if(o.setTimeout)return o["inner"+e]||o.document.documentElement[n];if(o.nodeType===9){var u=o.documentElement;return Math.max(o.body[r],u[r],o.body[i],u[i],u[n])}return cssHooks[t+"&get"](o)}return this.css(t,s)},avalon.fn["inner"+e]=function(){return cssHooks[t+":get"](this[0],void 0,"padding-box")},avalon.fn["outer"+e]=function(e){return cssHooks[t+":get"](this[0],void 0,e===!0?"border-box":"margin-box")}}),avalon.fn.offset=function(){var e=this[0],t=e&&e.ownerDocument,n=t.defaultView||t.parentWindow,r=t.body,i=t.documentElement,s={left:0,top:0};if(!t||!avalon.contains(i,e))return s;typeof e.getBoundingClientRect!="undefined"&&(s=e.getBoundingClientRect());var o=i.clientTop||r.clientTop,u=i.clientLeft||r.clientLeft,a=Math.max(n.pageYOffset||0,i.scrollTop,r.scrollTop),f=Math.max(n.pageXOffset||0,i.scrollLeft,r.scrollLeft);return{top:s.top+a-o,left:s.left+f-u}};var roption=/^<option(?:\s+\w+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s+value[\s=]/i,valHooks={"option:get":function(e){return e.hasAttribute?e.hasAttribute("value")?e.value:e.text.trim():roption.test(e.outerHTML)?e.value:e.text},"select:get":function(e,t){var n,r=e.options,i=e.selectedIndex,s=valHooks["option:get"],o=e.type==="select-one"||i<0,u=o?null:[],a=o?i+1:r.length,f=i<0?a:o?i:0;for(;f<a;f++){n=r[f];if((n.selected||f===i)&&!n.disabled){t=s(n);if(o)return t;u.push(t)}}return u},"select:set":function(e,t,n){t=[].concat(t);var r=valHooks["option:get"];for(var i=0,s;s=e.options[i++];)if(s.selected=t.indexOf(r(s))>=0)n=!0;n||(e.selectedIndex=-1)}},rtagName=/<([\w:]+)/,rxhtml=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,rcreate=W3C?/[^\d\D]/:/(<(?:script|link|style|meta|noscript))/ig,scriptTypes=oneObject("text/javascript","text/ecmascript","application/ecmascript","application/javascript","text/vbscript"),rnest=/<(?:tb|td|tf|th|tr|col|opt|leg|cap|area)/,tagHooks={area:[1,"<map>"],param:[1,"<object>"],col:[2,"<table><tbody></tbody><colgroup>","</table>"],legend:[1,"<fieldset>"],option:[1,"<select multiple='multiple'>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>"],td:[3,"<table><tbody><tr>"],_default:W3C?[0,""]:[1,"X<div>"]};tagHooks.optgroup=tagHooks.option,tagHooks.tbody=tagHooks.tfoot=tagHooks.colgroup=tagHooks.caption=tagHooks.thead,tagHooks.th=tagHooks.td;var script=DOC.createElement("script");avalon.parseHTML=function(e){typeof e!="string"&&(e+=""),e=e.replace(rxhtml,"<$1></$2>").trim();var t=(rtagName.exec(e)||["",""])[1].toLowerCase(),n=tagHooks[t]||tagHooks._default,r=documentFragment.cloneNode(!1),i=cinerator,s,o;W3C||(e=e.replace(rcreate,"<br class=msNoScope>$1")),i.innerHTML=n[1]+e+(n[2]||"");var u=i.getElementsByTagName("script");if(u.length)for(var a=0,f;f=u[a++];)if(!f.type||scriptTypes[f.type])o=script.cloneNode(!1),ap.forEach.call(f.attributes,function(e){e&&e.specified&&(o[e.name]=e.value)}),o.text=f.text,f.parentNode.replaceChild(o,f);for(a=n[0];a--;i=i.lastChild);if(!W3C)for(u=i.getElementsByTagName("br"),a=0;f=u[a++];)f.className&&f.className==="msNoScope"&&f.parentNode.removeChild(f);while(s=i.firstChild)r.appendChild(s);return r},avalon.innerHTML=function(e,t){if(!W3C&&!rcreate.test(t)&&!rnest.test(t))try{e.innerHTML=t;return}catch(n){}var r=this.parseHTML(t);this.clearHTML(e).appendChild(r)},avalon.clearHTML=function(e){return expelFromSanctuary(e),e};var Observable={$watch:function(e,t){if(typeof t=="function"){var n=this.$events[e];n?n.push(t):this.$events[e]=[t]}else this.$events=this.$watch.backup;return this},$unwatch:function(e,t){var n=arguments.length;if(n===0)this.$watch.backup=this.$events,this.$events={};else if(n===1)this.$events[e]=[];else{var r=this.$events[e]||[],i=r.length;while(~--i<0)if(r[i]===t)return r.splice(i,1)}return this},$fire:function(e){var t=this.$events[e]||[],n=this.$events.$all||[],r=aslice.call(arguments,1);for(var i=0,s;s=t[i++];)s.apply(this,r);for(var i=0,s;s=n[i++];)s.apply(this,arguments)}};avalon.scan=function(e,t){e=e||root;var n=t?[].concat(t):[];scanTag(e,n)};var stopScan=oneObject("area,base,basefont,br,col,command,embed,hr,img,input,link,meta,param,source,track,wbr,noscript,script,style,textarea".toUpperCase()),interval=W3C?15:50,rmsAttr=/ms-(\w+)-?(.*)/,priorityMap={"if":10,repeat:90,widget:110,each:1400,"with":1500,duplex:2e3,on:3e3},ons=oneObject("animationend,blur,change,click,dblclick,focus,keydown,keypress,keyup,mousedown,mouseenter,mouseleave,mousemove,mouseout,mouseover,mouseup,scroll");if(!"1"[0])var cacheAttr=createCache(512),rattrs=/\s+(ms-[^=\s]+)(?:=("[^"]*"|'[^']*'|[^\s>]+))?/g,rquote=/^['"]/,rtag=/<\w+\b(?:(["'])[^"]*?(\1)|[^>])*>/i,ramp=/&amp;/g,getAttributes=function(e){if(e.outerHTML.slice(0,2)==="</")return[];var t=e.outerHTML.match(rtag)[0],n=[],r,i,s;if(cacheAttr[t])return cacheAttr[t];while(i=rattrs.exec(t)){s=i[2],s&&(s=(rquote.test(s)?s.slice(1,-1):s).replace(ramp,"&"));var o=i[1].toLowerCase();r=o.match(rmsAttr);var u={name:o,specified:!0,value:s||""};n.push(u)}return cacheAttr(t,n)};var rfilters=/\|\s*(\w+)\s*(\([^)]*\))?/g,r11a=/\|\|/g,r11b=/U2hvcnRDaXJjdWl0/g,rlt=/&lt;/g,rgt=/&gt;/g,keywords="break,case,catch,continue,debugger,default,delete,do,else,false,finally,for,function,if,in,instanceof,new,null,return,switch,this,throw,true,try,typeof,var,void,while,with,abstract,boolean,byte,char,class,const,double,enum,export,extends,final,float,goto,implements,import,int,interface,long,native,package,private,protected,public,short,static,super,synchronized,throws,transient,volatile,arguments,let,yield,undefined",rrexpstr=/\/\*[\w\W]*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|"(?:[^"\\]|\\[\w\W])*"|'(?:[^'\\]|\\[\w\W])*'|[\s\t\n]*\.[\s\t\n]*[$\w\.]+/g,rsplit=/[^\w$]+/g,rkeywords=new RegExp(["\\b"+keywords.replace(/,/g,"\\b|\\b")+"\\b"].join("|"),"g"),rnumber=/\b\d[^,]*/g,rcomma=/^,+|,+$/g,cacheVars=createCache(512),getVariables=function(e){e=","+e.trim();if(cacheVars[e])return cacheVars[e];var t=e.replace(rrexpstr,"").replace(rsplit,",").replace(rkeywords,"").replace(rnumber,"").replace(rcomma,"").split(/^$|,+/),n=[],r={};for(var i=0;i<t.length;++i){var s=t[i];r[s]||(r[s]=n.push(s))}return cacheVars(e,n)},cacheExpr=createCache(256),rduplex=/\w\[.*\]|\w\.\w/,rproxy=/(\$proxy\$[a-z]+)\d+$/;avalon.parseExprProxy=parseExprProxy;var cacheDisplay=oneObject("a,abbr,b,span,strong,em,font,i,kbd","inline");avalon.mix(cacheDisplay,oneObject("div,h1,h2,h3,h4,h5,h6,section,p","block")),avalon.parseDisplay=parseDisplay;var supportDisplay=function(e){return W3C?getComputedStyle(e,null).display==="table-cell":!0}(DOC.createElement("td")),cinerator=DOC.createElement("div");cinerator.setAttribute("className","t");var fuckIEAttr=cinerator.className==="t",propMap={"class":"className","for":"htmlFor"},rdash=/\(([^)]*)\)/,styleEl='<style id="avalonStyle">.avalonHide{ display: none!important }</style>';styleEl=avalon.parseHTML(styleEl).firstChild,head.insertBefore(styleEl,null);var rnoscripts=/<noscript.*?>(?:[\s\S]+?)<\/noscript>/img,rnoscriptText=/<noscript.*?>([\s\S]+?)<\/noscript>/im,getXHR=function(){return new(window.XMLHttpRequest||ActiveXObject)("Microsoft.XMLHTTP")},getBindingCallback=function(e,t,n){var r=e.getAttribute(t);if(r)for(var i=0,s;s=n[i++];)if(s.hasOwnProperty(r)&&typeof s[r]=="function")return s[r]},includeContents={},ifSanctuary=DOC.createElement("div");ifSanctuary.innerHTML="a";try{ifSanctuary.contains(ifSanctuary.firstChild),avalon.contains=function(e,t){return e.contains(t)}}catch(e){avalon.contains=fixContains}var bindingExecutors=avalon.bindingExecutors={attr:function(e,t,n){var r=n.type,i=n.param;if(r==="css")avalon(t).css(i,e);else if(r==="attr"){var s=e===!1||e===null||e===void 0;s&&t.removeAttribute(i),fuckIEAttr&&i in propMap?(i=propMap[i],s?t.removeAttribute(i):t[i]=e):s||t.setAttribute(i,e)}else if(r==="include"&&e){var o=n.vmodels,u=getBindingCallback(t,"data-include-rendered",o),a=getBindingCallback(t,"data-include-loaded",o);function f(e){a&&(e=a.apply(t,[e].concat(o))),avalon.innerHTML(t,e),scanNodes(t,o),u&&checkScan(t,function(){u.call(t)})}if(n.param==="src")if(includeContents[e])f(includeContents[e]);else{var l=getXHR();l.onreadystatechange=function(){if(l.readyState===4){var t=l.status;(t>=200&&t<300||t===304||t===1223)&&f(includeContents[e]=l.responseText)}},l.open("GET",e,!0),"withCredentials"in l&&(l.withCredentials=!0),l.setRequestHeader("X-Requested-With","XMLHttpRequest"),l.send(null)}else{var c=e&&e.nodeType==1?e:DOC.getElementById(e);if(c){if(c.tagName==="NOSCRIPT"&&!c.innerHTML&&!c.fixIE78){var l=getXHR();l.open("GET",location,!1),l.send(null);var h=DOC.getElementsByTagName("noscript"),p=(l.responseText||"").match(rnoscripts)||[],d=p.length;for(var v=0;v<d;v++){var m=h[v];m&&(m.style.display="none",m.fixIE78=(p[v].match(rnoscriptText)||["","&nbsp;"])[1])}}avalon.nextTick(function(){f(c.fixIE78||c.innerText||c.innerHTML)})}}}else!root.hasAttribute&&typeof e=="string"&&(r==="src"||r==="href")&&(e=e.replace(/&amp;/g,"&")),t[r]=e},"class":function(e,t,n){var r=avalon(t),i=n.type;if(i==="class"&&n.param)r.toggleClass(n.param,!!e);else{var s=n._evaluator?!!n._evaluator.apply(t,n._args):!0,o=n._class||e;switch(i){case"class":s&&n.oldClass&&r.removeClass(n.oldClass),r.toggleClass(o,s),n.oldClass=o;break;case"hover":case"active":if(!n.init){if(i==="hover")var u="mouseenter",a="mouseleave";else t.tabIndex=t.tabIndex||-1,u="mousedown",a="mouseup",r.bind("mouseleave",function(){s&&r.removeClass(o)});r.bind(u,function(){s&&r.addClass(o)}),r.bind(a,function(){s&&r.removeClass(o)}),n.init=1}}}},data:function(e,t,n){var r="data-"+n.param;e&&typeof e=="object"?t[r]=e:t.setAttribute(r,String(e))},checked:function(e,t,n){var r=n.type;if(r==="enabled")t.disabled=!e;else{var i=r==="readonly"?"readOnly":r;t[i]=!!e}},each:function(e,t,n){if(e){var r=this,i=r.group,s=r.startRepeat&&r.startRepeat.parentNode;s&&(r.parent=s);var o=r.parent,u=r.proxies,a=documentFragment;if(e==="del"||e==="move")var f=getLocatedNode(o,r,t);switch(e){case"add":var l=n,c=r.getter().length-1,h=[],p={};a=a.cloneNode(!1);for(var d=0,v=l.length;d<v;d++){var m=d+t,g=getEachProxy(m,l[d],r,c);u.splice(m,0,g),p=shimController(r,a,h,g)}f=getLocatedNode(o,r,t),p.node=f,p.parent=o,o.insertBefore(a,f);for(var d=0,y;y=h[d++];)scanTag(y,r.vmodels);h=null;break;case"del":var b=u.splice(t,n);for(var d=0,g;g=b[d++];)recycleEachProxy(g);expelFromSanctuary(removeView(f,i,n));break;case"index":var c=u.length-1;for(;n=u[t];t++)n.$index=t,n.$first=t===0,n.$last=t===c;break;case"clear":if(r.startRepeat)for(;;){var y=r.startRepeat.nextSibling;if(!y||y===r.endRepeat)break;a.appendChild(y)}else a=o;expelFromSanctuary(a),u.length=0;break;case"move":var w=u.splice(t,1)[0];w&&(u.splice(n,0,w),a=removeView(f,i),f=getLocatedNode(o,r,n),o.insertBefore(a,f));break;case"set":var g=u[t];g&&(g[g.$itemName]=n);break;case"append":var E=n,S=getBindingCallback(r.callbackElement,"data-with-sorted",r.vmodels),x=[],h=[],p={};for(var T in t)t.hasOwnProperty(T)&&T!=="hasOwnProperty"&&x.push(T);if(S){var N=S.call(o,x);N&&Array.isArray(N)&&N.length&&(x=N)}for(var d=0,T;T=x[d++];)T!=="hasOwnProperty"&&(p=shimController(r,a,h,E[T]));p.parent=o,p.node=r.endRepeat||null,o.insertBefore(a,p.node);for(var d=0,n;n=h[d++];)scanTag(n,r.vmodels);h=null}iteratorCallback.call(r,arguments)}},html:function(e,t,n){e=e==null?"":e,t||(t=n.element=n.node.parentNode);if(n.replaceNodes){var r,i;if(e.nodeType===11)r=e;else if(e.nodeType===1||e.item){i=e.nodeType===1?e.childNodes:e.item?e:[],r=documentFragment.cloneNode(!0);while(i[0])r.appendChild(i[0])}else r=avalon.parseHTML(e);var s=avalon.slice(r.childNodes);t.insertBefore(r,n.replaceNodes[0]||null);for(var o=0,u;u=n.replaceNodes[o++];)t.removeChild(u);n.replaceNodes=s}else avalon.innerHTML(t,e);avalon.nextTick(function(){scanNodes(t,n.vmodels)})},"if":function(e,t,n){var r=n.placehoder;if(e){if(!n.msInDocument){n.msInDocument=!0;try{r.parentNode.replaceChild(t,r)}catch(i){log("debug: ms-if  "+i.message)}}rbind.test(t.outerHTML)&&scanAttr(t,n.vmodels)}else n.msInDocument&&(n.msInDocument=!1,t.parentNode.replaceChild(r,t),r.elem=t,ifSanctuary.appendChild(t))},on:function(e,t,n){var r=n.evaluator,i=n.args,s=n.vmodels;n.hasArgs?e=function(e){return r.apply(this,i.concat(e))}:e=function(e){return r.apply(0,i).call(this,e)},t.$vmodel=s[0],t.$vmodels=s,n.param=n.param.replace(/-\d+$/,"");if(typeof n.specialBind=="function")n.specialBind(t,e);else var o=avalon.bind(t,n.param,e);n.rollback=function(){typeof n.specialUnbind=="function"?n.specialUnbind():avalon.unbind(t,n.param,o)},n.evaluator=n.handler=noop},text:function(e,t,n){e=e==null?"":e,n.nodeType===3?n.node.data=e:(t||(t=n.element=n.node.parentNode),"textContent"in t?t.textContent=e:t.innerText=e)},visible:function(e,t,n){t.style.display=e?n.display:"none"},widget:noop},rwhitespace=/^\s+$/,bindingHandlers=avalon.bindingHandlers={attr:function(e,t){var n=e.value.trim(),r=!0;n.indexOf(openTag)>-1&&n.indexOf(closeTag)>2&&(r=!1,rexpr.test(n)&&RegExp.rightContext===""&&RegExp.leftContext===""&&(r=!0,n=RegExp.$1)),e.handlerName="attr",parseExprProxy(n,t,e,r?null:scanExpr(e.value))},checked:function(e,t){e.handlerName="checked",parseExprProxy(e.value,t,e)},"class":function(e,t){var n=e.param,r=e.value,i;e.handlerName="class";if(!n||isFinite(n)){e.param="";var s=r.replace(rexprg,function(e){return Math.pow(10,e.length-1)}),o=s.indexOf(":");if(o===-1)var u=r;else{u=r.slice(0,o),i=r.slice(o+1),parseExpr(i,t,e);if(!e.evaluator)return log("debug: ms-class '"+(i||"").trim()+"' 不存在于VM中"),!1;e._evaluator=e.evaluator,e._args=e.args}var a=rexpr.test(u);a||(e._class=u),parseExprProxy("",t,e,a?scanExpr(u):null)}else e.type==="class"&&parseExprProxy(r,t,e)},duplex:function(e,t){var n=e.element,r=n.tagName;if(typeof duplexBinding[r]=="function"){e.changed=getBindingCallback(n,"data-duplex-changed",t)||noop,parseExpr(e.value,t,e,"duplex");if(e.evaluator&&e.args){var i=n.form;i&&i.msValidate&&i.msValidate(n),e.bound=function(t,r){n.addEventListener?n.addEventListener(t,r,!1):n.attachEvent("on"+t,r);var i=e.rollback;e.rollback=function(){avalon.unbind(n,t,r),i&&i()}},duplexBinding[n.tagName](n,e.evaluator.apply(null,e.args),e)}}},repeat:function(e,t){var n=e.type,r;parseExpr(e.value,t,e),n!=="repeat"&&log("warning:建议使用ms-repeat代替ms-each, ms-with, ms-repeat只占用一个标签并且性能更好");var i=e.callbackElement=e.parent=e.element;e.getter=function(){return this.evaluator.apply(0,this.args||[])},e.proxies=[];var s=!0;try{r=e.getter();var o=getType(r);if(o=="object"||o=="array")s=!1}catch(u){}var a=documentFragment.cloneNode(!1);if(n==="repeat"){var f=DOC.createComment("ms-repeat-start"),l=DOC.createComment("ms-repeat-end");e.element=e.parent=i.parentNode,e.startRepeat=f,e.endRepeat=l,i.removeAttribute(e.name),e.parent.replaceChild(l,i),e.parent.insertBefore(f,l),a.appendChild(i)}else{var c;while(c=i.firstChild)c.nodeType===3&&rwhitespace.test(c.data)?i.removeChild(c):a.appendChild(c)}e.template=a,e.rollback=function(){bindingExecutors.each.call(e,"clear");var t=e.endRepeat,n=e.parent;n.insertBefore(e.template,t||null),t&&(n.removeChild(t),n.removeChild(e.startRepeat),e.element=e.callbackElement)};var h=e.value.split(".")||[];if(h.length>1){h.pop();var p=h[0];for(var d=0,v;v=t[d++];)if(v&&v.hasOwnProperty(p)&&v[p][subscribers]){v[p][subscribers].push(e);break}}if(s)return;e.callbackName="data-"+n+"-rendered",e.handler=bindingExecutors.each,e.$outer={};var m="$key",g="$val";Array.isArray(r)&&(m="$first",g="$last");for(var d=0,y;y=t[d++];)if(y.hasOwnProperty(m)&&y.hasOwnProperty(g)){e.$outer=y;break}c=a.firstChild,e.fastRepeat=!!c&&c.nodeType===1&&a.lastChild===c&&!c.attributes["ms-controller"]&&!c.attributes["ms-important"],r[subscribers]&&r[subscribers].push(e);if(!Array.isArray(r)&&n!=="each"){var b=withProxyPool[r.$id];if(!b){withProxyCount++,b=withProxyPool[r.$id]={};for(var w in r)r.hasOwnProperty(w)&&w!=="hasOwnProperty"&&function(e,t){b[e]=createWithProxy(e,t,{}),b[e].$watch("$val",function(t){r[e]=t})}(w,r[w])}e.handler("append",r,b)}else e.handler("add",0,r)},html:function(e,t){parseExprProxy(e.value,t,e)},"if":function(e,t){var n=e.element;n.removeAttribute(e.name),e.placehoder||(e.msInDocument=e.placehoder=DOC.createComment("ms-if")),e.vmodels=t,parseExprProxy(e.value,t,e)},on:function(e,t){var n=e.value,r="$event";if(n.indexOf("(")>0&&n.indexOf(")")>-1){var i=(n.match(rdash)||["",""])[1].trim();if(i===""||i==="$event")r=void 0,n=n.replace(rdash,"")}else r=void 0;e.hasArgs=r,parseExprProxy(n,t,e,r)},visible:function(e,t){var n=e.element;if(!supportDisplay&&!root.contains(n))var r=parseDisplay(n.tagName);r=r||avalon(n).css("display"),e.display=r==="none"?parseDisplay(n.tagName):r,parseExprProxy(e.value,t,e)},widget:function(e,t){var n=e.value.match(rword),r=e.element,i=n[0];if(n[1]==="$"||!n[1])n[1]=i+setTimeout("1");e.value=n.join(",");var s=avalon.ui[i];if(typeof s=="function"){t=r.vmodels||t;var o=n[2]||i;for(var u=0,a;a=t[u++];)if(a.hasOwnProperty(o)&&typeof a[o]=="object"){var f=a;break}if(f){var l=f[o];l=l.$model||l;var c=l[i+"Id"];typeof c=="string"&&(n[1]=c)}var h=avalon.getWidgetData(r,n[0]);e[i+"Id"]=n[1],e[i+"Options"]=avalon.mix({},s.defaults,l||{},h),r.removeAttribute("ms-widget");var p=s(r,e,t)||{};e.evaluator=noop,r.msData["ms-widget-id"]=p.$id||"",p.hasOwnProperty("$init")&&p.$init();if(p.hasOwnProperty("$remove")){var d=function(){p.$remove(),r.msData={},delete VMODELS[p.$id]};supportMutationEvents?r.addEventListener("DOMNodeRemoved",function(e){e.target===this&&!this.msRetain&&d()}):(r.offTree=d,launchImpl(r))}}else t.length&&(r.vmodels=t)}},supportMutationEvents=W3C&&DOC.implementation.hasFeature("MutationEvents","2.0");"hover,active".replace(rword,function(e){bindingHandlers[e]=bindingHandlers["class"]}),"with,each".replace(rword,function(e){bindingHandlers[e]=bindingHandlers.repeat}),"disabled,enabled,readonly,selected".replace(rword,function(e){bindingHandlers[e]=bindingHandlers.checked}),bindingHandlers.data=bindingHandlers.text=bindingHandlers.html,"title,alt,src,value,css,include,href".replace(rword,function(e){bindingHandlers[e]=bindingHandlers.attr});var duplexBinding=bindingHandlers.duplex;duplexBinding.INPUT=function(e,t,n){function f(){a=!0}function l(){a=!1}var r=n.param,i=e.type,s=n.changed,o=n.bound,u=avalon(e),a=!1,c=function(){if(a)return;var n=e.oldValue=e.value;u.data("duplex-observe")!==!1&&(t(n),s.call(e,n))};n.handler=function(){var n=t();n!==e.value&&(e.value=n+"")},i==="checkbox"&&r==="radio"&&(i="radio");if(i==="radio")n.handler=function(){e.defaultChecked=e.checked=/bool|text/.test(r)?t()+""===e.value:!!t()},c=function(){if(u.data("duplex-observe")!==!1){var n=e.value;r==="text"?t(n):r==="bool"?(n=n==="true",t(n)):(n=!e.defaultChecked,t(n),e.checked=n),s.call(e,n)}},o(r?"click":"mousedown",c);else if(i==="checkbox")c=function(){if(u.data("duplex-observe")!==!1){var n=e.checked?"ensure":"remove",r=t();Array.isArray(r)?avalon.Array[n](r,e.value):avalon.error("ms-duplex位于checkbox时要求对应一个数组"),s.call(e,r)}},n.handler=function(){var n=[].concat(t());e.checked=n.indexOf(e.value)>=0},o(W3C?"change":"click",c);else{var h=e.attributes["data-duplex-event"]||e.attributes["data-event"]||{};h=h.value;if(h==="change")o("change",c);else if(W3C&&DOC.documentMode!==9)o("input",c),o("compositionstart",f),o("compositionend",l);else{var p=["keyup","paste","cut","change"];function d(e){var t=e.keyCode;if(t===91||15<t&&t<19||37<=t&&t<=40)return;e.type==="cut"?avalon.nextTick(c):c()}p.forEach(function(t){e.attachEvent("on"+t,d)}),n.rollback=function(){p.forEach(function(t){e.detachEvent("on"+t,d)})}}}e.oldValue=e.value,e.onTree=onTree,launch(e),registerSubscriber(n)};var TimerID,ribbon=[],launch=noop;if(Object.getOwnPropertyNames)try{var inputProto=HTMLInputElement.prototype,oldSetter;function newSetter(e){oldSetter.call(this,e);if(e!==this.oldValue){var t=DOC.createEvent("Event");t.initEvent("input",!0,!0),this.dispatchEvent(t)}}oldSetter=Object.getOwnPropertyDescriptor(inputProto,"value").set,Object.defineProperty(inputProto,"value",{set:newSetter})}catch(e){launch=launchImpl}duplexBinding.SELECT=function(e,t,n){function i(){if(r.data("duplex-observe")!==!1){var i=r.val();i+""!==e.oldValue&&(t(i),e.oldValue=i+""),n.changed.call(e,i)}}var r=avalon(e);n.handler=function(){var n=t();n=n&&n.$model||n,n=Array.isArray(n)?n.map(String):n+"",n+""!==e.oldValue&&(r.val(n),e.oldValue=n+"")},n.bound("change",i);var s=NaN,o=setInterval(function(){var t=e.innerHTML;t===s?(clearInterval(o),registerSubscriber(n)):s=t},20)},duplexBinding.TEXTAREA=duplexBinding.INPUT;var eventName={AnimationEvent:"animationend",WebKitAnimationEvent:"webkitAnimationEnd"};for(var name in eventName)if(/object|function/.test(typeof window[name])){eventMap.animationend=eventName[name];break}var oldBind=avalon.bind;if(!("onmouseenter"in root)){var events={mouseenter:"mouseover",mouseleave:"mouseout"};avalon.bind=function(e,t,n){return events[t]?oldBind(e,events[t],function(r){var i=r.relatedTarget;if(!i||i!==e&&!(e.compareDocumentPosition(i)&16))return delete r.type,r.type=t,n.call(e,r)}):oldBind(e,t,n)}}"oninput"in document.createElement("input")||(avalon.bind=function(e,t,n){return t==="input"?oldBind(e,"propertychange",function(t){if(t.propertyName==="value")return t.type="input",n.call(e,t)}):oldBind(e,t,n)});var _splice=ap.splice,CollectionPrototype={_splice:_splice,_add:function(e,t){var n=this.length;t=typeof t=="number"?t:n;var r=[];for(var i=0,s=e.length;i<s;i++)r[i]=convert(e[i]);_splice.apply(this,[t,0].concat(r)),notifySubscribers(this,"add",t,r);if(!this._stopFireLength)return this._.length=this.length},_del:function(e,t){var n=this._splice(e,t);return n.length&&(notifySubscribers(this,"del",e,t),this._stopFireLength||(this._.length=this.length)),n},push:function(){ap.push.apply(this.$model,arguments);var e=this._add(arguments);return notifySubscribers(this,"index",e>2?e-2:0),e},unshift:function(){ap.unshift.apply(this.$model,arguments);var e=this._add(arguments,0);return notifySubscribers(this,"index",arguments.length),e},shift:function(){var e=this.$model.shift();return this._del(0,1),notifySubscribers(this,"index",0),e},pop:function(){var e=this.$model.pop();return this._del(this.length-1,1),e},splice:function(e,t){e=resetNumber(e,this.length);var n=_splice.apply(this.$model,arguments),r=[];return this._stopFireLength=!0,n.length&&(r=this._del(e,n.length),arguments.length<=2&&notifySubscribers(this,"index",0)),arguments.length>2&&this._add(aslice.call(arguments,2),e),this._stopFireLength=!1,this._.length=this.length,r},contains:function(e){return this.indexOf(e)!==-1},size:function(){return this._.length},remove:function(e){return this.removeAt(this.indexOf(e))},removeAt:function(e){return e>=0?this.splice(e,1):[]},clear:function(){return this.$model.length=this.length=this._.length=0,notifySubscribers(this,"clear",0),this},removeAll:function(e){if(Array.isArray(e))e.forEach(function(e){this.remove(e)},this);else if(typeof e=="function")for(var t=this.length-1;t>=0;t--){var n=this[t];e(n,t)&&this.splice(t,1)}else this.clear()},ensure:function(e){return this.contains(e)||this.push(e),this},set:function(e,t){if(e>=0){var n=getType(t);t&&t.$model&&(t=t.$model);var r=this[e];if(n==="object")for(var i in t)r.hasOwnProperty(i)&&(r[i]=t[i]);else n==="array"?r.clear().push.apply(r,t):r!==t&&(this[e]=t,this.$model[e]=t,notifySubscribers(this,"set",e,t))}return this}};"sort,reverse".replace(rword,function(e){CollectionPrototype[e]=function(){var t=this.$model,n=t.slice(0),r=!1;ap[e].apply(t,arguments);for(var i=0,s=n.length;i<s;i++){var o=t[i],u=n[i];if(!isEqual(o,u)){r=!0;var a=getIndex(o,n,i),f=this._splice(a,1)[0],l=n.splice(a,1)[0];this._splice(i,0,f),n.splice(i,0,l),notifySubscribers(this,"move",a,i)}}return n=void 0,r&&notifySubscribers(this,"index",0),this}});var queryComments=DOC.createTreeWalker?function(e){var t=DOC.createTreeWalker(e,NodeFilter.SHOW_COMMENT,null,null),n,r=[];while(n=t.nextNode())r.push(n);return r}:function(e){return e.getElementsByTagName("!")},watchEachOne=oneObject("$index,$first,$last"),eachPool=[],filters=avalon.filters={uppercase:function(e){return e.toUpperCase()},lowercase:function(e){return e.toLowerCase()},truncate:function(e,t,n){return t=t||30,n=n===void 0?"...":n,e.length>t?e.slice(0,t-n.length)+n:String(e)},camelize:camelize,escape:function(e){return String(e).replace(/&(?!\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},currency:function(e,t){return t=t||"￥",t+avalon.filters.number(e)},number:function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,s=isFinite(+t)?Math.abs(t):0,o=r||",",u=n||".",a="",f=function(e,t){var n=Math.pow(10,t);return""+Math.round(e*n)/n};return a=(s?f(i,s):""+Math.round(i)).split("."),a[0].length>3&&(a[0]=a[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(a[1]||"").length<s&&(a[1]=a[1]||"",a[1]+=(new Array(s-a[1].length+1)).join("0")),a.join(u)}};new function(){function e(e){return parseInt(e,10)}function t(e,t,n){var r="";e<0&&(r="-",e=-e),e=""+e;while(e.length<t)e="0"+e;return n&&(e=e.substr(e.length-t)),r+e}function n(e,n,r,i){return function(s){var o=s["get"+e]();if(r>0||o>-r)o+=r;return o===0&&r===-12&&(o=12),t(o,n,i)}}function r(e,t){return function(n,r){var i=n["get"+e](),s=(t?"SHORT"+e:e).toUpperCase();return r[s][i]}}function i(e){var n=-1*e.getTimezoneOffset(),r=n>=0?"+":"";return r+=t(Math[n>0?"floor":"ceil"](n/60),2)+t(Math.abs(n%60),2),r}function s(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function l(t){var n;if(n=t.match(f)){var r=new Date(0),i=0,s=0,o=n[8]?r.setUTCFullYear:r.setFullYear,u=n[8]?r.setUTCHours:r.setHours;n[9]&&(i=e(n[9]+n[10]),s=e(n[9]+n[11])),o.call(r,e(n[1]),e(n[2])-1,e(n[3]));var a=e(n[4]||0)-i,l=e(n[5]||0)-s,c=e(n[6]||0),h=Math.round(parseFloat("0."+(n[7]||0))*1e3);return u.call(r,a,l,c,h),r}return t}var o={yyyy:n("FullYear",4),yy:n("FullYear",2,0,!0),y:n("FullYear",1),MMMM:r("Month"),MMM:r("Month",!0),MM:n("Month",2,1),M:n("Month",1,1),dd:n("Date",2),d:n("Date",1),HH:n("Hours",2),H:n("Hours",1),hh:n("Hours",2,-12),h:n("Hours",1,-12),mm:n("Minutes",2),m:n("Minutes",1),ss:n("Seconds",2),s:n("Seconds",1),sss:n("Milliseconds",3),EEEE:r("Day"),EEE:r("Day",!0),a:s,Z:i},u=/((?:[^yMdHhmsaZE']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z))(.*)/,a=/^\d+$/,f=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,c=/^(\d+)-(\d+)-(\d{4})$/,h=/^(\d+)\s+(\d+),(\d{4})$/;filters.date=function(t,n){var r=filters.date.locate,i="",s=[],f,p;n=n||"mediumDate",n=r[n]||n;if(typeof t=="string"){if(a.test(t))t=e(t);else{var d=t.trim();if(d.match(c)||d.match(h))t=RegExp.$3+"/"+RegExp.$1+"/"+RegExp.$2;t=l(t)}t=new Date(t)}typeof t=="number"&&(t=new Date(t));if(getType(t)!=="date")return;while(n)p=u.exec(n),p?(s=s.concat(p.slice(1)),n=s.pop()):(s.push(n),n=null);return s.forEach(function(e){f=o[e],i+=f?f(t,r):e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),i};var p={AMPMS:{0:"上午",1:"下午"},DAY:{0:"星期日",1:"星期一",2:"星期二",3:"星期三",4:"星期四",5:"星期五",6:"星期六"},MONTH:{0:"1月",1:"2月",2:"3月",3:"4月",4:"5月",5:"6月",6:"7月",7:"8月",8:"9月",9:"10月",10:"11月",11:"12月"},SHORTDAY:{0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},fullDate:"y年M月d日EEEE",longDate:"y年M月d日",medium:"yyyy-M-d ah:mm:ss",mediumDate:"yyyy-M-d",mediumTime:"ah:mm:ss","short":"yy-M-d ah:mm",shortDate:"yy-M-d",shortTime:"ah:mm"};p.SHORTMONTH=p.MONTH,filters.date.locate=p};var innerRequire,modules=avalon.modules={"ready!":{exports:avalon},avalon:{exports:avalon,state:2}};new function(){function r(e){return(e||"").replace(/[?#].*/,"")}function o(e){var t;try{a.b.c()}catch(n){t=n.stack,!t&&window.opera&&(t=(String(n).match(/of linked script \S+/g)||[]).join(" "))}if(t)return t=t.split(/[@ ]/g).pop(),t=t[0]==="("?t.slice(1,-1):t.replace(/\s/,""),t.replace(/(:\d+)?:\d+$/i,"");var r=(e?DOC:head).getElementsByTagName("script");for(var i=r.length,s;s=r[--i];)if((e||s.className===subscribers)&&s.readyState==="interactive")return s.className=s.src}function u(e,t){for(var n in e)if(e[n]==="司徒正美"&&modules[n].state!==2&&(n===t||u(modules[n].deps,t)))return!0}function f(){e:for(var t=e.length,n;n=e[--t];){var r=modules[n],i=r.deps;for(var s in i)if(ohasOwn.call(i,s)&&modules[s].state!==2)continue e;r.state!==2&&(e.splice(t,1),d(r.id,r.args,r.factory),f())}}function l(e,t,n){var i=r(e.src);e.onload=e.onreadystatechange=e.onerror=null;if(!(t||n&&!modules[i].state))return!0;setTimeout(function(){head.removeChild(e),e=null}),log("debug: 加载 "+i+" 失败"+t+" "+!modules[i].state)}function h(e,t,i,s){if(e==="ready!"||modules[e]&&modules[e].state===2)return e;var o;e=e.replace(/^\w+!/,function(e){return o=e.slice(0,-1),""}),o=o||"js",o=plugins[o]||noop,typeof kernel.shim[e]=="object"&&(s=kernel.shim[e]),kernel.paths[e]&&(e=kernel.paths[e]);if(/^(\w+)(\d)?:.*/.test(e))i=e;else{t=t.substr(0,t.lastIndexOf("/"));var u=e.charAt(0);if(u!=="."&&u!=="/")i=n+e;else if(e.slice(0,2)==="./")i=t+e.slice(1);else if(e.slice(0,2)===".."){i=t+"/"+e;while(c.test(i))i=i.replace(c,"")}else u==="/"?i=t+e:avalon.error("不符合模块标识规则: "+e)}e=r(i);var a=o.ext;return a&&e.slice(0-a.length)!==a&&(i+=a),kernel.nocache&&(i+=(i.indexOf("?")===-1?"?":"&")+(new Date-0)),o(i,s)}function p(e,n,r){var i=DOC.createElement("script");i.className=subscribers,i[W3C?"onload":"onreadystatechange"]=function(){if(W3C||/loaded|complete/i.test(i.readyState)){var s=t.pop();s&&s.delay(n),r&&r(),l(i,!1,!W3C)&&log("debug: 已成功加载 "+e)}},i.onerror=function(){l(i,!0)},i.src=e,head.insertBefore(i,head.firstChild),log("debug: 正准备加载 "+e)}function d(e,t,n){for(var r=0,i=[],s;s=t[r++];)i.push(modules[s].exports);var o=Object(modules[e]),u=n.apply(window,i);return o.state=2,u!==void 0&&(modules[e].exports=u),u}var e=[],t=[],n;plugins.js=function(e,t){var n=r(e);return modules[n]||(modules[n]={id:n,exports:{}},t?innerRequire(t.deps||"",function(){p(e,n,function(){modules[n].state=2,t.exports&&(modules[n].exports=typeof t.exports=="function"?t.exports():window[t.exports]),innerRequire.checkDeps()})}):p(e,n)),n},plugins.css=function(e){var t=e.replace(/(#.+|\W)/g,"");if(!DOC.getElementById(t)){var n=DOC.createElement("link");n.rel="stylesheet",n.href=e,n.id=t,head.insertBefore(n,head.firstChild)}},plugins.css.ext=".css",plugins.js.ext=".js",plugins.text=function(e){var t=getXHR(),n=e.replace(/[?#].*/,"");return modules[n]={},t.onreadystatechange=function(){if(t.readyState===4){var r=t.status;r>399&&r<600?avalon.error(e+" 对应资源不存在或没有开启 CORS"):(modules[n].state=2,modules[n].exports=t.responseText,innerRequire.checkDeps())}},t.open("GET",e,!0),"withCredentials"in t&&(t.withCredentials=!0),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.send(),n};var i=o(!0);i||(i=avalon.slice(DOC.scripts).pop().src);var s=r(i);n=kernel.base=s.slice(0,s.lastIndexOf("/")+1);var c=/\/\w+\/\.\./;innerRequire=avalon.require=function(t,r,i){var s={},o=[],u=0,a=0,l=i||"callback"+setTimeout("1");i=i||n,String(t).replace(rword,function(e){var t=h(e,i);t&&(u++,modules[t]&&modules[t].state===2&&a++,s[t]||(o.push(t),s[t]="司徒正美"))}),modules[l]={id:l,factory:r,deps:s,args:o,state:1},u===a?d(l,o,r):e.unshift(l),f()},innerRequire.define=function(e,n,i){var s=aslice.call(arguments);if(typeof e=="string")var a=s.shift();typeof s[0]=="function"&&s.unshift([]);var f=modules[a]&&modules[a].state>=1?a:r(o());!modules[f]&&a&&(modules[f]={id:f,factory:i,state:1}),i=s[1],i.id=a,i.delay=function(e){s.push(e);var t=!0;try{t=u(modules[e].deps,e)}catch(n){}t&&avalon.error(e+"模块与之前的模块存在循环依赖，请不要直接用script标签引入"+e+"模块"),delete i.delay,innerRequire.apply(null,s)},f?i.delay(f,s):t.push(i)},innerRequire.define.amd=modules,innerRequire.config=kernel,innerRequire.checkDeps=f};var ready=W3C?"DOMContentLoaded":"readystatechange";DOC.readyState==="complete"?setTimeout(fireReady):W3C?(DOC.addEventListener(ready,fireReady),window.addEventListener("load",fireReady)):(DOC.attachEvent("onreadystatechange",function(){DOC.readyState==="complete"&&fireReady()}),window.attachEvent("onload",fireReady),root.doScroll&&doScrollCheck()),avalon.ready=function(e){innerRequire("ready!",e)},avalon.config({loader:!1}),avalon.ready(function(){if(window.VBArray&&!window.setImmediate){var e=[];function t(){var t=e.shift();t&&(t(),e.length&&avalon.nextTick())}avalon.nextTick=function(n){typeof n=="function"&&e.push(n);var r=DOC.createElement("script");r.onreadystatechange=function(){t(),r.onreadystatechange=null,head.removeChild(r),r=null},head.appendChild(r)}}avalon.scan(DOC.body)})})(document),define("avalon",function(e){return function(){var t,n;return t||e.avalon}}(this)),define("util",["require","exports","module"],function(e,t,n){function r(e,t){var n=$("#shareTempa");n.length||($("body").append('<a href="javascript:void(0)" id="shareTempa"></a>'),n=$("#shareTempa")),n.attr({href:e,target:t?t:"_blank"});if(navigator.appVersion.match(/\bMSIE\b/))n[0].click();else{var r=document.createEvent("HTMLEvents");r.initEvent("click",!0,!0),n[0].dispatchEvent(r)}}function i(e){var t=new RegExp("(^|\\?|&)"+e+"=([^&^#]*)(\\s|&|$|#)","i");return t.test(location.href)?unescape(RegExp.$2.replace(/\+/g," ")):""}function s(e){return e.replace(/\?/g,"**").replace(/\&/g,"*").replace(/\=/g,"$")}function o(e,t){var n=[],r;if(t.length)for(r in e)t.indexOf(r)===-1&&n.push(r);else for(r in e)n.push(r);return n}function u(e){return e.replace(/[^\x00-\xff]/g,"**").length}function a(){return $("#path").val()}function f(e,t,n){t=t?t:"-";var r=new Date;r.setTime(e);var i=r.getFullYear(),s=r.getMonth()+1,o=s.toString();o.length<2&&(o="0"+o);var u=r.getDate(),a=u.toString();a.length<2&&(a="0"+a);if(n){var f=r.getHours(),l=r.getMinutes();return f=f<10?"0"+f:f,l=l<10?"0"+l:l,i+t+o+t+a+" "+f+":"+l}return i+t+o+t+a}function l(e){var t=new Date;t.setTime(e);var n=t.getHours(),r=t.getMinutes();return n=n<10?"0"+n:n,r=r<10?"0"+r:r,n+":"+r}function c(e,t,n){if(!e||!t)return;var r,i,s=1,o=n.width,u=n.height;i=e/o,r=t/u;if(e===0&&t===0)s=1;else if(e===0)r<1&&(Ratio=r);else if(t===0)i<1&&(Ratio=i);else if(i<1||r<1)s=i<=r?i:r;return s<1&&(o*=s,u*=s),{height:u,width:o}}var h=function(){var e=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],t=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1),n=function(e){var t=new Array;while(e>0){var n=e%2;e=Math.floor(e/2),t.push(n)}return t.reverse(),t},r=function(e){var t=0,n=0;for(var r=e.length-1;r>=0;--r){var i=e[r];i==1&&(t+=Math.pow(2,n)),++n}return t},i=function(e,t){var n=8-(e+1)+(e-1)*6,r=t.length,i=n-r;while(--i>=0)t.unshift(0);var s=[],o=e;while(--o>=0)s.push(1);s.push(0);var u=0,a=8-(e+1);for(;u<a;++u)s.push(t[u]);for(var f=0;f<e-1;++f){s.push(1),s.push(0);var l=6;while(--l>=0)s.push(t[u++])}return s},s={encode:function(t){var s=[],o=[];for(var u=0,a=t.length;u<a;++u){var f=t.charCodeAt(u),l=n(f);if(f<128){var c=8-l.length;while(--c>=0)l.unshift(0);o=o.concat(l)}else f>=128&&f<=2047?o=o.concat(i(2,l)):f>=2048&&f<=65535?o=o.concat(i(3,l)):f>=65536&&f<=2097151?o=o.concat(i(4,l)):f>=2097152&&f<=67108863?o=o.concat(i(5,l)):f>=4e6&&f<=2147483647&&(o=o.concat(i(6,l)))}var h=0;for(var u=0,a=o.length;u<a;u+=6){var p=u+6-a;p==2?h=2:p==4&&(h=4);var d=h;while(--d>=0)o.push(0);s.push(r(o.slice(u,u+6)))}var v="";for(var u=0,a=s.length;u<a;++u)v+=e[s[u]];for(var u=0,a=h/2;u<a;++u)v+="=";return v},decode:function(e){var n,r,i,s,o,u,a;u=e.length,o=0,a="";while(o<u){do n=t[e.charCodeAt(o++)&255];while(o<u&&n==-1);if(n==-1)break;do r=t[e.charCodeAt(o++)&255];while(o<u&&r==-1);if(r==-1)break;a+=String.fromCharCode(n<<2|(r&48)>>4);do{i=e.charCodeAt(o++)&255;if(i==61)return a;i=t[i]}while(o<u&&i==-1);if(i==-1)break;a+=String.fromCharCode((r&15)<<4|(i&60)>>2);do{s=e.charCodeAt(o++)&255;if(s==61)return a;s=t[s]}while(o<u&&s==-1);if(s==-1)break;a+=String.fromCharCode((i&3)<<6|s)}return a}};return s}();return{imitateLink:r,getQueryStringRegExp:i,replaceUrl:s,getSkipArray:o,strLength:u,getPath:a,secondsToDate:f,secondsToTime:l,getSize:c,base64:h}}),define("collect",["util"],function(e){var t=function(){var e=window.skinSwitch||{_notSkin_:!0};return{execute:function(t){if(!e._notSkin_)try{return e[t](arguments[1],arguments[2],arguments[3])}catch(n){alert(n)}else console.log("不存在"+t)}}}(),n=function(){var n=new Image,r,i,s,o,u;return{init:function(){r=t.execute("getClientInfo","version"),i=t.execute("getClientInfo","guid"),s=t.execute("getClientInfo","disnum"),o=$("#skinVersion").val(),u="dm=/wps/client/app&action=onlineskin&p0="+i+"&p1="+s+"&p2="+r+"&p3="+o+"&p4="+$("#app").val()},send:function(){var t="";for(var r=0,i=arguments.length;r<i;r++)t+="&p"+(5+r)+"="+arguments[r];t+="&pnum="+(i+5),n.src="http://info.wps.cn/wpsv6internet/infos.ads?v=D1S1E1&d="+e.base64.encode(u+t)+"&_t="+ +(new Date)}}}();return n}),function(e,t){typeof module=="object"&&typeof module.exports=="object"?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}(typeof window!="undefined"?window:this,function(e,t){function g(e){var t=e.length,n=h.type(e);return n==="function"||h.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||t===0||typeof t=="number"&&t>0&&t-1 in e}function S(e,t,n){if(h.isFunction(t))return h.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return h.grep(e,function(e){return e===t!==n});if(typeof t=="string"){if(E.test(t))return h.filter(t,e,n);t=h.filter(t,e)}return h.grep(e,function(e){return h.inArray(e,t)>=0!==n})}function A(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function _(e){var t=M[e]={};return h.each(e.match(O)||[],function(e,n){t[n]=!0}),t}function P(){T.addEventListener?(T.removeEventListener("DOMContentLoaded",H,!1),e.removeEventListener("load",H,!1)):(T.detachEvent("onreadystatechange",H),e.detachEvent("onload",H))}function H(){if(T.addEventListener||event.type==="load"||T.readyState==="complete")P(),h.ready()}function q(e,t,n){if(n===undefined&&e.nodeType===1){var r="data-"+t.replace(I,"-$1").toLowerCase();n=e.getAttribute(r);if(typeof n=="string"){try{n=n==="true"?!0:n==="false"?!1:n==="null"?null:+n+""===n?+n:F.test(n)?h.parseJSON(n):n}catch(i){}h.data(e,t,n)}else n=undefined}return n}function R(e){var t;for(t in e){if(t==="data"&&h.isEmptyObject(e[t]))continue;if(t!=="toJSON")return!1}return!0}function U(e,t,r,i){if(!h.acceptData(e))return;var s,o,u=h.expando,a=e.nodeType,f=a?h.cache:e,l=a?e[u]:e[u]&&u;if((!l||!f[l]||!i&&!f[l].data)&&r===undefined&&typeof t=="string")return;l||(a?l=e[u]=n.pop()||h.guid++:l=u),f[l]||(f[l]=a?{}:{toJSON:h.noop});if(typeof t=="object"||typeof t=="function")i?f[l]=h.extend(f[l],t):f[l].data=h.extend(f[l].data,t);return o=f[l],i||(o.data||(o.data={}),o=o.data),r!==undefined&&(o[h.camelCase(t)]=r),typeof t=="string"?(s=o[t],s==null&&(s=o[h.camelCase(t)])):s=o,s}function z(e,t,n){if(!h.acceptData(e))return;var r,i,s=e.nodeType,o=s?h.cache:e,u=s?e[h.expando]:h.expando;if(!o[u])return;if(t){r=n?o[u]:o[u].data;if(r){h.isArray(t)?t=t.concat(h.map(t,h.camelCase)):t in r?t=[t]:(t=h.camelCase(t),t in r?t=[t]:t=t.split(" ")),i=t.length;while(i--)delete r[t[i]];if(n?!R(r):!h.isEmptyObject(r))return}}if(!n){delete o[u].data;if(!R(o[u]))return}s?h.cleanData([e],!0):l.deleteExpando||o!=o.window?delete o[u]:o[u]=null}function et(){return!0}function tt(){return!1}function nt(){try{return T.activeElement}catch(e){}}function rt(e){var t=it.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function wt(e,t){var n,r,i=0,s=typeof e.getElementsByTagName!==B?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==B?e.querySelectorAll(t||"*"):undefined;if(!s)for(s=[],n=e.childNodes||e;(r=n[i])!=null;i++)!t||h.nodeName(r,t)?s.push(r):h.merge(s,wt(r,t));return t===undefined||t&&h.nodeName(e,t)?h.merge([e],s):s}function Et(e){J.test(e.type)&&(e.defaultChecked=e.checked)}function St(e,t){return h.nodeName(e,"table")&&h.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function xt(e){return e.type=(h.find.attr(e,"type")!==null)+"/"+e.type,e}function Tt(e){var t=vt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Nt(e,t){var n,r=0;for(;(n=e[r])!=null;r++)h._data(n,"globalEval",!t||h._data(t[r],"globalEval"))}function Ct(e,t){if(t.nodeType!==1||!h.hasData(e))return;var n,r,i,s=h._data(e),o=h._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u)for(r=0,i=u[n].length;r<i;r++)h.event.add(t,n,u[n][r])}o.data&&(o.data=h.extend({},o.data))}function kt(e,t){var n,r,i;if(t.nodeType!==1)return;n=t.nodeName.toLowerCase();if(!l.noCloneEvent&&t[h.expando]){i=h._data(t);for(r in i.events)h.removeEvent(t,r,i.handle);t.removeAttribute(h.expando)}if(n==="script"&&t.text!==e.text)xt(t).text=e.text,Tt(t);else if(n==="object")t.parentNode&&(t.outerHTML=e.outerHTML),l.html5Clone&&e.innerHTML&&!h.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML);else if(n==="input"&&J.test(e.type))t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value);else if(n==="option")t.defaultSelected=t.selected=e.defaultSelected;else if(n==="input"||n==="textarea")t.defaultValue=e.defaultValue}function Ot(t,n){var r,i=h(n.createElement(t)).appendTo(n.body),s=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:h.css(i[0],"display");return i.detach(),s}function Mt(e){var t=T,n=At[e];if(!n){n=Ot(e,t);if(n==="none"||!n)Lt=(Lt||h("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(Lt[0].contentWindow||Lt[0].contentDocument).document,t.write(),t.close(),n=Ot(e,t),Lt.detach();At[e]=n}return n}function jt(e,t){return{get:function(){var n=e();if(n==null)return;if(n){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function Vt(e,t){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=Xt.length;while(i--){t=Xt[i]+n;if(t in e)return t}return r}function $t(e,t){var n,r,i,s=[],o=0,u=e.length;for(;o<u;o++){r=e[o];if(!r.style)continue;s[o]=h._data(r,"olddisplay"),n=r.style.display,t?(!s[o]&&n==="none"&&(r.style.display=""),r.style.display===""&&V(r)&&(s[o]=h._data(r,"olddisplay",Mt(r.nodeName)))):(i=V(r),(n&&n!=="none"||!i)&&h._data(r,"olddisplay",i?n:h.css(r,"display")))}for(o=0;o<u;o++){r=e[o];if(!r.style)continue;if(!t||r.style.display==="none"||r.style.display==="")r.style.display=t?s[o]||"":"none"}return e}function Jt(e,t,n){var r=Rt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Kt(e,t,n,r,i){var s=n===(r?"border":"content")?4:t==="width"?1:0,o=0;for(;s<4;s+=2)n==="margin"&&(o+=h.css(e,n+X[s],!0,i)),r?(n==="content"&&(o-=h.css(e,"padding"+X[s],!0,i)),n!=="margin"&&(o-=h.css(e,"border"+X[s]+"Width",!0,i))):(o+=h.css(e,"padding"+X[s],!0,i),n!=="padding"&&(o+=h.css(e,"border"+X[s]+"Width",!0,i)));return o}function Qt(e,t,n){var r=!0,i=t==="width"?e.offsetWidth:e.offsetHeight,s=Pt(e),o=l.boxSizing&&h.css(e,"boxSizing",!1,s)==="border-box";if(i<=0||i==null){i=Ht(e,t,s);if(i<0||i==null)i=e.style[t];if(Dt.test(i))return i;r=o&&(l.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Kt(e,t,n||(o?"border":"content"),r,s)+"px"}function Gt(e,t,n,r,i){return new Gt.prototype.init(e,t,n,r,i)}function on(){return setTimeout(function(){Yt=undefined}),Yt=h.now()}function un(e,t){var n,r={height:e},i=0;t=t?1:0;for(;i<4;i+=2-t)n=X[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function an(e,t,n){var r,i=(sn[t]||[]).concat(sn["*"]),s=0,o=i.length;for(;s<o;s++)if(r=i[s].call(n,t,e))return r}function fn(e,t,n){var r,i,s,o,u,a,f,c,p=this,d={},v=e.style,m=e.nodeType&&V(e),g=h._data(e,"fxshow");n.queue||(u=h._queueHooks(e,"fx"),u.unqueued==null&&(u.unqueued=0,a=u.empty.fire,u.empty.fire=function(){u.unqueued||a()}),u.unqueued++,p.always(function(){p.always(function(){u.unqueued--,h.queue(e,"fx").length||u.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(n.overflow=[v.overflow,v.overflowX,v.overflowY],f=h.css(e,"display"),c=f==="none"?h._data(e,"olddisplay")||Mt(e.nodeName):f,c==="inline"&&h.css(e,"float")==="none"&&(!l.inlineBlockNeedsLayout||Mt(e.nodeName)==="inline"?v.display="inline-block":v.zoom=1)),n.overflow&&(v.overflow="hidden",l.shrinkWrapBlocks()||p.always(function(){v.overflow=n.overflow[0],v.overflowX=n.overflow[1],v.overflowY=n.overflow[2]}));for(r in t){i=t[r];if(en.exec(i)){delete t[r],s=s||i==="toggle";if(i===(m?"hide":"show")){if(i!=="show"||!g||g[r]===undefined)continue;m=!0}d[r]=g&&g[r]||h.style(e,r)}else f=undefined}if(!h.isEmptyObject(d)){g?"hidden"in g&&(m=g.hidden):g=h._data(e,"fxshow",{}),s&&(g.hidden=!m),m?h(e).show():p.done(function(){h(e).hide()}),p.done(function(){var t;h._removeData(e,"fxshow");for(t in d)h.style(e,t,d[t])});for(r in d)o=an(m?g[r]:0,r,p),r in g||(g[r]=o.start,m&&(o.end=o.start,o.start=r==="width"||r==="height"?1:0))}else(f==="none"?Mt(e.nodeName):f)==="inline"&&(v.display=f)}function ln(e,t){var n,r,i,s,o;for(n in e){r=h.camelCase(n),i=t[r],s=e[n],h.isArray(s)&&(i=s[1],s=e[n]=s[0]),n!==r&&(e[r]=s,delete e[n]),o=h.cssHooks[r];if(o&&"expand"in o){s=o.expand(s),delete e[r];for(n in s)n in e||(e[n]=s[n],t[n]=i)}else t[r]=i}}function cn(e,t,n){var r,i,s=0,o=rn.length,u=h.Deferred().always(function(){delete a.elem}),a=function(){if(i)return!1;var t=Yt||on(),n=Math.max(0,f.startTime+f.duration-t),r=n/f.duration||0,s=1-r,o=0,a=f.tweens.length;for(;o<a;o++)f.tweens[o].run(s);return u.notifyWith(e,[f,s,n]),s<1&&a?n:(u.resolveWith(e,[f]),!1)},f=u.promise({elem:e,props:h.extend({},t),opts:h.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Yt||on(),duration:n.duration,tweens:[],createTween:function(t,n){var r=h.Tween(e,f.opts,t,n,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(r),r},stop:function(t){var n=0,r=t?f.tweens.length:0;if(i)return this;i=!0;for(;n<r;n++)f.tweens[n].run(1);return t?u.resolveWith(e,[f,t]):u.rejectWith(e,[f,t]),this}}),l=f.props;ln(l,f.opts.specialEasing);for(;s<o;s++){r=rn[s].call(f,e,l,f.opts);if(r)return r}return h.map(l,an,f),h.isFunction(f.opts.start)&&f.opts.start.call(e,f),h.fx.timer(h.extend(a,{elem:e,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}function Fn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i=0,s=t.toLowerCase().match(O)||[];if(h.isFunction(n))while(r=s[i++])r.charAt(0)==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function In(e,t,n,r){function o(u){var a;return i[u]=!0,h.each(e[u]||[],function(e,u){var f=u(t,n,r);if(typeof f=="string"&&!s&&!i[f])return t.dataTypes.unshift(f),o(f),!1;if(s)return!(a=f)}),a}var i={},s=e===Hn;return o(t.dataTypes[0])||!i["*"]&&o("*")}function qn(e,t){var n,r,i=h.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&h.extend(!0,e,n),e}function Rn(e,t,n){var r,i,s,o,u=e.contents,a=e.dataTypes;while(a[0]==="*")a.shift(),i===undefined&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in u)if(u[o]&&u[o].test(i)){a.unshift(o);break}if(a[0]in n)s=a[0];else{for(o in n){if(!a[0]||e.converters[o+" "+a[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==a[0]&&a.unshift(s),n[s]}function Un(e,t,n,r){var i,s,o,u,a,f={},l=e.dataTypes.slice();if(l[1])for(o in e.converters)f[o.toLowerCase()]=e.converters[o];s=l.shift();while(s){e.responseFields[s]&&(n[e.responseFields[s]]=t),!a&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),a=s,s=l.shift();if(s)if(s==="*")s=a;else if(a!=="*"&&a!==s){o=f[a+" "+s]||f["* "+s];if(!o)for(i in f){u=i.split(" ");if(u[1]===s){o=f[a+" "+u[0]]||f["* "+u[0]];if(o){o===!0?o=f[i]:f[i]!==!0&&(s=u[0],l.unshift(u[1]));break}}}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(c){return{state:"parsererror",error:o?c:"No conversion from "+a+" to "+s}}}}return{state:"success",data:t}}function Jn(e,t,n,r){var i;if(h.isArray(t))h.each(t,function(t,i){n||Wn.test(e)?r(e,i):Jn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)});else if(!n&&h.type(t)==="object")for(i in t)Jn(e+"["+i+"]",t[i],n,r);else r(e,t)}function Yn(){try{return new e.XMLHttpRequest}catch(t){}}function Zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function ir(e){return h.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n=[],r=n.slice,i=n.concat,s=n.push,o=n.indexOf,u={},a=u.toString,f=u.hasOwnProperty,l={},c="1.11.1",h=function(e,t){return new h.fn.init(e,t)},p=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,d=/^-ms-/,v=/-([\da-z])/gi,m=function(e,t){return t.toUpperCase()};h.fn=h.prototype={jquery:c,constructor:h,selector:"",length:0,toArray:function(){return r.call(this)},get:function(e){return e!=null?e<0?this[e+this.length]:this[e]:r.call(this)},pushStack:function(e){var t=h.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return h.each(this,e,t)},map:function(e){return this.pushStack(h.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:s,sort:n.sort,splice:n.splice},h.extend=h.fn.extend=function(){var e,t,n,r,i,s,o=arguments[0]||{},u=1,a=arguments.length,f=!1;typeof o=="boolean"&&(f=o,o=arguments[u]||{},u++),typeof o!="object"&&!h.isFunction(o)&&(o={}),u===a&&(o=this,u--);for(;u<a;u++)if((i=arguments[u])!=null)for(r in i){e=o[r],n=i[r];if(o===n)continue;f&&n&&(h.isPlainObject(n)||(t=h.isArray(n)))?(t?(t=!1,s=e&&h.isArray(e)?e:[]):s=e&&h.isPlainObject(e)?e:{},o[r]=h.extend(f,s,n)):n!==undefined&&(o[r]=n)}return o},h.extend({expando:"jQuery"+(c+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return h.type(e)==="function"},isArray:Array.isArray||function(e){return h.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!h.isArray(e)&&e-parseFloat(e)>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||h.type(e)!=="object"||e.nodeType||h.isWindow(e))return!1;try{if(e.constructor&&!f.call(e,"constructor")&&!f.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(l.ownLast)for(t in e)return f.call(e,t);for(t in e);return t===undefined||f.call(e,t)},type:function(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?u[a.call(e)]||"object":typeof e},globalEval:function(t){t&&h.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(d,"ms-").replace(v,m)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r,i=0,s=e.length,o=g(e);if(n)if(o)for(;i<s;i++){r=t.apply(e[i],n);if(r===!1)break}else for(i in e){r=t.apply(e[i],n);if(r===!1)break}else if(o)for(;i<s;i++){r=t.call(e[i],i,e[i]);if(r===!1)break}else for(i in e){r=t.call(e[i],i,e[i]);if(r===!1)break}return e},trim:function(e){return e==null?"":(e+"").replace(p,"")},makeArray:function(e,t){var n=t||[];return e!=null&&(g(Object(e))?h.merge(n,typeof e=="string"?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(o)return o.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){var n=+t.length,r=0,i=e.length;while(r<n)e[i++]=t[r++];if(n!==n)while(t[r]!==undefined)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){var r,i=[],s=0,o=e.length,u=!n;for(;s<o;s++)r=!t(e[s],s),r!==u&&i.push(e[s]);return i},map:function(e,t,n){var r,s=0,o=e.length,u=g(e),a=[];if(u)for(;s<o;s++)r=t(e[s],s,n),r!=null&&a.push(r);else for(s in e)r=t(e[s],s,n),r!=null&&a.push(r);return i.apply([],a)},guid:1,proxy:function(e,t){var n,i,s;return typeof t=="string"&&(s=e[t],t=e,e=s),h.isFunction(e)?(n=r.call(arguments,2),i=function(){return e.apply(t||this,n.concat(r.call(arguments)))},i.guid=e.guid=e.guid||h.guid++,i):undefined},now:function(){return+(new Date)},support:l}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){u["[object "+t+"]"]=t.toLowerCase()});var y=function(e){function st(e,t,r,i){var s,u,f,l,c,d,g,y,S,x;(t?t.ownerDocument||t:E)!==p&&h(t),t=t||p,r=r||[];if(!e||typeof e!="string")return r;if((l=t.nodeType)!==1&&l!==9)return[];if(v&&!i){if(s=Z.exec(e))if(f=s[1]){if(l===9){u=t.getElementById(f);if(!u||!u.parentNode)return r;if(u.id===f)return r.push(u),r}else if(t.ownerDocument&&(u=t.ownerDocument.getElementById(f))&&b(t,u)&&u.id===f)return r.push(u),r}else{if(s[2])return P.apply(r,t.getElementsByTagName(e)),r;if((f=s[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(r,t.getElementsByClassName(f)),r}if(n.qsa&&(!m||!m.test(e))){y=g=w,S=t,x=l===9&&e;if(l===1&&t.nodeName.toLowerCase()!=="object"){d=o(e),(g=t.getAttribute("id"))?y=g.replace(tt,"\\$&"):t.setAttribute("id",y),y="[id='"+y+"'] ",c=d.length;while(c--)d[c]=y+mt(d[c]);S=et.test(e)&&dt(t.parentNode)||t,x=d.join(",")}if(x)try{return P.apply(r,S.querySelectorAll(x)),r}catch(T){}finally{g||t.removeAttribute("id")}}}return a(e.replace(z,"$1"),t,r,i)}function ot(){function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function ut(e){return e[w]=!0,e}function at(e){var t=p.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ft(e,t){var n=e.split("|"),i=e.length;while(i--)r.attrHandle[n[i]]=t}function lt(e,t){var n=t&&e,r=n&&e.nodeType===1&&t.nodeType===1&&(~t.sourceIndex||A)-(~e.sourceIndex||A);if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ct(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function ht(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function pt(e){return ut(function(t){return t=+t,ut(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--)n[i=s[o]]&&(n[i]=!(r[i]=n[i]))})})}function dt(e){return e&&typeof e.getElementsByTagName!==L&&e}function vt(){}function mt(e){var t=0,n=e.length,r="";for(;t<n;t++)r+=e[t].value;return r}function gt(e,t,n){var r=t.dir,i=n&&r==="parentNode",s=x++;return t.first?function(t,n,s){while(t=t[r])if(t.nodeType===1||i)return e(t,n,s)}:function(t,n,o){var u,a,f=[S,s];if(o){while(t=t[r])if(t.nodeType===1||i)if(e(t,n,o))return!0}else while(t=t[r])if(t.nodeType===1||i){a=t[w]||(t[w]={});if((u=a[r])&&u[0]===S&&u[1]===s)return f[2]=u[2];a[r]=f;if(f[2]=e(t,n,o))return!0}}}function yt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i](t,n,r))return!1;return!0}:e[0]}function bt(e,t,n){var r=0,i=t.length;for(;r<i;r++)st(e,t[r],n);return n}function wt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u<a;u++)if(s=e[u])if(!n||n(s,r,i))o.push(s),f&&t.push(u);return o}function Et(e,t,n,r,i,s){return r&&!r[w]&&(r=Et(r)),i&&!i[w]&&(i=Et(i,s)),ut(function(s,o,u,a){var f,l,c,h=[],p=[],d=o.length,v=s||bt(t||"*",u.nodeType?[u]:u,[]),m=e&&(s||!t)?wt(v,h,e,u,a):v,g=n?i||(s?e:d||r)?[]:o:m;n&&n(m,g,u,a);if(r){f=wt(g,p),r(f,[],u,a),l=f.length;while(l--)if(c=f[l])g[p[l]]=!(m[p[l]]=c)}if(s){if(i||e){if(i){f=[],l=g.length;while(l--)(c=g[l])&&f.push(m[l]=c);i(null,g=[],f,a)}l=g.length;while(l--)(c=g[l])&&(f=i?B.call(s,c):h[l])>-1&&(s[f]=!(o[f]=c))}}else g=wt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):P.apply(o,g)})}function St(e){var t,n,i,s=e.length,o=r.relative[e[0].type],u=o||r.relative[" "],a=o?1:0,l=gt(function(e){return e===t},u,!0),c=gt(function(e){return B.call(t,e)>-1},u,!0),h=[function(e,n,r){return!o&&(r||n!==f)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];for(;a<s;a++)if(n=r.relative[e[a].type])h=[gt(yt(h),n)];else{n=r.filter[e[a].type].apply(null,e[a].matches);if(n[w]){i=++a;for(;i<s;i++)if(r.relative[e[i].type])break;return Et(a>1&&yt(h),a>1&&mt(e.slice(0,a-1).concat({value:e[a-2].type===" "?"*":""})).replace(z,"$1"),n,a<i&&St(e.slice(a,i)),i<s&&St(e=e.slice(i)),i<s&&mt(e))}h.push(n)}return yt(h)}function xt(e,t){var n=t.length>0,i=e.length>0,s=function(s,o,u,a,l){var c,h,d,v=0,m="0",g=s&&[],y=[],b=f,w=s||i&&r.find.TAG("*",l),E=S+=b==null?1:Math.random()||.1,x=w.length;l&&(f=o!==p&&o);for(;m!==x&&(c=w[m])!=null;m++){if(i&&c){h=0;while(d=e[h++])if(d(c,o,u)){a.push(c);break}l&&(S=E)}n&&((c=!d&&c)&&v--,s&&g.push(c))}v+=m;if(n&&m!==v){h=0;while(d=t[h++])d(g,y,o,u);if(s){if(v>0)while(m--)!g[m]&&!y[m]&&(y[m]=_.call(a));y=wt(y)}P.apply(a,y),l&&!s&&y.length>0&&v+t.length>1&&st.uniqueSort(a)}return l&&(S=E,f=b),g};return n?ut(s):s}var t,n,r,i,s,o,u,a,f,l,c,h,p,d,v,m,g,y,b,w="sizzle"+ -(new Date),E=e.document,S=0,x=0,T=ot(),N=ot(),C=ot(),k=function(e,t){return e===t&&(c=!0),0},L=typeof undefined,A=1<<31,O={}.hasOwnProperty,M=[],_=M.pop,D=M.push,P=M.push,H=M.slice,B=M.indexOf||function(e){var t=0,n=this.length;for(;t<n;t++)if(this[t]===e)return t;return-1},j="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",I="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",q=I.replace("w","w#"),R="\\["+F+"*("+I+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+F+"*\\]",U=":("+I+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|"+".*"+")\\)|)",z=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),W=new RegExp("^"+F+"*,"+F+"*"),X=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),V=new RegExp("="+F+"*([^\\]'\"]*?)"+F+"*\\]","g"),$=new RegExp(U),J=new RegExp("^"+q+"$"),K={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I.replace("w","w*")+")"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+U),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,tt=/'|\\/g,nt=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),rt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)};try{P.apply(M=H.call(E.childNodes),E.childNodes),M[E.childNodes.length].nodeType}catch(it){P={apply:M.length?function(e,t){D.apply(e,H.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}n=st.support={},s=st.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},h=st.setDocument=function(e){var t,i=e?e.ownerDocument||e:E,o=i.defaultView;if(i===p||i.nodeType!==9||!i.documentElement)return p;p=i,d=i.documentElement,v=!s(i),o&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",function(){h()},!1):o.attachEvent&&o.attachEvent("onunload",function(){h()})),n.attributes=at(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=at(function(e){return e.appendChild(i.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Y.test(i.getElementsByClassName)&&at(function(e){return e.innerHTML="<div class='a'></div><div class='a i'></div>",e.firstChild.className="i",e.getElementsByClassName("i").length===2}),n.getById=at(function(e){return d.appendChild(e).id=w,!i.getElementsByName||!i.getElementsByName(w).length}),n.getById?(r.find.ID=function(e,t){if(typeof t.getElementById!==L&&v){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(nt,rt);return function(e){var n=typeof e.getAttributeNode!==L&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){if(typeof t.getElementsByTagName!==L)return t.getElementsByTagName(e)}:function(e,t){var n,r=[],i=0,s=t.getElementsByTagName(e);if(e==="*"){while(n=s[i++])n.nodeType===1&&r.push(n);return r}return s},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(typeof t.getElementsByClassName!==L&&v)return t.getElementsByClassName(e)},g=[],m=[];if(n.qsa=Y.test(i.querySelectorAll))at(function(e){e.innerHTML="<select msallowclip=''><option selected=''></option></select>",e.querySelectorAll("[msallowclip^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+j+")"),e.querySelectorAll(":checked").length||m.push(":checked")}),at(function(e){var t=i.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")});return(n.matchesSelector=Y.test(y=d.matches||d.webkitMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector||d.msMatchesSelector))&&at(function(e){n.disconnectedMatch=y.call(e,"div"),y.call(e,"[s!='']:x"),g.push("!=",U)}),m=m.length&&new RegExp(m.join("|")),g=g.length&&new RegExp(g.join("|")),t=Y.test(d.compareDocumentPosition),b=t||Y.test(d.contains)?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!r&&r.nodeType===1&&!!(n.contains?n.contains(r):e.compareDocumentPosition&&e.compareDocumentPosition(r)&16)}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,r&1||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===i||e.ownerDocument===E&&b(E,e)?-1:t===i||t.ownerDocument===E&&b(E,t)?1:l?B.call(l,e)-B.call(l,t):0:r&4?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,r=0,s=e.parentNode,o=t.parentNode,u=[e],a=[t];if(!s||!o)return e===i?-1:t===i?1:s?-1:o?1:l?B.call(l,e)-B.call(l,t):0;if(s===o)return lt(e,t);n=e;while(n=n.parentNode)u.unshift(n);n=t;while(n=n.parentNode)a.unshift(n);while(u[r]===a[r])r++;return r?lt(u[r],a[r]):u[r]===E?-1:a[r]===E?1:0},i},st.matches=function(e,t){return st(e,null,null,t)},st.matchesSelector=function(e,t){(e.ownerDocument||e)!==p&&h(e),t=t.replace(V,"='$1']");if(n.matchesSelector&&v&&(!g||!g.test(t))&&(!m||!m.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&e.document.nodeType!==11)return r}catch(i){}return st(t,p,null,[e]).length>0},st.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),b(e,t)},st.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var i=r.attrHandle[t.toLowerCase()],s=i&&O.call(r.attrHandle,t.toLowerCase())?i(e,t,!v):undefined;return s!==undefined?s:n.attributes||!v?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},st.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,r=[],i=0,s=0;c=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(k);if(c){while(t=e[s++])t===e[s]&&(i=r.push(s));while(i--)e.splice(r[i],1)}return l=null,e},i=st.getText=function(e){var t,n="",r=0,s=e.nodeType;if(!s)while(t=e[r++])n+=i(t);else if(s===1||s===9||s===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(s===3||s===4)return e.nodeValue;return n},r=st.selectors={cacheLength:50,createPseudo:ut,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(nt,rt),e[3]=(e[3]||e[4]||e[5]||"").replace(nt,rt),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&st.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=o(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(nt,rt).toLowerCase();return e==="*"?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&T(e,function(e){return t.test(typeof e.className=="string"&&e.className||typeof e.getAttribute!==L&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=st.attr(r,e);return i==null?t==="!=":t?(i+="",t==="="?i===n:t==="!="?i!==n:t==="^="?n&&i.indexOf(n)===0:t==="*="?n&&i.indexOf(n)>-1:t==="$="?n&&i.slice(-n.length)===n:t==="~="?(" "+i+" ").indexOf(n)>-1:t==="|="?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,i){var s=e.slice(0,3)!=="nth",o=e.slice(-4)!=="last",u=t==="of-type";return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,a){var f,l,c,h,p,d,v=s!==o?"nextSibling":"previousSibling",m=t.parentNode,g=u&&t.nodeName.toLowerCase(),y=!a&&!u;if(m){if(s){while(v){c=t;while(c=c[v])if(u?c.nodeName.toLowerCase()===g:c.nodeType===1)return!1;d=v=e==="only"&&!d&&"nextSibling"}return!0}d=[o?m.firstChild:m.lastChild];if(o&&y){l=m[w]||(m[w]={}),f=l[e]||[],p=f[0]===S&&f[1],h=f[0]===S&&f[2],c=p&&m.childNodes[p];while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if(c.nodeType===1&&++h&&c===t){l[e]=[S,p,h];break}}else if(y&&(f=(t[w]||(t[w]={}))[e])&&f[0]===S)h=f[1];else while(c=++p&&c&&c[v]||(h=p=0)||d.pop())if((u?c.nodeName.toLowerCase()===g:c.nodeType===1)&&++h){y&&((c[w]||(c[w]={}))[e]=[S,h]);if(c===t)break}return h-=i,h===r||h%r===0&&h/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?ut(function(e,n){var r,s=i(e,t),o=s.length;while(o--)r=B.call(e,s[o]),e[r]=!(n[r]=s[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:ut(function(e){var t=[],n=[],r=u(e.replace(z,"$1"));return r[w]?ut(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--)if(s=o[u])e[u]=!(t[u]=s)}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:ut(function(e){return function(t){return st(e,t).length>0}}),contains:ut(function(e){return function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:ut(function(e){return J.test(e||"")||st.error("unsupported lang: "+e),e=e.replace(nt,rt).toLowerCase(),function(t){var n;do if(n=v?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||n.indexOf(e+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===d},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},text:function(e){var t;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((t=e.getAttribute("type"))==null||t.toLowerCase()==="text")},first:pt(function(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){return[n<0?n+t:n]}),even:pt(function(e,t){var n=0;for(;n<t;n+=2)e.push(n);return e}),odd:pt(function(e,t){var n=1;for(;n<t;n+=2)e.push(n);return e}),lt:pt(function(e,t,n){var r=n<0?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){var r=n<0?n+t:n;for(;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=ct(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ht(t);return vt.prototype=r.filters=r.pseudos,r.setFilters=new vt,o=st.tokenize=function(e,t){var n,i,s,o,u,a,f,l=N[e+" "];if(l)return t?0:l.slice(0);u=e,a=[],f=r.preFilter;while(u){if(!n||(i=W.exec(u)))i&&(u=u.slice(i[0].length)||u),a.push(s=[]);n=!1;if(i=X.exec(u))n=i.shift(),s.push({value:n,type:i[0].replace(z," ")}),u=u.slice(n.length);for(o in r.filter)(i=K[o].exec(u))&&(!f[o]||(i=f[o](i)))&&(n=i.shift(),s.push({value:n,type:o,matches:i}),u=u.slice(n.length));if(!n)break}return t?u.length:u?st.error(e):N(e,a).slice(0)},u=st.compile=function(e,t){var n,r=[],i=[],s=C[e+" "];if(!s){t||(t=o(e)),n=t.length;while(n--)s=St(t[n]),s[w]?r.push(s):i.push(s);s=C(e,xt(i,r)),s.selector=e}return s},a=st.select=function(e,t,i,s){var a,f,l,c,h,p=typeof e=="function"&&e,d=!s&&o(e=p.selector||e);i=i||[];if(d.length===1){f=d[0]=d[0].slice(0);if(f.length>2&&(l=f[0]).type==="ID"&&n.getById&&t.nodeType===9&&v&&r.relative[f[1].type]){t=(r.find.ID(l.matches[0].replace(nt,rt),t)||[])[0];if(!t)return i;p&&(t=t.parentNode),e=e.slice(f.shift().value.length)}a=K.needsContext.test(e)?0:f.length;while(a--){l=f[a];if(r.relative[c=l.type])break;if(h=r.find[c])if(s=h(l.matches[0].replace(nt,rt),et.test(f[0].type)&&dt(t.parentNode)||t)){f.splice(a,1),e=s.length&&mt(f);if(!e)return P.apply(i,s),i;break}}}return(p||u(e,d))(s,t,!v,i,et.test(e)&&dt(t.parentNode)||t),i},n.sortStable=w.split("").sort(k).join("")===w,n.detectDuplicates=!!c,h(),n.sortDetached=at(function(e){return e.compareDocumentPosition(p.createElement("div"))&1}),at(function(e){return e.innerHTML="<a href='#'></a>",e.firstChild.getAttribute("href")==="#"})||ft("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,t.toLowerCase()==="type"?1:2)}),(!n.attributes||!at(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),e.firstChild.getAttribute("value")===""}))&&ft("value",function(e,t,n){if(!n&&e.nodeName.toLowerCase()==="input")return e.defaultValue}),at(function(e){return e.getAttribute("disabled")==null})||ft(j,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),st}(e);h.find=y,h.expr=y.selectors,h.expr[":"]=h.expr.pseudos,h.unique=y.uniqueSort,h.text=y.getText,h.isXMLDoc=y.isXML,h.contains=y.contains;var b=h.expr.match.needsContext,w=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,E=/^.[^:#\[\.,]*$/;h.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?h.find.matchesSelector(r,e)?[r]:[]:h.find.matches(e,h.grep(t,function(e){return e.nodeType===1}))},h.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if(typeof e!="string")return this.pushStack(h(e).filter(function(){for(t=0;t<i;t++)if(h.contains(r[t],this))return!0}));for(t=0;t<i;t++)h.find(e,r[t],n);return n=this.pushStack(i>1?h.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,typeof e=="string"&&b.test(e)?h(e):e||[],!1).length}});var x,T=e.document,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=h.fn.init=function(e,t){var n,r;if(!e)return this;if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?n=[null,e,null]:n=N.exec(e);if(n&&(n[1]||!t)){if(n[1]){t=t instanceof h?t[0]:t,h.merge(this,h.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:T,!0));if(w.test(n[1])&&h.isPlainObject(t))for(n in t)h.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}r=T.getElementById(n[2]);if(r&&r.parentNode){if(r.id!==n[2])return x.find(e);this.length=1,this[0]=r}return this.context=T,this.selector=e,this}return!t||t.jquery?(t||x).find(e):this.constructor(t).find(e)}return e.nodeType?(this.context=this[0]=e,this.length=1,this):h.isFunction(e)?typeof x.ready!="undefined"?x.ready(e):e(h):(e.selector!==undefined&&(this.selector=e.selector,this.context=e.context),h.makeArray(e,this))};C.prototype=h.fn,x=h(T);var k=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};h.extend({dir:function(e,t,n){var r=[],i=e[t];while(i&&i.nodeType!==9&&(n===undefined||i.nodeType!==1||!h(i).is(n)))i.nodeType===1&&r.push(i),i=i[t];return r},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}}),h.fn.extend({has:function(e){var t,n=h(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(h.contains(this,n[t]))return!0})},closest:function(e,t){var n,r=0,i=this.length,s=[],o=b.test(e)||typeof e!="string"?h(e,t||this.context):0;for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&h.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?h.unique(s):s)},index:function(e){return e?typeof e=="string"?h.inArray(this[0],h(e)):h.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(h.unique(h.merge(this.get(),h(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),h.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return h.dir(e,"parentNode")},parentsUntil:function(e,t,n){return h.dir(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return h.dir(e,"nextSibling")},prevAll:function(e){return h.dir(e,"previousSibling")},nextUntil:function(e,t,n){return h.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return h.dir(e,"previousSibling",n)},siblings:function(e){return h.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return h.sibling(e.firstChild)},contents:function(e){return h.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:h.merge([],e.childNodes)}},function(e,t){h.fn[e]=function(n,r){var i=h.map(this,t,n);return e.slice(-5)!=="Until"&&(r=n),r&&typeof r=="string"&&(i=h.filter(r,i)),this.length>1&&(L[e]||(i=h.unique(i)),k.test(e)&&(i=i.reverse())),this.pushStack(i)}});var O=/\S+/g,M={};h.Callbacks=function(e){e=typeof e=="string"?M[e]||_(e):h.extend({},e);var t,n,r,i,s,o,u=[],a=!e.once&&[],f=function(c){n=e.memory&&c,r=!0,s=o||0,o=0,i=u.length,t=!0;for(;u&&s<i;s++)if(u[s].apply(c[0],c[1])===!1&&e.stopOnFalse){n=!1;break}t=!1,u&&(a?a.length&&f(a.shift()):n?u=[]:l.disable())},l={add:function(){if(u){var r=u.length;(function s(t){h.each(t,function(t,n){var r=h.type(n);r==="function"?(!e.unique||!l.has(n))&&u.push(n):n&&n.length&&r!=="string"&&s(n)})})(arguments),t?i=u.length:n&&(o=r,f(n))}return this},remove:function(){return u&&h.each(arguments,function(e,n){var r;while((r=h.inArray(n,u,r))>-1)u.splice(r,1),t&&(r<=i&&i--,r<=s&&s--)}),this},has:function(e){return e?h.inArray(e,u)>-1:!!u&&!!u.length},empty:function(){return u=[],i=0,this},disable:function(){return u=a=n=undefined,this},disabled:function(){return!u},lock:function(){return a=undefined,n||l.disable(),this},locked:function(){return!a},fireWith:function(e,n){return u&&(!r||a)&&(n=n||[],n=[e,n.slice?n.slice():n],t?a.push(n):f(n)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},h.extend({Deferred:function(e){var t=[["resolve","done",h.Callbacks("once memory"),"resolved"],["reject","fail",h.Callbacks("once memory"),"rejected"],["notify","progress",h.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return h.Deferred(function(n){h.each(t,function(t,s){var o=h.isFunction(e[t])&&e[t];i[s[1]](function(){var e=o&&o.apply(this,arguments);e&&h.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===r?n.promise():this,o?[e]:arguments)})}),e=null}).promise()},promise:function(e){return e!=null?h.extend(e,r):r}},i={};return r.pipe=r.then,h.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=function(){return i[s[0]+"With"](this===i?r:this,arguments),this},i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=r.call(arguments),i=n.length,s=i!==1||e&&h.isFunction(e.promise)?i:0,o=s===1?e:h.Deferred(),u=function(e,t,n){return function(i){t[e]=this,n[e]=arguments.length>1?r.call(arguments):i,n===a?o.notifyWith(t,n):--s||o.resolveWith(t,n)}},a,f,l;if(i>1){a=new Array(i),f=new Array(i),l=new Array(i);for(;t<i;t++)n[t]&&h.isFunction(n[t].promise)?n[t].promise().done(u(t,l,n)).fail(o.reject).progress(u(t,f,a)):--s}return s||o.resolveWith(l,n),o.promise()}});var D;h.fn.ready=function(e){return h.ready.promise().done(e),this},h.extend({isReady:!1,readyWait:1,holdReady:function(e){e?h.readyWait++:h.ready(!0)},ready:function(e){if(e===!0?--h.readyWait:h.isReady)return;if(!T.body)return setTimeout(h.ready);h.isReady=!0;if(e!==!0&&--h.readyWait>0)return;D.resolveWith(T,[h]),h.fn.triggerHandler&&(h(T).triggerHandler("ready"),h(T).off("ready"))}}),h.ready.promise=function(t){if(!D){D=h.Deferred();if(T.readyState==="complete")setTimeout(h.ready);else if(T.addEventListener)T.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);else{T.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var n=!1;try{n=e.frameElement==null&&T.documentElement}catch(r){}n&&n.doScroll&&function i(){if(!h.isReady){try{n.doScroll("left")}catch(e){return setTimeout(i,50)}P(),h.ready()}}()}}return D.promise(t)};var B=typeof undefined,j;for(j in h(l))break;l.ownLast=j!=="0",l.inlineBlockNeedsLayout=!1,h(function(){var e,t,n,r;n=T.getElementsByTagName("body")[0];if(!n||!n.style)return;t=T.createElement("div"),r=T.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==B&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=e=t.offsetWidth===3,e&&(n.style.zoom=1)),n.removeChild(r)}),function(){var e=T.createElement("div");if(l.deleteExpando==null){l.deleteExpando=!0;try{delete e.test}catch(t){l.deleteExpando=!1}}e=null}(),h.acceptData=function(e){var t=h.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return n!==1&&n!==9?!1:!t||t!==!0&&e.getAttribute("classid")===t};var F=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,I=/([A-Z])/g;h.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?h.cache[e[h.expando]]:e[h.expando],!!e&&!R(e)},data:function(e,t,n){return U(e,t,n)},removeData:function(e,t){return z(e,t)},_data:function(e,t,n){return U(e,t,n,!0)},_removeData:function(e,t){return z(e,t,!0)}}),h.fn.extend({data:function(e,t){var n,r,i,s=this[0],o=s&&s.attributes;if(e===undefined){if(this.length){i=h.data(s);if(s.nodeType===1&&!h._data(s,"parsedAttrs")){n=o.length;while(n--)o[n]&&(r=o[n].name,r.indexOf("data-")===0&&(r=h.camelCase(r.slice(5)),q(s,r,i[r])));h._data(s,"parsedAttrs",!0)}}return i}return typeof e=="object"?this.each(function(){h.data(this,e)}):arguments.length>1?this.each(function(){h.data(this,e,t)}):s?q(s,e,h.data(s,e)):undefined},removeData:function(e){return this.each(function(){h.removeData(this,e)})}}),h.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=h._data(e,t),n&&(!r||h.isArray(n)?r=h._data(e,t,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=h.queue(e,t),r=n.length,i=n.shift(),s=h._queueHooks(e,t),o=function(){h.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return h._data(e,n)||h._data(e,n,{empty:h.Callbacks("once memory").add(function(){h._removeData(e,t+"queue"),h._removeData(e,n)})})}}),h.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length<n?h.queue(this[0],e):t===undefined?this:this.each(function(){var n=h.queue(this,e,t);h._queueHooks(this,e),e==="fx"&&n[0]!=="inprogress"&&h.dequeue(this,e)})},dequeue:function(e){return this.each(function(){h.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=h.Deferred(),s=this,o=this.length,u=function(){--r||i.resolveWith(s,[s])};typeof e!="string"&&(t=e,e=undefined),e=e||"fx";while(o--)n=h._data(s[o],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(u));return u(),i.promise(t)}});var W=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,X=["Top","Right","Bottom","Left"],V=function(e,t){return e=t||e,h.css(e,"display")==="none"||!h.contains(e.ownerDocument,e)},$=h.access=function(e,t,n,r,i,s,o){var u=0,a=e.length,f=n==null;if(h.type(n)==="object"){i=!0;for(u in n)h.access(e,t,u,n[u],!0,s,o)}else if(r!==undefined){i=!0,h.isFunction(r)||(o=!0),f&&(o?(t.call(e,r),t=null):(f=t,t=function(e,t,n){return f.call(h(e),n)}));if(t)for(;u<a;u++)t(e[u],n,o?r:r.call(e[u],u,t(e[u],n)))}return i?e:f?t.call(e):a?t(e[0],n):s},J=/^(?:checkbox|radio)$/i;(function(){var e=T.createElement("input"),t=T.createElement("div"),n=T.createDocumentFragment();t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=t.firstChild.nodeType===3,l.tbody=!t.getElementsByTagName("tbody").length,l.htmlSerialize=!!t.getElementsByTagName("link").length,l.html5Clone=T.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",e.type="checkbox",e.checked=!0,n.appendChild(e),l.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,n.appendChild(t),t.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,t.attachEvent&&(t.attachEvent("onclick",function(){l.noCloneEvent=!1}),t.cloneNode(!0).click());if(l.deleteExpando==null){l.deleteExpando=!0;try{delete t.test}catch(r){l.deleteExpando=!1}}})(),function(){var t,n,r=T.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(l[t+"Bubbles"]=n in e)||(r.setAttribute(n,"t"),l[t+"Bubbles"]=r.attributes[n].expando===!1);r=null}();var K=/^(?:input|select|textarea)$/i,Q=/^key/,G=/^(?:mouse|pointer|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=/^([^.]*)(?:\.(.+)|)$/;h.event={global:{},add:function(e,t,n,r,i){var s,o,u,a,f,l,c,p,d,v,m,g=h._data(e);if(!g)return;n.handler&&(a=n,n=a.handler,i=a.selector),n.guid||(n.guid=h.guid++),(o=g.events)||(o=g.events={}),(l=g.handle)||(l=g.handle=function(e){return typeof h===B||!!e&&h.event.triggered===e.type?undefined:h.event.dispatch.apply(l.elem,arguments)},l.elem=e),t=(t||"").match(O)||[""],u=t.length;while(u--){s=Z.exec(t[u])||[],d=m=s[1],v=(s[2]||"").split(".").sort();if(!d)continue;f=h.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=h.event.special[d]||{},c=h.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&h.expr.match.needsContext.test(i),namespace:v.join(".")},a);if(!(p=o[d])){p=o[d]=[],p.delegateCount=0;if(!f.setup||f.setup.call(e,r,v,l)===!1)e.addEventListener?e.addEventListener(d,l,!1):e.attachEvent&&e.attachEvent("on"+d,l)}f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),h.event.global[d]=!0}e=null},remove:function(e,t,n,r,i){var s,o,u,a,f,l,c,p,d,v,m,g=h.hasData(e)&&h._data(e);if(!g||!(l=g.events))return;t=(t||"").match(O)||[""],f=t.length;while(f--){u=Z.exec(t[f])||[],d=m=u[1],v=(u[2]||"").split(".").sort();if(!d){for(d in l)h.event.remove(e,d+t[f],n,r,!0);continue}c=h.event.special[d]||{},d=(r?c.delegateType:c.bindType)||d,p=l[d]||[],u=u[2]&&new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=s=p.length;while(s--)o=p[s],(i||m===o.origType)&&(!n||n.guid===o.guid)&&(!u||u.test(o.namespace))&&(!r||r===o.selector||r==="**"&&o.selector)&&(p.splice(s,1),o.selector&&p.delegateCount--,c.remove&&c.remove.call(e,o));a&&!p.length&&((!c.teardown||c.teardown.call(e,v,g.handle)===!1)&&h.removeEvent(e,d,g.handle),delete l[d])}h.isEmptyObject(l)&&(delete g.handle,h._removeData(e,"events"))},trigger:function(t,n,r,i){var s,o,u,a,l,c,p,d=[r||T],v=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];u=c=r=r||T;if(r.nodeType===3||r.nodeType===8)return;if(Y.test(v+h.event.triggered))return;v.indexOf(".")>=0&&(m=v.split("."),v=m.shift(),m.sort()),o=v.indexOf(":")<0&&"on"+v,t=t[h.expando]?t:new h.Event(v,typeof t=="object"&&t),t.isTrigger=i?2:3,t.namespace=m.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=r),n=n==null?[t]:h.makeArray(n,[t]),l=h.event.special[v]||{};if(!i&&l.trigger&&l.trigger.apply(r,n)===!1)return;if(!i&&!l.noBubble&&!h.isWindow(r)){a=l.delegateType||v,Y.test(a+v)||(u=u.parentNode);for(;u;u=u.parentNode)d.push(u),c=u;c===(r.ownerDocument||T)&&d.push(c.defaultView||c.parentWindow||e)}p=0;while((u=d[p++])&&!t.isPropagationStopped())t.type=p>1?a:l.bindType||v,s=(h._data(u,"events")||{})[t.type]&&h._data(u,"handle"),s&&s.apply(u,n),s=o&&u[o],s&&s.apply&&h.acceptData(u)&&(t.result=s.apply(u,n),t.result===!1&&t.preventDefault());t.type=v;if(!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&h.acceptData(r)&&o&&r[v]&&!h.isWindow(r)){c=r[o],c&&(r[o]=null),h.event.triggered=v;try{r[v]()}catch(g){}h.event.triggered=undefined,c&&(r[o]=c)}return t.result},dispatch:function(e){e=h.event.fix(e);var t,n,i,s,o,u=[],a=r.call(arguments),f=(h._data(this,"events")||{})[e.type]||[],l=h.event.special[e.type]||{};a[0]=e,e.delegateTarget=this;if(l.preDispatch&&l.preDispatch.call(this,e)===!1)return;u=h.event.handlers.call(this,e,f),t=0;while((s=u[t++])&&!e.isPropagationStopped()){e.currentTarget=s.elem,o=0;while((i=s.handlers[o++])&&!e.isImmediatePropagationStopped())if(!e.namespace_re||e.namespace_re.test(i.namespace))e.handleObj=i,e.data=i.data,n=((h.event.special[i.origType]||{}).handle||i.handler).apply(s.elem,a),n!==undefined&&(e.result=n)===!1&&(e.preventDefault(),e.stopPropagation())}return l.postDispatch&&l.postDispatch.call(this,e),e.result},handlers:function(e,t){var n,r,i,s,o=[],u=t.delegateCount,a=e.target;if(u&&a.nodeType&&(!e.button||e.type!=="click"))for(;a!=this;a=a.parentNode||this)if(a.nodeType===1&&(a.disabled!==!0||e.type!=="click")){i=[];for(s=0;s<u;s++)r=t[s],n=r.selector+" ",i[n]===undefined&&(i[n]=r.needsContext?h(n,this).index(a)>=0:h.find(n,this,null,[a]).length),i[n]&&i.push(r);i.length&&o.push({elem:a,handlers:i})}return u<t.length&&o.push({elem:this,handlers:t.slice(u)}),o},fix:function(e){if(e[h.expando])return e;var t,n,r,i=e.type,s=e,o=this.fixHooks[i];o||(this.fixHooks[i]=o=G.test(i)?this.mouseHooks:Q.test(i)?this.keyHooks:{}),r=o.props?this.props.concat(o.props):this.props,e=new h.Event(s),t=r.length;while(t--)n=r[t],e[n]=s[n];return e.target||(e.target=s.srcElement||T),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,o.filter?o.filter(e,s):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,s=t.button,o=t.fromElement;return e.pageX==null&&t.clientX!=null&&(r=e.target.ownerDocument||T,i=r.documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&o&&(e.relatedTarget=o===e.target?t.toElement:o),!e.which&&s!==undefined&&(e.which=s&1?1:s&2?3:s&4?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==nt()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===nt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(h.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(e){return h.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==undefined&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=h.extend(new h.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?h.event.trigger(i,null,t):h.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},h.removeEvent=T.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===B&&(e[r]=null),e.detachEvent(r,n))},h.Event=function(e,t){if(!(this instanceof h.Event))return new h.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===undefined&&e.returnValue===!1?et:tt):this.type=e,t&&h.extend(this,t),this.timeStamp=e&&e.timeStamp||h.now(),this[h.expando]=!0},h.Event.prototype={isDefaultPrevented:tt,isPropagationStopped:tt,isImmediatePropagationStopped:tt,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=et;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=et;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=et,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},h.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){h.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,s=e.handleObj;if(!i||i!==r&&!h.contains(r,i))e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t;return n}}}),l.submitBubbles||(h.event.special.submit={setup:function(){if(h.nodeName(this,"form"))return!1;h.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=h.nodeName(t,"input")||h.nodeName(t,"button")?t.form:undefined;n&&!h._data(n,"submitBubbles")&&(h.event.add(n,"submit._submit",function(e){e._submit_bubble=!0}),h._data(n,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&h.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(h.nodeName(this,"form"))return!1;h.event.remove(this,"._submit")}}),l.changeBubbles||(h.event.special.change={setup:function(){if(K.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio")h.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),h.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),h.event.simulate("change",this,e,!0)});return!1}h.event.add(this,"beforeactivate._change",function(e){var t=e.target;K.test(t.nodeName)&&!h._data(t,"changeBubbles")&&(h.event.add(t,"change._change",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&h.event.simulate("change",this.parentNode,e,!0)}),h._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return h.event.remove(this,"._change"),!K.test(this.nodeName)}}),l.focusinBubbles||h.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){h.event.simulate(t,e.target,h.event.fix(e),!0)};h.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=h._data(r,t);i||r.addEventListener(e,n,!0),h._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=h._data(r,t)-1;i?h._data(r,t,i):(r.removeEventListener(e,n,!0),h._removeData(r,t))}}}),h.fn.extend({on:function(e,t,n,r,i){var s,o;if(typeof e=="object"){typeof t!="string"&&(n=n||t,t=undefined);for(s in e)this.on(s,t,n,e[s],i);return this}n==null&&r==null?(r=t,n=t=undefined):r==null&&(typeof t=="string"?(r=n,n=undefined):(r=n,n=t,t=undefined));if(r===!1)r=tt;else if(!r)return this;return i===1&&(o=r,r=function(e){return h().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=h.guid++)),this.each(function(){h.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,h(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e=="object"){for(i in e)this.off(i,t,e[i]);return this}if(t===!1||typeof t=="function")n=t,t=undefined;return n===!1&&(n=tt),this.each(function(){h.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){h.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return h.event.trigger(e,t,n,!0)}});var it="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",st=/ jQuery\d+="(?:null|\d+)"/g,ot=new RegExp("<(?:"+it+")[\\s/>]","i"),ut=/^\s+/,at=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ft=/<([\w:]+)/,lt=/<tbody/i,ct=/<|&#?\w+;/,ht=/<(?:script|style|link)/i,pt=/checked\s*(?:[^=]|=\s*.checked.)/i,dt=/^$|\/(?:java|ecma)script/i,vt=/^true\/(.*)/,mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,gt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},yt=rt(T),bt=yt.appendChild(T.createElement("div"));gt.optgroup=gt.option,gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,h.extend({clone:function(e,t,n){var r,i,s,o,u,a=h.contains(e.ownerDocument,e);l.html5Clone||h.isXMLDoc(e)||!ot.test("<"+e.nodeName+">")?s=e.cloneNode(!0):(bt.innerHTML=e.outerHTML,bt.removeChild(s=bt.firstChild));if((!l.noCloneEvent||!l.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!h.isXMLDoc(e)){r=wt(s),u=wt(e);for(o=0;(i=u[o])!=null;++o)r[o]&&kt(i,r[o])}if(t)if(n){u=u||wt(e),r=r||wt(s);for(o=0;(i=u[o])!=null;o++)Ct(i,r[o])}else Ct(e,s);return r=wt(s,"script"),r.length>0&&Nt(r,!a&&wt(e,"script")),r=u=i=null,s},buildFragment:function(e,t,n,r){var i,s,o,u,a,f,c,p=e.length,d=rt(t),v=[],m=0;for(;m<p;m++){s=e[m];if(s||s===0)if(h.type(s)==="object")h.merge(v,s.nodeType?[s]:s);else if(!ct.test(s))v.push(t.createTextNode(s));else{u=u||d.appendChild(t.createElement("div")),a=(ft.exec(s)||["",""])[1].toLowerCase(),c=gt[a]||gt._default,u.innerHTML=c[1]+s.replace(at,"<$1></$2>")+c[2],i=c[0];while(i--)u=u.lastChild;!l.leadingWhitespace&&ut.test(s)&&v.push(t.createTextNode(ut.exec(s)[0]));if(!l.tbody){s=a==="table"&&!lt.test(s)?u.firstChild:c[1]==="<table>"&&!lt.test(s)?u:0,i=s&&s.childNodes.length;while(i--)h.nodeName(f=s.childNodes[i],"tbody")&&!f.childNodes.length&&s.removeChild(f)}h.merge(v,u.childNodes),u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=d.lastChild}}u&&d.removeChild(u),l.appendChecked||h.grep(wt(v,"input"),Et),m=0;while(s=v[m++]){if(r&&h.inArray(s,r)!==-1)continue;o=h.contains(s.ownerDocument,s),u=wt(d.appendChild(s),"script"),o&&Nt(u);if(n){i=0;while(s=u[i++])dt.test(s.type||"")&&n.push(s)}}return u=null,d},cleanData:function(e,t){var r,i,s,o,u=0,a=h.expando,f=h.cache,c=l.deleteExpando,p=h.event.special;for(;(r=e[u])!=null;u++)if(t||h.acceptData(r)){s=r[a],o=s&&f[s];if(o){if(o.events)for(i in o.events)p[i]?h.event.remove(r,i):h.removeEvent(r,i,o.handle);f[s]&&(delete f[s],c?delete r[a]:typeof r.removeAttribute!==B?r.removeAttribute(a):r[a]=null,n.push(s))}}}}),h.fn.extend({text:function(e){return $(this,function(e){return e===undefined?h.text(this):this.empty().append((this[0]&&this[0].ownerDocument||T).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=St(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=St(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){var n,r=e?h.filter(e,this):this,i=0;for(;(n=r[i])!=null;i++)!t&&n.nodeType===1&&h.cleanData(wt(n)),n.parentNode&&(t&&h.contains(n.ownerDocument,n)&&Nt(wt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&h.cleanData(wt(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&h.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===undefined)return t.nodeType===1?t.innerHTML.replace(st,""):undefined;if(typeof e=="string"&&!ht.test(e)&&(l.htmlSerialize||!ot.test(e))&&(l.leadingWhitespace||!ut.test(e))&&!gt[(ft.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(at,"<$1></$2>");try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(h.cleanData(wt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,h.cleanData(wt(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=i.apply([],e);var n,r,s,o,u,a,f=0,c=this.length,p=this,d=c-1,v=e[0],m=h.isFunction(v);if(m||c>1&&typeof v=="string"&&!l.checkClone&&pt.test(v))return this.each(function(n){var r=p.eq(n);m&&(e[0]=v.call(this,n,r.html())),r.domManip(e,t)});if(c){a=h.buildFragment(e,this[0].ownerDocument,!1,this),n=a.firstChild,a.childNodes.length===1&&(a=n);if(n){o=h.map(wt(a,"script"),xt),s=o.length;for(;f<c;f++)r=a,f!==d&&(r=h.clone(r,!0,!0),s&&h.merge(o,wt(r,"script"))),t.call(this[f],r,f);if(s){u=o[o.length-1].ownerDocument,h.map(o,Tt);for(f=0;f<s;f++)r=o[f],dt.test(r.type||"")&&!h._data(r,"globalEval")&&h.contains(u,r)&&(r.src?h._evalUrl&&h._evalUrl(r.src):h.globalEval((r.text||r.textContent||r.innerHTML||"").replace(mt,"")))}a=n=null}}return this}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){h.fn[e]=function(e){var n,r=0,i=[],o=h(e),u=o.length-1;for(;r<=u;r++)n=r===u?this:this.clone(!0),h(o[r])[t](n),s.apply(i,n.get());return this.pushStack(i)}});var Lt,At={};(function(){var e;l.shrinkWrapBlocks=function(){if(e!=null)return e;e=!1;var t,n,r;n=T.getElementsByTagName("body")[0];if(!n||!n.style)return;return t=T.createElement("div"),r=T.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==B&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(T.createElement("div")).style.width="5px",e=t.offsetWidth!==3),n.removeChild(r),e}})();var _t=/^margin/,Dt=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),Pt,Ht,Bt=/^(top|right|bottom|left)$/;e.getComputedStyle?(Pt=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)},Ht=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Pt(e),o=n?n.getPropertyValue(t)||n[t]:undefined,n&&(o===""&&!h.contains(e.ownerDocument,e)&&(o=h.style(e,t)),Dt.test(o)&&_t.test(t)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),o===undefined?o:o+""}):T.documentElement.currentStyle&&(Pt=function(e){return e.currentStyle},Ht=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Pt(e),o=n?n[t]:undefined,o==null&&u&&u[t]&&(o=u[t]),Dt.test(o)&&!Bt.test(t)&&(r=u.left,i=e.runtimeStyle,s=i&&i.left,s&&(i.left=e.currentStyle.left),u.left=t==="fontSize"?"1em":o,o=u.pixelLeft+"px",u.left=r,s&&(i.left=s)),o===undefined?o:o+""||"auto"}),function(){function a(){var t,n,r,a;n=T.getElementsByTagName("body")[0];if(!n||!n.style)return;t=T.createElement("div"),r=T.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i=s=!1,u=!0,e.getComputedStyle&&(i=(e.getComputedStyle(t,null)||{}).top!=="1%",s=(e.getComputedStyle(t,null)||{width:"4px"}).width==="4px",a=t.appendChild(T.createElement("div")),a.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",a.style.marginRight=a.style.width="0",t.style.width="1px",u=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight)),t.innerHTML="<table><tr><td></td><td>t</td></tr></table>",a=t.getElementsByTagName("td"),a[0].style.cssText="margin:0;border:0;padding:0;display:none",o=a[0].offsetHeight===0,o&&(a[0].style.display="",a[1].style.display="none",o=a[0].offsetHeight===0),n.removeChild(r)}var t,n,r,i,s,o,u;t=T.createElement("div"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],n=r&&r.style;if(!n)return;n.cssText="float:left;opacity:.5",l.opacity=n.opacity==="0.5",l.cssFloat=!!n.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle=t.style.backgroundClip==="content-box",l.boxSizing=n.boxSizing===""||n.MozBoxSizing===""||n.WebkitBoxSizing==="",h.extend(l,{reliableHiddenOffsets:function(){return o==null&&a(),o},boxSizingReliable:function(){return s==null&&a(),s},pixelPosition:function(){return i==null&&a(),i},reliableMarginRight:function(){return u==null&&a(),u}})}(),h.swap=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i};var Ft=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,qt=/^(none|table(?!-c[ea]).+)/,Rt=new RegExp("^("+W+")(.*)$","i"),Ut=new RegExp("^([+-])=("+W+")","i"),zt={position:"absolute",visibility:"hidden",display:"block"},Wt={letterSpacing:"0",fontWeight:"400"},Xt=["Webkit","O","Moz","ms"];h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ht(e,"opacity");return n===""?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var i,s,o,u=h.camelCase(t),a=e.style;t=h.cssProps[u]||(h.cssProps[u]=Vt(a,u)),o=h.cssHooks[t]||h.cssHooks[u];if(n===undefined)return o&&"get"in o&&(i=o.get(e,!1,r))!==undefined?i:a[t];s=typeof n,s==="string"&&(i=Ut.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(h.css(e,t)),s="number");if(n==null||n!==n)return;s==="number"&&!h.cssNumber[u]&&(n+="px"),!l.clearCloneStyle&&n===""&&t.indexOf("background")===0&&(a[t]="inherit");if(!o||!("set"in o)||(n=o.set(e,n,r))!==undefined)try{a[t]=n}catch(f){}},css:function(e,t,n,r){var i,s,o,u=h.camelCase(t);return t=h.cssProps[u]||(h.cssProps[u]=Vt(e.style,u)),o=h.cssHooks[t]||h.cssHooks[u],o&&"get"in o&&(s=o.get(e,!0,n)),s===undefined&&(s=Ht(e,t,r)),s==="normal"&&t in Wt&&(s=Wt[t]),n===""||n?(i=parseFloat(s),n===!0||h.isNumeric(i)?i||0:s):s}}),h.each(["height","width"],function(e,t){h.cssHooks[t]={get:function(e,n,r){if(n)return qt.test(h.css(e,"display"))&&e.offsetWidth===0?h.swap(e,zt,function(){return Qt(e,t,r)}):Qt(e,t,r)},set:function(e,n,r){var i=r&&Pt(e);return Jt(e,n,r?Kt(e,t,r,l.boxSizing&&h.css(e,"boxSizing",!1,i)==="border-box",i):0)}}}),l.opacity||(h.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=h.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if((t>=1||t==="")&&h.trim(s.replace(Ft,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(t===""||r&&!r.filter)return}n.filter=Ft.test(s)?s.replace(Ft,i):s+" "+i}}),h.cssHooks.marginRight=jt(l.reliableMarginRight,function(e,t){if(t)return h.swap(e,{display:"inline-block"},Ht,[e,"marginRight"])}),h.each({margin:"",padding:"",border:"Width"},function(e,t){h.cssHooks[e+t]={expand:function(n){var r=0,i={},s=typeof n=="string"?n.split(" "):[n];for(;r<4;r++)i[e+X[r]+t]=s[r]||s[r-2]||s[0];return i}},_t.test(e)||(h.cssHooks[e+t].set=Jt)}),h.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,s={},o=0;if(h.isArray(t)){r=Pt(e),i=t.length;for(;o<i;o++)s[t[o]]=h.css(e,t[o],!1,r);return s}return n!==undefined?h.style(e,t,n):h.css(e,t)},e,t,arguments.length>1)},show:function(){return $t(this,!0)},hide:function(){return $t(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){V(this)?h(this).show():h(this).hide()})}}),h.Tween=Gt,Gt.prototype={constructor:Gt,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(h.cssNumber[n]?"":"px")},cur:function(){var e=Gt.propHooks[this.prop];return e&&e.get?e.get(this):Gt.propHooks._default.get(this)},run:function(e){var t,n=Gt.propHooks[this.prop];return this.options.duration?this.pos=t=h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Gt.propHooks._default.set(this),this}},Gt.prototype.init.prototype=Gt.prototype,Gt.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]==null||!!e.elem.style&&e.elem.style[e.prop]!=null?(t=h.css(e.elem,e.prop,""),!t||t==="auto"?0:t):e.elem[e.prop]},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):e.elem.style&&(e.elem.style[h.cssProps[e.prop]]!=null||h.cssHooks[e.prop])?h.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Gt.propHooks.scrollTop=Gt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},h.fx=Gt.prototype.init,h.fx.step={};var Yt,Zt,en=/^(?:toggle|show|hide)$/,tn=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),nn=/queueHooks$/,rn=[fn],sn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=tn.exec(t),s=i&&i[3]||(h.cssNumber[e]?"":"px"),o=(h.cssNumber[e]||s!=="px"&&+r)&&tn.exec(h.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,h.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&u!==1&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};h.Animation=h.extend(cn,{tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r<i;r++)n=e[r],sn[n]=sn[n]||[],sn[n].unshift(t)},prefilter:function(e,t){t?rn.unshift(e):rn.push(e)}}),h.speed=function(e,t,n){var r=e&&typeof e=="object"?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};r.duration=h.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in h.fx.speeds?h.fx.speeds[r.duration]:h.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue="fx";return r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(V).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=h.isEmptyObject(e),s=h.speed(t,n,r),o=function(){var t=cn(this,h.extend({},e),s);(i||h._data(this,"finish"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!="string"&&(n=t,t=e,e=undefined),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=e!=null&&e+"queueHooks",s=h.timers,o=h._data(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&nn.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem===this&&(e==null||s[i].queue===e)&&(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&h.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=h._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=h.timers,o=r?r.length:0;n.finish=!0,h.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0);for(t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(e,t){var n=h.fn[t];h.fn[t]=function(e,r,i){return e==null||typeof e=="boolean"?n.apply(this,arguments):this.animate(un(t,!0),e,r,i)}}),h.each({slideDown:un("show"),slideUp:un("hide"),slideToggle:un("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){h.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),h.timers=[],h.fx.tick=function(){var e,t=h.timers,n=0;Yt=h.now();for(;n<t.length;n++)e=t[n],!e()&&t[n]===e&&t.splice(n--,1);t.length||h.fx.stop(),Yt=undefined},h.fx.timer=function(e){h.timers.push(e),e()?h.fx.start():h.timers.pop()},h.fx.interval=13,h.fx.start=function(){Zt||(Zt=setInterval(h.fx.tick,h.fx.interval))},h.fx.stop=function(){clearInterval(Zt),Zt=null},h.fx.speeds={slow:600,fast:200,_default:400},h.fn.delay=function(e,t){return e=h.fx?h.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e,t,n,r,i;t=T.createElement("div"),t.setAttribute("className","t"),t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",r=t.getElementsByTagName("a")[0],n=T.createElement("select"),i=n.appendChild(T.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",l.getSetAttribute=t.className!=="t",l.style=/top/.test(r.getAttribute("style")),l.hrefNormalized=r.getAttribute("href")==="/a",l.checkOn=!!e.value,l.optSelected=i.selected,l.enctype=!!T.createElement("form").enctype,n.disabled=!0,l.optDisabled=!i.disabled,e=T.createElement("input"),e.setAttribute("value",""),l.input=e.getAttribute("value")==="",e.value="t",e.setAttribute("type","radio"),l.radioValue=e.value==="t"}();var hn=/\r/g;h.fn.extend({val:function(e){var t,n,r,i=this[0];if(!arguments.length){if(i)return t=h.valHooks[i.type]||h.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(i,"value"))!==undefined?n:(n=i.value,typeof n=="string"?n.replace(hn,""):n==null?"":n);return}return r=h.isFunction(e),this.each(function(n){var i;if(this.nodeType!==1)return;r?i=e.call(this,n,h(this).val()):i=e,i==null?i="":typeof i=="number"?i+="":h.isArray(i)&&(i=h.map(i,function(e){return e==null?"":e+""})),t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()];if(!t||!("set"in t)||t.set(this,i,"value")===undefined)this.value=i})}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return t!=null?t:h.trim(h.text(e))}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a<u;a++){n=r[a];if((n.selected||a===i)&&(l.optDisabled?!n.disabled:n.getAttribute("disabled")===null)&&(!n.parentNode.disabled||!h.nodeName(n.parentNode,"optgroup"))){t=h(n).val();if(s)return t;o.push(t)}}return o},set:function(e,t){var n,r,i=e.options,s=h.makeArray(t),o=i.length;while(o--){r=i[o];if(h.inArray(h.valHooks.option.get(r),s)>=0)try{r.selected=n=!0}catch(u){r.scrollHeight}else r.selected=!1}return n||(e.selectedIndex=-1),i}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(e,t){if(h.isArray(t))return e.checked=h.inArray(h(e).val(),t)>=0}},l.checkOn||(h.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var pn,dn,vn=h.expr.attrHandle,mn=/^(?:checked|selected)$/i,gn=l.getSetAttribute,yn=l.input;h.fn.extend({attr:function(e,t){return $(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(!e||s===3||s===8||s===2)return;if(typeof e.getAttribute===B)return h.prop(e,t,n);if(s!==1||!h.isXMLDoc(e))t=t.toLowerCase(),r=h.attrHooks[t]||(h.expr.match.bool.test(t)?dn:pn);if(n===undefined)return r&&"get"in r&&(i=r.get(e,t))!==null?i:(i=h.find.attr(e,t),i==null?undefined:i);if(n!==null)return r&&"set"in r&&(i=r.set(e,n,t))!==undefined?i:(e.setAttribute(t,n+""),n);h.removeAttr(e,t)},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(O);if(s&&e.nodeType===1)while(n=s[i++])r=h.propFix[n]||n,h.expr.match.bool.test(n)?yn&&gn||!mn.test(n)?e[r]=!1:e[h.camelCase("default-"+n)]=e[r]=!1:h.attr(e,n,""),e.removeAttribute(gn?n:r)},attrHooks:{type:{set:function(e,t){if(!l.radioValue&&t==="radio"&&h.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),dn={set:function(e,t,n){return t===!1?h.removeAttr(e,n):yn&&gn||!mn.test(n)?e.setAttribute(!gn&&h.propFix[n]||n,n):e[h.camelCase("default-"+n)]=e[n]=!0,n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(e,t){var n=vn[t]||h.find.attr;vn[t]=yn&&gn||!mn.test(t)?function(e,t,r){var i,s;return r||(s=vn[t],vn[t]=i,i=n(e,t,r)!=null?t.toLowerCase():null,vn[t]=s),i}:function(e,t,n){if(!n)return e[h.camelCase("default-"+t)]?t.toLowerCase():null}});if(!yn||!gn)h.attrHooks.value={set:function(e,t,n){if(!h.nodeName(e,"input"))return pn&&pn.set(e,t,n);e.defaultValue=t}};gn||(pn={set:function(e,t,n){var r=e.getAttributeNode(n);r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="";if(n==="value"||t===e.getAttribute(n))return t}},vn.id=vn.name=vn.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&r.value!==""?r.value:null},h.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:pn.set},h.attrHooks.contenteditable={set:function(e,t,n){pn.set(e,t===""?!1:t,n)}},h.each(["width","height"],function(e,t){h.attrHooks[t]={set:function(e,n){if(n==="")return e.setAttribute(t,"auto"),n}}})),l.style||(h.attrHooks.style={get:function(e){return e.style.cssText||undefined},set:function(e,t){return e.style.cssText=t+""}});var bn=/^(?:input|select|textarea|button|object)$/i,wn=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return $(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return e=h.propFix[e]||e,this.each(function(){try{this[e]=undefined,delete this[e]}catch(t){}})}}),h.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,s,o=e.nodeType;if(!e||o===3||o===8||o===2)return;return s=o!==1||!h.isXMLDoc(e),s&&(t=h.propFix[t]||t,i=h.propHooks[t]),n!==undefined?i&&"set"in i&&(r=i.set(e,n,t))!==undefined?r:e[t]=n:i&&"get"in i&&(r=i.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,"tabindex");return t?parseInt(t,10):bn.test(e.nodeName)||wn.test(e.nodeName)&&e.href?0:-1}}}}),l.hrefNormalized||h.each(["href","src"],function(e,t){h.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),l.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this}),l.enctype||(h.propFix.enctype="encoding");var En=/[\t\r\n\f]/g;h.fn.extend({addClass:function(e){var t,n,r,i,s,o,u=0,a=this.length,f=typeof e=="string"&&e;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,this.className))});if(f){t=(e||"").match(O)||[];for(;u<a;u++){n=this[u],r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(En," "):" ");if(r){s=0;while(i=t[s++])r.indexOf(" "+i+" ")<0&&(r+=i+" ");o=h.trim(r),n.className!==o&&(n.className=o)}}}return this},removeClass:function(e){var t,n,r,i,s,o,u=0,a=this.length,f=arguments.length===0||typeof e=="string"&&e;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,this.className))});if(f){t=(e||"").match(O)||[];for(;u<a;u++){n=this[u],r=n.nodeType===1&&(n.className?(" "+n.className+" ").replace(En," "):"");if(r){s=0;while(i=t[s++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");o=e?h.trim(r):"",n.className!==o&&(n.className=o)}}}return this},toggleClass:function(e,t){var n=typeof e;return typeof t=="boolean"&&n==="string"?t?this.addClass(e):this.removeClass(e):h.isFunction(e)?this.each(function(n){h(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var t,r=0,i=h(this),s=e.match(O)||[];while(t=s[r++])i.hasClass(t)?i.removeClass(t):i.addClass(t)}else if(n===B||n==="boolean")this.className&&h._data(this,"__className__",this.className),this.className=this.className||e===!1?"":h._data(this,"__className__")||""})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(" "+this[n].className+" ").replace(En," ").indexOf(t)>=0)return!0;return!1}}),h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}});var Sn=h.now(),xn=/\?/,Tn=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;h.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=h.trim(t+"");return i&&!h.trim(i.replace(Tn,function(e,t,i,s){return n&&t&&(r=0),r===0?e:(n=i||t,r+=!s-!i,"")}))?Function("return "+i)():h.error("Invalid JSON: "+t)},h.parseXML=function(t){var n,r;if(!t||typeof t!="string")return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=undefined}return(!n||!n.documentElement||n.getElementsByTagName("parsererror").length)&&h.error("Invalid XML: "+t),n};var Nn,Cn,kn=/#.*$/,Ln=/([?&])_=[^&]*/,An=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,On=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mn=/^(?:GET|HEAD)$/,_n=/^\/\//,Dn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Pn={},Hn={},Bn="*/".concat("*");try{Cn=location.href}catch(jn){Cn=T.createElement("a"),Cn.href="",Cn=Cn.href}Nn=Dn.exec(Cn.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Cn,type:"GET",isLocal:On.test(Nn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qn(qn(e,h.ajaxSettings),t):qn(h.ajaxSettings,e)},ajaxPrefilter:Fn(Pn),ajaxTransport:Fn(Hn),ajax:function(e,t){function x(e,t,n,r){var f,g,y,w,S,x=t;if(b===2)return;b=2,o&&clearTimeout(o),a=undefined,s=r||"",E.readyState=e>0?4:0,f=e>=200&&e<300||e===304,n&&(w=Rn(l,E,n)),w=Un(l,w,E,f);if(f)l.ifModified&&(S=E.getResponseHeader("Last-Modified"),S&&(h.lastModified[i]=S),S=E.getResponseHeader("etag"),S&&(h.etag[i]=S)),e===204||l.type==="HEAD"?x="nocontent":e===304?x="notmodified":(x=w.state,g=w.data,y=w.error,f=!y);else{y=x;if(e||!x)x="error",e<0&&(e=0)}E.status=e,E.statusText=(t||x)+"",f?d.resolveWith(c,[g,x,E]):d.rejectWith(c,[E,x,y]),E.statusCode(m),m=undefined,u&&p.trigger(f?"ajaxSuccess":"ajaxError",[E,l,f?g:y]),v.fireWith(c,[E,x]),u&&(p.trigger("ajaxComplete",[E,l]),--h.active||h.event.trigger("ajaxStop"))}typeof e=="object"&&(t=e,e=undefined),t=t||{};var n,r,i,s,o,u,a,f,l=h.ajaxSetup({},t),c=l.context||l,p=l.context&&(c.nodeType||c.jquery)?h(c):h.event,d=h.Deferred(),v=h.Callbacks("once memory"),m=l.statusCode||{},g={},y={},b=0,w="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(b===2){if(!f){f={};while(t=An.exec(s))f[t[1].toLowerCase()]=t[2]}t=f[e.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return b===2?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,g[e]=t),this},overrideMimeType:function(e){return b||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)m[t]=[m[t],e[t]];else E.always(e[E.status]);return this},abort:function(e){var t=e||w;return a&&a.abort(t),x(0,t),this}};d.promise(E).complete=v.add,E.success=E.done,E.error=E.fail,l.url=((e||l.url||Cn)+"").replace(kn,"").replace(_n,Nn[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=h.trim(l.dataType||"*").toLowerCase().match(O)||[""],l.crossDomain==null&&(n=Dn.exec(l.url.toLowerCase()),l.crossDomain=!(!n||n[1]===Nn[1]&&n[2]===Nn[2]&&(n[3]||(n[1]==="http:"?"80":"443"))===(Nn[3]||(Nn[1]==="http:"?"80":"443")))),l.data&&l.processData&&typeof l.data!="string"&&(l.data=h.param(l.data,l.traditional)),In(Pn,l,t,E);if(b===2)return E;u=l.global,u&&h.active++===0&&h.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Mn.test(l.type),i=l.url,l.hasContent||(l.data&&(i=l.url+=(xn.test(i)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ln.test(i)?i.replace(Ln,"$1_="+Sn++):i+(xn.test(i)?"&":"?")+"_="+Sn++)),l.ifModified&&(h.lastModified[i]&&E.setRequestHeader("If-Modified-Since",h.lastModified[i]),h.etag[i]&&E.setRequestHeader("If-None-Match",h.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&E.setRequestHeader("Content-Type",l.contentType),E.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+(l.dataTypes[0]!=="*"?", "+Bn+"; q=0.01":""):l.accepts["*"]);for(r in l.headers)E.setRequestHeader(r,l.headers[r]);if(!l.beforeSend||l.beforeSend.call(c,E,l)!==!1&&b!==2){w="abort";for(r in{success:1,error:1,complete:1})E[r](l[r]);a=In(Hn,l,t,E);if(!a)x(-1,"No Transport");else{E.readyState=1,u&&p.trigger("ajaxSend",[E,l]),l.async&&l.timeout>0&&(o=setTimeout(function(){E.abort("timeout")},l.timeout));try{b=1,a.send(g,x)}catch(S){if(!(b<2))throw S;x(-1,S)}}return E}return E.abort()},getJSON:function(e,t,n){return h.get(e,t,n,"json")},getScript:function(e,t){return h.get(e,undefined,t,"script")}}),h.each(["get","post"],function(e,t){h[t]=function(e,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=undefined),h.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},h.fn.extend({wrapAll:function(e){if(h.isFunction(e))return this.each(function(t){h(this).wrapAll(e.call(this,t))});if(this[0]){var t=h(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return h.isFunction(e)?this.each(function(t){h(this).wrapInner(e.call(this,t))}):this.each(function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(n){h(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!l.reliableHiddenOffsets()&&(e.style&&e.style.display||h.css(e,"display"))==="none"},h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)};var zn=/%20/g,Wn=/\[\]$/,Xn=/\r?\n/g,Vn=/^(?:submit|button|image|reset|file)$/i,$n=/^(?:input|select|textarea|keygen)/i;h.param=function(e,t){var n,r=[],i=function(e,t){t=h.isFunction(t)?t():t==null?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};t===undefined&&(t=h.ajaxSettings&&h.ajaxSettings.traditional);if(h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){i(this.name,this.value)});else for(n in e)Jn(n,e[n],t,i);return r.join("&").replace(zn,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&$n.test(this.nodeName)&&!Vn.test(e)&&(this.checked||!J.test(e))}).map(function(e,t){var n=h(this).val();return n==null?null:h.isArray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(Xn,"\r\n")}}):{name:t.name,value:n.replace(Xn,"\r\n")}}).get()}}),h.ajaxSettings.xhr=e.ActiveXObject!==undefined?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Yn()||Zn()}:Yn;var Kn=0,Qn={},Gn=h.ajaxSettings.xhr();e.ActiveXObject&&h(e).on("unload",function(){for(var e in Qn)Qn[e](undefined,!0)}),l.cors=!!Gn&&"withCredentials"in Gn,Gn=l.ajax=!!Gn,Gn&&h.ajaxTransport(function(e){if(!e.crossDomain||l.cors){var t;return{send:function(n,r){var i,s=e.xhr(),o=++Kn;s.open(e.type,e.url,e.async,e.username,e.password);if(e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!n["X-Requested-With"]&&(n["X-Requested-With"]="XMLHttpRequest");for(i in n)n[i]!==undefined&&s.setRequestHeader(i,n[i]+"");s.send(e.hasContent&&e.data||null),t=function(n,i){var u,a,f;if(t&&(i||s.readyState===4)){delete Qn[o],t=undefined,s.onreadystatechange=h.noop;if(i)s.readyState!==4&&s.abort();else{f={},u=s.status,typeof s.responseText=="string"&&(f.text=s.responseText);try{a=s.statusText}catch(l){a=""}!u&&e.isLocal&&!e.crossDomain?u=f.text?200:404:u===1223&&(u=204)}}f&&r(u,a,f,s.getAllResponseHeaders())},e.async?s.readyState===4?setTimeout(t):s.onreadystatechange=Qn[o]=t:t()},abort:function(){t&&t(undefined,!0)}}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",function(e){e.cache===undefined&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),h.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=T.head||h("head")[0]||T.documentElement;return{send:function(r,i){t=T.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){if(n||!t.readyState||/loaded|complete/.test(t.readyState))t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success")},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(undefined,!0)}}}});var er=[],tr=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=er.pop()||h.expando+"_"+Sn++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",function(t,n,r){var i,s,o,u=t.jsonp!==!1&&(tr.test(t.url)?"url":typeof t.data=="string"&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tr.test(t.data)&&"data");if(u||t.dataTypes[0]==="jsonp")return i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(tr,"$1"+i):t.jsonp!==!1&&(t.url+=(xn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||h.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=e[i],e[i]=function(){o=arguments},r.always(function(){e[i]=s,t[i]&&(t.jsonpCallback=n.jsonpCallback,er.push(i)),o&&h.isFunction(s)&&s(o[0]),o=s=undefined}),"script"}),h.parseHTML=function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||T;var r=w.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=h.buildFragment([e],t,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var nr=h.fn.load;h.fn.load=function(e,t,n){if(typeof e!="string"&&nr)return nr.apply(this,arguments);var r,i,s,o=this,u=e.indexOf(" ");return u>=0&&(r=h.trim(e.slice(u,e.length)),e=e.slice(0,u)),h.isFunction(t)?(n=t,t=undefined):t&&typeof t=="object"&&(s="POST"),o.length>0&&h.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){i=arguments,o.html(r?h("<div>").append(h.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this},h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length};var rr=e.document.documentElement;h.offset={setOffset:function(e,t,n){var r,i,s,o,u,a,f,l=h.css(e,"position"),c=h(e),p={};l==="static"&&(e.style.position="relative"),u=c.offset(),s=h.css(e,"top"),a=h.css(e,"left"),f=(l==="absolute"||l==="fixed")&&h.inArray("auto",[s,a])>-1,f?(r=c.position(),o=r.top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(a)||0),h.isFunction(t)&&(t=t.call(e,n,u)),t.top!=null&&(p.top=t.top-u.top+o),t.left!=null&&(p.left=t.left-u.left+i),"using"in t?t.using.call(e,p):c.css(p)}},h.fn.extend({offset:function(e){if(arguments.length)return e===undefined?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],s=i&&i.ownerDocument;if(!s)return;return t=s.documentElement,h.contains(t,i)?(typeof i.getBoundingClientRect!==B&&(r=i.getBoundingClientRect()),n=ir(s),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(!this[0])return;var e,t,n={top:0,left:0},r=this[0];return h.css(r,"position")==="fixed"?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(n=e.offset()),n.top+=h.css(e[0],"borderTopWidth",!0),n.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-h.css(r,"marginTop",!0),left:t.left-n.left-h.css(r,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||rr;while(e&&!h.nodeName(e,"html")&&h.css(e,"position")==="static")e=e.offsetParent;return e||rr})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);h.fn[e]=function(r){return $(this,function(e,r,i){var s=ir(e);if(i===undefined)return s?t in s?s[t]:s.document.documentElement[r]:e[r];s?s.scrollTo(n?h(s).scrollLeft():i,n?i:h(s).scrollTop()):e[r]=i},e,r,arguments.length,null)}}),h.each(["top","left"],function(e,t){h.cssHooks[t]=jt(l.pixelPosition,function(e,n){if(n)return n=Ht(e,t),Dt.test(n)?h(e).position()[t]+"px":n})}),h.each({Height:"height",Width:"width"},function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){h.fn[r]=function(r,i){var s=arguments.length&&(n||typeof r!="boolean"),o=n||(r===!0||i===!0?"margin":"border");return $(this,function(t,n,r){var i;return h.isWindow(t)?t.document.documentElement["client"+e]:t.nodeType===9?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):r===undefined?h.css(t,n,o):h.style(t,n,r,o)},t,s?r:undefined,s,null)}})}),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,typeof define=="function"&&define.amd&&define("jquery",[],function(){return h});var sr=e.jQuery,or=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=or),t&&e.jQuery===h&&(e.jQuery=sr),h},typeof t===B&&(e.jQuery=e.$=h),h}),define("jquery",function(){}),define("observer",["jquery"],function(e){var t={},n=function(n){var r=t[n];if(t[n])return r;var i=e.Callbacks(),s={};return t[n]={add:function(t){if(!s[t]){var n=e.Callbacks();s[t]={subscribe:n.add,publish:n.fire,unsubscribe:n.remove,unsubscribeAll:n.empty}}return s[t]},get:function(e){return s[e]},subscribe:i.add,publish:i.fire,unsubscribe:i.remove,unsubscribeAll:i.empty},t[n]};return n}),define("skinApi",["avalon","util","collect","observer"],function(e,t,n,r){var i=function(){var e=window.skinSwitch||{_notSkin_:!0};return{init:function(){window.skinHttpCallback={},window.userStateChanged=function(e,t){r("userStateChanged").publish(e,t)},window.skinChanged=function(){r("skinChanged").publish()}},execute:function(t){if(!e._notSkin_)try{return e[t](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])}catch(n){}else console.log("不存在"+t)},httpExecute:function(e,r){var i=this;if(avalon.type(r.callback)==="function"){var s="skinHttpCallback"+setTimeout("1"),o=avalon.mix(!0,{},r);o.callback="skinHttpCallback."+s,window.skinHttpCallback[s]=function(e){e.error_code!=="SUCCESS"&&n.send("httperror",t.replaceUrl(r.url),e.error_code),r.callback.call(r,e),delete window.skinHttpCallback[s]},this.execute(e,o)}}}}();return i.init(),i}),define("filter",["avalon"],function(){return avalon.mix(avalon.filters,{substring:function(e,t,n){return e.substring(t,n)},filterName:function(e){return e.length>2?e.substring(0,2)+"***":e.substring(0,1)+"***"},thousandNumber:function(e){var t=/\d{1,3}(?=(\d{3})+$)/g;return e.replace(/^(\d+)((\.\d+)?)$/,function(e,n,r){return n.replace(t,"$&,")+r})}}),{}}),function(){var e={VERSION:"2.3.2",Result:{SUCCEEDED:1,NOTRANSITION:2,CANCELLED:3,PENDING:4},Error:{INVALID_TRANSITION:100,PENDING_TRANSITION:200,INVALID_CALLBACK:300},WILDCARD:"*",ASYNC:"async",create:function(t,n){var r=typeof t.initial=="string"?{state:t.initial}:t.initial,i=t.terminal||t["final"],s=n||t.target||{},o=t.events||[],u=t.callbacks||{},a={},f=function(t){var n=t.from instanceof Array?t.from:t.from?[t.from]:[e.WILDCARD];a[t.name]=a[t.name]||{};for(var r=0;r<n.length;r++)a[t.name][n[r]]=t.to||n[r]};r&&(r.event=r.event||"startup",f({name:r.event,from:"none",to:r.state}));for(var l=0;l<o.length;l++)f(o[l]);for(var c in a)a.hasOwnProperty(c)&&(s[c]=e.buildEvent(c,a[c]));for(var c in u)u.hasOwnProperty(c)&&(s[c]=u[c]);return s.current="none",s.is=function(e){return e instanceof Array?e.indexOf(this.current)>=0:this.current===e},s.can=function(t){return!this.transition&&(a[t].hasOwnProperty(this.current)||a[t].hasOwnProperty(e.WILDCARD))},s.cannot=function(e){return!this.can(e)},s.error=t.error||function(e,t,n,r,i,s,o){throw o||s},s.isFinished=function(){return this.is(i)},r&&!r.defer&&s[r.event](),s},doCallback:function(t,n,r,i,s,o){if(n)try{return n.apply(t,[r,i,s].concat(o))}catch(u){return t.error(r,i,s,o,e.Error.INVALID_CALLBACK,"an exception occurred in a caller-provided callback function",u)}},beforeAnyEvent:function(t,n,r,i,s){return e.doCallback(t,t.onbeforeevent,n,r,i,s)},afterAnyEvent:function(t,n,r,i,s){return e.doCallback(t,t.onafterevent||t.onevent,n,r,i,s)},leaveAnyState:function(t,n,r,i,s){return e.doCallback(t,t.onleavestate,n,r,i,s)},enterAnyState:function(t,n,r,i,s){return e.doCallback(t,t.onenterstate||t.onstate,n,r,i,s)},changeState:function(t,n,r,i,s){return e.doCallback(t,t.onchangestate,n,r,i,s)},beforeThisEvent:function(t,n,r,i,s){return e.doCallback(t,t["onbefore"+n],n,r,i,s)},afterThisEvent:function(t,n,r,i,s){return e.doCallback(t,t["onafter"+n]||t["on"+n],n,r,i,s)},leaveThisState:function(t,n,r,i,s){return e.doCallback(t,t["onleave"+r],n,r,i,s)},enterThisState:function(t,n,r,i,s){return e.doCallback(t,t["onenter"+i]||t["on"+i],n,r,i,s)},beforeEvent:function(t,n,r,i,s){if(!1===e.beforeThisEvent(t,n,r,i,s)||!1===e.beforeAnyEvent(t,n,r,i,s))return!1},afterEvent:function(t,n,r,i,s){e.afterThisEvent(t,n,r,i,s),e.afterAnyEvent(t,n,r,i,s)},leaveState:function(t,n,r,i,s){var o=e.leaveThisState(t,n,r,i,s),u=e.leaveAnyState(t,n,r,i,s);if(!1===o||!1===u)return!1;if(e.ASYNC===o||e.ASYNC===u)return e.ASYNC},enterState:function(t,n,r,i,s){e.enterThisState(t,n,r,i,s),e.enterAnyState(t,n,r,i,s)},buildEvent:function(t,n){return function(){var r=this.current,i=n[r]||n[e.WILDCARD]||r,s=Array.prototype.slice.call(arguments);if(this.transition)return this.error(t,r,i,s,e.Error.PENDING_TRANSITION,"event "+t+" inappropriate because previous transition did not complete");if(this.cannot(t))return this.error(t,r,i,s,e.Error.INVALID_TRANSITION,"event "+t+" inappropriate in current state "+this.current);if(!1===e.beforeEvent(this,t,r,i,s))return e.Result.CANCELLED;if(r===i)return e.afterEvent(this,t,r,i,s),e.Result.NOTRANSITION;var o=this;this.transition=function(){return o.transition=null,o.current=i,e.enterState(o,t,r,i,s),e.changeState(o,t,r,i,s),e.afterEvent(o,t,r,i,s),e.Result.SUCCEEDED},this.transition.cancel=function(){o.transition=null,e.afterEvent(o,t,r,i,s)};var u=e.leaveState(this,t,r,i,s);if(!1===u)return this.transition=null,e.Result.CANCELLED;if(e.ASYNC===u)return e.Result.PENDING;if(this.transition)return this.transition()}}};typeof exports!="undefined"?(typeof module!="undefined"&&module.exports&&(exports=module.exports=e),exports.StateMachine=e):typeof define=="function"&&define.amd?define("state-machine",["require"],function(t){return e}):window&&(window.StateMachine=e)}(),define("mousewheel",["require","exports","module"],function(e,t,n){function s(e){var t=e||window.event,n=[].slice.call(arguments,1),r=0,i=!0,s=0,o=0;return e=$.event.fix(t),e.type="mousewheel",t.wheelDelta&&(r=t.wheelDelta/120),t.detail&&(r=-t.detail/3),o=r,t.axis!==undefined&&t.axis===t.HORIZONTAL_AXIS&&(o=0,s=-1*r),t.wheelDeltaY!==undefined&&(o=t.wheelDeltaY/120),t.wheelDeltaX!==undefined&&(s=-1*t.wheelDeltaX/120),n.unshift(e,r,s,o),($.event.dispatch||$.event.handle).apply(this,n)}var r=["DOMMouseScroll","mousewheel"];if($.event.fixHooks)for(var i=r.length;i;)$.event.fixHooks[r[--i]]=$.event.mouseHooks;return $.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var e=r.length;e;)this.addEventListener(r[--e],s,!1);else this.onmousewheel=s},teardown:function(){if(this.removeEventListener)for(var e=r.length;e;)this.removeEventListener(r[--e],s,!1);else this.onmousewheel=null}},$.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}}),{}}),define("jScrollPane",["require","exports","module","mousewheel"],function(e,t,n){var r=e("mousewheel");(function(e,t,n){e.fn.jScrollPane=function(r){function i(r,i){function V(t){var i,o,g,y,w,E,x=!1,T=!1;s=t;if(u===n)w=r.scrollTop(),E=r.scrollLeft(),r.css({overflow:"hidden",padding:0}),a=r.innerWidth()+F,f=r.innerHeight(),r.width(a),u=e('<div class="jspPane" />').css("padding",j).append(r.children()),l=e('<div class="jspContainer" />').css({width:a+"px",height:f+"px"}).append(u).appendTo(r);else{r.css("width",""),x=s.stickToBottom&&mt(),T=s.stickToRight&&gt(),y=r.innerWidth()+F!=a||r.outerHeight()!=f,y&&(a=r.innerWidth()+F,f=r.innerHeight(),l.css({width:a+"px",height:f+"px"}));if(!y&&I==c&&u.outerHeight()==h){r.width(a);return}I=c,u.css("width",""),r.width(a),l.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}u.css("overflow","auto"),t.contentWidth?c=t.contentWidth:c=u[0].scrollWidth,h=s.contentHeight||u[0].scrollHeight,u.css("overflow",""),p=c/a,d=h/f,v=d>1,m=p>1,!m&&!v?(r.removeClass("jspScrollable"),u.css({top:0,left:0,width:l.width()-F}),bt(),St(),Tt(),rt()):(r.addClass("jspScrollable"),i=s.maintainPosition&&(b||S),i&&(o=dt(),g=vt()),J(),Q(),Y(),i&&(ht(T?c-a:o,!1),ct(x?h-f:g,!1)),Et(),yt(),kt(),s.enableKeyboardNavigation&&xt(),s.clickOnTrack&&nt(),Nt(),s.hijackInternalLinks&&Ct()),s.autoReinitialise&&!B?B=setInterval(function(){V(s)},s.autoReinitialiseDelay):!s.autoReinitialise&&B&&clearInterval(B),w&&r.scrollTop(0)&&ct(w,!1),E&&r.scrollLeft(0)&&ht(E,!1),r.trigger("jsp-initialised",[m||v])}function J(){v&&(l.append(e('<div class="jspVerticalBar" />').append(e('<div class="jspCap jspCapTop" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragTop" />'),e('<div class="jspDragBottom" />'))),e('<div class="jspCap jspCapBottom" />'))),s.mouseoutHide&&r.unbind("hover").hover(function(){x.fadeIn(100)},function(){x.fadeOut(100)}),x=l.find(">.jspVerticalBar"),T=x.find(">.jspTrack"),g=T.find(">.jspDrag"),s.showArrows&&(L=e('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",et(0,-1)).bind("click.jsp",wt),A=e('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",et(0,1)).bind("click.jsp",wt),s.arrowScrollOnHover&&(L.bind("mouseover.jsp",et(0,-1,L)),A.bind("mouseover.jsp",et(0,1,A))),Z(T,s.verticalArrowPositions,L,A)),C=f,l.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){C-=e(this).outerHeight()}),g.hover(function(){g.addClass("jspHover")},function(){g.removeClass("jspHover")}).bind("mousedown.jsp",function(t){e("html").bind("dragstart.jsp selectstart.jsp",wt),g.addClass("jspActive");var n=t.pageY-g.position().top;return e("html").bind("mousemove.jsp",function(e){st(e.pageY-n,!1)}).bind("mouseup.jsp mouseleave.jsp",it),!1}),K()),!s.mouseoutHideShow&&s.mouseoutHide&&x&&x.hide()}function K(){T.height(C+"px"),b=0,N=s.verticalGutter+T.outerWidth(),u.width(a-N-F);try{x.position().left===0}catch(e){}}function Q(){m&&(l.append(e('<div class="jspHorizontalBar" />').append(e('<div class="jspCap jspCapLeft" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragLeft" />'),e('<div class="jspDragRight" />'))),e('<div class="jspCap jspCapRight" />'))),O=l.find(">.jspHorizontalBar"),M=O.find(">.jspTrack"),w=M.find(">.jspDrag"),s.showArrows&&(P=e('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",et(-1,0)).bind("click.jsp",wt),H=e('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",et(1,0)).bind("click.jsp",wt),s.arrowScrollOnHover&&(P.bind("mouseover.jsp",et(-1,0,P)),H.bind("mouseover.jsp",et(1,0,H))),Z(M,s.horizontalArrowPositions,P,H)),w.hover(function(){w.addClass("jspHover")},function(){w.removeClass("jspHover")}).bind("mousedown.jsp",function(t){e("html").bind("dragstart.jsp selectstart.jsp",wt),w.addClass("jspActive");var n=t.pageX-w.position().left;return e("html").bind("mousemove.jsp",function(e){ut(e.pageX-n,!1)}).bind("mouseup.jsp mouseleave.jsp",it),!1}),_=l.innerWidth(),G())}function G(){l.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){_-=e(this).outerWidth()}),M.width(_+"px"),S=0}function Y(){if(m&&v){var t=M.outerHeight(),n=T.outerWidth();C-=t,e(O).find(">.jspCap:visible,>.jspArrow").each(function(){_+=e(this).outerWidth()}),_-=n,f-=n,a-=t,M.parent().append(e('<div class="jspCorner" />').css("width",t+"px")),K(),G()}m&&u.width(l.outerWidth()-F+"px"),h=s.contentHeight||u.outerHeight(),d=h/f,m&&(D=Math.ceil(1/p*_),D>s.horizontalDragMaxWidth?D=s.horizontalDragMaxWidth:D<s.horizontalDragMinWidth&&(D=s.horizontalDragMinWidth),w.width(D+"px"),E=_-D,at(S)),v&&(k=Math.ceil(1/d*C),k>s.verticalDragMaxHeight?k=s.verticalDragMaxHeight:k<s.verticalDragMinHeight&&(k=s.verticalDragMinHeight),g.height(k+"px"),y=C-k,ot(b))}function Z(e,t,n,r){var i="before",s="after",o;t=="os"&&(t=/Mac/.test(navigator.platform)?"after":"split"),t==i?s=t:t==s&&(i=t,o=n,n=r,r=o),e[i](n)[s](r)}function et(e,t,n){return function(){return tt(e,t,this,n),this.blur(),!1}}function tt(t,n,r,i){r=e(r).addClass("jspActive");var u,a,f=!0,l=function(){t!==0&&o.scrollByX(t*s.arrowButtonSpeed),n!==0&&o.scrollByY(n*s.arrowButtonSpeed),a=setTimeout(l,f?s.initialDelay:s.arrowRepeatFreq),f=!1};l(),u=i?"mouseout.jsp":"mouseup.jsp",i=i||e("html"),i.bind(u,function(){r.removeClass("jspActive"),a&&clearTimeout(a),a=null,i.unbind(u)})}function nt(){rt(),v&&T.bind("mousedown.jsp",function(t){if(t.originalTarget===n||t.originalTarget==t.currentTarget){var r=e(this),i=r.offset(),u=t.pageY-i.top-b,a,l=!0,c=function(){var e=r.offset(),n=t.pageY-e.top-k/2,i=f*s.scrollPagePercent,d=y*i/(h-f);if(u<0)b-d>n?o.scrollByY(-i):st(n);else{if(!(u>0)){p();return}b+d<n?o.scrollByY(i):st(n)}a=setTimeout(c,l?s.initialDelay:s.trackClickRepeatFreq),l=!1},p=function(){a&&clearTimeout(a),a=null,e(document).unbind("mouseup.jsp",p)};return c(),e(document).bind("mouseup.jsp",p),!1}}),m&&M.bind("mousedown.jsp",function(t){if(t.originalTarget===n||t.originalTarget==t.currentTarget){var r=e(this),i=r.offset(),u=t.pageX-i.left-S,f,l=!0,h=function(){var e=r.offset(),n=t.pageX-e.left-D/2,i=a*s.scrollPagePercent,d=E*i/(c-a);if(u<0)S-d>n?o.scrollByX(-i):ut(n);else{if(!(u>0)){p();return}S+d<n?o.scrollByX(i):ut(n)}f=setTimeout(h,l?s.initialDelay:s.trackClickRepeatFreq),l=!1},p=function(){f&&clearTimeout(f),f=null,e(document).unbind("mouseup.jsp",p)};return h(),e(document).bind("mouseup.jsp",p),!1}})}function rt(){M&&M.unbind("mousedown.jsp"),T&&T.unbind("mousedown.jsp")}function it(){e("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp"),g&&g.removeClass("jspActive"),w&&w.removeClass("jspActive")}function st(e,t){if(!v)return;e<0?e=0:e>y&&(e=y),t===n&&(t=s.animateScroll),t?o.animate(g,"top",e,ot):(g.css("top",e),ot(e))}function ot(e){e===n&&(e=g.position().top),l.scrollTop(0),b=e;var t=b===0,i=b==y,s=e/y,o=-s*(h-f);if(q!=t||U!=i)q=t,U=i,r.trigger("jsp-arrow-change",[q,U,R,z]);ft(t,i),u.css("top",o),r.trigger("jsp-scroll-y",[-o,t,i]).trigger("scroll")}function ut(e,t){if(!m)return;e<0?e=0:e>E&&(e=E),t===n&&(t=s.animateScroll),t?o.animate(w,"left",e,at):(w.css("left",e),at(e))}function at(e){e===n&&(e=w.position().left),l.scrollTop(0),S=e;var t=S===0,i=S==E,s=e/E,o=-s*(c-a);if(R!=t||z!=i)R=t,z=i,r.trigger("jsp-arrow-change",[q,U,R,z]);lt(t,i),u.css("left",o),r.trigger("jsp-scroll-x",[-o,t,i]).trigger("scroll")}function ft(e,t){s.showArrows&&(L[e?"addClass":"removeClass"]("jspDisabled"),A[t?"addClass":"removeClass"]("jspDisabled"))}function lt(e,t){s.showArrows&&(P[e?"addClass":"removeClass"]("jspDisabled"),H[t?"addClass":"removeClass"]("jspDisabled"))}function ct(e,t){var n=e/(h-f);st(n*y,t)}function ht(e,t){var n=e/(c-a);ut(n*E,t)}function pt(t,n,r){var i,o,u,c=0,h=0,p,d,v,m,g,y;try{i=e(t)}catch(b){return}o=i.outerHeight(),u=i.outerWidth(),l.scrollTop(0),l.scrollLeft(0);while(!i.is(".jspPane")){c+=i.position().top,h+=i.position().left,i=i.offsetParent();if(/^body|html$/i.test(i[0].nodeName))return}p=vt(),v=p+f,c<p||n?g=c-s.horizontalGutter:c+o>v&&(g=c-f+o+s.horizontalGutter),isNaN(g)||ct(g,r),d=dt(),m=d+a,h<d||n?y=h-s.horizontalGutter:h+u>m&&(y=h-a+u+s.horizontalGutter),isNaN(y)||ht(y,r)}function dt(){return-u.position().left}function vt(){return-u.position().top}function mt(){var e=h-f;return e>20&&e-vt()<10}function gt(){var e=c-a;return e>20&&e-dt()<10}function yt(){l.unbind(X).bind(X,function(e,t,n,r){var i=S,u=b,a=e.deltaFactor||s.mouseWheelSpeed;return o.scrollBy(n*a,-r*a,!1),i==S&&u==b})}function bt(){l.unbind(X)}function wt(){return!1}function Et(){u.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(e){pt(e.target,!1)})}function St(){u.find(":input,a").unbind("focus.jsp")}function xt(){function a(){var e=S,r=b;switch(t){case 40:o.scrollByY(s.keyboardSpeed,!1);break;case 38:o.scrollByY(-s.keyboardSpeed,!1);break;case 34:case 32:o.scrollByY(f*s.scrollPagePercent,!1);break;case 33:o.scrollByY(-f*s.scrollPagePercent,!1);break;case 39:o.scrollByX(s.keyboardSpeed,!1);break;case 37:o.scrollByX(-s.keyboardSpeed,!1)}return n=e!=S||r!=b,n}var t,n,i=[];m&&i.push(O[0]),v&&i.push(x[0]),u.focus(function(){r.focus()}),r.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(r){if(r.target!==this&&(!i.length||!e(r.target).closest(i).length))return;var s=S,o=b;switch(r.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:t=r.keyCode,a();break;case 35:ct(h-f),t=null;break;case 36:ct(0),t=null}return n=r.keyCode==t&&s!=S||o!=b,!n}).bind("keypress.jsp",function(e){return e.keyCode==t&&a(),!n}),s.hideFocus?(r.css("outline","none"),"hideFocus"in l[0]&&r.attr("hideFocus",!0)):(r.css("outline",""),"hideFocus"in l[0]&&r.attr("hideFocus",!1))}function Tt(){r.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function Nt(){if(location.hash&&location.hash.length>1){var t,n,r=escape(location.hash.substr(1));try{t=e("#"+r+', a[name="'+r+'"]')}catch(i){return}t.length&&u.find(r)&&(l.scrollTop()===0?n=setInterval(function(){l.scrollTop()>0&&(pt(t,!0),e(document).scrollTop(l.position().top),clearInterval(n))},50):(pt(t,!0),e(document).scrollTop(l.position().top)))}}function Ct(){if(e(document.body).data("jspHijack"))return;e(document.body).data("jspHijack",!0),e(document.body).delegate("a[href*=#]","click",function(n){var r=this.href.substr(0,this.href.indexOf("#")),i=location.href,s,o,u,a,f,l;location.href.indexOf("#")!==-1&&(i=location.href.substr(0,location.href.indexOf("#")));if(r!==i)return;s=escape(this.href.substr(this.href.indexOf("#")+1)),o;try{o=e("#"+s+', a[name="'+s+'"]')}catch(c){return}if(!o.length)return;u=o.closest(".jspScrollable"),a=u.data("jsp"),a.scrollToElement(o,!0),u[0].scrollIntoView&&(f=e(t).scrollTop(),l=o.offset().top,(l<f||l>f+e(t).height())&&u[0].scrollIntoView()),n.preventDefault()})}function kt(){var e,t,n,r,i,s=!1;l.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(o){var u=o.originalEvent.touches[0];e=dt(),t=vt(),n=u.pageX,r=u.pageY,i=!1,s=!0}).bind("touchmove.jsp",function(u){if(!s)return;var a=u.originalEvent.touches[0],f=S,l=b;return o.scrollTo(e+n-a.pageX,t+r-a.pageY),i=i||Math.abs(n-a.pageX)>5||Math.abs(r-a.pageY)>5,f==S&&l==b}).bind("touchend.jsp",function(e){s=!1}).bind("click.jsp-touchclick",function(e){if(i)return i=!1,!1})}function Lt(){var e=vt(),t=dt();r.removeClass("jspScrollable").unbind(".jsp"),r.replaceWith(W.append(u.children())),W.scrollTop(e),W.scrollLeft(t),B&&clearInterval(B)}var s,o=this,u,a,f,l,c,h,p,d,v,m,g,y,b,w,E,S,x,T,N,C,k,L,A,O,M,_,D,P,H,B,j,F,I,q=!0,R=!0,U=!1,z=!1,W=r.clone(!1,!1).empty(),X=e.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";r.css("box-sizing")==="border-box"?(j=0,F=0):(j=r.css("paddingTop")+" "+r.css("paddingRight")+" "+r.css("paddingBottom")+" "+r.css("paddingLeft"),F=(parseInt(r.css("paddingLeft"),10)||0)+(parseInt(r.css("paddingRight"),10)||0)),e.extend(o,{reinitialise:function(t){t=e.extend({},s,t),V(t)},scrollToElement:function(e,t,n){pt(e,t,n)},scrollTo:function(e,t,n){ht(e,n),ct(t,n)},scrollToX:function(e,t){ht(e,t)},scrollToY:function(e,t){ct(e,t)},scrollToPercentX:function(e,t){ht(e*(c-a),t)},scrollToPercentY:function(e,t){ct(e*(h-f),t)},scrollBy:function(e,t,n){o.scrollByX(e,n),o.scrollByY(t,n)},scrollByX:function(e,t){var n=dt()+Math[e<0?"floor":"ceil"](e),r=n/(c-a);ut(r*E,t)},scrollByY:function(e,t){var n=vt()+Math[e<0?"floor":"ceil"](e),r=n/(h-f);st(r*y,t)},positionDragX:function(e,t){ut(e,t)},positionDragY:function(e,t){st(e,t)},animate:function(e,t,n,r){var i={};i[t]=n,e.animate(i,{duration:s.animateDuration,easing:s.animateEase,queue:!1,step:r})},getContentPositionX:function(){return dt()},getContentPositionY:function(){return vt()},getContentWidth:function(){return c},getContentHeight:function(){return h},getPercentScrolledX:function(){return dt()/(c-a)},getPercentScrolledY:function(){return vt()/(h-f)},getIsScrollableH:function(){return m},getIsScrollableV:function(){return v},getContentPane:function(){return u},scrollToBottom:function(e){st(y,e)},hijackInternalLinks:e.noop,destroy:function(){Lt()}}),V(i)}return r=e.extend({},e.fn.jScrollPane.defaults,r),e.each(["arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){r[this]=r[this]||r.speed}),this.each(function(){var t=e(this),n=t.data("jsp");n?n.reinitialise(r):(e("script",t).filter('[type="text/javascript"],:not([type])').remove(),n=new i(t,r),t.data("jsp",n))})},e.fn.jScrollPane.defaults={mouseoutHide:!0,mouseoutHideShow:!1,showArrows:!1,maintainPosition:!0,stickToBottom:!1,stickToRight:!1,clickOnTrack:!0,autoReinitialise:!1,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentHeight:n,contentWidth:n,animateScroll:!1,animateDuration:300,animateEase:"linear",hijackInternalLinks:!1,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:20,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:!1,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:!1,hideFocus:!1,keyboardSpeed:0,initialDelay:300,speed:300,scrollPagePercent:.8}})(jQuery,this)}),define("tip",["avalon","util"],function(e,t){var n=avalon.define("TipController",function(e){e.tipMark=!1,e.confirmMark=!1,e.deferred="",e.msg="",e.confirmTxt="确定",e.cancelTxt="取消",e.overLength=!1,e.setMessage=function(n,r,i,s){e.msg=n,e.tipMark=!0,e.overLength=t.strLength(n)>32,e.confirmTxt=i||"确定",e.cancelTxt=s||"取消";if(r)return e.confirmMark=!0,e.deferred=$.Deferred(),e.deferred;e.deferred="",e.confirmMark=!1},e.show=function(){e.tipMark=!0},e.close=function(){e.tipMark=!1,e.deferred&&e.deferred.reject()},e.confirm=function(){e.tipMark=!1,e.deferred.resolve()}});return avalon.scan(document.getElementById("tipCtrl")),n}),define("usedHistory",["avalon","skinApi"],function(e,t){var n=function(e){this.init(e)};n.prototype={constructor:n,init:function(e){if(!this.isInit){this.option=$.extend(!0,{},e),this.historyObj={},this.isInit=!1,this.key="UsedHistory_"+this.option.app;var n=!1,r=this;this.historyObj=JSON.parse(t.execute("getCurUserValue",this.key)||"{}"),avalon.each(this.historyObj,function(e,i){var s=t.execute("getThumbnail",i.name);s?(i.path=s,r.historyObj[i.id]=i):(delete r.historyObj[i.id],n=!0)}),n&&t.execute("setCurUserValue",this.key,JSON.stringify(this.historyObj)),this.isInit=!0}},_add:function(e){if(this.historyObj[e.id])return;var n=t.execute("getThumbnail",e.name);e.path=n,e.addTime=+(new Date),this.historyObj[e.id]=e},add:function(e){var n=this;switch(avalon.type(e)){case"object":n._add(e);break;case"array":var r,i;for(var s=0,o=e.length;s<o;s++)n._add(e[s])}t.execute("setCurUserValue",this.key,JSON.stringify(this.historyObj))},del:function(e){for(var n=0,r=e.length;n<r;n++)delete this.historyObj[e[n]];t.execute("setCurUserValue",this.key,JSON.stringify(this.historyObj))},getData:function(){var e=[];return avalon.each(this.historyObj,function(t,n){e.push(n)}),e.sort(function(e,t){return t.addTime-e.addTime}),e}};var r=function(){var e={wps:"",wpp:"",et:""},t=$("#app").val();return{init:function(){avalon.each(e,function(t,r){e[t]=new n({app:t})})},add:function(n,r){r?avalon.each(e,function(t,r){e[t].add(n)}):e[t].add(n)},del:function(n,r){r?avalon.each(e,function(t,r){e[t].del(n)}):e[t].del(n)},getData:function(n){var r=n||t;return e[r]?e[r].getData():[]}}}();return r}),define("login",["avalon","skinApi"],function(e,t){var n=avalon.define("LoginCtrl",function(e){e.isLogin=!1,e.userInfo={},e.httpUrl={wps:"http://wps.docer.wps.cn/v3.php/"+e.app+"/ajax",iwps:"http://i.wps.cn/index.php"},e.$skipArray=["isLogin","skinData","httpUrl"],e.init=function(){e.isLogin=t.execute("isUserLogin")},e.getCookie=function(e){var n=t.execute("getQingUserInfoCookie");if(n){var r=n.split(";");for(var i=0,s=r.length;i<s;i++){var o=r[i].split("=");if(o[0]===e)return o[1]}}return""},e.checkLogin=function(){var n=$.Deferred();return t.httpExecute("httpPost",{url:"http://wps.docer.wps.cn/v3.php/wpp/ajax/userinfo",cookie:{wps_sid:e.getCookie("wps_sid")},data:{},timeout:3e3,callback:function(r){t.httpExecute("httpGet",{url:"https://vip.wps.cn/webapi/user/licence",cookie:{wps_sid:e.getCookie("wps_sid")},data:{},timeout:3e3,callback:function(t){e.checkLoginCb(r,t,n)}})}}),n},e.checkLoginCb=function(t,n,r){if(t.error_code==="SUCCESS"){var i=JSON.parse(t.params.data);i.result==="ok"?(e.userInfo=i.data,n=JSON.parse(n.params.data),n.result==="ok"&&(e.userInfo.lic=n.data.remainingTime>0),r.resolve()):r.reject()}else r.reject()}});return n.init(),n}),define("main",["avalon","skinApi","filter","state-machine","jScrollPane","tip","collect","util","usedHistory","login","observer"],function(a,SkinApi,filter,StateMachine,jScrollPane,Tip,Collect,util,UsedHistory,login,Observer){var model;Collect.init(),Collect.send("show"),SkinApi.execute("setDragArea",0,0,655,29);var _date=new Date,DownLoadProgress=function(){var e,t,n,r,i;return{init:function(){e=$("#downloadProgress"),n=e.width(),r=e.height(),t=e[0].getContext("2d"),i=Progress().init({element:e})},drawRect:function(){t.fillStyle="#000",t.globalAlpha=.5,t.fillRect(0,0,n,r)},setProgress:function(e){t.clearRect(0,0,n,r),this.drawRect(),i.setProgress(e,!1)},show:function(){return e.show()},hide:function(){return e.hide()},getCanvas:function(){return e}}}(),DownLoadSysProgress=function(){var e,t,n,r,i;return{init:function(){e=$("#downloadSysProgress"),n=e.width(),r=e.height(),t=e[0].getContext("2d"),i=Progress().init({element:e})},drawRect:function(){t.fillStyle="#000",t.globalAlpha=.5,t.fillRect(0,0,n,r)},setProgress:function(e){t.clearRect(0,0,n,r),this.drawRect(),i.setProgress(e,!1)},show:function(){return e.show()},hide:function(){return e.hide()},getCanvas:function(){return e}}}(),EditSkinProgress=function(){var e=$("#editSkinProgress"),t;return{init:function(){t=Progress().init({element:e,text:{style:"#464646"},inSideCircle:{style:"#dddddd"},outSideCircle:{style:"6fbf39"}})},setProgress:function(e){t.setProgress(e,!0)},getCanvas:function(){return e}}}(),Progress=function(){var e,t,n,r,i,s=-(Math.PI/2),o,u;return{init:function(s){return u=$.extend(!0,{radius:20,text:{font:"10px Arial",style:"#fff",alpha:1},outSideCircle:{style:"#fff",alpha:1,lineWidth:2.5},inSideCircle:{style:"#fff",alpha:.3,lineWidth:2}},s),e=u.element,o=e[0].getContext("2d"),t=e.width(),n=e.height(),r=t/2,i=n/2,this},drawCircle:function(e){var t=u.inSideCircle,n=u.outSideCircle;o.beginPath(),o.globalAlpha=t.alpha,o.strokeStyle=t.style,o.lineWidth=t.lineWidth,o.arc(r,i,u.radius+n.lineWidth-t.lineWidth,0,Math.PI*2,!1),o.stroke(),o.beginPath(),o.globalAlpha=n.alpha,o.strokeStyle=n.style,o.lineWidth=n.lineWidth,o.arc(r,i,u.radius,s,Math.PI*2/100*(e-25),!1),o.stroke()},drawText:function(e){o.beginPath();var t=e+"%",n=0,s=u.text;o.font=s.font,o.fillStyle=s.style,o.globalAlpha=s.alpha,n=o.measureText(t).width,o.fillText(t,r-n/2,i+10/3)},setProgress:function(e,r){r&&o.clearRect(0,0,t,n),o.beginPath(),this.drawCircle(e),this.drawText(e)}}},path="../script/css/img/skin/"+$("#app").val()+"/",defaultSysSkinData=[{remark:"2013 清新蓝",imgUrl:path+"2013blue.png",name:"2013blue",tempName:"2013blue",skinType:1},{remark:"2012风格 (重启生效)",imgUrl:path+"2012.png",name:"rainbow",tempName:"classic_rainbow",url:"http://img1.skin.cache.wps.cn/wpsskin/file/sysskin/classic_rainbow.kws",skinType:3},{remark:"经典风格 (重启生效)",imgUrl:path+"2003.png",name:"classic",tempName:"classic_rainbow",url:"http://img1.skin.cache.wps.cn/wpsskin/file/sysskin/classic_rainbow.kws",skinType:3}];SkinApi.execute("isSupport2016")&&(defaultSysSkinData=[{remark:"2013 素雅黑",imgUrl:path+"2013_black.png",name:"2013",tempName:"2013",skinType:1},{remark:"2013 清新蓝",imgUrl:path+"2013blue.png",name:"2013blue",tempName:"2013blue",skinType:1},{remark:"经典风格 (重启生效)",imgUrl:path+"2003.png",name:"classic",tempName:"classic_rainbow",url:"http://img1.skin.cache.wps.cn/wpsskin/file/sysskin/classic_rainbow.kws",skinType:3}]),model=avalon.define("MainController",function(vm){vm.loadingMark=!0,vm.app=$("#app").val(),vm.showSkinMark=!1,vm.showSettingMark=!1,vm.selectSkinData="",vm.defaultData=[],vm.skinData=[],vm.skinDataTotalNum=0,vm.mySkinData=[],vm.sysSkinData=[],vm.sysSkinMap={},vm.manageSkinData=[],vm.cateTagData=[{name:"2016版"},{name:"2013版"}],vm.tagMark=0,vm.cateIndexMark=-1,vm.selectMark="",vm.sysSkinMark="",vm.mySkinMark="",vm.skinDataPage=1,vm.mySkinDataPage=1,vm.loadingSkinData=!1,vm.loadingId=0,vm.editSkinMark=!1,vm.isOk=!1,vm.jsp="",vm.myJsp="",vm.manageJsp="",vm.skinHeight=132,vm.networkError=!1,vm.initSkinDeferred="",vm.usedSkinName="",vm.usedSkinNameKey="usedSkinName_"+vm.app,vm.newestIdKey="newestId_"+vm.app,vm.delSkinData=[],vm.delSkinDataIds=[],vm.firstTagName="推荐皮肤",vm.secTagName="全部",vm.httpUrl={wps:"http://wps.docer.wps.cn/v3.php/wpp/ajax",proxy:"http://wps.docer.wps.cn/v3.php/proxy",iwps:"http://i.wps.cn/index.php",wps2016:"http://wps.docer.wps.cn/v3.php/api/skin/recommend"},vm.downloadName="",vm.isNew=!1,vm.loginTipMark=!1,vm.delSkinIndex=-1,vm.delSkinTip=!1,vm.wpsSid="",vm.likeSkinIndex=-1,vm.allApplySkin={},vm.allApply=!0,vm.selectCollectMark=-1,vm.collectSkinData=[],vm.collectSkinDataTotalNum=0,vm.loadingCollectMark=!1,vm.oldTag=-1,vm.skinCollectDataPage=1,vm.loadingSkinCollectData=!1,vm.delCollecting=!1,vm.$skipArray=["app","selectSkinData","jsp","myJsp","manageJsp","isInitMySkinData","skinHeight","initSkinDeferred","httpUrl","firstTagName","secTagName","downloadName","delSkinDataIds","usedSkinNameKey","sysSkinMap","wpsSid","likeSkinIndex","oldTag","skinCollectDataPage","delCollecting"],vm.init=function(){vm.allApplySkin=eval("("+SkinApi.execute("getAllAppliedSkin")+")")||{};var allApply=SkinApi.execute("getCurUserValue","allApply");vm.allApply=allApply==="true",vm.sysSkinMap={2013:1,"2013blue":1,rainbow:1,classic:1},vm.defaultData=[{remark:"2013 素雅黑 (默认)",imgUrl:path+"2013black.png",name:"2013",skinType:1}],vm.sysSkinData=[{remark:"2013 清新蓝",imgUrl:path+"2013blue.png",name:"2013blue",tempName:"2013blue",skinType:1}],SkinApi.execute("isSupport2016")?(vm.sysSkinMap["2013blue"]=1,vm.sysSkinMap["2013black"]=1,vm.defaultData=[{remark:"2016 卓越白(默认)",imgUrl:path+"2016white.png",name:"2016white",tempName:"2016white",skinType:1,ext:{skin_version:"2016"}}],vm.sysSkinData=[{remark:"2013 素雅黑",imgUrl:path+"2013_black.png",name:"2013",tempName:"2013",skinType:1},{remark:"2013 清新蓝",imgUrl:path+"2013blue.png",name:"2013blue",tempName:"2013blue",skinType:1}]):vm.cateTagData=[],SkinApi.execute("isSysSkinReady")&&(vm.sysSkinData=defaultSysSkinData.concat()),UsedHistory.init(),EditSkinProgress.init(),vm.updateUsedSkinName(),SkinApi.execute("setSkinSwitchSize","688","502"),window.sysSkinReady=function(){vm.sysSkinData=defaultSysSkinData.concat()}},vm.initSkin=function(){vm.networkError||(vm.loadingMark=!0,vm.updateSkinData(),vm.isNew=SkinApi.execute("needShowNewSkinTip"),DownLoadProgress.init(),DownLoadSysProgress.init(),vm.wpsSid=vm.getCookie("wps_sid"),$("#scrollDiv").bind("jsp-scroll-y",function(e,t,n,r){r&&!vm.loadingSkinData&&vm.skinDataTotalNum/40>vm.skinDataPage&&(vm.skinDataPage=vm.skinDataPage+1,vm.loadingSkinData=!0,vm.updateSkinData())}),$("#collectScrollDiv").bind("jsp-scroll-y",function(e,t,n,r){r&&!vm.loadingSkinCollectData&&vm.collectSkinDataTotalNum/40>vm.skinCollectDataPage&&(vm.skinCollectDataPage=vm.skinCollectDataPage+1,vm.loadingSkinCollectData=!0,vm.updateCollectData())}))},vm.refresh=function(){vm.networkError=!1},vm.updateUsedSkinName=function(){vm.usedSkinName=SkinApi.execute("getCurrentSkinFolderName")},vm.initMySkin=function(){vm.isInitMySkinData||(vm.updateMySkinData(),vm.isInitMySkinData=!0)},vm.updateSkinData=function(){vm.loadingMark=!0,vm.isOk=!1;var e=-100,t="skin_index_vip";if(SkinApi.execute("isSupport2016")){if(vm.cateIndexMark>=0&&vm.cateTagData[vm.cateIndexMark]){var n=vm.cateTagData[vm.cateIndexMark].name;n.indexOf("2016版")!=-1?(e=-1,t="2016"):n.indexOf("2013版")!=-1&&(e=-1,t="2013")}else e=-1,t="2016_all";SkinApi.httpExecute("httpGet",{url:vm.httpUrl.wps2016+"?type="+t+"&page=1&offset=80",timeout:3e3,callback:vm.getSkinData});return}e=e==-100?vm.cateIndexMark:e;switch(e){case-1:SkinApi.httpExecute("httpPost",{url:vm.httpUrl.proxy,data:{wps_proxy:"op",wps_act:"act=rec_moban",position:t,mb_app:3,from_cache:0,simple_struct:1,page:1,offset:40,mb_platform:128},timeout:3e3,callback:vm.getSkinData});break;case-2:SkinApi.httpExecute("httpPost",{url:vm.httpUrl.wps+"/lucky?vip=1&is_vip=0",data:{platform:5,limit:40},timeout:3e3,callback:vm.getSkinData});break;default:SkinApi.httpExecute("httpPost",{url:vm.httpUrl.wps+"/search_by_tag",data:{platform:5,vip:1,page:vm.skinDataPage,limit:40,term:vm.cateTagData[vm.cateIndexMark].name},timeout:3e3,callback:vm.getSkinData})}},vm.getSkinData=function(e){var t=$.Deferred();if(e.error_code==="SUCCESS"){var n=JSON.parse(e.params.data);if(n.result==="ok"&&n.data){var r=n.data.moban||n.data.data||n.data;if(r.data==""||!r)r=[];var i=FormatData.format("skinData",r);vm.checkDataIsCollect(i).done(function(){vm.skinDataPage===1?SkinApi.execute("isSupport2016")&&vm.cateIndexMark>=0&&vm.cateTagData[vm.cateIndexMark]&&vm.cateTagData[vm.cateIndexMark].name&&vm.cateTagData[vm.cateIndexMark].name.indexOf("2013版")!=-1?vm.skinData=i:vm.skinData=vm.defaultData.concat(i):vm.skinData=vm.skinData.concat(i)}).always(function(){t.resolve()}),vm.skinDataTotalNum=n.data.total_num}}else t.resolve();t.done(function(){avalon.nextTick(function(){vm.jsp&&vm.jsp.scrollToY(0),vm.jsp=$("#scrollDiv").jScrollPane({contentWidth:693,contentHeight:Math.ceil(vm.skinData.length/3)*vm.skinHeight+3}).data("jsp")}),vm.loadingSkinData=!1,vm.loadingMark=!1})},vm.clickSkin=function(e){var t=$(e.target),n=t.parents("li"),r=t.attr("isLikeBtn"),i=n.attr("skinIndex");if(i!==undefined)if(r){vm.likeSkinIndex=+i;var s=vm.skinData[vm.likeSkinIndex];s.isLike?vm.delCollect(s):vm.addCollect(s)}else vm.selectMark=+i,skinSelectFsm.selectSkin(),vm.selectSkin(n,i);e&&e.preventDefault()},vm.selectCollectSkin=function(e){var t=$(e.target),n=t.parents("li"),r=t.attr("isLikeBtn"),i=n.attr("skinIndex");if(i!==undefined)if(r){if(!vm.delCollecting){vm.delCollecting=!0,vm.likeSkinIndex=+i;var s=vm.collectSkinData[vm.likeSkinIndex];vm.delCollect(s,function(e,t){e?t.result==="ok"&&$("#collect_"+i).fadeOut(600,function(){var e=vm.collectSkinData.$model.concat(),t=e.splice(i,1);vm.collectSkinData=e,vm.reinitCollectJsp(),vm.delCollecting=!1}):vm.delCollecting=!1})}}else vm.selectCollectMark=+i,skinSelectFsm.selectCollectSkin(),vm.selectSkin(n,i);e&&e.preventDefault()},vm.updateCollectData=function(){vm.loadingCollectMark||(vm.loadingCollectMark=!0,SkinApi.httpExecute("httpGet",{url:vm.httpUrl.wps+"/my_fav?limit=40&platform=5&file_type=1&from_cache=0&offset="+(vm.skinCollectDataPage-1)*40+"&_t="+ +(new Date),cookie:{wps_sid:vm.wpsSid},timeout:3e3,callback:vm.getCollectSkinData}))},vm.addCollect=function(e){login.isLogin?SkinApi.httpExecute("httpPost",{url:vm.httpUrl.wps+"/add_fav",cookie:{wps_sid:vm.wpsSid},data:{moban_id:e.id,platform:5,file_type:1},timeout:3e3,callback:function(t){vm.addCollectFunc(t,e)}}):vm.needLogin()},vm.delCollect=function(e,t){login.isLogin?SkinApi.httpExecute("httpPost",{url:vm.httpUrl.wps+"/del_fav",cookie:{wps_sid:vm.wpsSid},data:{ids:e.id},timeout:3e3,callback:function(n){vm.delCollectFunc(n,e,t)}}):vm.needLogin()},vm.needLogin=function(){var e=Tip.setMessage("您当前的操作需要先登录会员账号。",!0,"立即登录");e.done(function(){vm.login()})},vm.checkDataIsCollect=function(e){var t=$.Deferred();if(login.isLogin){var n="";for(var r=0,i=e.length;r<i;r++)e[r].id&&(n+=e[r].id+":");n=n.substring(0,n.length-1),n?SkinApi.httpExecute("httpGet",{url:vm.httpUrl.wps+"/is_collected?meta_ids="+n,cookie:{wps_sid:vm.wpsSid},timeout:3e3,callback:function(n){if(n.error_code==="SUCCESS"){var r=JSON.parse(n.params.data);if(r.result==="ok"){var i=r.data||[],s={};for(var o=0,u=i.length;o<u;o++)s[i[o]]=!0;for(var o=0,u=e.length;o<u;o++){var a=e[o];a.isLike=!!s[a.id]}}}t.resolve()}}):t.resolve()}else t.resolve();return t},vm.removeCollectState=function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];r.id&&(r.isLike=!1)}},vm.selectSkin=function(e,t){if(t!==undefined){var n=vm.selectSkinData,r=n.name,i=n.skinType;Collect.send("clickskin",r,vm.selectMark,vm.firstTagName,vm.secTagName);if(vm.usedSkinName===r||i===1)vm.previewSkin();else if(SkinApi.execute("isSkinPackExist",r,!1)||SkinApi.execute("isNotNeedDownload",r))vm.previewSkin();else{if(n.mobanType==="3"){if(!login.isLogin){vm.needLogin();return}var s=login.userInfo;if(s.vip.memberid<=10&&!s.lic){vm.showVipTip();return}}vm.downloadName!==r&&(vm.cancelDownload(),e.append(DownLoadProgress.show()),vm.isOk=!1,vm.getSkinDownloadData())}}},vm.updateMySkinData=function(){vm.mySkinData=UsedHistory.getData(),avalon.nextTick(function(){vm.myJsp&&vm.myJsp.scrollToY(0),vm.myJsp=$("#myScrollDiv").jScrollPane({contentWidth:693,contentHeight:Math.ceil(vm.mySkinData.length/3)*vm.skinHeight+202}).data("jsp")})},vm.updateManageSkin=function(){vm.manageSkinData=UsedHistory.getData(),avalon.nextTick(function(){vm.manageJsp&&vm.manageJsp.scrollToY(0),vm.manageJsp=$("#manageScrollDiv").jScrollPane({contentWidth:693,contentHeight:Math.ceil(vm.manageSkinData.length/3)*vm.skinHeight+3}).data("jsp")})},vm.reinitMyManageJsp=function(){vm.manageJsp.scrollToY(0),vm.manageJsp.reinitialise({contentHeight:Math.ceil(vm.manageSkinData.length/3)*vm.skinHeight+3})},vm.reinitCollectJsp=function(){vm.collectJsp.scrollToY(0),vm.collectJsp.reinitialise({contentHeight:Math.ceil(vm.collectSkinData.length/3)*vm.skinHeight+3})},vm.selectMySkin=function(e,t){var n,r=!1;if(e){var i=$(e.target),s=i.parents("li");r=i.attr("isLikeBtn"),n=s.attr("skinIndex"),e.preventDefault()}else n=t||0;if(n!==undefined)if(r){vm.likeSkinIndex=+n;var o=vm.mySkinData[vm.likeSkinIndex];o.isLike?vm.delCollect(o):vm.addCollect(o)}else{vm.mySkinMark=+n,skinSelectFsm.selectMySkin();var u=vm.selectSkinData.name;vm.isOk=vm.usedSkinName!==u,vm.loginTipMark=!1,vm.previewSkin()}},vm.downloadSkin=function(e){model.downloadName=vm.selectSkinData.name,vm.loadingId&&SkinApi.execute("cancelDownload",vm.loadingId),vm.loadingId=SkinApi.execute("download",e)},vm.updateCate=function(){SkinApi.httpExecute("httpPost",{url:vm.httpUrl.wps+"/commend_tags",data:{platform:5,position:"skin_top"},timeout:3e3,callback:vm.updateCateCb})},vm.previewSkin=function(){var e=vm.selectSkinData,t=e.name;SkinApi.execute("previewSkin",t),vm.confirmSkin()},vm.selectTag=function(e,t){vm.resetDelTip();var n=function(){var n=t||0;if(e){var r=$(e.target);n=+r.attr("tagIndex")||0,vm.firstTagName=r.text()}switch(n){case 0:vm.tagMark=n,vm.cateIndexMark=-1,vm.updateSkinData();break;case 1:vm.updateMySkinData(),vm.loadingMark=!1,vm.loadingCollectMark=!1;break;case 4:Collect.send("clicksetting",1),vm.updateManageSkin(),vm.loadingCollectMark=!1;break;case 6:if(!login.isLogin){vm.login();return}vm.tagMark=n;if(!!vm.networkError){vm.loadingCollectMark=!1;return}vm.updateCollectData()}vm.tagMark=n,vm.delSkinData=[],vm.delSkinDataIds=[]};if(vm.delSkinData.length){var r=Tip.setMessage("是否保存删除皮肤的操作？",!0);r.done(function(){vm.confirmDelSkin()}).always(function(){n(e,t)}),e&&e.preventDefault();return}n(e,t),e&&e.preventDefault()},vm.checkTag=function(e){return vm.tagMark===e},vm.selectCate=function(e,t){var n=t||$(e.target).attr("cateIndex");t===-2&&Collect.send("clickbtn",0);if(n!==undefined){if(e){var r=$(e.target);Collect.send("clicksectag",r.text()),vm.secTagName=r.text()}vm.loadingMark=!0,vm.skinData=[],vm.cateIndexMark=+n,vm.skinDataPage=1,vm.jsp.scrollToY(0),vm.updateSkinData(),skinSelectFsm.selectCate()}e&&e.preventDefault()},vm.checkCateIndex=function(e){return vm.cateIndexMark===e},vm.selectSysSkin=function(e){var t=$(e.target).parents("li"),n=t.attr("sysSkinMark");if(n!==undefined&&vm.sysSkinData[n]&&vm.sysSkinData[n].name!="2016black"){vm.sysSkinMark=+n,skinSelectFsm.selectSysSkin();var r=vm.selectSkinData,i=r.name;vm.isOk=vm.usedSkinName!==i;if(r.skinType===3){if(SkinApi.execute("isSkinPackExist",r.tempName,!1)){vm.confirmSkin();return}vm.downloadName!==i&&(vm.cancelDownload(),t.append(DownLoadSysProgress.show()),vm.isOk=!1,vm.loadingId=SkinApi.execute("downloadClassicRainbow"))}else vm.previewSkin(i)}e&&e.preventDefault()},vm.checkSysSkin=function(e){return vm.sysSkinMark===e},vm.clickSkinSelect=function(e){var t=$(e.target).attr("selectMark"),n;switch(t){case"upload":n=1,vm.upload();break;case"edit":n=2,SkinApi.execute("isSkinEditorExist")?vm.openSkinEdit():(EditSkinProgress.setProgress(0),vm.editSkinMark=!0,SkinApi.execute("downloadSkinEditor","http://wdl1.cache.wps.cn/wps/download/wpsskineditor.exe"));break;case"reset":n=3,vm.resetDefaultSkin()}Collect.send("clickcustom",n)},vm.resetDefaultSkin=function(){vm.sysSkinMark=0,skinSelectFsm.selectSysSkin(),vm.previewSkin(vm.selectSkinData.name),vm.isOk=vm.usedSkinName!==vm.selectSkinData.name},vm.toggleSetting=function(e,t){vm.showSettingMark=t?!1:!vm.showSettingMark,e&&e.preventDefault(),e.stopPropagation()},vm.toggleSkinSelect=function(e,t){!t&&Collect.send("clickcustom",0),vm.showSkinMark=t?!1:!vm.showSkinMark,e&&e.preventDefault(),e.stopPropagation()},vm.moveWindow=function(){SkinApi.execute("dragSkinSwitch")},vm.openLink=function(e,t,n){SkinApi.execute("openLink",t,!!n),e&&e.preventDefault()},vm.closeWin=function(e,t){Collect.send("clickbtn",t?2:3),vm.cancelDownload(),Collect.send("staytime",Math.ceil(new Date-_date)/1e3),avalon.nextTick(function(){SkinApi.execute("closeSkinSwitch")}),e&&e.preventDefault()},vm.cancelDownloadBtn=function(e,t){Collect.send("clickbtn",t?2:3),vm.cancelDownload(),e&&e.preventDefault()},vm.cancelDownload=function(){vm.loadingId&&(SkinApi.execute("cancelDownload",vm.loadingId),vm.loadingId=0,DownLoadProgress.hide(),DownLoadProgress.setProgress(0))},vm.checkDownload=function(){var e=$.Deferred();return SkinApi.httpExecute("httpPost",{url:vm.httpUrl.wps+"/dl",cookie:{wps_sid:vm.wpsSid},data:{id:vm.selectSkinData.id,from:"client",app:"skin",platform:5},timeout:3e3,callback:function(t){if(t.error_code==="SUCCESS"){var n=JSON.parse(t.params.data);n.result==="ok"?e.resolve():e.reject()}else e.reject()}}),e},vm.checkConfirmSkin=function(){var e=vm.selectSkinData,t=e.name,n=e.skinType;vm.isOk=!1;if(n===1||n===2)vm.confirmSkin();else{if(SkinApi.execute("isSkinPackExist",t,!1)){vm.confirmSkin();return}var r=vm.checkDownload();r.done(function(){vm.isOk=!0;var e=vm.skinData[vm.selectMark].down;vm.skinData[vm.selectMark].down=+e+1,vm.confirmSkin()}).fail(function(){vm.isOk=!0,Tip.setMessage("皮肤应用失败")})}},vm.confirmSkin=function(){var e=vm.selectSkinData,t=e.name,n=e.skinType,r=SkinApi.execute(vm.allApply?"switchAllModuleSkin":"switchSkin",t);Collect.send("applyskin",login.isLogin?login.userInfo.uid:"",t,r?0:1),r?(n!==1&&n!==3&&vm.addUsedData(),vm.isOk=!1,vm.usedSkinName=t,vm.allApply?avalon.each(vm.allApplySkin.$model,function(e,n){vm.allApplySkin[e]=t}):vm.allApplySkin[vm.app]=t):Tip.setMessage("皮肤应用失败")},vm.confirm=function(e){Collect.send("clickbtn",1),vm.isOk&&(vm.tagMark===1?vm.confirmSkin():vm.checkConfirmSkin()),e&&e.preventDefault()},vm.returnFoo=function(){Collect.send("clickbtn",4),vm.selectTag()},vm.addUsedData=function(){UsedHistory.add(vm.selectSkinData.$model,!0)},vm.getSkinDownloadData=function(){SkinApi.httpExecute("httpGet",{url:"http://wps.docer.wps.cn/v3.php/api/skin/dl?id="+vm.selectSkinData.id,cookie:{wps_sid:vm.wpsSid},timeout:3e3,callback:function(e){if(e.error_code==="SUCCESS"){var t=JSON.parse(e.params.data);if(t.result==="ok"&&t.data.length!==0){var n=vm.selectSkinData.downUrl=FormatData.format("skinData",[t.data])[0].downUrl;vm.downloadSkin(n)}}}})},vm.getSkinName=function(e){return e.match(/[\W\w]*\/([\W\w]*)\./)[1]},vm.clickDelSkinBtn=function(e){var t=$(e.target).attr("manageSkinIndex");t!==undefined&&(vm.delSkinIndex=t,$("#delTip_"+t).html($("#delTip")),avalon.nextTick(function(){vm.delSkinTip=!0}))},vm.clickConfirmDelSkinBtn=function(e){vm.resetDelTip(),vm.delSkin(vm.delSkinIndex),vm.confirmDelSkin(),e.preventDefault()},vm.clickCancelDelSkinBtn=function(e){vm.resetDelTip(),e.preventDefault()},vm.resetDelTip=function(){vm.delSkinTip=!1,$("body").append($("#delTip"))},vm.delSkin=function(e){var t=vm.manageSkinData[e],n=vm.manageSkinData.$model.concat();if(vm.usedSkinName!==t.name){var r=n.splice(e,1);vm.manageSkinData=n,vm.delSkinData.push(r[0].name),vm.delSkinDataIds.push(r[0].id),vm.reinitMyManageJsp()}},vm.confirmDelSkin=function(){SkinApi.execute("deleteLocalSkin",vm.delSkinData),UsedHistory.del(vm.delSkinDataIds,!0),Collect.send("deleteskin",vm.delSkinData.$model.join(",")),vm.delSkinData=[],vm.delSkinDataIds=[]},vm.confirmDelSkinBtn=function(){Collect.send("clickbtn",5),vm.confirmDelSkin(),vm.selectTag()},vm.checkNetwork=function(e){vm.loadingMark=!0,vm.networkError=!1,SkinApi.execute("checkNetwork","callback.checkNetwork",2e3)},vm.checkCollectNetwork=function(e){vm.loadingCollectMark=!0,vm.networkError=!1,SkinApi.execute("checkNetwork","callback.checkCollectNetwork",2e3)},vm.checkUsed=function(e){return vm.usedSkinName===e},vm.getCookie=function(e){var t=SkinApi.execute("getQingUserInfoCookie");if(t){var n=t.split(";");for(var r=0,i=n.length;r<i;r++){var s=n[r].split("=");if(s[0]===e)return s[1]}}return""},vm.sendCollect=function(){Collect.send.apply(Collect,arguments)},vm.getCollectSkinData=function(e){if(e.error_code==="SUCCESS"){var t=JSON.parse(e.params.data);if(t.result==="ok"&&t.data){var n=FormatData.format("skinData",t.data.moban||t.data.data||t.data);vm.skinCollectDataPage===1?vm.collectSkinData=n:vm.collectSkinData=vm.collectSkinData.concat(n),vm.collectSkinDataTotalNum=t.data.total_num}else vm.collectSkinData=[],vm.collectSkinDataTotalNum=0}else vm.collectSkinData=[],vm.collectSkinDataTotalNum=0;avalon.nextTick(function(){vm.collectJsp&&vm.collectJsp.scrollToY(0),vm.collectJsp=$("#collectScrollDiv").jScrollPane({contentWidth:693,contentHeight:Math.ceil(vm.collectSkinData.length/3)*vm.skinHeight+3}).data("jsp")}),vm.loadingCollectMark=!1,vm.loadingSkinCollectData=!1},vm.upload=function(){var e=SkinApi.execute("getCurUserValue","skinPackPath")||"C:\\Users\\admin\\Downloads\\",t=SkinApi.execute("selectLocalSkinPack",e),n=/^([\S\s]*\/)([\S\s]+).kws$/,r=t.match(n)||[],i=r[2]||"";i&&(SkinApi.execute("setCurUserValue","skinPackPath",r[1]),vm.sysSkinMap[i]||SkinApi.execute("isSkinPackExist",i,!0)?Tip.setMessage("本地已存在同名的皮肤包，请更改皮肤包文件名后，再次载入。"):SkinApi.execute("upload",t,"callback.upload"))},vm.getLikeHistory=function(){var e=SkinApi.execute("getCurUserValue",login.userInfo.uid+"_like");return e?JSON.parse(e):{}},vm.addLikeHistory=function(e){var t=vm.getLikeHistory();t[e]=!0,SkinApi.execute("setCurUserValue",login.userInfo.uid+"_like",JSON.stringify(t))},vm.uploadFunc=function(e,t,n,r,i){e?(UsedHistory.add({id:n,name:n,author:r,path:i,skinType:2},!0),vm.selectTag("",1),vm.selectMySkin("",0)):Tip.setMessage("皮肤载入失败！")},vm.addCollectFunc=function(e,t){if(e.error_code==="SUCCESS"){var n=JSON.parse(e.params.data);n.result==="ok"?(t.isLike=!0,t.like=+t.like+1,Collect.send("like",login.userInfo.uid,t.name,0)):n.msg==="one"&&(t.isLike=!0,t.like=+t.like+1)}else Tip.setMessage("无法连接服务器，请检查您的网络连接。")},vm.delCollectFunc=function(e,t,n){if(e.error_code==="SUCCESS"){var r=JSON.parse(e.params.data);r.result==="ok"&&(t.isLike=!1,t.like=+t.like-1,Collect.send("like",login.userInfo.uid,t.name,1)),n&&n(!0,r)}else Tip.setMessage("无法连接服务器，请检查您的网络连接。"),n&&n(!1)},vm.updateCateCb=function(e){if(e.error_code==="SUCCESS"){var t=JSON.parse(e.params.data);t.result==="ok"&&t.data.length!==0&&(vm.cateTagData=t.data.tag)}},vm.openSkinEdit=function(){vm.editSkinMark=!1;var e=SkinApi.execute("openSkinPackage","");e?Collect.send("openskinedit",0):(Collect.send("openskinedit",1),Tip.setMessage("打开皮肤编辑器失败！"))},vm.login=function(){SkinApi.execute("popLoginDialog")},vm.loginTipConfirm=function(){vm.login(),vm.loginTipMark=!1},vm.checkApplySkin=function(e){var t=vm.allApplySkin.$model,n=!1;return avalon.each(t,function(t,r){if(e===r){n=!0;return}}),n},vm.getDelTip=function(e){var t=vm.allApplySkin.$model,n={wps:"文字",wpp:"演示",et:"表格"},r="";return avalon.each(t,function(t,i){e===i&&(r+=n[t]+"、")}),r.substring(0,r.length-1)+"正在使用本皮肤<br/>不可删除"},vm.selectAllApply=function(){vm.allApply=!vm.allApply,Collect.send("clickbtn",vm.allApply?9:10),SkinApi.execute("setCurUserValue","allApply",vm.allApply)},vm.updateCollectState=function(){switch(vm.tagMark){case 0:vm.loadingMark=!0,vm.checkDataIsCollect(vm.skinData).always(function(){vm.loadingMark=!1})}},vm.showVipTip=function(){var e=Tip.setMessage("您还不是WPS会员，开通WPS会员<br/>即可使用全部皮肤及诸多会员特权。",!0,"开通会员","取消");e.done(function(){SkinApi.execute("openLink","https://vip.wps.cn/pay/member/20/",!0)})},vm.returnTag=function(){vm.selectTag("",0)},vm.$watch("tagMark",function(e,t){vm.oldTag=t})});var skinSelectFsm=StateMachine.create({initial:"skin",events:[{name:"selectSkin"},{name:"selectMySkin"},{name:"selectSysSkin"},{name:"selectCollectSkin"},{name:"selectCate"}],callbacks:{onselectSkin:function(){model.sysSkinMark="",model.mySkinMark="",model.selectCollectMark="",model.selectSkinData=model.skinData[model.selectMark]},onselectMySkin:function(){model.sysSkinMark="",model.selectMark="",model.selectCollectMark="",model.secTagName="最近使用皮肤",model.selectSkinData=model.mySkinData[model.mySkinMark]},onselectSysSkin:function(){model.selectMark="",model.mySkinMark="",model.selectCollectMark="",model.secTagName="系统皮肤",model.loginTipMark=!1,model.selectSkinData=model.sysSkinData[model.sysSkinMark]},onselectCollectSkin:function(){model.selectMark="",model.sysSkinMark="",model.mySkinMark="",model.selectSkinData=model.collectSkinData[model.selectCollectMark]},onselectCate:function(){model.selectMark="",model.mySkinMark="",model.sysSkinMark="",model.selectSkinData=[]}}}),FormatData=function(){var e={skinData:{keyMap:{id:{key:"id",fn:function(e){return this.isLike=!1,e}},author:"author",remark:{key:"name",fn:function(e){return e.substring(0,e.length-4)}},name:{key:"name",fn:function(e){return e.substring(0,e.length-4)}},down:"down_number",like:{key:"like_num",fn:function(e){return e||0}},price:{key:"price",fn:function(e){return e||0}},imgUrl:{key:"thumb_big_url",fn:function(e){return["http://img1","http://img2"][Math.round(Math.random())]+".skin.cache.wps.cn/wpsskin"+e}},downUrl:{key:"storage_url",fn:function(e){return["http://img1","http://img2"][Math.round(Math.random())]+".skin.cache.wps.cn/wpsskin"+e}},mobanType:{key:"moban_type"},ext:{key:"ext"}},ignore:["id","name","imgUrl","downUrl","mobanType"]}};return{format:function(t,n){var r=e[t];if(r){var i=[],s=r.keyMap;return avalon.each(n,function(e,t){var o={};avalon.each(s,function(t,r){var i=n[e];avalon.isPlainObject(r)?o[t]=r.fn?r.fn.call(o,i[r.key]):i[r.key]:o[t]=i[r]}),o.$skipArray=r.ignore,i.push(o)}),i}return n}}}();SkinApi.execute("checkNetwork","callback.checkNetwork",2e3),model.init(),window.callback={checkNetwork:function(e){model.networkError=!e,e&&login.checkLogin().always(function(){model.initSkin()})},checkCollectNetwork:function(e){model.networkError=!e,e&&login.checkLogin().always(function(){model.selectTag("",6)})},upload:function(e,t,n,r,i){model.uploadFunc(e,t,n,r,i)}},window.progressChanged=function(e,t){model.loadingId===e&&(model.selectSkinData.skinType===3?DownLoadSysProgress.setProgress(t):DownLoadProgress.setProgress(t))},window.downloadCountChanged=function(e){},window.downloadFinished=function(e){if(model.loadingId===e){var t=model.selectSkinData,n=model.downloadName,r=t.name;model.downloadName="",model.previewSkin(r),setTimeout(function(){t.skinType===3?(DownLoadSysProgress.hide(),DownLoadSysProgress.setProgress(0)):(DownLoadProgress.hide(),DownLoadProgress.setProgress(0))},500),model.loadingId=0}},window.downloadFailed=function(e){Tip.setMessage("无法连接服务器，请检查您的网络连接。");var t=model.selectSkinData;model.downloadName="",DownLoadProgress.hide(),model.loadingId=0,Collect.send("downloaderror",util.replaceUrl(t.downUrl),t.name)},window.skinEditorProgressChanged=function(e){EditSkinProgress.setProgress(e)},window.skinEditorDownloadFinished=function(){EditSkinProgress.setProgress(100),setTimeout(function(){model.openSkinEdit()},300)},window.skinEditorDownloadFailed=function(){Tip.setMessage("皮肤编辑器下载失败！"),model.editSkinMark=!1},Observer("userStateChanged").subscribe(function(e,t){SkinApi.execute("setCookieValue","wps_sid",t,new Date+1e7),setTimeout(function(){window.location.reload()},500)}),Observer("skinChanged").subscribe(function(){window.location.reload()});var filterSelect={INPUT:!0,TEXTAREA:!0};return document.oncontextmenu=function(e){var e=e||event;e.returnValue=!1},document.onselectstart=function(e){var e=e||event,t=e.srcElement;return e&&filterSelect[t.tagName]?!0:!1},document.ondragstart=function(e){var e=e||event,t=e.srcElement;return e&&filterSelect[t.tagName]?!0:!1},$(document).keydown(function(){return!1}),avalon.scan(),model}),define("load-dev",function(){});