text: /*!  Zving JS library mergedfile  
  * compress at 2016/06/01 
  */
  /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
  !function(d,c){"object"==typeof module&&"object"==typeof module.exports?module.exports=d.document?c(d,!0):function(b){if(!b.document){throw new Error("jQuery requires a window with a document")}return c(b)}:c(d)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k="".trim,l={},m="1.11.0",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++){if(null!=(e=arguments[h])){for(d in e){a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c))}}}return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a){return !1}return !0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a)){return !1}try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}if(l.ownLast){for(b in a){return j.call(a,b)}}for(b in a){}return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++){if(d=b.apply(a[e],c),d===!1){break}}}else{for(e in a){if(d=b.apply(a[e],c),d===!1){break}}}}else{if(g){for(;f>e;e++){if(d=b.call(a[e],e,a[e]),d===!1){break}}}else{for(e in a){if(d=b.call(a[e],e,a[e]),d===!1){break}}}}return a},trim:k&&!k.call("\ufeff\xa0")?function(a){return null==a?"":k.call(a)}:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g){return g.call(b,a,c)}for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++){if(c in b&&b[c]===a){return c}}}return -1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d){a[e++]=b[d++]}if(c!==c){while(void 0!==b[d]){a[e++]=b[d++]}}return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++){d=!b(a[f],f),d!==h&&e.push(a[f])}return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h){for(;g>f;f++){d=b(a[f],f,c),null!=d&&i.push(d)}}else{for(f in a){d=b(a[f],f,c),null!=d&&i.push(d)}}return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return +new Date},support:l}),n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s="sizzle"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A="undefined",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++){if(this[b]===a){return b}}return -1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",M=L.replace("w","w#"),N="\\["+K+"*("+L+")"+K+"*(?:([*^$|!~]?=)"+K+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+M+")|)|)"+K+"*\\]",O=":("+L+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+N.replace(3,8)+")*)|.*)\\)|)",P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(O),U=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=/'|\\/g,ab=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),bb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]){}a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||"string"!=typeof a){return d}if(1!==(i=b.nodeType)&&9!==i){return[]}if(n&&!e){if(f=Z.exec(a)){if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode){return d}if(g.id===h){return d.push(g),d}}else{if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h){return d.push(g),d}}}else{if(f[2]){return G.apply(d,b.getElementsByTagName(a)),d}if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName){return G.apply(d,b.getElementsByClassName(h)),d}}}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute("id"))?q=p.replace(_,"\\$&"):b.setAttribute("id",q),q="[id='"+q+"'] ",j=m.length;while(j--){m[j]=q+pb(m[j])}u=$.test(a)&&mb(b.parentNode)||b,v=m.join(",")}if(v){try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute("id")}}}}return xb(a.replace(P,"$1"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement("div");try{return !!a(b)}catch(c){return !1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split("|"),e=a.length;while(e--){d.attrHandle[c[e]]=b}}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d){return d}if(c){while(c=c.nextSibling){if(c===b){return -1}}}return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--){c[e=f[g]]&&(c[e]=!(d[e]=c[e]))}})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener("unload",function(){k()},!1):g.attachEvent&&g.attachEvent("onunload",function(){k()})),c.attributes=gb(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++]){1===c.nodeType&&d.push(c)}return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML="<select t=''><option selected=''></option></select>",a.querySelectorAll("[t^='']").length&&o.push("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||o.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll(":checked").length||o.push(":checked")}),gb(function(a){var b=e.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&o.push("name"+K+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||o.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),o.push(",.*:")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,"div"),q.call(a,"[s!='']:x"),p.push("!=",O)}),o=o.length&&new RegExp(o.join("|")),p=p.length&&new RegExp(p.join("|")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b){while(b=b.parentNode){if(b===a){return !0}}}return !1},z=b?function(a,b){if(a===b){return j=!0,0}var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b){return j=!0,0}var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g){return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0}if(f===g){return ib(a,b)}c=a;while(c=c.parentNode){h.unshift(c)}c=b;while(c=c.parentNode){k.unshift(c)}while(h[d]===k[d]){d++}return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,"='$1']"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b))){try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType){return d}}catch(e){}}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++]){b===a[f]&&(e=d.push(f))}while(e--){a.splice(d[e],1)}}return i=null,a},e=db.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent){return a.textContent}for(a=a.firstChild;a;a=a.nextSibling){c+=e(a)}}else{if(3===f||4===f){return a.nodeValue}}}else{while(b=a[d++]){c+=e(b)}}return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||"").replace(ab,bb),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return"*"===a?function(){return !0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+" "];return b||(b=new RegExp("(^|"+K+")"+a+"("+K+"|$)"))&&w(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return !!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p]){if(h?l.nodeName.toLowerCase()===r:1===l.nodeType){return !1}}o=p="only"===a&&!o&&"nextSibling"}return !0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}}else{if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u){m=j[1]}else{while(l=++n&&l&&l[p]||(m=n=0)||o.pop()){if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b)){break}}}}return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error("unsupported pseudo: "+a);return e[s]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--){d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,"$1"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--){(f=g[h])&&(a[h]=!(b[h]=f))}}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||"")||db.error("unsupported lang: "+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do{if(c=n?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang")){return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-")}}while((b=b.parentNode)&&1===b.nodeType);return !1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling){if(a.nodeType<6){return !1}}return !0},parent:function(a){return !d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2){a.push(c)}return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2){a.push(c)}return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;){a.push(d)}return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;){a.push(d)}return a})}},d.pseudos.nth=d.pseudos.eq;for(b in {radio:!0,checkbox:!0,file:!0,password:!0,image:!0}){d.pseudos[b]=jb(b)}for(b in {submit:!0,reset:!0}){d.pseudos[b]=kb(b)}function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+" "];if(k){return b?0:k.slice(0)}h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter){!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length))}if(!c){break}}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d="";c>b;b++){d+=a[b].value}return d}function qb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=v++;return b.first?function(b,c,f){while(b=b[d]){if(1===b.nodeType||e){return a(b,c,f)}}}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d]){if((1===b.nodeType||e)&&a(b,c,g)){return !0}}}else{while(b=b[d]){if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f){return j[2]=h[2]}if(i[d]=j,j[2]=a(b,c,g)){return !0}}}}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--){if(!a[e](b,c,d)){return !1}}return !0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++){(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h))}return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--){(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}}if(f){if(e||a){if(e){j=[],k=r.length;while(k--){(l=r[k])&&j.push(q[k]=l)}e(null,r=[],j,i)}k=r.length;while(k--){(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}}else{r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)}})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[" "],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return !g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++){if(c=d.relative[a[j].type]){m=[qb(rb(m),c)]}else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++){if(d.relative[a[e].type]){break}}return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:" "===a[j-2].type?"*":""})).replace(P,"$1"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q="0",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG("*",k),w=u+=null==t?1:Math.random()||0.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++]){if(o(m,g,i)){j.push(m);break}}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++]){o(r,s,g,i)}if(f){if(p>0){while(q--){r[q]||s[q]||(s[q]=E.call(j))}}s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+" "];if(!f){b||(b=ob(a)),c=b.length;while(c--){f=ub(b[c]),f[s]?d.push(f):e.push(f)}f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++){db(a,b[d],c)}return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&"ID"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b){return e}a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type]){break}if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a){return G.apply(e,f),e}break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split("").sort(z).join("")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement("div"))}),gb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||hb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||hb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute("disabled")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function x(a,b,c){if(n.isFunction(b)){return n.grep(a,function(a,d){return !!b.call(a,d,a)!==c})}if(b.nodeType){return n.grep(a,function(a){return a===b!==c})}if("string"==typeof b){if(w.test(b)){return n.filter(b,a,c)}b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a){return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++){if(n.contains(d[b],this)){return !0}}}))}for(b=0;e>b;b++){n.find(a,d[b],c)}return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return !!x(this,"string"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a){return this}if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b){return !b||b.jquery?(b||y).find(a):this.constructor(b).find(a)}if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b)){for(c in b){n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c])}}return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2]){return y.find(a)}this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?"undefined"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c))){1===e.nodeType&&d.push(e),e=e[b]}return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling){1===a.nodeType&&a!==b&&c.push(a)}return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++){if(n.contains(this,c[b])){return !0}}})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++){for(c=this[d];c&&c!==b;c=c.parentNode){if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}}}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,"parentNode")},parentsUntil:function(a,b,c){return n.dir(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return n.dir(a,"nextSibling")},prevAll:function(a){return n.dir(a,"previousSibling")},nextUntil:function(a,b,c){return n.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return n.dir(a,"previousSibling",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++){if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1){h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return !h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return !i},fireWith:function(a,c){return !h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return !!d}};return k},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1){for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++){c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f}}return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body){return setTimeout(n.ready)}n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger("ready").off("ready"))}}});function J(){z.addEventListener?(z.removeEventListener("DOMContentLoaded",K,!1),a.removeEventListener("load",K,!1)):(z.detachEvent("onreadystatechange",K),a.detachEvent("onload",K))}function K(){(z.addEventListener||"load"===event.type||"complete"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I){if(I=n.Deferred(),"complete"===z.readyState){setTimeout(n.ready)}else{if(z.addEventListener){z.addEventListener("DOMContentLoaded",K,!1),a.addEventListener("load",K,!1)}else{z.attachEvent("onreadystatechange",K),a.attachEvent("onload",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}}}return I.promise(b)};var L="undefined",M;for(M in n(l)){break}l.ownLast="0"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName("body")[0];c&&(a=z.createElement("div"),a.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",b=z.createElement("div"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText="border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement("div");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var N=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(O,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else{c=void 0}}return c}function Q(a){var b;for(b in a){if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b){return !1}}return !0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b){return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--){delete d[b[e]]}if(c?!Q(d):!n.isEmptyObject(d)){return}}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--){d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]))}n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--){c=n._data(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h))}return h(),e.promise(b)}});var T=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)},W=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c){n.access(a,b,h,c[h],!0,f,g)}}else{if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b)){for(;i>h;h++){b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)))}}}return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement("div"),c=z.createElement("input");if(b.setAttribute("className","t"),b.innerHTML="  <link/><table></table><a href='/a'>a</a>",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName("tbody").length,l.htmlSerialize=!!b.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==z.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML="<input type='radio' checked='checked' name='t'/>",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement("div");for(b in {submit:!0,change:!0,focusin:!0}){c="on"+b,(l[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),l[b+"Bubbles"]=d.attributes[c].expando===!1)}d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\.(.+)|)$/;function bb(){return !0}function cb(){return !1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--){f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0)}a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--){if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--){g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g))}i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else{for(o in k){n.event.remove(a,o+b[j],c,d,!0)}}}n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[n.expando]?b:new n.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode){o.push(h),l=h}l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped()){b.type=m>1?i:k.bindType||p,f=(n._data(h,"events")||{})[b.type]&&n._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault())}if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped()){(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type)){for(;i!=this;i=i.parentNode||this){if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++){d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d)}e.length&&g.push({elem:i,handlers:e})}}}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando]){return a}var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=$.test(e)?this.mouseHooks:Z.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--){c=d[b],a[c]=f[c]}return a.target||(a.target=f.srcElement||z),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},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(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||z,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==db()&&this.focus){try{return this.focus(),!1}catch(a){}}},delegateType:"focusin"},blur:{trigger:function(){return this===db()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=z.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d="on"+b;a.detachEvent&&(typeof a[d]===L&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?bb:cb):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void (this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submitBubbles||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?b.form:void 0;c&&!n._data(c,"submitBubbles")&&(n.event.add(c,"submit._submit",function(a){a._submit_bubble=!0}),n._data(c,"submitBubbles",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a,!0))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),l.changeBubbles||(n.event.special.change={setup:function(){return Y.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),n.event.simulate("change",this,a,!0)})),!1):void n.event.add(this,"beforeactivate._change",function(a){var b=a.target;Y.test(b.nodeName)&&!n._data(b,"changeBubbles")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a,!0)}),n._data(b,"changeBubbles",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!Y.test(this.nodeName)}}),l.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if("object"==typeof a){"string"!=typeof b&&(c=c||b,b=void 0);for(f in a){this.on(f,b,c,a[f],e)}return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&("string"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1){d=cb}else{if(!d){return this}}return 1===e&&(g=d,d=function(a){return n().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj){return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this}if("object"==typeof a){for(e in a){this.off(e,b,a[e])}return this}return(b===!1||"function"==typeof b)&&(c=b,b=void 0),c===!1&&(c=cb),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});function eb(a){var b=fb.split("|"),c=a.createDocumentFragment();if(c.createElement){while(b.length){c.createElement(b.pop())}}return c}var fb="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",gb=/ jQuery\d+="(?:null|\d+)"/g,hb=new RegExp("<(?:"+fb+")[\\s/>]","i"),ib=/^\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,kb=/<([\w:]+)/,lb=/<tbody/i,mb=/<|&#?\w+;/,nb=/<(?:script|style|link)/i,ob=/checked\s*(?:[^=]|=\s*.checked.)/i,pb=/^$|\/(?:java|ecma)script/i,qb=/^true\/(.*)/,rb=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,sb={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>"]},tb=eb(z),ub=tb.appendChild(z.createElement("div"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||"*"):void 0;if(!f){for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++){!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b))}}return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function yb(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++){n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h){for(d=0,e=h[c].length;e>d;d++){n.event.add(b,c,h[c][d])}}}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events){n.removeEvent(b,d,e.handle)}b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a))){for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g){d[g]&&Cb(e,d[g])}}if(b){if(c){for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++){Bb(e,d[g])}}else{Bb(a,f)}}return d=vb(f,"script"),d.length>0&&Ab(d,!i&&vb(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++){if(f=a[q],f||0===f){if("object"===n.type(f)){n.merge(p,f.nodeType?[f]:f)}else{if(mb.test(f)){h=h||o.appendChild(b.createElement("div")),i=(kb.exec(f)||["",""])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,"<$1></$2>")+k[2],e=k[0];while(e--){h=h.lastChild}if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f="table"!==i||lb.test(f)?"<table>"!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--){n.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}}n.merge(p,h.childNodes),h.textContent="";while(h.firstChild){h.removeChild(h.firstChild)}h=o.lastChild}else{p.push(b.createTextNode(f))}}}}h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,"input"),wb),q=0;while(f=p[q++]){if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),"script"),g&&Ab(h),c)){e=0;while(f=h[e++]){pb.test(f.type||"")&&c.push(f)}}}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++){if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events){for(e in g.events){m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle)}}j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++){b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,"script")),c.parentNode.removeChild(c))}return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild){a.removeChild(a.firstChild)}a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a){return 1===b.nodeType?b.innerHTML.replace(gb,""):void 0}if(!("string"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(jb,"<$1></$2>");try{for(;d>c;c++){b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a)}b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&"string"==typeof p&&!l.checkClone&&ob.test(p)){return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)})}if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,"script"),yb),f=g.length;k>j;j++){d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,"script"))),b.call(this[j],d,j)}if(f){for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++){d=g[j],pb.test(d.type||"")&&!n._data(d,"globalEval")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||"").replace(rb,"")))}}i=c=null}return this}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++){c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get())}return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],"display");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),"none"!==c&&c||(Db=(Db||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=(Db[0].contentWindow||Db[0].contentDocument).document,b.write(),b.close(),c=Fb(a,b),Db.detach()),Eb[a]=c),c}!function(){var a,b,c=z.createElement("div"),d="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";c.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=c.getElementsByTagName("a")[0],a.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(a.style.opacity),l.cssFloat=!!a.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===c.style.backgroundClip,a=c=null,l.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=z.getElementsByTagName("body")[0],!a){return}f="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",c=z.createElement("div"),e=z.createElement("div"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==L&&(e.style.cssText=d+";width:1px;padding:1px;zoom:1",e.innerHTML="<div></div>",e.firstChild.style.width="5px",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var Hb=/^margin/,Ib=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),Jb,Kb,Lb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Jb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(""!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),Ib.test(g)&&Hb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+""}):z.documentElement.currentStyle&&(Jb=function(a){return a.currentStyle},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ib.test(g)&&!Lb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Mb(a,b){return{get:function(){var c=a();if(null!=c){return c?void delete this.get:(this.get=b).apply(this,arguments)}}}}!function(){var b,c,d,e,f,g,h=z.createElement("div"),i="border:0;width:0;height:0;position:absolute;top:0;left:-9999px",j="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0";h.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",b=h.getElementsByTagName("a")[0],b.style.cssText="float:left;opacity:.5",l.opacity=/^0.5/.test(b.style.opacity),l.cssFloat=!!b.style.cssFloat,h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,b=h=null,n.extend(l,{reliableHiddenOffsets:function(){if(null!=c){return c}var a,b,d,e=z.createElement("div"),f=z.getElementsByTagName("body")[0];if(f){return e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=z.createElement("div"),a.style.cssText=i,f.appendChild(a).appendChild(e),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",b=e.getElementsByTagName("td"),b[0].style.cssText="padding:0;margin:0;border:0;display:none",d=0===b[0].offsetHeight,b[0].style.display="",b[1].style.display="none",c=d&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,c}},boxSizing:function(){return null==d&&k(),d},boxSizingReliable:function(){return null==e&&k(),e},pixelPosition:function(){return null==f&&k(),f},reliableMarginRight:function(){var b,c,d,e;if(null==g&&a.getComputedStyle){if(b=z.getElementsByTagName("body")[0],!b){return}c=z.createElement("div"),d=z.createElement("div"),c.style.cssText=i,b.appendChild(c).appendChild(d),e=d.appendChild(z.createElement("div")),e.style.cssText=d.style.cssText=j,e.style.marginRight=e.style.width="0",d.style.width="1px",g=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return g}});function k(){var b,c,h=z.getElementsByTagName("body")[0];h&&(b=z.createElement("div"),c=z.createElement("div"),b.style.cssText=i,h.appendChild(b).appendChild(c),c.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%",n.swap(h,null!=h.style.zoom?{zoom:1}:{},function(){d=4===c.offsetWidth}),e=!0,f=!1,g=!0,a.getComputedStyle&&(f="1%"!==(a.getComputedStyle(c,null)||{}).top,e="4px"===(a.getComputedStyle(c,null)||{width:"4px"}).width),h.removeChild(b),c=h=null)}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b){g[f]=a.style[f],a.style[f]=b[f]}e=c.apply(a,d||[]);for(f in b){a.style[f]=g[f]}return e};var Nb=/alpha\([^)]*\)/i,Ob=/opacity\s*=\s*([^)]*)/,Pb=/^(none|table(?!-c[ea]).+)/,Qb=new RegExp("^("+T+")(.*)$","i"),Rb=new RegExp("^([+-])=("+T+")","i"),Sb={position:"absolute",visibility:"hidden",display:"block"},Tb={letterSpacing:0,fontWeight:400},Ub=["Webkit","O","Moz","ms"];function Vb(a,b){if(b in a){return b}var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ub.length;while(e--){if(b=Ub[e]+c,b in a){return b}}return d}function Wb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++){d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=n._data(d,"olddisplay",Gb(d.nodeName)))):f[g]||(e=V(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))))}for(g=0;h>g;g++){d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"))}return a}function Xb(a,b,c){var d=Qb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function Yb(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2){"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)))}return g}function Zb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Jb(a),g=l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Kb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ib.test(e)){return e}d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Yb(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Kb(a,"opacity");return""===c?"1":c}}}},cssNumber:{columnCount:!0,fillOpacity:!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(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=Vb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c){return g&&"get" in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]}if(f=typeof c,"string"===f&&(e=Rb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f="number"),null!=c&&c===c&&("number"!==f||n.cssNumber[h]||(c+="px"),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set" in g&&void 0===(c=g.set(a,c,d))))){try{i[b]="",i[b]=c}catch(j){}}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Vb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&"get" in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Kb(a,b,d)),"normal"===f&&b in Tb&&(f=Tb[b]),""===c||c?(e=parseFloat(f),c===!0||n.isNumeric(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&Pb.test(n.css(a,"display"))?n.swap(a,Sb,function(){return Zb(a,b,d)}):Zb(a,b,d):void 0},set:function(a,c,d){var e=d&&Jb(a);return Xb(a,c,d?Yb(a,b,d,l.boxSizing()&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Ob.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=1||""===b)&&""===n.trim(f.replace(Nb,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Nb.test(f)?f.replace(Nb,e):f+" "+e)}}),n.cssHooks.marginRight=Mb(l.reliableMarginRight,function(a,b){return b?n.swap(a,{display:"inline-block"},Kb,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++){e[a+U[d]+b]=f[d]||f[d-2]||f[0]}return e}},Hb.test(a)||(n.cssHooks[a+b].set=Xb)}),n.fn.extend({css:function(a,b){return W(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Jb(a),e=b.length;e>g;g++){f[b[g]]=n.css(a,b[g],!1,d)}return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function $b(a,b,c,d,e){return new $b.prototype.init(a,b,c,d,e)}n.Tween=$b,$b.prototype={constructor:$b,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||"swing",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=$b.propHooks[this.prop];return a&&a.get?a.get(this):$b.propHooks._default.get(this)},run:function(a){var b,c=$b.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):$b.propHooks._default.set(this),this}},$b.prototype.init.prototype=$b.prototype,$b.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},$b.propHooks.scrollTop=$b.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return 0.5-Math.cos(a*Math.PI)/2}},n.fx=$b.prototype.init,n.fx.step={};var _b,ac,bc=/^(?:toggle|show|hide)$/,cc=new RegExp("^(?:([+-])=|)("+T+")([a-z%]*)$","i"),dc=/queueHooks$/,ec=[jc],fc={"*":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=cc.exec(b),f=e&&e[3]||(n.cssNumber[a]?"":"px"),g=(n.cssNumber[a]||"px"!==f&&+d)&&cc.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do{h=h||".5",g/=h,n.style(c.elem,a,g+f)}while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function gc(){return setTimeout(function(){_b=void 0}),_b=n.now()}function hc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b){c=U[e],d["margin"+c]=d["padding"+c]=a}return b&&(d.opacity=d.width=a),d}function ic(a,b,c){for(var d,e=(fc[b]||[]).concat(fc["*"]),f=0,g=e.length;g>f;f++){if(d=e[f].call(c,b,a)){return d}}}function jc(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height" in b||"width" in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),k=Gb(a.nodeName),"none"===j&&(j=k),"inline"===j&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==k?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b){if(e=b[d],bc.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d]){continue}q=!0}o[d]=r&&r[d]||n.style(a,d)}}if(!n.isEmptyObject(o)){r?"hidden" in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o){n.style(a,b,o[b])}});for(d in o){g=ic(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}}function kc(a,b){var c,d,e,f,g;for(c in a){if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&"expand" in g){f=g.expand(f),delete a[d];for(c in f){c in a||(a[c]=f[c],b[c]=e)}}else{b[d]=e}}}function lc(a,b,c){var d,e,f=0,g=ec.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e){return !1}for(var b=_b||gc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++){j.tweens[g].run(f)}return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:_b||gc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e){return this}for(e=!0;d>c;c++){j.tweens[c].run(1)}return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(kc(k,j.opts.specialEasing);g>f;f++){if(d=ec[f].call(j,a,k,j.opts)){return d}}return n.map(k,ic,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(lc,{tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.split(" ");for(var c,d=0,e=a.length;e>d;d++){c=a[d],fc[c]=fc[c]||[],fc[c].unshift(b)}},prefilter:function(a,b){b?ec.unshift(a):ec.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=lc(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e){g[e]&&g[e].stop&&d(g[e])}else{for(e in g){g[e]&&g[e].stop&&dc.test(e)&&d(g[e])}}for(e=f.length;e--;){f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1))}(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;){f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1))}for(b=0;g>b;b++){d[b]&&d[b].finish&&d[b].finish.call(this)}delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(hc(b,!0),a,d,e)}}),n.each({slideDown:hc("show"),slideUp:hc("hide"),slideToggle:hc("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(_b=n.now();c<b.length;c++){a=b[c],a()||b[c]!==a||b.splice(c--,1)}b.length||n.fx.stop(),_b=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ac||(ac=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(ac),ac=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||"fx",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=z.createElement("div");e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=e.getElementsByTagName("a")[0],c=z.createElement("select"),d=c.appendChild(z.createElement("option")),b=e.getElementsByTagName("input")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==e.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=d.selected,l.enctype=!!z.createElement("form").enctype,c.disabled=!0,l.optDisabled=!d.disabled,b=z.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value,a=b=c=d=e=null}();var mc=/\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];if(arguments.length){return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set" in b&&void 0!==b.set(this,e,"value")||(this.value=e))})}if(e){return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get" in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(mc,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++){if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute("disabled"))||c.parentNode.disabled&&n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f){return b}g.push(b)}}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--){if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>=0){try{d.selected=c=!0}catch(h){d.scrollHeight}}else{d.selected=!1}}return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var nc,oc,pc=n.expr.attrHandle,qc=/^(?:checked|selected)$/i,rc=l.getSetAttribute,sc=l.input;n.fn.extend({attr:function(a,b){return W(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f){return typeof a.getAttribute===L?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?oc:nc)),void 0===c?d&&"get" in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&"set" in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+""),c):void n.removeAttr(a,b))}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType){while(c=f[e++]){d=n.propFix[c]||c,n.expr.match.bool.test(c)?sc&&rc||!qc.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(rc?c:d)}}},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}}}),oc={set:function(a,b,c){return b===!1?n.removeAttr(a,c):sc&&rc||!qc.test(c)?a.setAttribute(!rc&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=pc[b]||n.find.attr;pc[b]=sc&&rc||!qc.test(b)?function(a,b,d){var e,f;return d||(f=pc[b],pc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,pc[b]=f),e}:function(a,b,c){return c?void 0:a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),sc&&rc||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,"input")?void (a.defaultValue=b):nc&&nc.set(a,b,c)}}),rc||(nc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c)?b:void 0}},pc.id=pc.name=pc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:nc.set},n.attrHooks.contenteditable={set:function(a,b,c){nc.set(a,""===b?!1:b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){return""===c?(a.setAttribute(b,"auto"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var tc=/^(?:input|select|textarea|button|object)$/i,uc=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return W(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g){return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set" in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get" in e&&null!==(d=e.get(a,b))?d:a[b]}},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):tc.test(a.nodeName)||uc.test(a.nodeName)&&a.href?0:-1}}}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var vc=/[\t\r\n\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j="string"==typeof a&&a;if(n.isFunction(a)){return this.each(function(b){n(this).addClass(a.call(this,b,this.className))})}if(j){for(b=(a||"").match(F)||[];i>h;h++){if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):" ")){f=0;while(e=b[f++]){d.indexOf(" "+e+" ")<0&&(d+=e+" ")}g=n.trim(d),c.className!==g&&(c.className=g)}}}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||"string"==typeof a&&a;if(n.isFunction(a)){return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))})}if(j){for(b=(a||"").match(F)||[];i>h;h++){if(c=this[h],d=1===c.nodeType&&(c.className?(" "+c.className+" ").replace(vc," "):"")){f=0;while(e=b[f++]){while(d.indexOf(" "+e+" ")>=0){d=d.replace(" "+e+" "," ")}}g=a?n.trim(d):"",c.className!==g&&(c.className=g)}}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if("string"===c){var b,d=0,e=n(this),f=a.match(F)||[];while(b=f[d++]){e.hasClass(b)?e.removeClass(b):e.addClass(b)}}else{(c===L||"boolean"===c)&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||a===!1?"":n._data(this,"__className__")||"")}})},hasClass:function(a){for(var b=" "+a+" ",c=0,d=this.length;d>c;c++){if(1===this[c].nodeType&&(" "+this[c].className+" ").replace(vc," ").indexOf(b)>=0){return !0}}return !1}}),n.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(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}});var wc=n.now(),xc=/\?/,yc=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse){return a.JSON.parse(b+"")}var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(yc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b){return null}try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,"text/xml")):(c=new ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var zc,Ac,Bc=/#.*$/,Cc=/([?&])_=[^&]*/,Dc=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ec=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fc=/^(?:GET|HEAD)$/,Gc=/^\/\//,Hc=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ic={},Jc={},Kc="*/".concat("*");try{Ac=location.href}catch(Lc){Ac=z.createElement("a"),Ac.href="",Ac=Ac.href}zc=Hc.exec(Ac.toLowerCase())||[];function Mc(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c)){while(d=f[e++]){"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}}}function Nc(a,b,c,d){var e={},f=a===Jc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Oc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b){void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d])}return c&&n.extend(!0,a,c),a}function Pc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0]){i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"))}if(e){for(g in h){if(h[g]&&h[g].test(e)){i.unshift(g);break}}}if(i[0] in c){f=i[0]}else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Qc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1]){for(g in a.converters){j[g.toLowerCase()]=a.converters[g]}}f=k.shift();while(f){if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift()){if("*"===f){f=i}else{if("*"!==i&&i!==f){if(g=j[i+" "+f]||j["* "+f],!g){for(e in j){if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}}}if(g!==!0){if(g&&a["throws"]){b=g(b)}else{try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}}}}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ac,type:"GET",isLocal:Ec.test(zc[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kc,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":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Oc(Oc(a,n.ajaxSettings),b):Oc(n.ajaxSettings,a)},ajaxPrefilter:Mc(Ic),ajaxTransport:Mc(Jc),ajax:function(a,b){"object"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks("once memory"),q=k.statusCode||{},r={},s={},t=0,u="canceled",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Dc.exec(f)){j[b[1].toLowerCase()]=b[2]}}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a){if(2>t){for(b in a){q[b]=[q[b],a[b]]}}else{v.always(a[v.status])}}return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||Ac)+"").replace(Bc,"").replace(Gc,zc[1]+"//"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||"*").toLowerCase().match(F)||[""],null==k.crossDomain&&(c=Hc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===zc[1]&&c[2]===zc[2]&&(c[3]||("http:"===c[1]?"80":"443"))===(zc[3]||("http:"===zc[1]?"80":"443")))),k.data&&k.processData&&"string"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),Nc(Ic,k,b,v),2===t){return v}h=k.global,h&&0===n.active++&&n.event.trigger("ajaxStart"),k.type=k.type.toUpperCase(),k.hasContent=!Fc.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(xc.test(e)?"&":"?")+k.data,delete k.data),k.cache===!1&&(k.url=Cc.test(e)?e.replace(Cc,"$1_="+wc++):e+(xc.test(e)?"&":"?")+"_="+wc++)),k.ifModified&&(n.lastModified[e]&&v.setRequestHeader("If-Modified-Since",n.lastModified[e]),n.etag[e]&&v.setRequestHeader("If-None-Match",n.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader("Content-Type",k.contentType),v.setRequestHeader("Accept",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+("*"!==k.dataTypes[0]?", "+Kc+"; q=0.01":""):k.accepts["*"]);for(d in k.headers){v.setRequestHeader(d,k.headers[d])}if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t)){return v.abort()}u="abort";for(d in {success:1,error:1,complete:1}){v[d](k[d])}if(i=Nc(Jc,k,b,v)){v.readyState=1,h&&m.trigger("ajaxSend",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort("timeout")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t)){throw w}x(-1,w)}}else{x(-1,"No Transport")}function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||"",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Pc(k,v,c)),u=Qc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader("Last-Modified"),w&&(n.lastModified[e]=w),w=v.getResponseHeader("etag"),w&&(n.etag[e]=w)),204===a||"HEAD"===k.type?x="nocontent":304===a?x="notmodified":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x="error",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+"",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&m.trigger(j?"ajaxSuccess":"ajaxError",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(m.trigger("ajaxComplete",[v,k]),--n.active||n.event.trigger("ajaxStop")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a)){return this.each(function(b){n(this).wrapAll(a.call(this,b))})}if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!l.reliableHiddenOffsets()&&"none"===(a.style&&a.style.display||n.css(a,"display"))},n.expr.filters.visible=function(a){return !n.expr.filters.hidden(a)};var Rc=/%20/g,Sc=/\[\]$/,Tc=/\r?\n/g,Uc=/^(?:submit|button|image|reset|file)$/i,Vc=/^(?:input|select|textarea|keygen)/i;function Wc(a,b,c,d){var e;if(n.isArray(b)){n.each(b,function(b,e){c||Sc.test(a)?d(a,e):Wc(a+"["+("object"==typeof e?b:"")+"]",e,c,d)})}else{if(c||"object"!==n.type(b)){d(a,b)}else{for(e in b){Wc(a+"["+e+"]",b[e],c,d)}}}}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a)){n.each(a,function(){e(this.name,this.value)})}else{for(c in a){Wc(c,a[c],b,e)}}return d.join("&").replace(Rc,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Vc.test(this.nodeName)&&!Uc.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Tc,"\r\n")}}):{name:b.name,value:c.replace(Tc,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return !this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$c()||_c()}:$c;var Xc=0,Yc={},Zc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on("unload",function(){for(var a in Yc){Yc[a](void 0,!0)}}),l.cors=!!Zc&&"withCredentials" in Zc,Zc=l.ajax=!!Zc,Zc&&n.ajaxTransport(function(a){if(!a.crossDomain||l.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields){for(e in a.xhrFields){f[e]=a.xhrFields[e]}}a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest");for(e in c){void 0!==c[e]&&f.setRequestHeader(e,c[e]+"")}f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState)){if(delete Yc[g],b=void 0,f.onreadystatechange=n.noop,e){4!==f.readyState&&f.abort()}else{j={},h=f.status,"string"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=""}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function $c(){try{return new a.XMLHttpRequest}catch(b){}}function _c(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=z.head||n("head")[0]||z.documentElement;return{send:function(d,e){b=z.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ad=[],bd=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ad.pop()||n.expando+"_"+wc++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bd.test(b.url)?"url":"string"==typeof b.data&&!(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&bd.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bd,"$1"+e):b.jsonp!==!1&&(b.url+=(xc.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ad.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a){return null}"boolean"==typeof b&&(c=b,b=!1),b=b||z;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var cd=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&cd){return cd.apply(this,arguments)}var d,e,f,g=this,h=a.indexOf(" ");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(f="POST"),g.length>0&&n.ajax({url:a,type:f,dataType:"html",data:b}).done(function(a){e=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using" in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length){return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)})}var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f){return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d}},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position")){a=a.offsetParent}return a||dd})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void (f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});
  /*! Copyright (c) 2012 zvingsoftware (http://www.zving.com)
  * Thanks to: jQuery,Ext.JS,Tangram.JS
  */
  (function(){if(!window.Zving){window.Zving={Config:{namespace:"window"}}}var f=window.Zving,b=Object.prototype.toString;f.Constant={};var j="_"+document.URL.split("#")[0].split("=")[0].replace(location.protocol+"//"+location.host,"").replace(/[^A-Za-z0-9\/]/g,"").replace(/\//g,"_");f.pageId=j;var g=function(){return(+new Date()).toString(36)+Math.round(Math.random()*1632959+46656).toString(36)};var a=navigator.userAgent.toLowerCase();f.isWindows=/windows|win32/.test(a);f.isMac=/macintosh|mac os|macintel|mac68k|macppc/.test(a);f.isLinux=/linux/.test(a);f.isIOS=/ipad|iphone|ipod/.test(a);f.isIPad=/ipad/.test(a);f.isAndroid=/android|slik\/\d/.test(a);f.isWPhone=/windows phone/.test(a);f.isDesktop=(f.isMac&&!f.isIOS)||(f.isWindows&&!f.isWPhone)||(f.isLinux&&!f.isAndroid);f.isTablet=/ipad|slik\/\d|(playbook).*?tablet/.test(a)||f.isAndroid&&!/mobile/.test(a);f.isPhone=!f.isDesktop&&!f.isTablet;f.inTouch=(("ontouchstart" in window)||("createTouch" in document))&&!("onmousemove" in document.documentElement);f.isGecko=/gecko/.test(a);f.isWebKit=/webkit/.test(a);f.isChrome=/chrome/.test(a);f.isOpera=/opera/.test(a);f.isSafari=/safari/.test(a)&&!f.isChrome&&!f.isOpera;f.isFirefox=/firefox/.test(a);f.isTrident=/trident/.test(a);f.isLiebao=/lbbrowser/i.test(a);f.isWeixin=/micromessenger/i.test(a);f.is360Old=false;try{if(window.external&&external.twGetRunPath&&external.twGetRunPath().match(/360\we/i)){f.is360Old=true}}catch(d){}f.ieVersion=/msie|trident/.test(a)?parseFloat(/(msie |rv:)([\w.]+)/.exec(a)[2]):null;f.isIE=/msie/.test(a)&&!!window.ActiveXObject;f.isIE6=/msie/.test(a)&&!window.XMLHttpRequest;f.isIE7=/msie 7/.test(a)&&!!window.XMLHttpRequest&&!window.XDomainRequest;f.isIE10=f.isIE&&!!window.Worker&&!!window.WebSocket;f.isIE8=f.isIE&&!!window.XDomainRequest;if(f.isIE8){f.ieVersion=8}f.isIE9=f.isIE&&!!window.performance;if(f.isIE9){f.isIE8=false;f.ieVersion=9}if(f.isIE10){f.ieVersion=10}f.isIE11=f.isTrident&&!!window.addEventListener&&!!window.getSelection;if(f.isIE11&&f.ieVersion<11){f.ieVersion=11}try{window.localStorage;f.localStorageAccessable=true}catch(d){f.localStorageAccessable=false}f.isQuirks=document.compatMode==="BackCompat";f.isStrict=document.compatMode==="CSS1Compat";f.isBorderBox=f.isIE&&f.isQuirks;f.WHICHBUTTON=f.isIE?{1:1,2:4,3:2}:(f.isWebKit?{1:0,2:1,3:2}:{1:0,2:1,3:2});if(f.isIE){try{document.documentElement.addBehavior("#default#userdata");document.execCommand("BackgroundImageCache",false,true)}catch(c){}}document.head=document.getElementsByTagName("head")[0]||document.documentElement;f.restricted=false;if(window!=window.parent){var k,h;try{k=window.parent.document;h=window.parent.document.getElementsByTagName("*");k=h=null}catch(d){f.restricted=true}}f.getRootWin=function(){var n=window;while(n!=n.parent){try{var e=n.parent.document;var m=e.getElementsByTagName("*")}catch(l){return n}if(typeof n.parent.Zving!="object"){return n}n=n.parent}return n};f.rootWin=f.getRootWin();f.rootDoc=f.rootWin.document;f.mixin=f.mix=function(n,e,m){if(!n){n={}}if(m){f.mix(n,m)}if(n&&e&&typeof e==="object"){var l;for(l in e){if(e.hasOwnProperty(l)){n[l]=e[l]}}}return n};f.mixinIf=f.mixIf=function(n,l,e){if(!n){n={}}var m;for(m in l){if(typeof(n[m])==="undefined"){n[m]=l[m]}else{if(e&&typeof(n[m])==="object"&&n[m]!==null&&typeof(l[m])==="object"&&l[m]!==null){n[m]=f.mixIf(n[m],l[m],e)}}}return n};f.loadJS=f.loadJs=function(n,e){var o=document.getElementsByTagName("head")[0]||document.documentElement,m=document.createElement("script"),l=false;m.src=n;m.onerror=m.onload=m.onreadystatechange=function(){if(!l&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){l=true;if(e){e()}m.onerror=m.onload=m.onreadystatechange=null}};o.appendChild(m)};f.loadJsonp=(function(){var e=+(new Date());return function(m,n,l){if(typeof n=="function"){l=n;n=null}var o="_jsonpcallback"+e++;window[o]=function(p){if(l){l(p)}window[o]=null};m+=(/\?/.test(m)?"&":"?")+"callback="+o;if(n){m+="&"+f.JSON.toQuery(n)}f.loadJs(m,null)}}());f.loadCSS=f.loadCss=function(m,p){p=p&&f.isWindow(p)?p:window;var l=p.document;var n=l.getElementsByTagName("head")[0]||l.documentElement;if(l.createStyleSheet){l.createStyleSheet(m)}else{var o=l.createElement("link");o.rel="stylesheet";o.type="text/css";o.href=m;n.appendChild(o)}};f.addStyle=function(m,l,o){if(!(o&&f.isWindow(o))){if(l&&f.isWindow(l)){o=l;l=null}}o=o&&f.isWindow(o)?o:window;var e=o.document;if(!l){l=m;m="style"+(1+f.startTime)}if(l.indexOf("{")<1&&l.indexOf("}")<1&&/^\S$/.test(l)){return f.loadCSS(l,o)}var n=e.getElementById(m);if(!n){n=e.createElement("style");n.type="text/css";n.id=m;e.getElementsByTagName("head")[0].appendChild(n)}if(n.styleSheet){n.styleSheet.cssText+=l}else{l=e.createTextNode(l);n.appendChild(l)}return n};f.toArray=function(p,q,e){if(!p||!p.length){return[]}if(typeof p.length=="number"){var o=[];var n=0,m=p.length;for(;n<m;n++){o.push(p[n])}return o.slice(q||0,e||o.length)}};f.isBoolean=function(e){return typeof e==="boolean"};f.isNumber=function(e){return typeof e==="number"&&isFinite(e)};f.isInt=function(e){return f.isNumber(e)&&(/^\-?\d+$/).test(""+e)};f.isString=function(e){return typeof e==="string"};f.isEmpty=function(l,e){return l===null||l===undefined||(b.apply(l)==="[object Array]"&&!l.length)||(!e?l==="":false)};f.isNull=function(e){return e===null||typeof e==="undefined"};f.isNotNull=function(e){return !isNull(e)};f.isObject=function(e){return !!e&&typeof e==="object"};f.isPlainObject=function(e){return !!e&&e.constructor===Object};f.isFunction=function(e){return !!e&&b.apply(e)==="[object Function]"};f.isArray=function(e){return !!e&&b.apply(e)==="[object Array]"};f.isArrayLike=function(e){if(!e||e.document||e.nodeType||f.isFunction(e)){return false}return typeof e==="object"&&typeof e.length==="number"};f.isElement=function(e){return !!e&&e.nodeName&&e.nodeType===1};f.isDocument=function(e){return !!e.URL&&!!e.readyState};f.isWindow=function(e){return e.document&&e.navigator&&!!e.location};f.isDate=f.isDateTime=function(e){return !!e&&b.apply(e)==="[object Date]"};f.isPrimitive=function(e){return f.isString(e)||f.isNumber(e)||f.isBoolean(e)};f.isIterable=function(e){if(f.isArray(e)||e.callee){return true}if(/NodeList|HTMLCollection/.test(b.call(e))){return true}return((typeof e.nextNode!="undefined"||e.item)&&f.isNumber(e.length))};f.each=function(o,n,m){if(f.isEmpty(o,true)){return}if(!f.isIterable(o)||f.isPrimitive(o)){o=[o]}for(var l=0,e=o.length;l<e;l++){if(n.call(m||o[l],o[l],l,o)===false){return l}}};f.iterate=function(m,l,e){if(f.isEmpty(m)){return}if(f.isIterable(m)){f.each(m,l,e);return}else{if(f.isObject(m)){for(var n in m){if(m.hasOwnProperty(n)){if(l.call(e||m,n,m[n],m)===false){return}}}}}};f.namespace=function(){var n=arguments,e=n.length,u=null,q,m,t,r=(n[e-1]===true&&e--);for(q=0;q<e;q++){t=(""+n[q]).split(".");u=r?Zving:this;for(m=(Zving[t[0]]===u)?1:0;m<t.length;++m){u=u[t[m]]=u[t[m]]||{}}}return u};f.noopFn=function(){}})();Zving.Function={};Zving.Function.bind=function(b,c,a){a=Zving.isArray(a)?a:Array.prototype.slice.call(arguments,2);return function(){return b.apply(c,a.concat(Array.prototype.slice.call(arguments)))}};Zving.Function.bindEvent=Zving.Function.bindAsEventListener=function(b,c,a){a=Zving.isArray(a)?a:Array.prototype.slice.call(arguments,2);return function(d){return b.apply(c,[d||window.event].concat(a))}};Zving.Function.delay=function(d,b,e,a){a=Zving.isArray(a)?a:Array.prototype.slice.call(arguments,3);var c=Zving.Function.bind(d,e,a);if(b>0){return setTimeout(c,b)}c();return 0};Zving.Function.methodize=function(b,a){if(a){return function(){return b.apply(null,[this[a]].concat(Array.prototype.slice.call(arguments)))}}return function(){return b.apply(null,[this].concat(Array.prototype.slice.call(arguments)))}};Zving.Function.rwrap=function(b,c,a){a|=0;return function(){var d=b.apply(this,arguments);if(a>=0){d=arguments[a]}return c?new c(d):d}};Zving.Function.createTargeted=function(c,a,b){return function(){if(a.target===arguments[0]){c.apply(b,Array.prototype.slice.call(arguments))}}};Zving.Function.createBuffered=function(c,a,d,b){d.task=new Zving.Util.DelayedTask();return function(){d.task.delay(Zving.isObject(a)?a.buffer:a,c,b,Array.prototype.slice.call(arguments))}};Zving.Function.createSingle=function(e,d,a,c,b){return function(f){jQuery.removeEvent(d,a,c,b);return e.apply(b||d,arguments)}};Zving.Function.createDelayed=function(c,a,d,b){return function(){var e=new Zving.Util.DelayedTask(),f=Array.prototype.slice.call(arguments);if(!d.tasks){d.tasks=[]}d.tasks.push(e);e.delay(Zving.isObject(a)?a.buffer:a||10,function(){d.tasks.remove(e);c.apply(b,f)},b)}};Zving.Function.createThrottled=function(e,b,d){var f,a,c,h,g=function(){e.apply(d||this,c);f=new Date().getTime()};return function(){a=new Date().getTime()-f;c=arguments;clearTimeout(h);if(!f||(a>=b)){g()}else{h=setTimeout(g,b-a)}}};Zving.Function.createInterceptor=function(c,b,a){var d=c;if(!z.isFunction(b)){return c}else{return function(){var f=this,e=arguments;b.target=f;b.method=c;return(b.apply(a||f||window,e)!==false)?c.apply(f||window,e):null}}};Zving.Function.createSequence=function(c,b,a){if(!z.isFunction(b)){return c}else{return function(){var d=c.apply(this||window,arguments);b.apply(a||this||window,arguments);return d}}};Zving.Function.before=function(b,a){return function(){if(a.apply(this,arguments)===false){return false}return b.apply(this,arguments)}};Zving.Function.after=function(b,a){return function(){var c=b.apply(this,arguments);if(c===false){return false}a.apply(this,arguments);return c}};(function(){var c=window.Zving,b={};var d=function(f){for(var e in f){if(f.hasOwnProperty(e)){this[e]=f[e]}}};var a=Object.prototype.constructor;b.extend=function(e,k,h){if(typeof k==="object"){h=k;k=e;e=h.constructor!=a?h.constructor:function(){k.apply(this,arguments)}}var g=function(){},f,j=k.prototype;g.prototype=j;f=e.prototype=new g();f.constructor=e;e.superclass=j;if(j.constructor==a){j.constructor=k}e.override=function(l){b.override(e,l)};f.override=d;b.override(e,h);e.extend=function(l){return b.extend(e,l)};return e};b.override=function(e,g){if(g){var f=e.prototype;c.mix(f,g);if(c.isIE&&g.hasOwnProperty("toString")){f.toString=g.toString}}};b.overrideIf=function(e,g){if(g){var f=e.prototype;c.mixIf(f,g)}};c.Class=b})();(function(){var c=window.Zving,a=Zving.Function,b={};b.methodize=function(g,d){var e={},f;for(f in g){if(g.hasOwnProperty(f)&&typeof g[f]==="function"&&!/^_/.test(f)){e[f]=a.methodize(g[f],d)}}return e};b.methodize=function(g,d){var e={},f;for(f in g){if(g.hasOwnProperty(f)&&typeof g[f]==="function"&&!/^_/.test(f)){e[f]=a.methodize(g[f],d)}}return e};b.extend=function(d,e){c.Class.override(d,b.methodize(e))};b.extendIf=function(d,e){c.Class.overrideIf(d,b.methodize(e))};b.rwrap=function(j,k,h){var f={};if(undefined===h||null===h){h=[]}var g=0,d=h.length;for(;g<d;g++){var e=h[g];if(typeof e==="string"&&typeof j[e]==="function"){f[e]=a.rwrap(j[e],k,-1)}}return c.mixIf(f,j)};c.Helper=b})();(function(){var a={};a.trim=function(b){return b.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};a.format=function(f){var b=f.split("?");var e=[];for(var d=0;d<b.length;d++){var c=b[d];if(c.charAt(c.length-1)=="\\"){e.push(c.substring(0,c.length-1));e.push("?")}else{e.push(c);if(d+1<b.length){e.push(arguments[d+1])}}}return e.join("")};a.tmpl=function(e,d,c,b){return e.replace(/\{([\w_$]+)\}/g,function(h,f){var g=d[f];if(g===undefined||g===null){if(c===undefined||c===null){return""}switch(c){case 0:return"";case 1:return f;default:return h}}if("[object Function]"==Object.prototype.toString.call(g)){g=g(f)}return b?encodeURIComponent(g):g})};a.camelize=function(b){return b.replace(/\-(\w)/ig,function(d,c){return c.toUpperCase()})};a.decamelize=function(b){return b.replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()})};a.startsWith=function(c,b){return c.indexOf(b)===0};a.endsWith=function(d,b){var c=d.lastIndexOf(b);return c>=0&&c===d.length-b.length};a.startWith=function(c,b){console.error&&console.error("startWith方法不再支持，请使用startsWith方法代替startWith方法.");console.trace&&console.trace();return a.startsWith(c,b)};a.endWith=function(c,b){console.error&&console.error("endWith方法不再支持，请使用endsWith方法代替endWith方法.");console.trace&&console.trace();return a.endsWith(c,b)};a.leftPad=function(f,g,e){if(!isNaN(e)){var b="",d;for(d=f.length;d<e;d++){b=b.concat(g)}b=b.concat(f);return b}return null};a.rightPad=function(f,g,e){if(!isNaN(e)){var b=f,d;for(d=f.length;d<e;d++){b=b.concat(g)}return b}return null};a.encodeURL=function(b){return encodeURI(b).replace(/\=/g,"%3D").replace(/\+/g,"%2B").replace(/\?/g,"%3F").replace(/\&/g,"%26")};a.decodeURI=function(b){return decodeURI(b.replace(/%3D/g,"=").replace(/%2B/g,"+").replace(/%3F/g,"?").replace(/%26/g,"&"))};a.htmlEncode=function(b){return b.replace(/&/g,"&amp;").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/ /g,"&#32;")};a.htmlDecode=function(b){return b.replace(/\&quot;/g,'"').replace(/\&lt;/g,"<").replace(/\&gt;/g,">").replace(/\&#32;/g," ").replace(/\&nbsp;/g," ").replace(/\&amp;/g,"&")};a.javaEncode=function(b){if(!b){return b}return b.replace("\\","\\\\").replace("\r\n","\n").replace("\n","\\n").replace('"','\\"').replace("'","\\'")};a.javaDecode=function(b){if(!b){return b}return b.replace("\\\\","\\").replace("\\n","\n").replace("\\r","\r").replace('\\"','"').replace("\\'","'")};a.escapeReg=function(b){return b.replace(new RegExp("([.*+?^=!:\x24{}()|[\\]/\\\\])","g"),"\\$1")};a.isNumber=function(b){if(a.trim(b)==""){return false}return(/^\-?\d+(\.\d+)?$/).test(""+b)};a.isInt=function(b){if(a.trim(b)==""){return false}return(/^\-?\d+$/).test(""+b)};a.toInt=function(b){return parseInt(b,10)};a.isTime=function(g){if(a.trim(g)==""){return false}var c=g.split(":");if(c.length!==3){return false}if(!a.isInt(c[0])||!a.isInt(c[1])||!a.isNumber(c[2])){return false}var f=Number(c[0]),b=Number(c[1]),e=Number(c[2]);if(f<0||f>24||b<0||b>60||e<0||e>60){return false}var d=new Date();d.setHours(c[0]);d.setMinutes(c[1]);d.setSeconds(c[2]);return d.toString().indexOf("Invalid")<0};a.isDate=function(g){if(a.trim(g)==""){return false}var b=g.split("-");if(b.length!==3){return false}if(!a.isInt(b[0])||!a.isInt(b[1])||!a.isInt(b[2])){return false}var j=Number(b[0]),h=Number(b[1]),f=Number(b[2]);var e=b[0].substr(b[0].length-2,2)=="00"?j%400:j%4;e=!e;if(h<1||h>12||f<1||f>31){return false}else{if(f>30&&(h==4||h==6||h==9||h==11)){return false}else{if(f>29&&h==2&&e){return false}else{if(f>28&&h==2&&!e){return false}}}}var c=new Date();c.setFullYear(b[0]);c.setMonth(b[1]);c.setDate(b[2]);return c.toString().indexOf("Invalid")<0};a.isDateTime=function(c){if(a.trim(c)==""){return false}if(c.indexOf(" ")<0){return isDate(c)}var b=c.split(" ");if(b.length<2){return false}return a.isDate(b[0])&&a.isTime(b[1])};a.getlength=function(d){var b=0;for(var c=0;c<d.length;c++){if(d.charCodeAt(c)>256){b+=2}else{b++}}return Math.ceil(b/2)};a.rgbToHex=function(g,h){var b=g.match(new RegExp("([\\d]{1,3})","g"));if(b[3]==0){return"transparent"}var d=[];for(var c=0;c<3;c++){var f=(b[c]-0).toString(16);d.push(f.length==1?"0"+f:f)}var e="#"+d.join("");if(h){return d}else{return e}};a.hexToRgb=function(f,g){var e=f.match(new RegExp("^[#]{0,1}([\\w]{1,2})([\\w]{1,2})([\\w]{1,2})$"));var c=[];for(var d=1;d<e.length;d++){if(e[d].length==1){e[d]+=e[d]}c.push(parseInt(e[d],16))}var b="rgb("+c.join(",")+")";if(g){return c}else{return b}};Zving.Helper.extend(String,a);Zving.String=a})();Zving.String.$tmpl=function(d,c){d=d.replace(/\$\{([\w_]+)\}/g,function(h,e){var g=e.toLowerCase();var f=c[g];if(f===undefined||f===null){return h}if(g!==e){c[e]=c[g]}return f});var a="var p=[],print=function(){p.push.apply(p,arguments);};with(obj){p.push('"+d.replace(/[\r\t\n]/g," ").split("${").join("\t").replace(/((^|\})[^\t]*)'/g,"$1\r").split("\t").join("');p.push(").split("}").join(");p.push('").split("\r").join("\\'")+"');}return p.join('');";var b=new Function("obj",a);return b(c)};(function(){var a={};a.forEach=a.each=function(c,g,f){var e=0,b=c.length;for(;e<b;e++){try{g.call(f||c[e],c[e],e,c)}catch(d){window.console&&console.error("Array.prototype.each:"+d.message)}}return c};a.clone=function(c){var b=c.length;var e=[],d=0;for(;d<b;d++){if(typeof(c[d])==="undefined"||c[d]===null){e[d]=c[d];continue}if(c[d].constructor===Array){e[d]=c[d].clone()}else{e[d]=c[d]}}return e};a.insert=function(b,d,f){if(isNaN(d)||d<0||d>b.length){b.push(f)}else{var c=b.slice(d),e;b[d]=f;for(e=0;e<c.length;e++){b[d+1+e]=c[e]}}return b};a.remove=function(c,f,d){var b,e;for(e=0;e<c.length;e++){if(f===c[e]){b=c.splice(e,1)[0]}}if(d){return b}else{b=null;return c}};a.indexOf=function(c,e){var b=c.length,d=0;for(;d<b;d++){if(c[d]===e){return d}}return -1};a.contains=function(b,c){return a.indexOf(b,c)!==-1};a.some=function(c,f,e){for(var d=0,b=c.length;d<b;d++){if(f.call(e||c[d],c[d],d,c)){return true}}return false};a.every=function(c,f,e){for(var d=0,b=c.length;d<b;d++){if(!f.call(e||c[d],c[d],d,c)){return false}}return true};Zving.Helper.extendIf(Array,a);Zving.Array=a})();(function(){var b=window.Zving;var a={};a.getCurrentDate=function(){return a.toString(new Date())};a.getCurrentTime=function(){var e=new Date();var g=e.getHours();var d=e.getMinutes();var f=e.getSeconds();var c=[];c.push(g>9?g:"0"+g);c.push(d>9?d:"0"+d);c.push(f>9?f:"0"+f);return c.join(":")};a.toString=function(f){var h=f.getFullYear();var e=f.getMonth()+1;var g=f.getDate();var c=[];c.push(h);c.push(e>9?e:"0"+e);c.push(g>9?g:"0"+g);return c.join("-")};a.parseDate=function(k){if(!k){b.Console.error("dateTime.js # DateTime.parseDate : 没有传入参数！");return null}var n=/^(\d{4})-(\d{1,2})-(\d{1,2})((?:\s|\xa0)(\d{1,2}):(\d{1,2})(:(\d{1,2})(\.\d{1,2})?)?)?$/;if(!n.test(k)){b.Console.error("dateTime.js # DateTime.parseDate : 参数错误 "+k);return false}n.exec(k);var l=RegExp.$1;var g=RegExp.$2;var j=RegExp.$3;var f=RegExp.$5;var e=RegExp.$6;var o=RegExp.$8;var c=new Date(l,g-1,j);if(!f){f=0;e=0}c.setHours(f);c.setMinutes(e);if(!o){o=0}c.setSeconds(o);return c};b.DateTime=a})();(function(){var g=window.Zving,f={};f.evalJs=function(h,j){return new Function("opts",h)(j)};f.evalExp=function(h,j){return new Function("opts","return "+h+";")(j)};f.globalEval=function(h){if(window.execScript){window.execScript(h)}else{window["eval"].call(window,h)}};f.runFuncBind$elem=function(n,h){var l=/([\w\.]+)(\((.*)\);?)?$/.exec(h);if(l[1]){var m=namespace(l[1]);var j=[];if(l[3]){var k=f.getReferId(n);l[3].replace(/\bthis\b/g,k);j=window["eval"]("["+l[3]+"]")}if(typeof m=="function"){m.apply(n,j)}else{window.console&&console.error("请确认用于插入内容模块的方法 "+h+" 存在并且没有语法错误。")}}};f.rectContains=function(j,h){return j.left<=h.left&&j.right>=h.right&&j.top<=h.top&&j.bottom>=h.bottom};f.rectIntersect=function(m,k){var n=Math.max(m.top,k.top),o=Math.min(m.right,k.right),h=Math.min(m.bottom,k.bottom),j=Math.max(m.left,k.left);if(h>=n&&o>=j){return{top:n,right:o,bottom:h,left:j}}else{return null}};f.generateId=function(){return(+new Date()).toString(36)+Math.random().toString(32).substr(2)};var c=0;f.getReferId=function(h){if(typeof h=="object"||typeof h=="function"){var j="_z_"+(++c);window[j]=h;return j}};f.random=function(j,h){return Math.floor(Math.random()*(h-j+1)+j)};f.DelayedTask=function(l,k,h){var m=this,n,j=function(){clearInterval(n);n=null;l.apply(k,h||[])};m.delay=function(p,r,q,o){m.cancel();l=r||l;k=q||k;h=o||h;n=setInterval(j,p)};m.cancel=function(){if(n){clearInterval(n);n=null}}};f.ClickRepeater=function(j,h){var k=this;k.el=g.getDom(j);k.$el=$(k.el);k.$el.disableSelection();k.onClick=g.noopFn;k.onMouseDown=g.noopFn;k.onMouseUp=g.noopFn;g.mix(k,h);if(!k.disabled){k.disabled=true;k.enable()}};f.ClickRepeater.prototype={interval:20,delay:250,timer:0,enable:function(){if(this.disabled){this.$el.on("mousedown.clickrepeater",$.proxy(this.handleMouseDown,this));if(g.isIE&&!(g.isStrict&&g.isIE9)){this.$el.on("dblclick.clickrepeater",$.proxy(this.handleDblClick,this))}if(this.preventDefault||this.stopDefault){this.$el.on("click.clickrepeater",$.proxy(this.eventOptions,this))}}this.disabled=false},disable:function(h){if(h||!this.disabled){clearTimeout(this.timer);$document.off("mouseup.clickrepeater",$.proxy(this.handleMouseUp,this));this.$el.off()}this.disabled=true},setDisabled:function(h){this[h?"disable":"enable"]()},eventOptions:function(h){if(this.preventDefault){h.preventDefault()}if(this.stopPropagation){h.stopPropagation()}},handleDblClick:function(h){clearTimeout(this.timer);this.onMouseDown(h);this.onClick(h)},handleMouseDown:function(h){clearTimeout(this.timer);this.mousedownTime=new Date();$document.on("mouseup.clickrepeater",$.proxy(this.handleMouseUp,this));this.$el.on("mouseout.clickrepeater",$.proxy(this.handleMouseOut,this));this.onMouseDown(h);this.onClick(h);if(this.accelerate){this.delay=400}this.timer=g.Function.delay(this.click,this.delay||this.interval,this,[h])},click:function(h){this.onClick();this.timer=g.Function.delay(this.click,this.accelerate?this.easeOutExpo(this.getElapsed(this.mousedownTime),400,-390,12000):this.interval,this,[h])},getElapsed:function(j,h){return Math.abs(j-(h||new Date()))},easeOutExpo:function(j,h,l,k){return(j==k)?h+l:l*(-Math.pow(2,-10*j/k)+1)+h},handleMouseOut:function(){clearTimeout(this.timer);this.$el.on("mouseover.clickrepeater",$.proxy(this.handleMouseReturn,this))},handleMouseReturn:function(){this.$el.off("mouseover.clickrepeater",this.handleMouseReturn);this.click()},handleMouseUp:function(h){clearTimeout(this.timer);this.$el.off("mouseover.clickrepeater",this.handleMouseReturn);this.$el.off("mouseout.clickrepeater",this.handleMouseOut);$document.off("mouseup.clickrepeater",this.handleMouseUp);this.onMouseUp(h)},destroy:function(){this.disable(true);this.$el.off(".clickrepeater");$document.off(".clickrepeater");this.el=this.$el=null;this.onClick=null;this.onMouseUp=null;this.onMouseDown=null}};f.limitSizeImg=function(l,j,m,n){var k={};if(l.naturalWidth){k.w="naturalWidth";k.h="naturalHeight";b(l,k,j,m,n)}else{k.w="offsetWidth";k.h="offsetHeight";setTimeout(function(){if(l.offsetHeight<m){setTimeout(arguments.callee,100);return}b(l,k,j,m,n)},100)}};function b(l,k,j,m,o){var p=l[k.h]/l[k.w];if(l[k.w]/l[k.h]>j/m){l.width=j;l.height=j*p;if(Math.abs(j*p-m)<10){l.height=m}}else{l.height=m;l.width=m/p;if(Math.abs(m/p-j)<10){l.width=j}}if(o){return}if(l.naturalWidth){if(l.naturalWidth<j&&l.naturalHeight<m){l.width=l.naturalWidth;l.height=l.naturalHeight}}else{var n=new Image();n.src=l.src;if(n.width<j&&n.height<m){l.width=n.width;l.height=n.height}n=null}}f.setImgMaxSize=function(m,l,k){if(!m){return}var h=new Image();h.src=m.src;var j=Math.max(h.width/l,h.height/k);m.style.width=h.width/Math.max(1,j)+"px";m.style.height=h.height/Math.max(1,j)+"px";h=null};f.setImgMinSize=function(m,k,l){if(!m){return}var h=new Image();h.src=m.src;var j=Math.min(k/h.width,l/h.height);m.style.width=h.width*Math.max(1,j)+"px";m.style.height=h.height/Math.max(1,j)+"px";h=null};var a={area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1};var e={colgroup:1,dd:1,dt:1,li:1,options:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:1};var e={colgroup:1,dt:1,li:1,options:1,p:1,tfoot:1,thead:1};f.htmlLint=function d(j){var l,k;function l(){this.pos=0;this.lineNumber=1;this.token="";this.current_mode="CONTENT";this.tags={parent:"parent1",parent_count:1,parent1:""};this.tag_type="";this.token_text=this.last_token=this.last_text=this.token_type="";this.Utils={whitespace:"\n\r\t ".split(""),single_token:",br,input,link,meta,!doctype,basefont,base,area,hr,wbr,param,img,isindex,?xml,embed,"};this.get_content=function(){var m="";var n=[];while(this.input.charAt(this.pos)!=="<"){if(this.pos>=this.input.length){return n.length?n.join(""):["","TK_EOF"]}m=this.input.charAt(this.pos);if(m=="\n"){this.lineNumber++}this.pos++;n.push(m)}return n.length?n.join(""):""};this.get_script=function(){var m="";var o=[];var p=new RegExp("<\/script>","igm");p.lastIndex=this.pos;var n=p.exec(this.input);var q=n?n.index:this.input.length;while(this.pos<q){if(this.pos>=this.input.length){return o.length?o.join(""):["","TK_EOF"]}m=this.input.charAt(this.pos);if(m=="\n"){this.lineNumber++}this.pos++;o.push(m)}return o.length?o.join(""):""};this.record_tag=function(m){if(this.tags[m+"_count"]){this.tags[m+"_count"]++;this.tags[m+this.tags[m+"_count"]]=this.indent_level}else{this.tags[m+"_count"]=1;this.tags[m+this.tags[m+"_count"]]=this.indent_level}this.tags[m+this.tags[m+"_count"]+"_parent"]=this.tags.parent;this.tags.parent=m+this.tags[m+"_count"]};this.retrieve_tag=function(m){if(this.tags[m+"_count"]){var n=this.tags.parent;while(n){if(m+this.tags[m+"_count"]===n){break}this.message.push("行"+this.lineNumber+" 缺失的结束标签 /"+n);n=this.tags[n+"_parent"]}if(n){this.indent_level=this.tags[m+this.tags[m+"_count"]];this.tags.parent=this.tags[n+"_parent"]}delete this.tags[m+this.tags[m+"_count"]+"_parent"];delete this.tags[m+this.tags[m+"_count"]];if(this.tags[m+"_count"]==1){delete this.tags[m+"_count"]}else{this.tags[m+"_count"]--}}else{if(this.Utils.single_token.indexOf(","+m+",")==-1){this.message.push("行"+this.lineNumber+" 多余的结束标签 "+m)}}};this.get_tag=function(){var m="";var o=[];do{if(this.pos>=this.input.length){return o.length?o.join(""):["","TK_EOF"]}m=this.input.charAt(this.pos);if(m=="\n"){this.lineNumber++}this.pos++;if(m==="'"||m==='"'){if(!o[1]||o[1]!=="!"){m+=this.get_unformatted(m)}}o.push(m)}while(m!==">");var q=o.join("");var p=0;while(m=q.charAt(p)){if(m==" "||m=="\n"||m=="\r"||m=="\t"||m==">"){break}p++}var n=q.substring(1,p).toLowerCase();if(q.charAt(q.length-2)==="/"||this.Utils.single_token.indexOf(","+n+",")!=-1){this.tag_type="SINGLE"}else{if(n==="script"){this.record_tag(n);this.tag_type="SCRIPT"}else{if(n==="style"){this.record_tag(n);this.tag_type="STYLE"}else{if(n.charAt(0)==="!"){if(n.indexOf("[if")!=-1){if(q.indexOf("!IE")!=-1){var r=this.get_unformatted("-->",q);o.push(r)}this.tag_type="START"}else{if(n.indexOf("[endif")!=-1){this.tag_type="END";this.unindent()}else{if(n.indexOf("[cdata[")!=-1){var r=this.get_unformatted("]]>",q);o.push(r);this.tag_type="SINGLE"}else{var r=this.get_unformatted("-->",q);o.push(r);this.tag_type="SINGLE"}}}}else{if(n.charAt(0)==="/"){this.retrieve_tag(n.substring(1));this.tag_type="END"}else{this.record_tag(n);this.tag_type="START"}}}}}return o.join("")};this.get_unformatted=function(n,o){if(o&&o.indexOf(n)!=-1){return""}var m="";var p="";do{m=this.input.charAt(this.pos);if(m=="\n"){this.lineNumber++}this.pos++;p+=m}while(p.indexOf(n)==-1&&this.pos<this.input.length);return p};this.get_token=function(){var n;if(this.last_token==="TK_TAG_SCRIPT"){var m=this.get_script();if(typeof m!=="string"){return m}n=m;return[n,"TK_CONTENT"]}if(this.current_mode==="CONTENT"){n=this.get_content();if(typeof n!=="string"){return n}else{return[n,"TK_CONTENT"]}}if(this.current_mode==="TAG"){n=this.get_tag();if(typeof n!=="string"){return n}else{var o="TK_TAG_"+this.tag_type;return[n,o]}}};this.indent=function(){this.indent_level++};this.unindent=function(){if(this.indent_level>0){this.indent_level--}};return this}k=new l();k.input=j;k.indent_level=0;k.output=[];k.message=[];while(true){var h=k.get_token();k.token_text=h[0];k.token_type=h[1];if(k.token_type==="TK_EOF"){break}switch(k.token_type){case"TK_TAG_START":case"TK_TAG_SCRIPT":case"TK_TAG_STYLE":k.indent();k.current_mode="CONTENT";break;case"TK_TAG_END":k.current_mode="CONTENT";break;case"TK_TAG_SINGLE":k.current_mode="CONTENT";break;case"TK_CONTENT":k.current_mode="TAG";break}k.last_token=k.token_type;k.last_text=k.token_text}if(k.tags.parent!="parent1"){k.message.push("行"+this.lineNumber+" 缺失的结束标签 /"+k.tags.parent)}if(k.message.length){return k.message}};f.jsParser=function(x){var A=0;var u=x.length;var m="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$";var h="\n\r\t ";var j="+ - * / % & ++ -- = += -= *= /= %= == === != !== > < >= <= >> << >>> >>>= >>= <<= && &= | || ! !! , : ? ^ ^= |= ::".split(" ");var q="continue,try,catch,throw,return,var,if,switch,case,default,for,while,break,function".split(",");var n=function(D,t){for(var C=0;C<t.length;C+=1){if(t[C]===D){return true}}return false};var r=function(){if(A>=u){return["","TK_EOF"]}var I=x.charAt(A);var C=A;A+=1;if(h.indexOf(I)!==-1){if(A<u){while(h.indexOf(x.charAt(A))!==-1){I+=x.charAt(A);A+=1;if(A===u){break}}}return[I,"TK_WHITESPACE"]}if(m.indexOf(I)!==-1){if(A<u){while(m.indexOf(x.charAt(A))!==-1){I+=x.charAt(A);A+=1;if(A===u){break}}}if(n(I,q)){return[I,"TK_KEYWORD"]}else{return[I,"TK_WORD"]}}if(I==="("||I==="["){return[I,"TK_START_EXPR"]}if(I===")"||I==="]"){return[I,"TK_END_EXPR"]}if(I==="{"){return[I,"TK_START_BLOCK"]}if(I==="}"){return[I,"TK_END_BLOCK"]}if(I===";"){return[I,"TK_SEMICOLON"]}if(I==="/"){var H="";var G=true;if(x.charAt(A)==="*"){A+=1;if(A<u){while(!(x.charAt(A)==="*"&&x.charAt(A+1)&&x.charAt(A+1)==="/")&&A<u){I=x.charAt(A);H+=I;if(I==="\x0d"||I==="\x0a"){G=false}A+=1;if(A>=u){break}}}A+=2;if(G){return["/*"+H+"*/","TK_INLINE_COMMENT"]}else{return["/*"+H+"*/","TK_BLOCK_COMMENT"]}}if(x.charAt(A)==="/"){H=I;while(x.charAt(A)!=="\r"&&x.charAt(A)!=="\n"){H+=x.charAt(A);A+=1;if(A>=u){break}}A+=1;return[H,"TK_COMMENT"]}}if(I==="'"||I==='"'||(I==="/"&&((p==="TK_WORD"&&n(y,["return","do"]))||(p==="TK_COMMENT"||p==="TK_START_EXPR"||p==="TK_START_BLOCK"||p==="TK_END_BLOCK"||p==="TK_OPERATOR"||p==="TK_EQUALS"||p==="TK_EOF"||p==="TK_SEMICOLON")))){var F=I;var D=false;var t=I;if(A<u){if(F==="/"){var E=false;while(D||E||x.charAt(A)!==F){t+=x.charAt(A);if(!D){D=x.charAt(A)==="\\";if(x.charAt(A)==="["){E=true}else{if(x.charAt(A)==="]"){E=false}}}else{D=false}A+=1;if(A>=u){return[t,"TK_STRING"]}}}else{while(D||x.charAt(A)!==F){t+=x.charAt(A);if(!D){D=x.charAt(A)==="\\"}else{D=false}A+=1;if(A>=u){return[t,"TK_STRING"]}}}}A+=1;t+=F;if(F==="/"){while(A<u&&m.indexOf(x.charAt(A))!==-1){t+=x.charAt(A);A+=1}}return[t,"TK_STRING"]}if(n(I,j)){while(A<u&&n(I+x.charAt(A),j)){I+=x.charAt(A);A+=1;if(A>=u){break}}if(I==="="){return[I,"TK_EQUALS"]}else{return[I,"TK_OPERATOR"]}}return[I,"TK_UNKNOWN"]};var w,o;var p="TK_START_EXPR";var y="";var l="";var k=[];while(true){if(k.length>13449){break}var B=r(A);w=B[0];o=B[1];if(o==="TK_EOF"){break}if(o!=="TK_WHITESPACE"){k.push(B);l=y;p=o;y=w}}return k};f.getGlobalDefine=function(j){var o={};j=j.replace(/\bwindow\.([\w\$\_])\s*=\s*\w+/g,function(l,t){o[t]=true;return l});var h=f.jsParser(j);var p=0,n=0;for(var m=0,k=h.length;m<k;m++){if(h[m][1]=="TK_KEYWORD"){if(h[m][0]=="function"){if(h[m+1]&&h[m+1][1]=="TK_WORD"&&h[m+2]&&h[m+2][1]=="TK_START_EXPR"){o[h[m+1][0]]=true}if(h[m-1]&&h[m-1][1]=="TK_EQUALS"&&h[m-2]&&h[m-2][1]=="TK_WORD"&&(!h[m-3]||h[m-3][0]!==".")){o[h[m-2][0]]=true}p++;var q=-1;for(;m<k;m++){if(h[m][1]=="TK_START_BLOCK"){if(q==-1){q=n}n++}else{if(h[m][1]=="TK_END_BLOCK"){n--}}if(q==n){break}}}else{if(h[m][0]=="var"){if(h[m+1]&&h[m+1][1]=="TK_WORD"){o[h[m+1][0]]=true}var q=-1;for(;m<k;m++){if(q==-1){if(h[m][1]=="TK_SEMICOLON"){break}else{if(h[m][1]=="TK_WORD"&&h[m-1][0]==","){o[h[m][0]]=true}}}if(h[m][1]=="TK_START_BLOCK"){if(q==-1){q=n}n++}else{if(h[m][1]=="TK_END_BLOCK"){n--}}if(q==n){q==-1}}}}}}for(var r in o){return o}};g.Util=f})();(function(){var a=function(b){if(b.time){return new window.Date(b.time)}else{throw new Error('Zving.Date接受的参数格式为 {"time":1419562900000,"@type":"Date"}')}};a.format=function(f,c){var b;c=c||"yyyy-MM-dd";var g=f.getFullYear();var e={M:f.getMonth()+1,d:f.getDate(),h:f.getHours(),m:f.getMinutes(),s:f.getSeconds()};c=c.replace(/(y+)/ig,function(j,h){var d=Math.min(4,h.length);return(g+"").substr(4-d)});for(b in e){c=c.replace(new RegExp("("+b+"+)","g"),function(h,d){return(e[b]<10&&d.length>1)?"0"+e[b]:e[b]})}return c};Zving.Helper.extend(window.Date,a);Zving.Date=a})();(function(){var c=window.Zving;var b={};b.parse=(function(){var d=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;var e;function f(j,m){var l=m[j];if(l&&typeof l==="object"){for(var h in l){var g=f(h,l);if(g!==undefined){l[h]=g}else{delete l[h]}}}return e.call(m,j,l)}return function(j,g){d.lastIndex=0;if(d.test(j)){j=j.replace(d,function(k){return"\\u"+("0000"+k.charCodeAt(0).toString(16)).slice(-4)})}if(j&&/^[\],:{}\s]*$/.test(j.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){var h=new Function("return "+j)();e=g;return typeof g==="function"?f("",{"":h}):h}throw new SyntaxError("Invalid JSON format in executing JSON.parse")}})();b.stringify=(function(){function h(m){return m<10?"0"+m:m}Date.prototype.toJSON=function(m){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+h(this.getUTCMonth()+1)+"-"+h(this.getUTCDate())+"T"+h(this.getUTCHours())+":"+h(this.getUTCMinutes())+":"+h(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(m){return this.valueOf()};var d;var l;var j;var k=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;var g={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function f(m){k.lastIndex=0;return k.test(m)?'"'+m.replace(k,function(n){var o=g[n];return typeof o==="string"?o:"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+m+'"'}function e(u,q){var o,n,w,m,r=l,p,t=q[u];if(t&&typeof t==="object"&&typeof t.toJSON==="function"){t=t.toJSON(u)}if(typeof j==="function"){t=j.call(q,u,t)}switch(typeof t){case"string":return f(t);case"number":return isFinite(t)?String(t):"null";case"boolean":case"null":return String(t);case"object":if(!t){return"null"}l+=d;p=[];if(Object.prototype.toString.apply(t)==="[object Array]"){m=t.length;for(o=0;o<m;o+=1){p[o]=e(o,t)||"null"}w=p.length===0?"[]":l?"[\n"+l+p.join(",\n"+l)+"\n"+r+"]":"["+p.join(",")+"]";l=r;return w}if(j&&typeof j==="object"){m=j.length;for(o=0;o<m;o+=1){n=j[o];if(typeof n==="string"){w=e(n,t);if(w){p.push(f(n)+(l?": ":":")+w)}}}}else{for(n in t){if(Object.hasOwnProperty.call(t,n)){w=e(n,t);if(w){p.push(f(n)+(l?": ":":")+w)}}}}w=p.length===0?"{}":l?"{\n"+l+p.join(",\n"+l)+"\n"+r+"}":"{"+p.join(",")+"}";l=r;return w}}return function(o,n,m){if(n!=null&&Object.prototype.toString.apply(n)!=="[object Array]"&&Object.prototype.toString.apply(n)==="[object Function]"){throw new Error("Invalid type of 2nd argument in JSON.stringify, only Array and Function allowed")}l=d="";if(m&&typeof m==="number"){d=new Array(m+1).join(" ")}else{if(m&&typeof m==="string"){d=m}}j=n;return e("",{"":o})}})();var a=Object.prototype.toString;b.toQuery=function(g,k){var d=[],j,f=k||function(l){return encodeURIComponent(l)};for(var e in g){var h=g[e];if(a.apply(h)==="[object Array]"){j=h.length;while(j--){d.push(e+"="+f(h[j],e))}}else{d.push(e+"="+f(h,e))}}return d.join("&")};b.keys=function(f){var d=[];for(var e in f){if(f.hasOwnProperty(e)){d.push(e)}}return d};b.values=function(f){var d=[];for(var e in f){if(f.hasOwnProperty(e)){d.push(f[e])}}return d};Zving.JSON=b})();(function(){var b=window.Zving;var a=function(d,c){this.name=c;this.obj=d;this.listeners=[]};a.prototype.isEvent=true;a.prototype.addListener=function(e,d,c){var f=this,g;d=d||f.obj;if(!f.isListening(e,d)){g=f.createListener(e,d,c);if(f.firing){f.listeners=f.listeners.slice(0)}f.listeners.push(g)}};a.prototype.createListener=function(f,e,c){e=e||this.obj;var g={fn:f,scope:e,options:c,ev:this},d=f;if(c&&c.single){d=Zving.Function.createSingle(d,g,c,e)}if(c&&c.delay){d=Zving.Function.createDelayed(d,g,c,e)}if(c&&c.buffer){d=Zving.Function.createBuffered(d,g,c,e)}g.fireFn=d;return g};a.prototype.findListener=function(e,d){var g=this.listeners,c=g.length,f;d=d||this.obj;while(c--){f=g[c];if(f){if(f.fn==e&&(f.scope==d||f.scope==this.obj)){return c}}}return -1};a.prototype.isListening=function(d,c){return this.findListener(d,c)!==-1};a.prototype.removeListener=function(f,e){var d,h,c,g=this;d=g.findListener(f,e);if(d!=-1){h=g.listeners[d];if(g.firing){g.listeners=g.listeners.slice(0)}if(h.task){h.task.cancel();delete h.task}c=h.tasks&&h.tasks.length;if(c){while(c--){h.tasks[c].cancel()}delete h.tasks}g.listeners.splice(d,1);return true}return false};a.prototype.clearListeners=function(){var d=this,e=d.listeners,c=e.length;while(c--){d.removeListener(e[c].fn,e[c].scope)}};a.prototype.fire=function(){var g=this,f=g.listeners,c=f.length,e=0,d,h;if(c>0){g.firing=true;for(;e<c;e++){h=f[e];d=arguments.length?Array.prototype.slice.call(arguments,0):[];if(h.options){d.push(h.options)}if(!h.fireFn){throw"通过CustEvent.addListener事件"+this.name+"注册的方法有误，无法执行"}if(h&&h.fireFn.apply(h.scope||g.obj||window,d)===false){return(g.firing=false)}}}g.firing=false;return true};b.CustEvent=a})();(function(){var b=window.Zving;var a=/^(?:scope|delay|buffer|single)$/;b.Observable=function(f){var c=f,d=c.events;c.events=d||{};c.fireEvent=function(){var j=Array.prototype.slice.call(arguments),k=j[0].toLowerCase(),h=true,g=c.events[k],e,l;if(c.eventsSuspended===true){e=c.eventQueue;if(e){e.push(j)}}else{if(b.isObject(g)&&g.bubble){if(g.fire.apply(g,j.slice(1))===false){return false}l=c.getBubbleTarget&&c.getBubbleTarget();if(l&&l.enableBubble){if(!l.events[k]||!b.isObject(l.events[k])||!l.events[k].bubble){l.enableBubble(k)}return l.fireEvent.apply(l,j)}}else{if(b.isObject(g)){j.shift();h=g.fire.apply(g,j)}}}return h};c.addListener=function(h,l,k,n){var m,p,j,g;if(b.isObject(h)){n=h;for(m in n){p=n[m];if(!a.test(m)){c.addListener(m,p.fn||p,p.scope||n.scope,p.fn?p:n)}}}else{h=h.toLowerCase();g=c.events[h]||true;if(typeof(g)==="boolean"){c.events[h]=g=new b.CustEvent(c,h)}g.addListener(l,k,b.isObject(n)?n:{})}};c.removeListener=function(g,j,h){var e=c.events[g.toLowerCase()];if(b.isObject(e)){e.removeListener(j,h)}};c.purgeListeners=function(){var h=c.events,e,g;for(g in h){e=h[g];if(b.isObject(e)){e.clearListeners()}}};c.addEvents=function(h){c.events=c.events||{};if(typeof(h)==="string"){var e=arguments,g=e.length;while(g--){c.events[e[g]]=c.events[e[g]]||true}}else{b.mixIf(c.events,h)}if(c.listeners){c.on(c.listeners);delete c.listeners}};c.hasListener=function(g){var h=c.events[g];return b.isObject(h)&&h.listeners.length>0};c.suspendEvents=function(e){c.eventsSuspended=true;if(e&&!c.eventQueue){c.eventQueue=[]}};c.resumeEvents=function(){var e=c.eventQueue||[];c.eventsSuspended=false;delete c.eventQueue;e.each(function(g){c.fireEvent.apply(c,g)})};c.enableBubble=function(k){if(!b.isEmpty(k)){k=b.isArray(k)?k:Array.prototype.slice.call(arguments);for(var j=0,e=k.length;j<e;j++){var h=k[j];h=h.toLowerCase();var g=c.events[h]||true;if(typeof g==="boolean"){g=new b.CustEvent(c,h);c.events[h]=g}g.bubble=true}}};c.on=c.addListener;c.un=c.removeListener}})();
  /*! DataCollection DataTable*/
  (function(){var z=window.Zving,DataTable,DataRow,DataCollection,_ZVING_NULL,javaEncode=z.String.javaEncode;z.Constant.Null=_ZVING_NULL="_ZVING_NULL";DataTable=function(options){this.Columns=null;this.Values=null;this.Rows=null;this.ColMap={};if(options&&options.Columns&&options.Values){this.init(options.Columns,options.Values)}};DataTable.prototype.getRowCount=function(){return this.Rows.length};DataTable.prototype.getColCount=function(){return this.Columns.length};DataTable.prototype.getColName=function(i){return this.Columns[i]};DataTable.prototype.getAt=function(i,j){return this.Rows[i].getAt(j)};DataTable.prototype.get=function(i,str){return this.Rows[i].get(str)};DataTable.prototype.getDataRow=function(i){return this.Rows[i]};DataTable.prototype.indexOf=function(dataRow){for(var i=0,len=this.Rows.length;i<len;i++){if(this.Rows[i]===dataRow){return i}}return -1};DataTable.prototype.deleteRow=function(i){this.Values.splice(i,1);this.Rows.splice(i,1);for(var k=i;k<this.Rows.length;k++){this.Rows[k].Index=k}};DataTable.prototype.insertRow=function(i,values){this.Values.splice(i,0,values);this.Rows.splice(i,0,new DataRow(this,i));for(var k=i;k<this.Rows.length;k++){this.Rows[k].Index=k}};DataTable.prototype.insertRows=function(index,valuesArray){Array.prototype.splice.apply(this.Values,[index,0].concat(valuesArray));var rowsArray=new Array(valuesArray.length);for(var i=0,len=valuesArray.length;i<len;i++){rowsArray[i]=new DataRow(this,i+index)}Array.prototype.splice.apply(this.Rows,[index,0].concat(rowsArray));for(var k=index;k<this.Rows.length;k++){this.Rows[k].Index=k}};DataTable.prototype.insertColumn=function(name){if(this.hasColumn(name)){return}var col={};col.Name=name.toLowerCase();col.Type=1;this.Columns.push(col);this.ColMap[col.Name]=this.Columns.length-1;for(var i=0;i<this.Values.length;i++){this.Values[i].push(null)}};DataTable.prototype.hasColumn=function(name){name=name.toLowerCase();for(var j=0;j<this.Columns.length;j++){if(this.Columns[j].Name===name){return true}}return false};DataTable.prototype.init=function(cols,values){this.Values=values||[];this.Columns=[];this.Rows=[];var i;for(i=0;i<cols.length;i++){var col={};if(cols[i].length&&cols[i][0]){col.Name=cols[i][0];col.Type=cols[i][1]}else{col=cols[i]}col.Name=col.Name.toLowerCase();this.Columns[i]=col;this.ColMap[col.Name]=i}for(i=0;i<values.length;i++){var row=new DataRow(this,i);this.Rows[i]=row}};DataTable.prototype.toXML=function(){var arr=[],i;arr.push("<columns><![CDATA[[");for(i=0;i<this.Columns.length;i++){if(i!==0){arr.push(",")}arr.push("[");arr.push('"'+this.Columns[i].Name+'",');arr.push(this.Columns[i].Type);arr.push("]")}arr.push("]]]></columns>");arr.push("<values><![CDATA[[");for(i=0;i<this.Values.length;i++){if(i!==0){arr.push(",")}arr.push("[");for(var j=0;j<this.Columns.length;j++){if(j!==0){arr.push(",")}if(this.Values[i][j]===null||typeof(this.Values[i][j])=="undefined"){arr.push('"_ZVING_NULL"')}else{var v=this.Values[i][j];if(typeof(v)=="string"){v=javaEncode(v)}arr.push('"'+v+'"')}}arr.push("]")}arr.push("]]]></values>");return arr.join("")};DataTable.prototype.toJSON=function(){var obj=z.mix({},{"@type":"DataTable",Columns:this.Columns,Values:this.Values});return obj};DataRow=function(dt,index){this.DT=dt;this.Index=index};DataRow.prototype.getColCount=function(){return this.DT.Columns.length};DataRow.prototype.getIndex=function(){return this.Index};DataRow.prototype.getColName=function(i){return this.DT.Columns[i]};DataRow.prototype.getAt=function(i){return this.DT.Values[this.Index][i]};DataRow.prototype.getValues=function(i){return this.DT.Values[this.Index]};DataRow.prototype.get=function(str){str=str;var c=this.DT.ColMap[str];if(typeof(c)=="undefined"){if(/[A-Z]/.test(str)){return this.get(str.toLowerCase())}else{return}}if(this.DT.Values[this.Index]){return this.DT.Values[this.Index][c]}};DataRow.prototype.set=function(str,value){str=str.toLowerCase();var c=this.DT.ColMap[str];if(typeof(c)=="undefined"){return}if(this.DT.Values[this.Index]){this.DT.Values[this.Index][c]=value}};DataRow.prototype.setAt=function(i,value){this.DT.Values[this.Index][i]=value};DataRow.prototype.each=function(func,scope){var cols=this.DT.Columns;var vals=this.DT.Values[this.Index];for(var i=0,l=cols.length;i<l;i++){if(func.call(scope||vals[i],vals[i],cols[i].Name,l)===false){break}}};DataRow.prototype.toJSON=function(){var obj={};var cols=this.DT.Columns;var vals=this.DT.Values[this.Index];for(var i=0,l=cols.length;i<l;i++){obj[cols[i].Name]=vals[i]}return obj};DataCollection=function(){this.map={};this.valuetype={};this.keys=[]};DataCollection.prototype.get=function(ID){if(typeof(ID)==="number"){return this.getAt(ID)}return this.map[ID]};DataCollection.prototype.getAt=function(ID){ID=Number(ID);if(isNaN(ID)||ID>this.keys.length){return}return this.map[this.keys[ID]]};DataCollection.prototype.last=function(){return this.map[this.keys[this.keys.length-1]]};DataCollection.prototype.getKey=function(index){return this.keys[index]};DataCollection.prototype.getValues=function(index){var ret=[];for(var i=0;i<this.keys.length;i++){ret.push(this.map[this.keys[i]])}return ret};DataCollection.prototype.indexOf=function(item){for(var i=0;i<this.keys.length;i++){if(this.map[this.keys[i]]===item){return i}}return -1};DataCollection.prototype.size=function(){return this.keys.length};DataCollection.prototype.add=DataCollection.prototype.set=function(ID,Value,Type){if(typeof this.map[ID]=="undefined"){this.keys.push(ID)}this.map[ID]=Value;if(Type){this.valuetype[ID]=Type}else{if(Value&&Value.getDataRow){this.valuetype[ID]="DataTable"}else{this.valuetype[ID]="String"}}};DataCollection.prototype.addAll=function(dc){if(!dc){return}if(!dc.valuetype){window.console&&console.error("DataCollection.addAll()要求参数必须是一个DataCollection!");return}var size=dc.size(),i;for(i=0;i<size;i++){var k=dc.keys[i];var v=dc.map[k];var t=dc.valuetype[k];this.add(k,v,t)}};DataCollection.prototype.remove=function(ID){if(ID===undefined||ID===null){return}var obj;if(typeof(ID)==="number"){return this.removeAt(ID)}else{var i;for(i=0;i<this.keys.length;i++){if(this.keys[i]==ID){obj=this.map[ID];delete this.map[ID];delete this.valuetype[ID];this.keys.splice(i,1);return obj}}}return};DataCollection.prototype.removeAt=function(ID){var obj;ID=Number(ID);if(isNaN(ID)||ID>this.keys.length){return}obj=this.map[this.keys[ID]];delete this.map[this.keys[ID]];delete this.valuetype[this.keys[ID]];this.keys.splice(ID,1);return obj};DataCollection.prototype.each=function(func,scope){for(var i=0,len=this.keys.length,item;i<len;i++){item=this.map[this.keys[i]];if(func.call(scope||item,item,i,len)===false){break}}};DataCollection.prototype.clear=function(ID){this.keys.length=0;this.map={};this.valuetype={};return this};DataCollection.prototype.toQueryString=function(){var arr=[],i;for(i=0;i<this.keys.length;i++){if(this.map[this.keys[i]]==null||this.map[this.keys[i]]==""){continue}if(i!==0){arr.push("&")}arr.push(this.keys[i]+"="+this.map[this.keys[i]])}return arr.join("")};var getNodeValue=function(node){var v=node.getAttribute("value");if(v===null&&node.childNodes.length){v="";for(var i=0;i<node.childNodes.length;i++){var childNode=node.childNodes[i];if(childNode.nodeType==4){v+=childNode.nodeValue.trim()}}}if(v==_ZVING_NULL){v=null}return v};DataCollection.prototype.parseXML=function(xmlDoc){var coll=xmlDoc.documentElement;if(!coll){return false}if(coll.nodeName=="parsererror"){window.console&&console.error(coll.innerText?coll.innerText:coll.textContent);return}var nodes=coll.childNodes;var len=nodes.length,i;for(i=0;i<len;i++){var node=nodes[i];if(node.nodeType!=1){continue}var Type=node.getAttribute("type");var ID=node.getAttribute("id");this.valuetype[ID]=Type;var v;if(Type==="String"){this.map[ID]=getNodeValue(node)}else{if(Type==="StringArray"){this.map[ID]=eval("["+getNodeValue(node)+"]")}else{if(Type==="Map"){v=getNodeValue(node);if(v){v=v.replace(/(^\{\|,)class:/ig,'$1"class":')}this.map[ID]=eval("("+v+")")}else{if(Type==="DataTable"||Type==="Schema"||Type==="SchemaSet"){this.parseDataTable(node,"DataTable")}else{this.map[ID]=getNodeValue(node)}}}}this.keys.push(ID)}return true};DataCollection.prototype.parseDataTable=function(node,strType){var cols=getNodeValue(node.getElementsByTagName("columns")[0]);cols="var _TMP1 = "+cols;eval(cols);cols=_TMP1;var values=getNodeValue(node.getElementsByTagName("values")[0]);values="var _TMP2 = "+values;eval(values);values=_TMP2;var obj;obj=new DataTable();obj.init(cols,values);this.add(node.getAttribute("id"),obj)};DataCollection.prototype.toXML=function(){var arr=[],i;arr.push('<?xml version="1.0" encoding="UTF-8"?>');arr.push("<collection>");for(i=0;i<this.keys.length;i++){var ID=this.keys[i];try{var thisType=this.valuetype[ID];var v=this.map[ID];if(/^(long|int|float|double)$/i.test(thisType)){arr.push('<element id="'+ID+'" type="'+thisType+'" value="'+v+'"></element>')}else{arr.push('<element id="'+ID+'" type="'+thisType+'">');if(thisType=="DataTable"){arr.push(v.toXML())}else{if(thisType=="String"){if(v===null||typeof(v)=="undefined"){arr.push("<![CDATA["+Constant.Null+"]]>")}else{arr.push("<![CDATA["+v+"]]>")}}else{if(thisType=="Map"){if(v===null||typeof(v)=="undefined"){arr.push("<![CDATA["+Constant.Null+"]]>")}else{arr.push("<![CDATA["+Zving.JSON.stringify(v)+"]]>")}}else{if(thisType=="StringArray"){if(v===null||typeof(v)=="undefined"){arr.push("<![CDATA["+Constant.Null+"]]>")}else{var r=[];for(var j=0;j<v.length;j++){r.push(javaEncode(v[j]))}arr.push("<![CDATA["+r.join('","')+"]]>")}}else{arr.push(v)}}}}arr.push("</element>")}}catch(ex){window.console&&console.error("DataCollection.toXML():"+ID+","+ex.message)}}arr.push("</collection>");return arr.join("")};DataCollection.prototype.toJSON=function(){return this.map};z.DataRow=DataRow;z.DataTable=DataTable;z.DataCollection=DataCollection})();(function(){if(Zving.isIE||!window.HTMLElement||!HTMLElement.prototype){return}var e={};e.insertAdjacentElement=function(f,g){switch(f.toLowerCase()){case"beforebegin":this.parentNode.insertBefore(g,this);return this.previousSibling;case"afterbegin":this.insertBefore(g,this.firstChild);return this.firstChild;case"beforeend":this.appendChild(g);return this.lastChild;case"afterend":if(this.nextSibling){this.parentNode.insertBefore(g,this.nextSibling)}else{this.parentNode.appendChild(g)}return this.nextSibling}};if(!HTMLElement.prototype.insertAdjacentHTML){e.insertAdjacentHTML=function(g,j){var h=this.ownerDocument.createRange();h.setStartBefore(this);var f=h.createContextualFragment(j);return this.insertAdjacentElement(g,f)}}e.insertAdjacentText=function(g,f){return this.insertAdjacentElement(g,document.createTextNode(f))};if(!HTMLElement.prototype.contains){e.contains=function(f){return !!(this.compareDocumentPosition(f)&16)}}if(!HTMLElement.prototype.fireEvent){e.fireEvent=function(h){h=h.replace(/^on/i,"");var f;var g=this.ownerDocument||document;if(/mouse|click/i.test(h)){f=g.createEvent("MouseEvents");f.initMouseEvent(h,true,true,g.defaultView,1,0,0,0,0,false,false,false,false,0,null)}else{f=g.createEvent("Event");f.initEvent(h,true,true)}return this.dispatchEvent(f)};window.constructor.prototype.fireEvent=HTMLDocument.prototype.fireEvent=e.fireEvent}Zving.mixIf(HTMLElement.prototype,e);if(!("event" in window)){window.constructor.prototype.__defineGetter__("event",function(){var h=arguments.callee.caller,f=null,g=0;for(;h!=null&&h.arguments;g++,h=h.caller){f=h.arguments[0];if(f&&typeof f=="object"&&/Event/.test(f)){return f}if(g>999){return null}}return null})}var a=HTMLElement.prototype;var d=document.createElement("div");if(!("outerHTML" in d)){a.__defineSetter__("outerHTML",function(g){var f=this.ownerDocument.createRange();f.setStartBefore(this);var h=f.createContextualFragment(g);this.parentNode.replaceChild(h,this);return g});a.__defineGetter__("outerHTML",function(){var f,h,g=this.attributes,j="<"+this.tagName.toLowerCase();for(h=0;h<g.length;h++){f=g[h];if(f.specified){j+=" "+f.name+'="'+f.value+'"'}}if(!this.hasChildNodes){return j+">"}return j+">"+this.innerHTML+"</"+this.tagName.toLowerCase()+">"})}if(!("innerText" in d)){a.__defineSetter__("innerText",function(f){this.textContent=f});a.__defineGetter__("innerText",function(){return this.textContent});a.__defineSetter__("outerText",function(f){this.parentNode.replaceChild(document.createTextNode(s),this);return s});a.__defineGetter__("outerText",function(){var f=this.ownerDocument.createRange();f.selectNodeContents(this);return f.toString()})}a.__defineGetter__("currentStyle",function(){return this.ownerDocument.defaultView.getComputedStyle(this,null)});if(!("parentElement" in d)){a.__defineGetter__("parentElement",function(){return(this.parentNode===this.ownerDocument)?null:this.parentNode})}if(!("children" in d)){a.__defineGetter__("children",function(){var g=[],f;for(f=0;f<this.childNodes.length;f++){var h=this.childNodes[f];if(h.nodeType===1){g.push(h)}}return g})}a.__defineGetter__("canHaveChildren",function(){return !/^(area|base|basefont|col|frame|hr|img|br|input|isindex|link|meta|param)$/i.test(this.tagName)});HTMLDocument.prototype.parentWindow=document.defaultView;HTMLCollection.prototype.item=function(f){return this[f]};var c=Event.prototype;var b=document.createEvent("Event");if(!("srcElement" in b)){c.__defineGetter__("srcElement",function(){var f=this.target;while(f&&f.nodeType!=1){f=f.parentNode}return f})}if(!("fromElement" in b)){c.__defineGetter__("fromElement",function(){var f=(this.type==="mouseover"&&this.relatedTarget)||(this.type==="mouseout"&&this.target)||null;while(f&&f.nodeType!=1){f=f.parentNode}return f});c.__defineGetter__("toElement",function(){var f=(this.type==="mouseover"&&this.target)||(this.type==="mouseout"&&this.relatedTarget)||null;while(f&&f.nodeType!=1){f=f.parentNode}return f})}if(!("x" in b)){c.__defineGetter__("x",function(){return this.pageX});c.__defineGetter__("y",function(){return this.pageY})}if(!("offsetX" in b)){c.__defineGetter__("offsetX",function(){return this.layerX});c.__defineGetter__("offsetY",function(){return this.layerY})}if(!("fromElement" in b)){c.__defineSetter__("returnValue",function(f){if(!f){this.preventDefault()}return f})}if(!("cancelBubble" in b)){c.__defineSetter__("cancelBubble",function(f){if(f){this.stopPropagation()}return f})}})();
  /*! dom_base.js */
  $window=$(window);$document=$(document);(function(){var e=window.Zving;var a=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,b={};e.support={};var g=document.createElement("input");var f="autocomplete,autofocus,list,placeholder,max,min,multiple,pattern,required,step".split(",");for(var c=0,d=f.length;c<d;c++){e.support[f[c]]=!!(f[c] in g)}g=null;var j=e.getDom=function(k,l){if(!k){return k}if(typeof k=="string"){return(l||document).getElementById(k.replace(/^#/,""))}if(!k.nodeName&&k.length&&k[0].nodeName){return k[0]}return k};e.getByTag=function(p,n){if(arguments.length===1){n=p;p=document}if(typeof(n)!=="string"){throw location.pathname+" - $T : 参数错误 "+name}p=j(p);var o=p.getElementsByTagName(n||"*");var l=[];var k=o.length;for(var m=0;m<k;m++){l.push(o[m])}return l};e.getByName=function(l){if(typeof(l)!=="string"){throw location.pathname+" - $N : 参数错误 "+l}var n=document.getElementsByName(l);if(!n||n.length===0){return null}var k=[];for(var m=0;m<n.length;m++){k.push(n[m])}return k};e.getValues=function(m){m=m.replace(/^#/,"");var p=e.getByName(m);var k=[];var o;if(!p||!p.length){o=document.getElementById(m);if(o&&"SELECT,INPUT,TEXTAREA,BUTTON".indexOf(o.tagName)!==-1){return[e.Node.getValue(m)]}else{return k}}for(var n=0;n<p.length;n++){o=p[n];if(o.tagName&&"SELECT,INPUT,TEXTAREA,BUTTON".indexOf(o.tagName)!==-1){var l=e.Node.getValue(o);if(l!==null){k.push(l)}}}return k};e.setValues=function(m,o){o=String(o);var p=e.getByName(m);if(!p){return}if(!p[0]){return e.Node.setValue(p,o)}var n;if(p[0].type=="checkbox"){if(o===null){o=new Array(4)}var k=o;if(!isArray(o)){k=o.split(",")}for(n=0;n<p.length;n++){for(var l=0;l<k.length;l++){if(p[n].value==k[l]){e.Node.setValue(p[n],k[l]);break}e.Node.setValue(p[n],k[l])}}return}for(n=0;n<p.length;n++){e.Node.setValue(p[n],o)}};e.toXMLDOM=function(n){var m;if(e.isIE){try{m=new ActiveXObject("Microsoft.XMLDOM")}catch(k){m=new ActiveXObject("Msxml2.DOMDocument")}m.loadXML(n)}else{var l=new DOMParser();m=l.parseFromString(n,"text/xml")}return m};b.createNode=b.createDom=function(m,l,o){if(!m){throw"传入createNode方法的参数错误"}if(e.isObject(m)){o=l||document;l=m;m=l.tagName||l.tag||"div"}o=o||document;var n=o.createElement(m);for(var k in l){if(l.hasOwnProperty(k)){if(!/tag|tagName|children|cn|html$/i.test(k)){if(k=="cls"||k=="className"){n.className=l[k]}else{n.setAttribute(k,l[k])}}}}return n};b.createHtml=function(r){var m="",l,q,p,k,t;if(e.isString(r)){m=r}else{if(e.isArray(r)){for(var n=0;n<r.length;n++){if(r[n]){m+=createHtml(r[n])}}}else{m+="<"+(r.tag=r.tag||"div");e.iterate(r,function(o,u){if(!/tag|children|cn|html$/i.test(o)){if(e.isObject(u)){m+=" "+o+'="';e.iterate(u,function(x,w){m+=x+":"+w+";"});m+='"'}else{m+=" "+({cls:"class",htmlFor:"for"}[o]||o)+'="'+u+'"'}}});if(a.test(r.tag)){m+="/>"}else{m+=">";t=r.children||r.cn;if(t){m+=b.createHtml(t)}else{if(r.html){m+=r.html}}m+="</"+r.tag+">"}}}return m};b.removeNode=e.isIE&&!e.isIE8?(function(){Zving._RycDiv=null;return function(l){l=j(l);if(!l||!l.nodeName){return}var k=l.ownerDocument.parentWindow.Zving;if(l&&l.tagName!="BODY"){k._RycDiv=k._RycDiv||l.ownerDocument.createElement("div");k._RycDiv.appendChild(l);k._RycDiv.innerHTML=""}setTimeout(CollectGarbage,1)}}()):(function(l){l=j(l);if(!l||!l.nodeName){return}var k=l.ownerDocument.parentWindow.Zving;if(l&&l.parentNode&&l.tagName!="BODY"){l.parentNode.removeChild(l)}});b.html2Node=b.createNodeByHtml=function(r,t){var k=/^(<[\w\W]+>)$/m;var l=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;var p=/<|&#?\w+;/;var m;var o=k.exec(r);t=t||document;if(o&&o[1]){var q=l.exec(r);if(q){m=t.createElement(q[1])}else{var n=t.createElement("div");n.innerHTML=r;m=n.firstChild}}else{if(!p.test(r)){m=t.createTextNode(r)}else{alert(["html2Node方法参数错误",r])}}if(!m||!m.nodeType){alert(["html2Node方法参数错误",r,m])}else{return m}};b.computePosition=function(E,m,D,k,B,p,C,o){var J=o?o.document:document;var n=e.isQuirks?J.body.clientWidth:J.documentElement.clientWidth;var q=e.isQuirks?J.body.clientHeight:J.documentElement.clientHeight;var y=Math.max(J.documentElement.scrollLeft,J.body.scrollLeft);var I=Math.max(J.documentElement.scrollTop,J.body.scrollTop);var G,F;B=B||"";var A=B.indexOf("l")!==-1;var u=B.indexOf("t")!==-1;var x=B.indexOf("r")!==-1;var H=B.indexOf("b")!==-1;if(k-I+C-q<0){if(E-y+p-n<0){return{x:A?D-p:E,y:u?m-C:k}}else{return{x:x?E:D-p,y:u?m-C:k}}}if(E-y+p-n<0){return{x:A?D-p:E,y:H?k:m-C}}else{return{x:x?E:D-p,y:H?k:m-C}}};b.computePositionEx=function(k,o){var n;if(k.ownerDocument!=o.ownerDocument){n=e.Node.getOffsetEx(k)}else{n=e.Node.getOffset(k)}var m=e.Node.getSize(k);var l=e.Node.getSize(o);return b.computePosition(n.x,n.y,n.x+m.width,n.y+m.height,null,l.width,l.height,e.rootWin)};b.getFrameOffset=b.getFrameXY=function(l){var m={x:0,y:0},k;l=l||window;if(l.tagName){if(l.tagName==="IFRAME"){l=l.contentWindow}else{l=l.ownerDocument.defaultView||l.ownerDocument.parentWindow}}while(l!=l.parent&&l!=Zving.rootWin){if(l.frameElement){k=Zving.Node.getOffset(l.frameElement);m.x+=k.x;m.y+=k.y}sw=Math.max(l.document.body.scrollLeft,l.document.documentElement.scrollLeft);sh=Math.max(l.document.body.scrollTop,l.document.documentElement.scrollTop);m.x-=sw;m.y-=sh;l=l.parent}l=null;return{x:m.x,y:m.y,left:m.x,top:m.y}};b.getViewport=function(m){var o,n;if(m){if(e.isDocument(m)){o=m;n=o.parentWindow}else{if(e.isWindow(m)){o=m.document;n=m}}}o=o||document;n=n||window;var k,l;if(e.isIE){k=o.compatMode=="BackCompat"?o.body.clientWidth:o.documentElement.clientWidth;l=o.compatMode=="BackCompat"?o.body.clientHeight:o.documentElement.clientHeight}else{k=n.innerWidth;l=n.innerHeight}return{width:k,height:l}};b.disable=function(m){m=j(m);if(m.tagName.toLowerCase()==="form"){var n=m.elements;for(var l=0;l<n.length;l++){try{$(n[l]).disable()}catch(k){alert("error Node.disable():"+n[l].outerHTML)}}}else{if(m.getAttribute("ztype")&&m.getAttribute("ztype").toLowerCase()==="select"){}else{if($(m).hasClass("z-btn")){$(m).addClass("z-btn-disabled");if(m.onclick){m._onclick_=m.onclick}m.onclick=null;m._disabled=true}else{if($(m).hasClass("zPushBtn")){$(m).addClass("zPushBtnDisabled");if(m.onclick){m._onclick_=m.onclick}m.onclick=null}else{$(m).addClass("disabled");m.disabled="true";if(m.getAttribute("ztype")&&/date|time/i.test(m.getAttribute("ztype"))){e.DateTime.setDisabled(m,true)}}}}}};b.available=function(n,k){n=(n+"").match(/^#?([\w\-]+)$/)[1];if(!n||typeof k!="function"){return}var l=1,m=setInterval(function(){if(document.getElementById(n)&&(k()||1)||++l>500){clearInterval(m)}},40)};b.isRemoved=function(k){if(!k.parentNode||k.parentNode.nodeType==11){return true}else{if(!k.offsetParent){if(k.id&&!document.getElementById(k.id)){return true}if(k.nodeName!=="HTML"&&!k.ownerDocument.body.contains(k)){return true}}}return false};e.elCache={};b.addToCache=function(k,l){if(!k){return}l=l||k.id||e.id(k);if(!e.elCache[l]){e.elCache[l]=k}};e.enableGarbageCollector=true;var h=function(){if(!e.enableGarbageCollector){clearInterval(e.collectorThreadId)}else{var k=jQuery.cache;var m,l=[];for(var n in jQuery.cache){if(k[n].handle&&(m=k[n].handle.elem)){if(m.nodeName&&m.nodeType==1){if(e.Dom.isRemoved(m)){l.push(m)}}}}e.ComponentManager.destroyByDom(l);jQuery.cleanData(l);l=null;window.CollectGarbage&&CollectGarbage()}};e.collectorThreadId=setInterval(h,30000);e.Dom=b})();(function(){var b=window.Zving,a={};b.getEvent=a.getEvent=function(c,f){c=c||(f||window).event;if(!c){var e=arguments.callee.caller,d=0;for(;e!=null;d++,e=e.caller){c=e.arguments[0];if(c&&typeof c=="object"&&(/Event/.test(c)||typeof c.type=="string")){return c}if(d>222){return null}}}return c};b.fixEvent=a.fixEvent=function(d,h){var g=h?h.document:document;if(!d){return null}var c=Math.max(g.documentElement.scrollLeft,g.body.scrollLeft);var e=Math.max(g.documentElement.scrollTop,g.body.scrollTop);if(typeof d.pageX==="undefined"){d.pageX=d.clientX+c-g.body.clientLeft}if(typeof d.pageY==="undefined"){d.pageY=d.clientY+e-g.body.clientTop}if(typeof d.preventDefault==="undefined"){d.preventDefault=function(){d.returnValue=false}}if(typeof d.stopPropagation==="undefined"){d.stopPropagation=function(){d.cancelBubble=true}}if(typeof d.srcElement==="undefined"){var f=d.target;while(f&&f.nodeType!=1){f=f.parentNode}d.srcElement=f}if(d.type=="DOMMouseScroll"&&typeof d.detail!="undefined"&&typeof d.wheelDelta=="undefined"){d.wheelDelta=-d.detail*40}return d};b.stopEvent=a.stopEvent=function(c){c=b.getEvent(c);if(!c){return}if(c.preventDefault){c.preventDefault();c.stopPropagation()}c.cancelBubble=true;c.returnValue=false};b.cancelEvent=a.cancelEvent=function(c){c=b.getEvent(c);if(!c){return}if(c.stopPropagation){c.stopPropagation()}else{c.cancelBubble=true}};b.preventEvent=a.preventEvent=function(c){c=b.getEvent(c);if(!c){return}if(c.preventDefault){c.preventDefault()}else{c.returnValue=false;try{if(c.ctrlKey||c.keyCode>111&&c.keyCode<124){c.keyCode=-1}}catch(d){}}};a.keys={enter:13,"return":13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46};a.isSpecialKey=function(d){var c=d.keyCode;return(d.type=="keypress"&&d.ctrlKey)||(c>=33&&c<=40)||(c==a.keys.enter)||(c==a.keys.tab)||(c==a.keys.esc)||(c==a.keys.backspace)||(c>=16&&c<=20)||(c>=44&&c<=46)};a.lockScroll=function(c){c=c||window;if(b.isFirefox){$(window).on("DOMMouseScroll.lock",function(d){d.preventDefault();d.stopPropagation()})}else{$(document.body).on("mousewheel.lock",function(d){d.preventDefault();d.stopPropagation()})}if(c!=c.parent&&c!=Zving.rootWin){c=c.parent;a.lockScroll(c)}};a.unlockScroll=function(c){c=c||window;if(b.isFirefox){$(window).off("DOMMouseScroll.lock")}else{$(document.body).off("mousewheel.lock")}if(c!=c.parent&&c!=Zving.rootWin){c=c.parent;a.unlockScroll(c)}};a.getEventPosition=a.getEventXY=function(c){var f,e;c=b.getEvent(c);var g={x:c.clientX,y:c.clientY};f=c.srcElement.ownerDocument;e=f.defaultView||f.parentWindow;var d=b.Dom.getFrameXY(e);g.x+=d.x;g.y+=d.y;return g};a.getEventPositionLocal=a.getEventPageXY=function(c){c=b.getEvent(c);var e={x:c.clientX,y:c.clientY};var d;if(b.isGecko){d=c.srcElement.ownerDocument.defaultView}else{d=c.srcElement.ownerDocument.parentWindow}e.x+=Math.max(d.document.body.scrollLeft,d.document.documentElement.scrollLeft);e.y+=Math.max(d.document.body.scrollTop,d.document.documentElement.scrollTop);return e};b.Event=a})();(function(){var g=window.Zving,a={},h={};var d,j,f=0,e=0;a.doResizeEvent=function(){var l=g.Dom.getViewport(),m=l.height,k=l.width;if(e!==m||f!==k){d.fire(f=k,e=m)}};a.onWindowResize=function(m,l,k){if(!d){d=new g.CustEvent();j=new g.Util.DelayedTask(this.doResizeEvent);$window.on("resize",this.fireWindowResize)}d.addListener(m,l,k);$window.on("unload",function(){$window.off("resize");d.clearListeners()})};a.fireWindowResize=function(){if(d){j.delay(100)}};a.removeResizeListener=function(l,k){if(d){d.removeListener(l,k)}};var b=window,c=document;if(window!=g.rootWin){b=g.rootWin;c=g.rootWin.document}h.allEvents={};h.on=function(k,l){b.$(c).on("alldocments_"+k+"."+g.pageId,l);if(!h.allEvents[k]){h.allEvents[k]=true}};h.un=h.off=function(k,l){b.$(c).off("alldocments_"+k+"."+g.pageId,l)};h.fire=h.trigger=function(k){if(typeof k=="string"){k="alldocments_"+k}else{k.type="alldocments_"+k.type}b.$(c).trigger(k)};h._unload=function(){for(var k in h.allEvents){b.$(c).off("alldocments_"+k+"."+g.pageId)}};$document.on("click",h.trigger);$document.on("mousedown",h.trigger);$document.on("mouseup",h.trigger);g.EventManager=a;g.AllDocumentsEvent=h})();
  /*! url.js */
  (function(){var d=window.Zving,e={};var a=/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]*)?)(#.*)?/;e.parseUrl=function(g){if(typeof g=="object"&&typeof g.href!="undefined"){return g}var f=function(k){var m=function(o,q,p){return[o.substring(0,q),o.substring(p)].join("")};if(k.indexOf("/../">0)){var j=k.indexOf("://");var n=j>0?k.substring(0,j+3):"";k=j>0?k.substring(j+3):k;for(;;){j=k.indexOf("/../");var l=k.lastIndexOf("/",j-1);if(j>0&&l>0){k=m(k,l,j+3)}else{return n+k}}}};g=f(g);var h=a.exec(g||"")||[];return{href:h[0]||"",hrefNoHash:h[1]||"",hrefNoSearch:h[2]||"",domain:h[3]||"",protocol:h[4]||"",doubleSlash:h[5]||"",authority:h[6]||"",username:h[8]||"",password:h[9]||"",host:h[10]||"",hostname:h[11]||"",port:h[12]||"",pathname:h[13]||"",directory:h[14]||"",filename:h[15]||"",search:h[16]||"",hash:h[17]||""}};e.documentUrl=e.parseUrl(location.href);e.getQueryValue=function(g,h){var j=new RegExp("(^|&|\\?|#)"+d.String.escapeReg(h)+"=([^&#]*)(&|\x24|#)","");var f=(""+g).match(j);if(f){return f[2]}return null};e.addSearchParams=function(g,k){var f=e.parseUrl(g),j=(typeof k==="object")?$.param(k):k,h=f.search||"?";return f.hrefNoSearch+h+(h.charAt(h.length-1)!=="?"?"&":"")+j+(f.hash||"")};e.makePathAbsolute=function(l,j){if(l&&/^\/|^[a-z]+\:/.test(l)){return l}l=l||"";var g=/(^\w+\:\/\/[^\/]*)(\/.*)/.exec(j);var k="";if(g){k=g[1];j=g[2]}j=j?j.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,""):"";var f=j?j.split("/"):[],n=l.split("/");for(var h=0;h<n.length;h++){var m=n[h];switch(m){case".":break;case"..":if(f.length){f.pop()}break;default:f.push(m);break}}return k+"/"+f.join("/")};e.makeUrlAbsolute=function(g,j){if(/^\w+\:\/\//.test(g)){return g}if(j===undefined){var r=$("head>base");if(r.length){j=e.makeUrlAbsolute(r.attr("href"),e.documentUrl.href)}else{j=e.documentUrl}}var l=e.parseUrl(g),o=e.parseUrl(j),p=l.protocol||o.protocol,h=l.protocol?l.doubleSlash:(l.doubleSlash||o.doubleSlash),n=l.authority||o.authority,m=l.pathname!=="",f=e.makePathAbsolute(l.pathname||o.filename,o.pathname),q=l.search||(!m&&o.search)||"",k=l.hash;return p+h+n+f+q+k};e.getDocumentBase=function(){var f=$("head>base");return f.length?e.parseUrl(e.makeUrlAbsolute(f.attr("href"),e.documentUrl.href)):e.documentUrl};e.relative2Absolute=function(f,g){if(g){return d.CONTEXTPATH+"/"+f}else{return e.makePathAbsolute(f,e.getDocumentBase().hrefNoSearch)}};var b="&ui-state=dialog";var c=function(g){var f=e.parseUrl(g);if(f.protocol!==""){return(f.hash&&(f.hrefNoHash==e.documentUrl.hrefNoHash))}return(/^#/).test(f.href)};e.convertUrlToDataUrl=function(g){var f=e.parseUrl(g);if(c(f)){return f.hash.split(b)[0].replace(/^#/,"")}else{if(f.domain==documentUrl.domain){return f.hrefNoHash.replace(documentUrl.domain,"").split(b)[0]}}return window.decodeURIComponent(g)};d.Url=e})();
  /*! node.js */
  (function(){var z=window.Zving,getDom=z.getDom,Node={};z.idSeed={_seed:0};z.id=function(elem){var idSeed=z.idSeed;if(!elem){return"id"+(++idSeed._seed)}if(typeof elem=="string"){return"elem"+(++idSeed._seed)}if(elem.id){return elem.id}if(elem.URL&&elem.readyState){elem._id="z-document";return elem._id}else{if(elem.location&&elem.navigator){elem._id="z-window";return elem._id}else{if(elem.nodeName){if(idSeed[elem.nodeName]===undefined){idSeed[elem.nodeName]=0}if(!elem.getAttribute("_id")){elem._id=elem.nodeName.toLowerCase()+(++idSeed[elem.nodeName]);elem.setAttribute("_id",elem._id);return elem._id}else{return elem.getAttribute("_id")}}}}window.console&&console.error(location.pathname+" ## node.js -- id ::  参数错误，试图获取非DOM元素的id "+elem);return};Node.getComponent=function(elem,ctype){if(ctype=="Selector"){ctype="Combox"}if(elem._components){if(!ctype){for(var k in elem._components){ctype=k}}return z.ComponentManager.getById(elem._components[ctype])}};Node.isBorderBox=function(elem){var currentStyle=elem.currentStyle;return currentStyle.boxSizing=="border-box"||currentStyle.MozBoxSizing=="border-box"||currentStyle.WebkitBoxSizing=="border-box"};var cssStyleToDomStyle=(function(){var cache={};cache["float"]=z.isIE?"styleFloat":"cssFloat";function replacer(match){return match.charAt(1).toUpperCase()}return function(cssName){return cache[cssName]?cache[cssName]:(cache[cssName]=cssName.toLowerCase().replace(/-./g,replacer))}})();var getPixel=function(el,value){if(/px$/.test(value)||!value){return parseInt(value,10)||0}var right=el.style.right,runtimeRight=el.runtimeStyle.right;var result;var curStyle=el.currentStyle;if(!curStyle&&!z.isIE){curStyle=z.rootWin.getComputedStyle(el,null)}el.runtimeStyle.right=curStyle.right;el.style.right=value;result=el.style.pixelRight||0;el.style.right=right;el.runtimeStyle.right=runtimeRight;return result};Node.getByTag=function(elem,tagName){elem=getDom(elem);elem=elem||document;tagName=tagName.toUpperCase();var ts=elem.getElementsByTagName(tagName);var arr=[];var len=ts.length;for(var i=0;i<len;i++){arr.push(ts[i])}return arr};Node.getAttr=function(elem,attr,iFlags){elem=getDom(elem);if("href"!=attr&&elem[attr]!==undefined){return elem[attr]}else{return elem.getAttribute(attr,iFlags||(elem.tagName=="A"&&attr.toLowerCase()=="href"&&2)||null)}};Node.setAttr=function(elem,attr,value){elem=getDom(elem);if(attr&&typeof attr==="object"){for(var prop in attr){if(attr.hasOwnProperty(prop)){Node.setAttr(elem,prop,attr[prop])}}}else{if(elem.setAttribute){elem.setAttribute(attr,value)}}return elem};Node.attr=function(elem,attr,value){if(typeof(value)==="undefined"){return Node.getAttr(elem,attr)}else{return Node.setAttr(elem,attr,value)}};Node.setOpacity=function(elem,alpha){if((alpha=Number(alpha))<1){alpha*=100}if(z.isIE){elem.style.filter="alpha(opacity="+alpha+")";if(z.isIE6&&alpha>98){elem.style.filter=""}}else{elem.style.opacity=alpha/100}return elem};Node.getOpacity=function(elem){var alpha;if(z.isIE){alpha=elem.currentStyle.filter.indexOf("opacity=")>=0?(parseFloat(elem.currentStyle.filter.match(/opacity=([^)]*)/)[1]))+"":"100"}else{alpha=100*elem.ownerDocument.defaultView.getComputedStyle(elem,null).opacity}return alpha};Node.setStyle=function(elem,attr,value){elem=getDom(elem);if(attr&&typeof attr==="object"){for(var prop in attr){if(attr.hasOwnProperty(prop)){Node.setStyle(elem,prop,attr[prop])}}}else{attr=attr.camelize();if(attr=="float"){attr=z.isIE?"styleFloat":"cssFloat"}else{if(attr=="opacity"){return Node.setOpacity(elem,value)}}try{elem.style[attr]=value}catch(e){console.log(elem,"设置样式"+attr+"为"+value+"失败")}}return elem};Node.getStyle=function(elem,attr){elem=getDom(elem);attr=z.String.camelize(attr);if(attr=="float"){attr=z.isIE?"styleFloat":"cssFloat"}else{if(attr=="opacity"){return Node.getOpacity(elem)}}var result=elem.style[attr];return(!result||result==="auto")?null:result};Node.getCurrentStyle=function(elem,attr){elem=getDom(elem);attr=z.String.camelize(attr);if(attr=="float"){attr=z.isIE?"styleFloat":"cssFloat"}else{if(attr=="opacity"){return Node.getOpacity(elem)}}if(elem.currentStyle){var val=elem.currentStyle[attr];if(val==="auto"&&(attr==="width"||attr==="height")){var rect=elem.getBoundingClientRect();if(attr==="width"){return rect.right-rect.left+"px"}else{return rect.bottom-rect.top+"px"}}return val}else{var curStyle=elem.ownerDocument.defaultView.getComputedStyle(elem,null);if(!curStyle){curStyle=z.rootWin.getComputedStyle(elem,null)}if(curStyle){return curStyle[attr]}else{return elem.style[attr]}}};Node.css=function(elem,attr,value){if(typeof(value)==="undefined"){return Node.getCurrentStyle(elem,attr)}else{return Node.setStyle(elem,attr,value)}};Node.fire=function(elem,eventName){elem=getDom(elem);if(elem.fireEvent){return elem.fireEvent(eventName)}else{var evtObj;evtName=evtName.substring(2);var doc=elem.ownerDocument||document;if(/mouse|click/i.test(evtName)){evtObj=doc.createEvent("MouseEvents");evtObj.initMouseEvent(evtName,true,true,doc.defaultView,1,0,0,0,0,false,false,false,false,0,null)}else{evtObj=doc.createEvent("Events");evtObj.initEvent(evtName,true,true)}return this.dispatchEvent(evtObj)}};Node.isVisible=function(elem){elem=getDom(elem);if(!elem.parentNode||elem.tagName!=="BODY"&&elem.parentNode.tagName!=="BODY"&&!elem.offsetParent){return false}var curStyle=elem.currentStyle;if(!curStyle&&!z.isIE){curStyle=z.rootWin.getComputedStyle(elem,null);if(!curStyle){return false}}if(curStyle.display==="none"){return false}else{if(elem.offsetWidth===0&&elem.offsetHeight===0&&elem.tagName!=="TR"){return false}}return true};Node.hide=function(elem){elem=getDom(elem);if(!elem){return}if(elem.tagName.toLowerCase()==="input"&&elem.type==="button"){if(elem.parentNode&&elem.parentNode.getAttribute("ztype")==="zInputBtnWrapper"){elem.parentNode.style.display="none"}}var curStyle=elem.currentStyle;if(!curStyle&&!z.isIE){curStyle=z.rootWin.getComputedStyle(elem,null)}if(curStyle&&curStyle.display!=="none"){elem._style_display=curStyle.display}elem.style.display="none";return elem};Node.show=function(elem,value){elem=getDom(elem);if(!elem){return}var displayMap=z.isIE6?{li:"list-item",thead:"table-header-group",tfoot:"table-footer-group",button:"inline-block",textarea:"inline-block",input:"inline-block",select:"inline-block"}:{li:"list-item",table:"table",tr:"table-row",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",col:"table-column",colgroup:"table-column-group",td:"table-cell",caption:"table-caption",button:"inline-block",textarea:"inline-block",input:"inline-block",select:"inline-block"};if(elem.tagName.toLowerCase()==="input"&&elem.type==="button"){if(elem.parentNode&&elem.parentNode.getAttribute("ztype")==="zInputBtnWrapper"){elem.parentNode.style.display=""}}var display2,tagName=elem.tagName.toLowerCase();if(value){display2=value}else{if(elem._style_display){display2=elem._style_display}else{if(displayMap[tagName]){display2=displayMap[tagName]}else{if(/^(body|div|dl|dt|dd|fieldset|form|h\d|ol|p|ul|center|hr|menu|pre)$/i.test(tagName)){display2="block"}else{display2=""}}}}elem.style.display=display2;return elem};Node.toggle=function(elem,value){elem=getDom(elem);if(Node.isVisible(elem)){Node.hide(elem)}else{Node.show(elem,value)}return elem};Node.unselectable=function(elem){elem=getDom(elem)||document.body;elem.unselectable="on";elem.onselectstart=function(e){e=e||window.event;if(e.stopPropagation){e.stopPropagation()}if(e.preventDefault){e.preventDefault()}return false};elem.style["-moz-user-select"]="none";elem.style["-khtml-user-select"]="none";elem.style["-webkit-user-select"]="none";return elem};Node.selectable=function(elem){elem=getDom(elem)||document.body;elem.unselectable="off";elem.onselectstart=null;elem.style["-moz-user-select"]="auto";elem.style["-khtml-user-select"]="auto";elem.style["-webkit-user-select"]="auto";return elem};Node.disable=function(elem,mask){elem=getDom(elem);if(!elem||!elem.tagName){return}if(elem.tagName.toLowerCase()==="form"){var elements=elem.elements;for(var i=0;i<elements.length;i++){try{Node.disable(elements[i])}catch(ex){alert("error Node.disable():"+elements[i].outerHTML)}}}else{if(elem.getAttribute("ztype")){var ztype=elem.getAttribute("ztype");if(/select|date|time/i.test(ztype)&&!isIE){elem.disabled=true}else{if(elem._components){for(var t in elem._components){Node.getComponent(elem,t).disable()}}}}else{Node.addClass(elem,"disabled");elem.disabled=true}}return elem};Node.enable=function(elem){elem=getDom(elem);if(elem.tagName.toLowerCase()==="form"){var elements=elem.elements;for(var i=0;i<elements.length;i++){var element=elements[i];try{Node.enable(elements[i])}catch(ex){alert("enable():"+elements[i].outerHTML)}}}else{if(elem.getAttribute("ztype")&&elem.getAttribute("ztype").toLowerCase()==="select"){elem.disabled=false}else{if(elem.getAttribute("ztype")){var ztype=elem.getAttribute("ztype");if(/select|date|time/i.test(ztype)){elem.disabled=false}else{if(elem._components){for(var t in elem._components){Node.getComponent(elem,t).enable()}}}}else{if(Node.hasClass(elem,"disabled")){Node.removeClass(elem,"disabled")}elem.disabled=false}}}return elem};Node.getPadding=function(elem){var el=getDom(elem);return[getPixel(el,Node.getCurrentStyle(el,"paddingTop")),getPixel(el,Node.getCurrentStyle(el,"paddingRight")),getPixel(el,Node.getCurrentStyle(el,"paddingBottom")),getPixel(el,Node.getCurrentStyle(el,"paddingLeft"))]};Node.getMargin=function(elem){var el=getDom(elem);return[getPixel(el,Node.getCurrentStyle(el,"marginTop")),getPixel(el,Node.getCurrentStyle(el,"marginRight")),getPixel(el,Node.getCurrentStyle(el,"marginBottom")),getPixel(el,Node.getCurrentStyle(el,"marginLeft"))]};Node.getOuterW=function(elem){elem=getDom(elem);var map={thin:2,medium:4,thick:6};var curStyle=elem.currentStyle;if(!curStyle&&!z.isIE){curStyle=z.rootWin.getComputedStyle(elem,null)}var blw=curStyle.borderLeftWidth;blw=curStyle.borderLeftStyle=="none"?0:(map[blw]||parseFloat(blw)||0);var brw=curStyle.borderRightWidth;brw=curStyle.borderRightStyle=="none"?0:(map[brw]||parseFloat(brw)||0);var pl=curStyle.paddingLeft;pl=parseFloat(pl)||0;var pr=curStyle.paddingRight;pr=parseFloat(pr)||0;return blw+brw+pl+pr};Node.getOuterH=function(elem){elem=getDom(elem);var map={thin:2,medium:4,thick:6};var curStyle=elem.currentStyle;if(!curStyle&&!z.isIE){curStyle=z.rootWin.getComputedStyle(elem,null)}var btw=curStyle.borderTopWidth;btw=curStyle.borderTopStyle=="none"?0:(map[btw]||parseFloat(btw)||0);var bbw=curStyle.borderBottomWidth;bbw=curStyle.borderBottomStyle=="none"?0:(map[bbw]||parseFloat(bbw)||0);var pt=curStyle.paddingTop;pt=parseFloat(pt)||0;var pb=curStyle.paddingBottom;pb=parseFloat(pb)||0;return btw+bbw+pt+pb};Node.getContentSize=function(elem){elem=getDom(elem);var dim=Node.getSize(elem);return{width:dim.width-Node.getOuterW(elem),height:dim.height-Node.getOuterH(elem)}};Node.getSize=function(elem){elem=getDom(elem);var dim;if((/^(head|meta|script|link|area|param)$/i).test(elem.tagName)){dim={width:0,height:0}}else{if(Node.getCurrentStyle(elem,"display")==="none"){var style=elem.style;var vis=style.visibility;var pos=style.position;var dis=style.display;style.visibility="hidden";style.position="absolute";switch(elem.tagName.toLowerCase()){case"table":style.display="table";break;case"tr":style.display="table-row";break;case"td":case"th":style.display="table-cell";break;case"button":case"textarea":case"input":case"select":style.display="inline-block";break;default:style.display="block"}var w=elem.offsetWidth;var h=elem.offsetHeight;style.display=dis;style.position=pos;style.visibility=vis;dim={width:w,height:h}}else{dim={width:elem.offsetWidth,height:elem.offsetHeight}}}return dim};Node.setSize=function(elem,w,h){elem=getDom(elem);if(typeof h=="undefined"&&z.isObject(w)){h=w.height;w=w.width}if(typeof w=="string"&&!/^\d+\.?\d*(px)?$/.test(w)){elem.style.width=w}else{w=parseFloat(w)}if(typeof h=="string"&&!/^\d+\.?\d*(px)?$/.test(h)){elem.style.height=h}else{h=parseFloat(h)}if(!isNaN(w)){elem.style.width=(z.isBorderBox?w:Math.max(+w-Node.getOuterW(elem),0))+"px"}if(!isNaN(h)){elem.style.height=(z.isBorderBox?h:Math.max(+h-Node.getOuterH(elem),0))+"px"}return elem};Node.setContentSize=function(elem,w,h){elem=getDom(elem);w=parseFloat(w,10);h=parseFloat(h,10);if(isNaN(w)&&isNaN(h)){throw"node.js -- Node.setSize :: 传入setContentSize方法的参数错误"}if(!isNaN(w)){elem.style.width=(z.isBorderBox?+w+Node.getOuterW(elem):w)+"px"}if(!isNaN(h)){elem.style.height=(z.isBorderBox?+h+Node.getOuterH(elem):h)+"px"}return elem};Node.setPosition=function(elem,x,y){elem=getDom(elem);if(typeof y=="undefined"&&z.isObject(x)){y=typeof x.y=="undefined"?x.top:x.y;x=typeof x.x=="undefined"?x.left:x.x}x=parseFloat(x);y=parseFloat(y);if(!isNaN(x)){elem.style.left=x+"px";elem.left=x}if(!isNaN(y)){elem.style.top=y+"px";elem.top=y}return elem};Node.getPosition=Node.getOffset=function(elem){elem=getDom(elem);var doc=elem.ownerDocument;if(!elem.parentNode||elem.tagName!=="BODY"&&elem.parentNode.tagName!=="BODY"&&!elem.offsetParent){return false}if(elem.parentNode===null||elem.style.display==="none"){return false}var pNode=null;var pos=[];var box;if(elem.getBoundingClientRect){box=elem.getBoundingClientRect();var scrollTop=Math.max(doc.documentElement.scrollTop,doc.body.scrollTop);var scrollLeft=Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);var X=box.left+scrollLeft-doc.documentElement.clientLeft-doc.body.clientLeft;var Y=box.top+scrollTop-doc.documentElement.clientTop-doc.body.clientTop;return{x:X,y:Y,left:X,top:Y}}else{if(doc.getBoxObjectFor){box=doc.getBoxObjectFor(elem);var borderLeft=(elem.style.borderLeftWidth)?parseInt(elem.style.borderLeftWidth,10):0;var borderTop=(elem.style.borderTopWidth)?parseInt(elem.style.borderTopWidth,10):0;pos=[box.x-borderLeft,box.y-borderTop]}}if(elem.parentNode){pNode=elem.parentNode}else{pNode=null}while(pNode&&pNode.tagName!=="BODY"&&pNode.tagName!=="HTML"){pos[0]-=pNode.scrollLeft;pos[1]-=pNode.scrollTop;if(pNode.parentNode){pNode=pNode.parentNode}else{pNode=null}}return{x:pos[0],y:pos[1],left:pos[0],top:pos[1]}};Node.offset=function(elem,x,y){if(typeof x=="undefined"){Node.getOffset(elem)}else{Node.setPosition(elem,x,y)}};Node.getPositionEx=Node.getOffsetEx=function(elem){var el=getDom(elem);var pos=Node.getOffset(el);var pos2=z.Dom.getFrameXY();pos.x+=pos2.x;pos.y+=pos2.y;return pos};Node.getScroll=function(elem){var d=getDom(elem);var doc;doc=z.isDocument(d)?d:d.ownerDocument;var win=doc.parentWindow,body=doc.body,docElement=doc.documentElement,l,t,ret;if(d==doc||d==body){if(z.isIE&&z.isStrict){l=docElement.scrollLeft;t=docElement.scrollTop}else{l=win.pageXOffset;t=win.pageYOffset}ret={left:l||(body?body.scrollLeft:0),top:t||(body?body.scrollTop:0)}}else{ret={left:d.scrollLeft,top:d.scrollTop}}return ret};Node.getRect=Node.getBox=function(elem){var el=getDom(elem);var p=Node.getOffset(el);var x=p.x;var y=p.y;var w=el.offsetWidth;var h=el.offsetHeight;return{width:w,height:h,left:x,top:y,bottom:y+h,right:x+w}};Node.setBox=function(elem,rect){var el=getDom(elem);el.setPosition(rect);el.setSize(rect);return el};Node.createChild=function(elem,config,insertBefore,returnDom){var dom;var el=z.getDom(elem);dom=z.Dom.createNode(config||{tag:"div"});if(insertBefore&&el.firstChild){dom.insertBefore(el,el.firstChild)}else{el.appendChild(dom)}return returnDom===true?dom:elem};Node.createProxy=function(elem,className,renderTo,matchBox){var el=getDom(elem);var doc=renderTo?renderTo.ownerDocument:document;var div=z.Dom.createNode({className:className||""},doc);var proxy=renderTo?renderTo.appendChild(div):el.parentNode.insertBefore(div,el);if(matchBox){Node.setBox(proxy,Node.getBox(el))}return proxy};Node.scrollTo=function(elem,x,y,anim){var el=getDom(elem);el.scrollLeft=x;el.scrollTop=y;return el};Node.getParent=function(elem,tagName){var el=getDom(elem);if(!tagName){return el.parentNode}while(el){if(el.nodeName.toLowerCase()===tagName.toLowerCase()){return el}el=el.parentNode}return null};Node.getParentBy=function(elem,func){var el=getDom(elem);while(el&&el.nodeType){if(func(el)){return el}el=el.parentNode}return null};Node.getParentByClass=function(elem,className){var el=getDom(elem);className=className.replace(/\-/,"\\-");while(el&&el.nodeType){if(new RegExp("(?:^|\\s)"+className+"(?:\\s|$)").test(el.className)){return el}el=el.parentNode}return null};Node.getParentByAttr=function(elem,attrName,attrValue){var el=getDom(elem);while(el&&el.tagName&&el.getAttribute){if(el.getAttribute(attrName)===attrValue){return el}el=el.parentNode}return null};Node.getForm=function(elem){var el=getDom(elem);return Node.getParent(el,"form")};Node.nextElement=function(elem,tagName){var el=getDom(elem);if(typeof elem=="string"&&!el){return null}var x=el.nextSibling;while(x&&x.nodeType!==1&&(tagName?x.tagName!==tagName:true)){x=x.nextSibling}return x};Node.prevElement=function(elem,tagName){var el=getDom(elem);if(typeof elem=="string"&&!el){return null}var x=el.previousSibling;while(x&&x.nodeType!==1&&(tagName?x.tagName==tagName:true)){x=x.previousSibling}return x};Node.siblings=function(elem,tagName){var el=getDom(elem);var tempEl=el.parentNode.firstChild,ret=[];var fcheck=function(el){return tagName?true:(el.tagName?false:el.tagName.toLowerCase()==tagName.toLowerCase())};while(tempEl){if(el!=tempEl&&fcheck(tempEl)){ret.push(tempEl)}tempEl=tempEl.nextSibling}return ret};Node.hasClass=Node.hasClassName=function(elem,className){var el=getDom(elem);className=className.replace(/\-/,"\\-");return new RegExp("(?:^|\\s)"+className+"(?:\\s|$)").test(el.className)};Node.addClass=function(elem,className){var el=getDom(elem);if(!Node.hasClass(el,className)){el.className=el.className?el.className+" "+className:className}return el};Node.removeClass=function(elem,className){var el=getDom(elem);className=className.replace(/\-/,"\\-");var classToRemove=new RegExp(("(^|\\s)"+className+"(?=\\s|$)"),"i");el.className=el.className.replace(classToRemove,"").replace(/^\s+|\s+$/g,"");return el};Node.replaceClass=function(elem,oldClassName,newClassName){var el=getDom(elem);if(Node.hasClass(el,oldClassName)){el.className=el.className.replace(new RegExp("(^|\\s)"+oldClassName+"(?=\\s|$)","ig"),"$1"+newClassName)}else{Node.addClass(el,newClassName)}return el};Node.toggleClass=function(elem,className1,className2){var el=getDom(elem);className2=className2||"";if(Node.hasClass(el,className1)){Node.replaceClass(el,className1,className2)}else{Node.replaceClass(el,className2,className1)}return el};Node.getElementsByClassName=function(elem,className,tagName){var el=getDom(elem)||document;if(!className&&tagName){return el.getElementsByTagName(tagName)}if(!tagName&&className.indexOf(".")!=-1){var match=/^([\w\-]+)?\.([\w\-]+)/.exec(className);className=match[1];tagName==match[2]}var children=el.getElementsByTagName(tagName||"*");var elements=[];for(var i=0;i<children.length;i++){if(Node.hasClass(children[i],className)){elements.push(children[i])}}return elements};var _filterByProp=function(collection,attr,condition){var node,nodeProp,ret=[],match,isEval;if(collection.nodeName&&collection.nodeType){collection=[collection]}if(condition===undefined){if(typeof attr=="string"){condition=function(){return !!eval("(this."+attr+")")};isEval=true}else{if(typeof attr=="function"){condition=attr}}}for(var i=0;i<collection.length;i++){node=collection[i];nodeProp=attr;if(typeof attr=="string"&&!isEval){nodeProp=node[attr]}if(typeof condition=="function"){match=condition.call(node,nodeProp)}else{if(Object.prototype.toString.call(condition)=="[object RegExp]"){match=condition.test(nodeProp)}else{if(typeof condition=="boolean"){match=nodeProp===condition}else{match=nodeProp===condition}}}if(match){ret.push(node)}}return ret};var _filterByAttr=function(collection,attr,condition){var node,nodeProp,ret=[],match,isEval;if(collection.nodeName&&collection.nodeType){collection=[collection]}if(condition===undefined){if(typeof attr=="string"){condition=function(){return !!eval('(this.getAttribute("'+attr+'"))')};isEval=true}else{if(typeof attr=="function"){condition=attr}}}for(var i=0;i<collection.length;i++){node=collection[i];nodeProp=attr;if(typeof attr=="string"&&!isEval){nodeProp=node.getAttribute(attr)}if(typeof condition=="function"){match=condition.call(node,nodeProp)}else{if(Object.prototype.toString.call(condition)=="[object RegExp]"){match=condition.test(nodeProp)}else{if(typeof condition=="boolean"){match=(nodeProp==null?false:true)===condition}else{match=nodeProp===String(condition)}}}if(match){ret.push(node)}}return ret};Node.find=function(elem,selector){if(typeof elem=="string"&&!selector){selector=elem;elem=document}var ele=getDom(elem);var match=/^([\w\-]+)?(?:\.([\w\-]+))?(?:\:([\w\-]+))?/.exec(selector);var tagName=match[1],className=match[2],prop=match[3];if(prop&&!tagName){tagName="INPUT"}var collection=Node.getElementsByClassName(ele,className,tagName);if(prop){if(/^(text|password|radio|checkbox|submit|image|reset|file|hidden)$/.test(prop)){return _filterByProp(collection,"type",prop)}else{if(/^(disabled|checked)$/.test(prop)){return _filterByProp(collection,prop,true)}else{throw new Error("Node.find方法不支持此伪类选择器:"+prop)}}}return collection};Node.findOne=function(elem,selector){return Node.find(elem,selector)[0]};Node.getValue=function(elem){var ele=getDom(elem);if(!ele){window.console&&console.error(location.pathname+' - $V : 表单元素"'+(elem||arguments.callee.caller["arguments"][0])+'"不存在 ');return}if(!ele.type){return ele.value}switch(ele.type.toLowerCase()){case"text":case"textarea":if(ele.getAttribute("placeholder")&&ele.value==ele.getAttribute("placeholder")){return""}return ele.value;case"submit":case"hidden":case"password":case"file":case"image":case"select-one":return ele.value;case"checkbox":case"radio":if(ele.checked){return ele.value}return null;default:return""}};Node.setValue=function(elem,value){var ele=getDom(elem);if(!value&&value!==0){value=""}if(!ele){alert(location.pathname+' - $V : 表单元素"'+(elem||arguments.callee.caller["arguments"][0])+'"不存在 ');return}switch(ele.type.toLowerCase()){case"submit":case"hidden":case"password":case"textarea":case"button":case"file":case"image":case"select-one":case"text":ele.value=value;break;case"checkbox":case"radio":if(ele.value===""+value){ele.checked=true}else{ele.checked=false}break}return ele};Node.val=function(elem,value){if(typeof(value)==="undefined"){return Node.getValue(elem)}else{return Node.setValue(elem,value)}};Node.contains=function(elem,targetEl){var el=getDom(elem);target=getDom(targetEl);return el.contains?el!=target&&el.contains(target):!!(el.compareDocumentPosition(target)&16)};Node.anchorPos=function(me,elem,dir,rdir,off,rean,move){var el=getDom(elem);var doc=el.ownerDocument;if(el.nodeName){var bxy=Node.getOffset(el),bsz=Node.getSize(el);el=[bxy.x,bxy.y,bsz.width,bsz.height]}me=getDom(me);var sz=Node.getSize(me),w=sz.width,h=sz.height,bx=el[0],by=el[1],bw=el[2],bh=el[3],nx,ny;nx=dir.charAt(0)==="l"?bx-w:bx+bw;ny=dir.charAt(1)==="t"?by-h:by+bh;if(rdir){if(rdir.charAt(0)==="h"){nx=rdir.charAt(1)==="l"?nx-w:nx+w}else{ny=rdir.charAt(1)==="u"?ny-h:ny+h}}if(off){nx+=off[0];ny+=off[1]}if(rean){var vp=z.Dom.getViewport(doc),vh=vp.height,vw=vp.width;if(nx<0){nx=Math.max(0,bx);if(by+bh>ny&&by<ny+h){ny=by-h}}if(nx+w>vw){nx=by+bh>ny&&by<ny+h?bx-w:Math.min(vw-w,bx+bw-w)}if(ny<0){ny=bx+bw>nx&&bx<nx+w?by+bh:Math.max(0,by)}if(ny+h>vh){ny=bx+bw>nx&&bx<nx+w?by-h:Math.min(vh-h,by+bh-h)}}if(move){Node.setPosition(me,nx,ny)}return{x:nx,y:ny}};Node.getConstrainToXY=function(elem,ConstrainEl,local,offsets,proposedXY){var el=getDom(elem);ConstrainEl=getDom(ConstrainEl);var os={top:0,left:0,bottom:0,right:0};offsets=offsets?z.applyIf(offsets,os):os;var vw,vh,vx=0,vy=0;if(ConstrainEl.tagName=="BODY"||z.isDocument(ConstrainEl)){var v=z.Dom.getViewport(ConstrainEl.ownerDocument||ConstrainEl);vw=v.width;vh=v.height}else{vw=ConstrainEl.clientWidth;vh=ConstrainEl.clientHeight;if(!local){var vxy=ConstrainEl.getOffset();vx=vxy[0];vy=vxy[1]}}var s=Node.getScroll(ConstrainEl);vx+=offsets.left+s.left;vy+=offsets.top+s.top;vw-=offsets.right;vh-=offsets.bottom;var vr=vx+vw,vb=vy+vh,xy=proposedXY||(!local?Node.getOffset(el):{left:parseInt(Node.getStyle(el,"left"),10)||0,top:parseInt(Node.getStyle(el,"top"),10)||0});var x=xy.left,y=xy.top,offset=el.getConstrainOffset?el.getConstrainOffset():0,w=el.offsetWidth+offset,h=el.offsetHeight+offset;var moved=false;if((x+w)>vr){x=vr-w;moved=true}if((y+h)>vb){y=vb-h;moved=true}if(x<vx){x=vx;moved=true}if(y<vy){y=vy;moved=true}return moved?{left:x,top:y}:false};Node.scrollIntoView=function(elem,container,hscroll,animate){container=getDom(container)||document.body;var el=getDom(elem);var elOffset=Node.getOffset(el),ctOffset=Node.getOffset(container),offsets=[elOffset.left-ctOffset.left,elOffset.top-ctOffset.top],left=offsets[0]+container.scrollLeft,top=offsets[1]+container.scrollTop,bottom=top+el.offsetHeight,right=left+el.offsetWidth,ctClientHeight=container.clientHeight,ctScrollTop=parseInt(container.scrollTop,10),ctScrollLeft=parseInt(container.scrollLeft,10),ctBottom=ctScrollTop+ctClientHeight,ctRight=ctScrollLeft+container.clientWidth,newPos;if(el.offsetHeight>ctClientHeight||top<ctScrollTop){newPos=top}else{if(bottom>ctBottom){newPos=bottom-ctClientHeight}}if(newPos!=null){if(animate){$(container).animate({scrollTop:newPos})}else{container.scrollTop=newPos}}if(hscroll!==false){newPos=null;if(el.offsetWidth>container.clientWidth||left<ctScrollLeft){newPos=left}else{if(right>ctRight){newPos=right-container.clientWidth}}if(newPos!=null){if(animate){$(container).animate({scrollLeft:newPos})}else{container.scrollLeft=newPos}}}return this};Node.getJson=function(ele,jsonObj,filter){jsonObj=jsonObj||{};filter=filter||function(el){return false};var _push=function(name,value,intoArray){if(typeof jsonObj[name]!="undefined"){if(Object.prototype.toString.apply(jsonObj[name])!="[object Array]"&&!intoArray){jsonObj[name]=[jsonObj[name]]}jsonObj[name].push(value)}else{jsonObj[name]=intoArray?[value]:value}};var el=z.getDom(ele);if(!el||filter(el)){return null}if(/^(input|textarea|select)$/i.test(el.tagName)){var nameOrId=el.name||el.id;if(!el.type||!nameOrId){return}switch(el.type){case"text":case"textarea":if(el.getAttribute("placeholder")&&el.value==el.getAttribute("placeholder")){_push(nameOrId,"")}else{_push(nameOrId,el.value)}break;case"hidden":case"password":_push(nameOrId,el.value);break;case"checkbox":if(el.name&&el.checked){_push(nameOrId,el.value,true)}break;case"radio":if(el.name&&el.checked){_push(nameOrId,el.value)}break;case"select-one":if(el.selectedIndex>-1){_push(nameOrId,el.value)}break;case"select-multiple":var opts=el.options,vals=[];for(var j=0;j<opts.length;++j){if(opts[j].selected){vals.push(opts[j].value)}}_push(nameOrId,vals);break;case"button":break}return jsonObj}if(/^(area|base|basefont|col|frame|hr|img|br|isindex|link|meta|option|param)$/i.test(el.tagName)){return null}var els,len,i;if(el.getAttribute("ztype")&&el.getAttribute("ztype").toLowerCase()=="datalevel"){els=el.children;len=els.length;var dataLevel={};for(i=0;i<len;i++){var o=Node.getJson(els[i],dataLevel)}if(dataLevel){_push(el.getAttribute("name")||el.tagName||el.id,dataLevel,true)}}else{els=el.children;len=els.length;for(i=0;i<len;i++){var obj=Node.getJson(els[i],jsonObj)}}return jsonObj};Node.update=function(elem,html,loadScripts,callback){ele=z.getDom(elem);if(typeof html=="undefined"){html=""}if(loadScripts!==true){ele.innerHTML=html;if(typeof callback=="function"){callback()}return ele}var doc=ele.ownerDocument;var id=z.id();html+='<span id="'+id+'"></span>';Dom.available(id,function(){var hd=doc.head||doc.getElementsByTagName("head")[0];var re=/(?:<script([^>]*)?>)((\n|\r|.)*?)(?:<\/script>)/ig;var srcRe=/\ssrc=([\'\"])(.*?)\1/i;var typeRe=/\stype=([\'\"])(.*?)\1/i;var match;while(match=re.exec(html)){var attrs=match[1];var srcMatch=attrs?attrs.match(srcRe):false;if(srcMatch&&srcMatch[2]){var s=doc.createElement("script");s.src=srcMatch[2];var typeMatch=attrs.match(typeRe);if(typeMatch&&typeMatch[2]){s.type=typeMatch[2]}hd.appendChild(s)}else{if(match[2]&&match[2].length>0){new Function(match[2])()}}}var el=document.getElementById(id);if(el){Dom.removeNode(el)}if(typeof callback=="function"){callback()}});ele.innerHTML=html.replace(/(?:<script.*?>)((\n|\r|.)*?)(?:<\/script>)/ig,"");return ele};var MutationObserver=window.MutationObserver||window.MozMutationObserver||window.WebKitMutationObserver;Node.onPropertyChange=function(el,propName,fn,scope){el=z.getDom(el);var $el=$(el);$el.on("change"+propName,$.proxy(fn,scope||el));if(MutationObserver&&(propName=="checked"||propName=="value")){if(typeof $el.data("_listenPropChange_"+propName)=="undefined"){el["_"+propName]=el[propName];var _setter=function(v){if(v==this["_"+propName]){return false}this["_"+propName]=v;delete this[propName];if(!v&&propName=="checked"){this.removeAttribute(propName)}else{this.setAttribute(propName,v)}this[propName]=v;this.__defineSetter__(propName,_setter);this.__defineGetter__(propName,_getter);$(this).trigger("change"+propName,[v,this])};var _getter=function(v){return this["_"+propName]};el.__defineSetter__(propName,_setter);el.__defineGetter__(propName,_getter);if(propName=="value"){$el.on("change",function(evt){var sr=this.setSelectionRange(0,99999);var s=window.getSelection();var v="";if(s){v=s.toString()}this["_"+propName]=v;$el.trigger("change"+propName,[v,el])},false)}else{if(propName=="checked"){$el.on("change",function(evt){var v=!this["_"+propName];_setter.call(this,v)},false)}}if(typeof $el.data("_listenPropChange_byMutationObserver")=="undefined"){var ob=new MutationObserver(function(mutations){mutations.forEach(function(evt){var el=evt.target;var attrName=evt.attributeName;var v=el.getAttribute(attrName);if($el.data("_listenPropChange_"+attrName.toLowerCase())){if(attrName=="checked"&&!!v==!!el["_"+attrName]||v==el["_"+attrName]){return false}el["_"+attrName]=v;$el.trigger("change"+attrName,[v,el])}})});ob.observe(el,{attributes:true});$el.data("_listenPropChange_byMutationObserver",true)}}$el.data("_listenPropChange_"+propName,true);return}if(document.__defineSetter__&&" alt align accept autofocus disabled draggable defaultvalue defaultchecked height id lang min max multiple name pattern placeholder required src step spellcheck title width ".indexOf(" "+propName+" ")==-1){if(typeof $el.data("_listenPropChange_"+propName)=="undefined"){el["_"+propName]=el[propName];el.__defineSetter__(propName,function(v){if(v==this["_"+propName]){return false}this["_"+propName]=v;if(!v&&" checked disabled draggable hidden readOnly multiple required formnovalidate ".indexOf(" "+propName+" ")!=-1){this.removeAttribute(propName)}else{this.setAttribute(propName,v)}$el.trigger("change"+propName,[v,el])});el.__defineGetter__(propName,function(v){return this["_"+propName]});$el.data("_listenPropChange_"+propName,true)}}else{if(MutationObserver){el["_"+propName]=el[propName];$el.data("_listenPropChange_"+propName,true);if(typeof $el.data("_listenPropChange_byMutationObserver")=="undefined"){var ob=new MutationObserver(function(mutations){mutations.forEach(function(evt){var el=evt.target;var attrName=evt.attributeName;var v=el.getAttribute(attrName);if(v===""&&" checked disabled draggable hidden readOnly multiple required formnovalidate ".indexOf(" "+attrName+" ")!=-1){v=true}if($el.data("_listenPropChange_"+attrName.toLowerCase())){if(v==el["_"+attrName]){return false}el["_"+attrName]=v;$el.trigger("change"+attrName,[v,el])}})});ob.observe(el,{attributes:true});$el.data("_listenPropChange_byMutationObserver",true)}}else{if("onpropertychange" in document){el["_"+propName]=el[propName];$el.data("_listenPropChange_"+propName,true);if(typeof $el.data("_listenPropChange")=="undefined"){if(!supportDOMAttrModified){if(!supportListenPropertychange){el.onpropertychange=function(evt){evt=evt.originalEvent||evt;var el=evt.srcElement||evt.target;if(el.URL&&el.readyState){return}var attrName=evt.propertyName;var v=el[attrName];if($el.data("_listenPropChange_"+attrName)){if(v==el["_"+attrName]){return false}el["_"+attrName]=v;$el.trigger("change"+attrName,[v,el])}}}else{$el.on("propertychange",function(evt){evt=evt.originalEvent||evt;var el=evt.srcElement||evt.target;if(el.URL&&el.readyState){return}var attrName=evt.propertyName;var v=el[attrName];if($el.data("_listenPropChange_"+attrName)){if(v==el["_"+attrName]){return false}el["_"+attrName]=v;$el.trigger("change"+attrName,[v,el])}})}}else{$el.on("DOMAttrModified",function(evt){evt=evt.originalEvent||evt;var attrName=evt.attrName;if($el.data("_listenPropChange_"+attrName)){if(v==el["_"+attrName]){return false}el["_"+attrName]=v;$el.trigger("change"+attrName,[v,el])}})}$el.data("_listenPropChange",true)}}}}};Node.unPropertyChange=function(elem,propName,fn){var el=z.getDom(elem);var $el=$(el);$el.off("change"+propName.toLowerCase(),fn);$el.removeData("_listenPropChange_"+propName)};var focusRe=/a|button|embed|iframe|img|input|object|select|textarea/i;Node.focusable=function(elem){var el=z.getDom(elem);if(!el.disabled){if(focusRe.test(el.nodeName)){if((el.nodeName!=="A")||el.href){canFocus=true}}else{canFocus=!isNaN(el.tabIndex)}}return canFocus&&Node.isVisible(el)};Node.needsTabIndex=function(elem){var el=z.getDom(elem);if(el){if((el.nodeName==="A")&&(!el.href)){return true}return !focusRe.test(el.nodeName)}};z.$$=function(selector,context){return jQuery.find(selector,context)};z.Node=Node;var supportDOMAttrModified;supportDOMAttrModified=window.addEventListener?(function(){var root=document.documentElement,value=root.value;var flag=false,fn;root.addEventListener("DOMAttrModified",fn=function(){flag=true;root.removeEventListener("DOMAttrModified",fn,false);root.value=value},false);root.value="value"+(+new Date());return flag}()):false;var supportListenPropertychange;supportListenPropertychange=window.addEventListener?(function(){var root=document.documentElement,value=root.value;var flag=false,fn;root.addEventListener("propertychange",fn=function(){flag=true;root.removeEventListener("propertychange",fn,false);root.value=value},false);root.value="value"+(+new Date());return flag}()):(function(){var root=document.documentElement,value=root.value=root.value||"";var flag=false,fn;root.attachEvent("onpropertychange",fn=function(){flag=true;root.detachEvent("onpropertychange",fn,false);root.value=value});root.value="value"+(+new Date());return flag}())})();(function(a){var b=window.Zving;a.fn.extend({getComponent:function(c){if(!this[0]){return null}return b.Node.getComponent(this[0],c)},delayFocus:function(c,d){return typeof c==="number"?this.each(function(){var e=this;setTimeout(function(){a(e).focus();if(d){d.call(e)}},c)}):this.focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").off("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").on("selectstart.ui",function(){return false})},disable:function(d){var c=this;if(d){setTimeout(function(){c.enable()},d*1000)}return this.each(function(){var h=this;if(h.tagName.toLowerCase()==="form"){var j=h.elements;for(var g=0;g<j.length;g++){a(j[g]).disable()}}else{if(h.getAttribute("ztype")){var e=h.getAttribute("ztype");if(/select|date|time/i.test(e)&&!isIE){h.disabled=true}else{if(h._components){for(var f in h._components){a(h).getComponent(f).disable()}h.disabled=true}}}else{a(h).addClass("disabled");h.disabled=true}}})},enable:function(){return this.each(function(){var f=this;if(f.tagName.toLowerCase()==="form"){var g=f.elements;for(var e=0;e<g.length;e++){a(g[e]).enable()}}else{if(f.getAttribute("ztype")){var c=f.getAttribute("ztype");if(/select|date|time/i.test(c)&&!b.isIE){f.disabled=false}else{if(f._components){for(var d in f._components){a(f).getComponent(d).enable()}}}}else{a(f).removeClass("disabled");f.disabled=false}}})},scrollParent:function(){var c;if((navigator.userAgent.indexOf("MSIE")!=-1&&window.ActiveXObject&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){c=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{c=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!c.length?$document:c},zIndex:function(f){if(f!==undefined){return this.css("zIndex",f)}if(this.length){var d=a(this[0]),c,e;while(d.length&&d[0]!==document){c=d.css("position");if(c=="absolute"||c=="relative"||c=="fixed"){e=parseInt(d.css("zIndex"),10);if(!isNaN(e)&&e!==0){return e}}d=d.getParent()}}return 0},mask:function(m){this.unmask();var j=a.extend({opacity:0.3,msg:"",z:10000,maskDivClass:"",bgcolor:"#ccc"},m);var e=a(document.body);var h={top:0,left:0};if(this[0]&&this[0]!==window.document){e=this;h=e.position()}var d=a('<div class="maskdivgen">&nbsp;</div>');d.appendTo(e);var l=e.outerWidth();if(!l){l=e.width()}var c=e.outerHeight();if(!c){c=e.height()}d.css({position:"absolute",top:h.top,left:h.left,"z-index":j.z,width:l,height:c,"background-color":j.bgcolor,opacity:0});if(j.maskDivClass){d.addClass(j.maskDivClass)}if(j.msg){var k=a('<div style="position:absolute;border:#6593cf 1px solid; padding:2px;background:#ccca"><div style="line-height:24px;border:#a3bad9 1px solid;background:white;padding:2px 10px 2px 10px">'+j.msg+"</div></div>");k.appendTo(d);var g=(d.width()-k.width());var f=(d.height()-k.height());k.css({cursor:"wait",top:(f/2-2),left:(g/2-2)})}d.fadeIn("fast",function(){a(this).fadeTo("slow",j.opacity)});return d},unmask:function(){var c=a(document.body);if(this[0]&&this[0]!==window.document){c=a(this[0])}c.find("> div.maskdivgen").fadeOut("slow",0,function(){a(this).remove()})},offsetEx:function(){var d=a(this).offset();var c=b.Dom.getFrameOffset();d.left+=c.left;d.top+=c.top;return d}})})(jQuery);(function(){var h=window.Zving,d=h.Node;h.currentDragDropManager=null;if(window!=h.rootWin){h.currentDragDropManager=h.rootWin.Zving.currentDragDropManager}var c={isDragging:false,dragObject:null,startDate:null,startWindow:window,startX:0,startY:0,pageX:0,pageY:0,deltaX:0,deltaY:0,deltaDeltaX:0,deltaDeltaY:0,mouseDownTarget:null,startDrag:h.noopFn};(function(){var j=function(n){var m=c.dragObject;$(document).trigger("mousedown");n=Event.fixEvent(n);if(c.isDragging||!m){return}c.isDragging=true;if(this.startWindow!=h.rootWin){h.currentDragDropManager=c}$document.on("mousemove.drag",k);$document.on("mouseup.drag",l);c.startDate=new Date();c.deltaX=c.deltaY=c.deltaDeltaX=c.deltaDeltaY=0;c.startX=c.pageX=n.pageX;c.startY=c.pageY=n.pageY;c.mouseDownTarget=n.target||n.srcElement;m.dragstart(n);n.preventDefault()};var l=function(n){var m=c.dragObject;if(!c.isDragging||!m){return}m.dragend(n);c.isDragging=false;if(this.startWindow!=h.rootWin){h.currentDragDropManager=null}c.dragObject=null;$document.off("mousemove.drag");$document.off("mouseup.drag")};var k=function(r){var q=c.dragObject;r=Event.fixEvent(r);if(!c.isDragging||!q){return}var p=r.view||(r.target||r.srcElement).ownerDocument.parentWindow;var m=r.pageX;var t=r.pageY;if(p!=c.startWindow){var n=h.Dom.getFrameOffset(p);var o=h.Dom.getFrameOffset(c.startWindow);m=m+n.x-o.x;t=t+n.y-o.y}c.deltaDeltaX=m-c.pageX;c.deltaDeltaY=t-c.pageY;c.pageX=m;c.pageY=t;c.deltaX=m-c.startX;c.deltaY=t-c.startY;q.drag(r);r.preventDefault()};c.startDrag=function(n,m){this.dragObject=m;j(n)}}());var f=function(j){h.mix(this,j);h.Observable(this);h.UICompBase.prototype.getId.call(this);h.ComponentManager.add(this);if(!this.lazyRender){this.render()}};var b=function(j){return parseFloat(j)||0};f.prototype={ctype:"SimpleDrag",dragEl:null,handleEl:null,capture:false,proxyEl:null,xAttr:"left",yAttr:"top",maxXAttr:null,minXAttr:null,maxYAttr:null,minYAttr:null,xFixed:false,yFixed:false,withProxy:true,offsetProxy:false,getProxy:function(){var j=this.proxyEl||h.getDom("_DragProxy");if(!j){j=document.createElement("div");j.id="_DragProxy";j.className="z-proxy-dd";document.body.appendChild(j);j.style.display="none"}this.proxyEl=j;return j},dragstart:function(o){var n=this;if(n.capture&&n.handleEl.setCapture){n.handleEl.setCapture();window.event.cancelBubble=true}n.startXAttr=b(d.getCurrentStyle(n.dragEl,n.xAttr.replace(/^-/,"")));n.startYAttr=b(d.getCurrentStyle(n.dragEl,n.yAttr.replace(/^-/,"")));n.startXAttrInPage=d.getOffset(n.dragEl).x;n.startYAttrInPage=d.getOffset(n.dragEl).y;if(n.withProxy){var k,q;var l=n.getProxy();var m=d.getRect(n.dragEl);k=m.left;q=m.top;if(typeof this.offsetProxy=="string"){if(this.offsetProxy.indexOf("t")!=-1){k=q-c.pageY-m.top-5}if(this.offsetProxy.indexOf("l")!=-1){k=k-c.pageX-m.left-5}if(this.offsetProxy.indexOf("r")!=-1){k=k+c.pageX-m.left+5}if(this.offsetProxy.indexOf("b")!=-1){q=q+c.pageY-m.top+5}}d.setPosition(l,k,q);d.setSize(l,m.width,m.height);d.css(l,"z-index",(parseInt(d.css(n.dragEl,"z-index"),10)||0)+1);n.startXAttrProxy=b(l.style[n.xAttr.replace(/^-/,"")]);n.startYAttrProxy=b(l.style[n.yAttr.replace(/^-/,"")]);l.__deltaX=l.__deltaY=0;var j;var p=function(){var r=0;if(n!=c.dragObject||l.style.display!="none"){r=-1}if(c.deltaX*c.deltaX+c.deltaY*c.deltaY>4||(new Date()-c.startDate)>500){r=1}if(r===1){l.style.display="block"}if(r===1||r===-1){clearInterval(j)}};if(isIE){l.style.display="block"}else{j=setInterval(p,20)}}n.fireEvent("dragstart",o)},drag:function(o){var m=this,n={X:1,Y:1};for(var l in n){var j=l.toLowerCase();if(!m[j+"Fixed"]){var p=(m[j+"Attr"].indexOf("-")===0?-1:1)*c["delta"+l];if(m["max"+l+"Attr"]!==null){p=Math.min(p,m["max"+l+"Attr"]-m["start"+l+"AttrInPage"])}if(m["min"+l+"Attr"]!==null){p=Math.max(p,m["min"+l+"Attr"]-m["start"+l+"AttrInPage"])}if(m.withProxy){try{d.setStyle(m.proxyEl,m[j+"Attr"],(m["start"+l+"AttrProxy"]+p)+"px")}catch(k){}m.proxyEl["__delta"+l]=p}else{d.setStyle(m.dragEl,m[j+"Attr"].replace(/^-/,""),(m["start"+l+"Attr"]+p)+"px")}}}m.fireEvent("drag",o)},dragend:function(l){var k=this;if(k.capture&&k.handleEl.releaseCapture){k.handleEl.releaseCapture()}if(k.withProxy){var j=k.proxyEl;j.style.display="none";if(!k.xFixed){d.setStyle(k.dragEl,k.xAttr.replace(/^-/,""),(k.startXAttr+j.__deltaX)+"px")}if(!k.yFixed){d.setStyle(k.dragEl,k.yAttr.replace(/^-/,""),(k.startYAttr+j.__deltaY)+"px")}}k.fireEvent("dragend",l)},render:function(){var j=this;if(j._rendered){return}j.addEvents("dragstart","drag","dragend");if(j.delegateContainer){$(j.delegateContainer).delegate(j.handleSelector,"mousedown.drag",function(k){j.handleEl=this;if(j.dragSelector){j.dragEl=$(this).closest(j.dragSelector)[0]}else{j.dragEl=j.handleEl}c.startDrag((k&&k.core)||k,j)})}else{j.handleEl=j.handleEl||j.dragEl;$(j.handleEl).on("mousedown.drag",function(k){c.startDrag(k,j)})}j._rendered=true},destroy:function(){var j=this;if(!j._rendered){return}if(j.delegateContainer){$(j.delegateContainer).off("mousedown.drag");delete j.delegateContainer}else{$(j.handleEl).off("mousedown.drag");delete j.handleEl}delete j.dragEl;delete j.proxyEl;h.ComponentManager.unregister(this)}};var e=function(j){f.call(this,j)};e.MENTOR_CLASS=f;e.prototype={ctype:"SimpleResize",xAttr:"width",yAttr:"height",minXAttr:0,minYAttr:0};h.mixIf(e.prototype,f.prototype);var g=function(j){h.mix(this,j);h.Observable(this);if(!this.lazyRender){this.render()}};g.prototype={ctype:"RectSelector",proxyEl:null,handleEl:null,getProxy:(function(){var j=null;return function(){var k=this.proxyEl||j;if(!k){k=h.Dom.createNode("div",{className:"z-proxy-rectselector"});document.body.appendChild(k);k.style.display="none";this.proxyEl=k}return this.proxyEl}}()),dragstart:function(j){this.proxyEl=this.getProxy();this.proxyEl.style.display="block";if(this.handleEl.setCapture){this.handleEl.setCapture()}d.setPosition(this.proxyEl,c.startX,c.startY);d.setSize(this.proxyEl,1,1);this.fireEvent("dragstart",j)},drag:function(j){d.setPosition(this.proxyEl,Math.min(c.startX,c.pageX),Math.min(c.startY,c.pageY));d.setSize(this.proxyEl,Math.abs(c.deltaX),Math.abs(c.deltaY));this.fireEvent("drag",j)},dragend:function(j){if(this.handleEl.releaseCapture){this.handleEl.releaseCapture()}this.proxyEl.style.display="none";this.fireEvent("dragend",j)},render:function(){var j=this;if(j._rendered){return}j.addEvents("dragstart","drag","dragend");$(j.handleEl).on("mousedown.drag",function(k){if(k.target==j.handleEl){c.startDrag(k,j)}});j._rendered=true}};var a=function(j){f.call(this,j)};a.MENTOR_CLASS=f;a.prototype={ctype:"LayoutDrag",withProxy:true,isInline:false,dragstart:function(j){d.addClass(this.dragEl,"dragingModule");f.prototype.dragstart.call(this,j)},dragend:function(j){d.removeClass(this.dragEl,"dragingModule");f.prototype.dragend.call(this,j)},adjustLayout:function(n){var p=this,w=c.pageX,r=c.pageY,u=p.siblings,j=p.containers,q=p.isInline?"deltaDeltaX":"deltaDeltaY",t;if(n.type=="dragstart"||n.name=="dragstart"){if(p.__elAnim){p.__elAnim.pause()}}else{if(n.type=="drag"||n.name=="drag"){if(j||u){var A=false,m,l;t=d.getRect(p.dragEl);var o=d.getMargin(p.dragEl);if(w>=t.left-o[3]&&w<=t.right+o[1]&&r>=t.top-o[0]&&r<=t.bottom+o[2]){return}for(m=0;u!==null&&m<u.length;m++){l=u[m];if(l==p.dragEl){continue}t=d.getRect(l);o=d.getMargin(l);if(w>=t.left-o[3]&&w<=t.right+o[1]&&r>=t.top-o[0]&&r<=t.bottom+o[2]){if(c[q]>0){l.parentNode.insertBefore(p.dragEl,l.nextSibling)}else{if(c[q]<0){l.parentNode.insertBefore(p.dragEl,l)}}A=true;break}}for(m=0;!A&&j!==null&&m<j.length;m++){l=j[m];t=d.getRect(l);if(w>t.left+1&&w<t.right-1&&r>t.top+1&&r<t.bottom-1){if(l.lastChild!=p.dragEl){l.appendChild(p.dragEl);A=true}break}}if(A&&p.handleEl.setCapture){p.handleEl.setCapture()}}}}if(n.type=="dragend"||n.name=="dragend"){if(p.needAnim&&Zving.Animate){t=d.getRect(p.dragEl);p.proxyEl.style.display="block";var k=new Zving.Animate(p.proxyEl,{width:{to:t.width},height:{to:t.height},left:{to:t.left},top:{to:t.top}},300);k.on("end",function(){p.proxyEl.style.display="none"});k.play();p.proxyEl.__elAnim=k}}},render:function(){var k=this;f.prototype.render.call(k);var j=k.adjustLayout;if(j){k.on("dragstart",j);k.on("drag",j);k.on("dragend",j)}}};h.mixIf(a.prototype,f.prototype);$window.on("unload",function(){c.dragObject=null;c.mouseDownTarget=null;c.startWindow=null;h.currentDragDropManager=null});h.DragDropManager=c;h.SimpleDrag=f;h.SimpleResize=e;h.LayoutDrag=a;h.RectSelector=g})();
  /*! page.js */
  $window=$(window);(function(){var c=window.Zving,b=c.isIE;var a={};a._Sort=function(e,d){var g=e[1];var f=d[1];if(typeof(g)==="number"){if(typeof(f)==="number"){if(g>f){return 1}else{if(g===f){return 0}else{return -1}}}return -1}else{if(typeof(f)==="number"){return 1}else{return 0}}};a.isLoaded=a.isLoaded||false;a.loadFunctions=[];a.load=function(d){a.isLoaded=true;if(a.loadFunctions.length){a.loadFunctions.sort(a._Sort);while(a.loadFunctions.length){var e=a.loadFunctions.shift()[0];e(d)}}};a.onLoad=function(e,d){a.loadFunctions.push([e,d]);if(a.isLoaded){setTimeout(a.load,100)}};$(window).one("load.pageload",a.load);a.isReadied=a.isReadied||false;a.readyFunctions=[];a.ready=function(d){if(typeof d=="function"){return c.Console.error(location.pathname+" ## Page.js -- Page.ready ::  参数预期为Event，但目前转入了Function "+d)}a.isReadied=true;if(a.readyFunctions.length){a.readyFunctions.sort(a._Sort);while(a.readyFunctions.length){var e=a.readyFunctions.shift()[0];e(d)}}};a.onReady=function(e,d){a.readyFunctions.push([e,d]);if(a.isReadied){setTimeout(a.ready,10)}};$document.one("ready",a.ready);$window.on("unload",function(){a.readyFunctions.length=0;a.loadFunctions.length=0;$(window).off("load.pageload")});c.Page=a})();(function(){var b=Zving.CONTEXTPATH||"/";var a={};a.get=function(e){var f=document.cookie.split("; ");for(i=0;i<f.length;i++){var c=f[i].split("=");var g=c[0].trim();var d=c[1]?c[1].trim():"";if(g===e){return decodeURIComponent(d)}}return null};a.getAll=function(){var e=document.cookie.split("; ");var f={};for(i=0;i<e.length;i++){var c=e[i].split("=");var g=c[0].trim();var d=c[1]?c[1].trim():"";f[g]=decodeURIComponent(d)}return f};a.set=function(d,k,e,l,g,c,j){if(d===undefined||k===undefined){return false}if(!j){k=encodeURIComponent(k)}if(!l){l=b}l=l.replace(/^\w+:\/\/[.\w]+:?\d*/g,"");if(e){if(/^[0-9]+$/.test(e)){e=new Date(new Date().getTime()+e*1000).toGMTString()}else{var f=Zving.DateTime.parseDate(e);if(f){e=f.toGMTString()}else{e=undefined}}}if(!j){a.remove(d,l,g)}var h=d+"="+k+";"+((e)?" expires="+e+";":"")+((l)?"path="+l+";":"")+((g)?"domain="+g+";":"")+((c&&c!==0)?"secure":"");if(h.length<4096){document.cookie=h}else{throw"写入cookie中的数据过长"+h}return true};a.remove=function(d,f,e){var c=a.get(d);if(!d||c===null){return false}if(!f){f=b}f=f.replace(/^\w+:\/\/[.\w]+:?\d*/g,"");document.cookie=d+"=;"+((f)?" path="+f+";":"")+((e)?" domain="+e+";":"")+" expires="+new Date(0)+";";return true};Zving.Cookie=a})();(function(){var a=window.Zving;a.DataGSetter=function(f,m,l){var k=f,b;if(typeof l=="string"&&l.length){l=l.substr(0,1).toUpperCase()+l.substr(1)}else{l="Attr"}m=m||"_attributes";var h;if(typeof m=="string"){h=k[m]=k[m]||{}}else{if(typeof m=="object"){h=m}}var d="get"+l;var j="set"+l;var g="getAll"+l;var e="remove"+l;var c="removeAll"+l;if(a.isElement(f)){$window.on("unload",function(){f[m]=f[d]=f[j]=null})}k[d]=function(n){return h[n]};k[g]=function(n){return h};k[c]=function(n){return(h={})};k[j]=function(n,p,o){h[n]=p;if(o!==undefined){k[n]=o}};k[e]=function(n,o){delete h[n];if(o){delete k[n]}}}})();
  /*! Form */
  (function(){var d=window.Zving,c=d.getDom,a={};d.getForm=a.getForm=function(e){if(!e){return document.forms[0]}else{e=c(e);if(e&&e.tagName.toLowerCase()!=="form"){return null}return e}};d.selectAllCheckbox=function(j,f){var g=d.Node.getValue(j);var e=d.getByName(f);if(e){for(var h=0;h<e.length;h++){e[h].checked=g}}};a.setValue=function(g,f){f=d.getForm(f);var e;for(e=0;e<f.elements.length;e++){var j=c(f.elements[e]);if(j.getAttribute("ztype")=="select"&&j.parentElement.getAttribute("ztype")=="Select"){console.log("需要调试：父元素ztype=Select");j=j.parentElement}if(j.type=="checkbox"||j.type=="radio"){if(j.name){if(typeof g.get(j.name)!=="undefined"&&g.get(j.name)!==null){d.setValues(j.name,g.get(j.name))}continue}}var h=j.name||j.id;if(g.get(h)){d.Node.setValue(j,g.get(h))}}};a.setValuesFromJson=function(h,g){h=d.getForm(h);var f,e;for(f=0;f<h.elements.length;f++){var k=c(h.elements[f]);if(k.getAttribute("ztype")=="select"&&k.parentElement.getAttribute("ztype")=="Select"){k=k.parentElement}if(k.type=="checkbox"||k.type=="radio"){if(k.name){if(typeof g[k.name]!=="undefined"){d.setValues(k.name,g[k.name])}continue}}var j=k.name||k.id;if(typeof g[j]!=="undefined"){d.Node.setValue(k,g[j])}}};a.getJson=function(f,e){el=d.getForm(f);if(!el){alert("查找表单元素失败!"+f);return}return Zving.Node.getJson(el,null,e)};a.getJsonString=function(f,e){return d.JSON.stringify(a.getJson(f,null,e))};a.getXMLString=function(k,h){var m=a.getJson(k,h);var f=[];f.push('<?xml version="1.0" encoding="UTF-8"?>');f.push("<collection>");for(var j in m){var e=j,l,g="String";if(d.isString(m[j])){l=m[j];g="String"}else{if(d.isObject(m[j])){l=d.JSON.stringify(m[j])}}f.push('<element ID="'+e+'" Type="'+g+'">');f.push("<![CDATA["+l+"]]>");f.push("</element>")}f.push("</collection>");return f.join("")};a.getQueryString=function(p,f){el=d.getForm(p);if(!el){alert("查找表单元素失败!"+p);return}f=f||function(j){return false};var q=[],k=el.elements,g=k.length,m,n=function(j,l){q.push(encodeURIComponent(j)+"="+encodeURIComponent(l+""))};for(m=0;m<g;++m){el=k[m];var o=el.name||el.id;if(!el.type||!o||f(el)){continue}switch(el.type){case"text":case"textarea":if(el.getAttribute("placeholder")&&el.value==el.getAttribute("placeholder")){n(o,"")}else{n(o,el.value)}break;case"hidden":case"password":n(o,el.value);break;case"radio":case"checkbox":if(el.name&&el.checked){n(o,el.value)}break;case"select-one":if(el.selectedIndex>-1){n(o,el.value)}break;case"select-multiple":var e=el.options;for(var h=0;h<e.length;++h){if(e[h].selected){n(o,e[h].value)}}break;case"button":break;default:if(el.name&&el.id&&el.value){n(o,el.value)}break}}return q.join("&")};a.getData=function(q,f){el=d.getForm(q);if(!el){alert("查找表单元素失败!"+q);return}f=f||function(j){return false};var p={};var k=el.elements,g=k.length,m,n=function(j,l){if(typeof p[j]!="undefined"){if(!p[j+"_JsonArray"]){p[j+"_JsonArray"]=[p[j]]}p[j+"_JsonArray"].push(l);l=p[j]+","+l+""}p[j]=l+""};for(m=0;m<g;m++){el=k[m];var o=el.name||el.id;if(!el.type||!o||f(el)){continue}switch(el.type){case"text":case"textarea":if(el.getAttribute("placeholder")&&el.value==el.getAttribute("placeholder")){n(o,"")}else{n(o,el.value)}break;case"hidden":case"password":n(o,el.value);break;case"checkbox":case"radio":if(el.name&&el.checked){n(o,el.value)}break;case"select-one":if(el.selectedIndex>-1){n(o,el.value)}break;case"select-multiple":var e=el.options;for(var h=0;h<e.length;++h){if(e[h].selected){n(o,e[h].value)}}break;case"button":break;default:if(el.name&&el.id&&el.value){n(o,el.value)}break}}return p};a.isChanged=function(m){el=c(m);var h=el.elements,e=h.length,g=0,f=0,k;for(;g<e;++g,f=0){el=h[g];switch(el.type){case"text":case"textarea":if(el.defaultValue!=el.value){if(el.getAttribute("placeholder")&&el.defaultValue==el.getAttribute("placeholder")){continue}return true}break;case"hidden":case"password":if(el.defaultValue!=el.value){return true}break;case"radio":case"checkbox":if(el.defaultChecked!=el.checked){return true}break;case"select-one":f=1;break;case"select-multiple":k=el.options;for(;f<k.length;++f){if(k[f].defaultSelected!=k[f].selected){return true}}break}}return false};var b=0;a.postCharset="utf-8";a.postMethod="post";a.buildForm=function(h,k){var j=[];b++;formId="_POST_DATA_FORM_"+b;iframeId="_POST_DATA_IFRAME_"+b;j.push('<iframe id="'+iframeId+'" name="'+iframeId+'" src="about:blank">');j.push("</iframe>");j.push("<form");j.push(' id="'+formId+'"');j.push(' action="'+h+'"');j.push(' accept-charset="'+a.postFormCharset+'"');j.push(' enctype="application/x-www-form-urlencoded"');j.push(' method="'+a.postMethod+'"');j.push(' target="'+iframeId+'"');j.push(">");for(var l in k){if(k.hasOwnProperty(l)&&typeof k[l]!=="undefined"){j.push('<textarea name="'+l+'" id="'+l+'">');j.push(d.String.htmlEncode(k[l]));j.push("</textarea>")}}j.push('<input type="submit" value="submit">');j.push("</form>");var g=c(formId+"_wrap");if(!g){g=document.createElement("div");g.id=formId+"_wrap";document.body.appendChild(g);g.style.display="none"}g.innerHTML=j.join("");var e=c(formId);e.onsubmit=function(f){f=f||window.event;f.cancelBubble=true};return e};a.submitData2Iframe=function(j,l,f){var e=a.buildForm(j,l);var h=e.getAttribute("target");var m=c(h);var k=0;var g=function(){try{if(m.contentWindow.location.href.indexOf("about:blank")==0){return}}catch(o){}if(k===1){var n;try{n=m.contentWindow.name;n=n.replace(/^[\r\n]+/,"")}catch(o){m.contentWindow.location.replace(location.protocol+"//"+location.host+"/JSCrossDomainProxy.html");return}console.log(h+" "+n);f(n);if("onreadystatechange" in document&&"attachEvent" in m){m.detachEvent("onload",g)}else{m.onload=null}e.onsubmit=null;$(e.parentNode).remove()}else{if(k===0){k=1;m.contentWindow.location.replace(location.protocol+"//"+location.host+"/JSCrossDomainProxy.html")}}};if("onreadystatechange" in document&&"attachEvent" in m){m.attachEvent("onload",g)}else{m.onload=g}window.setTimeout(function(){e.submit();m.removeAttribute("name")},1)};d.Form=a})();(function(){var c=window.Zving,a={};a.Supported="en,zh-cn,zh-tw";a.DefaultLanguage="zh-cn";a.Map={};a.getCurrentLang=function(){var d=c.Cookie.get("_ZVING_LANGUAGE");if(d){return d}d=navigator.language?navigator.language:navigator.browserLanguage;d=d?d:navigator.systemLanguage;if(d){d=d.replace("_","-").toLowerCase();if(d.startsWith("en-")){d="en"}if(d.startsWith("ar-")){d="ar"}if(d.startsWith("de-")){d="de"}if(d.startsWith("es-")){d="es"}if(d.startsWith("fr-")){d="fr"}if(d.startsWith("pt-")){d="pt"}if(d.startsWith("ru-")){d="ru"}if(d.startsWith("ja-")){d="ja"}if(d.startsWith("ko-")){d="ko"}if(d.startsWith("it-")){d="it"}if(d.startsWith("zh-")){if(d!="zh-cn"){d="zh-tw"}else{d="zh-cn"}}return d}return a.DefaultLanguage};a.onLangButtonClick=function(f){var e=new Dialog({title:a.get("LangDialog.Title"),url:c.CONTEXTPATH+"framework/resources/langEditDialog.zhtml?ID="+f,width:710,height:200,onOk:function(){c.Node.setValue(f+"_I18N",$DW.getLangString());c.Node.setValue(f,$DW.getCurrentLangValue());$D.close()}});e.show()};a.setCurrentLang=function(g,e){var f=c.Cookie.get("_ZVING_LANGUAGE");if(f==g){return g}var d=new DataCollection();d.add("Language","en");Server.sendRequest("Application.changeLanguage",d,function(h){if(e){window.location.reload()}})};var b=a.getCurrentLang();if((","+a.Supported+",").indexOf(","+b+",")<0){window.console&&console.warn("Zving Frmaework can't support language:"+b);b=a.DefaultLanguage}a.get=function(d){var e=a.Map[b][d];return e===undefined?d:e};if(c.JSLIBPATH.endsWith("/framework/")&&!b.startsWith("zh-")){c.addStyle("body,input,textarea,select,button { font-family:Helvetica, Arial, sans-serif; }h1,h2,h3,h4,h5,h6{font-family:'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif;}.navigation a ,.sideNavigation a{font-family:'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, sans-serif;}#loginBtnWrap a{ letter-spacing:1px; }")}c.Lang=a;c.importJs(c.CONTEXTPATH+"framework/lang/"+a.getCurrentLang()+".js")})();Zving.Lang.Map["zh-cn"]={"Common.Invalid":"无效","Common.Error":"错误","Common.Wrong":"不正确","Common.OK":"确定","Common.Cancel":"取消","Common.Close":"关闭","Dialog.BlockedMessage":"发现弹出窗口被阻止，请更改浏览器设置，以便正常使用本功能!","Dialog.SystemMessage":"系统提示","Dialog.Confirm":"信息确认","Dialog.WaitMessage":"请等待","Verify.NotNull":"不能为空","Verify.MustChoose":"必须选择","Verify.NotRight":"不是正确的","Verify.MustBe":"必须是","Verify.MustGreaterThan":"必须大于","Verify.MustLessThan":"必须小于","Verify.MustGreaterThan":"必须大于","Verify.MustEqualOrGreaterThan":"必须大于或等于","Verify.MustEqualOrLessThan":"必须小于或等于","Verify.MustBeRight":"必须是正确的","Verify.char":"个字符","Verify.Number":"数字","Verify.Int":"整数","Verify.Time":"时间","Verify.DateWrong ":"日期格式错误，","Verify.Date":"日期","Verify.DateTime":"日期及时间","Verify.Email":"电子邮箱","Verify.Zip":"邮政编码","Verify.FixedTelNumber":"固定电话号码","Verify.TelNumber":"电话号码","Verify.MobileNumber":"手机号码","Verify.IDNumber":"身份证号码","Verify.RuleError":"校验规则错误，","Verify.BackOfLength":"Length后面必须是","Verify.InputValue":"输入的值","Verify.Length":"长度","Verify.NotAnOption":"不是可选项","Verify.HasError":"还有未正确填写的项，请参照提示修改!","Verify.NoYear":"没有年!","Verify.NoMonth":"没有月!","Verify.NoDay":"没有日!","Verify.TabPageHasError":"页签内有未正确填写的项!","Verify.HiddenElemHasError":"还有未正确填写的项!","DataGrid.SelectCol":"选择要导出的列","DataGrid.Loading":"正在加载......","DataGrid.FirstPage":"第一页","DataGrid.PrevPage":"上一页","DataGrid.NextPage":"下一页","DataGrid.LastPage":"最末页","DataGrid.GotoThe":"转到第","DataGrid.Goto":"跳转","DataGrid.Total0":"共 0 条记录，","DataGrid.10Records":"每页 10 条，","DataGrid.CopyToClipboard":"复制文本","DataGrid.SelectedRowToExcel":"导出选中行成Excel","DataGrid.ToExcel":"导出为Excel...","DataGrid.AllToExcel":"导出全部成Excel","DataGrid.MustDataGrid":"DataGrid.edit的参数必须是一个DataGrid对象","DataGrid.MustSelected":"请先选择一条记录!","DataGrid.NoChange":"数据未被修改过!","DataGrid.UpdateSuccess":"修改成功!","DataGrid.SelectAllColumn":"选择所有列","DateTime.MonthNames":"1月,2月,3月,4月,5月,6月,7月,8月,9月,10月,11月,12月","DateTime.WeekNames":"日,一,二,三,四,五,六","DateTime.Now":"现在","DateTime.Time":"时间","DateTime.Today":"今日","DateTime.Year":"年","DateTime.Month":"月","Progress.HasCanceled":"任务己取消","Progress.HasCancelling":"正在取消任务...","MsgPop.Countdown":"?秒后关闭","LangDialog.Title":"多语言字段编辑器","Uploader.Browse":"浏览...","Uploader.Start":"开始","Uploader.End":"结束","Uploader.Action":"动作","Uploader.Node":"节点","Uploader.ExistsLonelyNode":"存在孤立节点!","Uploader.ExistsBranchCannotEnd":"存在不能结束的流程分支!","Uploader.MaxFileSize":"允许的文件大小","Uploader.SupportedExts":"允许的文件类型","Uploader.OversizeError":"错误:文件超过允许的大小!","Uploader.ProcessMessage":"文件,共","Uploader.NoFlashPlugin":"<br/>检测到您的Adobe Flash Player版本过低?<br/>建议您在线安装最新版本的Flash Player<a href='http://www.adobe.com/go/getflash/' target='_blank'>在线安装</a>","Special.ModifyContainer":"修改内容块边框","Special.ModifyLayout":"修改布局块","Special.AddLayout":"添加布局块","Special.ModifyContent":"修改内容块","Special.EditContent":"编辑内容","Special.PageSetting":"页面属性","Special.Save2Schema":"保存为方案","Member.ErrorMsg.5":"用户名或密码不能为空","Member.MustLogin":"还未登录，请先登录"};
  /*!
  2014-10-26
  by zVing)WangZhaoHui 
  */
  /*! Server */
  (function(){var z=window.Zving,DataCollection=z.DataCollection,CONTEXTPATH=z.CONTEXTPATH,Server={};Server.MainServletURL="ajax/invoke";Server.timeout=30;Server.loadURL=function(url,func,onErrorFunc,timeout){if(location.protocol=="file:"){window.console&&console.error("AJAX不能在本地文件系统中使用，请通过http访问本页面。");return}$.ajax({type:"GET",timeout:(timeout||Server.timeout)*1000,url:url,cache:false,complete:function(XHR,textStatus){if(func){func(XHR.responseText)}},error:function(XHR,textStatus,errorThrown){if(onErrorFunc){onErrorFunc(textStatus)}}})};Server.getOneValue=function(methodName,dc,func){if(dc&&dc.prototype===DataCollection.prototype){Server.sendRequest(methodName,dc,func)}else{Server.sendRequest(methodName,{_Param0:dc},func)}};Server.sendRequest=function(methodName,dataObj,func,id,noSession,resultDataFormat){if(location.protocol=="file:"){window.console&&console.error("AJAX不能在本地文件系统中使用，请通过http访问本页面。");return}var postData={_ZVING_METHOD:methodName,_ZVING_URL:encodeURIComponent(window.location.pathname)};if(noSession){postData._ZVING_NOSESSION=true}if(!dataObj){postData._ZVING_DATA="{}"}else{if(typeof dataObj=="string"){postData._ZVING_DATA=dataObj}else{if(typeof dataObj=="object"){if(z.isEmpty(dataObj)){postData._ZVING_DATA=""}else{postData._ZVING_DATA=z.JSON.stringify(dataObj)}}}}if(CONTEXTPATH.indexOf("://")!=-1&&CONTEXTPATH.indexOf(location.protocol+"//"+location.host+"/")!==0){postData._ZVING_DATA_FORMAT=resultDataFormat||"setWindowName";z.Form.submitData2Iframe(CONTEXTPATH+Server.MainServletURL,postData,function(dataString){Server.onRequestComplete({readyState:4,status:200,responseText:dataString},func)})}else{postData._ZVING_DATA_FORMAT=resultDataFormat||"json";$.ajax({type:"POST",timeout:Server.timeout*1000,url:CONTEXTPATH+Server.MainServletURL,cache:false,complete:function(response,textStatus){Server.onRequestComplete(response,func)},data:postData,error:function(response,textStatus,errorThrown){if(response.readyState!=4){response.abort();var dc={};dc.Status=408;dc.Message="连接超时!";window.console&&console.warn("请求后台方法"+methodName+"连接超时!");func(dc)}}})}};Server.onRequestComplete=function(request,func){if(request.readyState==4){var dc={};dc.Status=request.status;if(request.status>=200&&request.status<300){var responseText=request.responseText.trim();if(responseText.indexOf("<")===0){var xmlDoc=request.responseXML;if(!xmlDoc){xmlDoc=z.toXMLDOM(responseText)}if(xmlDoc){dc=new DataCollection();if(dc.parseXML(xmlDoc)){var _ZVING_SCRIPT=dc.get("_ZVING_SCRIPT");if(_ZVING_SCRIPT){dc.map._ZVING_SCRIPT=_ZVING_SCRIPT}var _ZVING_STATUS=dc.get("_ZVING_STATUS");if(_ZVING_STATUS){dc.map._ZVING_STATUS=_ZVING_STATUS}var _ZVING_MESSAGE=dc.get("_ZVING_MESSAGE");if(_ZVING_MESSAGE){dc.map._ZVING_MESSAGE=_ZVING_MESSAGE}}dc=dc.map;xmlDoc=null}}else{if(responseText.indexOf("{")===0||responseText.indexOf("[")===0){dc=z.JSON.parse(responseText);for(var k in dc){if(dc[k]&&typeof dc[k]["@type"]=="string"){if(z[dc[k]["@type"]]){dc[k]=new z[dc[k]["@type"]](dc[k])}else{window.console&&console.error("没有构造函数"+dc[k]["@type"]+"无法解析数据"+z.JSON.stringify(dc[k]))}}}}else{dc=eval(responseText);if(dc===undefined){dc={};window.console&&console.warn("response is empty")}}}}else{if(request.status===0){dc._ZVING_MESSAGE=undefined}else{dc._ZVING_MESSAGE="服务器发生"+request.status+"异常，未获取到数据!"}}if(dc._ZVING_STATUS!==undefined){dc.Status=dc._ZVING_STATUS;if(dc.status===undefined){dc.status=dc._ZVING_STATUS}delete dc._ZVING_STATUS}if(dc._ZVING_MESSAGE!==undefined){dc.Message=dc._ZVING_MESSAGE;if(dc.message===undefined){dc.message=dc._ZVING_MESSAGE}delete dc._ZVING_MESSAGE}if(dc._ZVING_SCRIPT){window["eval"](dc._ZVING_SCRIPT);delete dc._ZVING_SCRIPT}if(func){func(dc)}request.onreadystatechange=z.noopFn;request=null;func=null}};z.Server=Server})();
  /*! ComponentManager */
  (function(){var e=window.Zving,a={},d;a.idSeed={};d=a.compCache=new e.DataCollection();a.add=a.register=function(g,f){if(typeof(g)!="string"){f=g;g=f.id}var h=d.get(g);if(h&&h!=f){if(!h.isDestroyed&&h.destroy&&h.el&&e.Dom.isRemoved(h.el)){h.destroy()}}d.add(g,f)};a.remove=a.unregister=function(f){if(typeof(f)!="string"){f=f.id}d.remove(f)};a.getById=function(f){return d.get(f)};a.getByDom=function(g,f){g=e.getDom(g);if(g&&g._components){return a.getById(e.getDom(g)._components[f])}};a.get=function(f,g){if(g){return a.getByDom(f,g)}else{return a.getById(f)}};a._unload=function(){var g,f;for(g in d.map){if(d.map.hasOwnProperty(g)){f=d.map[g];if(f&&f.destroy&&!f.isDestroyed){f.destroy()}}}d.clear()};a.destroyByDom=function(h){if(h.nodeName&&h.nodeType){h=[h]}var k,g;for(var j=0,f=h.length;j<f;j++){k=h[j].compId;g=k&&d.get(k);if(g&&g.destroy&&!g.isDestroyed){g.destroy()}}};a.initComponent=function(g,f){f=f||g.getAttribute("ztype");if(!f||g.componentinited){return}if(f.toLowerCase()!="verify"&&g.getAttribute("verify")&&e.Verify){e.Verify.initCtrl(g)}switch(f.toLowerCase()){case"input":if(e.UI){e.UI.initCtrl(g)}break;case"verify":if(e.Verify){e.Verify.initCtrl(g)}break;case"date":case"time":case"datetime":if(!jQuery.bootstrapFlag&&e.DatePicker){new e.DatePicker(g)}break;case"number":if(e.NumberField){new e.NumberField(g)}break;case"combox":if(e.Combox){new e.Combox(g)}break;case"suggest":if(e.Suggest){new e.Suggest(g)}break;default:}g.componentinited=true;g=null};a.initChildren=function(m){m=e.getDom(m);var h=[],g=[],k=[],j,l;if(m.canHaveChildren){h=m.getElementsByTagName("input");g=m.getElementsByTagName("textarea");k=m.getElementsByTagName("select")}else{if(m.tagName=="INPUT"){h=[m]}else{if(m.tagName=="TEXTAREA"){g=[m]}else{if(m.tagName=="SELECT"){k=[m]}else{return}}}}var n,f;for(j=0,len=h.length;j<len;j++){l=h[j];if(e.UI){e.UI.initCtrl(l)}f=l.getAttribute("ztype");if(f){a.initComponent(l,f)}n=l.getAttribute("verify");if(n){a.initComponent(l,"verify")}}for(j=0,len=g.length;j<len;j++){l=g[j];if(e.UI){e.UI.initCtrl(l)}n=l.getAttribute("verify");if(n){a.initComponent(l,"verify")}}for(j=0,len=k.length;j<len;j++){l=k[j];if(e.UI){e.UI.initCtrl(l)}f=l.getAttribute("ztype");if(f){a.initComponent(l,f)}n=l.getAttribute("verify");if(n){a.initComponent(l,"verify")}}l=null};var c={};var b={};e.PluginManager={registerPlugin:function(g,f){b[g]=f;f.ptype=g},createPlugin:function(g,h){var f=b[g.ptype||h];if(f.init){return f}else{return new f(g)}}};e.Page.onReady(function(){a.initChildren(document.body)},1);$(document).on("pageshow",".ui-page",function(f){a.initChildren(f.target)});e.ComponentManager=a;e.compCache=d})();(function(){var a=window.Zving;a.UICompBase=function(c){this.defaultConfig=this.defaultConfig||{dom:{},bubbleEvents:[]};a.mix(this,this.defaultConfig);c=c||{};a.Observable(this);this.addEvents("disable","enable","beforeshow","show","beforehide","hide","beforerender","render","afterrender","beforedestroy","destroy","resize","move");if(a.isElement(c)||typeof c=="string"){c=this.initFromDom(c)||{}}this.initialConfig=this.initialConfig||c;a.mix(this,c);if(c.el){this.el=a.getDom(c.el);if(this.el&&this.el.nodeType){this.ownerDocument=this.el.ownerDocument;this.ownerWindow=this.ownerDocument.parentWindow;this.$el=this.ownerWindow.$(this.el)}else{if(!this.el){window.console&&console.error(this.ctype+"- 找不到参数"+c.el+"对应的页面元素！");console.error(this.ctype+"- 找不到参数"+c.el+"对应的页面元素！");return}}this.id=this.ctype+"_"+a.id(this.el);this.el._components=this.el._components||{};if(this.el._components[this.ctype]==this.id){console.log(this.el,"被多次初始化",this.ctype,"，请检查代码是否会造成错误。");return a.ComponentManager.getById(this.id)}this.el._components[this.ctype]=this.id;if(this.el&&!this.outerEl){this.outerEl=a.getDom(this.el.id+this.outerElIdPostfix);if(!this.outerEl){this.outerEl=this.el}this.$outerEl=this.ownerWindow.$(this.outerEl)}this.rendered=true}this.getId();if(this.statable){a.Statable(this)}a.DataGSetter(this);if(this.plugins){if(a.isArray(this.plugins)){for(var d=0,b=this.plugins.length;d<b;d++){this.plugins[d]=this.initPlugin(this.plugins[d])}}else{this.plugins=this.initPlugin(this.plugins)}}this.initComponent();if(this.renderTo){this.render(this.renderTo);delete this.renderTo}a.ComponentManager.register(this);if(this.autoShow){this.show()}};a.UICompBase.prototype={ctype:"UICompBase",id:null,disabled:false,hidden:false,floating:false,autoShow:false,rendered:false,cls:"",style:null,outerElAttrs:{tag:"div"},outerElIdPostfix:"_outer",disabledClass:"z-disabled",hiddenClass:"z-hidden",renderTpl:'<div id="{id}_body"></div>',contentTpl:null,ctCls:null,baseCls:null,cmpCls:null,statable:false,defaultAlign:"rb",initPlugin:function(b){if(b.ptype&&!a.isFunction(b.init)){b=a.PluginManager.createPlugin(b)}else{if(a.isString(b)){b=a.PluginManager.createPlugin({ptype:b})}}b.init(this);return b},initComponent:function(){if(this.listeners){this.on(this.listeners);delete this.listeners}if(this.bubbleEvents){this.enableBubble(this.bubbleEvents);delete this.bubbleEvents}},initFromDom:function(b){return{el:b}},beforerender:function(){},render:function(c,b){var d=this;if(c){c=a.getDom(c)}this.beforerender();if(this.rendered||this.fireEvent("beforerender",this)===false){return this}if(!c){if(this.el){c=(this.outerEl||this.el).parentNode}else{c=this.container||this.parentEl||document.body}}this.ownerDocument=c.ownerDocument;this.ownerWindow=c.ownerDocument.parentWindow;this.container=this.ownerWindow.Zving.getDom(c);if(this.ctCls){a.Node.addClass(this.container,this.ctCls);delete this.ctCls}this.onRender(this.container,b);this.rendered=true;if(this.autoShow){a.Node.removeClass(this.outerEl,this.hiddenClass)}if(this.cls){a.Node.addClass(this.outerEl,this.cls);delete this.cls}this.fireEvent("render",this);this.initContent();this.afterRender(this.container);this.fireEvent("afterrender",this);if(this.hidden){a.Node.addClass(this.outerEl,this.hiddenClass)}if(this.disabled){this.disable(true)}return this},updateContent:function(c,e,b){var d=this.getContentEl();if(d.innerHTML){this.ownerWindow.jQuery.cleanData(d.getElementsByTagName("*"))}if(this.contentTpl&&typeof c!=="string"){d.innerHTML=a.String.tmpl(this.contentTpl,c||{})}else{var f=a.isObject(c)?a.Dom.createHtml(c):c;a.Node.update(d,f,e,b)}},applyToMarkup:function(b){this.el=a.getDom(b);this.container=(this.outerEl||this.el).parentNode;this.ownerDocument=this.container.ownerDocument;this.ownerWindow=this.ownerDocument.parentWindow;this.$el=this.ownerWindow.$(this.el);this.render(this.container)},onRender:function(d,b){var e=this;var j,f;if(!d){d=this.container||document.body}else{this.ownerDocument=d.ownerDocument;this.ownerWindow=d.ownerDocument.parentWindow}var h=this.ownerDocument,g=this.ownerWindow;if(b!==undefined&&b!==null){if(a.isNumber(b)){b=d.children[b]}else{b=this.ownerWindow.Zving.getDom(b)}}if(!this.el&&this.outerElAttrs){if(this.outerElAttrs){if(typeof this.outerElAttrs=="string"&&!/<|&#?\w+;/.test(this.outerElAttrs)){this.outerEl=h.createElement(this.outerElAttrs)}else{j=h.createElement("div");f=this.initRenderData();var c=typeof this.outerElAttrs=="string"?this.outerElAttrs:a.Dom.createHtml(this.outerElAttrs);j.innerHTML=a.String.tmpl(c,f);this.outerEl=j.firstChild}}}if(this.outerEl){if(b){d.insertBefore(this.outerEl,b)}else{d.appendChild(this.outerEl)}if(j){a.Dom.removeNode(j);j=null}}if(this.renderTpl){f=this.initRenderData();this.outerEl.innerHTML=a.String.tmpl(this.renderTpl,f)}this.el=this.ownerWindow.Zving.getDom(this.getId());if(this.el&&!this.outerEl){this.outerEl=this.el}else{if(!this.el&&this.outerEl){this.el=this.outerEl}}if(!this.el.id){this.el.id=this.getId();this.el._components=this.el._components||{};this.el._components[this.ctype]=this.id}if(this.el!=this.outerEl){if(this.outerElIdPostfix){this.outerEl.id=this.el.id+this.outerElIdPostfix}this.$outerEl=this.ownerWindow.$(this.outerEl);this.$el=this.ownerWindow.$(this.el)}else{this.$outerEl=this.$el=this.ownerWindow.$(this.el)}if(this.baseCls){a.Node.addClass(this.outerEl,this.baseCls)}if(this.cmpCls){a.Node.addClass(this.outerEl,this.cmpCls);delete this.cmpCls}if(this.style){if(typeof this.style=="string"){this.outerEl.style.cssText=this.style}else{a.mix(this.outerEl.style,this.style)}delete this.style}},initContent:function(){var b=this.getContentEl();if(this.html){b.innerHTML=this.html;delete this.html}if(this.contentEl){var c=a.getDom(this.contentEl);a.Node.removeClass(this.hiddenClass);b.appendChild(c)}if(this.contentTpl){b.innerHTML=a.String.tmpl(this.contentTpl,this.contentRenderData||{});delete this.contentRenderData}},afterRender:function(b){if(this.height||this.width){this.setSize(this.width,this.height)}if(this.x!==undefined||this.y!==undefined){this.setPosition(this.x,this.y)}this.initDom()},applyRenderSelectors:function(){var d=this.domSelectors||{},c=this.outerEl,b;for(b in d){if(d.hasOwnProperty(b)){this[b]=$.find(d[b],c)}}},initDom:function(){this.applyRenderSelectors()},onResize:function(){},setSize:function(c,b){if(this.minWidth&&c<this.minWidth){c=this.minWidth}if(this.maxWidth&&c>this.maxWidth){c=this.maxWidth}if(this.minHeight&&b<this.minHeight){b=this.minWidth}if(this.maxHeight&&b>this.maxHeight){b=this.maxHeight}if(!this.rendered){this.width=(c!==undefined)?c:this.width;this.height=(b!==undefined)?b:this.height;return this}a.Node.setSize(this.outerEl,c,b);this.onResize(c,b);this.width=c;this.height=b;this.fireEvent("resize",this,c,b);return this},setPosition:function(b,c){if(!this.rendered){this.x=(b!==undefined)?b:this.x;this.y=(c!==undefined)?c:this.y;return this}a.Node.setPosition(this.outerEl,b,c);this.onPosition(b,c);this.x=b;this.y=c;this.fireEvent("move",this,b,c);return this},onPosition:function(){},getSize:function(){return a.Node.getSize(this.outerEl)},getId:function(){if(!this.id){var c=this.ctype.toLocaleLowerCase().replace(/\./g,"_"),b=a.rootWin.Zving.ComponentManager.idSeed;if(b[c]===undefined){b[c]=0}this.id="z-"+c+"-"+(++b[c])}return this.id},getItemId:function(){return this.itemId||this.getId()},getEl:function(){if(!this.el){this.el=(this.ownerWindow||window).Zving.getDom(this.id)}return this.el},getOuterEl:function(){return this.outerEl||this.el},getTargetEl:function(){return this.target||this.el},getContentEl:function(){return this.ownerWindow.Zving.getDom(this.id+"_body")||this.el},getBodyEl:function(){return this.ownerWindow.Zving.getDom(this.id+"_body")||this.el},getContainerEl:function(){return this.container||this.parentEl||(this.outerEl||this.el).parentNode},getOwnerCt:function(){return this.ownerCt},initRenderData:function(){this.renderData=this.renderData||{};return a.mixIf(this.renderData,{id:this.id,baseCls:this.baseCls,cmpCls:this.cmpCls,cls:this.cls})},focus:function(d,c){if(c){this.focusTask=new a.Util.DelayedTask(this.focus,this,[d,false]);this.focusTask.delay(a.isNumber(c)?c:16);return}if(this.rendered&&!this.isDestroyed){var b=this.getFocusEl?this.getFocusEl():this.el;if(Node.needsTabIndex(b)){b.tabIndex=-1}try{b.focus();if(d===true){b.select()}}catch(f){console.error(f)}}return this},blur:function(){if(this.rendered){var b=this.getFocusEl?this.getFocusEl():this.el;b.blur()}return this},disable:function(b){if(this.rendered){a.Node.addClass(this.outerEl,this.disabledClass);a.Node.disable(this.outerEl,this.maskOnDisable?true:false);this.outerEl.disabled=true}this.disabled=true;if(b!==true){this.fireEvent("disable",this)}return this},enable:function(b){if(this.rendered){a.Node.removeClass(this.outerEl,this.disabledClass);this.outerEl.disabled=false}this.disabled=false;if(b!==true){this.fireEvent("enable",this)}return this},isDisabled:function(){return this.disabled},setDisabled:function(b){return this[b?"disable":"enable"]()},show:function(){var b=this;if(this.fireEvent("beforeshow",this)===false){return this}this.hidden=false;if(this.autoRender){this.render(a.isBoolean(this.autoRender)?(document.body||document.documentElement):this.autoRender)}if(this.rendered){a.Node.removeClass(this.outerEl,this.hiddenClass);if(this.outerEl.currentStyle.display=="none"){a.Node.show(this.outerEl)}if(this.outerEl.currentStyle.visibility=="hidden"){this.outerEl.style.visibility=""}b.onShow.apply(b,arguments)}this.fireEvent("show",this);return this},onShow:a.noopFn,hide:function(){var b=this;if(this.fireEvent("beforehide",this)===false){return this}this.hidden=true;if(this.rendered){a.Node.addClass(this.outerEl,this.hiddenClass);if(this.outerEl.currentStyle.display!="none"){a.Node.hide(this.outerEl)}b.onHide.apply(b,arguments)}this.fireEvent("hide",this);return this},onHide:a.noopFn,setVisible:function(b){return this[b?"show":"hide"]()},isHidden:function(){return this.hidden},isVisible:function(){return this.rendered&&a.Node.isVisible(this.outerEl)},addClass:function(b){if(this.outerEl){a.Node.addClass(this.outerEl,b)}else{this.cls=this.cls?this.cls+" "+b:b}},removeClass:function(b){if(this.outerEl){a.Node.removeClass(this.outerEl,b)}else{if(this.cls){this.cls=this.cls.split(" ").remove(b).join(" ")}}return this},cloneConfig:function(c){c=c||{};var d=c.id||this.ctype+"_"+a.id();var b=a.mix(c,this.initialConfig);b.id=d;return b},findParentBy:function(b){var c=this.ownerCt;while(c&&!b(c,this)){c=c.ownerCt}return c||null},findParentByType:function(b){return a.isFunction(b)?this.findParentBy(function(c){return c.constructor===ctype}):this.findParentBy(function(c){return c.constructor.ctype===ctype})},clearListeners:function(){var c=this.events,d;for(var b in c){if(c.hasOwnProperty(b)){d=c[b];if(d.isEvent){d.clearListeners()}}}},getBubbleTarget:function(){return this.ownerCt},isFloating:function(){return this.floating},isDraggable:function(){return !!this.draggable},isDroppable:function(){return !!this.droppable},destroy:function(f){if(this.isDestroyed===true){return}if(this.fireEvent("beforedestroy",this)===false){return}this.destroying=true;if(this.beforeDestroy){this.beforeDestroy()}if(this.ownerCt&&this.ownerCt.remove){this.ownerCt.remove(this,false);delete this.ownerCt}if(this.focusTask&&this.focusTask.cancel){this.focusTask.cancel()}if(this.onDestroy){this.onDestroy()}a.ComponentManager.unregister(this.id);this.fireEvent("destroy",this);if(this.clearListeners){this.clearListeners()}if(this.$el){this.ownerWindow.jQuery.cleanData(this.$el)}if(this.el&&(this.el.onclick||this.el.ondblclick)){this.el.onclick=this.el.ondblclick=null}if(this.$outerEl){this.ownerWindow.jQuery.cleanData(this.$outerEl)}if(this.outerEl&&(this.outerEl.onclick||this.outerEl.ondblclick)){this.outerEl.onclick=this.outerEl.ondblclick=null}var c;for(var d in this.dom){c=this.dom[d];if(c&&(c.nodeName||c.length)){a.getDom(c).ownerDocument.parentWindow.jQuery.cleanData(typeof c.length=="number"?c:[c])}}c=null;if(this.rendered&&this.el&&this.el.ownerDocument){var b=this.el.ownerDocument.parentWindow.Zving;if(b&&(f||this.removeDomOnDestroy)){b.Dom.removeNode(this.outerEl)}}if(this.deleteMembers){this.deleteMembers("parentEl","container","autoRender","defaultConfig","dom","el","$el","outerEl","$outerEl","targetEl","events","initialConfig","ownerDocument","ownerWindow","_parent")}this.destroying=false;this.isDestroyed=true},deleteMembers:function(){var c=arguments;for(var d=0,b=c.length;d<b;++d){delete this[c[d]]}},beforeDestroy:function(){},onDestroy:function(){}}})();
  /*! Layer */
  (function(){var a=window.Zving;a.Layer=function(b){b=b||{};if(b.tagName||typeof b=="string"){b={el:b}}a.mix(this,b,{ctype:"Layer",id:"z-layer"+(++a.idSeed._seed)});var d=b.parentEl||b.renderTo||document.body;if(this.el){this.ownerDocument=this.el.ownerDocument;this.ownerWindow=this.el.ownerDocument.parentWindow}else{this.ownerDocument=d.ownerDocument;this.ownerWindow=d.ownerDocument.parentWindow;var c=this.ownerDocument.createElement("div");c.className="z-layer";c=d.appendChild(c);this.el=c}this.dom={};this.$el=this.ownerWindow.$(this.el);if(this.cls){this.el.className+=" "+this.cls}this.constrain=b.constrain!==false;this.el.style.zIndex=b.zIndex||this.getZIndex();this.el.style.position="absolute";this.$el.hide()};a.Layer.prototype={ctype:"Layer",zIndex:11000,defaultAlign:"lb",getZIndex:function(){return this.zIndex||parseInt((this.getShim()||this.el).currentStyle.zIndex,10)||11000},getShim:function(){if(!this.useShim){return null}if(this.shim){return this.shim}},remove:function(){this.destroy(true)},constrainXY:function(){if(this.constrain){var m=a.Dom.getViewport(this.ownerWindow),j=m.width,d=m.height;var n=Math.max(this.ownerDocument.documentElement.scrollTop,this.ownerDocument.body.scrollTop);var c=Math.max(this.ownerDocument.documentElement.scrollLeft,this.ownerDocument.body.scrollLeft);var p=this.$el.offset();var k=p.x,g=p.y;var b=this.shadowOffset||0;var l=this.el.offsetWidth+b,e=this.el.offsetHeight+b;var f=false;if((k+l)>j+c){k=j-l-b;f=true}if((g+e)>d+n){g=d-e-b;f=true}if(k<c){k=c;f=true}if(g<n){g=n;f=true}if(f){if(this.avoidY){var o=this.avoidY;if(g<=o&&(g+e)>=o){g=o-e-5}}p=[k,g];this.storeXY(p);a.Node.setPosition(this.el,p)}}return this},alignTo:function(c,g,e){var d=this;var f=a.Node.anchorPos(this.el,c,g||this.defaultAlign,this.reAlign,this.defaultOffsets,true);if(this.ownerWindow!=window){var b=a.Dom.getFrameOffset();f.x+=b.left;f.y+=b.top}a.Node.setPosition(this.el,f)},setSize:function(c,b){this.width=(c!==undefined)?c:this.width;this.height=(b!==undefined)?b:this.height;a.Node.setSize(this.el,c,b);this.width=c;this.height=b},show:function(){this.hidden=false;if(this.el.currentStyle.display=="none"){this.el.style.display="block"}if(this.el.currentStyle.visibility=="hidden"){this.el.style.visibility=""}},hide:function(){this.hidden=true;if(this.el.currentStyle.display!="none"){this.el.style.display="none"}},isVisible:function(){return a.Node.isVisible(this.el)},storeXY:function(b){delete this.lastLT;this.lastXY=b},destroy:function(b){jQuery.cleanData(this.$el);if(!b){a.Dom.removeNode(this.el)}var c;for(var d in this.dom){c=this.dom[d];if(c&&(c.nodeName||c.length)){this.ownerWindow.jQuery.cleanData(typeof c.length=="number"?c:[c])}}delete this.el;delete this.$el;delete this.parentEl;delete this.ownerDocument;delete this.ownerWindow}}})();
  /*! Tip */
  (function(){var c=window.Zving,b=c.Page;function a(j,e){var h,d,f,g;if(typeof e=="object"){f=e.clock;d=e.autoClose;g=e.theme;h=e.msg}else{h=e}this.message=h;this.autoClose=d||false;this.clock=f||9;this.theme=g||"";this.targetEl=c.getDom(j);this.$targetEl=$(this.targetEl);this.id=this.ctype+"_"+c.id(this.targetEl);this.targetEl._components=this.targetEl._components||{};this.targetEl._components[this.ctype]=this.id;this.$targetEl.data("Tip",this);this.initHtml();c.ComponentManager.register(this)}a.AutoCloseTips=[];a.prototype={ctype:"Tip",initHtml:function(){var d=[];d.push('<div class="bodycontent">'+this.message+"</div>");d.push('<div class="tooltipfang"><span class="fang fangbg">◆</span><span class="fang fangfg">◆</span></div>');this.html=d.join("")},setMessage:function(d){this.message=d;this.initHtml();if(this.el){$(".bodycontent",this.el).html(d)}},show:function(f){var n=this;var k;if(f){n.setMessage(f)}if(!this.el||!this.el.parentNode){var d=document.createElement("div");d.id="comp_tip"+(++c.idSeed._seed);d.style.position="absolute";d.style.left="0px";d.style.top="0px";var j=[document.body];k=this.targetEl.parentNode;while(k&&k.tagName){if(k.tagName=="DIV"&&k.currentStyle.position!="static"&&(k.className.indexOf("ui-page")!==-1||k.currentStyle.overflowY=="auto"||k.currentStyle.overflow=="auto")){j.push(k);if(k.className.indexOf("ui-page")!==-1){break}}if(k.tagName=="BODY"){break}k=k.parentNode}k=j[j.length-1];k.appendChild(d);d.className="z-tooltip"+(this.theme?" tip_"+this.theme:"")+" tooltip-callout"+this.clock;d.innerHTML=this.html;this.el=d}else{k=this.el.parentNode}var h=$(k).offset();var e=this.$targetEl.offset();e.left=e.left-h.left+(k.tagName=="BODY"?0:k.scrollLeft);e.top=e.top-h.top+(k.tagName=="BODY"?0:k.scrollTop);var g=c.Node.getSize(this.targetEl);if(this.targetEl.getAttribute("ztype")&&/date|time/i.test(this.targetEl.getAttribute("ztype"))&&this.targetEl.nextSibling){var l=c.Node.getSize(this.targetEl.nextSibling);g.width+=l.width}c.Node.show(this.el);var r=c.Node.getSize(this.el);var q=$window.width();if(q-e.left-g.width<100){this.clock=3;if(e.left<60){this.clock=5}}var m=this.clock;var p,o;if(m==2||m==3||m==4){p=e.left-r.width}if(m==8||m==9||m==10){p=e.left+g.width}if(m==6||m==7||m==11||m==12){p=e.left}if(m==11||m==12||m==1){o=e.top+g.height}if(m==5||m==6||m==7){o=e.top-r.height}if(m==5||m==1){p=e.left+g.width-r.width}if(m==9||m==3){o=e.top+g.height/2-r.height/2}this.el.className="z-tooltip"+(this.theme?" tip_"+this.theme:"")+" tooltip-callout"+this.clock;this.el.style.left=Math.round(p)+"px";this.el.style.top=Math.round(o)+"px";this.el.style.zIndex=100000;if(c.isFirefox){c.Node.hide(n.el);setTimeout(function(){c.Node.show(n.el)},100)}if(this.autoClose){a.AutoCloseTips.push(this)}},hide:function(){if(this.el){c.Node.hide(this.el)}},close:function(){if(this.el){this.el.outerHTML="";this.el=null}},destroy:function(){jQuery.cleanData(this.$targetEl);this.targetEl.onmouseout=this.targetEl.onmouseover=this.targetEl.onclick=null;c.ComponentManager.unregister(this)}};a.show=function(h,e){h=c.getDom(h);if(!h){return}var l,d,f,j;if(typeof e=="string"){e={msg:e}}var k=$(h);if(!c.Node.isVisible(h)){window.console&&console.log((h.id?"id为"+h.id:"")+(h.name?" name为"+h.name:"")+"的页面元素处于隐藏状态，Tip无法显示");return}var g;if(k.data("Tip")){g=k.data("Tip")}else{g=new a(h,e)}g.autoClose=d;if(f){g.clock=f}g.show();if(g.el.style.left=="0px"){setTimeout(function(){g.close();g.show()},200)}if(!g.autoClose){if(!h._Tips){h._Tips=[]}h._Tips.push(g)}return g};a.getTipCount=function(d){d=c.getDom(d);if(!d._Tips){return 0}return d._Tips.length};a.close=function(e){e=c.getDom(e);if(e._Tips){for(var d=0;d<e._Tips.length;d++){if(e._Tips[d]){e._Tips[d].close()}}e._Tips=[]}};a.closeAll=function(){var d=a.AutoCloseTips;for(var e=d.length;e>0;e--){d[e-1].close();d.splice(e-1,1)}};$document.on("mousedown.tip",a.closeAll);$window.on("unload",function(){$document.off("mousedown.tip")});c.Tip=a})();
  /*! MsgPop */
  (function(){var f=window.Zving,c=f.isIE,a=f.isGecko,b=f.Page,d=f.Lang;var e=function(n,k,p,h,g){if(!(this instanceof e)){return new e(n,k,p,h,g)}if(!n){return}var o=f.rootWin;var j="z-"+this.ctype+(++f.idSeed._seed);var l=n.length;var m=this;m.id=j;m.width=h?h:(l<100?240:250+Math.floor(l/3));m.height=p?p:100;m.top=0;m.onLoad=null;m.title="";m.url=k?k:null;m.message=n?n:null;m.icon=null;m.timeout=g||3;m.autoShow=true;setTimeout(function(){if(m.autoShow){m.show()}},10)};e._Array=[];e.TOP=0;e.prototype.ctype="MsgPop";e.prototype.show=function(){var k=f.rootWin;var l=k.document;if(!this.parentWindow){this.parentWindow=window}var h=[];h.push('<div class="bodycontent" style="width:'+this.width+'px;">');h.push('<a href="javascript:void(0);" class="closebtn" onclick="MsgPop.close(\''+this.id+'\');"><span class="circle">●</span><span class="fork">×</span></a>');if(this.url){if(this.url.indexOf(":")==-1){h.push('<iframe src="'+f.CONTEXTPATH+this.url+'" ')}else{h.push('<iframe src="'+this.url+'" ')}h.push(' id="_MsgPopFrame_'+this.id+'" boxId="'+this.id+'" allowTransparency="true"  width="100%" height="'+this.height+'" frameborder="0" style="background-color: #transparent; border:none;"></iframe>')}else{h.push(this.message)}h.push("</div>");this.Html=h.join("");var g=k.Zving.$G("_MsgPopBoxDiv");if(!g){g=k.document.createElement("div");g.id="_MsgPopBoxDiv";g.style.cssText="position:fixed; left:50%; top:0; width:1%; height:1px; overflow:visible; z-index:10200;";if(isIE6){g.style.position="absolute"}k.document.body.appendChild(g)}if(e.TOP){g.style.top=e.TOP+"px"}this.MsgPopBoxDiv=g;var j=k.document.createElement("div");j.id=this.id;j.innerHTML=this.Html;j.className="squares msgpop";j.style.width=this.width+40+"px";g.appendChild(j);j.style.marginLeft=-j.clientWidth/2+"px";j.MsgPopInstance=this;k.MsgPop._Array.push(this.id);var m={height:Node.getSize(j).height};j.style.height="1px";j.style.width=j.firstChild.offsetWidth+"px";if(k.location.href.indexOf("/application.")==-1&&k.MsgPop._Array.length==1){m.marginTop=33}$(j).animate(m);j.style.visibility="";if(this.timeout&&this.timeout>0){e.autoClose(this.id,this.timeout)}};e.prototype.close=function(){var g=f.rootWin;this.MsgPopBoxDiv.outerHTML="";g.MsgPop._Array.remove(this.id);g=this.onLoad=this.parentWindow=this.message=null};e.getInstance=function(j){var h=f.rootWin;var g=h.Zving.$G(j);if(!g){return null}return g.MsgPopInstance};e.autoClose=function(j,h){var g=f.rootWin;if(!g.Zving.$G(j)){return}h-=1;if(e.countdown){g.Zving.$G(j+"CloseTip").innerHTML=d.get("MsgPop.Countdown").format(h)}if(h<=0){e.close(j,true)}else{e._closeHand=setTimeout(function(){e.autoClose(j,h)},1000)}};e.close=function(k,h){var g=f.rootWin;var j=function(){f.rootWin.$("#"+k).remove();f.rootWin.Zving.MsgPop._Array.remove(k);j=null};if(h){f.rootWin.$("#"+k).fadeOut("slow",j)}else{j()}};e.closeSelf=function(){if(window!=window.parent){var g=window.frameElement.getAttribute("boxId");if(g){parent.MsgPop.close(g)}}else{if(e._Array.length>0){var h=e._Array[e._Array.length-1];e.close(h)}}};if(f.rootWin!=window){e=f.rootWin.MsgPop}f.MsgPop=e})();
  /*! Verify */
  (function(){var g=window.Zving,f=g.Node.getValue,b=g.Tip,d=g.Lang,e={};var c=undefined;var a=function(){if(c!==undefined){return c}if($.event&&$.event.special.bsTransitionEnd){c=true;return true}var h=$('<span class="form-control-feedback"></span>').appendTo(document.body);if(h.css("position")=="absolute"){c=true;h.remove();return true}c=false;h.remove();return false};e.autoCloseOther=function(h,j){if(!j){j=h.target||h.srcElement}};e.getErrors=function(y,j){var m=[];var x=false;var l=j.split("&&");for(var n=0;n<l.length;n++){var o=l[n].split("|");var h="";var w;if(o.length==2){h=o[0];w=o[1]}else{w=l[n]}if(!w){continue}var p="=";if(w.indexOf("=")<0){if(w.indexOf(">")>0){p=">"}else{if(w.indexOf("<")>0){p="<"}}}else{if(w.charAt(w.indexOf("=")-1)==">"){p=">="}else{if(w.charAt(w.indexOf("=")-1)=="<"){p="<="}}}var r=null;var A=null;var u;if(w.indexOf(p)>0){r=w.substring(0,w.indexOf(p));A=w.substring(w.indexOf(p)+p.length)}else{r=w}if(r=="Any"){x=true}else{if(r=="Regex"){A=w.substring(6);if(y===null||y===""||!A){continue}var k=A;if(!k.startsWith("^")){k="^"+k}if(!k.endsWith("$")){k+="$"}if(!new RegExp(k).test(y)){m.push(h)}}else{if(r=="Script"){if(!A){continue}if(!new Function("value","return "+A+";")(y)){m.push(h)}}else{if(r=="NotNull"){if(y===null||y===""){m.push(h+d.get("Verify.NotNull"))}}else{if(r=="Number"){if(y===null||y===""){continue}if(!g.String.isNumber(y)){m.push(h+d.get("Verify.MustBe")+d.get("Verify.Number"))}}else{if(r=="Time"){if(y===null||y===""){continue}if(!g.String.isTime(y)){m.push(y+d.get("Verify.NotRight")+d.get("Verify.Time"))}}else{if(r=="Int"){if(y===null||y===""){continue}if(!g.String.isInt(y)){m.push(h+d.get("Verify.MustBe")+d.get("Verify.Int"))}}else{if(r=="Date"){if(y===null||y===""){continue}if(!g.String.isDate(y)){m.push(h+d.get("Verify.MustBeRight")+d.get("Verify.Date"))}}else{if(r=="Time"){if(y===null||y===""){continue}if(!g.String.isTime(y)){m.push(h+d.get("Verify.MustBeRight")+d.get("Verify.Time"))}}else{if(r=="DateTime"){if(y===null||y===""){continue}if(!g.String.isDateTime(y)){m.push(h+d.get("Verify.MustBeRight")+d.get("Verify.DateTime"))}}else{if(r=="Email"){if(y===null||y===""){continue}u=/^\w+([\-+.]\w+)*@\w+([\-.]\w+)*\.\w+([\-.]\w+)*$/;if(y&&y.match(u)==null){m.push(h+d.get("Verify.NotRight")+d.get("Verify.Email"))}}else{if(r=="ZipCode"){if(y===null||y===""){continue}u=/^[0-9]\d{5}(?!\d)$/;if(y&&y.match(u)==null){m.push(h+d.get("Verify.NotRight")+d.get("Verify.Zip"))}}else{if(r=="CnTel"){if(y===null||y===""){continue}u=/^\d{3}-\d{8}|\d{4}-\d{7}$/;if(y&&y.match(u)==null){m.push(h+d.get("Verify.NotRight")+d.get("Verify.FixedTelNumber"))}}else{if(r=="CnPhone"){if(y===null||y===""){continue}pattern1=/^\d{3,4}-\d{7,8}$/;pattern2=/^\d{11}$/;if(y&&y.match(pattern1)==null&&y.match(pattern2)==null){m.push(h+d.get("Verify.NotRight")+d.get("Verify.TelNumber"))}}else{if(r=="CnMobile"){if(y===null||y===""){continue}u=/^\d{11}$/;if(y&&y.match(u)==null){m.push(h+d.get("Verify.NotRight")+d.get("Verify.MobileNumber"))}}else{if(r=="IDCardNo"){if(y===null||y===""){continue}if(!e.isIDCardNo(y)){m.push(h+d.get("Verify.NotRight")+d.get("Verify.IDNumber"))}}else{if(r=="Length"){if(y===null||y===""){continue}if(isNaN(A)){m.push(d.get("Verify.RuleError")+d.get("Verify.BackOfLength")+d.get("Verify.Number"))}else{try{var q=parseInt(A,10);if(p=="="&&y.length!=q){m.push(h+d.get("Verify.Length")+d.get("Verify.MustBe")+q+d.get("Verify.char"))}else{if(p==">"&&y.length<=q){m.push(h+d.get("Verify.Length")+d.get("Verify.MustGreaterThan")+q+d.get("Verify.char"))}else{if(p==">="&&y.length<q){m.push(h+d.get("Verify.Length")+d.get("Verify.MustEqualOrGreaterThan")+q+d.get("Verify.char"))}else{if(p=="<"&&y.length>=q){m.push(h+d.get("Verify.Length")+d.get("Verify.MustLessThan")+q+d.get("Verify.char"))}else{if(p=="<="&&y.length>q){m.push(h+d.get("Verify.Length")+d.get("Verify.MustEqualOrLessThan")+q+d.get("Verify.char"))}}}}}}catch(t){m.push(d.get("Verify.RuleError")+d.get("Verify.BackOfLength")+d.get("Verify.Int")+t.message)}}}}}}}}}}}}}}}}}}}}return m};e.checkOne=function(w,x){if(!x){x=w.target||w.srcElement}if(x.disabled==true||!Node.isVisible(x)){if(a()){var u=$(x).closest(".form-group");if(u.length>0){u.removeClass("has-error");u.find(".verify-message").hide()}}e.closeTip(null,x);return}if(x._verifyFor){x=x._verifyFor}var q=$(x);var j=x.getAttribute("verify");if(!j){e.closeTip(null,x);return}var m=x.getAttribute("condition");if(m&&!new Function("elem","return "+m+";")(x)){e.closeTip(null,x);return}var t=f(x);if(x.type=="radio"||x.type=="checkbox"){if(x.name){t=$NV(x.name)}}if(t){t=(""+t).trim().replace(/\xa0/g,"\x20")}var k=e.getErrors(t,j);if(q.attr("hasVerifyError")){k.push(q.attr("verifyMessage"))}if(k.length>0){var n=k.join("<br>");e.closeTip(null,x);var r;x._VerifyMsg=n;x._VerifyHasErr=true;if(a()){n="<li>"+k.join("</li><li>")+"</li>";var u=q.closest(".form-group");if(u.length>0){u.addClass("has-error");u.find(".verify-message").html(n);u.find(".verify-message").show();u.find(".verify-success").hide();return}}if(g.Node.isVisible(x)){if(!q.data("Tip")){var h=$(x).data("showTipAfter");if(h){r=new g.Tip(g.getDom(h),{msg:n,theme:"notice"})}else{r=new g.Tip(x,{msg:n,theme:"notice"})}r.AutoClose=true;q.data("Tip",r)}q.data("Tip").setMessage(n);q.data("Tip").show()}else{var o=$(x).closest("div.ui-page");var p=$("a.z-tab");var l=o.attr("data-url");if(o.length&&p.length&&l){p.each(function(){if(this.getAttribute("data-href")){var y=this,B=$(y);if(l.indexOf(y.getAttribute("data-href").replace(/^(\.\.\/)+/,""))!=-1){if(!B.data("Tip")){var A=new g.Tip(y,{msg:d.get("Verify.TabPageHasError"),theme:"notice"});A.AutoClose=true;A.Clock=9;B.data("Tip",A)}setTimeout(function(){B.data("Tip").setMessage(n);B.data("Tip").show()},200);return}}})}if(!p.length){MsgPop(d.get("Verify.HiddenElemHasError"))}}return true}else{x._VerifyHasErr=x._VerifyMsg=null;if((x.type=="radio"||x.type=="checkbox")&&x.name){$N(x.name).each(function(y){e.closeTip(null,y)})}else{e.closeTip(null,x)}if(a()){var u=q.closest(".form-group");if(u.length>0){u.removeClass("has-error");u.find(".verify-message").hide();u.find(".verify-mandatory").hide();if(t){u.addClass("has-success");u.find(".verify-success").show()}}}}};e.closeTip=function(h,j){if(!j){j=h.target||h.srcElement}if(j.type=="blur"){j=j.target||j.srcElement}if(j._verifyFor){j=j._verifyFor}if($(j).data("Tip")){$(j).data("Tip").hide();j._VerifyMsg=null;j._VerifyHasErr=null}};e.closeAllTip=function(j){j=g.getDom(j||document.body);var h;j=g.getDom(j||document.body);h=$("input,textarea,select",j);h.each(function(){e.closeTip(null,this)})};e.hasError=function(o,n,h){var k;n=g.getDom(n||document.body);if("INPUT,TEXTAREA,SELECT".indexOf(n.tagName)!=-1){k=$(n)}else{k=$("input,textarea,select",n)}if(o){if(typeof o!="string"){window.console&&console.error("传入Verify.hasError的第一个参数应该为一个元素选择器字符串");return}k=k.not(o);$(o).each(function(){e.closeTip(null,this)})}var m=false;for(var j=0;j<k.length;j++){var l=k[j];e.checkOne(null,l);if(!m&&l.getAttribute("verify")&&l._VerifyHasErr){m=l}}if(m){if(h===true){try{m.focus()}catch(p){}}else{Dialog.alert(d.get("Verify.HasError"),function(){try{m.focus()}catch(q){}})}return true}return false};e.check=function(h){return e.hasError(null,h,true)};e._cache={};e.initCtrl=function(m){ele=g.getDom(typeof m=="string"?m:m.id||m);var j=ele.getAttribute("verify");var h;if(j){h=ele.getAttribute("ztype");if(h){h=h.toLowerCase()}var u;if(h&&h=="select"){u=Node.nextElement(ele);u._verifyFor=ele}else{u=ele}var t=$(u);t.on("focus",e.checkOne);t.on("focus",e.autoCloseOther);t.on("keyup",e.checkOne);t.on("change",e.checkOne);t.on("blur",e.closeTip);if(!g.isIE){$(ele).on("input",e.checkOne,false)}var l=ele.getAttribute("condition");if(h=="select"){ele=$(ele).closest("div")[0]}if(/^date|time|Number$/i.test(h)){var k=g.getDom(ele.id||ele).nextSibling;if(k&&k.tagName=="IMG"){ele=k}}if(ele.type=="radio"||ele.type=="checkbox"){if(ele.name){var n=g.$N(ele.name);ele=n[n.length-1];n.each(function(w){$(w).data("showTipAfter",ele)})}return}if(ele.getAttribute("showtipafter")){$(ele).data("showTipAfter",$(ele.getAttribute("showtipafter"))[0])}if(!ele.nextSibling||!ele.nextSibling.getAttribute||ele.nextSibling.getAttribute("ztype")!="Verify"){var r="";if(!g.Node.isVisible(ele)&&g.Node.isVisible(ele.parentNode)){r="display:none"}if(j.indexOf("NotNull")<0){r="display:none"}if(!a()){var o="<span style='color:red;padding-left:2px;"+r+"' ztype='Verify'>*</span>";ele.insertAdjacentHTML("afterEnd",o)}else{var o="<span class='verify-success form-control-feedback' style='display:none' aria-hidden='true'><span class='fa fa-check-circle'></span></span>";o+="<span class='verify-mandatory form-control-feedback' style='color:red;"+r+"' ztype='Verify'>*</span>";o+="<span class='verify-message help-block text-left' style='display:none'></span>";var q=$(ele);if(q.parent().hasClass("input-group")){q=q.parent();if(q.find(".input-group-addon").length>1){q=q.find(".input-group-addon")}}q.after(o);var p=$(ele).closest(".form-group");p.addClass("has-feedback");p.parent().find(".form-group").css("vertical-align","top")}}}};e.getBirthDateFromIDCardNo=function(h){if(h==null){return null}if(h.length==15){return"19"+h.substring(6,8)+"-"+h.substring(8,10)+"-"+h.substring(10,12)}if(h.length==18){return h.substring(6,10)+"-"+h.substring(10,12)+"-"+h.substring(12,14)}return null};e.getGenderFromIDCardNo=function(h){if(h==null){return null}if(h.length==15){return"13579".indexOf(h.substring(14,15))!=-1?"M":"F"}if(h.length==18){return"13579".indexOf(h.substring(16,17))!=-1?"M":"F"}return null};e.isIDCardNo=function(p){if(!p){return false}p=p.toLowerCase();if(p.length!=15&&p.length!=18){return false}var o,h,n;if(p.length==15){o=parseInt("19"+p.substring(6,8),10);h=parseInt(p.substring(8,10),10);n=parseInt(p.substring(10,12),10)}else{if(p.length==18){if(p.indexOf("x")>=0&&p.indexOf("x")!=17){return false}var k;var l=p.charAt(0)*7+p.charAt(1)*9+p.charAt(2)*10+p.charAt(3)*5+p.charAt(4)*8+p.charAt(5)*4+p.charAt(6)*2+p.charAt(7)*1+p.charAt(8)*6+p.charAt(9)*3+p.charAt(10)*7+p.charAt(11)*9+p.charAt(12)*10+p.charAt(13)*5+p.charAt(14)*8+p.charAt(15)*4+p.charAt(16)*2;l=l%11;switch(l){case 0:k="1";break;case 1:k="0";break;case 2:k="x";break;case 3:k="9";break;case 4:k="8";break;case 5:k="7";break;case 6:k="6";break;case 7:k="5";break;case 8:k="4";break;case 9:k="3";break;case 10:k="2";break}if(p.charAt(17)!=k){return false}o=parseInt(p.substring(6,10),10);h=parseInt(p.substring(10,12),10);n=parseInt(p.substring(12,14),10)}}var j=new Date().getFullYear();if(!o||o>j||o<1870){return false}if(!h||h<1||h>12){return false}if(!n||n<1||n>31){return false}return true};g.Verify=e})();
  /*! Dialog */
  (function(){var g=window.Zving,d=g.isIE,c=g.Page,e=g.Lang,b;var f=g.Cookie.get("zcms_skin");if(f&&f!="zvingflat"){g.importCss("resources/dialogskins/"+f.toLowerCase()+"/default.css")}b=function(h){this.defaultConfig={okText:e.get("Common.OK"),cancelText:e.get("Common.Cancel"),buttons:[],autoRender:g.rootDoc.body};if(!(this instanceof b)){return g.ComponentManager.getByDom(g.getDom(h),"Dialog")}if(h&&h.id&&b.list[h.id]){window.console&&console.warn("id为 "+h.id+" 的dialog已存在。");return b.list[h.id]}if(typeof h=="string"){if(arguments.length==4){h={title:arguments[0],url:arguments[1],width:arguments[2],height:arguments[3]}}else{if(/^https?:\/\/|^[a-z]+\:|\w+\.\w+((\?[\w=&+]*)*(#[\w=&+]*)*)$/.test(h)){h={url:h}}else{if(/^\w+\d*$/.test(h)){h={id:h}}else{h={html:h}}}}}b.superclass.constructor.call(this,h)};b.disableTimeout=2000;b.isHideScrollbar=false;b.isPreventScroll=true;var a="aui";b.htmlTemplate='<div class="{clsPrefix}_outer"><table class="{clsPrefix}_border"><tbody><tr><td class="{clsPrefix}_nw"></td><td class="{clsPrefix}_n"></td><td class="{clsPrefix}_ne"></td></tr><tr><td class="{clsPrefix}_w"></td><td class="{clsPrefix}_c"><div class="{clsPrefix}_inner"><table class="{clsPrefix}_dialog"><tbody><tr><td class="{clsPrefix}_header"><div class="{clsPrefix}_titleBar"><div class="{clsPrefix}_title"></div><a class="{clsPrefix}_close" href="javascript:/*close*/;">\xd7</a></div></td></tr><tr><td style="padding:0;"><div class="{clsPrefix}_icon"><div class="{clsPrefix}_iconBg"></div></div><div class="{clsPrefix}_main"><div class="{clsPrefix}_content"></div></div></td></tr><tr><td class="{clsPrefix}_footer"><div class="{clsPrefix}_buttons"></div></td></tr></tbody></table></div></td><td class="{clsPrefix}_e"></td></tr><tr><td class="{clsPrefix}_sw"></td><td class="{clsPrefix}_s"></td><td class="{clsPrefix}_se"></td></tr></tbody></table></div>';b.htmlTemplate=b.htmlTemplate.replace(/\{clsPrefix\}/g,a);b.buttonTemplate='<button class="z-dlg-button {cls}" id="{id}" onclick="{fn}">{text}</button>';g.Class.extend(b,g.UICompBase,{id:null,ctype:"Dialog",baseCls:"z-dialog",url:"",title:"",width:null,height:null,minWidth:200,minHeight:60,top:"50%",left:"50%",onOk:null,onCancel:null,okText:e.get("Common.OK"),cancelText:e.get("Common.Cancel"),OKClass:"z-dialog-okbutton",cancelClass:"z-dialog-cancelbutton",onInit:null,onReady:null,onLoad:null,onClose:null,iconDataURL:null,message:"",showButtonRow:true,animator:true,resizable:false,modal:true,animateTarget:null,follow:null,followEl:null,closable:true,draggable:true,esc:true,autoClose:null,closeTip:"? 秒后自动关闭",padding:"20px 25px",html:'<div class="'+a+'_loading"><span>loading..</span></div>',zIndex:10100,fixed:!g.isMobile&&!g.isIE6,renderTpl:b.htmlTemplate,bottonTpl:b.buttonTemplate,highlightButtonCls:a+"_state_highlight",hidden:true,removeDomOnDestroy:true,autoShow:false,contentElClass:a+"_content",initComponent:function(){this.addEvents("move","beforeresize","activate","deactivate","beforeclose","close","afterclose");b.superclass.initComponent.apply(this);this.buttons=this.buttons||[];if(this.hidden===false){this.hidden=true;this.show()}this.opener=window;if(this.url){window.$D=this}},onRender:function(n,k){this.beforeRender();this.dom=this.dom||{};b.superclass.onRender.call(this,n,k);this.$el.css("position",this.fixed?"fixed":"absolute");var o=this.ownerWindow.Zving.getDom("z-dialog-proxy");if(!o){o=g.Dom.createNode({id:"z-dialog-proxy",className:"z-dlg-proxy"},this.ownerDocument);this.ownerDocument.body.appendChild(o)}this.proxy=this.ownerWindow.Zving.getDom(o);this.$proxy=this.ownerWindow.$(o);if(this.modal){var m=this.ownerWindow.Zving.getDom("_DialogShim");if(!m){m=this.ownerWindow.Zving.Dom.createNode({id:"_DialogShim",cls:"z-dlg-shim "+a+"_state_lock"},this.ownerDocument);this.ownerDocument.body.appendChild(m);if(g.isIE6){var l="Math.max(document.documentElement.scrollLeft, document.body.scrollLeft)",j="Math.max(document.documentElement.scrollTop, document.body.scrollTop)",h="(document.documentElement)";m.style.position="absolute";m.style.setExpression("left","eval("+l+') + "px"');m.style.setExpression("top","eval("+j+') + "px"')}else{m.style.position="fixed"}m.style.position=this.fixed?"fixed":"absolute"}this.shim=this.ownerWindow.Zving.getDom(m);this.$shim=this.ownerWindow.$(m);this.$shim.on("click",function(p){if(p.stopPropagation){p.stopPropagation()}else{p.cancelBubble=true}})}},beforeRender:function(){},initContent:function(){var h=this.getContentEl();if(this.html){h.innerHTML=this.html;delete this.html}if(this.contentEl){this.updateContent(this.contentEl)}if(this.tpl){h.innerHTML=g.String.tmpl(this.tpl,this.data||{});delete this.data}},updateContent:function(h,m,l){var p=this.getContentEl();if(h&&h.nodeType==1){this.contentEl=h;var j=this.ownerWindow.Zving.getDom(this.contentEl);var q=j.style.display,k=j.previousSibling,o=j.nextSibling,t=j.parentNode;var r=this;this._elemBack=function(){if(k&&k.parentNode){k.parentNode.insertBefore(j,k.nextSibling)}else{if(o&&o.parentNode){o.parentNode.insertBefore(j,o)}else{if(t){t.appendChild(j)}}}j.style.display=q;r._elemBack=null};g.Node.removeClass(j,this.hiddenClass);this.ownerWindow.jQuery.cleanData(p.getElementsByTagName("*"));p.innerHTML="";p.appendChild(j)}else{if(this.tpl&&typeof h!=="string"){this.ownerWindow.jQuery.cleanData(p.getElementsByTagName("*"));p.innerHTML=g.String.tmpl(this.tpl,h||{})}else{var n=g.isObject(h)?g.Dom.createHtml(h):h;g.Node.update(p,n,m,l)}}},afterRender:function(){this.dom={wrap:this.el,header:true,title:true,main:true,icon:true,iconBg:true,content:true,footer:true,buttons:true,close:true};var k=this.el.getElementsByTagName("*"),h=k.length;for(var j=0;j<h;j++){var l=k[j].className.split(a+"_")[1];if(l){l=l.split(" ")[0];if(l&&this.dom[l]){this.dom[l]=this.ownerWindow.Zving.getDom(k[j]);this.dom["$"+l]=this.ownerWindow.$(k[j])}}}if(this.closable===false){this.dom.$close.hide()}if(this.iconDataURL){if(g.isIE&&g.ieVersion<8&&this.iconStandin){this.dom.iconBg.innerHTML=this.iconStandin}else{this.dom.iconBg.style.backgroundImage="url("+this.iconDataURL+")"}}else{this.dom.$icon.hide()}this.dom.$title.css("cursor",this.draggable?"move":"auto");this.dom.$content.css("padding",this.padding);this.setTitle(this.title);this.initIframe();this.initButtons();this.setSize(this.width,this.height);if(this.autoClose){this.time(this.autoClose)}if(this.followEl){this.followTo(this.followEl)}else{this.setPosition(this.left,this.top)}this.initEvents();this.initResizable();this.initDraggable();if(this.onInit){this.onInit.call(this,window)}},_toNumber:function(h,k){if(!h&&h!==0||typeof h==="number"){return Math.min(h,k)}var j=h.length-1;if(h.lastIndexOf("px")===j){h=parseInt(h,10)}else{if(h.lastIndexOf("%")===j){h=parseInt(k*h.split("%")[0]/100,10)}}return h},followTo:function(h){var j=g.Dom.computePositionEx(h,this.el);Node.setPosition(this.el,j)},reposition:function(){this.setPosition("50%","50%")},setPosition:function(t,r){if(!this.rendered){this.x=(t!==undefined)?t:this.x;this.y=(r!==undefined)?r:this.y;return this}var l=g.isIE6?false:this.fixed,p=g.isIE6&&this.fixed,w=g.rootWin.document,h=g.Dom.getViewport(g.rootWin),q=h.width,k=h.height,m=Math.max(w.documentElement.scrollLeft,w.body.scrollLeft),A=Math.max(w.documentElement.scrollTop,w.body.scrollTop),o=l?0:m,j=l?0:A,u=Math.max(w.documentElement.scrollWidth,w.body.scrollWidth),n=Math.max(w.documentElement.scrollHeight,w.body.scrollHeight);if(t||t===0){this._x=t.toString().indexOf("%")!==-1?t:null;t=this._toNumber(t,q-this.el.offsetWidth);if(typeof t=="number"){t=p?(t+=m):t+o;this.$el.css("left",Math.max(t,o)+"px")}else{if(typeof t=="string"){this.$el.css("left",t)}}}if(r||r===0){this._y=r.toString().indexOf("%")!==-1?r:null;r=this._toNumber(r,k-this.el.offsetHeight);if(typeof r=="number"){r=p?(r+=A):r+j;this.$el.css("top",Math.max(r,j)+"px")}else{if(typeof r=="string"){this.$el.css("top",r)}}}this.onPosition(t,r);this.x=t;this.y=r;this.fireEvent("move",this,t,r);return this},onPosition:function(h,j){if(h!==undefined&&j!==undefined){this._autoPositionType()}},_autoPositionType:function(){this[this.fixed?"_setFixed":"_setAbsolute"]()},_setFixed:function(){if(g.isIE6){var n=g.rootDoc,m=parseInt(this.$el.css("left"),10)||0,l=parseInt(this.$el.css("top"),10)||0,j=Math.max(n.documentElement.scrollLeft,n.body.scrollLeft),h=Math.max(n.documentElement.scrollTop,n.body.scrollTop),o="Math.max(document.documentElement.scrollLeft, document.body.scrollLeft)",k="Math.max(document.documentElement.scrollTop, document.body.scrollTop)";this._setAbsolute();this.el.style.setExpression("left","eval("+(m+o)+') + "px"');this.el.style.setExpression("top","eval("+(l+k)+') + "px"')}else{this.el.style.position="fixed"}},_setAbsolute:function(){if(g.isIE6){this.el.style.removeExpression("left");this.el.style.removeExpression("top")}this.el.style.position="absolute"},_clickCancel:function(){if(this.onCancel){if(this.onCancel.call(this,window)!==false){this.close()}}else{this.close()}},_clickClose:function(){if(this.onBeforeClose){if(this.onBeforeClose.call(this,window)!==false){this.close()}}else{this.close()}},getTitle:function(){return this.dom.title.innerHTML},setTitle:function(h){if(h===undefined){h=this.title}else{this.title=h}if(this.title===false){this.dom.title.innerHTML="";this.dom.$title.hide();this.$el.addClass(a+"_state_noTitle")}else{this.dom.title.innerHTML=h;this.dom.$title.show();this.$el.removeClass(a+"_state_noTitle")}return this},initIframe:function(){if(!this.url){return}var j=this,h=j.ownerDocument.createElement("iframe");h.src=g.Url.relative2Absolute(j.url);h.id=h.name=j.id+"_dialog_frame";h.style.cssText="border:none 0;border-width: 0;width:100%;height:100%;";h.setAttribute("frameborder","0",0);h.setAttribute("ownerdialogid",j.id);j.dom.iframe=j.ownerWindow.Zving.getDom(h);j.dom.$content.addClass(a+"_state_full");j.dom.content.appendChild(h);j.innerFrame=h;j.innerWin=h.contentWindow;window.$D=j;window.$DW=h.contentWindow;h=null;j.onOk=j.onOk||j.onOK;if(typeof j.onOk=="function"){j._OKFn=j.onOk;j.onOk=function(k){if(j.okButton){j.okButton.disabled=true}j.enableOkButtonTimer=setTimeout(function(){if(j.okButton){j.okButton.disabled=false}},b.disableTimeout);return j._OKFn.call(j,k||window.event,j.innerWin)}}if(typeof j.onCancel=="function"){j._CancelFn=j.onCancel;j.onCancel=function(k){return j._CancelFn.call(j,k||window.event,j.innerWin)}}if(!g.isGecko){j.$innerFrame=j.ownerWindow.$(j.innerFrame);j.$innerFrame.on("load.dialog",function(){j.onIframeLoad.call(j)})}else{j.innerFrame.onload=function(){j.onIframeLoad.call(j)}}j.content=null;j.$content=null},onIframeReady:function(){this.dom.$loadingEl=this.dom.$content.find("."+a+"_loading");this.dom.$loadingEl.hide();if(this.onReady){this.onReady.call(this,this.innerWin);this.onReady=null}},onIframeLoad:function(){this.dom.$loadingEl=this.dom.$content.find("."+a+"_loading");this.dom.$loadingEl.hide();if(this.onLoad){this.onLoad.call(this,this.innerWin);this.onLoad=null}},getContentEl:function(){return this.dom.content||(this.dom.content=this.$el.find("."+this.contentElClass)[0])},initButtons:function(){var j=this;if(this.onOK&&!this.onOk){this.onOk=this.onOK}if(this.onOk){this.buttons.push({text:this.okText,fn:this.onOk,id:this.id+"-OKButton",cls:this.OKClass,focus:true})}if(this.onCancel){this.buttons.push({text:this.cancelText,fn:this._clickCancel,id:this.id+"-cancelButton",cls:this.cancelClass,focus:(this.onOk?false:true)})}if(this.buttons.length<1){this.dom.$buttons.hide()}else{for(var h=0;h<this.buttons.length;h++){this.addButton(this.buttons[h])}}},disableButton:function(h){this.ownerWindow.$("#"+h).disable()},enableButton:function(h){this.ownerWindow.$("#"+h).enable()},addButton:function(k,q,p,j,t,r){var l;if(typeof k!="object"){l={text:q,fn:p,id:(k||this.id+"-button"+this.buttons.length),cls:r||"",focus:!!t}}else{l=k}var n,o=this;if(this.dom&&this.dom.buttons){var m=o.ownerDocument.createElement("button");if(l.text){m.value=l.text;m.innerText=l.text}if(l.id){m.id=l.id;if(m.id==o.id+"-OKButton"){o.okButton=m}else{if(m.id==o.id+"-cancelButton"){o.cancelButton=m}}}if(l.cls){m.className="z-dlg-button "+l.cls}o.dom.buttons.appendChild(m);var h=o.ownerWindow.$(m);if(l.fn){h.on("click",$.proxy(l.fn,o))}if(l.focus){h.addClass(o.highlightButtonCls);setTimeout(function(){try{m.focus()}catch(u){}},1)}return this.dom.buttons[j?"lastChild":"firstChild"]}else{this.buttons[j?"push":"unshift"](l)}},initEvents:function(){var h=this;h.manager=h.manager||b.Manager;h.manager.register(h);h.dom.$close.on("mousedown",$.proxy(h._clickClose,h))},time:function(h){var j=this;if(this.closed){clearTimeout(this._timer);return}if(h){this.autoClose=h;this._timer=setTimeout(function(){j.time()},1000);return}this.autoClose--;if(this.title!==false){this.setTitle(this.closeTip.format(this.autoClose))}if(this.autoClose<=0){this._clickClose()}else{this._timer=setTimeout(function(){j.time()},1000)}},initResizable:function(){if(this.resizable){this.resizer=new g.Resizable({el:this.el,minWidth:200,minheight:100,handles:this.resizeHandles,resizeElement:this.resizerAction,handleCls:"z-window-handle"});this.beforerresize=function(){this.fireEvent("beforeresize")}}},initDraggable:function(){if(this.dom.header&&this.draggable&&g.rootWin.Zving.SimpleDrag){this.dd=new g.rootWin.Zving.SimpleDrag({dragEl:this.el,handleEl:this.dom.header,capture:true})}},content:function(h){if(h===undefined){return this.dom.content}if(typeof h=="string"){this.updateContent(h);return}if(g.isElment(h)){var m=h.style.display,l=h.previousSibling,k=h.nextSibling,j=h.parentNode;this._elemBack=function(){if(l&&l.parentNode){l.parentNode.insertBefore(h,l.nextSibling)}else{if(k&&l.parentNode){k.parentNode.insertBefore(h,k)}else{if(j){j.appendChild(h)}}}h.style.display=m};if(this.dom.content.innerHTML){this.ownerWindow.jQuery.cleanData(this.dom.content.getElementsByTagName("*"));this.dom.content.innerHTML=""}this.dom.content.appendChild(h);g.Node.show(h)}},onEsc:function(h){g.stopEvent(h);this._clickCancel()},setShimSize:function(){if(this.modal){var k=false;if(!g.Node.isVisible(this.shim)){k=true}if(k){this.$shim.css("visibility","hidden");this.$shim.show()}g.Node.setSize(this.shim,"100%","100%");var j=this.shim.offsetHeight;var h=g.Dom.getViewport(this.ownerWindow).height;if(h>j){g.Node.setSize(this.shim,undefined,h)}if(k){g.Node.hide(this.shim);this.$shim.css("visibility","visible")}}},onWindowResize:function(){this.setShimSize();this.doConstrain()},beforeShow:function(){},show:function(h){if(!this.rendered){this.render(this.autoRender)}if(this.hidden===false){this.toFront();return this}if(this.fireEvent("beforeshow",this)===false){return this}this.hidden=false;this.beforeShow();this.animateTarget=h||this.animateTarget;if(this.animateTarget){this.animShow()}else{this.afterShow()}if(this.modal){if(!g.Node.isVisible(this.shim)){this.setShimSize();if(this.animator){g.rootWin.Node.setOpacity(this.shim,3);this.$shim.show();this.$shim.fadeIn()}else{this.$shim.show()}}}return this},afterShow:function(h){this.$proxy.hide();this.$el.show();if(this.monitorResize||this.modal||this.constrain){if(g.rootWin.Zving.EventManager){g.rootWin.Zving.EventManager.onWindowResize(this.onWindowResize,this)}}this.doConstrain();this.doLayout();this.toFront();this.onShow();this.fireEvent("show",this)},animShow:function(){this.$proxy.show();g.Node.setBox(this.proxy,g.Node.getBox(this.animateTarget));g.Node.setOpacity(this.proxy,0);var h=this.getBox();this.$el.css("display","none");this.$proxy.animate(g.mix(h,{opacity:0.5}),this.afterShow)},onShow:g.noopFn,toFront:function(h){if(this.manager.bringToFront(this)){if(!h||!h.getTarget().focus){this.focus()}}return this},toBack:function(){this.manager.sendToBack(this);return this},setActive:function(k){if(k){var h=g.rootWin.Zving.Dialog.front,j=g.rootWin.Zving.Dialog.front.lastZIndex;this.setZIndex(j);if(this.modal&&this.shim){this.$shim.show()}this.addClass(a+"_state_focus");this.fireEvent("activate",this)}else{this.removeClass(a+"_state_focus");this.fireEvent("deactivate",this)}},hide:function(k,h,j){if(this.hidden||this.fireEvent("beforehide",this)===false){return this}if(h){this.on("hide",h,j)}this.hidden=true;if(this.modal){}this.animateTarget=k||this.animateTarget;if(this.animateTarget){this.animHide()}else{this.$el.hide();this.afterHide()}return this},afterHide:function(){this.$proxy.hide();if(this.monitorResize||this.modal||this.constrain){g.rootWin.Zving.EventManager.removeResizeListener(this.onWindowResize,this)}this.onHide();this.fireEvent("hide",this)},animHide:function(){g.Node.setOpacity(this.proxy,0.5);this.$proxy.show();var h=this.getBox(false);g.Node.setBox(this.proxy,h);this.$el.hide();this.$proxy.animate(g.mix(g.Node.getBox(this.animateTarget),{opacity:0}),this.afterHide)},onHide:g.noopFn,doConstrain:function(){if(this.container.nodeName=="BODY"){return}var l;if(this.constrain){var k=this.getSize();l={right:-(k.width-50),bottom:-(k.height-25)}}var o=g.Node.getConstrainToXY(this.el,this.container,true,l);if(o){var n=g.isIE6?false:this.fixed;if(n){var m=g.rootWin.document,h=Math.max(m.documentElement.scrollLeft,m.body.scrollLeft),j=Math.max(m.documentElement.scrollTop,m.body.scrollTop);o[0]=o[0]-h;o[1]=o[1]-j}this.setPosition(o[0],o[1])}},doLayout:g.noopFn,close:function(){if(this.isDestroyed===true){return}if(this.fireEvent("beforeclose",this)!==false){if(this.hidden){this.doClose()}else{this.hide(null,this.doClose,this)}}},doClose:function(){if(this.onClose){this.onClose.call(this,this.innerWin);this.onClose=null}this.fireEvent("close",this);this.destroy()},beforeDestroy:function(){if(this.enableOkButtonTimer){clearTimeout(this.enableOkButtonTimer)}if(this.rendered&&this.dom){this.destroyIframe();if(this.dom.$loadingEl){this.ownerWindow.jQuery.cleanData(this.dom.$loadingEl)}if(this.dom.$close){this.dom.$close.off()}this.okButton=this.cancelButton=null;this.ownerWindow.jQuery.cleanData(this.dom.buttons.getElementsByTagName("BUTTON"));this.buttons.length=0;if(this.proxy){this.$proxy=this.proxy=null}if(this.shim){this.$shim=this.shim=null}if(this.contentEl){delete this.contentEl}if(this.dd&&this.dd.proxyEl){g.rootWin.Zving.Dom.removeNode(this.dd.proxyEl)}if(this._elemBack){this._elemBack();this._elemBack=null}}},destroyIframe:function(){var h=this;if(!h.dom||!h.dom.iframe){return}window.$DW=null;h.innerWin=h.innerDoc=null;if(!g.isGecko){h.$innerFrame.off("load.dialog")}else{h.innerFrame.onload=null}h.innerFrame.src="about:blank";g.Dom.removeNode(h.dom.iframe);h.$innerFrame=h.innerFrame=null},onDestroy:function(){if(this.dd){this.dd.destroy();delete this.dd}if(this.manager){this.manager.unregister(this)}this._CancelFn=this._OKFn=this.onOk=this.onOK=this.onCancel=this.onLoad=this.onReady=this.onClose=null;b.superclass.onDestroy.call(this)},setZIndex:function(h){if(h===undefined){h=this.zIndex}if(this.modal){this.$shim.css("z-index",h)}this.el.style.zIndex=(++h);this.zIndex=h;h+=5;this.lastZIndex=h;return this},setSize:function(j,k){this.onSetSize(j,k)},onSetSize:function(j,k){if(this.url){j=j||"61.8%";k=k||"61.8%"}this.dom.$main.css("min-width",this.minWidth+"px");if(g.isIE6||g.isIE7||(document.documentMode&&document.documentMode<8)){this.dom.$main.css("width",this.minWidth+"px")}if(j){this._width=j.toString().indexOf("%")!==-1?j:null;var m=g.Dom.getViewport(g.rootWin).width-this.el.offsetWidth+this.dom.main.offsetWidth-30;j=this._toNumber(j,m);if(typeof j=="number"){this.$el.css("width","auto");this.dom.$main.css("width",Math.max(this.minWidth,j)+"px");this.$el.css("width",this.el.offsetWidth+"px")}else{if(typeof j=="string"){this.dom.main.style.width=j;if(j=="auto"){this.$el.css("width","auto")}}}}if(k){this._height=k.toString().indexOf("%")!==-1?k:null;var l=g.Dom.getViewport(g.rootWin).height-this.el.offsetHeight+this.dom.main.offsetHeight-30;k=this._toNumber(k,l);if(typeof k=="number"){this.dom.$main.css("height",Math.max(this.minHeight,k)+"px")}else{if(typeof k=="string"){this.dom.$main.css("height",k)}}}this.fireEvent("resize",this);return this},dragstart:function(h){h.proxy=this.proxy}});g.mix(b.prototype,{shake:function(){var h=this.el.style,k=[4,8,4,0,-4,-8,-4,0],j=function(){h.marginLeft=k.shift()+"px";if(k.length<=0){h.marginLeft=0;clearInterval(timerId)}};k=k.concat(k.concat(k));timerId=setInterval(j,13);return this}});g.mix(b,{alert:function(k,j,h){if(h===false){return b.warn(k,j)}return new b({autoShow:true,iconDataURL:"data:image/gif;base64,R0lGODlhIgAiANUAAAAAAP///+X4jO36r/H7w6C8FqK+GKTAGqXBG6bCHKfDHajEHqvHIa3JI7DMJrPPKbbSLLjULrvXMb3ZM7/bNcHdN8PfOcfjPczoQs3pQ8/rRdLuSNPvSdXxS9j0TtfzTdn1T9z2V932Xt32ZOD2cuT4eeX4huv6oe/6tf+nEwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAACkALAAAAAAiACIAAAb/wJRwSBwSBgQU6kgoOp9Fwmn0CVmvn9GpCe0STJ+sVTQaiazUj4nbJaLCpNDI89FgMJqPZxQihVFtQyYgHiEiHRUOBwiMCAcOFR1nHiAmgSUfJCMcEguNBgcHBo0LEhwjfiVdJWgZDY0IBhAbGxCjjQ0ZfCGqTgIgmhcKsAkQRBAJsAoXqCACUXojGcOwBx1EHYvKunRsKWAhHAywjNbY2rAMHCFqRpkiFOSMBcZDEAXyCBQiflwnVh2oyTMQoUOHCLfkKehg5YSQMiMq5PtkoOJERhUgpiBQxYODi6BCibrooNCHI1Y+oCOXwIJBgxaS5TtQJQQSQxou0iSi8qKGxTNJ5GDQeW1ItosY+CgRSvQcUqUEcDY1upLczxAo2VVtZI7qRJpWkHT8OLOokKP5SrJrAlFiWaf5MpYR8i9EwLdeFTIM4XDju3jyup7dqo/fSUFVxAU2mwJtunXt3O2ZRk5w46oKuB0m8iuYQEcfeK5c1uyZE1ZyXHF9MKH1hAfocu3q9QSTJk6eYlXczajUqVSBBhU6lGjlo0iTKgUS8iaTHDp28ETr82e5ETBiDJU5IyfMGutRptS8wk6LN/BRkChhYj0IADs=",iconStandin:"i",html:""+k,cancelText:e.get("Common.OK"),onCancel:function(){if(j){j()}}})},warn:function(j,h){return new b({autoShow:true,iconDataURL:"data:image/gif;base64,R0lGODlhIgAiAOYAAAAAAP/////58v/Ysv/ZtP/atv/cuf/dvP/hw//mzf/p0//t2//v3//x4//z5//06f/37//48f/Sqf/Sqv/Vrv/Wr//WsP/Ztf/ev//fwP/gwv/hxP/q1v/r2P/w4v/y5v/17P/27v/Kn//LoP/Ppf/38P+/kP/FmP/Gmf+5iP+8jP+iaf+qc/+uef+xfv98NP+DP/+LSf+TVP+UVv+aXv9VAP9XAv9YBP9bCP9eDf9jE/9kFv9mF/9nGf9oHf9uIv90Kv9zLf93Lv94NP+KUP+MU/+SW/+mef+sg/+0jv+1kP/CpP/Msv/Pt//dzP/u5f/z7f/ezv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAFIALAAAAAAiACIAAAf/gFKCg4SFhoeIiYQRCAMIEYqRhwsDlY6SmIIQlhaVD5mSGpUnIpUYoIoOlRQ9OSSVDaiIB5U0NTUxlQWyhgyVIji3NiaVHbyDApYwt7dClhDHUgqVKczMLpUaxyCWP0RRglFEPRSVDrwZlSw1SoRKNTSVB7IflRM6NUyETDU4pQOxQBmoJOOWvkH8cOkCRWkAihu3khBKIozYAA6YNlV6wQwJISTMgFgKIanRABfWihAqYo1FtkgPKlnoYW3IE0FPhljjUW7AuUQYKq2wVsMHOClRfBCNN2AeogaVSOQgumOJoCU7iPqrxABRgUoxiN46AgXKEbE1YFQicIhDJRM2gtDKtaaiEkZC3CoBmcu3hshKIAilG7AObRAngpoEketyQIZBqgbck2uEkBG5OiaYE0RrgC3KlufOkCfF1wBgcw8LcrJY7tYBDBJUatG3NrMWlRKYrlRhhO/fwIML/y2Bq5TBlpIrX87c0oVBDDY0n079godDJbJr3869+/Zo4MMjCgQAOw==",iconStandin:"!",html:""+j,cancelText:e.get("Common.OK"),onCancel:function(){if(h){h()}}})},confirm:function(k,j,h){return new b({autoShow:true,iconDataURL:"data:image/gif;base64,R0lGODlhIgAiANUAAAAAAP/////Wff/Wfv/Zhv/aiv/cjv/vzf/x0/2oBP6pBf+qBv+qB/+rCv+tD/+uEf+vFv+yGv+yHv+1JP+2J/+2Kf+3Kv+6Nv+/RP/CSv/FVf/HWv/IXf/Obf/Sev/SfP/Tff/Vfv/Yhv/Xh//Zjf/bk//cl//dmv/enf/foP/go//hp//jrP/krf/ms//ouv/qwP/sxv/sx//z2v/LaP/alP/14////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAADcALAAAAAAiACIAAAb/wJtwSBweYDMEYgY7FJ/Q4kG2Mq2uWKvMGe0eXiZTS5VSXcmqVvjF7RIRYVdqdUKNPJ4R6rRKucIIbkMvKidlJRwWCguMCwoWHCVkJyovgn8uKyQZD40JjJ+MDxkkK5hdmWYgE40LDhiwGBcOjRMgK2YuUC4qmR2djA0lUDUMoh2mvVImfCDACwwxXSzGCw+3JyZtN2ApJBGtNIIajREkKSaWQgcmvButCzZENRg1RCytG73aQlQpJc8WQCBig5EEgq0elJgjQ8iKFis4wGMAAdYHDNBYEKEBj8PDFTfYFaIAryQDjUQkwKNASRuMPigWlWx0sghHeApQzEGCa8TMzFb2iFT4OcJMkisefjJyUGToTw9XlCBVuiAEEQNUoa5Y0pPqACICqBZdwQSmzJkiiIhQmnOnyBMkf5ogYkIpSxX8PkqkypeRR4j9+gDsS1Uhw3XtVLybSYAIgZ/6/rTp9o2x45nm0KlD3Cwgo8ZDHsO7RocfEV6+PBcgUmA0MtS7cK1Y1ehs7Vq3cqFqp4lTYVKm2gkiZEgFIkWtHkWaVEmQEDjt5tS5k2dPnz8mAjlfB0YMmjNl1KTbtj0kFStYrmghX57IkSRLmmwPAgA7",iconStandin:"?",html:k,onOk:function(){if(!j){return this.close()}if(j.call(this,window)!==false){this.close()}},onCancel:h||g.noopFn})},prompt:function(l,k,h){h=h||"";var j;return new b({autoShow:true,html:['<div style="margin-bottom:5px;font-size:12px">',l,"</div>","<div>",'<input type="text" value="',h||"",'" style="width:18em;padding:3px 2px" />',"</div>"].join(""),onShow:function(){j=this.dom.$content.find("input")[0];j.select();j.focus()},onOk:function(m){return k&&k.call(this,j.value,m)}})},tips:function(j,h){return new b({autoShow:true,title:false,modal:false,html:'<div style="padding: 0 1em;">'+j+"</div>",autoClose:h||2})},WaitID:null,wait:function(j){var m=0,k;var l=new b({autoShow:true,html:j,onCancel:function(){return false}});var h=function(){if(!l||l.destroying===true){if(k){clearTimeout(k)}return}m++;l.cancelButton.innerText=e.get("Dialog.WaitMessage")+"("+m+")...";l.waitTimer=k=setTimeout(h,1000)};l.waitTimer=k=setTimeout(h,1000);l.on("beforeclose",function(){clearTimeout(k)});return l},getInstance:function(h){return b.Manager.get(h)}});b.list={};b.accessList=[];b.front=null;if(window!=g.rootWin){b.list=g.rootWin.Zving.Dialog.list;b.accessList=g.rootWin.Zving.Dialog.accessList;b.front=g.rootWin.Zving.Dialog.front}b.Manager=function(){var n=function(p){if(b.accessList.length==1){b.front=g.rootWin.Zving.Dialog.front=p}};var o=function(r){if(b.isHideScrollbar){var q=g.rootDoc.getElementsByTagName(g.rootDoc.compatMode=="BackCompat"?"BODY":"HTML")[0];q._styleOverflow=q.style.overflow;if(!d){var p=q.scrollTop;q.style.overflow="hidden";q.scrollTop=p}else{q.style.overflow="hidden"}}if(b.isPreventScroll){Event.lockScroll()}};var h=function(r){if(b.accessList.length<2){if(g.rootWin.Zving.getDom("_DialogShim")){g.rootWin.$("#_DialogShim").hide()}if(b.isHideScrollbar){var q=g.rootDoc.getElementsByTagName(g.rootDoc.compatMode=="BackCompat"?"BODY":"HTML")[0];if(q._styleOverflow!==undefined){if(!d){var p=q.scrollTop;q.style.overflow=q._styleOverflow;q.scrollTop=p}else{q.style.overflow=q._styleOverflow}}}Event.unlockScroll()}Event.unlockScroll()};var k=function(q,p){return(!q._lastAccess||q._lastAccess<p._lastAccess)?-1:1};var m=function(){var r=b.accessList,p=r.length;if(p>0){r.sort(k);var q=r[0].manager.zseed;for(var t=0;t<p;t++){var u=r[t];if(u&&!u.hidden){u.setZIndex(q+(t*10))}}}j()};var l=function(p){if(p!==g.rootWin.Zving.Dialog.front){if(g.rootWin.Zving.Dialog.front){g.rootWin.Zving.Dialog.front.setActive(false)}b.front=g.rootWin.Zving.Dialog.front=p;if(p){p.setActive(true)}}};var j=function(){for(var p=b.accessList.length-1;p>=0;--p){if(!b.accessList[p].hidden){l(b.accessList[p]);return}}l(null)};return{zseed:10100,listenKeydown:function(p,r){p=g.getEvent(p);var q=p.target;if(p.keyCode==27){if(r&&r.ctype=="dialog"){if(q.nodeName&&/^textarea$/i.test(q.nodeName)&&q.defaultValue!=q.value&&q.value.length>2&&!confirm("侦测文本框中的内容已经被修改，你确定要放弃修改吗？")){return}r.onEsc(p)}else{if(g.rootWin.Zving.Dialog.front&&g.rootWin.Zving.Dialog.front.esc){g.rootWin.Zving.Dialog.front.onEsc(p)}}}},closeAll:function(p){if(b.accessList.length>0){b.accessList.each(function(q){if(p){if(q.opener==window){q.close()}}else{q.close()}});return true}return false},register:function(p){b.list[p.id]=p;b.accessList.push(p);p.on("hide",j);p.on("show",o);p.on("beforeclose",h)},unregister:function(p){delete b.list[p.id];p.un("hide",j);p.un("show",o);p.un("beforeclose",h);b.accessList.remove(p)},get:function(p){return typeof p==="object"?p:b.list[p]},bringToFront:function(p){p=this.get(p);if(p!=g.rootWin.Zving.Dialog.front){p._lastAccess=new Date().getTime();m();n(p);return true}return false},sendToBack:function(p){p=this.get(p);p._lastAccess=-(new Date().getTime());m();return p},getActive:function(){return g.rootWin.Zving.Dialog.front}}}();c.onReady(function(){if(g.restricted||!window.frameElement){return}var h;try{h=window.frameElement.getAttribute("ownerdialogid")}catch(k){window.console&&console.error("没有权限：可能因为跨域，对话框不能与父窗口交互。")}if(!h){return}if(g.Misc&&g.Misc.inputFocus){g.Misc.inputFocus()}var j;if(g.Config.namespace=="window"){j=g.rootWin.Dialog.list[h]}else{j=g.rootWin.Zving.Dialog.list[h]}if(!j){return}window.ownerDialog=j;window.dialogOpener=j.opener;if(j.getTitle()===""&&document.title){if(j.title!==false){j.setTitle(document.title)}}if(j.onIframeReady){j.onIframeReady(window);j.onIframeReady=null}},4);$document.on("keydown",b.Manager.listenKeydown);$window.on("unload",function(){$document.off("keydown",b.Manager.listenKeydown);b.Manager.closeAll(true);window.ownerDialog=window.dialogOpener=null;if(window==g.rootWin){$("#_DialogShim").off()}});g.Dialog=b})();
  /*! 日期选择 Calendar, TimeSelector, DatePicker,TimePicker */
  (function(){var e=window.Zving,d=e.Node,a,b,g,j;function c(k,l){return("000000000000000000000"+k).slice(-l)}var f=undefined;var h=function(){if(f!==undefined){return f}if($.event.special.bsTransitionEnd){f=true;return true}var k=$('<span class="form-control-feedback"></span>').appendTo(document.body);if(k.css("position")=="absolute"){f=true;k.remove();return true}f=false;return false};a=function(k){this.defaultConfig={_childCals:[],container:e.rootDoc.body};if(!(this instanceof a)){return e.ComponentManager.getByDom(e.getDom(k),"Calendar")}a.superclass.constructor.call(this,k)};e.Class.extend(a,e.UICompBase,{ctype:"Calendar",date:new Date(),selectedDate:null,startDay:0,pages:1,rangeSelect:false,minDate:false,maxDate:false,multiSelect:false,multi:null,navigator:true,popup:true,closable:true,showTime:false,triggerType:"click",disabled:null,range:null,rangeLinkage:true,notLimited:false,removeDomOnDestroy:true,zIndex:10800,_handleDate:function(){var l=this,k=l.date;l.weekday=k.getDay();l.day=k.getDate();l.month=k.getMonth();l.year=k.getFullYear();return this},initComponent:function(){var k=this;if(typeof this.targetEl=="string"){this.targetEl=e.getDom(this.targetEl)}if(typeof this.triggerEl=="string"){this.triggerEl=e.getDom(this.triggerEl)}if(this.targetEl){if(this.targetEl.value&&/\d/.test(this.targetEl.value)){this.date=this._time=this.selectedDate=e.DateTime.parseDate(/^(\d+:)+/.test(this.targetEl.value)?"1970-01-01 "+this.targetEl.value:this.targetEl.value)}var l=this.targetEl.getAttribute("mindate");if(l){if(l=="now"){this.minDate=new Date()}else{if(/\d/.test(l)){this.minDate=e.DateTime.parseDate(/^(\d+:)+/.test(l)?"1970-01-01 "+l:l)}}}var m=this.targetEl.getAttribute("maxdate");if(m){if(m=="now"){this.maxDate=new Date()}else{if(/\d/.test(m)){this.maxDate=e.DateTime.parseDate(/^(\d+:)+/.test(m)?"1970-01-01 "+m:m)}}}}this._handleDate();a.superclass.initComponent.call(this);if(k.popup&&k.targetEl){k.$targetEl=$(k.targetEl);k.$targetEl.on("click.calendar",function(){k.expand()});if(k.triggerEl&&k.targetEl!=k.triggerEl){k.$triggerEl=$(k.triggerEl);k.$triggerEl.on(this.triggerType,function(){k.toggle()})}}},onRender:function(l,k){var m=this;if(this.targetEl.value&&/\d/.test(this.targetEl.value)){this.date=this._time=this.selectedDate=e.DateTime.parseDate(/^(\d+:)+/.test(this.targetEl.value)?"1970-01-01 "+this.targetEl.value:this.targetEl.value)}if(!l){l=this.parentEl||document.body}this.ownerDocument=l.ownerDocument;this.ownerWindow=l.ownerDocument.parentWindow;if(this.ownerWindow==e.rootWin){this.showOnRootWindow=true}else{this.showOnRootWindow=false}this.layer=new e.Layer({cls:"z-cal-call",parentEl:l,zIndex:this.zIndex});if(!m.popup){this.layer.el.style.position="relative"}this.outerEl=this.el=this.layer.el;this.$el=this.layer.$el;this.el.calendarId=e.pageId+m.id;m._parseParam();m._childCals=m._childCals||[];m._childCals.length=m.pages;for(i=0;i<m.pages;i++){var n=m._getChildCalParam(i);m._childCals[i]=new a.Page(n);m._childCals[i].render(m.el)}},_parseParam:function(m){var l=this,k;if(m===undefined||m===null){m={}}for(k in m){l[k]=m[k]}if(typeof l.triggerType==="string"){l.triggerType=[l.triggerType]}l.startDay=l.startDay%7;if(l.startDay<0){l.startDay+=7}l._handleDate();if(l.multiSelect){l.rangeSelect=false;l.range=null;l.selectedDate=null;if(l.multi){for(k=0;k<l.multi.length;k++){if(l.multi[k] instanceof Date){l.multi[k]=l._handleDate2String(l.multi[k])}}}}return this},update:function(m){var l=this;l._parseParam(m);for(var k=0;k<l._childCals.length;k++){l._childCals[k].update(l._getChildCalParam(k))}},_getChildCalParam:function(n){var o=this;var m,l,r;var k=false;var q=false;if(o.range){if(o.range.start){k=true}if(o.range.end){q=true}}if(k&&!o.rangeLinkage){r=[o.range.start.getFullYear(),o.range.start.getMonth()]}else{r=[o.year,o.month]}if(n===0){m=true}else{if(!o.rangeLinkage){m=true;if(q&&(n+1)==o.pages){r=[o.range.end.getFullYear(),o.range.end.getMonth()]}else{r=o._computeNextMonth(r)}}else{m=false;r=o._computeNextMonth(r)}}if(!o.rangeLinkage){l=true}else{l=n==(o.pages-1)}var p=o._childCals[n];if(!o.rangeLinkage&&p&&(p.year!=r[0]||p.month!=r[1])){r=[p.year,p.month]}return{_parent:o,ownerWindow:o.ownerWindow,year:r[0],month:r[1],prevArrow:m,nextArrow:l,showTime:o.showTime}},initDom:function(){this.initEvents()},initEvents:function(){},toggle:function(){var k=this;if(!this.rendered){this.render(this.parentEl||this.container)}if(k.isExpanded()){k.collapse()}else{k.expand()}},collapse:function(){if(!this.isExpanded()){return}this.hide();if(e.rootWin!=window){e.rootWin.$(e.rootDoc).off("mousewheel.calendar")}$document.off("mousewheel.calendar");if(this.popup){e.AllDocumentsEvent.un("mousedown.calendar")}this.fireEvent("collapse",this)},collapseIf:function(k){var l=this;if(!l.popup||this.isDestroyed){return this}var m=k.target;if(m==l.targetEl||m==l.outerEl){return}if((d.hasClass(m,"z-next")||d.hasClass(m,"z-prev"))&&m.tagName=="A"){return}if($.contains(l.outerEl,m)||$.contains(l.targetEl,m)){return}l.collapse()},expand:function(){var k=this;if(k.disabled){return}if(!k.rendered){k.render(k.parentEl||k.container)}if(k.isExpanded()){return}k.show();var l=e.Dom.computePositionEx(k.targetEl,k.layer.el);d.setPosition(k.layer.el,l);if(e.rootWin!=window){e.rootWin.$(e.rootDoc).on("mousewheel.calendar",function(m){k.collapseIf(m)})}$document.on("mousewheel.calendar",function(m){k.collapseIf(m)});if(k.popup){e.AllDocumentsEvent.on("mousedown.calendar",function(m){k.collapseIf(m)})}k.fireEvent("expand",k)},isExpanded:function(){return this.layer&&this.layer.isVisible()},_handleDate2String:function(n){var l=n.getFullYear();var m=n.getMonth();var k=n.getDate();return l+"-"+(m>8?(m+1):"0"+(m+1))+"-"+(k>9?k:"0"+k)},_handleString2Date:function(l){var k=l.toString().split("-");if(k.length==3){date=new Date(parseInt(k[0],10),(parseInt(k[1],10)-1),parseInt(k[2],10));if(date instanceof Date&&(date!="Invalid Date")&&!isNaN(date)){return date}}},_getHeadStr:function(k,l){var m=Lang.getCurrentLang();if(Lang.getCurrentLang().startsWith("zh-")){return k.toString()+"年"+(Number(l)+1).toString()+"月"}else{return k.toString()+"-"+(Number(l)+1).toString()}},_monthAdd:function(){var k=this;if(k.month==11){k.year++;k.month=0}else{k.month++}k.date=new Date(k.year.toString()+"/"+(k.month+1).toString()+"/1");return this},_monthMinus:function(){var k=this;if(k.month===0){k.year--;k.month=11}else{k.month--}k.date=new Date(k.year.toString()+"/"+(k.month+1).toString()+"/1");return this},_yearAdd:function(){var k=this;k.year++;k.date=new Date(k.year.toString()+"/"+(k.month+1).toString()+"/1");return this},_yearMinus:function(){var k=this;k.year--;k.date=new Date(k.year.toString()+"/"+(k.month+1).toString()+"/1");return this},_computeNextMonth:function(k){var m=k[0],l=k[1];if(l==11){m++;l=0}else{l++}return[m,l]},_handleOffset:function(){var n=this,o=["日","一","二","三","四","五","六"],l="<span>{day}</span>",q=n.startDay,p="",k=[];for(var m=0;m<7;m++){k[m]=e.String.tmpl(l,{day:o[(m+q)%7]})}p=k.join("");return{day_html:p}},_handleRange:function(m){var l=this,k;l.range=l.range||{start:null,end:null};if((l.range.start===null&&l.range.end===null)||(l.range.start!==null&&l.range.end!==null)){l.range.start=m;l.range.end=null;l.update()}else{if(l.range.start!==null&&l.range.end===null){l.range.end=m;if(l.range.start.getTime()>l.range.end.getTime()){k=l.range.start;l.range.start=l.range.end;l.range.end=k}l.fireEvent("rangeSelect",l.range);l.update();if(l.popup&&l.closable){l.collapse()}}}return this},beforeDestroy:function(){var l=this;l.$targetEl.off("click.calendar");l.$triggerEl.off();l.$targetEl=l.targetEl=l.$triggerEl=l.triggerEl=null;e.AllDocumentsEvent.un("mousedown.calendar");if(e.rootWin!=window){e.rootWin.$(e.rootDoc).off("mousewheel.calendar")}$document.off("mousewheel.calendar");for(var k=0;k<this._childCals.length;k++){this._childCals[k].destroy()}this._childCals.length=0;delete this._childCals;if(this.layer){this.layer.destroy();delete this.layer}}});a.Page=function(k){this._parent=k.parent;this.month=Number(k.month);this.year=Number(k.year);this.prevArrow=k.prevArrow;this.nextArrow=k.nextArrow;this.el=null;this.timmer=null;this.id="";this.constructor.superclass.constructor.call(this,k)};e.Class.extend(a.Page,e.UICompBase,{renderTpl:['<div class="z-cal-hd">','<a href="javascript:void(0);" class="z-prev-year {prev}">&laquo;</a><a href="javascript:void(0);" class="z-prev-month {prev}">&#8249;</a>','<a href="javascript:void(0);" class="z-title">{title}</a>','<a href="javascript:void(0);" class="z-next-month {next}">&#8250;</a><a href="javascript:void(0);" class="z-next-year {next}">&raquo;</a>',"</div>",'<div class="z-cal-bd">','<div class="z-whd">',"{day}","</div>",'<div class="z-dbd z-clearfix">',"{ds}",'<div style="clear:both;"></div>',"</div>","</div>",'<div class="z-setime hidden">',"</div>",'<div class="{notlimited}"><a href="#" class="z-cal-notLimited {notlimitedCls}">不限</a></div>','<div class="z-multi-select {multiSelect}"><button class="z-multi-select-btn">确定</button></div>','<div class="z-cal-ft {showtime}">','<div class="z-cal-time">',"时间：00:00:00","</div>","</div>"].join(""),ctype:"Calendar.Page",cls:"z-cal-box",nav_html:["<p>",e.Lang.get("DateTime.Month"),'<select value="{the_month}">','<option class="m1" value="1">01</option>','<option class="m2" value="2">02</option>','<option class="m3" value="3">03</option>','<option class="m4" value="4">04</option>','<option class="m5" value="5">05</option>','<option class="m6" value="6">06</option>','<option class="m7" value="7">07</option>','<option class="m8" value="8">08</option>','<option class="m9" value="9">09</option>','<option class="m10" value="10">10</option>','<option class="m11" value="11">11</option>','<option class="m12" value="12">12</option>',"</select>","</p>","<p>",e.Lang.get("DateTime.Year"),'<input type="text" value="{the_year}" onfocus="this.select()"/>',"</p>","<p>",'<button class="ok">'+e.Lang.get("Common.OK")+"</button>",'<button class="cancel">'+e.Lang.get("Common.Cancel")+"</button>","</p>"].join(""),initComponent:function(){if(typeof this.targetEl=="string"){this.targetEl=e.getDom(this.targetEl)}if(typeof this.triggerEl=="string"){this.triggerEl=e.getDom(this.triggerEl)}this.constructor.superclass.initComponent.call(this)},initRenderData:function(){this.renderData=this.renderData||{};var m=this,l={},k;m.HTML="";l.prev="";l.next="";l.title="";l.ds="";l.notlimited="";l.notlimitedClass="";if(!m.prevArrow){l.prev="hidden"}if(!m.nextArrow){l.next="hidden"}if(!m._parent.showTime){l.showtime="hidden"}if(!m._parent.notLimited){l.notlimited="hidden"}if(!m._parent.multiSelect){l.multiSelect="hidden"}if(m._parent.showTime&&m._parent.notLimited){l.notlimitedCls="z-cal-notLimited-showTime"}if(m._parent.notLimited&&!m._parent.selectedDate){l.notlimitedCls+=" z-cal-notLimited-selected"}l.title=m._parent._getHeadStr(m.year,m.month);m.createDS();l.ds=m.ds;l.day=m._parent._handleOffset().day_html;return e.mix(this.renderData,l)},update:function(m){var l=this;l._parseParam(m);renderData=this.initRenderData();var k=l.dom.foot.innerHTML;this.ownerWindow.jQuery.cleanData(this.outerEl.getElementsByTagName("*"));l.outerEl.innerHTML=e.String.tmpl(this.renderTpl,renderData);l.dom.foot=this.ownerWindow.$(".z-cal-ft",l.el)[0];if(l._parent.showTime){this.ownerWindow.jQuery.cleanData(l.dom.foot.getElementsByTagName("*"));l.dom.foot.innerHTML=k;l.timmer.resume()}},_parseParam:function(m){var l=this,k;if(m===undefined||m===null){m={}}for(k in m){l[k]=m[k]}return this},initDom:function(){var k=this;k.el=this.ownerWindow.Zving.getDom(k.el.id);k.dom.foot=this.ownerWindow.$(".z-cal-ft",k.el)[0];if(k._parent.showTime){k.timmer=new b({container:k.dom.foot,_parent:k._parent,ownerWindow:this.ownerWindow});k.timmer.render()}this.initEvents()},initEvents:function(){var k=this;if(!k._parent.multiSelect){k.$el.on("click","div.z-dbd a",function(l){k._dbd_onClick(l)})}k.$el.on("click","a.z-prev-month",function(l){k._prevMonth_onClick(l)});k.$el.on("click","a.z-next-month",function(l){k._nextMonth_onClick(l)});k.$el.on("click","a.z-prev-year",function(l){k._prevYear_onClick(l)});k.$el.on("click","a.z-next-year",function(l){k._nextYear_onClick(l)});if(k._parent.navigator){k.$el.on("click","a.z-title",function(l){k._title_onClick(l)})}k.$el.on("click",".z-setime",function(l){k._setime_onClick(l)});if(k._parent.notLimited){k.$el.on("click",".z-cal-notLimited",function(l){k._notLimited_onClick(l)})}if(k._parent.multiSelect){k.$el.on("mousedown","div.z-dbd a",function(l){k._dbd_onMouseDown(l)});k.$el.on("mouseup","div.z-dbd a",function(l){k._dbd_onMouseUp(l)});k.$el.on("click",".z-multi-select-btn",function(l){k._multiSelectBtn_onClick(l)})}},_dbd_onClick:function(m){var k=this;m.preventDefault();var l=m.currentTarget;if(l.tagName!="A"){return}if(d.hasClass(l,"z-null")){return}if(d.hasClass(l,"z-disabled")){return}var n=new Date(k.year,k.month,Number(l.innerHTML));k._parent.dt_date=n;k._parent.fireEvent("select",{date:n});if(k._parent.popup&&k._parent.closable&&!k._parent.showTime&&!k._parent.rangeSelect){k._parent.collapse()}if(k._parent.rangeSelect){k._parent._handleRange(n)}k._parent.update({selectedDate:n})},_prevMonth_onClick:function(l){var k=this;l.preventDefault();if(!k._parent.rangeLinkage){k._monthMinus()}k._parent._monthMinus().update();k._parent.fireEvent("monthChange",{date:new Date(k._parent.year+"/"+(k._parent.month+1)+"/01")})},_nextMonth_onClick:function(l){var k=this;l.preventDefault();if(!k._parent.rangeLinkage){k._monthAdd()}k._parent._monthAdd().update();k._parent.fireEvent("monthChange",{date:new Date(k._parent.year+"/"+(k._parent.month+1)+"/01")})},_prevYear_onClick:function(l){var k=this;l.preventDefault();if(!k._parent.rangeLinkage){k._yearMinus()}k._parent._yearMinus().update();k._parent.fireEvent("monthChange",{date:new Date(k._parent.year+"/"+(k._parent.month+1)+"/01")})},_nextYear_onClick:function(l){var k=this;l.preventDefault();if(!k._parent.rangeLinkage){k._yearAdd()}k._parent._yearAdd().update();k._parent.fireEvent("monthChange",{date:new Date(k._parent.year+"/"+(k._parent.month+1)+"/01")})},_title_onClick:function(o){var n=this;try{n.timmer.hidePopup();o.preventDefault()}catch(l){}var k=n.$el.find(".z-setime");var m=e.String.tmpl(n.nav_html,{the_month:n.month+1,the_year:n.year});k.html(m);k.removeClass("hidden");k=null;n.$el.find(":text").off("keydown.calendar").on("keydown.calendar",function(r){input=this;if(r.keyCode==38){input.value=Number(r.target.value)+1;input.select()}if(r.keyCode==40){input.value=Number(r.target.value)-1;input.select()}if(r.keyCode==13){var q=n.$el.find(".z-setime select").val();var p=n.$el.find(".z-setime input").val();n.$el.find(".z-setime").addClass("hidden");if(!n.Verify().isYear(p)){return}if(!n.Verify().isMonth(q)){return}n._parent.update({date:new Date(p+"/"+q+"/01")});n._parent.fireEvent("monthChange",{date:new Date(p+"/"+q+"/01")})}})},_setime_onClick:function(p){var n=this;p.preventDefault();var o=p.target;var m=p.currentTarget;if(d.hasClass(o,"ok")){var l=$("select",m).val(),k=$("input",m).val();$(m).addClass("hidden");if(!n.Verify().isYear(k)){return}if(!n.Verify().isMonth(l)){return}n._parent.update({date:new Date(k+"/"+l+"/01")});n._parent.fireEvent("monthChange",{date:new Date(k+"/"+l+"/01")})}else{if(d.hasClass(o,"cancel")){$(m).addClass("hidden")}}},_notLimited_onClick:function(l){var k=this;l.preventDefault();k._parent.range={start:null,end:null};k._parent.fireEvent("select",{date:null});if(k._parent.popup&&k._parent.closable){k._parent.collapse()}k._parent.update({selectedDate:null})},_dbd_onMouseDown:function(m){var k=this;m.preventDefault();var l=m.currentTarget;if(l.tagName!="A"){return}if(d.hasClass(l,"z-null")){return}if(d.hasClass(l,"z-disabled")){return}var n=new Date(k.year,k.month,Number(m.target.innerHTML))},_dbd_onMouseUp:function(m){var k=this;m.preventDefault();var l=m.currentTarget;if(l.tagName!="A"){return}if(d.hasClass(l,"z-null")){return}if(d.hasClass(l,"z-disabled")){return}var n=new Date(k.year,k.month,Number(m.target.innerHTML))},_multiSelectBtn_onClick:function(l){var k=this;l.preventDefault()},_monthAdd:function(){var k=this;if(k.month==11){k.year++;k.month=0}else{k.month++}},_monthMinus:function(){var k=this;if(k.month===0){k.year--;k.month=11}else{k.month--}},_yearAdd:function(){var k=this;k.year++},_yearMinus:function(){var k=this;k.year--},_getNumOfDays:function(k,l){return 32-new Date(k,l-1,32).getDate()},_isDisabled:function(k,l){if(k&&k.length>0){for(var m=0;m<k.length;m++){var n=k[m];if(l.getFullYear()==n.getFullYear()&&l.getMonth()==n.getMonth()&&l.getDate()==n.getDate()){return true}}}return false},isInMulit:function(n,l){if(n&&n.length>0){for(var m=0;m<n.length;m++){var k=n[m].split("-");if(l.getFullYear()==parseInt(k[0],10)&&l.getMonth()==(parseInt(k[1],10)-1)&&l.getDate()==parseInt(k[2],10)){return true}}}return false},createDS:function(){var p=this,u="",o=(7-p._parent.startDay+new Date(p.year+"/"+(p.month+1)+"/01").getDay())%7,r=p._getNumOfDays(p.year,p.month+1),n=p._parent.selectedDate,q=new Date(),k;var m;for(m=0;m<o;m++){u+='<a href="javascript:void(0);" class="z-null">0</a>'}for(m=1;m<=r;m++){var t="";var l=new Date(p.year,p.month,m);if((p._parent.minDate&&new Date(p.year,p.month,m+1)<p._parent.minDate)||(p._parent.maxDate&&l>p._parent.maxDate)||p._isDisabled(p._parent.disabled,l)){t="z-disabled"}else{if(p._parent.range&&l>=p._parent.range.start&&l<=p._parent.range.end){t="z-range"}else{if((n&&n.getFullYear()==p.year&&n.getMonth()==p.month&&n.getDate()==m)||p.isInMulit(p._parent.multi,l)){t="z-selected"}}}if(q.getFullYear()==p.year&&q.getMonth()==p.month&&q.getDate()==m){t+=" z-today"}u+="<a "+(t?"class="+t:"")+' href="javascript:void(0);">'+m+"</a>"}p.ds=u;return u},Verify:function(){var l=function(o){if(!/^\d+$/i.test(o)){return false}o=Number(o);return !(o<1||o>31)},k=function(o){if(!/^\d+$/i.test(o)){return false}o=Number(o);return !(o<100||o>10000)},m=function(o){if(!/^\d+$/i.test(o)){return false}o=Number(o);return !(o<1||o>12)};return{isDay:l,isYear:k,isMonth:m}},beforeDestroy:function(){if(this.timmer){this.timmer.destroy();delete this.timmer}if(this.rendered){this.ownerWindow.jQuery.cleanData(this.el.getElementsByTagName("*"))}delete this._parent}});j=function(k){this.defaultConfig={container:e.rootDoc.body};if(!(this instanceof j)){return e.ComponentManager.getByDom(e.getDom(k),"TimePicker")}this.constructor.superclass.constructor.call(this,k)};e.Class.extend(j,a,{ctype:"TimePicker",date:new Date(),onRender:function(l,k){var m=this;if(!l){l=this.parentEl||document.body}this.ownerDocument=l.ownerDocument;this.ownerWindow=l.ownerDocument.parentWindow;if(this.ownerWindow==e.rootWin){this.showOnRootWindow=true}else{this.showOnRootWindow=false}this.layer=new e.Layer({cls:"z-cal-call",parentEl:l,zIndex:this.zIndex});if(!m.popup){this.layer.el.style.position="relative"}this.outerEl=this.el=this.layer.el;this.$el=this.layer.$el;this.el.calendarId=e.pageId+m.id;m._parseParam();m._childCals=m._childCals||[];m._childCals.length=m.pages;for(i=0;i<m.pages;i++){var n=m._getChildCalParam(i);n.container=m.el;m._childCals[i]=new b(n);m._childCals[i].render(m.el)}},beforeDestroy:function(){j.superclass.beforeDestroy.call(this)}});b=function(k){this.container=k.container;this._parent=k._parent;this.ownerWindow=this._parent.ownerWindow;this.ownerDocument=this._parent.ownerDocument;this.calendarWrap=k._parent.el;this.$calendarWrap=k._parent.$el;if(typeof this._parent._time=="undefined"){this._parent._time=new Date()}this.time=this._parent._time;this.status="s";this.ctime=Dom.html2Node('<div class="z-cal-time">'+e.Lang.get("DateTime.Time")+':<span class="h">h</span>:<span class="m">m</span>:<span class="s">s</span><!--[[arrow--><div class="cta"><button class="u"><b></b></button><button class="d"><b></b></button></div><!--arrow]]--></div>',this._parent.ownerDocument);this.button=Dom.html2Node('<button class="ct-ok">'+e.Lang.get("Common.OK")+"</button>",this._parent.ownerDocument);this.popupannel=Dom.html2Node('<div class="z-selectime hidden"></div>',this._parent.ownerDocument);this.h_a=["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"];this.m_a=["00","10","20","30","40","50"];this.s_a=["00","10","20","30","40","50"];this.constructor.superclass.constructor.call(this,k)};e.Class.extend(b,e.UICompBase,{ctype:"TimeSelector",initComponent:function(){if(typeof this.targetEl=="string"){this.targetEl=e.getDom(this.targetEl)}if(typeof this.triggerEl=="string"){this.triggerEl=e.getDom(this.triggerEl)}this.constructor.superclass.initComponent.call(this)},onRender:function(){var k=this;k.container.innerHTML="";k.container.appendChild(k.ctime);k.container.appendChild(k.button);k.container.appendChild(k.popupannel);k.$ctime=k.ownerWindow.$(k.ctime);k.$button=k.ownerWindow.$(k.button);k.update()},initDom:function(){this.initEvents()},initEvents:function(){var k=this;this.$calendarWrap.on("click.timeselector","div.z-selectime a.x",function(l){k.hidePopup()});this.$calendarWrap.on("click.timeselector","div.z-selectime a.item",function(n){var m=n.currentTarget;var l=Number(m.innerHTML);k.set(k.status,l);k.hidePopup()});this.$calendarWrap.on("click.timeselector","button.ct-ok",function(){var l=typeof k._parent.dt_date=="undefined"?k._parent.date:k._parent.dt_date;l.setHours(k.getTime("h"));l.setMinutes(k.getTime("m"));l.setSeconds(k.getTime("s"));k._parent.fireEvent("timeSelect",{date:l});if(k._parent.popup&&k._parent.closable){k._parent.collapse()}});this.$calendarWrap.on("click.timeselector","div.z-cal-time button.u",function(){k.hidePopup();k.add()});this.$calendarWrap.on("click.timeselector","div.z-cal-time button.d",function(){k.hidePopup();k.minus()});this.$calendarWrap.on("mousewheel.timeselector","div.z-cal-time",function(l,m){if(m>0){k.add()}else{if(m<0){k.minus()}}l.preventDefault();l.stopPropagation()});this.$calendarWrap.on("click.timeselector","div.z-cal-time span.h",function(){var l=k.parseSubHtml(k.h_a);k.status="h";k.showPopup(l)});this.$calendarWrap.on("click.timeselector","div.z-cal-time span.m",function(){var l=k.parseSubHtml(k.m_a);k.status="m";k.showPopup(l)});this.$calendarWrap.on("click.timeselector","div.z-cal-time span.s",function(){var l=k.parseSubHtml(k.s_a);k.status="s";k.showPopup(l)})},resume:function(){this.$ctime=this.$calendarWrap.find("div.z-cal-time");this.$button=this.$calendarWrap.find("button.ct-ok");this.ctime=this.$ctime.get(0);this.button=this.$button.get(0)},parseSubHtml:function(k){var m="";for(var l=0;l<k.length;l++){m+='<a href="javascript:void(0);" class="item">'+k[l]+"</a>"}m+='<a href="javascript:void(0);" class="x">x</a>';return m},showPopup:function(l){var m=this;this.popupannel=this.$calendarWrap.find("div.z-selectime").get(0);this.popupannel.innerHTML=l;d.removeClass(this.popupannel,"hidden");var k=m.status;m.$ctime.find("span").removeClass("on");switch(k){case"h":m.$ctime.find(".h").addClass("on");break;case"m":m.$ctime.find(".m").addClass("on");break;case"s":m.$ctime.find(".s").addClass("on");break}},_getPopupannel:function(){this.popupannel=this.$calendarWrap.find("div.z-selectime").get(0);return this.popupannel},hidePopup:function(){d.addClass(this.popupannel,"hidden")},update:function(){var o=this;var n=c(o.getTime("h"),2);var k=c(o.getTime("m"),2);var l=c(o.getTime("s"),2);o._parent._time=o.time;o.$ctime.find(".h").html(n);o.$ctime.find(".m").html(k);o.$ctime.find(".s").html(l);return o},set:function(k,l){var m=this;l=Number(l);switch(k){case"h":m.time.setHours(l);break;case"m":m.time.setMinutes(l);break;case"s":m.time.setSeconds(l);break}m.update()},getTime:function(k){var l=this;var m=l.time;switch(k){case"h":return m.getHours();case"m":return m.getMinutes();case"s":return m.getSeconds()}},add:function(){var m=this;var k=m.status;var l=m.getTime(k);l++;m.set(k,l)},minus:function(){var m=this;var k=m.status;var l=m.getTime(k);l--;m.set(k,l)},beforeDestroy:function(){if(this.rendered){this.ownerWindow.jQuery.cleanData(this.calendarWrap.getElementsByTagName("*"));this.ownerWindow.jQuery.cleanData(this.$calendarWrap);this.ownerWindow.jQuery.cleanData(this.$ctime);this.ownerWindow.jQuery.cleanData(this.$button);this.$calendarWrap=this.calendarWrap=this.popupannel=this.$ctime=this.ctime=this.$button=this.button=null}delete this.container;delete this._parent}});g=function(p,n){if(!(this instanceof g)){return e.ComponentManager.getByDom(e.getDom(config),"DatePicker")}this.targetEl=p=e.getDom(p);this.id=this.ctype+"_"+(++e.idSeed._seed);p._components=p._components||{};p._components[this.ctype]=this.id;e.ComponentManager.register(this);var m;if(p.type!="text"){p=d.prevElement(p);m=p}var k;if(e.isIE&&e.ieVersion<8){k={date:e.CONTEXTPATH+"framework/images/Calendar.gif",time:e.CONTEXTPATH+"framework/images/TimeSelector.gif",datetime:e.CONTEXTPATH+"framework/images/DateTime.gif"}}else{k={date:"data:image/gif;base64,R0lGODlhEgASAPcAAAAAAP////r7/+3x//L1/8DR/93m/+Xs/+nv/+vw/+zx//P2//f5/2yDum2Eu5e1/5m3/5u3/5y5/566/6C8/6O9/6S+/6a//6nC/6vD/63F/67G/7fL/7fM/7zP/8HT/8XW/8jY/8nZ/8za/9He/9Tg/9bi/9jj/93n/9/o/+Dp/+Lq//H1/26Fu3CHvHSKvneNwHuRwn+UxYKXxoSZx7LJ/7XL/4+fwb/T/87d/9fj/+Xt/+nw/4SWu4OVuoSWuoWXu4mavoqbvpKiw5GhwuDq/36dxn+exoOiyYimzF2DrluAqk5ukWKIsmaLtmqQu2+Vvk5xlU5wk0xsjnWbw4Kr03uhx4Kq0YGoz3+lzIGmzIiv1YSpz4qv1Yis0lB1l36p0oGr04qx1m6Rr2yOq3GVsmqLprrL2bnK2LzM2rrK2MDP3OHp8HifvHWat3uiwLXI1rPG1MTT38bV4MXU38TT3t/o797n7uPr8UZ4mrLG1LnL2L7P28PT3sjX4cvZ4zxkfDhdcjRWajRWadPf5tLe5dfi6Nbh5+vy9vH2+fD1+DlieDhfdDVabjNVZ0psfUtsfenx9fD2+e/1+Extfefw9GiTo9Pq8ujx9OX29tdZNNhcN9lbOdpcOtpdO9pePN5wVOB1WcZrXMhvYMVpWsRoWdvb25Cw/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAKcALAAAAAASABIAAAj/AE8JHEiwoMGDCE+B2SKmixcuWqxQgfLESRMlS/IIDMOCgQAGLHgUMTHiQwcNFiR8MXWqygAWCwgo2IGihIgCNjJUiBCF5ZUdPBIgOJDiRA4QHmpgoABBCkssBlSsUIFCB4kQODhsuDDhAROWWWTMoEFjhowYMF64aOGgQYMpLN8k4oNIDp4/hg7NsXOmkp5JlFi2uUFkyBAiN5KM2uSJ1BEfPiCxdCNpT6Q1bPxcCvWpE6hMfx+xLBNEiGkhQZCI0sSplBHIok+NUQQHUxo7dAgRqnMHjd9JsckAGU68R48fkJPHNjMpTiU1d/oUKtSn9+/YlgAtYhSokaBBjsKLDg/P8pSp8+jTqy+f8GBAADs=",time:"data:image/gif;base64,R0lGODlhEgASAPeUAN/n7/z08/78/DlngZGrufXc1Pf0/Njd9Pbj3fvw7/vw7UFxi+ji+ZK225qj4tnl8mx9wJih4vPu+2KHnPzx+ufi+eXh+PLs+6PA3+ft93aIzpGsua+265Sd47fO5aGr6aSu6rbN592BakNyjb3P6Nnk9PXy/Kqy68fJ8bHG573H75Ctw5241OPp9ouU3MbV7Zye4qux6/Tu+6rE4KGn6WGNtq/I4uOOi2SJn6jA5NnV9eitnHSGyq6w7GmXvczT88DJ75avwHikz+Do9pG03dJZP9He8OehmG+Axezy+GqQpzxrhzxrhcXY7LXN579LNJO3272679vl8jpnhPrs6oux1vnl5Prn5vru6qS255ac4NPe8YWO1Yu02sHW67jL5qPB4ZOb3GWJoG+dxYSW2r3O2I6y1qi46m+Bxejv9v////vu+lKBo7O+7dZqU9/o9b9MNImb41iEq5CquG9/wubt9mqXwIuV17PI6Orh+MbW64+03cfE8tHd6Et3mH+P1f78/v78+1iDq4Cn1NnX9frs66bA326byOPs9by776zH4VqKrfTRzeXd9+KZheLo9dzY9tTP88NKMZu42wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAJQALAAAAAASABIAAAjYACkJHEiwoMGDCA0i8mCmiqISCSmlmaRHSoY6RjDYAXAwiY0WBzg4iADixwsfHAsaGoIiCgMZEiz0OIFnRcEHXw4kUmOFkQABgGioGFOG4IwtMSoIwOIGgYIbkciAUUJQyKMwJhIEgiPiyZE8dJqMIHjozZ0LVAoUkbQjQSMIXhYQZEGig45CCBwVUHCFDw8oOAj2GQQExpoAiANQ4HJm0YaCclJ80ALJgAFCLuIQGWAQgKAcbf6gQaIhy54pBA4C8FOjQQgnXdgMSJ0wiJglTCbMici7d8KAADs=",datetime:"data:image/gif;base64,R0lGODlhEgASAPcAAAAAAP////zx+vvu+v78/vTu++rh+PLs+/Pu+/f0/OXd9/Xy/Oji+efi+eXh+NTP89zY9tnV9b2678fE8tnX9by775ye4q6w7Jac4KGn6YWO1YuU3JSe3pGc2pag3pKc2I+b1nqJx3eGw3qIxJKg2pqn3J2o183R4fr7/3qKx5ej0pai0KGt2rjE7cnO4NDU4u3x/87V7PL1/4+gz8DR/93m/+Xs/+nv/+vw/+zx//P2//f5/5e1/5m3/5u3/5y5/566/6C8/6O9/6S+/6a//6nC/6vD/63F/67G/7fL/7fM/5io0bzP/8HT/8XW/8jY/8nZ/8za/9He/9Tg/9bi/9jj/93n/9/o/+Dp/+Lq/8fO3/H1/3eNwHuRwn+UxYKXxoSZx7LJ/7XL/4+fwb/T/87d/9fj/+Xt/+nw/4WXu4mavoqbvpKiw5GhwuDq/154pWqAqMzW6XuQtKW62l2DrluAqk5ukWKIsmaLtmqQu2+Vvk5xlU5wk0xsjnWbw4Kr03uhx4Kq0YGoz3+lzIGmzIiv1YSpz4qv1Yis0lB1l36p0oGr04qx1m6Rr2yOq3GVsmqLprzM2rrK2MDP3OHp8HifvHWat3uiwLXI1rPG1MTT38XU39/o797n7uPr8UZ4mrnL2L7P28PT3sjX4cvZ4zxkfDhdcjRWajRWadfi6Ovy9vH2+fD1+DlieDhfdDVabunx9fD2+e/1+Ofw9GiTo+jx9P78+/Xc1Pbj3fru6uKZheitnPvw7d2BasNKMb9LNL9MNNJZP9ZqU/rs6uehmPTRzfz08/vw7/nl5Prn5vrs6+OOi/78/Nvb2////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAM4ALAAAAAASABIAAAj/AJ0JHEiwoMGDCJ0pKsToECJDhAD50ZMHzx06dT4JXLRlB4odW9C4oRKliZIjQ34kaubsD4wtOmTkOGNlChQaYowI8bGHZaAzaHDcsHGlShknTMIUCdKDD0tBNbBkwWLFjJQnZJIgIQKEhx2Wg7x8AQPmi5cuXJaU8MCBxIw+LC+tCqVKkydSqWJIYFAAgYMLclhWGtOGDZs2Y+ZUCICsGDNmBDK8cGYpFihYkyiNatGAWS5huHgte8DC2SM1a1KvUdNhwTFbwHr9ImZghLNGrDDVisRp04cDw24F87XrmAIRzhylWc4cRARluHTd4pVswgpnkGRlmiWpk6g4FgYYLRtvTIAGF85olWrlytSrU6jgYICQIAGFDW9YOmvGvz//EyakEIIKWvCXUEIBAQA7"}}ztype=n||p.getAttribute("ztype");ztype=ztype.toLowerCase();if(!m){if(!p.nextSibling||p.nextSibling.tagName!=="IMG"||p.nextSibling.src.indexOf(k[ztype])==-1){if(h()){var l='<span class="input-group-addon"><img class="z-datepicker-trigger" src="'+k[ztype]+'" align="absmiddle" width=18 vspace=1 style="cursor:pointer;"/></span>';p.insertAdjacentHTML("beforebegin",l)}else{var l='<img class="z-datepicker-trigger" src="'+k[ztype]+'" align="absmiddle" width=18 vspace=1 style="margin-left:-20px; cursor:pointer;"/>';p.insertAdjacentHTML("afterEnd",l)}if(e.isIE6&&p.parentNode.tagName=="TD"){p.parentNode.style.position="relative"}}if(h()){m=p.previousSibling}else{m=p.nextSibling}}this.triggerEl=m;var o=this.$targetEl=$(p);if(ztype=="date"){p.value=p.value.replace(/\s(\d{1,2}(:|.))+(\d{1,2})?$/,"");this.picker=new a({targetEl:p,triggerEl:m});this.picker.on("select",function(r){var q=e.Date.format(r.date,"yyyy-MM-dd");if(this.targetEl.value!=q){this.targetEl.value=q;this.$targetEl.change()}})}else{if(ztype=="datetime"){this.picker=new a({targetEl:p,triggerEl:m,showTime:true});this.picker.on("timeSelect",function(r){var q=e.Date.format(r.date,"yyyy-MM-dd hh:mm:ss");if(this.targetEl.value!=q){this.targetEl.value=q;this.$targetEl.change()}})}else{if(ztype=="time"){this.picker=new j({targetEl:p,triggerEl:m,showTime:true});this.picker.on("timeSelect",function(r){var q=e.Date.format(r.date,"hh:mm:ss");if(this.targetEl.value!=q){this.targetEl.value=q;this.$targetEl.change()}})}}}o=p=m=null;this.initEvents()};g.prototype={ctype:"DatePicker",initEvents:function(){var k=this;if(k.targetEl.disabled===true){k.disable()}d.onPropertyChange(k.targetEl,"disabled",k.syncDisabled,k)},syncDisabled:function(k,l){if(this.ignoreNextDisabledSync){this.ignoreNextDisabledSync=false;return}this.setDisabled(l);return l},setDisabled:function(k){return this[k?"disable":"enable"]()},disable:function(){if(this.triggerEl){e.Node.addClass(this.triggerEl,"grayscale");this.triggerEl.style.opacity=0.5}if(this.targetEl&&!this.targetEl.disabled){this.targetEl.disabled=true}this.picker.disable();this.disabled=true},enable:function(){if(this.triggerEl){e.Node.removeClass(this.triggerEl,"grayscale");this.triggerEl.style.opacity=1}if(this.targetEl&&this.targetEl.disabled){this.targetEl.disabled=false}this.picker.enable();this.disabled=false},destroy:function(){jQuery.cleanData(this.$targetEl);this.picker.destroy();this.picker=this.triggerEl=null;this.$targetEl=this.targetEl=null;e.ComponentManager.unregister(this)}};e.Calendar=a;e.TimeSelector=b;e.DatePicker=g;e.TimePicker=j})();
  /*! WebUploader 0.1.6 */
  (function(f,d){var c={},b=function(o,p){var m,l,n;if(typeof o==="string"){return e(o)}else{m=[];for(l=o.length,n=0;n<l;n++){m.push(e(o[n]))}return p.apply(null,m)}},k=function(n,m,l){if(arguments.length===2){l=m;m=null}b(m||[],function(){j(n,l,arguments)})},j=function(p,l,m){var n={exports:l},o;if(typeof l==="function"){m.length||(m=[b,n.exports,n]);o=l.apply(null,m);o!==undefined&&(n.exports=o)}c[p]=n.exports},e=function(m){var l=c[m]||f[m];if(!l){throw new Error("`"+m+"` is undefined")}return l},h=function(r){var m,p,q,l,o,n;n=function(t){return t&&(t.charAt(0).toUpperCase()+t.substr(1))};for(m in c){p=r;if(!c.hasOwnProperty(m)){continue}q=m.split("/");o=n(q.pop());while((l=n(q.shift()))){p[l]=p[l]||{};p=p[l]}p[o]=c[m]}return r},a=function(l){f.__dollar=l;return h(d(f,k,b))},g;if(typeof module==="object"&&typeof module.exports==="object"){module.exports=a()}else{if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{g=f.WebUploader;f.WebUploader=a();f.WebUploader.noConflict=function(){f.WebUploader=g}}}})(window,function(b,c,a){c("dollar-third",[],function(){var d=b.__dollar||b.jQuery||b.Zepto;if(!d){throw new Error("jQuery or Zepto not found!")}return d});c("dollar",["dollar-third"],function(d){return d});c("promise-third",["dollar"],function(d){return{Deferred:d.Deferred,when:d.when,isPromise:function(e){return e&&typeof e.then==="function"}}});c("promise",["promise-third"],function(d){return d});c("base",["dollar","promise"],function(h,k){var g=function(){},f=Function.call;function e(l){return function(){return f.apply(l,arguments)}}function j(m,l){return function(){return m.apply(l,arguments)}}function d(l){var m;if(Object.create){return Object.create(l)}else{m=function(){};m.prototype=l;return new m()}}return{version:"0.1.6",$:h,Deferred:k.Deferred,isPromise:k.isPromise,when:k.when,browser:(function(p){var o={},n=p.match(/WebKit\/([\d.]+)/),l=p.match(/Chrome\/([\d.]+)/)||p.match(/CriOS\/([\d.]+)/),t=p.match(/MSIE\s([\d\.]+)/)||p.match(/(?:trident)(?:.*rv:([\w.]+))?/i),q=p.match(/Firefox\/([\d.]+)/),r=p.match(/Safari\/([\d.]+)/),m=p.match(/OPR\/([\d.]+)/);n&&(o.webkit=parseFloat(n[1]));l&&(o.chrome=parseFloat(l[1]));t&&(o.ie=parseFloat(t[1]));q&&(o.firefox=parseFloat(q[1]));r&&(o.safari=parseFloat(r[1]));m&&(o.opera=parseFloat(m[1]));return o})(navigator.userAgent),os:(function(n){var m={},l=n.match(/(?:Android);?[\s\/]+([\d.]+)?/),o=n.match(/(?:iPad|iPod|iPhone).*OS\s([\d_]+)/);l&&(m.android=parseFloat(l[1]));o&&(m.ios=parseFloat(o[1].replace(/_/g,".")));return m})(navigator.userAgent),inherits:function(n,m,l){var o;if(typeof m==="function"){o=m;m=null}else{if(m&&m.hasOwnProperty("constructor")){o=m.constructor}else{o=function(){return n.apply(this,arguments)}}}h.extend(true,o,n,l||{});o.__super__=n.prototype;o.prototype=d(n.prototype);m&&h.extend(true,o.prototype,m);return o},noop:g,bindFn:j,log:(function(){if(b.console){return j(console.log,console)}return g})(),nextTick:(function(){return function(l){setTimeout(l,1)}})(),slice:e([].slice),guid:(function(){var l=0;return function(o){var m=(+new Date()).toString(32),n=0;for(;n<5;n++){m+=Math.floor(Math.random()*65535).toString(32)}return(o||"wu_")+m+(l++).toString(32)}})(),formatSize:function(n,l,m){var o;m=m||["B","K","M","G","TB"];while((o=m.shift())&&n>1024){n=n/1024}return(o==="B"?n:n.toFixed(l||2))+o}}});c("mediator",["base"],function(f){var g=f.$,l=[].slice,k=/\s+/,e;function d(m,n,p,o){return g.grep(m,function(q){return q&&(!n||q.e===n)&&(!p||q.cb===p||q.cb._cb===p)&&(!o||q.ctx===o)})}function j(m,o,n){g.each((m||"").split(k),function(p,q){n(q,o)})}function h(q,o){var n=false,p=-1,m=q.length,r;while(++p<m){r=q[p];if(r.cb.apply(r.ctx2,o)===false){n=true;break}}return !n}e={on:function(m,q,n){var o=this,p;if(!q){return this}p=this._events||(this._events=[]);j(m,q,function(r,u){var t={e:r};t.cb=u;t.ctx=n;t.ctx2=n||o;t.id=p.length;p.push(t)});return this},once:function(m,p,n){var o=this;if(!p){return o}j(m,p,function(q,t){var r=function(){o.off(q,r);return t.apply(n||o,arguments)};r._cb=t;o.on(q,r,n)});return o},off:function(o,m,n){var p=this._events;if(!p){return this}if(!o&&!m&&!n){this._events=[];return this}j(o,m,function(r,q){g.each(d(p,r,q,n),function(){delete p[this.id]})});return this},trigger:function(p){var n,o,m;if(!this._events||!p){return this}n=l.call(arguments,1);o=d(this._events,p);m=d(this._events,"all");return h(o,n)&&h(m,arguments)}};return g.extend({installTo:function(m){return g.extend(m,e)}},e)});c("uploader",["base","mediator"],function(d,f){var e=d.$;function g(h){this.options=e.extend(true,{},g.options,h);this._init(this.options)}g.options={};f.installTo(g.prototype);e.each({upload:"start-upload",stop:"stop-upload",getFile:"get-file",getFiles:"get-files",addFile:"add-file",addFiles:"add-file",sort:"sort-files",removeFile:"remove-file",cancelFile:"cancel-file",skipFile:"skip-file",retry:"retry",isInProgress:"is-in-progress",makeThumb:"make-thumb",md5File:"md5-file",getDimension:"get-dimension",addButton:"add-btn",predictRuntimeType:"predict-runtime-type",refresh:"refresh",disable:"disable",enable:"enable",reset:"reset"},function(h,j){g.prototype[h]=function(){return this.request(j,arguments)}});e.extend(g.prototype,{state:"pending",_init:function(j){var h=this;h.request("init",j,function(){h.state="ready";h.trigger("ready")})},option:function(h,k){var j=this.options;if(arguments.length>1){if(e.isPlainObject(k)&&e.isPlainObject(j[h])){e.extend(j[h],k)}else{j[h]=k}}else{return h?j[h]:j}},getStats:function(){var h=this.request("get-stats");return h?{successNum:h.numOfSuccess,progressNum:h.numOfProgress,cancelNum:h.numOfCancel,invalidNum:h.numOfInvalid,uploadFailNum:h.numOfUploadFailed,queueNum:h.numOfQueue,interruptNum:h.numofInterrupt}:{}},trigger:function(k){var j=[].slice.call(arguments,1),l=this.options,h="on"+k.substring(0,1).toUpperCase()+k.substring(1);if(f.trigger.apply(this,arguments)===false||e.isFunction(l[h])&&l[h].apply(this,j)===false||e.isFunction(this[h])&&this[h].apply(this,j)===false||f.trigger.apply(f,[this,k].concat(j))===false){return false}return true},destroy:function(){this.request("destroy",arguments);this.off()},request:d.noop});d.create=g.create=function(h){return new g(h)};d.Uploader=g;return g});c("runtime/runtime",["base","mediator"],function(e,h){var g=e.$,f={},j=function(l){for(var k in l){if(l.hasOwnProperty(k)){return k}}return null};function d(k){this.options=g.extend({container:document.body},k);this.uid=e.guid("rt_")}g.extend(d.prototype,{getContainer:function(){var m=this.options,l,k;if(this._container){return this._container}l=g(m.container||document.body);k=g(document.createElement("div"));k.attr("id","rt_"+this.uid);k.css({position:"absolute",top:"0px",left:"0px",width:"1px",height:"1px",overflow:"hidden"});l.append(k);l.addClass("webuploader-container");this._container=k;this._parent=l;return k},init:e.noop,exec:e.noop,destroy:function(){this._container&&this._container.remove();this._parent&&this._parent.removeClass("webuploader-container");this.off()}});d.orders="html5,flash";d.addRuntime=function(l,k){f[l]=k};d.hasRuntime=function(k){return !!(k?f[k]:j(f))};d.create=function(n,l){var k,m;l=l||d.orders;g.each(l.split(/\s*,\s*/g),function(){if(f[this]){k=this;return false}});k=k||j(f);if(!k){throw new Error("Runtime Error")}m=new f[k](n);return m};h.installTo(d.prototype);return d});c("runtime/client",["base","mediator","runtime/runtime"],function(g,h,f){var d;d=(function(){var j={};return{add:function(k){j[k.uid]=k},get:function(l,k){var m;if(l){return j[l]}for(m in j){if(k&&j[m].__standalone){continue}return j[m]}return null},remove:function(k){delete j[k.uid]}}})();function e(l,k){var j=g.Deferred(),m;this.uid=g.guid("client_");this.runtimeReady=function(n){return j.done(n)};this.connectRuntime=function(o,n){if(m){throw new Error("already connected!")}j.done(n);if(typeof o==="string"&&d.get(o)){m=d.get(o)}m=m||d.get(null,k);if(!m){m=f.create(o,o.runtimeOrder);m.__promise=j.promise();m.once("ready",j.resolve);m.init();d.add(m);m.__client=1}else{g.$.extend(m.options,o);m.__promise.then(j.resolve);m.__client++}k&&(m.__standalone=k);return m};this.getRuntime=function(){return m};this.disconnectRuntime=function(){if(!m){return}m.__client--;if(m.__client<=0){d.remove(m);delete m.__promise;m.destroy()}m=null};this.exec=function(){if(!m){return}var n=g.slice(arguments);l&&n.unshift(l);return m.exec.apply(this,n)};this.getRuid=function(){return m&&m.uid};this.destroy=(function(n){return function(){n&&n.apply(this,arguments);this.trigger("destroy");this.off();this.exec("destroy");this.disconnectRuntime()}})(this.destroy)}h.installTo(e.prototype);return e});c("lib/dnd",["base","mediator","runtime/client"],function(e,h,d){var f=e.$;function g(j){j=this.options=f.extend({},g.options,j);j.container=f(j.container);if(!j.container.length){return}d.call(this,"DragAndDrop")}g.options={accept:null,disableGlobalDnd:false};e.inherits(d,{constructor:g,init:function(){var j=this;j.connectRuntime(j.options,function(){j.exec("init");j.trigger("ready")})}});h.installTo(g.prototype);return g});c("widgets/widget",["base","uploader"],function(g,e){var f=g.$,j=e.prototype._init,l=e.prototype.destroy,h={},d=[];function m(p){if(!p){return false}var o=p.length,n=f.type(p);if(p.nodeType===1&&o){return true}return n==="array"||n!=="function"&&n!=="string"&&(o===0||typeof o==="number"&&o>0&&(o-1) in p)}function k(n){this.owner=n;this.options=n.options}f.extend(k.prototype,{init:g.noop,invoke:function(n,o){var p=this.responseMap;if(!p||!(n in p)||!(p[n] in this)||!f.isFunction(this[p[n]])){return h}return this[p[n]].apply(this,o)},request:function(){return this.owner.request.apply(this.owner,arguments)}});f.extend(e.prototype,{_init:function(){var p=this,o=p._widgets=[],n=p.options.disableWidgets||"";f.each(d,function(r,q){(!n||!~n.indexOf(q._name))&&o.push(new q(p))});return j.apply(p,arguments)},request:function(o,w,A){var r=0,x=this._widgets,u=x&&x.length,q=[],p=[],t,n,B,y;w=m(w)?w:[w];for(;r<u;r++){t=x[r];n=t.invoke(o,w);if(n!==h){if(g.isPromise(n)){p.push(n)}else{q.push(n)}}}if(A||p.length){B=g.when.apply(g,p);y=B.pipe?"pipe":"then";return B[y](function(){var C=g.Deferred(),D=arguments;if(D.length===1){D=D[0]}setTimeout(function(){C.resolve(D)},1);return C.promise()})[A?y:"done"](A||g.noop)}else{return q[0]}},destroy:function(){l.apply(this,arguments);this._widgets=null}});e.register=k.register=function(o,q){var p={init:"init",destroy:"destroy",name:"anonymous"},n;if(arguments.length===1){q=o;f.each(q,function(r){if(r[0]==="_"||r==="name"){r==="name"&&(p.name=q.name);return}p[r.replace(/[A-Z]/g,"-$&").toLowerCase()]=r})}else{p=f.extend(p,o)}q.responseMap=p;n=g.inherits(k,q);n._name=p.name;d.push(n);return n};e.unRegister=k.unRegister=function(n){if(!n||n==="anonymous"){return}for(var o=d.length;o--;){if(d[o]._name===n){d.splice(o,1)}}};return k});c("widgets/filednd",["base","uploader","lib/dnd","widgets/widget"],function(e,g,d){var f=e.$;g.options.dnd="";return g.register({name:"dnd",init:function(m){if(!m.dnd||this.request("predict-runtime-type")!=="html5"){return}var l=this,h=e.Deferred(),j=f.extend({},{disableGlobalDnd:m.disableGlobalDnd,container:m.dnd,accept:m.accept}),k;this.dnd=k=new d(j);k.once("ready",h.resolve);k.on("drop",function(n){l.request("add-file",[n])});k.on("accept",function(n){return l.owner.trigger("dndAccept",n)});k.init();return h.promise()},destroy:function(){this.dnd&&this.dnd.destroy()}})});c("lib/filepaste",["base","mediator","runtime/client"],function(f,h,e){var g=f.$;function d(j){j=this.options=g.extend({},j);j.container=g(j.container||document.body);e.call(this,"FilePaste")}f.inherits(e,{constructor:d,init:function(){var j=this;j.connectRuntime(j.options,function(){j.exec("init");j.trigger("ready")})}});h.installTo(d.prototype);return d});c("widgets/filepaste",["base","uploader","lib/filepaste","widgets/widget"],function(e,g,d){var f=e.$;return g.register({name:"paste",init:function(l){if(!l.paste||this.request("predict-runtime-type")!=="html5"){return}var k=this,h=e.Deferred(),j=f.extend({},{container:l.paste,accept:l.accept}),m;this.paste=m=new d(j);m.once("ready",h.resolve);m.on("paste",function(n){k.owner.request("add-file",[n])});m.init();return h.promise()},destroy:function(){this.paste&&this.paste.destroy()}})});c("lib/blob",["base","runtime/client"],function(e,d){function f(g,j){var h=this;h.source=j;h.ruid=g;this.size=j.size||0;if(!j.type&&this.ext&&~"jpg,jpeg,png,gif,bmp".indexOf(this.ext)){this.type="image/"+(this.ext==="jpg"?"jpeg":this.ext)}else{this.type=j.type||"application/octet-stream"}d.call(h,"Blob");this.uid=j.uid||this.uid;if(g){h.connectRuntime(g)}}e.inherits(d,{constructor:f,slice:function(h,g){return this.exec("slice",h,g)},getSource:function(){return this.source}});return f});c("lib/file",["base","lib/blob"],function(g,h){var f=1,d=/\.([^.]+)$/;function e(j,k){var l;this.name=k.name||("untitled"+f++);l=d.exec(k.name)?RegExp.$1.toLowerCase():"";if(!l&&k.type){l=/\/(jpg|jpeg|png|gif|bmp)$/i.exec(k.type)?RegExp.$1.toLowerCase():"";this.name+="."+l}this.ext=l;this.lastModifiedDate=k.lastModifiedDate||(new Date()).toLocaleString();h.apply(this,arguments)}return g.inherits(h,e)});c("lib/filepicker",["base","runtime/client","lib/file"],function(g,f,e){var h=g.$;function d(j){j=this.options=h.extend({},d.options,j);j.container=h(j.id);if(!j.container.length){throw new Error("按钮指定错误")}j.innerHTML=j.innerHTML||j.label||j.container.html()||"";j.button=h(j.button||document.createElement("div"));j.button.html(j.innerHTML);j.container.html(j.button);f.call(this,"FilePicker",true)}d.options={button:null,container:null,label:null,innerHTML:null,multiple:true,accept:null,name:"file"};g.inherits(f,{constructor:d,init:function(){var l=this,k=l.options,j=k.button;j.addClass("webuploader-pick");l.on("all",function(m){var n;switch(m){case"mouseenter":j.addClass("webuploader-pick-hover");break;case"mouseleave":j.removeClass("webuploader-pick-hover");break;case"change":n=l.exec("getFiles");l.trigger("select",h.map(n,function(o){o=new e(l.getRuid(),o);o._refer=k.container;return o}),k.container);break}});l.connectRuntime(k,function(){l.refresh();l.exec("init",k);l.trigger("ready")});this._resizeHandler=g.bindFn(this.refresh,this);h(b).on("resize",this._resizeHandler)},refresh:function(){var k=this.getRuntime().getContainer(),l=this.options.button,m=l.outerWidth?l.outerWidth():l.width(),j=l.outerHeight?l.outerHeight():l.height(),n=l.offset();m&&j&&k.css({bottom:"auto",right:"auto",width:m+"px",height:j+"px"}).offset(n)},enable:function(){var j=this.options.button;j.removeClass("webuploader-pick-disable");this.refresh()},disable:function(){var j=this.options.button;this.getRuntime().getContainer().css({top:"-99999px"});j.addClass("webuploader-pick-disable")},destroy:function(){var j=this.options.button;h(b).off("resize",this._resizeHandler);j.removeClass("webuploader-pick-disable webuploader-pick-hover webuploader-pick")}});return d});c("widgets/filepicker",["base","uploader","lib/filepicker","widgets/widget"],function(e,g,d){var f=e.$;f.extend(g.options,{pick:null,accept:null});return g.register({name:"picker",init:function(h){this.pickers=[];return h.pick&&this.addBtn(h.pick)},refresh:function(){f.each(this.pickers,function(){this.refresh()})},addBtn:function(k){var m=this,l=m.options,j=l.accept,h=[];if(!k){return}f.isPlainObject(k)||(k={id:k});f(k.id).each(function(){var p,o,n;n=e.Deferred();p=f.extend({},k,{accept:f.isPlainObject(j)?[j]:j,swf:l.swf,runtimeOrder:l.runtimeOrder,id:this});o=new d(p);o.once("ready",n.resolve);o.on("select",function(q){m.owner.request("add-file",[q])});o.on("dialogopen",function(){m.owner.trigger("dialogOpen",o.button)});o.init();m.pickers.push(o);h.push(n.promise())});return e.when.apply(e,h)},disable:function(){f.each(this.pickers,function(){this.disable()})},enable:function(){f.each(this.pickers,function(){this.enable()})},destroy:function(){f.each(this.pickers,function(){this.destroy()});this.pickers=null}})});c("lib/image",["base","runtime/client","lib/blob"],function(f,e,h){var g=f.$;function d(j){this.options=g.extend({},d.options,j);e.call(this,"Image");this.on("load",function(){this._info=this.exec("info");this._meta=this.exec("meta")})}d.options={quality:90,crop:false,preserveHeaders:false,allowMagnify:false};f.inherits(e,{constructor:d,info:function(j){if(j){this._info=j;return this}return this._info},meta:function(j){if(j){this._meta=j;return this}return this._meta},loadFromBlob:function(j){var l=this,k=j.getRuid();this.connectRuntime(k,function(){l.exec("init",l.options);l.exec("loadFromBlob",j)})},resize:function(){var j=f.slice(arguments);return this.exec.apply(this,["resize"].concat(j))},crop:function(){var j=f.slice(arguments);return this.exec.apply(this,["crop"].concat(j))},getAsDataUrl:function(j){return this.exec("getAsDataUrl",j)},getAsBlob:function(k){var j=this.exec("getAsBlob",k);return new h(this.getRuid(),j)}});return d});c("widgets/image",["base","uploader","lib/image","widgets/widget"],function(e,h,d){var g=e.$,f;f=(function(j){var k=0,m=[],l=function(){var n;while(m.length&&k<j){n=m.shift();k+=n[0];n[1]()}};return function(p,o,n){m.push([o,n]);p.once("destroy",function(){k-=o;setTimeout(l,1)});setTimeout(l,1)}})(5*1024*1024);g.extend(h.options,{thumb:{width:110,height:110,quality:70,allowMagnify:true,crop:true,preserveHeaders:false,type:"image/jpeg"},compress:{width:1600,height:1600,quality:90,allowMagnify:false,crop:false,preserveHeaders:true}});return h.register({name:"image",makeThumb:function(l,k,m,j){var n,o;l=this.request("get-file",l);if(!l.type.match(/^image/)){k(true);return}n=g.extend({},this.options.thumb);if(g.isPlainObject(m)){n=g.extend(n,m);m=null}m=m||n.width;j=j||n.height;o=new d(n);o.once("load",function(){l._info=l._info||o.info();l._meta=l._meta||o.meta();if(m<=1&&m>0){m=l._info.width*m}if(j<=1&&j>0){j=l._info.height*j}o.resize(m,j)});o.once("complete",function(){k(false,o.getAsDataUrl(n.type));o.destroy()});o.once("error",function(p){k(p||true);o.destroy()});f(o,l.source.size,function(){l._info&&o.info(l._info);l._meta&&o.meta(l._meta);o.loadFromBlob(l.source)})},beforeSendFile:function(l){var n=this.options.compress||this.options.resize,k=n&&n.compressSize||0,m=n&&n.noCompressIfLarger||false,o,j;l=this.request("get-file",l);if(!n||!~"image/jpeg,image/jpg".indexOf(l.type)||l.size<k||l._compressed){return}n=g.extend({},n);j=e.Deferred();o=new d(n);j.always(function(){o.destroy();o=null});o.once("error",j.reject);o.once("load",function(){var q=n.width,p=n.height;l._info=l._info||o.info();l._meta=l._meta||o.meta();if(q<=1&&q>0){q=l._info.width*q}if(p<=1&&p>0){p=l._info.height*p}o.resize(q,p)});o.once("complete",function(){var p,q;try{p=o.getAsBlob(n.type);q=l.size;if(!m||p.size<q){l.source=p;l.size=p.size;l.trigger("resize",p.size,q)}l._compressed=true;j.resolve()}catch(r){j.resolve()}});l._info&&o.info(l._info);l._meta&&o.meta(l._meta);o.loadFromBlob(l.source);return j.promise()}})});c("file",["base","mediator"],function(h,l){var f=h.$,d="WU_FILE_",g=0,j=/\.([^.]+)$/,e={};function k(){return d+g++}function m(n){this.name=n.name||"Untitled";this.size=n.size||0;this.type=n.type||"application/octet-stream";this.lastModifiedDate=n.lastModifiedDate||(new Date()*1);this.id=k();this.ext=j.exec(this.name)?RegExp.$1:"";this.statusText="";e[this.id]=m.Status.INITED;this.source=n;this.loaded=0;this.on("error",function(o){this.setStatus(m.Status.ERROR,o)})}f.extend(m.prototype,{setStatus:function(o,p){var n=e[this.id];typeof p!=="undefined"&&(this.statusText=p);if(o!==n){e[this.id]=o;this.trigger("statuschange",o,n)}},getStatus:function(){return e[this.id]},getSource:function(){return this.source},destroy:function(){this.off();delete e[this.id]}});l.installTo(m.prototype);m.Status={INITED:"inited",QUEUED:"queued",PROGRESS:"progress",ERROR:"error",COMPLETE:"complete",CANCELLED:"cancelled",INTERRUPT:"interrupt",INVALID:"invalid"};return m});c("queue",["base","mediator","file"],function(e,j,h){var g=e.$,d=h.Status;function f(){this.stats={numOfQueue:0,numOfSuccess:0,numOfCancel:0,numOfProgress:0,numOfUploadFailed:0,numOfInvalid:0,numofDeleted:0,numofInterrupt:0};this._queue=[];this._map={}}g.extend(f.prototype,{append:function(k){this._queue.push(k);this._fileAdded(k);return this},prepend:function(k){this._queue.unshift(k);this._fileAdded(k);return this},getFile:function(k){if(typeof k!=="string"){return k}return this._map[k]},fetch:function(l){var k=this._queue.length,n,m;l=l||d.QUEUED;for(n=0;n<k;n++){m=this._queue[n];if(l===m.getStatus()){return m}}return null},sort:function(k){if(typeof k==="function"){this._queue.sort(k)}},getFiles:function(){var o=[].slice.call(arguments,0),l=[],n=0,k=this._queue.length,m;for(;n<k;n++){m=this._queue[n];if(o.length&&!~g.inArray(m.getStatus(),o)){continue}l.push(m)}return l},removeFile:function(k){var m=this,l=this._map[k.id];if(l){delete this._map[k.id];k.destroy();this.stats.numofDeleted++}},_fileAdded:function(k){var m=this,l=this._map[k.id];if(!l){this._map[k.id]=k;k.on("statuschange",function(o,n){m._onFileStatusChange(o,n)})}},_onFileStatusChange:function(k,l){var m=this.stats;switch(l){case d.PROGRESS:m.numOfProgress--;break;case d.QUEUED:m.numOfQueue--;break;case d.ERROR:m.numOfUploadFailed--;break;case d.INVALID:m.numOfInvalid--;break;case d.INTERRUPT:m.numofInterrupt--;break}switch(k){case d.QUEUED:m.numOfQueue++;break;case d.PROGRESS:m.numOfProgress++;break;case d.ERROR:m.numOfUploadFailed++;break;case d.COMPLETE:m.numOfSuccess++;break;case d.CANCELLED:m.numOfCancel++;break;case d.INVALID:m.numOfInvalid++;break;case d.INTERRUPT:m.numofInterrupt++;break}}});j.installTo(f.prototype);return f});c("widgets/queue",["base","uploader","queue","file","lib/file","runtime/client","widgets/widget"],function(g,d,e,m,j,l){var f=g.$,h=/\.\w+$/,k=m.Status;return d.register({name:"queue",init:function(n){var u=this,x,t,q,w,r,o,p;if(f.isPlainObject(n.accept)){n.accept=[n.accept]}if(n.accept){r=[];for(q=0,t=n.accept.length;q<t;q++){w=n.accept[q].extensions;w&&r.push(w)}if(r.length){o="\\."+r.join(",").replace(/,/g,"$|\\.").replace(/\*/g,".*")+"$"}u.accept=new RegExp(o,"i")}u.queue=new e();u.stats=u.queue.stats;if(this.request("predict-runtime-type")!=="html5"){return}x=g.Deferred();this.placeholder=p=new l("Placeholder");p.connectRuntime({runtimeOrder:"html5"},function(){u._ruid=p.getRuid();x.resolve()});return x.promise()},_wrapFile:function(n){if(!(n instanceof m)){if(!(n instanceof j)){if(!this._ruid){throw new Error("Can't add external files.")}n=new j(this._ruid,n)}n=new m(n)}return n},acceptFile:function(n){var o=!n||typeof n.size!="number"||this.accept&&h.exec(n.name)&&!this.accept.test(n.name);return !o},_addFile:function(n){var o=this;n=o._wrapFile(n);if(!o.owner.trigger("beforeFileQueued",n)){return}if(!o.acceptFile(n)){o.owner.trigger("error","Q_TYPE_DENIED",n);return}o.queue.append(n);o.owner.trigger("fileQueued",n);return n},getFile:function(n){return this.queue.getFile(n)},addFile:function(o){var n=this;if(!o.length){o=[o]}o=f.map(o,function(p){return n._addFile(p)});n.owner.trigger("filesQueued",o);if(n.options.auto){setTimeout(function(){n.request("start-upload")},20)}},getStats:function(){return this.stats},removeFile:function(o,n){var p=this;o=o.id?o:p.queue.getFile(o);this.request("cancel-file",o);if(n){this.queue.removeFile(o)}},getFiles:function(){return this.queue.getFiles.apply(this.queue,arguments)},fetchFile:function(){return this.queue.fetch.apply(this.queue,arguments)},retry:function(q,o){var t=this,r,p,n;if(q){q=q.id?q:t.queue.getFile(q);q.setStatus(k.QUEUED);o||t.request("start-upload");return}r=t.queue.getFiles(k.ERROR);p=0;n=r.length;for(;p<n;p++){q=r[p];q.setStatus(k.QUEUED)}t.request("start-upload")},sortFiles:function(){return this.queue.sort.apply(this.queue,arguments)},reset:function(){this.owner.trigger("reset");this.queue=new e();this.stats=this.queue.stats},destroy:function(){this.reset();this.placeholder&&this.placeholder.destroy()}})});c("widgets/runtime",["uploader","runtime/runtime","widgets/widget"],function(e,d){e.support=function(){return d.hasRuntime.apply(d,arguments)};return e.register({name:"runtime",init:function(){if(!this.predictRuntimeType()){throw Error("Runtime Error")}},predictRuntimeType:function(){var j=this.options.runtimeOrder||d.orders,h=this.type,g,f;if(!h){j=j.split(/\s*,\s*/g);for(g=0,f=j.length;g<f;g++){if(d.hasRuntime(j[g])){this.type=h=j[g];break}}}return h}})});c("lib/transport",["base","runtime/client","mediator"],function(e,d,g){var f=e.$;function h(k){var j=this;k=j.options=f.extend(true,{},h.options,k||{});d.call(this,"Transport");this._blob=null;this._formData=k.formData||{};this._headers=k.headers||{};this.on("progress",this._timeout);this.on("load error",function(){j.trigger("progress",1);clearTimeout(j._timer)})}h.options={server:"",method:"POST",withCredentials:false,fileVal:"file",timeout:2*60*1000,formData:{},headers:{},sendAsBinary:false};f.extend(h.prototype,{appendBlob:function(l,k,j){var n=this,m=n.options;if(n.getRuid()){n.disconnectRuntime()}n.connectRuntime(k.ruid,function(){n.exec("init")});n._blob=k;m.fileVal=l||m.fileVal;m.filename=j||m.filename},append:function(j,k){if(typeof j==="object"){f.extend(this._formData,j)}else{this._formData[j]=k}},setRequestHeader:function(j,k){if(typeof j==="object"){f.extend(this._headers,j)}else{this._headers[j]=k}},send:function(j){this.exec("send",j);this._timeout()},abort:function(){clearTimeout(this._timer);return this.exec("abort")},destroy:function(){this.trigger("destroy");this.off();this.exec("destroy");this.disconnectRuntime()},getResponse:function(){return this.exec("getResponse")},getResponseAsJson:function(){return this.exec("getResponseAsJson")},getStatus:function(){return this.exec("getStatus")},_timeout:function(){var j=this,k=j.options.timeout;if(!k){return}clearTimeout(j._timer);j._timer=setTimeout(function(){j.abort();j.trigger("error","timeout")},k)}});g.installTo(h.prototype);return h});c("widgets/upload",["base","uploader","file","lib/transport","widgets/widget"],function(f,k,j,l){var h=f.$,e=f.isPromise,d=j.Status;h.extend(k.options,{prepareNextFile:false,chunked:false,chunkSize:5*1024*1024,chunkRetry:2,threads:3,formData:{}});function g(p,q){var o=[],m=p.source,x=m.size,r=q?Math.ceil(x/q):1,n=0,w=0,u,t;t={file:p,has:function(){return !!o.length},shift:function(){return o.shift()},unshift:function(y){o.unshift(y)}};while(w<r){u=Math.min(q,x-n);o.push({file:p,start:n,end:q?(n+u):x,total:x,chunks:r,chunk:w++,cuted:t});n+=u}p.blocks=o.concat();p.remaning=o.length;return t}k.register({name:"upload",init:function(){var m=this.owner,n=this;this.runing=false;this.progress=false;m.on("startUpload",function(){n.progress=true}).on("uploadFinished",function(){n.progress=false});this.pool=[];this.stack=[];this.pending=[];this.remaning=0;this.__tick=f.bindFn(this._tick,this);m.on("uploadComplete",function(o){o.blocks&&h.each(o.blocks,function(q,p){p.transport&&(p.transport.abort(),p.transport.destroy());delete p.transport});delete o.blocks;delete o.remaning})},reset:function(){this.request("stop-upload",true);this.runing=false;this.pool=[];this.stack=[];this.pending=[];this.remaning=0;this._trigged=false;this._promise=null},startUpload:function(m){var o=this;h.each(o.request("get-files",d.INVALID),function(){o.request("remove-file",this)});if(m){m=m.id?m:o.request("get-file",m);if(m.getStatus()===d.INTERRUPT){h.each(o.pool,function(q,p){if(p.file!==m){return}p.transport&&p.transport.send()});m.setStatus(d.QUEUED)}else{if(m.getStatus()===d.PROGRESS){return}else{m.setStatus(d.QUEUED)}}}else{h.each(o.request("get-files",[d.INITED]),function(){this.setStatus(d.QUEUED)})}if(o.runing){return}o.runing=true;var n=[];h.each(o.pool,function(q,p){var r=p.file;if(r.getStatus()===d.INTERRUPT){n.push(r);o._trigged=false;p.transport&&p.transport.send()}});var m;while((m=n.shift())){m.setStatus(d.PROGRESS)}m||h.each(o.request("get-files",d.INTERRUPT),function(){this.setStatus(d.PROGRESS)});o._trigged=false;f.nextTick(o.__tick);o.owner.trigger("startUpload")},stopUpload:function(m,o){var n=this;if(m===true){o=m;m=null}if(n.runing===false){return}if(m){m=m.id?m:n.request("get-file",m);if(m.getStatus()!==d.PROGRESS&&m.getStatus()!==d.QUEUED){return}m.setStatus(d.INTERRUPT);h.each(n.pool,function(q,p){if(p.file!==m){return}p.transport&&p.transport.abort();n._putback(p);n._popBlock(p)});return f.nextTick(n.__tick)}n.runing=false;if(this._promise&&this._promise.file){this._promise.file.setStatus(d.INTERRUPT)}o&&h.each(n.pool,function(q,p){p.transport&&p.transport.abort();p.file.setStatus(d.INTERRUPT)});n.owner.trigger("stopUpload")},cancelFile:function(m){m=m.id?m:this.request("get-file",m);m.blocks&&h.each(m.blocks,function(p,o){var n=o.transport;if(n){n.abort();n.destroy();delete o.transport}});m.setStatus(d.CANCELLED);this.owner.trigger("fileDequeued",m)},isInProgress:function(){return !!this.progress},_getStats:function(){return this.request("get-stats")},skipFile:function(n,m){n=n.id?n:this.request("get-file",n);n.setStatus(m||d.COMPLETE);n.skipped=true;n.blocks&&h.each(n.blocks,function(q,p){var o=p.transport;if(o){o.abort();o.destroy();delete p.transport}});this.owner.trigger("uploadSkip",n)},_tick:function(){var o=this,n=o.options,m,p;if(o._promise){return o._promise.always(o.__tick)}if(o.pool.length<n.threads&&(p=o._nextBlock())){o._trigged=false;m=function(q){o._promise=null;q&&q.file&&o._startSend(q);f.nextTick(o.__tick)};o._promise=e(p)?p.always(m):m(p)}else{if(!o.remaning&&!o._getStats().numOfQueue&&!o._getStats().numofInterrupt){o.runing=false;o._trigged||f.nextTick(function(){o.owner.trigger("uploadFinished")});o._trigged=true}}},_putback:function(n){var m;n.cuted.unshift(n);m=this.stack.indexOf(n.cuted);if(!~m){this.stack.unshift(n.cuted)}},_getStack:function(){var n=0,m;while((m=this.stack[n++])){if(m.has()&&m.file.getStatus()===d.PROGRESS){return m}else{if(!m.has()||m.file.getStatus()!==d.PROGRESS&&m.file.getStatus()!==d.INTERRUPT){this.stack.splice(--n,1)}}}return null},_nextBlock:function(){var r=this,q=r.options,n,p,m,o;if((n=this._getStack())){if(q.prepareNextFile&&!r.pending.length){r._prepareNextFile()}return n.shift()}else{if(r.runing){if(!r.pending.length&&r._getStats().numOfQueue){r._prepareNextFile()}p=r.pending.shift();m=function(t){if(!t){return null}n=g(t,q.chunked?q.chunkSize:0);r.stack.push(n);return n.shift()};if(e(p)){o=p.file;p=p[p.pipe?"pipe":"then"](m);p.file=o;return p}return m(p)}}},_prepareNextFile:function(){var n=this,m=n.request("fetch-file"),p=n.pending,o;if(m){o=n.request("before-send-file",m,function(){if(m.getStatus()===d.PROGRESS||m.getStatus()===d.INTERRUPT){return m}return n._finishFile(m)});n.owner.trigger("uploadStart",m);m.setStatus(d.PROGRESS);o.file=m;o.done(function(){var q=h.inArray(o,p);~q&&p.splice(q,1,m)});o.fail(function(q){m.setStatus(d.ERROR,q);n.owner.trigger("uploadError",m,q);n.owner.trigger("uploadComplete",m)});p.push(o)}},_popBlock:function(n){var m=h.inArray(n,this.pool);this.pool.splice(m,1);n.file.remaning--;this.remaning--},_startSend:function(p){var n=this,m=p.file,o;if(m.getStatus()!==d.PROGRESS){if(m.getStatus()===d.INTERRUPT){n._putback(p)}return}n.pool.push(p);n.remaning++;p.blob=p.chunks===1?m.source:m.source.slice(p.start,p.end);o=n.request("before-send",p,function(){if(m.getStatus()===d.PROGRESS){n._doSend(p)}else{n._popBlock(p);f.nextTick(n.__tick)}});o.fail(function(){if(m.remaning===1){n._finishFile(m).always(function(){p.percentage=1;n._popBlock(p);n.owner.trigger("uploadComplete",m);f.nextTick(n.__tick)})}else{p.percentage=1;n.updateFileProgress(m);n._popBlock(p);f.nextTick(n.__tick)}})},_doSend:function(q){var w=this,n=w.owner,m=w.options,p=q.file,u=new l(m),r=h.extend({},m.formData),o=h.extend({},m.headers),x,t;q.transport=u;u.on("destroy",function(){delete q.transport;w._popBlock(q);f.nextTick(w.__tick)});u.on("progress",function(y){q.percentage=y;w.updateFileProgress(p)});x=function(A){var y;t=u.getResponseAsJson()||{};t._raw=u.getResponse();y=function(B){A=B};if(!n.trigger("uploadAccept",q,t,y)){A=A||"server"}return A};u.on("error",function(A,y){q.retried=q.retried||0;if(q.chunks>1&&~"http,abort".indexOf(A)&&q.retried<m.chunkRetry){q.retried++;u.send()}else{if(!y&&A==="server"){A=x(A)}p.setStatus(d.ERROR,A);n.trigger("uploadError",p,A);n.trigger("uploadComplete",p)}});u.on("load",function(){var y;if((y=x())){u.trigger("error",y,true);return}if(p.remaning===1){w._finishFile(p,t)}else{u.destroy()}});r=h.extend(r,{id:p.id,name:p.name,type:p.type,lastModifiedDate:p.lastModifiedDate,size:p.size});q.chunks>1&&h.extend(r,{chunks:q.chunks,chunk:q.chunk});n.trigger("uploadBeforeSend",q,r,o);u.appendBlob(m.fileVal,q.blob,p.name);u.append(r);u.setRequestHeader(o);u.send()},_finishFile:function(o,n,p){var m=this.owner;return m.request("after-send-file",arguments,function(){o.setStatus(d.COMPLETE);m.trigger("uploadSuccess",o,n,p)}).fail(function(q){if(o.getStatus()===d.PROGRESS){o.setStatus(d.ERROR,q)}m.trigger("uploadError",o,q)}).always(function(){m.trigger("uploadComplete",o)})},updateFileProgress:function(o){var n=0,m=0;if(!o.blocks){return}h.each(o.blocks,function(q,p){m+=(p.percentage||0)*(p.end-p.start)});n=m/o.size;this.owner.trigger("uploadProgress",o,n||0)}})});c("widgets/validator",["base","uploader","file","widgets/widget"],function(e,j,h){var g=e.$,d={},f;f={addValidator:function(l,k){d[l]=k},removeValidator:function(k){delete d[k]}};j.register({name:"validator",init:function(){var k=this;e.nextTick(function(){g.each(d,function(){this.call(k.owner)})})}});f.addValidator("fileNumLimit",function(){var o=this,n=o.options,m=0,k=parseInt(n.fileNumLimit,10),l=true;if(!k){return}o.on("beforeFileQueued",function(p){if(m>=k&&l){l=false;this.trigger("error","Q_EXCEED_NUM_LIMIT",k,p);setTimeout(function(){l=true},1)}return m>=k?false:true});o.on("fileQueued",function(){m++});o.on("fileDequeued",function(){m--});o.on("reset",function(){m=0})});f.addValidator("fileSizeLimit",function(){var o=this,n=o.options,m=0,k=parseInt(n.fileSizeLimit,10),l=true;if(!k){return}o.on("beforeFileQueued",function(p){var q=m+p.size>k;if(q&&l){l=false;this.trigger("error","Q_EXCEED_SIZE_LIMIT",k,p);setTimeout(function(){l=true},1)}return q?false:true});o.on("fileQueued",function(p){m+=p.size});o.on("fileDequeued",function(p){m-=p.size});o.on("reset",function(){m=0})});f.addValidator("fileSingleSizeLimit",function(){var m=this,l=m.options,k=l.fileSingleSizeLimit;if(!k){return}m.on("beforeFileQueued",function(n){if(n.size>k){n.setStatus(h.Status.INVALID,"exceed_size");this.trigger("error","F_EXCEED_SIZE",k,n);return false}})});f.addValidator("duplicate",function(){var n=this,l=n.options,k={};if(l.duplicate){return}function m(t){var r=0,q=0,o=t.length,p;for(;q<o;q++){p=t.charCodeAt(q);r=p+(r<<6)+(r<<16)-r}return r}n.on("beforeFileQueued",function(o){var p=o.__hash||(o.__hash=m(o.name+o.size+o.lastModifiedDate));if(k[p]){this.trigger("error","F_DUPLICATE",o);return false}});n.on("fileQueued",function(o){var p=o.__hash;p&&(k[p]=true)});n.on("fileDequeued",function(o){var p=o.__hash;p&&(delete k[p])});n.on("reset",function(){k={}})});return f});c("lib/md5",["runtime/client","mediator"],function(e,f){function d(){e.call(this,"Md5")}f.installTo(d.prototype);d.prototype.loadFromBlob=function(g){var h=this;if(h.getRuid()){h.disconnectRuntime()}h.connectRuntime(g.ruid,function(){h.exec("init");h.exec("loadFromBlob",g)})};d.prototype.getResult=function(){return this.exec("getResult")};return d});c("widgets/md5",["base","uploader","lib/md5","lib/blob","widgets/widget"],function(e,f,d,g){return f.register({name:"md5",md5File:function(l,n,h){var m=new d(),k=e.Deferred(),j=(l instanceof g)?l:this.request("get-file",l).source;m.on("progress load",function(o){o=o||{};k.notify(o.total?o.loaded/o.total:1)});m.on("complete",function(){k.resolve(m.getResult())});m.on("error",function(o){k.reject(o)});if(arguments.length>1){n=n||0;h=h||0;n<0&&(n=j.size+n);h<0&&(h=j.size+h);h=Math.min(h,j.size);j=j.slice(n,h)}m.loadFromBlob(j);return k.promise()}})});c("runtime/compbase",[],function(){function d(e,f){this.owner=e;this.options=e.options;this.getRuntime=function(){return f};this.getRuid=function(){return f.uid};this.trigger=function(){return e.trigger.apply(e,arguments)}}return d});c("runtime/html5/runtime",["base","runtime/runtime","runtime/compbase"],function(e,d,j){var f="html5",g={};function h(){var l={},m=this,k=this.destroy;d.apply(m,arguments);m.type=f;m.exec=function(p,t){var o=this,r=o.uid,q=e.slice(arguments,2),n;if(g[p]){n=l[r]=l[r]||new g[p](o,m);if(n[t]){return n[t].apply(n,q)}}};m.destroy=function(){return k&&k.apply(this,arguments)}}e.inherits(d,{constructor:h,init:function(){var k=this;setTimeout(function(){k.trigger("ready")},1)}});h.register=function(m,l){var k=g[m]=e.inherits(j,l);return k};if(b.Blob&&b.FileReader&&b.DataView){d.addRuntime(f,h)}return h});c("runtime/html5/blob",["runtime/html5/runtime","lib/blob"],function(e,d){return e.register("Blob",{slice:function(j,f){var g=this.owner.source,h=g.slice||g.webkitSlice||g.mozSlice;g=h.call(g,j,f);return new d(this.getRuid(),g)}})});c("runtime/html5/dnd",["base","runtime/html5/runtime","lib/file"],function(e,h,d){var g=e.$,f="webuploader-dnd-";return h.register("DragAndDrop",{init:function(){var j=this.elem=this.options.container;this.dragEnterHandler=e.bindFn(this._dragEnterHandler,this);this.dragOverHandler=e.bindFn(this._dragOverHandler,this);this.dragLeaveHandler=e.bindFn(this._dragLeaveHandler,this);this.dropHandler=e.bindFn(this._dropHandler,this);this.dndOver=false;j.on("dragenter",this.dragEnterHandler);j.on("dragover",this.dragOverHandler);j.on("dragleave",this.dragLeaveHandler);j.on("drop",this.dropHandler);if(this.options.disableGlobalDnd){g(document).on("dragover",this.dragOverHandler);g(document).on("drop",this.dropHandler)}},_dragEnterHandler:function(m){var l=this,k=l._denied||false,j;m=m.originalEvent||m;if(!l.dndOver){l.dndOver=true;j=m.dataTransfer.items;if(j&&j.length){l._denied=k=!l.trigger("accept",j)}l.elem.addClass(f+"over");l.elem[k?"addClass":"removeClass"](f+"denied")}m.dataTransfer.dropEffect=k?"none":"copy";return false},_dragOverHandler:function(k){var j=this.elem.parent().get(0);if(j&&!g.contains(j,k.currentTarget)){return false}clearTimeout(this._leaveTimer);this._dragEnterHandler.call(this,k);return false},_dragLeaveHandler:function(){var k=this,j;j=function(){k.dndOver=false;k.elem.removeClass(f+"over "+f+"denied")};clearTimeout(k._leaveTimer);k._leaveTimer=setTimeout(j,100);return false},_dropHandler:function(p){var m=this,k=m.getRuid(),j=m.elem.parent().get(0),o,n;if(j&&!g.contains(j,p.currentTarget)){return false}p=p.originalEvent||p;o=p.dataTransfer;try{n=o.getData("text/html")}catch(l){}m.dndOver=false;m.elem.removeClass(f+"over");if(n){return}m._getTansferFiles(o,function(q){m.trigger("drop",g.map(q,function(r){return new d(k,r)}))});return false},_getTansferFiles:function(q,r){var m=[],p=[],o,j,k,t,l,n,u;o=q.items;j=q.files;u=!!(o&&o[0].webkitGetAsEntry);for(l=0,n=j.length;l<n;l++){k=j[l];t=o&&o[l];if(u&&t.webkitGetAsEntry().isDirectory){p.push(this._traverseDirectoryTree(t.webkitGetAsEntry(),m))}else{m.push(k)}}e.when.apply(e,p).done(function(){if(!m.length){return}r(m)})},_traverseDirectoryTree:function(m,k){var j=e.Deferred(),l=this;if(m.isFile){m.file(function(n){k.push(n);j.resolve()})}else{if(m.isDirectory){m.createReader().readEntries(function(p){var o=p.length,r=[],n=[],q;for(q=0;q<o;q++){r.push(l._traverseDirectoryTree(p[q],n))}e.when.apply(e,r).then(function(){k.push.apply(k,n);j.resolve()},j.reject)})}}return j.promise()},destroy:function(){var j=this.elem;if(!j){return}j.off("dragenter",this.dragEnterHandler);j.off("dragover",this.dragOverHandler);j.off("dragleave",this.dragLeaveHandler);j.off("drop",this.dropHandler);if(this.options.disableGlobalDnd){g(document).off("dragover",this.dragOverHandler);g(document).off("drop",this.dropHandler)}}})});c("runtime/html5/filepaste",["base","runtime/html5/runtime","lib/file"],function(e,f,d){return f.register("FilePaste",{init:function(){var n=this.options,m=this.elem=n.container,k=".*",h,j,g,l;if(n.accept){h=[];for(j=0,g=n.accept.length;j<g;j++){l=n.accept[j].mimeTypes;l&&h.push(l)}if(h.length){k=h.join(",");k=k.replace(/,/g,"|").replace(/\*/g,".*")}}this.accept=k=new RegExp(k,"i");this.hander=e.bindFn(this._pasteHander,this);m.on("paste",this.hander)},_pasteHander:function(n){var o=[],k=this.getRuid(),j,m,h,l,g;n=n.originalEvent||n;j=n.clipboardData.items;for(l=0,g=j.length;l<g;l++){m=j[l];if(m.kind!=="file"||!(h=m.getAsFile())){continue}o.push(new d(k,h))}if(o.length){n.preventDefault();n.stopPropagation();this.trigger("paste",o)}},destroy:function(){this.elem.off("paste",this.hander)}})});c("runtime/html5/filepicker",["base","runtime/html5/runtime"],function(d,f){var e=d.$;return f.register("FilePicker",{init:function(){var h=this.getRuntime().getContainer(),n=this,j=n.owner,g=n.options,p=this.label=e(document.createElement("label")),q=this.input=e(document.createElement("input")),l,k,m,o;q.attr("type","file");q.attr("name",g.name);q.addClass("webuploader-element-invisible");p.on("click",function(){q.trigger("click");j.trigger("dialogopen")});p.css({opacity:0,width:"100%",height:"100%",display:"block",cursor:"pointer",background:"#ffffff"});if(g.multiple){q.attr("multiple","multiple")}if(g.accept&&g.accept.length>0){l=[];for(k=0,m=g.accept.length;k<m;k++){if(g.accept[k].extensions&&g.accept[k].extensions.length>0){l.push("."+g.accept[k].extensions.replace(/,/g,",."))}}q.attr("accept",l.join(","))}h.append(q);h.append(p);o=function(r){j.trigger(r.type)};q.on("change",function(t){var r=arguments.callee,u;n.files=t.target.files;u=this.cloneNode(true);u.value=null;this.parentNode.replaceChild(u,this);q.off();q=e(u).on("change",r).on("mouseenter mouseleave",o);j.trigger("change")});p.on("mouseenter mouseleave",o)},getFiles:function(){return this.files},destroy:function(){this.input.off();this.label.off()}})});c("runtime/html5/util",["base"],function(e){var f=b.createObjectURL&&b||b.URL&&URL.revokeObjectURL&&URL||b.webkitURL,g=e.noop,d=g;if(f){g=function(){return f.createObjectURL.apply(f,arguments)};d=function(){return f.revokeObjectURL.apply(f,arguments)}}return{createObjectURL:g,revokeObjectURL:d,dataURL2Blob:function(j){var m,o,l,k,h,n;n=j.split(",");if(~n[0].indexOf("base64")){m=atob(n[1])}else{m=decodeURIComponent(n[1])}l=new ArrayBuffer(m.length);o=new Uint8Array(l);for(k=0;k<m.length;k++){o[k]=m.charCodeAt(k)}h=n[0].split(":")[1].split(";")[0];return this.arrayBufferToBlob(l,h)},dataURL2ArrayBuffer:function(h){var k,m,j,l;l=h.split(",");if(~l[0].indexOf("base64")){k=atob(l[1])}else{k=decodeURIComponent(l[1])}m=new Uint8Array(k.length);for(j=0;j<k.length;j++){m[j]=k.charCodeAt(j)}return m.buffer},arrayBufferToBlob:function(h,k){var j=b.BlobBuilder||b.WebKitBlobBuilder,l;if(j){l=new j();l.append(h);return l.getBlob(k)}return new Blob([h],k?{type:k}:{})},canvasToDataUrl:function(h,j,k){return h.toDataURL(j,k/100)},parseMeta:function(h,j){j(false,{})},updateImageHead:function(h){return h}}});c("runtime/html5/imagemeta",["runtime/html5/util"],function(e){var d;d={parsers:{65505:[]},maxMetaDataSize:262144,parse:function(h,f){var j=this,g=new FileReader();g.onload=function(){f(false,j._parse(this.result));g=g.onload=g.onerror=null};g.onerror=function(k){f(k.message);g=g.onload=g.onerror=null};h=h.slice(0,j.maxMetaDataSize);g.readAsArrayBuffer(h.getSource())},_parse:function(k,p){if(k.byteLength<6){return}var m=new DataView(k),j=2,g=m.byteLength-4,n=j,o={},f,h,q,l;if(m.getUint16(0)===65496){while(j<g){f=m.getUint16(j);if(f>=65504&&f<=65519||f===65534){h=m.getUint16(j+2)+2;if(j+h>m.byteLength){break}q=d.parsers[f];if(!p&&q){for(l=0;l<q.length;l+=1){q[l].call(d,m,j,h,o)}}j+=h;n=j}else{break}}if(n>6){if(k.slice){o.imageHead=k.slice(2,n)}else{o.imageHead=new Uint8Array(k).subarray(2,n)}}}return o},updateImageHead:function(f,g){var j=this._parse(f,true),k,h,l;l=2;if(j.imageHead){l=2+j.imageHead.byteLength}if(f.slice){h=f.slice(l)}else{h=new Uint8Array(f).subarray(l)}k=new Uint8Array(g.byteLength+2+h.byteLength);k[0]=255;k[1]=216;k.set(new Uint8Array(g),2);k.set(new Uint8Array(h),g.byteLength+2);return k.buffer}};e.parseMeta=function(){return d.parse.apply(d,arguments)};e.updateImageHead=function(){return d.updateImageHead.apply(d,arguments)};return d});c("runtime/html5/imagemeta/exif",["base","runtime/html5/imagemeta"],function(f,e){var d={};d.ExifMap=function(){return this};d.ExifMap.prototype.map={Orientation:274};d.ExifMap.prototype.get=function(g){return this[g]||this[this.map[g]]};d.exifTagTypes={1:{getValue:function(h,g){return h.getUint8(g)},size:1},2:{getValue:function(h,g){return String.fromCharCode(h.getUint8(g))},size:1,ascii:true},3:{getValue:function(j,g,h){return j.getUint16(g,h)},size:2},4:{getValue:function(j,g,h){return j.getUint32(g,h)},size:4},5:{getValue:function(j,g,h){return j.getUint32(g,h)/j.getUint32(g+4,h)},size:8},9:{getValue:function(j,g,h){return j.getInt32(g,h)},size:4},10:{getValue:function(j,g,h){return j.getInt32(g,h)/j.getInt32(g+4,h)},size:8}};d.exifTagTypes[7]=d.exifTagTypes[1];d.getExifValue=function(r,q,l,p,j,g){var t=d.exifTagTypes[p],h,k,u,m,o,n;if(!t){f.log("Invalid Exif data: Invalid tag type.");return}h=t.size*j;k=h>4?q+r.getUint32(l+8,g):(l+8);if(k+h>r.byteLength){f.log("Invalid Exif data: Invalid data offset.");return}if(j===1){return t.getValue(r,k,g)}u=[];for(m=0;m<j;m+=1){u[m]=t.getValue(r,k+m*t.size,g)}if(t.ascii){o="";for(m=0;m<u.length;m+=1){n=u[m];if(n==="\u0000"){break}o+=n}return o}return u};d.parseExifTag=function(m,h,l,k,j){var g=m.getUint16(l,k);j.exif[g]=d.getExifValue(m,h,l,m.getUint16(l+2,k),m.getUint32(l+4,k),k)};d.parseExifTags=function(n,k,h,m,l){var o,g,j;if(h+6>n.byteLength){f.log("Invalid Exif data: Invalid directory offset.");return}o=n.getUint16(h,m);g=h+2+12*o;if(g+4>n.byteLength){f.log("Invalid Exif data: Invalid directory size.");return}for(j=0;j<o;j+=1){this.parseExifTag(n,k,h+2+12*j,m,l)}return n.getUint32(g,m)};d.parseExifData=function(n,m,j,k){var h=m+10,l,g;if(n.getUint32(m+4)!==1165519206){return}if(h+8>n.byteLength){f.log("Invalid Exif data: Invalid segment size.");return}if(n.getUint16(m+8)!==0){f.log("Invalid Exif data: Missing byte alignment offset.");return}switch(n.getUint16(h)){case 18761:l=true;break;case 19789:l=false;break;default:f.log("Invalid Exif data: Invalid byte alignment marker.");return}if(n.getUint16(h+2,l)!==42){f.log("Invalid Exif data: Missing TIFF marker.");return}g=n.getUint32(h+4,l);k.exif=new d.ExifMap();g=d.parseExifTags(n,h,h+g,l,k)};e.parsers[65505].push(d.parseExifData);return d});c("runtime/html5/jpegencoder",[],function(e,d,f){function g(t){var w=this;var N=Math.round;var V=Math.floor;var o=new Array(64);var U=new Array(64);var ab=new Array(64);var ai=new Array(64);var L;var p;var B;var ae;var T=new Array(65535);var u=new Array(65535);var Z=new Array(64);var ac=new Array(64);var q=[];var M=0;var h=7;var O=new Array(64);var l=new Array(64);var af=new Array(64);var m=new Array(256);var P=new Array(2048);var K;var Y=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63];var n=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0];var j=[0,1,2,3,4,5,6,7,8,9,10,11];var J=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125];var D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250];var I=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0];var aj=[0,1,2,3,4,5,6,7,8,9,10,11];var x=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119];var F=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function W(ar){var aq=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99];for(var ap=0;ap<64;ap++){var av=V((aq[ap]*ar+50)/100);if(av<1){av=1}else{if(av>255){av=255}}o[Y[ap]]=av}var at=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99];for(var ao=0;ao<64;ao++){var au=V((at[ao]*ar+50)/100);if(au<1){au=1}else{if(au>255){au=255}}U[Y[ao]]=au}var an=[1,1.387039845,1.306562965,1.175875602,1,0.785694958,0.5411961,0.275899379];var am=0;for(var aw=0;aw<8;aw++){for(var al=0;al<8;al++){ab[am]=(1/(o[Y[am]]*an[aw]*an[al]*8));ai[am]=(1/(U[Y[am]]*an[aw]*an[al]*8));am++}}}function S(ap,aq){var ao=0;var ar=0;var an=new Array();for(var al=1;al<=16;al++){for(var am=1;am<=ap[al];am++){an[aq[ar]]=[];an[aq[ar]][0]=ao;an[aq[ar]][1]=al;ar++;ao++}ao*=2}return an}function ah(){L=S(n,j);p=S(I,aj);B=S(J,D);ae=S(x,F)}function G(){var am=1;var ao=2;for(var al=1;al<=15;al++){for(var an=am;an<ao;an++){u[32767+an]=al;T[32767+an]=[];T[32767+an][1]=al;T[32767+an][0]=an}for(var ap=-(ao-1);ap<=-am;ap++){u[32767+ap]=al;T[32767+ap]=[];T[32767+ap][1]=al;T[32767+ap][0]=ao-1+ap}am<<=1;ao<<=1}}function ag(){for(var al=0;al<256;al++){P[al]=19595*al;P[(al+256)>>0]=38470*al;P[(al+512)>>0]=7471*al+32768;P[(al+768)>>0]=-11059*al;P[(al+1024)>>0]=-21709*al;P[(al+1280)>>0]=32768*al+8421375;P[(al+1536)>>0]=-27439*al;P[(al+1792)>>0]=-5329*al}}function ak(am){var an=am[0];var al=am[1]-1;while(al>=0){if(an&(1<<al)){M|=(1<<h)}al--;h--;if(h<0){if(M==255){C(255);C(0)}else{C(M)}h=7;M=0}}}function C(al){q.push(m[al])}function R(al){C((al>>8)&255);C((al)&255)}function X(a9,aG){var aX,aW,aV,aU,aT,aR,aQ,aO;var a0=0;var a2;var aF=8;var az=64;for(a2=0;a2<aF;++a2){aX=a9[a0];aW=a9[a0+1];aV=a9[a0+2];aU=a9[a0+3];aT=a9[a0+4];aR=a9[a0+5];aQ=a9[a0+6];aO=a9[a0+7];var ba=aX+aO;var aZ=aX-aO;var a8=aW+aQ;var a1=aW-aQ;var a7=aV+aR;var a3=aV-aR;var a6=aU+aT;var a4=aU-aT;var aD=ba+a6;var aA=ba-a6;var aC=a8+a7;var aB=a8-a7;a9[a0]=aD+aC;a9[a0+4]=aD-aC;var aL=(aB+aA)*0.707106781;a9[a0+2]=aA+aL;a9[a0+6]=aA-aL;aD=a4+a3;aC=a3+a1;aB=a1+aZ;var aH=(aD-aB)*0.382683433;var aK=0.5411961*aD+aH;var aI=1.306562965*aB+aH;var aJ=aC*0.707106781;var aw=aZ+aJ;var av=aZ-aJ;a9[a0+5]=av+aK;a9[a0+3]=av-aK;a9[a0+1]=aw+aI;a9[a0+7]=aw-aI;a0+=8}a0=0;for(a2=0;a2<aF;++a2){aX=a9[a0];aW=a9[a0+8];aV=a9[a0+16];aU=a9[a0+24];aT=a9[a0+32];aR=a9[a0+40];aQ=a9[a0+48];aO=a9[a0+56];var ay=aX+aO;var aE=aX-aO;var at=aW+aQ;var aM=aW-aQ;var ap=aV+aR;var aP=aV-aR;var am=aU+aT;var a5=aU-aT;var ax=ay+am;var al=ay-am;var ar=at+ap;var ao=at-ap;a9[a0]=ax+ar;a9[a0+32]=ax-ar;var au=(ao+al)*0.707106781;a9[a0+16]=al+au;a9[a0+48]=al-au;ax=a5+aP;ar=aP+aM;ao=aM+aE;var aY=(ax-ao)*0.382683433;var aq=0.5411961*ax+aY;var bc=1.306562965*ao+aY;var an=ar*0.707106781;var bb=aE+an;var aN=aE-an;a9[a0+40]=aN+aq;a9[a0+24]=aN-aq;a9[a0+8]=bb+bc;a9[a0+56]=bb-bc;a0++}var aS;for(a2=0;a2<az;++a2){aS=a9[a2]*aG[a2];Z[a2]=(aS>0)?((aS+0.5)|0):((aS-0.5)|0)}return Z}function ad(){R(65504);R(16);C(74);C(70);C(73);C(70);C(0);C(1);C(1);C(0);R(1);R(1);C(0);C(0)}function Q(am,al){R(65472);R(17);C(8);R(al);R(am);C(3);C(1);C(17);C(0);C(2);C(17);C(1);C(3);C(17);C(1)}function E(){R(65499);R(132);C(0);for(var am=0;am<64;am++){C(o[am])}C(1);for(var al=0;al<64;al++){C(U[al])}}function A(){R(65476);R(418);C(0);for(var ap=0;ap<16;ap++){C(n[ap+1])}for(var ao=0;ao<=11;ao++){C(j[ao])}C(16);for(var an=0;an<16;an++){C(J[an+1])}for(var am=0;am<=161;am++){C(D[am])}C(1);for(var al=0;al<16;al++){C(I[al+1])}for(var at=0;at<=11;at++){C(aj[at])}C(17);for(var ar=0;ar<16;ar++){C(x[ar+1])}for(var aq=0;aq<=161;aq++){C(F[aq])}}function y(){R(65498);R(12);C(3);C(1);C(0);C(2);C(17);C(3);C(17);C(0);C(63);C(0)}function r(ap,al,aw,aB,aA){var ar=aA[0];var an=aA[240];var ao;var aC=16;var at=63;var aq=64;var aD=X(ap,al);for(var ax=0;ax<aq;++ax){ac[Y[ax]]=aD[ax]}var az=ac[0]-aw;aw=ac[0];if(az==0){ak(aB[0])}else{ao=32767+az;ak(aB[u[ao]]);ak(T[ao])}var am=63;for(;(am>0)&&(ac[am]==0);am--){}if(am==0){ak(ar);return aw}var ay=1;var aF;while(ay<=am){var av=ay;for(;(ac[ay]==0)&&(ay<=am);++ay){}var au=ay-av;if(au>=aC){aF=au>>4;for(var aE=1;aE<=aF;++aE){ak(an)}au=au&15}ao=32767+ac[ay];ak(aA[(au<<4)+u[ao]]);ak(T[ao]);ay++}if(am!=at){ak(ar)}return aw}function H(){var am=String.fromCharCode;for(var al=0;al<256;al++){m[al]=am(al)}}this.encode=function(az,au){if(au){k(au)}q=new Array();M=0;h=7;R(65496);ad();E();Q(az.width,az.height);A();y();var av=0;var aA=0;var ay=0;M=0;h=7;this.encode.displayName="_encode_";var aG=az.data;var aD=az.width;var ax=az.height;var aC=aD*4;var al=aD*3;var at,ar=0;var aw,aF,aH;var am,aB,ao,aq,ap;while(ar<ax){at=0;while(at<aC){am=aC*ar+at;aB=am;ao=-1;aq=0;for(ap=0;ap<64;ap++){aq=ap>>3;ao=(ap&7)*4;aB=am+(aq*aC)+ao;if(ar+aq>=ax){aB-=(aC*(ar+1+aq-ax))}if(at+ao>=aC){aB-=((at+ao)-aC+4)}aw=aG[aB++];aF=aG[aB++];aH=aG[aB++];O[ap]=((P[aw]+P[(aF+256)>>0]+P[(aH+512)>>0])>>16)-128;l[ap]=((P[(aw+768)>>0]+P[(aF+1024)>>0]+P[(aH+1280)>>0])>>16)-128;af[ap]=((P[(aw+1280)>>0]+P[(aF+1536)>>0]+P[(aH+1792)>>0])>>16)-128}av=r(O,ab,av,L,B);aA=r(l,ai,aA,p,ae);ay=r(af,ai,ay,p,ae);at+=32}ar+=8}if(h>=0){var aE=[];aE[1]=h+1;aE[0]=(1<<(h+1))-1;ak(aE)}R(65497);var an="data:image/jpeg;base64,"+btoa(q.join(""));q=[];return an};function k(am){if(am<=0){am=1}if(am>100){am=100}if(K==am){return}var al=0;if(am<50){al=Math.floor(5000/am)}else{al=Math.floor(200-am*2)}W(al);K=am}function aa(){if(!t){t=50}H();ah();G();ag();k(t)}aa()}g.encode=function(j,k){var h=new g(k);return h.encode(j)};return g});c("runtime/html5/androidpatch",["runtime/html5/util","runtime/html5/jpegencoder","base"],function(h,g,f){var d=h.canvasToDataUrl,e;h.canvasToDataUrl=function(l,n,q){var k,j,m,o,p;if(!f.os.android){return d.apply(null,arguments)}if(n==="image/jpeg"&&typeof e==="undefined"){o=d.apply(null,arguments);p=o.split(",");if(~p[0].indexOf("base64")){o=atob(p[1])}else{o=decodeURIComponent(p[1])}o=o.substring(0,2);e=o.charCodeAt(0)===255&&o.charCodeAt(1)===216}if(n==="image/jpeg"&&!e){j=l.width;m=l.height;k=l.getContext("2d");return g.encode(k.getImageData(0,0,j,m),q)}return d.apply(null,arguments)}});c("runtime/html5/image",["base","runtime/html5/runtime","runtime/html5/util"],function(d,g,e){var f="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D";return g.register("Image",{modified:false,init:function(){var j=this,h=new Image();h.onload=function(){j._info={type:j.type,width:this.width,height:this.height};if(!j._metas&&"image/jpeg"===j.type){e.parseMeta(j._blob,function(l,k){j._metas=k;j.owner.trigger("load")})}else{j.owner.trigger("load")}};h.onerror=function(){j.owner.trigger("error")};j._img=h},loadFromBlob:function(j){var k=this,h=k._img;k._blob=j;k.type=j.type;h.src=e.createObjectURL(j.getSource());k.owner.once("load",function(){e.revokeObjectURL(h.src)})},resize:function(k,h){var j=this._canvas||(this._canvas=document.createElement("canvas"));this._resize(this._img,j,k,h);this._blob=null;this.modified=true;this.owner.trigger("complete","resize")},crop:function(q,p,r,o,u){var n=this._canvas||(this._canvas=document.createElement("canvas")),j=this.options,m=this._img,l=m.naturalWidth,t=m.naturalHeight,k=this.getOrientation();u=u||1;n.width=r;n.height=o;j.preserveHeaders||this._rotate2Orientaion(n,k);this._renderImageToCanvas(n,m,-q,-p,l*u,t*u);this._blob=null;this.modified=true;this.owner.trigger("complete","crop")},getAsBlob:function(k){var h=this._blob,l=this.options,j;k=k||this.type;if(this.modified||this.type!==k){j=this._canvas;if(k==="image/jpeg"){h=e.canvasToDataUrl(j,k,l.quality);if(l.preserveHeaders&&this._metas&&this._metas.imageHead){h=e.dataURL2ArrayBuffer(h);h=e.updateImageHead(h,this._metas.imageHead);h=e.arrayBufferToBlob(h,k);return h}}else{h=e.canvasToDataUrl(j,k)}h=e.dataURL2Blob(h)}return h},getAsDataUrl:function(h){var j=this.options;h=h||this.type;if(h==="image/jpeg"){return e.canvasToDataUrl(this._canvas,h,j.quality)}else{return this._canvas.toDataURL(h)}},getOrientation:function(){return this._metas&&this._metas.exif&&this._metas.exif.get("Orientation")||1},info:function(h){if(h){this._info=h;return this}return this._info},meta:function(h){if(h){this._metas=h;return this}return this._metas},destroy:function(){var h=this._canvas;this._img.onload=null;if(h){h.getContext("2d").clearRect(0,0,h.width,h.height);h.width=h.height=0;this._canvas=null}this._img.src=f;this._img=this._blob=null},_resize:function(n,p,k,B){var j=this.options,q=n.width,A=n.height,l=this.getOrientation(),m,u,o,t,r;if(~[5,6,7,8].indexOf(l)){k^=B;B^=k;k^=B}m=Math[j.crop?"max":"min"](k/q,B/A);j.allowMagnify||(m=Math.min(1,m));u=q*m;o=A*m;if(j.crop){p.width=k;p.height=B}else{p.width=u;p.height=o}t=(p.width-u)/2;r=(p.height-o)/2;j.preserveHeaders||this._rotate2Orientaion(p,l);this._renderImageToCanvas(p,n,t,r,u,o)},_rotate2Orientaion:function(l,k){var m=l.width,h=l.height,j=l.getContext("2d");switch(k){case 5:case 6:case 7:case 8:l.width=h;l.height=m;break}switch(k){case 2:j.translate(m,0);j.scale(-1,1);break;case 3:j.translate(m,h);j.rotate(Math.PI);break;case 4:j.translate(0,h);j.scale(1,-1);break;case 5:j.rotate(0.5*Math.PI);j.scale(1,-1);break;case 6:j.rotate(0.5*Math.PI);j.translate(0,-h);break;case 7:j.rotate(0.5*Math.PI);j.translate(m,-h);j.scale(-1,1);break;case 8:j.rotate(-0.5*Math.PI);j.translate(-m,0);break}},_renderImageToCanvas:(function(){if(!d.os.ios){return function(m){var l=d.slice(arguments,1),k=m.getContext("2d");k.drawImage.apply(k,l)}}function j(o,l,u){var k=document.createElement("canvas"),w=k.getContext("2d"),r=0,p=u,t=u,n,m,q;k.width=1;k.height=u;w.drawImage(o,0,0);n=w.getImageData(0,0,1,u).data;while(t>r){m=n[(t-1)*4+3];if(m===0){p=t}else{r=t}t=(p+r)>>1}q=(t/u);return(q===0)?1:q}if(d.os.ios>=7){return function(k,m,q,p,r,n){var l=m.naturalWidth,t=m.naturalHeight,o=j(m,l,t);return k.getContext("2d").drawImage(m,0,0,l*o,t*o,q,p,r,n)}}function h(m){var l=m.naturalWidth,o=m.naturalHeight,n,k;if(l*o>1024*1024){n=document.createElement("canvas");n.width=n.height=1;k=n.getContext("2d");k.drawImage(m,-l+1,0);return k.getImageData(0,0,1,1).data[3]===0}else{return false}}return function(n,J,r,q,E,D){var p=J.naturalWidth,A=J.naturalHeight,F=n.getContext("2d"),m=h(J),k=this.type==="image/jpeg",I=1024,B=0,t=0,l,o,G,w,H,C,u;if(m){p/=2;A/=2}F.save();l=document.createElement("canvas");l.width=l.height=I;o=l.getContext("2d");G=k?j(J,p,A):1;w=Math.ceil(I*E/p);H=Math.ceil(I*D/A/G);while(B<A){C=0;u=0;while(C<p){o.clearRect(0,0,I,I);o.drawImage(J,-C,-B);F.drawImage(l,0,0,I,I,r+u,q+t,w,H);C+=I;u+=w}B+=I;t+=H}F.restore();l=o=null}})()})});c("runtime/html5/transport",["base","runtime/html5/runtime"],function(d,g){var e=d.noop,f=d.$;return g.register("Transport",{init:function(){this._status=0;this._response=null},send:function(){var h=this.owner,l=this.options,o=this._initAjax(),k=h._blob,n=l.server,m,p,j;if(l.sendAsBinary){n+=(/\?/.test(n)?"&":"?")+f.param(h._formData);p=k.getSource()}else{m=new FormData();f.each(h._formData,function(r,q){m.append(r,q)});m.append(l.fileVal,k.getSource(),l.filename||h._formData.name||"")}if(l.withCredentials&&"withCredentials" in o){o.open(l.method,n,true);o.withCredentials=true}else{o.open(l.method,n)}this._setRequestHeader(o,l.headers);if(p){o.overrideMimeType&&o.overrideMimeType("application/octet-stream");if(d.os.android){j=new FileReader();j.onload=function(){o.send(this.result);j=j.onload=null};j.readAsArrayBuffer(p)}else{o.send(p)}}else{o.send(m)}},getResponse:function(){return this._response},getResponseAsJson:function(){return this._parseJson(this._response)},getStatus:function(){return this._status},abort:function(){var h=this._xhr;if(h){h.upload.onprogress=e;h.onreadystatechange=e;h.abort();this._xhr=h=null}},destroy:function(){this.abort()},_initAjax:function(){var j=this,k=new XMLHttpRequest(),h=this.options;if(h.withCredentials&&!("withCredentials" in k)&&typeof XDomainRequest!=="undefined"){k=new XDomainRequest()}k.upload.onprogress=function(m){var l=0;if(m.lengthComputable){l=m.loaded/m.total}return j.trigger("progress",l)};k.onreadystatechange=function(){if(k.readyState!==4){return}k.upload.onprogress=e;k.onreadystatechange=e;j._xhr=null;j._status=k.status;if(k.status>=200&&k.status<300){j._response=k.responseText;return j.trigger("load")}else{if(k.status>=500&&k.status<600){j._response=k.responseText;return j.trigger("error","server")}}return j.trigger("error",j._status?"http":"abort")};j._xhr=k;return k},_setRequestHeader:function(j,h){f.each(h,function(k,l){j.setRequestHeader(k,l)})},_parseJson:function(k){var j;try{j=JSON.parse(k)}catch(h){j={}}return j}})});c("runtime/html5/md5",["runtime/html5/runtime"],function(q){var g=function(y,x){return(y+x)&4294967295},r=function(E,B,A,y,D,C){B=g(g(B,E),g(y,C));return g((B<<D)|(B>>>(32-D)),A)},d=function(B,A,F,E,y,D,C){return r((A&F)|((~A)&E),B,A,y,D,C)},n=function(B,A,F,E,y,D,C){return r((A&E)|(F&(~E)),B,A,y,D,C)},h=function(B,A,F,E,y,D,C){return r(A^F^E,B,A,y,D,C)},u=function(B,A,F,E,y,D,C){return r(F^(A|(~E)),B,A,y,D,C)},f=function(A,C){var B=A[0],y=A[1],E=A[2],D=A[3];B=d(B,y,E,D,C[0],7,-680876936);D=d(D,B,y,E,C[1],12,-389564586);E=d(E,D,B,y,C[2],17,606105819);y=d(y,E,D,B,C[3],22,-1044525330);B=d(B,y,E,D,C[4],7,-176418897);D=d(D,B,y,E,C[5],12,1200080426);E=d(E,D,B,y,C[6],17,-1473231341);y=d(y,E,D,B,C[7],22,-45705983);B=d(B,y,E,D,C[8],7,1770035416);D=d(D,B,y,E,C[9],12,-1958414417);E=d(E,D,B,y,C[10],17,-42063);y=d(y,E,D,B,C[11],22,-1990404162);B=d(B,y,E,D,C[12],7,1804603682);D=d(D,B,y,E,C[13],12,-40341101);E=d(E,D,B,y,C[14],17,-1502002290);y=d(y,E,D,B,C[15],22,1236535329);B=n(B,y,E,D,C[1],5,-165796510);D=n(D,B,y,E,C[6],9,-1069501632);E=n(E,D,B,y,C[11],14,643717713);y=n(y,E,D,B,C[0],20,-373897302);B=n(B,y,E,D,C[5],5,-701558691);D=n(D,B,y,E,C[10],9,38016083);E=n(E,D,B,y,C[15],14,-660478335);y=n(y,E,D,B,C[4],20,-405537848);B=n(B,y,E,D,C[9],5,568446438);D=n(D,B,y,E,C[14],9,-1019803690);E=n(E,D,B,y,C[3],14,-187363961);y=n(y,E,D,B,C[8],20,1163531501);B=n(B,y,E,D,C[13],5,-1444681467);D=n(D,B,y,E,C[2],9,-51403784);E=n(E,D,B,y,C[7],14,1735328473);y=n(y,E,D,B,C[12],20,-1926607734);B=h(B,y,E,D,C[5],4,-378558);D=h(D,B,y,E,C[8],11,-2022574463);E=h(E,D,B,y,C[11],16,1839030562);y=h(y,E,D,B,C[14],23,-35309556);B=h(B,y,E,D,C[1],4,-1530992060);D=h(D,B,y,E,C[4],11,1272893353);E=h(E,D,B,y,C[7],16,-155497632);y=h(y,E,D,B,C[10],23,-1094730640);B=h(B,y,E,D,C[13],4,681279174);D=h(D,B,y,E,C[0],11,-358537222);E=h(E,D,B,y,C[3],16,-722521979);y=h(y,E,D,B,C[6],23,76029189);B=h(B,y,E,D,C[9],4,-640364487);D=h(D,B,y,E,C[12],11,-421815835);E=h(E,D,B,y,C[15],16,530742520);y=h(y,E,D,B,C[2],23,-995338651);B=u(B,y,E,D,C[0],6,-198630844);D=u(D,B,y,E,C[7],10,1126891415);E=u(E,D,B,y,C[14],15,-1416354905);y=u(y,E,D,B,C[5],21,-57434055);B=u(B,y,E,D,C[12],6,1700485571);D=u(D,B,y,E,C[3],10,-1894986606);E=u(E,D,B,y,C[10],15,-1051523);y=u(y,E,D,B,C[1],21,-2054922799);B=u(B,y,E,D,C[8],6,1873313359);D=u(D,B,y,E,C[15],10,-30611744);E=u(E,D,B,y,C[6],15,-1560198380);y=u(y,E,D,B,C[13],21,1309151649);B=u(B,y,E,D,C[4],6,-145523070);D=u(D,B,y,E,C[11],10,-1120210379);E=u(E,D,B,y,C[2],15,718787259);y=u(y,E,D,B,C[9],21,-343485551);A[0]=g(B,A[0]);A[1]=g(y,A[1]);A[2]=g(E,A[2]);A[3]=g(D,A[3])},w=function(y){var A=[],x;for(x=0;x<64;x+=4){A[x>>2]=y.charCodeAt(x)+(y.charCodeAt(x+1)<<8)+(y.charCodeAt(x+2)<<16)+(y.charCodeAt(x+3)<<24)}return A},p=function(x){var A=[],y;for(y=0;y<64;y+=4){A[y>>2]=x[y]+(x[y+1]<<8)+(x[y+2]<<16)+(x[y+3]<<24)}return A},o=function(G){var A=G.length,x=[1732584193,-271733879,-1732584194,271733878],C,y,F,D,E,B;for(C=64;C<=A;C+=64){f(x,w(G.substring(C-64,C)))}G=G.substring(C-64);y=G.length;F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(C=0;C<y;C+=1){F[C>>2]|=G.charCodeAt(C)<<((C%4)<<3)}F[C>>2]|=128<<((C%4)<<3);if(C>55){f(x,F);for(C=0;C<16;C+=1){F[C]=0}}D=A*8;D=D.toString(16).match(/(.*?)(.{0,8})$/);E=parseInt(D[2],16);B=parseInt(D[1],16)||0;F[14]=E;F[15]=B;f(x,F);return x},t=function(G){var A=G.length,x=[1732584193,-271733879,-1732584194,271733878],C,y,F,D,E,B;for(C=64;C<=A;C+=64){f(x,p(G.subarray(C-64,C)))}G=(C-64)<A?G.subarray(C-64):new Uint8Array(0);y=G.length;F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(C=0;C<y;C+=1){F[C>>2]|=G[C]<<((C%4)<<3)}F[C>>2]|=128<<((C%4)<<3);if(C>55){f(x,F);for(C=0;C<16;C+=1){F[C]=0}}D=A*8;D=D.toString(16).match(/(.*?)(.{0,8})$/);E=parseInt(D[2],16);B=parseInt(D[1],16)||0;F[14]=E;F[15]=B;f(x,F);return x},m=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],k=function(A){var y="",x;for(x=0;x<4;x+=1){y+=m[(A>>(x*8+4))&15]+m[(A>>(x*8))&15]}return y},e=function(y){var A;for(A=0;A<y.length;A+=1){y[A]=k(y[A])}return y.join("")},l=function(x){return e(o(x))},j=function(){this.reset()};if(l("hello")!=="5d41402abc4b2a76b9719d911017c592"){g=function(A,D){var C=(A&65535)+(D&65535),B=(A>>16)+(D>>16)+(C>>16);return(B<<16)|(C&65535)}}j.prototype.append=function(x){if(/[\u0080-\uFFFF]/.test(x)){x=unescape(encodeURIComponent(x))}this.appendBinary(x);return this};j.prototype.appendBinary=function(A){this._buff+=A;this._length+=A.length;var y=this._buff.length,x;for(x=64;x<=y;x+=64){f(this._state,w(this._buff.substring(x-64,x)))}this._buff=this._buff.substr(x-64);return this};j.prototype.end=function(A){var D=this._buff,C=D.length,B,y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],x;for(B=0;B<C;B+=1){y[B>>2]|=D.charCodeAt(B)<<((B%4)<<3)}this._finish(y,C);x=!!A?this._state:e(this._state);this.reset();return x};j.prototype._finish=function(y,D){var B=D,A,C,x;y[B>>2]|=128<<((B%4)<<3);if(B>55){f(this._state,y);for(B=0;B<16;B+=1){y[B]=0}}A=this._length*8;A=A.toString(16).match(/(.*?)(.{0,8})$/);C=parseInt(A[2],16);x=parseInt(A[1],16)||0;y[14]=C;y[15]=x;f(this._state,y)};j.prototype.reset=function(){this._buff="";this._length=0;this._state=[1732584193,-271733879,-1732584194,271733878];return this};j.prototype.destroy=function(){delete this._state;delete this._buff;delete this._length};j.hash=function(A,x){if(/[\u0080-\uFFFF]/.test(A)){A=unescape(encodeURIComponent(A))}var y=o(A);return !!x?y:e(y)};j.hashBinary=function(y,x){var A=o(y);return !!x?A:e(A)};j.ArrayBuffer=function(){this.reset()};j.ArrayBuffer.prototype.append=function(x){var B=this._concatArrayBuffer(this._buff,x),A=B.length,y;this._length+=x.byteLength;for(y=64;y<=A;y+=64){f(this._state,p(B.subarray(y-64,y)))}this._buff=(y-64)<A?B.subarray(y-64):new Uint8Array(0);return this};j.ArrayBuffer.prototype.end=function(A){var D=this._buff,C=D.length,y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],B,x;for(B=0;B<C;B+=1){y[B>>2]|=D[B]<<((B%4)<<3)}this._finish(y,C);x=!!A?this._state:e(this._state);this.reset();return x};j.ArrayBuffer.prototype._finish=j.prototype._finish;j.ArrayBuffer.prototype.reset=function(){this._buff=new Uint8Array(0);this._length=0;this._state=[1732584193,-271733879,-1732584194,271733878];return this};j.ArrayBuffer.prototype.destroy=j.prototype.destroy;j.ArrayBuffer.prototype._concatArrayBuffer=function(B,y){var A=B.length,x=new Uint8Array(A+y.byteLength);x.set(B);x.set(new Uint8Array(y),A);return x};j.ArrayBuffer.hash=function(x,y){var A=t(new Uint8Array(x));return !!y?A:e(A)};return q.register("Md5",{init:function(){},loadFromBlob:function(A){var x=A.getSource(),B=2*1024*1024,C=Math.ceil(x.size/B),H=0,y=this.owner,E=new j.ArrayBuffer(),G=this,I=x.mozSlice||x.webkitSlice||x.slice,F,D;D=new FileReader();F=function(){var K,J;K=H*B;J=Math.min(K+B,x.size);D.onload=function(L){E.append(L.target.result);y.trigger("progress",{total:A.size,loaded:J})};D.onloadend=function(){D.onloadend=D.onload=null;if(++H<C){setTimeout(F,1)}else{setTimeout(function(){y.trigger("load");G.result=E.end();F=A=x=E=null;y.trigger("complete")},50)}};D.readAsArrayBuffer(I.call(x,K,J))};F()},getResult:function(){return this.result}})});c("runtime/flash/runtime",["base","runtime/runtime","runtime/compbase"],function(f,e,l){var j=f.$,g="flash",h={};function d(){var m;try{m=navigator.plugins["Shockwave Flash"];m=m.description}catch(n){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version")}catch(o){m="0.0"}}m=m.match(/\d+/g);return parseFloat(m[0]+"."+m[1],10)}function k(){var p={},n={},o=this.destroy,r=this,m=f.guid("webuploader_");e.apply(r,arguments);r.type=g;r.exec=function(w,A){var u=this,y=u.uid,x=f.slice(arguments,2),t;n[y]=u;if(h[w]){if(!p[y]){p[y]=new h[w](u,r)}t=p[y];if(t[A]){return t[A].apply(t,x)}}return r.flashExec.apply(u,arguments)};function q(t,y){var w=t.type||t,x,u;x=w.split("::");u=x[0];w=x[1];if(w==="Ready"&&u===r.uid){r.trigger("ready")}else{if(n[u]){n[u].trigger(w.toLowerCase(),t,y)}}}b[m]=function(){var t=arguments;setTimeout(function(){q.apply(null,t)},1)};this.jsreciver=m;this.destroy=function(){return o&&o.apply(this,arguments)};this.flashExec=function(t,x){var w=r.getFlash(),u=f.slice(arguments,2);return w.exec(this.uid,t,x,u)}}f.inherits(e,{constructor:k,init:function(){var m=this.getContainer(),o=this.options,n;m.css({position:"absolute",top:"-8px",left:"-8px",width:"9px",height:"9px",overflow:"hidden"});n='<object id="'+this.uid+'" type="application/x-shockwave-flash" data="'+o.swf+'" ';if(f.browser.ie){n+='classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" '}n+='width="100%" height="100%" style="outline:0"><param name="movie" value="'+o.swf+'" /><param name="flashvars" value="uid='+this.uid+"&jsreciver="+this.jsreciver+'" /><param name="wmode" value="transparent" /><param name="allowscriptaccess" value="always" /></object>';m.html(n)},getFlash:function(){if(this._flash){return this._flash}this._flash=j("#"+this.uid).get(0);return this._flash}});k.register=function(n,m){m=h[n]=f.inherits(l,j.extend({flashExec:function(){var o=this.owner,p=this.getRuntime();return p.flashExec.apply(o,arguments)}},m));return m};if(d()>=11.4){e.addRuntime(g,k)}return k});c("runtime/flash/filepicker",["base","runtime/flash/runtime"],function(d,f){var e=d.$;return f.register("FilePicker",{init:function(j){var k=e.extend({},j),g,h;g=k.accept&&k.accept.length;for(h=0;h<g;h++){if(!k.accept[h].title){k.accept[h].title="Files"}}delete k.button;delete k.id;delete k.container;this.flashExec("FilePicker","init",k)},destroy:function(){this.flashExec("FilePicker","destroy")}})});c("runtime/flash/image",["runtime/flash/runtime"],function(d){return d.register("Image",{loadFromBlob:function(f){var e=this.owner;e.info()&&this.flashExec("Image","info",e.info());e.meta()&&this.flashExec("Image","meta",e.meta());this.flashExec("Image","loadFromBlob",f.uid)}})});c("runtime/flash/transport",["base","runtime/flash/runtime","runtime/client"],function(e,g,d){var f=e.$;return g.register("Transport",{init:function(){this._status=0;this._response=null;this._responseJson=null},send:function(){var h=this.owner,k=this.options,m=this._initAjax(),j=h._blob,l=k.server,n;m.connectRuntime(j.ruid);if(k.sendAsBinary){l+=(/\?/.test(l)?"&":"?")+f.param(h._formData);n=j.uid}else{f.each(h._formData,function(p,o){m.exec("append",p,o)});m.exec("appendBlob",k.fileVal,j.uid,k.filename||h._formData.name||"")}this._setRequestHeader(m,k.headers);m.exec("send",{method:k.method,url:l,forceURLStream:k.forceURLStream,mimeType:"application/octet-stream"},n)},getStatus:function(){return this._status},getResponse:function(){return this._response||""},getResponseAsJson:function(){return this._responseJson},abort:function(){var h=this._xhr;if(h){h.exec("abort");h.destroy();this._xhr=h=null}},destroy:function(){this.abort()},_initAjax:function(){var h=this,j=new d("XMLHttpRequest");j.on("uploadprogress progress",function(l){var k=l.loaded/l.total;k=Math.min(1,Math.max(0,k));return h.trigger("progress",k)});j.on("load",function(){var k=j.exec("getStatus"),m=false,l="",n;j.off();h._xhr=null;if(k>=200&&k<300){m=true}else{if(k>=500&&k<600){m=true;l="server"}else{l="http"}}if(m){h._response=j.exec("getResponse");h._response=decodeURIComponent(h._response);n=function(o){try{if(b.JSON&&b.JSON.parse){return JSON.parse(o)}return new Function("return "+o).call()}catch(p){return{}}};h._responseJson=h._response?n(h._response):{}}j.destroy();j=null;return l?h.trigger("error",l):h.trigger("load")});j.on("error",function(){j.off();h._xhr=null;h.trigger("error","http")});h._xhr=j;return j},_setRequestHeader:function(j,h){f.each(h,function(k,l){j.exec("setRequestHeader",k,l)})}})});c("runtime/flash/blob",["runtime/flash/runtime","lib/blob"],function(d,e){return d.register("Blob",{slice:function(h,f){var g=this.flashExec("Blob","slice",h,f);return new e(g.uid,g)}})});c("runtime/flash/md5",["runtime/flash/runtime"],function(d){return d.register("Md5",{init:function(){},loadFromBlob:function(e){return this.flashExec("Md5","loadFromBlob",e.uid)}})});c("preset/all",["base","widgets/filednd","widgets/filepaste","widgets/filepicker","widgets/image","widgets/queue","widgets/runtime","widgets/upload","widgets/validator","widgets/md5","runtime/html5/blob","runtime/html5/dnd","runtime/html5/filepaste","runtime/html5/filepicker","runtime/html5/imagemeta/exif","runtime/html5/androidpatch","runtime/html5/image","runtime/html5/transport","runtime/html5/md5","runtime/flash/filepicker","runtime/flash/image","runtime/flash/transport","runtime/flash/blob","runtime/flash/md5"],function(d){return d});c("widgets/log",["base","uploader","widgets/widget"],function(e,l){var h=e.$,k=" http://static.tieba.baidu.com/tb/pms/img/st.gif??",g=(location.hostname||location.host||"protected").toLowerCase(),d=g&&/baidu/i.exec(g),f;if(!d){return}f={dv:3,master:"webuploader",online:/test/.exec(g)?0:1,module:"",product:g,type:0};function j(n){var p=h.extend({},f,n),m=k.replace(/^(.*)\?/,"$1"+h.param(p)),o=new Image();o.src=m}return l.register({name:"log",init:function(){var m=this.owner,o=0,n=0;m.on("error",function(p){j({type:2,c_error_code:p})}).on("uploadError",function(p,q){j({type:2,c_error_code:"UPLOAD_ERROR",c_reason:""+q})}).on("uploadComplete",function(p){o++;n+=p.size}).on("uploadFinished",function(){j({c_count:o,c_size:n});o=n=0});j({c_usage:1})}})});c("webuploader",["preset/all","widgets/log"],function(d){return d});return a("webuploader")});
  /*! Uploader */
  (function(){var z=window.Zving,Uploader;var ua=navigator.userAgent.toLowerCase();var isAndroid=/android|slik\/\d/.test(ua);var isWeixin=/micromessenger/i.test(ua);Uploader=function(config){if(!(this instanceof Uploader)){return z.ComponentManager.getByDom(z.getDom(config),"Uploader")}if(typeof config=="string"){this.id=config;var el=z.getDom(config);if(!el){window.console&&console.error("不存在id为 "+config+" 的uploader控件，请核对id！");return}this.el=el;if(this.el._components&&this.el._components[this.ctype]){return z.ComponentManager.getById(this.el._components[this.ctype])}if(this.el){this.setParemFormEl();this.initDom()}}else{if(!config||typeof config=="object"){z.mix(this,config,{id:"ZUploader_"+(++z.idSeed._seed),width:250,height:25,allowType:Uploader.allowType});if(this.renderTo){this.render(this.renderTo);delete this.renderTo}}}this.el._components=this.el._components||{};this.el._components[this.ctype]=this.id;z.ComponentManager.register(this)};Uploader.BackendMethod_Sumbit="com.zving.framework.ui.control.UploadUI.submit";Uploader.BackendMethod_getSessionID="com.zving.framework.ui.control.UploadUI.getSessionID";Uploader.BackendMethod_GetTaskStatus="com.zving.framework.ui.control.UploadUI.getTaskStatus";Uploader.BackendAction=z.CONTEXTPATH+"ZUploader.zhtml";Uploader.swfPath=z.JSLIBPATH+"components/Uploader.swf";Uploader.prototype={ctype:"Uploader",getString:function(){var attrs="";if(this.allowType){attrs+=" allowType="+this.allowType}if(this.fileCount){attrs+=" fileCount="+this.fileCount}if(this.fileMaxSize){attrs+=" fileMaxSize="+this.fileMaxSize}if(this.barColor){attrs+=" barColor="+this.barColor}var opt={id:this.id,width:this.width,height:this.height,swfPath:Uploader.swfPath,attrs:attrs};var html=[];html.push('<div id="{id}_outer" class="uploader-outer">');html.push('    <div class="btns">');html.push('        <div id="{id}_statusBar" class="uploader-statusBar"></div>');html.push('        <div id="{id}"'+attrs+">选择文件</div>");html.push('        <button id="{id}_btn" class="uploader-btn">开始上传</button>');html.push("    </div>");html.push('    <ul id="{id}_list" class="uploader-list"></ul>');html.push("</div>");html=html.join("");html=z.String.tmpl(html,opt);return html},setParemFormEl:function(el){el=el||this.el;if(el.getAttribute("allowType")){this.allowType=el.getAttribute("allowType")}if(el.getAttribute("fileCount")){this.fileCount=el.getAttribute("fileCount")}if(el.getAttribute("fileMaxSize")){this.fileMaxSize=el.getAttribute("fileMaxSize");if(this.fileMaxSize){var multiply={b:1,k:1024,m:1024*1024,g:1024*1024*1024,t:1024*1024*1024*1024};this.fileMaxSize=this.fileMaxSize.toLowerCase();if(/b|k|m|g|t/i.test(this.fileMaxSize)){this.fileMaxSize=this.fileMaxSize.replace(/(\d+(\.\d+)?)(b|k|m|g|t)/ig,function(a,b,c,d,e,f){return b*multiply[d]})}if(/\+|\-|\*|\//.test(this.fileMaxSize)){this.fileMaxSize=new Function("return "+this.fileMaxSize).call()}this.fileMaxSize=Math.round(this.fileMaxSize)}}if(el.getAttribute("fileName")){this.fileName=el.getAttribute("fileName")}if(el.getAttribute("barColor")){this.barColor=el.getAttribute("barColor")}if(el.getAttribute("width")){this.width=el.getAttribute("width")}},setStatusStr:function(str){this.$statusInfo.html(str)},initDom:function(){var me=this;var el=me.el;var id=el.id;if(el!=z.getDom(id)){window.console&&console.error("页面中存在多个id为"+id+"的元素，导致zSelect控件不能正常初始化，请更正。");return}this.$list=$("#"+this.id+"_list");this.$statusBar=$("#"+this.id+"_statusBar");this.$statusInfo=$('<span class="status"></span>').appendTo(this.$statusBar);this.$upload=$("#"+this.id+"_btn");var opts={swf:Uploader.swfPath,server:Uploader.BackendAction,pick:{id:"#"+this.id},compress:false,resize:false,chunked:false,duplicate:false,accept:{}};if(me.allowType){opts.accept.extensions=me.allowType;opts.accept.mimeTypes=Uploader.getMimeByExte(opts.accept.extensions)}else{opts.accept.extensions=me.allowType=Uploader.allowType;opts.accept.mimeTypes=me.allowMime=Uploader.allowMime}if(isAndroid&&isWeixin){opts.accept.extensions=""}var allowInfo=me.allowType;if(me.allowType==Uploader.allowType){allowInfo="图片、视频、Office文档等"}else{allowInfo="*."+me.allowType.replace(/,/g,",*.")}me.setStatusStr(allowInfo);if(me.fileCount>1){opts.pick.multiple=true;opts.fileNumLimit=me.fileCount}else{if(me.fileCount<=1){opts.pick.multiple=false;opts.fileNumLimit=me.fileCount}}if(me.fileMaxSize){opts.fileSingleSizeLimit=me.fileMaxSize}this.webuploader=WebUploader.create(opts);Zving.Uploader.checkVersion();Uploader.getSessionID();this.initEvents()},render:function(container){container=z.getDom(container);$(container).append(this.getString());return this},initEvents:function(){var me=this;this.fileNumber=0;this.fileSize=0;this.state="pedding";function updateStatus(){var text="",stats;if(me.state==="ready"){text="选中"+me.fileNumber+"个文件，共"+WebUploader.formatSize(me.fileSize)+""}else{if(me.state==="confirm"){stats=me.webuploader.getStats();if(stats.uploadFailNum){text="已成功上传"+stats.successNum+"个文件，"+stats.uploadFailNum+'个文件上传失败，<a class="retry" href="#">重新上传</a>失败文件或<a class="ignore" href="#">忽略</a>'}}else{stats=me.webuploader.getStats();text="共"+me.fileNumber+"（"+WebUploader.formatSize(me.fileSize)+"），已上传"+stats.successNum+"";if(stats.uploadFailNum){text+="，失败"+stats.uploadFailNum+""}}}me.$statusInfo.html(text)}function setState(val){var file,stats;if(val===me.state){return}me.state=val;switch(me.state){case"pedding":me.$list.hide();me.$statusBar.addClass("element-invisible");me.webuploader.refresh();break;case"ready":me.$list.show();me.$statusBar.removeClass("element-invisible");me.webuploader.refresh();break;case"uploading":break;case"paused":break;case"confirm":stats=me.webuploader.getStats();if(stats.successNum&&!stats.uploadFailNum){setState("finish");return}break;case"finish":stats=me.webuploader.getStats();if(stats.successNum){console.log("上传成功")}else{me.state="done";alert("上传失败，尝试刷新页面。");location.reload()}break}updateStatus()}var percentages={};this.webuploader.on("fileQueued",function(file){var $li=$('<li id="'+file.id+'" class="item"><h4 class="filename">'+file.name+'</h4><span class="cancel">×</span><span class="state">'+WebUploader.formatSize(file.size)+"等待上传...</span></li>").appendTo("#"+me.id+"_list");$state=$li.find(".state");$cancel=$li.find(".cancel");me.fileNumber++;me.fileSize+=file.size;percentages[file.id]=[file.size,0];if(me.fileNumber===1){me.$statusBar.show()}setState("ready");updateStatus();$cancel.on("click",function(evt){me.webuploader.removeFile(file)})});this.webuploader.on("fileDequeued",function(file){me.fileNumber--;me.fileSize-=file.size;if(!me.fileNumber){setState("pedding")}delete percentages[file.id];var $li=$("#"+file.id);$li.off().remove();updateStatus()});this.webuploader.on("uploadProgress",function(file,percentage){var $li=$("#"+file.id),$percent=$li.find(".progress .progress-bar");if(!$percent.length){$percent=$('<div class="progress progress-striped active"><div class="progress-bar" role="progressbar" style="width: 0%"></div></div>').appendTo($li).find(".progress-bar")}$li.find(".state").text("上传中");$percent.css("width",percentage*100+"%");percentages[file.id][1]=percentage;updateTotalProgress()});function updateTotalProgress(){var $progress=me.$statusBar.find(".progress .progress-bar");if(!$progress.length){$progress=$('<div class="progress progress-striped active"><div class="progress-bar" role="progressbar" style="width: 0%"></div></div>').appendTo(me.$statusBar).find(".progress-bar")}var loaded=0,total=0,percent;$.each(percentages,function(k,v){total+=v[0];loaded+=v[0]*v[1]});percent=total?loaded/total:0;$progress.css("width",Math.round(percent*100)+"%")}this.webuploader.on("uploadSuccess",function(file){$("#"+file.id).find(".state").text("已上传")});this.webuploader.on("uploadError",function(file){$("#"+file.id).find(".state").text("上传出错")});this.webuploader.on("uploadComplete",function(file){$("#"+file.id).find(".progress").fadeOut()});this.webuploader.on("all",function(type){var stats;switch(type){case"uploadFinished":setState("confirm");break;case"startUpload":setState("uploading");break;case"stopUpload":setState("paused");break}});this.webuploader.onError=function(code){if(code=="F_DUPLICATE"){z.MsgPop("已排除重复的待上传文件。")}else{if(code=="Q_EXCEED_NUM_LIMIT"){z.MsgPop("文件总数量限制为"+me.fileCount+"个！")}else{if(code=="F_EXCEED_SIZE"){z.MsgPop("单个文件大小限制为"+WebUploader.formatSize(me.fileMaxSize)+"！")}else{if(code=="Q_TYPE_DENIED"){z.MsgPop("只允许上传后缀为"+me.allowType+"的文件！")}else{alert("Error: "+code)}}}}};this.webuploader.on("uploadSuccess",function(file,response){if(!Uploader.CallbackList){return}if(me.webuploader.getStats().successNum<me.uploadFilesNumber){return}var func=Uploader.CallbackList[me.id];if(!func){return}var dc=new z.DataCollection();dc.parseXML(z.toXMLDOM(response._raw));dc.Status=dc.get("_ZVING_STATUS");dc.Message=dc.get("_ZVING_MESSAGE");if(dc.get("_ZVING_SCRIPT")){eval(dc.get("_ZVING_SCRIPT"))}dc=dc.map;if(dc._ZVING_STATUS!==undefined){dc.Status=dc._ZVING_STATUS}if(dc._ZVING_MESSAGE!==undefined){dc.Message=dc._ZVING_MESSAGE}if(func){func(dc)}});this.$upload.on("click",function(evt){evt.preventDefault();if($(this).hasClass("disabled")){return false}var sessionID=Uploader.getSessionID();var formData={};formData._ZUploader_Tools="ZvingUploader20150602";me.taskID=sessionID+new Date().getTime();formData._ZUploder_TaskID=me.taskID;formData._SessionID=Uploader.getSessionID();formData._Method="ImageUpload.upload";formData._ZUploader_Total=me.fileNumber;me.webuploader.options.formData=formData;if(me.state==="ready"){me.webuploader.upload()}else{if(me.state==="paused"){me.webuploader.upload()}else{if(me.state==="uploading"){me.webuploader.stop()}}}})},setTaskID:function(taskID){this.webuploader.options.formData=this.webuploader.options.formData||{};this.webuploader.options.formData._ZUploder_TaskID=this.taskID=taskID},removeFile:function(fileId){this.webuploader.removeFile(this.webuploader.getFile(fileId))},sendRequest:function(method,dc,func,id,noSession,resultDataFormat){var me=this;if(!window._ZUploaderSessionID){z.Server.sendRequest(Uploader.BackendMethod_getSessionID,{},function(res){if(!res||!res.sessionID){throw new Error("没有取到sessionID，文件无法上传。")}Uploader.setSessionID(res.sessionID);me.sendRequest(method,dc,func,id,noSession,resultDataFormat)});return}dc=dc||{};if(dc&&typeof(dc)=="object"&&dc.keys&&dc.map){dc=dc.map}var sessionID=Uploader.getSessionID();var formData=dc;formData._ZUploader_Tools="ZvingUploader20150602";formData._SessionID=sessionID;me.taskID=sessionID+new Date().getTime();formData._ZUploder_TaskID=me.taskID;formData._Method=method;formData._ZVING_METHOD=method;formData._ZUploader_Total=me.fileNumber;me.webuploader.options.formData=formData;if(!Uploader.CallbackList){Uploader.CallbackList={}}Uploader.CallbackList[this.id]=func;if(this.hasFile()){this.uploadFilesNumber=this.webuploader.getFiles("inited").length;this.disable();this.webuploader.upload();setTimeout(function(){Uploader.getTaskStatus(me.taskID,me.id)},1000)}else{z.Server.sendRequest(Uploader.BackendMethod_Sumbit,dc,function(response){if(func){func(response)}},id,noSession,resultDataFormat)}},disable:function(){this.$list.addClass("uploader-uploading")},enable:function(){this.$list.removeClass("uploader-uploading")},hasFile:function(){return this.webuploader.getFiles("inited").length>0},hasError:function(){return this.webuploader.getStats().uploadFailNum>0||this.webuploader.getStats().invalidNum>0},getFileNames:function(){var files=this.webuploader.getFiles("inited");var fileNames=[];for(var i=0,l=files.length;i<l;i++){fileNames.push(files[i].name)}return fileNames},setSessionID:function(sessionID){this.sessionID=sessionID||Uploader.getSessionID();this.webuploader.options.formData._SessionID=sessionID},onFileSelect:function(func){var me=this;this.webuploader.on("filesQueued",function(files){me.sort();var filesName=[];files.each(function(){filesName.push(this.name)});func(filesName.join(","))})},sort:function(){var me=this;this.webuploader.sort(function(a,b){var an=parseFloat(a.name),bn=parseFloat(b.name);if(isNaN(an)&&isNaN(bn)){return a.name>b.name?1:-1}else{if(!isNaN(an)&&!isNaN(bn)){if(an==bn){return a.name>b.name?1:-1}return an-bn}else{if(isNaN(an)&&!isNaN(bn)){return 1}}}});var files=this.webuploader.getFiles("inited");var ul=document.getElementById(me.id+"_list");for(var i=0;i<files.length;i++){var lis=ul.getElementsByTagName("li");if(lis[i].id!=files[i].id){if(i==files.length-1){ul.appendChild(document.getElementById(files[i].id))}else{ul.insertBefore(document.getElementById(files[i].id),lis[i])}}}},destroy:function(){this.webuploader.off();delete this.webuploader;jQuery.cleanData(this.$list);delete this.$list;z.ComponentManager.unregister(this)}};var retry=0;Uploader.getTaskStatus=function(taskID,id){var dc={TaskID:taskID};z.Server.sendRequest(Uploader.BackendMethod_GetTaskStatus,dc,function(response){if(response.Status==408&&(++retry<21)){setTimeout(function(){Uploader.getTaskStatus(taskID,id)},1000*retry)}else{if(response.StatusMsg){if(!/^(Error|Finished)/.test(response.StatusMsg)){if(Uploader(id)){console.log(response.StatusMsg);Uploader(id).setStatusStr(response.StatusMsg)}setTimeout(function(){Uploader.getTaskStatus(taskID,id)},1000)}}}})};Uploader.getAction=function(){var url=Uploader.BackendAction;return url};Uploader.getSessionID=function(){if(window._ZUploaderSessionID){return window._ZUploaderSessionID}z.Server.sendRequest(Uploader.BackendMethod_getSessionID,{},function(res){if(!res||!res.sessionID){throw new Error("没有取到sessionID，文件无法上传。")}Uploader.setSessionID(res.sessionID)})};Uploader.setSessionID=function(sessionID){return window._ZUploaderSessionID=sessionID};Uploader.checkVersion=function(){var _FlashVersionOK=false;var _FlashVersion=(function(){var f="",n=navigator,ii;if(n.plugins&&n.plugins.length){for(ii=0;ii<n.plugins.length;ii++){if(n.plugins[ii].name.indexOf("Shockwave Flash")!=-1){f=n.plugins[ii].description.split("Shockwave Flash ")[1];break}}}else{if("ActiveXObject" in window){for(ii=10;ii>=2;ii--){try{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');");if(fl){f=ii+".0";break}}catch(e){}}}}return f})();if(_FlashVersion){_FlashVersion=_FlashVersion.substr(0,_FlashVersion.indexOf("."));if(_FlashVersion>=10){_FlashVersionOK=true}}if(!_FlashVersionOK&&!window.Blob&&!window.FileReader){var alertNoFlashPlugin=z.String.format(Lang.get("Uploader.NoFlashPlugin"),_FlashVersion);document.write(alertNoFlashPlugin)}};Uploader.allowType="gif,jpg,png,bmp,psd,ai,jpeg,tif,tiff,avi,mpg,flv,mpeg,rm,rmvb,mov,wmv,wmp,mp4,mp3,wma,wav,zip,rar,tar,gz,doc,docx,xls,xlsx,ppt,pptx,pdf,fla,swf,js,css,shtml,html,htm,txt,ceb,wps";Uploader.allowMime="text/*,image/*,audio/*,video/*,message/*,application/vnd.rn-realmedia-vbr,application/json,application/xhtml+xml,application/msword,application/mspowerpoint,application/vnd.ms-powerpoint,application/msexcel,application/vnd.ms-excel,application/rtf, text/rtf,application/pdf,application/zip,application/x-zip-compressed,application/x-rar-compressed,application/x-compress,application/x-compressed,application/x-tar,application/x-gtar,application/x-shockwave-flash,application/ceb";var mediaTypes={"text/plain":",txt,c,h,bas,","text/plain,text/x-log":",log,","text/plain,application/octet-stream":",sql,","text/richtext":",rtx,","text/css":",css,","text/csv":",csv,","text/vcard,text/x-vcard":",vcf,","text/html,application/xhtml+xml":",htm,html,xhtml,xht,stm,shtml,shtm,","text/php,text/x-php,application/php,application/x-php":",php,","text/x-pl,application/x-pl":",pl,","text/x-python":",py,","text/html,application/octet-stream":",jsp,","text/asp,application/x-asp":",asp,","text/xml,application/xml":",xml,xslt,wsdl,","text/javascript,application/javascript,application/x-javascript":",js,","text/*":",htt,","audio/wav,audio/x-wav":",wav,","audio/mpeg,audio/x-mp3":",mp3,","audio/m4a,audio/x-m4a":",m4a,","audio/midi,audio/x-midi":",mid,midi,","audio/ogg,application/ogg":",ogg,","audio/x-aiff":",aif,aifc,aiff,","audio/x-ms-wma":",wma,","audio/x-pn-realaudio":",ra,ram,","audio/*":",ac3,asx,au,m3u,","video/mpeg,video/x-mpeg":",mpeg,mpg,mpe,mpv2,","video/mp4":",mp4,m4v,","video/flv,video/x-flv":",flv,","video/quicktime":",mov,qt,","video/avi,video/msvideo,video/x-msvideo":",avi,","video/x-ms-wmv":",wmv,","video/x-ms-asf":",asf,","video/*":",mkv,","image/jpeg":",jpe,jpeg,jpg,","image/png,image/x-png":",png,","image/bmp,image/x-bmp,image/x-ms-bmp":",bmp,dib,","image/emf,image/x-emf":",emf,","image/wmf,image/x-wmf":",wmf,","image/icon,image/x-icon":",ico,","image/x-dwg,application/x-dwg":",dwg,","image/x-dxf,application/x-dxf":",dxf,","image/gif":",gif,","image/svg,image/svg+xml":",svg,","image/tiff":",tif,tiff,","image/*":",jp2,svf,cmx,jfif,","application/postscript,application/eps,image/eps":",eps,ps,","application/postscript,application/illustrator":",ai,","application/vnd.rn-realmedia":",rm,","application/vnd.rn-realmedia-vbr":",rmvb,","application/json":",json,","application/kswps":",wps,wpsx,wpt,wptx,","application/msword":",doc,dot,","application/msworks":",wcm,wdb,wks,wps,","application/vnd.openxmlformats-officedocument.wordprocessingml.document":",docx,dotx,wps,","application/msworks,application/vnd.ms-project":",mpp,","application/mspowerpoint,application/vnd.ms-powerpoint":",pot,pps,ppt,","application/vnd.openxmlformats-officedocument.presentationml.presentation":",pptx,","application/msexcel,application/vnd.ms-excel":",xla,xlc,xlm,xls,xlt,xlw,","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":",xlsx,","application/visio,application/vnd.visio":",vsd,","application/rtf,application/x-rtf,text/rtf":",rtf,rtx,","application/pdf,application/x-pdf":",pdf,","application/zip,application/x-zip-compressed":",zip,","application/x-rar-compressed":",rar,","application/x-compress":",z,","application/x-compressed":",tgz,","application/x-tar":",tar,","application/x-tcl":",tcl,","application/x-tex":",tex,","application/x-latex,text/x-latex":",latex,","application/x-sh,application/x-shellscript":",sh,","application/x-shar":",shar,","application/x-stuffit":",stuffit,","application/x-gtar":",gtar,","application/x-gzip":",gz,","application/x-shockwave-flash":",swf,","application/java-archive":",jar,","application/x-webarchive":",war,","application/x-java,text/java":",java,","application/octet-stream,application/java,application/x-java":",class,","application/octet-stream,application/bin":",bin,","application/octet-stream,application/x-photoshop,image/x-photoshop,image/vnd.adobe.photoshop":",psd,","application/x-winexe,application/exe,application/x-exe":",exe,","application/x-msdownload,application/octet-stream":",dll,","application/octet-stream":",7z,3gp,krc,lrc,chm,con,dms,ini,ttf,fon,lha,lzh,","application/x-perfmon":",pma,pmc,pml,pmr,pmw,","application/vnd.ms-access,application/msaccess,application/x-msaccess":",mdb,","application/vnd.ms-cab-compressed,application/cab":",cab,","application/vnd.oasis.opendocument.text":",odt,","application/vnd.oasis.opendocument.spreadsheet":",ods,","application/winhlp":",hlp,","application/hta":",hta,","application/oda":",oda,","application/x-itunes-ipa":",ipa,","application/x-mmxp":",mxp,","application/*":",dtd,svf,dat,crd,pub,p12,pfx,","message/*":",mht,mhtml,","x-world/x-vrml":",wrl,wrz,xaf,xof,","application/ceb":",ceb,"};Uploader.getMimeByExte=function(exts){exts=exts.split(",");var mimes={};for(var i=0;i<exts.length;i++){if(!exts[i]){continue}var ext=","+exts[i]+",";for(var k in mediaTypes){if(mediaTypes[k].indexOf(ext)!=-1){mimes[k]=true}}}var result=[];for(var m in mimes){result=result.concat(m.split(","))}result=result.sort();for(var i=result.length-1;i>=0;i--){if(result[i-1]!==undefined&&result[i-1]!==null&&result[i-1]==result[i]){result.splice(i)}}return result.join(",")};var MultiUploader=function(){this.Uploaders=[];this.id="z_MultiUploader_"+(++z.idSeed._seed),z.ComponentManager.register(this)};MultiUploader.prototype={ctype:"MultiUploader",addUploader:function(uploader){if(typeof uploader=="string"){uploader=new Uploader(uploader)}this.Uploaders.push(uploader)},hasError:function(uploader){for(var i=0;i<this.Uploaders.length;i++){if(this.Uploaders[i].hasError()){return true}}return false},sendRequest:function(method,dc,func){var me=this;if(!window._ZUploaderSessionID){z.Server.sendRequest(Uploader.BackendMethod_getSessionID,{},function(res){if(!res||!res.sessionID){throw new Error("没有取到sessionID，文件无法上传。")}Uploader.setSessionID(res.sessionID);me.sendRequest(method,dc,func)});return}var sessionID=Uploader.getSessionID();var taskID=me.taskID=sessionID+new Date().getTime();var total=0,i=0;for(i=0;i<this.Uploaders.length;i++){if(this.Uploaders[i].hasError()){return}if(this.Uploaders[i].hasFile()){total+=this.Uploaders[i].getFileNames().length}}for(i=0;i<this.Uploaders.length;i++){this.Uploaders[i].setTaskID(taskID);this.Uploaders[i].setTotal(total)}for(i=0;i<this.Uploaders.length;i++){if(this.Uploaders[i].hasFile()){this.Uploaders[i].sendRequest(method,dc,function(response){if(response._ZVING_MESSAGE||response._ZVING_STATUS){func(response)}},null,null,"json")}}},destroy:function(){for(i=0;i<this.Uploaders.length;i++){this.Uploaders[i].destroy&&this.Uploaders[i].destroy()}this.Uploaders.length=0;delete this.Uploaders;z.ComponentManager.unregister(this)}};z.MultiUploader=MultiUploader;z.Uploader=Uploader})();