-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjbud.js
More file actions
3 lines (3 loc) · 64.1 KB
/
jbud.js
File metadata and controls
3 lines (3 loc) · 64.1 KB
1
2
3
!function(a,b){var d,e,f,g,h,i,j,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,C,D,E,F,G,c=function(a,b){return new c.seed.instance(a,b)};for(c.description={version:"0.9",founder:"Jimmy Song",compatible:"0.9"},c.hi=function(){var b=c.description;a.console?console.log("version : ",b.version,", author : ",b.founder):alert("version : "+b.version+", author : "+b.founder)},a.jBud=c,function(a){function gb(a,b,c,d){var f,g,h,i,j,k,l,m,p,s;if((b?b.ownerDocument||b:w)!==o&&n(b),b=b||o,c=c||[],!a||"string"!=typeof a)return c;if(1!==(i=b.nodeType)&&9!==i)return[];if(q&&!d){if(f=ab.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return c;if(g.id===h)return c.push(g),c}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&u(b,g)&&g.id===h)return c.push(g),c}else{if(f[2])return J.apply(c,b.getElementsByTagName(a)),c;if((h=f[3])&&e.getElementsByClassName&&b.getElementsByClassName)return J.apply(c,b.getElementsByClassName(h)),c}if(e.qsa&&(!r||!r.test(a))){if(m=l=v,p=b,s=9===i&&a,1===i&&"object"!==b.nodeName.toLowerCase()){for(k=rb(a),(l=b.getAttribute("id"))?m=l.replace(cb,"\\$&"):b.setAttribute("id",m),m="[id='"+m+"'] ",j=k.length;j--;)k[j]=m+sb(k[j]);p=bb.test(a)&&pb(b.parentNode)||b,s=k.join(",")}if(s)try{return J.apply(c,p.querySelectorAll(s)),c}catch(t){}finally{l||b.removeAttribute("id")}}}return Ab(a.replace(S,"$1"),b,c,d)}function hb(){function b(c,d){return a.push(c+" ")>g.cacheLength&&delete b[a.shift()],b[c+" "]=d}var a=[];return b}function ib(a){return a[v]=!0,a}function jb(a){var b=o.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function kb(a,b){for(var c=a.split("|"),d=a.length;d--;)g.attrHandle[c[d]]=b}function lb(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||E)-(~a.sourceIndex||E);if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function mb(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function nb(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ob(a){return ib(function(b){return b=+b,ib(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pb(a){return a&&typeof a.getElementsByTagName!==D&&a}function qb(){}function rb(a,b){var c,d,e,f,h,i,j,k=A[a+" "];if(k)return b?0:k.slice(0);for(h=a,i=[],j=g.preFilter;h;){(!c||(d=T.exec(h)))&&(d&&(h=h.slice(d[0].length)||h),i.push(e=[])),c=!1,(d=U.exec(h))&&(c=d.shift(),e.push({value:c,type:d[0].replace(S," ")}),h=h.slice(c.length));for(f in g.filter)!(d=Y[f].exec(h))||j[f]&&!(d=j[f](d))||(c=d.shift(),e.push({value:c,type:f,matches:d}),h=h.slice(c.length));if(!c)break}return b?h.length:h?gb.error(a):A(a,i).slice(0)}function sb(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function tb(a,b,c){var d=b.dir,e=c&&"parentNode"===d,g=y++;return b.first?function(b,c,f){for(;b=b[d];)if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,h){var i,j,k,l=x+" "+g;if(h){for(;b=b[d];)if((1===b.nodeType||e)&&a(b,c,h))return!0}else for(;b=b[d];)if(1===b.nodeType||e)if(k=b[v]||(b[v]={}),(j=k[d])&&j[0]===l){if((i=j[1])===!0||i===f)return i===!0}else if(j=k[d]=[l],j[1]=a(b,c,h)||f,j[1]===!0)return!0}}function ub(a){return a.length>1?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function vb(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 wb(a,b,c,d,e,f){return d&&!d[v]&&(d=wb(d)),e&&!e[v]&&(e=wb(e,f)),ib(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||zb(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:vb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d)for(j=vb(r,n),d(j,[],h,i),k=j.length;k--;)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l));if(f){if(e||a){if(e){for(j=[],k=r.length;k--;)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}for(k=r.length;k--;)(l=r[k])&&(j=e?L.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=vb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):J.apply(g,r)})}function xb(a){for(var b,c,d,e=a.length,f=g.relative[a[0].type],h=f||g.relative[" "],i=f?1:0,j=tb(function(a){return a===b},h,!0),l=tb(function(a){return L.call(b,a)>-1},h,!0),m=[function(a,c,d){return!f&&(d||c!==k)||((b=c).nodeType?j(a,c,d):l(a,c,d))}];e>i;i++)if(c=g.relative[a[i].type])m=[tb(ub(m),c)];else{if(c=g.filter[a[i].type].apply(null,a[i].matches),c[v]){for(d=++i;e>d&&!g.relative[a[d].type];d++);return wb(i>1&&ub(m),i>1&&sb(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(S,"$1"),c,d>i&&xb(a.slice(i,d)),e>d&&xb(a=a.slice(d)),e>d&&sb(a))}m.push(c)}return ub(m)}function yb(a,b){var c=0,d=b.length>0,e=a.length>0,h=function(h,i,j,l,m){var n,p,q,r=0,s="0",t=h&&[],u=[],v=k,w=h||e&&g.find.TAG("*",m),y=x+=null==v?1:Math.random()||.1,z=w.length;for(m&&(k=i!==o&&i,f=c);s!==z&&null!=(n=w[s]);s++){if(e&&n){for(p=0;q=a[p++];)if(q(n,i,j)){l.push(n);break}m&&(x=y,f=++c)}d&&((n=!q&&n)&&r--,h&&t.push(n))}if(r+=s,d&&s!==r){for(p=0;q=b[p++];)q(t,u,i,j);if(h){if(r>0)for(;s--;)t[s]||u[s]||(u[s]=H.call(l));u=vb(u)}J.apply(l,u),m&&!h&&u.length>0&&r+b.length>1&&gb.uniqueSort(l)}return m&&(x=y,k=v),t};return d?ib(h):h}function zb(a,b,c){for(var d=0,e=b.length;e>d;d++)gb(a,b[d],c);return c}function Ab(a,b,c,d){var f,h,i,k,l,m=rb(a);if(!d&&1===m.length){if(h=m[0]=m[0].slice(0),h.length>2&&"ID"===(i=h[0]).type&&e.getById&&9===b.nodeType&&q&&g.relative[h[1].type]){if(b=(g.find.ID(i.matches[0].replace(db,eb),b)||[])[0],!b)return c;a=a.slice(h.shift().value.length)}for(f=Y.needsContext.test(a)?0:h.length;f--&&(i=h[f],!g.relative[k=i.type]);)if((l=g.find[k])&&(d=l(i.matches[0].replace(db,eb),bb.test(h[0].type)&&pb(b.parentNode)||b))){if(h.splice(f,1),a=d.length&&sb(h),!a)return J.apply(c,d),c;break}}return j(a,m)(d,b,!q,c,bb.test(a)&&pb(b.parentNode)||b),c}var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v="sizzle"+-new Date,w=a.document,x=0,y=0,z=hb(),A=hb(),B=hb(),C=function(a,b){return a===b&&(m=!0),0},D=typeof b,E=1<<31,F={}.hasOwnProperty,G=[],H=G.pop,I=G.push,J=G.push,K=G.slice,L=G.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},M="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",P=O.replace("w","w#"),Q="\\["+N+"*("+O+")"+N+"*(?:([*^$|!~]?=)"+N+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+P+")|)|)"+N+"*\\]",R=":("+O+")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|"+Q.replace(3,8)+")*)|.*)\\)|)",S=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),T=new RegExp("^"+N+"*,"+N+"*"),U=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),V=new RegExp("="+N+"*([^\\]'\"]*)"+N+"*\\]","g"),W=new RegExp(R),X=new RegExp("^"+P+"$"),Y={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O.replace("w","w*")+")"),ATTR:new RegExp("^"+Q),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},Z=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,_=/^[^{]+\{\s*\[native \w/,ab=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bb=/[+~]/,cb=/'|\\/g,db=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig"),eb=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(55296|d>>10,56320|1023&d)};try{J.apply(G=K.call(w.childNodes),w.childNodes),G[w.childNodes.length].nodeType}catch(fb){J={apply:G.length?function(a,b){I.apply(a,K.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}e=gb.support={},i=gb.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},n=gb.setDocument=function(a){var b=a?a.ownerDocument||a:w,c=b.defaultView;return b!==o&&9===b.nodeType&&b.documentElement?(o=b,p=b.documentElement,q=!i(b),c&&c.attachEvent&&c!==c.top&&c.attachEvent("onbeforeunload",function(){n()}),e.attributes=jb(function(a){return a.className="i",!a.getAttribute("className")}),e.getElementsByTagName=jb(function(a){return a.appendChild(b.createComment("")),!a.getElementsByTagName("*").length}),e.getElementsByClassName=jb(function(a){return a.innerHTML="<div class='a'></div><div class='a i'></div>",a.firstChild.className="i",2===a.getElementsByClassName("i").length}),e.getById=jb(function(a){return p.appendChild(a).id=v,!b.getElementsByName||!b.getElementsByName(v).length}),e.getById?(g.find.ID=function(a,b){if(typeof b.getElementById!==D&&q){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},g.filter.ID=function(a){var b=a.replace(db,eb);return function(a){return a.getAttribute("id")===b}}):(delete g.find.ID,g.filter.ID=function(a){var b=a.replace(db,eb);return function(a){var c=typeof a.getAttributeNode!==D&&a.getAttributeNode("id");return c&&c.value===b}}),g.find.TAG=e.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==D?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){for(;c=f[e++];)1===c.nodeType&&d.push(c);return d}return f},g.find.CLASS=e.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==D&&q?b.getElementsByClassName(a):void 0},s=[],r=[],(e.qsa=_.test(b.querySelectorAll))&&(jb(function(a){a.innerHTML="<select><option selected=''></option></select>",a.querySelectorAll("[selected]").length||r.push("\\["+N+"*(?:value|"+M+")"),a.querySelectorAll(":checked").length||r.push(":checked")}),jb(function(a){var c=b.createElement("input");c.setAttribute("type","hidden"),a.appendChild(c).setAttribute("t",""),a.querySelectorAll("[t^='']").length&&r.push("[*^$]="+N+"*(?:''|\"\")"),a.querySelectorAll(":enabled").length||r.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),r.push(",.*:")})),(e.matchesSelector=_.test(t=p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&jb(function(a){e.disconnectedMatch=t.call(a,"div"),t.call(a,"[s!='']:x"),s.push("!=",R)}),r=r.length&&new RegExp(r.join("|")),s=s.length&&new RegExp(s.join("|")),u=_.test(p.contains)||p.compareDocumentPosition?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)for(;b=b.parentNode;)if(b===a)return!0;return!1},C=p.compareDocumentPosition?function(a,c){if(a===c)return m=!0,0;var d=c.compareDocumentPosition&&a.compareDocumentPosition&&a.compareDocumentPosition(c);return d?1&d||!e.sortDetached&&c.compareDocumentPosition(a)===d?a===b||u(w,a)?-1:c===b||u(w,c)?1:l?L.call(l,a)-L.call(l,c):0:4&d?-1:1:a.compareDocumentPosition?-1:1}:function(a,c){var d,e=0,f=a.parentNode,g=c.parentNode,h=[a],i=[c];if(a===c)return m=!0,0;if(!f||!g)return a===b?-1:c===b?1:f?-1:g?1:l?L.call(l,a)-L.call(l,c):0;if(f===g)return lb(a,c);for(d=a;d=d.parentNode;)h.unshift(d);for(d=c;d=d.parentNode;)i.unshift(d);for(;h[e]===i[e];)e++;return e?lb(h[e],i[e]):h[e]===w?-1:i[e]===w?1:0},b):o},gb.matches=function(a,b){return gb(a,null,null,b)},gb.matchesSelector=function(a,b){if((a.ownerDocument||a)!==o&&n(a),b=b.replace(V,"='$1']"),!(!e.matchesSelector||!q||s&&s.test(b)||r&&r.test(b)))try{var c=t.call(a,b);if(c||e.disconnectedMatch||a.document&&11!==a.document.nodeType)return c}catch(d){}return gb(b,o,null,[a]).length>0},gb.contains=function(a,b){return(a.ownerDocument||a)!==o&&n(a),u(a,b)},gb.attr=function(a,c){(a.ownerDocument||a)!==o&&n(a);var d=g.attrHandle[c.toLowerCase()],f=d&&F.call(g.attrHandle,c.toLowerCase())?d(a,c,!q):b;return f!==b?f:e.attributes||!q?a.getAttribute(c):(f=a.getAttributeNode(c))&&f.specified?f.value:null},gb.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},gb.uniqueSort=function(a){var b,c=[],d=0,f=0;if(m=!e.detectDuplicates,l=!e.sortStable&&a.slice(0),a.sort(C),m){for(;b=a[f++];)b===a[f]&&(d=c.push(f));for(;d--;)a.splice(c[d],1)}return a},h=gb.getText=function(a){var b,c="",d=0,e=a.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=h(a)}else if(3===e||4===e)return a.nodeValue}else for(;b=a[d++];)c+=h(b);return c},g=gb.selectors={cacheLength:50,createPseudo:ib,match:Y,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(db,eb),a[3]=(a[4]||a[5]||"").replace(db,eb),"~="===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]||gb.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]&&gb.error(a[0]),a},PSEUDO:function(a){var c,d=!a[5]&&a[2];return Y.CHILD.test(a[0])?null:(a[3]&&a[4]!==b?a[2]=a[4]:d&&W.test(d)&&(c=rb(d,!0))&&(c=d.indexOf(")",d.length-c)-d.length)&&(a[0]=a[0].slice(0,c),a[2]=d.slice(0,c)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(db,eb).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=z[a+" "];return b||(b=new RegExp("(^|"+N+")"+a+"("+N+"|$)"))&&z(a,function(a){return b.test("string"==typeof a.className&&a.className||typeof a.getAttribute!==D&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=gb.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(),s=!i&&!h;if(q){if(f){for(;p;){for(l=b;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&&s){for(k=q[v]||(q[v]={}),j=k[a]||[],n=j[0]===x&&j[1],m=j[0]===x&&j[2],l=n&&q.childNodes[n];l=++n&&l&&l[p]||(m=n=0)||o.pop();)if(1===l.nodeType&&++m&&l===b){k[a]=[x,n,m];break}}else if(s&&(j=(b[v]||(b[v]={}))[a])&&j[0]===x)m=j[1];else for(;(l=++n&&l&&l[p]||(m=n=0)||o.pop())&&((h?l.nodeName.toLowerCase()!==r:1!==l.nodeType)||!++m||(s&&((l[v]||(l[v]={}))[a]=[x,m]),l!==b)););return m-=e,m===d||0===m%d&&m/d>=0}}},PSEUDO:function(a,b){var c,d=g.pseudos[a]||g.setFilters[a.toLowerCase()]||gb.error("unsupported pseudo: "+a);return d[v]?d(b):d.length>1?(c=[a,a,"",b],g.setFilters.hasOwnProperty(a.toLowerCase())?ib(function(a,c){for(var e,f=d(a,b),g=f.length;g--;)e=L.call(a,f[g]),a[e]=!(c[e]=f[g])}):function(a){return d(a,0,c)}):d}},pseudos:{not:ib(function(a){var b=[],c=[],d=j(a.replace(S,"$1"));return d[v]?ib(function(a,b,c,e){for(var f,g=d(a,null,e,[]),h=a.length;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:ib(function(a){return function(b){return gb(a,b).length>0}}),contains:ib(function(a){return function(b){return(b.textContent||b.innerText||h(b)).indexOf(a)>-1}}),lang:ib(function(a){return X.test(a||"")||gb.error("unsupported lang: "+a),a=a.replace(db,eb).toLowerCase(),function(b){var c;do if(c=q?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===p},focus:function(a){return a===o.activeElement&&(!o.hasFocus||o.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!g.pseudos.empty(a)},header:function(a){return $.test(a.nodeName)},input:function(a){return Z.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"))||b.toLowerCase()===a.type)},first:ob(function(){return[0]}),last:ob(function(a,b){return[b-1]}),eq:ob(function(a,b,c){return[0>c?c+b:c]}),even:ob(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:ob(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:ob(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:ob(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},g.pseudos.nth=g.pseudos.eq;for(d in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})g.pseudos[d]=mb(d);for(d in{submit:!0,reset:!0})g.pseudos[d]=nb(d);qb.prototype=g.filters=g.pseudos,g.setFilters=new qb,j=gb.compile=function(a,b){var c,d=[],e=[],f=B[a+" "];if(!f){for(b||(b=rb(a)),c=b.length;c--;)f=xb(b[c]),f[v]?d.push(f):e.push(f);f=B(a,yb(e,d))}return f},e.sortStable=v.split("").sort(C).join("")===v,e.detectDuplicates=!!m,n(),e.sortDetached=jb(function(a){return 1&a.compareDocumentPosition(o.createElement("div"))}),jb(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||kb("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),e.attributes&&jb(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||kb("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),jb(function(a){return null==a.getAttribute("disabled")})||kb(M,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),c.find=gb,c.expr=gb.selectors,c.unique=gb.uniqueSort,c.text=gb.getText,c.isXMLDoc=gb.isXML,c.contains=gb.contains}(a),d=["Object","Boolean","Number","String","Function","Array","Date","RegExp","Error"],e={},f={number:/^[0-9]+(.[0-9]+)?$/g,opacity:/opacity\s*=\s*([^)]*)/i},g=e.hasOwnProperty,h=0;h<d.length;h++)i=d[h],e["[object "+i+"]"]=i.toLowerCase();c.type=function(a){if(null===a||a===b)return String(a);var c=e[e.toString.call(a)];return c?c:typeof a},c.isWindow=function(a){return null!=a&&a==a.window},c.getWindow=function(a){return c.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1},c.isDocument=function(a){return null!=a&&a==a.ownerDocument},c.isPlainObject=function(a){if(!a||"object"!==c.type(a)||a.nodeType||c.isWindow(a))return!1;try{if(a.constructor&&!g.call(a,"constructor")&&!g.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(d){return!1}var e;for(e in a);return e===b||g.call(a,e)},c.each=function(a,b){var d,e;if(c.isIterator(a)&&"function"===c.type(b))for(d=0;d<a.length&&(e=b.call(a[d],d,a[d]),e!==!1);d++);},c.parameter=function(a,b,c){var d,e,f,g,h;for(d=0;d<c.length;d++){for(e=c[d],f=!1,g=0;g<a.length;g++)if(h=a[g],typeof h===e.type){b[e.name]=h,a.splice(g,1),f=!0;break}if(e.require&&!f)throw new Error("miss params at "+d+" , named : "+e.name)}return a.splice(0,a.length),a=null,c=null,b},c.extend=function(){var a,d,e,f,k,g=!1,h=arguments[0]||{},i=1,j=arguments.length;for("boolean"==typeof h&&(g=h,h=arguments[1]||{},i=2),"object"==typeof h||c.isPlainObject(h)||(h={}),i>=j&&(h=this,--i);j>i;i++)if(null!=(f=arguments[i]))for(e in f)a=h[e],d=f[e],d!==b&&a!==d&&(g&&c.isPlainObject(d)?(k="array"===c.type(d),a=k?a&&"array"===c.type(a)?a:[]:a&&c.isPlainObject(a)?a:{},h[e]=c.extend(g,a,d)):h[e]=d);return h},c.extend({isArray:function(a){return"array"===c.type(a)},isFunction:function(a){return"function"===c.type(a)},isNumeric:function(a){return"number"===c.type(a)},isBoolean:function(a){return"boolean"===c.type(a)},isString:function(a){return"string"===c.type(a)},isDate:function(a){return"date"===c.type(a)},isError:function(a){return"error"===c.type(a)},isRegExp:function(a){return"regexp"===c.type(a)},isObject:function(a){return"object"===c.type(a)},isEmpty:function(a){var b=c.type(a);return"null"===b||"undefined"===b},isBudObject:function(a){return a instanceof c.seed.instance},isIterator:function(a){return c.isArray(a)?!0:a&&c.isNumeric(a.length)},isHTMLElement:function(a){return a&&a===document.body.parentNode},isBodyElement:function(a){return a&&a===document.body},isHTMLOrBody:function(a){return this.isHTMLElement(a)||this.isBodyElement(a)}}),j=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"],c.extend({encodeDecimal:function(a,b,d){var e,f,g,h;if(!c.isNumeric(a)||!c.isNumeric(b))return!1;if((c.isEmpty(d)||!c.isNumeric(d))&&(d=0),e="",1>=a||a>16)return!1;f=0;do f=parseInt(b)%parseInt(a),b/=a,e=j[f]+e;while(b>=1);if(e.length<d)for(g=d-e.length,h=0;g>h;h++)e="0"+e;return e},decodeDecimal:function(a,b){var d,e,f,g;if(c.isEmpty(b)||c.isEmpty(a))return 0;if(!c.isNumeric(a)||0>=a||a>16)return 0;for(d=0,e=0,f=0,g=0,e=b.length-1;e>=0;e--){if(f=c.indexOf(j,b[e]),-1===f)return 0;d+=f*Math.pow(a,g++)}return d},bin:function(a,b){return this.encodeDecimal(2,a,b)},oct:function(a,b){return this.encodeDecimal(8,a,b)},hex:function(a,b){return this.encodeDecimal(16,a,b)},shex:function(a,b){var e,d="";for(e=0;e<a.length;e++)d+=a.charCodeAt(e);return c.hex(parseInt(d),b)}}),c.extend({trim:function(a){return c.isString(a)?a.replace(/(^\s*)|(\s*$)/g,""):void 0},ltrim:function(a){return c.isString(a)?a.replace(/(^\s*)/g,""):void 0},rtrim:function(a){return c.isString(a)?a.replace(/(\s*$)/g,""):void 0},equals:function(a,b,d){return c.isString(a)&&c.isString(b)?d?a.toLowerCase()===b.toLowerCase():a===b:!1},uuid:function(){var b,d,e,f,a="";return b=c.hex((new Date).getTime(),12),d=c.hex(parseInt(65535*Math.random()),4),e=c.hex(parseInt(65535*Math.random()),4),f=c.hex(parseInt(0x8000000000000000*Math.random()),8),a+=b.substring(0,8)+b.substring(8)+d+e+f},guid:function(){return c.uuid()},isHTML:function(a){return"string"==typeof a?"<"===a.charAt(0)&&">"===a.charAt(a.length-1):!1},noWhite:function(a,b){if("string"!=typeof a)return a;var c=a.match(/\S+/g)||[];return b?c:c.join(" ")}}),c.extend({merge:function(a,b,d){var e,f,g;if(!(c.isIterator(a)&&c.isIterator(b)||d))return a;if(d){for(f=a.length,g=b.length,e=0,c.isNumeric(f)||(f=0),c.isNumeric(g)||(g=0);g>e;e++)a[f++]=b[e];a.length=e}else for(e=0;e<b.length;e++)a.push(b[e]);return a},indexOf:function(a,b){for(var c=0;c<a.length;c++)if(a[c]==b)return c;return-1},lastIndexOf:function(a,b){for(var c=a.length-1;c>=0;c--)if(a[c]==b)return c;return-1},inArray:function(a,b){return this.indexOf(b,a)}}),c.extend({bud:function(a){if(!a)return b;var c=a.__jbud__;return c||(a.__jbud__={},c=a.__jbud__),c}}),c.euid=1,c.duid=1,c.event={mapName:"__FIREMAP__",add:function(a,b,d,e,f,g){var j,k,l,m,n,h=c.bud(a),i=h.events;d.juid||(d.juid=c.euid++),i||(i=h.events={}),j=i[b],n=!!j,h.elem=a,j||(j=i[b]={}),m=j[this.mapName],m||(m=j[this.mapName]={}),j[d.juid]=d,l={type:b,data:e,juid:d.juid,handler:d,elem:a,one:g,selector:c.noWhite(f)},d.fires||(d.fires={},d.fuid=1),d.fires[d.fuid]=l,m[d.juid]||(m[d.juid]={}),l.fuid=d.fuid,m[d.juid][d.fuid++]=l,(k=h.handle)||(k=h.handle=function(){return c.event.handle.apply(h.elem,arguments)}),n||(a.addEventListener?a.addEventListener(b,k,!1):a.attachEvent("on"+b,k))},handle:function(a){var g,i,k,l,j,m,n,o,b=a.type,d=c.bud(this).events,e=d[b],f=this;if(e&&(g=e[c.event.mapName]))for(i in g)if(j=g[i])for(m in j)n=j[m],k=c.event.filter(a,n.handler,this,n.guid),l=e[n.juid],k.data=n.data,n.selector?(o=c(f).find(n.selector),o.each(function(){return this===k.target?(n.handler.call(f,k),n.one&&(delete j[m],delete l.fires[m]),!1):void 0}),o=null):(n.handler.call(f,k),n.one&&(delete j[m],delete l.fires[m]))},removeFire:function(a){var b=c.bud(a.elem),d=b.events,e=d[a.type],f=a.juid,g=a.fuid,h=e[this.mapName],i=e[f];delete h[f][g],delete i.fires[g]},remove:function(a,d,e,f){var h,j,k,l,m,n,o,g=c.bud(a).events;if(!d)return delete g,c.bud(a).events={},void 0;if(g)if(h=g[d],k=h[this.mapName],"function"==typeof e)if(f){f=c.noWhite(f),j=e.fires,l=k[e.juid];for(m in j)j[m].selector===f&&(delete j[m],delete l[m])}else{if(!e.juid)return;delete h[e.juid],delete k[e.juid]}else if(e===b)if(f){f=c.noWhite(f);for(m in h){n=h[m],j=n.fires,l=k[n.juid];for(o in j)j[o].selector===f&&(delete j[o],delete l[o])}}else delete h,g[d]={},k={}},filter:function(a,c,d,e){(a===b||null===a||"object"!=typeof a)&&(a={currentTarget:d,target:d});var f=a;return f.originalEvent=f,f.which=f.which==b?f.keyCode:f.which,f.handler=c,f.currentTarget=this,f.target=f.target?f.target:f.srcElement,f.juid=e,f.stopPropagation=f.stopPropagation||function(){this.cancelBubble=!0},f.preventDefault=f.preventDefault||function(){this.returnValue=!1},f},fires:function(a,d){var e,f,g,h,i,j,k,l;if(!a||!(e=c.bud(a)))return b;if(f=e.events,!f||!f[d])return b;g=[],i=f[d],j=i[this.mapName];for(k in j){h=j[k];for(l in h)g.push(h[l])}return g?g:b}},c.style={add:function(a,d,e,f){var j,g=a.className,h=c.noWhite(g,!0),i=h.join(" ");if(f){if(j=f(e,i),"string"!=typeof j||(j=c.trim(j)).length<=0)return!0;d=c.noWhite(j,!0)}c.each(d,function(){var a=new RegExp("\\b"+this+"\\b");a.test(i)||h.push(this),a=b}),a.className=h.join(" "),delete h,i=b},remove:function(a,d,e,f){var h,g=a.className;if(f){if(h=f(e,g),"string"!=typeof h||(h=c.trim(h)).length<=0)return!0;d=c.noWhite(h,!0)}c.each(d,function(){var a=new RegExp("\\b"+this+"\\b");g=g.replace(a,""),a=b}),a.className=g},has:function(a,b){var d=new RegExp("\\b"+c.trim(b)+"\\b");return d.test(a.className)},toggle:function(a,d,e){var i,k,l,f=c.bud(a),g=f.toggleClass,h=0;for(f.toggleClass||(g=f.toggleClass=[]),d===b?(d=c.noWhite(a.className,!0),0===d.length&&(d=g.slice(0,g.length))):d=c.noWhite(d,!0),g.splice(0,g.length);i=d[h++];)k=c.style.has(a,i),l=e!==b?e:!k,c.style[l?"add":"remove"](a,c.noWhite(i,!0));f.toggleClass=d},style2postion:["Top","Right","Bottom","Left"],getStyle:function(b,c){return c?b.style:b.currentStyle||a.getComputedStyle(b,null)},value:function(a,b,d,e){var f,g,h,i,j;if(c.isWindow(a))return 0;if(f=0,g=c.style.style2postion,h=this.getStyle(a),!e)return null;for(i=0;i<e.length;i++)j=parseFloat(h[b+g[e[i]]+d]),f+=isNaN(j)?0:j;return f},padding:function(a,b){return this.value(a,"padding","",b)},margin:function(a,b){return this.value(a,"margin","",b)},border:function(a,b){return this.value(a,"border","Width",b)},mbp:function(a,b){return this.margin(a,b)+this.padding(a,b)+this.border(a,b)},mb:function(a,b){return this.margin(a,b)+this.border(a,b)},defpx:function(a){return f.number.test(a)?a+"px":a},offset:function(a){var d,e,g,h;return a?a==document||c.isWindow(a)?b:("undefined"!=typeof a.getBoundingClientRect&&(h=a.getBoundingClientRect()),e=c.getWindow(document),g=document.documentElement,d={top:h.top+(e.pageYOffset||g.scrollTop)-(g.clientTop||0),left:h.left+(e.pageXOffset||g.scrollLeft)-(g.clientLeft||0)}):b},setOffset:function(a,d){var g,h,i,j,k,f=this.get(a,"position");return f&&"static"!==f||(f=a.style.position="relative"),g=this.offset(a),g===b?b:(h=this.get(a,"top"),i=this.get(a,"left"),j=("absolute"===f||"fixed"===f)&&c.inArray("auto",[h,i])>-1,j?(k=this.position(a),h=k.top,i=k.left):(h=parseFloat(h)||0,i=parseFloat(i)||0),null!=d.top&&(a.style.top=d.top-g.top+h+"px"),null!=d.left&&(a.style.left=d.left-g.left+i+"px"),void 0)},offsetParent:function(a){for(var b=a.offsetParent||document.documentElement;b&&!c.isHTMLElement(b)&&"static"===this.get(b,"position");)b=b.offsetParent;return b||document.documentElement},position:function(a){var d,e,f;return a?a==document||c.isWindow(a)?b:(d=this.offsetParent(a),"fixed"===this.get(a,"position")?e=a.getBoundingClientRect():(e=this.offset(a),f={top:0,left:0},c.isHTMLElement(d)||(f=this.offset(d)),f.top+=this.border(d,[0]),f.left+=this.border(d,[3])),{top:e.top-f.top-this.margin(a,[0]),left:e.left-f.left-this.margin(a,[3])}):b},ie2filter:{opacity:function(a,c){return c=parseFloat(c),"opacity"in a&&(a.opacity=c),c===b||isNaN(c)?f.opacity.test(a.filter)?.01*RegExp.$1:1:(f.opacity.test(a.filter)?a.filter=a.filter.replace(f.opacity,"opacity="+100*c):a.filter+="alpha(opacity="+100*c+")",void 0)}},getPropertyValue:function(a,c){var f,e,d=a[c]||(a.getPropertyValue?a.getPropertyValue(c):b);return d!==b?d:(e=c.toLowerCase(),(f=this.ie2filter[e])&&(d=f(a)),d)},get:function(a,d,e){var g,h,f=this.getStyle(a,e);if(!f)return b;if(c.isArray(d)){g={};for(h in d)g[d[h]]=this.getPropertyValue(f,d[h]);return g}return this.getPropertyValue(f,d)},set:function(a,c,d){var g,f,e=this.getStyle(a,!0);if(!e)return b;if(f=c.toLowerCase(),g=this.ie2filter[f])g(e,d,a);else try{e[c]=d}catch(h){}}},c.dom={memory:function(a){var d,b="div";return 0==a.indexOf("<tr")?b="tbody":0==a.indexOf("<td")||0==a.indexOf("<th")?b="tr":0==a.indexOf("<caption")||0==a.indexOf("<tbody")||0==a.indexOf("<thead")||0==a.indexOf("<tfoot")?b="table":(0==a.indexOf("<li")||0==a.indexOf("<ol"))&&(b="ul"),d=document.createElement(b),d.innerHTML=a,c.merge([],d.childNodes)},empty:function(a){if(a){var c,b=a.childNodes;for(c=b.length-1;c>=0;c--)b[c]&&a.removeChild(b[c])}},clone:function(a){var b,c,d;return a.cloneNode?b=a.cloneNode(!0):(c=document.createDocumentFragment(),d=document.createElement("div"),c.appendChild(d),d.innerHTML=a.outerHTML,b=c.firstChild,c.removeChild(b)),b},control:function(a,b,d,e,f){var i,j,k,l,g=[],h=this;c.isArray(b)?g=b:g.push(b),k=e>d;for(l in g)i=g[l],j=typeof i,"string"===j?this.control(a,this.memory(i),d,e,f):c.isArray(i)?this.control(a,i,d,e,f):c.isBudObject(i)?i.each(function(){f.call(a,k?h.clone(this):this)}):this.isElement(i)&&f.call(a,k?h.clone(i):i);g=null},nodeName:function(a,b){return a.nodeName.toUpperCase()===b.toUpperCase()},siblings:function(a,b,c,d){var e=[];for(b||(b=a.firstChild),"undefined"==typeof c&&(c=!0);b&&(1!==b.nodeType||b===a||(e.push(b),!d));)b=c?b.nextSibling:b.previousSibling;return e},parents:function(a,b){for(var c=[],d=a;d&&(1!==d.nodeType||d===a||(c.push(d),!b));)d=d.parentNode;return c},isElement:function(a){return"object"==typeof a&&a!==b&&null!==a&&(1===a.nodeType||3===a.nodeType||9===a.nodeType||11===a.nodeType)}},c.valExtend={select:{set:function(a,b){var d,e,f,g,h;for(d=c.isArray(b)?b:[b],e=a.options,h=0;h<e.length;h++)f=e[h],g=c.valExtend.option.get(f),f.selected=c.inArray(g,d)>=0?!0:!1;return d},get:function(a){var d,e,f,g,h,b=a.type;if(b&&(b=b.toUpperCase()),(d=c(a)).prop("multiple")||"select-multiple"===a.type){for(e=[],f=a.options,g=0;g<f.length;g++)h=f[g],!h.disabled&&h.selected&&e.push(h.value);return e}return a.value}},option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}}},c.seed={constructor:c,instance:function(a,b){var d,e,f;if(!a)return this;if("string"==typeof a||(d=c.isArray(a))){if(f=[],d)c.each(a,function(a,d){"string"==typeof d?c.merge(f,c(d,b)):"object"==typeof d&&(d.nodeType||c.isWindow(d)?f.push(d):c.isBudObject(d)?c.merge(f,d):c.isArray(d)&&c.merge(f,c(d,b)))});else if(c.isHTML(a))f=c.dom.memory(a);else if("string"==typeof b)c.each(c.find(b),function(){c.merge(f,c.find(a,this))});else if("object"==typeof b){if(c.isBudObject(b))return b.find(a);c.isArray(b)?c.each(b,function(){c.merge(f,c.find(a,this))}):c.merge(f,c.find(a,b))}else c.isEmpty(b)&&(f=c.find(a));return c.merge(this,f,!0),this.selector=a,this.jbud=!0,this}if("object"==typeof a){if(e=c.isBudObject(a))return a;if(a.nodeType||c.isWindow(a))return c.merge(this,[a],!0),this.selector=a,this.jbud=!0,this}else if("function"==typeof a)return c.ready(a);return this},each:function(a){return c.isFunction(a)?(c.each(this,a),this):void 0},find:function(a){var d,b=new c.seed.instance;
return a?(d=[],this.each(function(){c.merge(d,c.find(a,this))}),c.merge(b,d,!0),b.selector=a,b.jbud=!0,b):b},delegate:function(){var a=arguments[0],b=arguments[1],c=arguments[2],d=arguments[3];return this.on(b,a,c,d)},on:function(){var a={type:null,selector:null,data:null,handler:null,one:!1},b=[{name:"type",type:"string",require:!0},{name:"selector",type:"string",require:!1},{name:"data",type:"object",require:!1},{name:"handler",type:"function",require:!0},{name:"one",type:"boolean",require:!1}],d=c.merge([],arguments);try{a=c.parameter(d,a,b)}catch(e){return a=null,this}finally{b=null,d=null}return this.each(function(){c.event.add(this,a.type,a.handler,a.data,a.selector,a.one)}),this},one:function(){return this.on.call(this,arguments[0],arguments[1],arguments[2],arguments[3],!0)},once:function(){return this.one.apply(this,arguments)},off:function(a){var b,d,e=arguments.length,f=arguments;return 2==e?"string"==typeof f[1]?b=f[1]:"function"==typeof f[1]&&(d=f[1]):3===e&&("string"==typeof f[1]&&(b=f[1]),"function"==typeof f[2]&&(d=f[2])),this.each(function(){c.event.remove(this,a,d,b)}),this},detach:function(){return this.off.apply(this,arguments)},undelegate:function(){return this.off.apply(this,arguments)},trigger:function(a,d){return this.each(function(){var g,h,f,e=c.event.fires(this,a);if(this[a]){try{if(e)for(g in e)"undefined"!=typeof d&&(e[g].data=d);this[a].call(this),delete e}catch(f){}return!0}if(!e)return!0;for(g in e)h=e[g],h.selector||(f=c.event.filter(b,h.handler,this,h.juid),f.type=a,f.data="undefined"!=typeof d?h.data=d:h.data,h.handler.call(h.elem,f),h.one&&c.event.removeFire(h));delete e})},fire:function(){return this.trigger.apply(this,arguments)},emit:function(){return this.trigger.apply(this,arguments)},addClass:function(){var d,a=arguments[0],b=typeof a;return"function"!==b&&"string"!==b?this:("function"==typeof a&&(d=a,a=[]),"string"==typeof a&&(a=c.trim(a)),a=c.noWhite(a,!0),this.each(function(b){return c.style.add(this,a,b,d)}))},removeClass:function(){var d,a=arguments[0],b=typeof a;return"function"!==b&&"string"!==b?this:("function"==typeof a&&(d=a,a=[]),"string"==typeof a&&(a=c.trim(a)),a=c.noWhite(a,!0),this.each(function(b){return c.style.remove(this,a,b,d)}))},hasClass:function(){var d,a=arguments[0],b=!1;return"string"!=typeof a||(a=c.trim(a)).length<=0?!0:(d=new RegExp("\\b"+a+"\\b"),this.each(function(){return d.test(this.className)?(b=!0,!1):void 0}),b)},toggleClass:function(){var a=arguments[0],d=arguments[1],e=arguments.length,f=b,g=typeof a;return e>1&&"boolean"!=typeof d&&(d=b),"function"===g?(f=a,a=b,this.each(function(a){return c.style.toggle(this,f.call(a,this.className,d),d)})):("string"===g?a=c.noWhite(a,!0):"undefined"===g?(a=b,d=b):"boolean"===g&&(d=a,a=b),this.each(function(){return c.style.toggle(this,a,d)}))},width:function(){var g,h,a=[1,3],d=c.style,e=arguments[0],f=e!==b;return f?(e=d.defpx(e),this.each(function(){try{this.style.width=e}catch(b){}})):this.length<=0?null:(g=this[0],h=document.documentElement,c.isWindow(g)?h.clientWidth:c.isDocument(g)?Math.max(h.scrollWidth,h.clientWidth):g.offsetWidth-d.padding(g,a)-d.value(g,"border","Width",a))},height:function(){var g,h,a=[0,2],d=c.style,e=arguments[0],f=e!==b;return f?(e=d.defpx(e),this.each(function(){try{this.style.height=e}catch(b){}})):this.length<=0?null:(g=this[0],h=document.documentElement,c.isWindow(g)?h.clientHeight:g==g.ownerDocument?Math.max(h.scrollHeight,h.clientHeight):g.offsetHeight-d.padding(g,a)-d.value(g,"border","Width",a))},borderWidth:function(){return this.borderValue([1,3])},borderHeight:function(){return this.borderValue([0,2])},borderValue:function(a){return this[0]&&c.isArray(a)?c.style.value(this[0],"border","Width",a):b},innerWidth:function(){var d,a=c.style,b=[1,3];return this.length<=0?null:(d=this[0],d==document||c.isWindow(d)?c(d).width():d.offsetWidth-a.value(d,"border","Width",b))},innerHeight:function(){var d,a=c.style,b=[0,2];return this.length<=0?null:(d=this[0],d==document||c.isWindow(d)?c(d).height():d.offsetHeight-a.value(d,"border","Width",b))},outerWidth:function(a){var e,b=c.style,d=[1,3];return this.length<=0?null:(e=this[0],e==document||c.isWindow(e)?c(e).width():e.offsetWidth+(a?b.margin(e,d):0))},outerHeight:function(a){var e,b=c.style,d=[0,2];return this.length<=0?null:(e=this[0],e==document||c.isWindow(e)?c(e).height():e.offsetHeight+(a?b.margin(e,d):0))},scroll:function(){var f,g,h,i,j,d=(c.style,arguments[0]),e=d!==b;return e?(j={left:b,top:b},c.extend(j,d),h=j.left,i=j.top,h=h===b?h:isNaN(parseFloat(h))?0:parseFloat(h),j.left=h,i=i===b?i:isNaN(parseFloat(i))?0:parseFloat(i),j.top=i,this.each(function(){c.isWindow(this)||this==document?(g=document.documentElement,j.left!==b&&(g.scrollLeft=j.left),j.top!==b&&(g.scrollTop=j.top)):(j.left!==b&&(this.scrollLeft=j.left),j.top!==b&&(this.scrollTop=j.top))})):this.length<=0?0:(f=this[0],g=document.documentElement,c.isWindow(f)||f==document?{left:g.scrollLeft,top:g.scrollTop}:{left:f.scrollLeft,top:f.scrollTop})},scrollLeft:function(){var a=this.scroll.call(this,arguments[0]===b?b:{left:arguments[0]});return c.isBudObject(a)?this:a.left},scrollTop:function(){var a=this.scroll.call(this,arguments[0]===b?b:{top:arguments[0]});return c.isBudObject(a)?this:a.top},offset:function(){var a=arguments[0],d=c.style;return a===b?this.length<=0?b:d.offset(this[0]):"object"!=typeof a?this:(a=c.extend({left:b,top:b},a),this.each(function(b){d.setOffset(this,a,b)}))},position:function(){var a=c.style;return this.length<=0?b:a.position(this[0])},css:function(a,d){return arguments.length<=0?this:"string"==typeof a||c.isArray(a)?"undefined"!=typeof d&&"string"==typeof a?this.each(function(b){c.style.set(this,a,"function"==typeof d?d.call(this,b,c.style.get(this,a)):d)}):this[0]?c.style.get(this[0],a):b:c.isPlainObject(a)?this.each(function(){for(var d in a)c.style.set(this,d,a[d])}):void 0},text:function(a){var d,b=c.dom;return"undefined"!=typeof a?this.each(function(d){var f,g;this.childNodes,b.empty(this),g="function"==typeof a?a(d,c.text(this)):null===a?"":a.toString(),f=document.createTextNode(g),this.appendChild(f)}):(d=[],this.each(function(){d.push(c.text(this))}),d.join(""))},html:function(a){var d=c.dom;return"undefined"!=typeof a?this.each(function(e){var g,f=this.innerHTML;return g="function"==typeof a?a(e,f):null===a?"":a.toString(),g===b||g===!1?!0:(d.empty(this),"string"!=typeof g?!0:(c(this).append(d.memory(g)),void 0))}):this[0]?this[0].innerHTML:b},_domControl:function(a,d){var h,i,e=a,f=c.dom;return e.length<=0?this:(i=e[0],"function"==typeof i?this.each(function(a){var e=i(a,this.innerHTML);return e===!1||e===b?!0:(c(this)._domControl([e],d),void 0)}):(h=this.length-1,this.each(function(a){for(var b=0;b<e.length;b++)f.control(this,e[b],a,h,d)})))},append:function(){return this._domControl(arguments,function(a){this.appendChild(a)})},appendTo:function(a){return c(a).append(this),this},prepend:function(){return this._domControl(arguments,function(a){this.insertBefore(a,this.firstChild)})},prependTo:function(a){return c(a).prepend(this),this},empty:function(){return this.each(function(){c.dom.empty(this)})},after:function(){return this._domControl(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},insertAfter:function(a){return c(a).after(this),this},before:function(){return this._domControl(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},insertBefore:function(a){return c(a).before(this),this},clone:function(){var a=[];return this.each(function(){a.push(c.dom.clone(this))}),c(a)},remove:function(a){var f,e=(c.dom,c(a));return this.each(function(){return f=this,a===b?(f=this.parentNode,f&&this&&f.removeChild(this),!0):(e.each(function(){c.contains(f,this)&&f.removeChild(this)}),void 0)})},wrapAll:function(a){if(this.length<=0)return this;var f,d=this[0],e=d.parentNode;return e?(f=c(a),f.length<=0?this:(f=f[0],1!==f.nodeType?this:(e.insertBefore(f,d),c(f).append(this),this))):this},wrap:function(a){var e,b=typeof a,d=c.dom;return"function"===b?this.each(function(b){c(this).wrap(c(a.call(this,b)))}):(e=c(a),e.length<=0?this:(e=e[0],this.each(function(){var a=d.clone(e);c(this).wrapAll(a)})))},unwrap:function(){var a=c.dom;return this.each(function(){var b=this.parentNode;return!b||a.nodeName(b,"body")?!0:(c(c.merge([],b.childNodes)).insertBefore(b),c(b).remove(),void 0)})},wrapInner:function(a){return"function"==typeof a?this.each(function(b){c(this).wrapInner(c(a.call(this,b)))}):this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},contents:function(){var a=[],b=c.dom;return this.each(function(){var d=b.nodeName(this,"iframe")?this.contentDocument||this.contentWindow.document:this.childNodes;c.merge(a,d)}),c(a)},replace:function(a){return"function"==typeof a?this.each(function(b){c(this).insertBefore(c(a.call(this,b)))}):(c(a).insertBefore(this),this.remove(),this)},replaceTo:function(a){return c(a).replace(this),this},swap:function(a){if("function"==typeof a)return this.each(function(b){c(this).swap(c(a.call(this,b)))});var e,b=c(a);return e=c.uuid(),b.before("<div class='"+e+"'></div>"),this.before(b),c("."+e).replace(this),this},swapTo:function(a){return c(a).swap(this),this},filter:function(a,b,d){var i,e=typeof a,f=c.find,g=c.dom,b=!!b,d=!!d;return arguments.length<=0?c([]):(i=[],this.each(function(h){if("string"===e&&(b?!f.matchesSelector(this,a):f.matchesSelector(this,a))){if(i.push(this),d)return!0}else if(c.isBudObject(a)){var j=this,k=!1;if(a.each(function(){return j===this?(k=!0,!1):void 0}),(b?!k:k)&&(i.push(this),d))return!0}else if(g.isElement(a)&&(b?this!==a:this===a)){if(i.push(this),d)return!0}else if("function"===e&&(b?!a.call(this,h):a.call(this,h))&&(i.push(this),d))return!0}),c(i))},_filterControl:function(a,b,d,e){var f=c.find,g=[];return this.length<=0?c(g):(this.each(function(){var h,d=b.call(this);if(c.isArray(d)){if(e)for(h=0;h<d.length;h++)if(c.dom.isElement(e)&&d[h]===e||"string"==typeof e&&f.matchesSelector(d[h],e)){d.splice(h,d.length);break}g=g.concat(d)}}),"string"==typeof a&&(g=f.matches(a,g)),c(g))},children:function(a){return this._filterControl(a,function(){return c.dom.siblings(this)},!1)},next:function(a){return this._filterControl(a,function(){return c.dom.siblings(this,this,!0,!0)},!0)},nextAll:function(a){return this._filterControl(a,function(){return c.dom.siblings(this,this)},!1)},nextUntil:function(a,b){return this._filterControl(b,function(){return c.dom.siblings(this,this)},!1,a)},prev:function(a){return this._filterControl(a,function(){return c.dom.siblings(this,this,!1,!0)},!0)},prevAll:function(a){return this._filterControl(a,function(){return c.dom.siblings(this,this,!1)},!1)},prevUntil:function(a,b){return this._filterControl(b,function(){return c.dom.siblings(this,this,!1)},!1,a)},siblings:function(a){return this._filterControl(a,function(){return c.dom.siblings(this,this,!0).concat(c.dom.siblings(this,this,!1))},!1)},parent:function(a){return this._filterControl(a,function(){return c.dom.parents(this,!0)},!0)},parents:function(a){return this._filterControl(a,function(){return c.dom.parents(this,!1)},!1)},parentUntil:function(a,b){return this._filterControl(b,function(){return c.dom.parents(this,!1)},!1,a)},offsetParent:function(){return this._filterControl(b,function(){return[c.style.offsetParent(this)]},!1)},eq:function(a){var b=[],d=this;return"number"!=typeof a?this:(this.each(function(c){(a>=0?c===a:c===a+d.length)&&b.push(this)}),c(b))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(a,b){var d=[],e=typeof a,f=typeof b;return"number"!==e?this:("number"!==f&&(b=this.length),this.each(function(c){c>=a&&b>c&&d.push(this)}),c(d))},not:function(a){return this.filter(a,!0)},is:function(a){return this.filter(a,!1,!0).length>0},isNot:function(a){return!this.is(a)},has:function(a){var b=this.find("*"),d=[];return b.each(function(){c(this).is(a)&&d.push(this)}),b=null,c(d)},index:function(a,d){var d,e=this[0],f=-1;return e?(c.isBoolean(a)&&(d=a,a=b),"undefined"==typeof a&&(a=this[0].parentNode),c(a).children().each(function(a){if(d||"none"==c(this).css("display")){if(this===e)return f=a,!1}else if(f++,this===e)return!1}),f):f},attr:function(a,d){var e=typeof a,f=typeof d;return"undefined"===f&&"string"===e?this[0]?this[0].getAttribute(a):b:this.each(function(b){if("string"===e)"function"===f?this.setAttribute(a,d.call(this,b,this.getAttribute(a))):this.setAttribute(a,d);else if(c.isPlainObject(a))for(var g in a)this.setAttribute(g,a[g])})},removeAttr:function(){var b=arguments;return b.length<=0?this:this.each(function(){for(var a in b)"string"==typeof b[a]&&this.removeAttribute(b[a])})},prop:function(a,d){var e=typeof a,f=typeof d;return"undefined"===f&&"string"===e?this[0]?this[0][a]:b:this.each(function(b){if("string"===e)this[a]="function"===f?d.call(this,b,this[a]):d;else if(c.isPlainObject(a))for(var g in a)this[g]=a[g]})},removeProp:function(){var a=arguments;return a.length<=0?this:this.each(function(){for(var c in a)"string"==typeof a[c]&&(this[a[c]]=b)})},val:function(a){var h,f,d=c.valExtend,e=typeof a;return"undefined"===e?(f=this[0])?(h=f.nodeName.toLowerCase(),d[h]&&d[h].get?d[h].get(f):f.value):b:this.each(function(b){var g,f=this.nodeName.toLowerCase();g="function"===e?a.call(this,b,c(this).val()):a,d[f]&&d[f].set?d[f].set(this,g):this.value=g})}},c.queue={defName:"__queue__",get:function(a,b){var d,e;return"undefined"==typeof b&&(b=this.defName),d=c.bud(a),queues=d.queues,queues||(queues=d.queues={}),(e=queues[b])&&e instanceof C||(e=queues[b]=new C(a)),e},set:function(a,b,c){var d=this.get(a,b);return d.enter(c),d},run:function(a,d,e){var f=b;if(a instanceof C)f=a;else{if(!c.dom.isElement(a))return f;f=this.get(a,d)}return f.go(e),f},clear:function(a,d){var e=b;if(a instanceof C)e=a;else{if(!c.dom.isElement(a))return e;e=this.get(a,d)}return e.clear(),e}},c.extend(c.seed,{queue:function(a,d){var j,e=typeof a,g=arguments.length;return 1>=g&&("undefined"===e||"string"===e)?this[0]?c.queue.get(this[0],a):b:(("function"===e||c.isArray(a))&&(d=a,a=b),this.each(function(){j=c.queue.set(this,a,d),c.queue.run(j)}))},dequeue:function(a){return this.each(function(){c.queue.run(this,a,!0)})},clearQueue:function(a){return this.each(function(){c.queue.clear(this,a)})},delay:function(d,e){return c.isNumeric(d)?this.queue(e,function(c){var e;e=a.setTimeout(function(){c(),a.clearTimeout(e),e=b},d)}):this}}),c.action={interval:1e3/60,duration:400,blocks:["width","height"],position:["Top","Right","Bottom","Left"],prop:{__handle__:function(a,b,d,e,f){var h,j,i,g=c.action.position;for(h in g)i=a+g[h]+b,j="undefined"!=typeof f?f:parseFloat(d.css(i)),e[i]=isNaN(j)?0:j;delete e[a+b]},borderWidth:function(a,b,d){return c.action.prop.__handle__("border","Width",a,b,d)},padding:function(a,b,d){return c.action.prop.__handle__("padding","",a,b,d)},margin:function(a,b,d){return c.action.prop.__handle__("margin","",a,b,d)}},easing:{easeinout:function(a,b,d,e){return c.action.easing.swing(a,b,d,e)},swing:function(a,b,c,d){return(a/=d/2)<1?c/2*a*a+b:-c/2*(--a*(a-2)-1)+b},linear:function(a,b,c,d){return c*a/d+b}}},l=function(a,d,e){this.properties={},this.beginValue={},this.options={duration:c.action.duration,easing:"easeinout",begin:function(){},complete:function(){}},this.actor=c(a),c.extend(this.properties,d),c.extend(this.options,e),this.timer=b,this.startTime=b,this.doneFunc=function(){},this.isMake=!1,this.isDone=!1},c.extend(l.prototype,{makeBeginValue:function(){var d,e,f,a=c.action.prop,b=this.beginValue;for(k in this.properties)d=parseFloat(this.actor.css(k)),d=isNaN(d)?0:d,a[k]?(a[k](this.actor,this.properties,this.properties[k]),a[k](this.actor,this.beginValue)):b[k]=d,c.inArray(k.toLowerCase(),c.action.blocks)>=0&&(e=!0);e&&(f=this.actor.css("display"),"inline"===f&&this.actor.css("display","inline-block")),this.isMake=!0},action:function(){var a,b;return this.timer||this.isDone?(this.done(),this):(a=this.options,b=this,this.makeBeginValue(),this.startTime=(new Date).getTime(),this.timer=setInterval(function(){b.step()},c.action.interval),a.begin(),void 0)},step:function(){var f,j,g,h,i,a=this.options,b=c.action.easing,d=b[a.easing],e=(new Date).getTime()-this.startTime;if("function"==typeof d)for(f in this.properties)g=parseFloat(this.beginValue[f]),h=parseFloat(this.properties[f]),i=h-g,j=d(e,g,i,a.duration),this.actor.css(f,j+"px");e>a.duration&&this.end()},setDone:function(a){"function"==typeof a&&(this.doneFunc=a)},interrupt:function(){this.timer&&clearInterval(this.timer),this.timer=null},end:function(){this.interrupt(),this.isMake||this.makeBeginValue();for(k in this.properties)this.actor.css(k,this.properties[k]+"px");this.options.complete(),this.doneFunc(),this.isDone=!0},done:function(){this.doneFunc()}}),c.extend(c.seed,{action:function(a,b){if(arguments.length<=0)return this;var d={queue:!0};return c.extend(d,b),this.each(function(){var b=new l(this,a,d),e=function(a){return b.setDone(function(){"function"==typeof a&&a()}),b.action()};e.$$perform=b,c(this).queue(e),d.queue||b.action()})},animate:function(){return this.action.apply(this,arguments)},cut:function(a,b){return this.each(function(){var f,g,d=c(this),e=d.queue();e&&(f=e.getCurrent())&&(g=f.$$perform)&&g instanceof l&&g.interrupt(),e&&e.currentIterator&&e.currentIterator(function(a){a instanceof l&&(a.interrupt(),b&&a.end())}),a&&d.clearQueue(),b&&g&&g.end(),g&&g.done()})},stop:function(){return this.cut.apply(this,arguments)},isPlaying:function(){if(!this[0])return!0;var a=c(this[0]).queue();return a.queue.length<=0},show:function(a){return c.isNumeric(a)||(a=b),this.each(function(){var d,e,b=c(this);"undefined"==typeof a?b.css("display","block"):(b.css("display","block"),d=b.width(),e=b.height(),b.width("0px").height("0px"),b.action({width:d,height:e},{duration:a}))})},hide:function(a){return c.isNumeric(a)||(a=b),this.each(function(){var b=c(this);"undefined"==typeof a?b.css("display","none"):b.action({width:0,height:0},{duration:a,complete:function(){b.css("display","none")}})})},fadeIn:function(a,b){return c.isFunction(a)&&(b=a,a=c.action.duration),c.isNumeric(a)||(a=c.action.duration),this.css("opacity",0),this.show(),this.action({opacity:1},{duration:a,complete:function(){b&&b()}})},fadeOut:function(a,b){return c.isFunction(a)&&(b=a,a=c.action.duration),c.isNumeric(a)||(a=c.action.duration),this.css("opactiy",1),this.show(),this.action({opacity:0},{duration:a,complete:function(){b&&b()}})}}),c.XMLHttp={config:{async:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",accpet:"*/*",dataType:"auto",username:b,password:b,cache:!1,jsonp:"callback",jsonpCallback:b,timeout:-1,charset:"UTF-8",data:b,beforeSend:function(){},success:function(){},error:function(){},complete:function(){}},request:function(){var c=b;if(a.XMLHttpRequest)c=new XMLHttpRequest;else if(a.ActiveXObject)try{c=new ActiveXObject("Microsoft.XMLHTTP")}catch(d){}return c},service:function(a,d){var h,i,j,e,f,g,k,l;if(!a)return!1;e=c.XMLHttp.config,f=this,g=c.extend({},e),j=c.Links(),c.extend(g,d),g.success=c.assign(g.success,e.success),g.error=c.assign(g.error,e.error),g.complete=c.assign(g.complete,e.complete),g.beforeSend=c.assign(g.beforeSend,e.beforeSend),a.onreadystatechange=function(){if(4==a.readyState){if(200==a.status){var c=b;try{c=f.convert(a,g.dataType),g.success(c,a.statusText,a),j.attack(c,a.statusText,a)}catch(d){g.error(d.message,a),j.retreat(b,d.message,a)}}else g.error(i?"timeout":a.statusText,a),j.retreat(b,a.statusText,a);g.complete(a.statusText,a)}},g.type&&"string"==typeof g.type||(g.type="GET"),g.type=c.trim(g.type.toUpperCase()),h=g.url,"GET"===g.type&&(k=h.indexOf("?"),l=this.serialize(g.data),h+=(k>=0?"&":"?")+l,g.cache||(h+="&"+(new Date).getTime()+Math.floor(9999*Math.random())));try{g.username?a.open(g.type,h,g.async,g.username,g.password):a.open(g.type,h,g.async)}catch(m){return g.error(m.message,a),j.retreat(b,m.message,a),j}return g.cache||(a.setRequestHeader("If-Modified-Since","0"),a.setRequestHeader("Cache-Control","no-cache"),a.setRequestHeader("Pragma","no-cache")),a.setRequestHeader("Content-Type",e.contentType),a.setRequestHeader("Accept","*/*"),a.setRequestHeader("X-Requested-With","XMLHttpRequest"),g.beforeSend(a),"POST"===g.type?a.send(this.serialize(g.data)):a.send(null),g.async&&g.timeout>0&&setTimeout(function(){i=!0,a.abort("timeout")},g.timeout),j},jsonp:function(d){var h,i,j,k,l,m,n,o,p,e=c.XMLHttp.config,g=c.extend({},e);return c.extend(g,d),g.success=c.assign(g.success,e.success),g.error=c.assign(g.error,e.error),g.complete=c.assign(g.complete,e.complete),g.beforeSend=c.assign(g.beforeSend,e.beforeSend),h=g.jsonp,i=g.jsonpCallback,j=g.url,k=j.indexOf("?"),n=c.Links(),"undefined"==typeof i&&(i="jBud"+(new Date).getTime()+"_"+Math.floor(99999*Math.random())),m=this.serialize(g.data),j+=(k>=0?"&":"?")+h+"="+i,m.length>0&&(j+="&"+m),l=!!a[i],l||(a[i]=function(){g.success.apply(null,arguments),n.attack.apply(n,arguments);try{delete a[i]}catch(c){a[i]=b}}),o=document.createElement("script"),p=document.getElementsByTagName("head")[0]||document.documentElement,o.type="text/javascript",o.src=j,o.async=g.async,g.charset&&(o.charset=g.charset),o.onload=o.onreadystatechange=function(c,d){(d||!o.readyState||/loaded|complete/.test(o.readyState))&&(o.onload=o.onreadystatechange=null,o.parentNode&&o.parentNode.removeChild(o),o=null,g.complete(),d&&(g.error("timeout"),n.retreat.call(n,b,"timeout"),l||(a[i]=function(){try{delete a[i]}catch(c){a[i]=b}})))},g.beforeSend(),p.insertBefore(o,p.firstChild),g.timeout>0&&setTimeout(function(){o&&o.onload(b,!0)},g.timeout),n},getScript:function(a){var f,g,h,d=c.extend({url:b,async:!1,charset:"UTF-8",cache:!0,complete:function(){},remove:!1,last:!0,id:b},a),e=d.url;d.complete=c.assign(d.complete,function(){}),d.cache||(f=e.indexOf("?"),e+=(f>0?"&":"?")+(new Date).getTime()+"=1"),g=document.createElement("script"),h=document.getElementsByTagName("head")[0],g.type="text/javascript",g.src=e,g.async=d.async,"string"==typeof d.id&&(g.id=d.id),d.charset&&(g.charset=d.charset),g.onload=function(){d.complete()},g.onreadystatechange=function(){/loaded|complete/.test(g.readyState)&&(g.onreadystatechange=null,d.complete())},g.onerror=function(){d.complete()},d.last?h.appendChild(g):h.insertBefore(g,h.firstChild)},serialize:function(a,b){var d,e,f,g,h,i;if("undefined"==typeof a||null===a)return"";if(c.isArray(a)||!c.isPlainObject(a))return a.toString();d=[],e=c.XMLHttp;for(k in a)if(f=a[k],c.isArray(f))for(g=0;g<f.length;g++)h=f[g],h="undefined"==typeof h||null===h?"":h,d.push(encodeURIComponent(k)+"="+encodeURIComponent(h));else c.isPlainObject(f)?d.push(e.serialize(f)):(f="undefined"==typeof f||null===f?"":f,d.push(encodeURIComponent(k)+"="+encodeURIComponent(f.toString())));return i=d.join("&"),d=null,b?encodeURI(i):i},convert:function(a,d){if(!a)return b;d&&"string"==typeof d||(d="auto"),d=c.trim(d.toLowerCase());var e=b;return(e=this.parse[d])&&"function"==typeof e?e(a):a.responseText},parse:{_type_:["xml","json","html","text"],auto:function(a){var f,g,b=a.getResponseHeader("Content-Type"),d=c.XMLHttp.parse,e=d._type_;for(f in e)if(g=new RegExp("\\b"+e[f]+"\\b","ig"),g.test(b))return d[e[f]](a);return a.responseText},xml:function(a){return c.XMLHttp.parseXML(a.responseXML)},json:function(a){var b=a.responseText;return c.XMLHttp.parseJSON(b)},html:function(a){return a.responseText},text:function(a){return a.responseText}},parseJSON:function(b){if(a.JSON&&a.JSON.parse)try{return a.JSON.parse(b)}catch(d){throw new Error("parse json error")}if(null===b)return b;if("string"==typeof b&&(b=c.trim(b)))return new Function("return "+b)();throw new Error("parse json error")},parseXML:function(c){var d,e;if("object"==typeof c)return c;if(!c||"string"!=typeof c)return null;try{a.DOMParser?(e=new DOMParser,d=e.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(f){d=b}if(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)throw new Error("parse xml error");return d}},c.extend({assign:function(a,b){return typeof a!=typeof b?b:a},ajax:function(a){var e,d=a.dataType;return d&&"string"==typeof d||(d="auto"),d=c.trim(d.toLowerCase()),"jsonp"===d?c.XMLHttp.jsonp(a):(e=c.XMLHttp.request())?c.XMLHttp.service(e,a):b},request:function(a,d,e,f,g){return c.isPlainObject(a)?this.ajax(a):(c.isFunction(d)&&(g=g||f||e,f=f||e,e=d,d=b),g||(g="GET"),this.ajax({url:a,data:d,success:e,dataType:f,type:g}))},jsonp:function(a,b,d){return c.isPlainObject(a)&&(a.dataType="jsonp"),this.request(a,b,d,"jsonp","GET")},post:function(a,b,c,d){return this.request(a,b,c,d,"POST")},getJSON:function(a,b,c){return this.request(a,b,c,"json","GET")},getXML:function(a,b,c){return this.request(a,b,c,"xml","GET")},get:function(a,b,c,d){return this.request(a,b,c,d,"GET")},parseJSON:function(a){return c.XMLHttp.parseJSON(a)},parseXML:function(a){return c.XMLHttp.parseXML(a)},serialize:function(a,b){return c.XMLHttp.serialize(a,b)},getScript:function(a,b){return c.isPlainObject(a)?c.XMLHttp.getScript(a):c.XMLHttp.getScript({url:a,complete:b})},_KV_:function(a,b){for(var c,d={};null!=(c=a.exec(b));)d[c[1]]=decodeURIComponent(c[2]);return d},KV:function(a){return this._KV_(/(?:&)?(.*?)=(.*?)(?=&|$)/g,a)},KVSearch:function(){return this._KV_(/(?:\?|&)(.*?)=(.*?)(?=&|$)/g,a.location.search)}}),c.seed.instance.prototype=c.seed,m={__initQueue__:function(){return this.__queue__||(this.__queue__={}),this.__queue__},addEventListener:function(a,b){this.__initQueue__();var c=this.__queue__[a];c||(c=this.__queue__[a]=[]),"function"==typeof b&&c.push(b)},removeEventListener:function(a,b){var c,d,e;if(this.__initQueue__(),c=this.__queue__[a],c&&"function"==typeof b)for(d=c.length;d>=0;d--)e=c[d],e===b&&delete e},emit:function(a,b){var c,d,e;if(this.__initQueue__(),c=this.__queue__[a])for(d=0;d<c.length;d++)e=c[d],"function"==typeof e&&e.call(this,b)},removeEventListeners:function(a){var b,c,d;if(this.__initQueue__(),"function"==typeof a){b=this.__queue__;for(c in b)d=a.call(this,c),d===!0&&delete b[c]}else delete this._queue_,this.__queue__={}}},c.enableListener=function(a){var b=typeof a;return"function"===b?c.extend(a.prototype,m):c.isPlainObject(a)&&c.extend(a,m),a},n={},o={_regexp_:{parent:/[^?#]*\//,dot:/\/\.\//g,"double":/\/[^/]+\/\.\.\//,root:/^.*?\/\/.*?\//,absolute:/^\/\/.|:\//,slash:/\\\\/g,require:/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|\/\*[\S\s]*?\*\/|\/(?:\\\/|[^\/\r\n])+\/(?=[^\/])|\/\/.*|\.\s*require|(?:^|[^$])\brequire\s*\(\s*(["'])(.+?)\1\s*\)/g},current:function(a){var c=document.getElementsByTagName("script");return c.length<=0?b:a?c[c.length-1]:c[0]},first:function(){return this.current(!1)},last:function(){return this.current(!0)},parent:function(a){var c=a.match(this._regexp_.parent);return c?c[0]:b},absolute:function(a){return a.hasAttribute?a.src:a.getAttribute("src",4)},path:function(a){var b=a.indexOf("?");return b>=0&&(a=a.substring(0,b)),a},realpath:function(a){for(a=a.replace(this._regexp_.dot,"/");a.match(this._regexp_.double);)a=a.replace(this._regexp_.double,"/");return a},configpath:function(a,b){var f,g,c=a.charAt(0),d=this._regexp_,e=z.base;return d.absolute.test(a)?f=a:"."===c?f=this.realpath((b?this.parent(b):e)+a):"/"===c?(g=e.match(d.root),f=g?g[0]+a.substring(1):a):f=e+a,f},right:function(a){var b,d,e,f,g;return b=a.lastIndexOf("."),0>b?f=!0:(e=a.substring(b+1),/^(js|css)$/gi.test(e)?(d=e.indexOf("/"),d>=0&&(f=!0)):f=!0),"undefined"==typeof z.timestamp?g="":"string"==typeof z.timestamp?g="?"+c.trim(z.timestamp)+"=1":c.isDate(z.timestamp)&&(g="?"+z.timestamp.getTime()+"=1"),{id:a+(f?".js":""),uri:a+(f?z.debug?"-debug.js":".js":"")+g}},get:function(a){return n[a]},has:function(a){return!!n[a]},hasListener:function(a){return!!ModuleQueue[a]},queue:function(a){var b=ModuleQueue[a];return b||(b=ModuleQueue[a]={},c.enableListener(ModuleQueue[a])),b},emit:function(a,b,c){var d=ModuleQueue[a];d&&d.emit(b,c)}},p=function(){this.id=b,this.uri=b,this.exports={},this.depends=[],this.sourceId=b,this.loaded=0,this.callback=b,this.isBeUse=!1,this.ref=b,this.state="READY",this.map={},this.realDepends=[]},p.STATE={READY:"READY",LOADING:"LOADING",LOADED:"LOADED",DEFINING:"DEFINING",DEFINED:"DEFINED"},c.extend(p.prototype,{getId:function(){var a=o.last();return a?o.path(o.absolute(a)):b},pushDepends:function(a){"string"==typeof a?this.depends.push(a):c.isArray(a)&&(this.depends=this.depends.concat(a))},load:function(){var b,a=this;this.isBeUse?(this.state=p.STATE.LOADED,this.loadDepends()):(b=this.resolve(this.sourceId,this.ref),this.id=b.id,this.uri=b.uri,this.state=p.STATE.READY,this.pushModule(),c.getScript({url:this.uri,charset:z.charset,complete:function(){a.state=p.STATE.LOADED}}),this.state=p.STATE.LOADING)},loadDepends:function(){var c,f,d,e,a=this.depends,b=this;if(!a||a.length<=0)return this.exec();for(c=0;c<a.length;c++)d=a[c],e=this.resolve(d,this.id),this.realDepends.push(e.id),(f=o.get(e.id))&&f.state===p.STATE.LOADED?this.map[e.id]=!0:(f||(f=new p,f.sourceId=d,f.ref=this.uri),f.addEventListener("define",function(){this.state===p.STATE.DEFINED&&(b.map[this.id]=!0,b.isLoaded()&&(b.exec(),this.removeEventListener("define",arguments.callee)))}),f.state===p.STATE.READY&&f.load());this.isLoaded()&&b.exec()},isLoaded:function(){var b,a=this.realDepends;for(b=0;b<a.length;b++)if(!this.map[a[b]])return!1;return!0},exec:function(){this.state!==p.STATE.DEFINED&&(this.callback&&this.callback.call(c,this.require,this.exports,this),this.state=p.STATE.DEFINED,this.emit("define"))},resolve:function(a,b){return o.right(o.configpath(a,b))},cache:function(){return n},require:function(a){var b=o.right(o.configpath(a)).id;return o.get(b).exports},pushModule:function(){n[this.id]=n[this.id]||this}}),c.extend(p.prototype,m),q=o.current(!0),r=o.absolute(q),s=o.parent(r)||o.parent(a.location.href),t=q.getAttribute("data-config"),t&&"string"==typeof t&&(t=c.trim(t)).length>0,u=q.getAttribute("data-main"),u&&"string"==typeof u&&(u=c.trim(u)).length>0,v=q.getAttribute("data-cache"),v=!!(v?v&&"true"==v:!0),w=q.getAttribute("data-params"),w="string"!=typeof w?"":w,w=c.KV(w),c.getConfigParameters=function(){return w},x=function(a){t&&t.length>0&&c.getScript({url:t,cache:v,complete:function(){a()}})},y=function(){if(u&&u.length>0){var a=u.split(",");c.use(a)}},z={base:s,debug:!1,timestamp:b,charset:"UTF-8"},c.config=function(a){c.extend(z,a)},A=c.define=function(a,d,e){c.isArray(a)?(e=d||a,dpends=a,a=b):c.isFunction(a)?(e=a,a=b,d=[]):"string"==typeof a&&c.isFunction(d)&&(e=d,d=[]);var g,h,f=o.right(o.configpath(a));return g=f.uri,h=o.get(f.id),h.state=p.STATE.DEFINING,h.pushDepends(d),h.callback=e,h.loadDepends(),c},c.use=function(a,b){if("string"==typeof a&&(a=[a]),!c.isArray(a))return c;var d=new p;d.isBeUse=!0,d.pushDepends(a),d.callback=function(a,d,e){b&&b.call(c,a,d,e),delete e.callback},d.load()},A.cmd=!0,t&&t.length>0?x(function(){y&&y()}):y(),C=function(a,c){this.commander=a,this.cmds=[],this.queue=[],this.assert=!!c,this.length=0,this.isGo=!1,this.current=b,this.currentRun=[]},c.extend(C.prototype,{_install_:function(a,b,d){if(!this.cmds)return this;d=!!d;for(var e=0;e<b.length;e++)if("function"==typeof b[e])switch(a){case"queue":this.queue.push(b[e]);break;default:this.cmds.push({type:a,cmd:b[e],always:d})}else c.isArray(b[e])&&this._install_(a,b[e],d);return this},victory:function(){return this._install_("victory",arguments,!1)},defeat:function(){return this._install_("defeat",arguments,!1)},mush:function(){return this._install_("mush",arguments,!0)},_execute_:function(a,b){var d,e,f,c=this.cmds;if(!c)return this;for(f in c)if(d=c[f],(d.always||d.type===a)&&(e=d.cmd.apply(this,b),this.assert&&!e))break;return this.perish(),this},attack:function(){return this._execute_("victory",arguments)},retreat:function(){return this._execute_("defeat",arguments)},perish:function(){this.cmds.splice(0,this.cmds.length)},enter:function(){return this._install_("queue",arguments,!1),this.length=this.queue.length,this
},out:function(){var a=this.queue.shift();return this.length=this.queue.length,a},peek:function(){return this.queue[0]},clear:function(){this.queue.splice(0,this.queue.length),this.length=this.queue.length,this.isGo=!1},go:function(c){if(this.isGo&&!c)return this;this.isGo=!0;var e,d=this;return e=a.setTimeout(function(){var f,g,h,c=d.out();return d.current=c,c===b?(d.isGo=!1,d):(f=function(){d.go(!0)},g=function(){d.clear()},h=c.call(d.commander,f,g),h&&d.currentRun.push(h),a.clearTimeout(e),e=b,void 0)},0),this},getCurrent:function(){return this.current},getCurrentRun:function(){return this.currentRun},currentIterator:function(a){for(var b;b=this.currentRun.shift();)a(b)}}),c.Links=function(a){return new C(a)},E=!1,F=function(a){(document.addEventListener||"load"===a.type||"complete"===document.readyState)&&(D.attack(E),E=!0)},G=function(){var b=!1;try{b=null==a.frameElement&&document.documentElement}catch(d){}if(b&&b.doScroll&&E){try{b.doScroll("left")}catch(d){return setTimeout(G,50)}document.addEventListener?(document.removeEventListener("DOMContentLoaded",F,!1),a.removeEventListener("load",F,!1)):(document.detachEvent("onreadystatechange",F),a.detachEvent("onload",F)),c.ready()}},c.ready=function(b){return D||(D=c.Links(),"complete"===document.readyState?setTimeout(c.ready,50):document.addEventListener?(document.addEventListener("DOMContentLoaded",F,!1),a.addEventListener("load",F,!1)):(document.attachEvent("onreadystatechange",F),a.attachEvent("onload",F),G())),c.isFunction(b)&&D.victory(b),E&&D.attack(E),D}}(window);