lsp source file compression and make'r
This commit is contained in:
parent
d18f13d00f
commit
ae981d62d4
7 changed files with 1587 additions and 1 deletions
2
lsp/closure
Executable file
2
lsp/closure
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/bash
|
||||||
|
java -jar ./jscompiler.jar $*
|
233
lsp/compressed.js
Normal file
233
lsp/compressed.js
Normal file
|
@ -0,0 +1,233 @@
|
||||||
|
<script>
|
||||||
|
(function(o,p){function M(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}function L(a){if(!Ha[a]){var b=G.body,d=c("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){la||(la=G.createElement("iframe"),la.frameBorder=la.width=la.height=0);b.appendChild(la);if(!va||!la.createElement){va=(la.contentWindow||la.contentDocument).document;va.write((G.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");va.close()}d=va.createElement(a);va.body.appendChild(d);
|
||||||
|
e=c.css(d,"display");b.removeChild(la)}Ha[a]=e}return Ha[a]}function S(a,b){var d={};c.each(Qa.concat.apply([],Qa.slice(0,b)),function(){d[this]=a});return d}function da(){Ba=p}function N(){setTimeout(da,0);return Ba=c.now()}function K(){try{return new o.XMLHttpRequest}catch(a){}}function ha(a,b,d,e){if(c.isArray(b))c.each(b,function(g,i){d||tb.test(a)?e(a,i):ha(a+"["+(typeof i=="object"||c.isArray(i)?g:"")+"]",i,d,e)});else if(!d&&b!=null&&typeof b=="object")for(var f in b)ha(a+"["+f+"]",b[f],d,
|
||||||
|
e);else e(a,b)}function ea(a,b){var d,e,f=c.ajaxSettings.flatOptions||{};for(d in b)b[d]!==p&&((f[d]?a:e||(e={}))[d]=b[d]);e&&c.extend(true,a,e)}function aa(a,b,d,e,f,g){f=f||b.dataTypes[0];g=g||{};g[f]=true;f=a[f];for(var i=0,l=f?f.length:0,n=a===Ia,m;i<l&&(n||!m);i++){m=f[i](b,d,e);typeof m=="string"&&(!n||g[m]?m=p:(b.dataTypes.unshift(m),m=aa(a,b,d,e,m,g)))}(n||!m)&&!g["*"]&&(m=aa(a,b,d,e,"*",g));return m}function oa(a){return function(b,d){typeof b!="string"&&(d=b,b="*");if(c.isFunction(d))for(var e=
|
||||||
|
b.toLowerCase().split(Ra),f=0,g=e.length,i,l;f<g;f++){i=e[f];(l=/^\+/.test(i))&&(i=i.substr(1)||"*");i=a[i]=a[i]||[];i[l?"unshift":"push"](d)}}}function B(a,b,d){var e=b==="width"?a.offsetWidth:a.offsetHeight,f=b==="width"?ub:vb,g=0,i=f.length;if(e>0){if(d!=="border")for(;g<i;g++){d||(e-=parseFloat(c.css(a,"padding"+f[g]))||0);d==="margin"?e+=parseFloat(c.css(a,d+f[g]))||0:e-=parseFloat(c.css(a,"border"+f[g]+"Width"))||0}return e+"px"}e=wa(a,b,b);if(e<0||e==null)e=a.style[b]||0;e=parseFloat(e)||0;
|
||||||
|
if(d)for(;g<i;g++){e+=parseFloat(c.css(a,"padding"+f[g]))||0;d!=="padding"&&(e+=parseFloat(c.css(a,"border"+f[g]+"Width"))||0);d==="margin"&&(e+=parseFloat(c.css(a,d+f[g]))||0)}return e+"px"}function C(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval((b.text||b.textContent||b.innerHTML||"").replace(wb,"/*$0*/"));b.parentNode&&b.parentNode.removeChild(b)}function w(a){var b=(a.nodeName||"").toLowerCase();b==="input"?y(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&
|
||||||
|
c.grep(a.getElementsByTagName("input"),y)}function y(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function Q(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function W(a,b){var d;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes();b.mergeAttributes&&b.mergeAttributes(a);d=b.nodeName.toLowerCase();if(d==="object")b.outerHTML=a.outerHTML;else if(d!=="input"||a.type!=="checkbox"&&
|
||||||
|
a.type!=="radio")if(d==="option")b.selected=a.defaultSelected;else{if(d==="input"||d==="textarea")b.defaultValue=a.defaultValue}else{a.checked&&(b.defaultChecked=b.checked=a.checked);b.value!==a.value&&(b.value=a.value)}b.removeAttribute(c.expando)}}function F(a,b){if(b.nodeType===1&&c.hasData(a)){var d,e,f;e=c._data(a);var g=c._data(b,e),i=e.events;if(i){delete g.handle;g.events={};for(d in i){e=0;for(f=i[d].length;e<f;e++)c.event.add(b,d+(i[d][e].namespace?".":"")+i[d][e].namespace,i[d][e],i[d][e].data)}}g.data&&
|
||||||
|
(g.data=c.extend({},g.data))}}function O(a){var b=Sa.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function ba(a,b,d){b=b||0;if(c.isFunction(b))return c.grep(a,function(f,g){return!!b.call(f,g,f)===d});if(b.nodeType)return c.grep(a,function(f){return f===b===d});if(typeof b=="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(xb.test(b))return c.filter(b,e,!d);b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=
|
||||||
|
0===d})}function fa(){return true}function Z(){return false}function Ta(a,b,d){var e=b+"defer",f=b+"queue",g=b+"mark",i=c._data(a,e);i&&(d==="queue"||!c._data(a,f))&&(d==="mark"||!c._data(a,g))&&setTimeout(function(){!c._data(a,f)&&!c._data(a,g)&&(c.removeData(a,e,true),i.fire())},0)}function Ja(a){for(var b in a)if(!(b==="data"&&c.isEmptyObject(a[b])))if(b!=="toJSON")return false;return true}function Ua(a,b,d){if(d===p&&a.nodeType===1){d="data-"+b.replace(yb,"-$1").toLowerCase();d=a.getAttribute(d);
|
||||||
|
if(typeof d=="string"){try{d=d==="true"?true:d==="false"?false:d==="null"?null:c.isNumeric(d)?parseFloat(d):zb.test(d)?c.parseJSON(d):d}catch(e){}c.data(a,b,d)}else d=p}return d}function Ab(a){var b=Va[a]={},d,e;a=a.split(/\s+/);d=0;for(e=a.length;d<e;d++)b[a[d]]=true;return b}var G=o.document,Bb=o.navigator,Cb=o.location,c=function(){function a(){if(!b.isReady){try{G.documentElement.doScroll("left")}catch(k){setTimeout(a,1);return}b.ready()}}var b=function(k,v){return new b.fn.init(k,v,f)},d=o.jQuery,
|
||||||
|
e=o.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,l=/^\s+/,n=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,D=/^[\],:{}\s]*$/,t=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,I=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,x=/(?:^|:|,)(?:\s*\[)+/g,R=/(webkit)[ \/]([\w.]+)/,T=/(opera)(?:.*version)?[ \/]([\w.]+)/,U=/(msie) ([\w.]+)/,ca=/(mozilla)(?:.*? rv:([\w.]+))?/,pa=/-([a-z]|[0-9])/ig,ia=/^-ms-/,V=function(k,v){return(v+"").toUpperCase()},ka=Bb.userAgent,h,j,q=Object.prototype.toString,
|
||||||
|
r=Object.prototype.hasOwnProperty,s=Array.prototype.push,u=Array.prototype.slice,J=String.prototype.trim,z=Array.prototype.indexOf,X={};b.fn=b.prototype={constructor:b,init:function(k,v,A){var E,H;if(!k)return this;if(k.nodeType){this.context=this[0]=k;this.length=1;return this}if(k==="body"&&!v&&G.body){this.context=G;this[0]=G.body;this.selector=k;this.length=1;return this}if(typeof k=="string"){k.charAt(0)!=="<"||k.charAt(k.length-1)!==">"||k.length<3?E=g.exec(k):E=[null,k,null];if(E&&(E[1]||!v)){if(E[1]){H=
|
||||||
|
(v=v instanceof b?v[0]:v)?v.ownerDocument||v:G;(A=m.exec(k))?b.isPlainObject(v)?(k=[G.createElement(A[1])],b.fn.attr.call(k,v,true)):k=[H.createElement(A[1])]:(A=b.buildFragment([E[1]],[H]),k=(A.cacheable?b.clone(A.fragment):A.fragment).childNodes);return b.merge(this,k)}if((v=G.getElementById(E[2]))&&v.parentNode){if(v.id!==E[2])return A.find(k);this.length=1;this[0]=v}this.context=G;this.selector=k;return this}return!v||v.jquery?(v||A).find(k):this.constructor(v).find(k)}if(b.isFunction(k))return A.ready(k);
|
||||||
|
k.selector!==p&&(this.selector=k.selector,this.context=k.context);return b.makeArray(k,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return u.call(this,0)},get:function(k){return k==null?this.toArray():k<0?this[this.length+k]:this[k]},pushStack:function(k,v,A){var E=this.constructor();b.isArray(k)?s.apply(E,k):b.merge(E,k);E.prevObject=this;E.context=this.context;v==="find"?E.selector=this.selector+(this.selector?" ":"")+A:v&&(E.selector=this.selector+
|
||||||
|
"."+v+"("+A+")");return E},each:function(k,v){return b.each(this,k,v)},ready:function(k){b.bindReady();h.add(k);return this},eq:function(k){k=+k;return k===-1?this.slice(k):this.slice(k,k+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(u.apply(this,arguments),"slice",u.call(arguments).join(","))},map:function(k){return this.pushStack(b.map(this,function(v,A){return k.call(v,A,v)}))},end:function(){return this.prevObject||this.constructor(null)},
|
||||||
|
push:s,sort:[].sort,splice:[].splice};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var k,v,A,E,H,P,Y=arguments[0]||{},ga=1,xa=arguments.length,ma=false;typeof Y=="boolean"&&(ma=Y,Y=arguments[1]||{},ga=2);typeof Y!="object"&&!b.isFunction(Y)&&(Y={});for(xa===ga&&(Y=this,--ga);ga<xa;ga++)if((k=arguments[ga])!=null)for(v in k){A=Y[v];E=k[v];if(Y!==E)ma&&E&&(b.isPlainObject(E)||(H=b.isArray(E)))?(H?(H=false,P=A&&b.isArray(A)?A:[]):P=A&&b.isPlainObject(A)?A:{},Y[v]=b.extend(ma,P,E)):E!==p&&
|
||||||
|
(Y[v]=E)}return Y};b.extend({noConflict:function(k){o.$===b&&(o.$=e);k&&o.jQuery===b&&(o.jQuery=d);return b},isReady:false,readyWait:1,holdReady:function(k){k?b.readyWait++:b.ready(true)},ready:function(k){if(k===true&&!--b.readyWait||k!==true&&!b.isReady){if(!G.body)return setTimeout(b.ready,1);b.isReady=true;if(!(k!==true&&--b.readyWait>0)){h.fireWith(G,[b]);b.fn.trigger&&b(G).trigger("ready").off("ready")}}},bindReady:function(){if(!h){h=b.Callbacks("once memory");if(G.readyState==="complete")return setTimeout(b.ready,
|
||||||
|
1);if(G.addEventListener){G.addEventListener("DOMContentLoaded",j,false);o.addEventListener("load",b.ready,false)}else if(G.attachEvent){G.attachEvent("onreadystatechange",j);o.attachEvent("onload",b.ready);var k=false;try{k=o.frameElement==null}catch(v){}G.documentElement.doScroll&&k&&a()}}},isFunction:function(k){return b.type(k)==="function"},isArray:Array.isArray||function(k){return b.type(k)==="array"},isWindow:function(k){return k&&typeof k=="object"&&"setInterval"in k},isNumeric:function(k){return!isNaN(parseFloat(k))&&
|
||||||
|
isFinite(k)},type:function(k){return k==null?String(k):X[q.call(k)]||"object"},isPlainObject:function(k){if(!k||b.type(k)!=="object"||k.nodeType||b.isWindow(k))return false;try{if(k.constructor&&!r.call(k,"constructor")&&!r.call(k.constructor.prototype,"isPrototypeOf"))return false}catch(v){return false}for(var A in k);return A===p||r.call(k,A)},isEmptyObject:function(k){for(var v in k)return false;return true},error:function(k){throw Error(k);},parseJSON:function(k){if(typeof k!="string"||!k)return null;
|
||||||
|
k=b.trim(k);if(o.JSON&&o.JSON.parse)return o.JSON.parse(k);if(D.test(k.replace(t,"@").replace(I,"]").replace(x,"")))return(new Function("return "+k))();b.error("Invalid JSON: "+k)},parseXML:function(k){var v,A;try{o.DOMParser?(A=new DOMParser,v=A.parseFromString(k,"text/xml")):(v=new ActiveXObject("Microsoft.XMLDOM"),v.async="false",v.loadXML(k))}catch(E){v=p}(!v||!v.documentElement||v.getElementsByTagName("parsererror").length)&&b.error("Invalid XML: "+k);return v},noop:function(){},globalEval:function(k){k&&
|
||||||
|
i.test(k)&&(o.execScript||function(v){o.eval.call(o,v)})(k)},camelCase:function(k){return k.replace(ia,"ms-").replace(pa,V)},nodeName:function(k,v){return k.nodeName&&k.nodeName.toUpperCase()===v.toUpperCase()},each:function(k,v,A){var E,H=0,P=k.length,Y=P===p||b.isFunction(k);if(A)if(Y)for(E in k){if(v.apply(k[E],A)===false)break}else for(;H<P;){if(v.apply(k[H++],A)===false)break}else if(Y)for(E in k){if(v.call(k[E],E,k[E])===false)break}else for(;H<P;)if(v.call(k[H],H,k[H++])===false)break;return k},
|
||||||
|
trim:J?function(k){return k==null?"":J.call(k)}:function(k){return k==null?"":(k+"").replace(l,"").replace(n,"")},makeArray:function(k,v){var A=v||[];if(k!=null){var E=b.type(k);k.length==null||E==="string"||E==="function"||E==="regexp"||b.isWindow(k)?s.call(A,k):b.merge(A,k)}return A},inArray:function(k,v,A){var E;if(v){if(z)return z.call(v,k,A);E=v.length;for(A=A?A<0?Math.max(0,E+A):A:0;A<E;A++)if(A in v&&v[A]===k)return A}return-1},merge:function(k,v){var A=k.length,E=0;if(typeof v.length=="number")for(var H=
|
||||||
|
v.length;E<H;E++)k[A++]=v[E];else for(;v[E]!==p;)k[A++]=v[E++];k.length=A;return k},grep:function(k,v,A){var E=[],H;A=!!A;for(var P=0,Y=k.length;P<Y;P++){H=!!v(k[P],P);A!==H&&E.push(k[P])}return E},map:function(k,v,A){var E,H,P=[],Y=0,ga=k.length;if(k instanceof b||ga!==p&&typeof ga=="number"&&(ga>0&&k[0]&&k[ga-1]||ga===0||b.isArray(k)))for(;Y<ga;Y++){E=v(k[Y],Y,A);E!=null&&(P[P.length]=E)}else for(H in k){E=v(k[H],H,A);E!=null&&(P[P.length]=E)}return P.concat.apply([],P)},guid:1,proxy:function(k,
|
||||||
|
v){if(typeof v=="string"){var A=k[v];v=k;k=A}if(!b.isFunction(k))return p;var E=u.call(arguments,2);A=function(){return k.apply(v,E.concat(u.call(arguments)))};A.guid=k.guid=k.guid||A.guid||b.guid++;return A},access:function(k,v,A,E,H,P){var Y=k.length;if(typeof v=="object"){for(var ga in v)b.access(k,ga,v[ga],E,H,A);return k}if(A!==p){E=!P&&E&&b.isFunction(A);for(ga=0;ga<Y;ga++)H(k[ga],v,E?A.call(k[ga],ga,H(k[ga],v)):A,P);return k}return Y?H(k[0],v):p},now:function(){return(new Date).getTime()},
|
||||||
|
uaMatch:function(k){k=k.toLowerCase();k=R.exec(k)||T.exec(k)||U.exec(k)||k.indexOf("compatible")<0&&ca.exec(k)||[];return{browser:k[1]||"",version:k[2]||"0"}},sub:function(){function k(A,E){return new k.fn.init(A,E)}b.extend(true,k,this);k.superclass=this;k.fn=k.prototype=this();k.fn.constructor=k;k.sub=this.sub;k.fn.init=function(A,E){E&&E instanceof b&&!(E instanceof k)&&(E=k(E));return b.fn.init.call(this,A,E,v)};k.fn.init.prototype=k.fn;var v=k(G);return k},browser:{}});b.each("Boolean Number String Function Array Date RegExp Object".split(" "),
|
||||||
|
function(k,v){X["[object "+v+"]"]=v.toLowerCase()});ka=b.uaMatch(ka);ka.browser&&(b.browser[ka.browser]=true,b.browser.version=ka.version);b.browser.webkit&&(b.browser.safari=true);i.test(" ")&&(l=/^[\s\xA0]+/,n=/[\s\xA0]+$/);f=b(G);G.addEventListener?j=function(){G.removeEventListener("DOMContentLoaded",j,false);b.ready()}:G.attachEvent&&(j=function(){G.readyState==="complete"&&(G.detachEvent("onreadystatechange",j),b.ready())});return b}(),Va={};c.Callbacks=function(a){a=a?Va[a]||Ab(a):{};var b=
|
||||||
|
[],d=[],e,f,g,i,l,n=function(t){var I,x,R,T;I=0;for(x=t.length;I<x;I++){R=t[I];T=c.type(R);T==="array"?n(R):T==="function"&&(!a.unique||!D.has(R))&&b.push(R)}},m=function(t,I){I=I||[];e=!a.memory||[t,I];f=true;l=g||0;g=0;for(i=b.length;b&&l<i;l++)if(b[l].apply(t,I)===false&&a.stopOnFalse){e=true;break}f=false;b&&(a.once?e===true?D.disable():b=[]:d&&d.length&&(e=d.shift(),D.fireWith(e[0],e[1])))},D={add:function(){if(b){var t=b.length;n(arguments);f?i=b.length:e&&e!==true&&(g=t,m(e[0],e[1]))}return this},
|
||||||
|
remove:function(){if(b)for(var t=arguments,I=0,x=t.length;I<x;I++)for(var R=0;R<b.length;R++)if(t[I]===b[R]){f&&R<=i&&(i--,R<=l&&l--);b.splice(R--,1);if(a.unique)break}return this},has:function(t){if(b)for(var I=0,x=b.length;I<x;I++)if(t===b[I])return true;return false},empty:function(){b=[];return this},disable:function(){b=d=e=p;return this},disabled:function(){return!b},lock:function(){d=p;(!e||e===true)&&D.disable();return this},locked:function(){return!d},fireWith:function(t,I){d&&(f?a.once||
|
||||||
|
d.push([t,I]):(!a.once||!e)&&m(t,I));return this},fire:function(){D.fireWith(this,arguments);return this},fired:function(){return!!e}};return D};var Ka=[].slice;c.extend({Deferred:function(a){var b=c.Callbacks("once memory"),d=c.Callbacks("once memory"),e=c.Callbacks("memory"),f="pending",g={resolve:b,reject:d,notify:e},i={done:b.add,fail:d.add,progress:e.add,state:function(){return f},isResolved:b.fired,isRejected:d.fired,then:function(m,D,t){l.done(m).fail(D).progress(t);return this},always:function(){l.done.apply(l,
|
||||||
|
arguments).fail.apply(l,arguments);return this},pipe:function(m,D,t){return c.Deferred(function(I){c.each({done:[m,"resolve"],fail:[D,"reject"],progress:[t,"notify"]},function(x,R){var T=R[0],U=R[1],ca;c.isFunction(T)?l[x](function(){(ca=T.apply(this,arguments))&&c.isFunction(ca.promise)?ca.promise().then(I.resolve,I.reject,I.notify):I[U+"With"](this===l?I:this,[ca])}):l[x](I[U])})}).promise()},promise:function(m){if(m==null)m=i;else for(var D in i)m[D]=i[D];return m}},l=i.promise({}),n;for(n in g){l[n]=
|
||||||
|
g[n].fire;l[n+"With"]=g[n].fireWith}l.done(function(){f="resolved"},d.disable,e.lock).fail(function(){f="rejected"},b.disable,e.lock);a&&a.call(l,l);return l},when:function(a){function b(D){return function(t){i[D]=arguments.length>1?Ka.call(arguments,0):t;n.notifyWith(m,i)}}function d(D){return function(t){e[D]=arguments.length>1?Ka.call(arguments,0):t;--l||n.resolveWith(n,e)}}var e=Ka.call(arguments,0),f=0,g=e.length,i=Array(g),l=g,n=g<=1&&a&&c.isFunction(a.promise)?a:c.Deferred(),m=n.promise();
|
||||||
|
if(g>1){for(;f<g;f++)e[f]&&e[f].promise&&c.isFunction(e[f].promise)?e[f].promise().then(d(f),n.reject,b(f)):--l;l||n.resolveWith(n,e)}else n!==a&&n.resolveWith(n,g?[a]:[]);return m}});c.support=function(){var a,b,d,e,f,g,i,l,n,m=G.createElement("div");m.setAttribute("className","t");m.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";b=m.getElementsByTagName("*");d=m.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};e=
|
||||||
|
G.createElement("select");f=e.appendChild(G.createElement("option"));b=m.getElementsByTagName("input")[0];a={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(d.getAttribute("style")),hrefNormalized:d.getAttribute("href")==="/a",opacity:/^0.55/.test(d.style.opacity),cssFloat:!!d.style.cssFloat,checkOn:b.value==="on",optSelected:f.selected,getSetAttribute:m.className!=="t",enctype:!!G.createElement("form").enctype,
|
||||||
|
html5Clone:G.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};b.checked=true;a.noCloneChecked=b.cloneNode(true).checked;e.disabled=true;a.optDisabled=!f.disabled;try{delete m.test}catch(D){a.deleteExpando=false}!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",function(){a.noCloneEvent=
|
||||||
|
false}),m.cloneNode(true).fireEvent("onclick"));b=G.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");m.appendChild(b);d=G.createDocumentFragment();d.appendChild(m.lastChild);a.checkClone=d.cloneNode(true).cloneNode(true).lastChild.checked;a.appendChecked=b.checked;d.removeChild(b);d.appendChild(m);m.innerHTML="";o.getComputedStyle&&(g=G.createElement("div"),g.style.width="0",g.style.marginRight="0",m.style.width="2px",
|
||||||
|
m.appendChild(g),a.reliableMarginRight=(parseInt((o.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0);if(m.attachEvent)for(l in{submit:1,change:1,focusin:1}){g="on"+l;(n=g in m)||(m.setAttribute(g,"return;"),n=typeof m[g]=="function");a[l+"Bubbles"]=n}d.removeChild(m);d=e=f=g=m=b=null;c(function(){var t,I,x,R,T,U=G.getElementsByTagName("body")[0];!U||(t=G.createElement("div"),t.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",U.insertBefore(t,
|
||||||
|
U.firstChild),m=G.createElement("div"),t.appendChild(m),m.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",i=m.getElementsByTagName("td"),n=i[0].offsetHeight===0,i[0].style.display="",i[1].style.display="none",a.reliableHiddenOffsets=n&&i[0].offsetHeight===0,m.innerHTML="",m.style.width=m.style.paddingLeft="1px",c.boxModel=a.boxModel=m.offsetWidth===2,typeof m.style.zoom!="undefined"&&(m.style.display="inline",m.style.zoom=1,a.inlineBlockNeedsLayout=
|
||||||
|
m.offsetWidth===2,m.style.display="",m.innerHTML="<div style='width:4px;'></div>",a.shrinkWrapBlocks=m.offsetWidth!==2),m.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;",m.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",
|
||||||
|
I=m.firstChild,x=I.firstChild,R=I.nextSibling.firstChild.firstChild,T={doesNotAddBorder:x.offsetTop!==5,doesAddBorderForTableAndCells:R.offsetTop===5},x.style.position="fixed",x.style.top="20px",T.fixedPosition=x.offsetTop===20||x.offsetTop===15,x.style.position=x.style.top="",I.style.overflow="hidden",I.style.position="relative",T.subtractsBorderForOverflowNotVisible=x.offsetTop===-5,T.doesNotIncludeMarginInBodyOffset=U.offsetTop!==1,U.removeChild(t),m=null,c.extend(a,T))});return a}();var zb=/^(?:\{.*\}|\[.*\])$/,
|
||||||
|
yb=/([A-Z])/g;c.extend({cache:{},uuid:0,expando:"jQuery"+(c.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(a){a=a.nodeType?c.cache[a[c.expando]]:a[c.expando];return!!a&&!Ja(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f,g;f=c.expando;var i=typeof b=="string",l=a.nodeType,n=l?c.cache:a,m=l?a[f]:a[f]&&f,D=b==="events";if(!((!m||!n[m]||!D&&!e&&!n[m].data)&&i&&d===p)){m||(l?a[f]=m=++c.uuid:m=f);n[m]||
|
||||||
|
(n[m]={},l||(n[m].toJSON=c.noop));if(typeof b=="object"||typeof b=="function")e?n[m]=c.extend(n[m],b):n[m].data=c.extend(n[m].data,b);a=f=n[m];e||(f.data||(f.data={}),f=f.data);d!==p&&(f[c.camelCase(b)]=d);if(D&&!f[b])return a.events;i?(g=f[b],g==null&&(g=f[c.camelCase(b)])):g=f;return g}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f,g,i=c.expando,l=a.nodeType,n=l?c.cache:a,m=l?a[i]:i;if(n[m]){if(b)if(e=d?n[m]:n[m].data){c.isArray(b)||(b in e?b=[b]:(b=c.camelCase(b),b in e?b=[b]:b=b.split(" ")));
|
||||||
|
f=0;for(g=b.length;f<g;f++)delete e[b[f]];if(!(d?Ja:c.isEmptyObject)(e))return}if(!d){delete n[m].data;if(!Ja(n[m]))return}c.support.deleteExpando||!n.setInterval?delete n[m]:n[m]=null;l&&(c.support.deleteExpando?delete a[i]:a.removeAttribute?a.removeAttribute(i):a[i]=null)}}},_data:function(a,b,d){return c.data(a,b,d,true)},acceptData:function(a){if(a.nodeName){var b=c.noData[a.nodeName.toLowerCase()];if(b)return b!==true&&a.getAttribute("classid")===b}return true}});c.fn.extend({data:function(a,
|
||||||
|
b){var d,e,f,g=null;if(typeof a=="undefined"){if(this.length){g=c.data(this[0]);if(this[0].nodeType===1&&!c._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,l=e.length;i<l;i++){f=e[i].name;f.indexOf("data-")===0&&(f=c.camelCase(f.substring(5)),Ua(this[0],f,g[f]))}c._data(this[0],"parsedAttrs",true)}}return g}if(typeof a=="object")return this.each(function(){c.data(this,a)});d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===p){g=this.triggerHandler("getData"+d[1]+"!",[d[0]]);g===p&&this.length&&
|
||||||
|
(g=c.data(this[0],a),g=Ua(this[0],a,g));return g===p&&d[1]?this.data(d[0]):g}return this.each(function(){var n=c(this),m=[d[0],b];n.triggerHandler("setData"+d[1]+"!",m);c.data(this,a,b);n.triggerHandler("changeData"+d[1]+"!",m)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",c._data(a,b,(c._data(a,b)||0)+1))},_unmark:function(a,b,d){a!==true&&(d=b,b=a,a=false);if(b){d=d||"fx";var e=d+"mark";(a=a?0:(c._data(b,e)||
|
||||||
|
1)-1)?c._data(b,e,a):(c.removeData(b,e,true),Ta(b,d,"mark"))}},queue:function(a,b,d){var e;if(a){b=(b||"fx")+"queue";e=c._data(a,b);d&&(!e||c.isArray(d)?e=c._data(a,b,c.makeArray(d)):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift(),f={};e==="inprogress"&&(e=d.shift());e&&(b==="fx"&&d.unshift("inprogress"),c._data(a,b+".run",f),e.call(a,function(){c.dequeue(a,b)},f));d.length||(c.removeData(a,b+"queue "+b+".run",true),Ta(a,b,"queue"))}});c.fn.extend({queue:function(a,
|
||||||
|
b){typeof a!="string"&&(b=a,a="fx");if(b===p)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(d,e){var f=setTimeout(d,a);e.stop=function(){clearTimeout(f)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a){function b(){--g||d.resolveWith(e,
|
||||||
|
[e])}typeof a!="string"&&(a=p);a=a||"fx";var d=c.Deferred(),e=this,f=e.length,g=1,i=a+"defer",l=a+"queue";a=a+"mark";for(var n;f--;)if(n=c.data(e[f],i,p,true)||(c.data(e[f],l,p,true)||c.data(e[f],a,p,true))&&c.data(e[f],i,c.Callbacks("once memory"),true)){g++;n.add(b)}b();return d.promise()}});var Wa=/[\n\t\r]/g,Ca=/\s+/,Db=/\r/g,Eb=/^(?:button|input)$/i,Fb=/^(?:button|input|object|select|textarea)$/i,Gb=/^a(?:rea)?$/i,Xa=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
|
||||||
|
Ya=c.support.getSetAttribute,na,Za,$a;c.fn.extend({attr:function(a,b){return c.access(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.removeAttr(this,a)})},prop:function(a,b){return c.access(this,a,b,true,c.prop)},removeProp:function(a){a=c.propFix[a]||a;return this.each(function(){try{this[a]=p;delete this[a]}catch(b){}})},addClass:function(a){var b,d,e,f,g,i,l;if(c.isFunction(a))return this.each(function(n){c(this).addClass(a.call(this,n,this.className))});if(a&&typeof a==
|
||||||
|
"string"){b=a.split(Ca);d=0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===1)if(!f.className&&b.length===1)f.className=a;else{g=" "+f.className+" ";i=0;for(l=b.length;i<l;i++)~g.indexOf(" "+b[i]+" ")||(g+=b[i]+" ");f.className=c.trim(g)}}}return this},removeClass:function(a){var b,d,e,f,g,i,l;if(c.isFunction(a))return this.each(function(n){c(this).removeClass(a.call(this,n,this.className))});if(a&&typeof a=="string"||a===p){b=(a||"").split(Ca);d=0;for(e=this.length;d<e;d++){f=this[d];if(f.nodeType===
|
||||||
|
1&&f.className)if(a){g=(" "+f.className+" ").replace(Wa," ");i=0;for(l=b.length;i<l;i++)g=g.replace(" "+b[i]+" "," ");f.className=c.trim(g)}else f.className=""}}return this},toggleClass:function(a,b){var d=typeof a,e=typeof b=="boolean";if(c.isFunction(a))return this.each(function(f){c(this).toggleClass(a.call(this,f,this.className,b),b)});return this.each(function(){if(d==="string")for(var f,g=0,i=c(this),l=b,n=a.split(Ca);f=n[g++];){l=e?l:!i.hasClass(f);i[l?"addClass":"removeClass"](f)}else if(d===
|
||||||
|
"undefined"||d==="boolean"){this.className&&c._data(this,"__className__",this.className);this.className=this.className||a===false?"":c._data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1&&(" "+this[b].className+" ").replace(Wa," ").indexOf(a)>-1)return true;return false},val:function(a){var b,d,e,f=this[0];if(arguments.length){e=c.isFunction(a);return this.each(function(g){var i=c(this),l;if(this.nodeType===1){e?l=a.call(this,
|
||||||
|
g,i.val()):l=a;l==null?l="":typeof l=="number"?l+="":c.isArray(l)&&(l=c.map(l,function(n){return n==null?"":n+""}));b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!b||!("set"in b)||b.set(this,l,"value")===p)this.value=l}})}if(f){if((b=c.valHooks[f.nodeName.toLowerCase()]||c.valHooks[f.type])&&"get"in b&&(d=b.get(f,"value"))!==p)return d;d=f.value;return typeof d=="string"?d.replace(Db,""):d==null?"":d}}});c.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||
|
||||||
|
b.specified?a.value:a.text}},select:{get:function(a){var b,d,e=a.selectedIndex,f=[],g=a.options,i=a.type==="select-one";if(e<0)return null;a=i?e:0;for(d=i?e+1:g.length;a<d;a++){b=g[a];if(b.selected&&(c.support.optDisabled?!b.disabled:b.getAttribute("disabled")===null)&&(!b.parentNode.disabled||!c.nodeName(b.parentNode,"optgroup"))){b=c(b).val();if(i)return b;f.push(b)}}if(i&&!f.length&&g.length)return c(g[e]).val();return f},set:function(a,b){var d=c.makeArray(b);c(a).find("option").each(function(){this.selected=
|
||||||
|
c.inArray(c(this).val(),d)>=0});d.length||(a.selectedIndex=-1);return d}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){var f,g,i=a.nodeType;if(a&&i!==3&&i!==8&&i!==2){if(e&&b in c.attrFn)return c(a)[b](d);if(typeof a.getAttribute=="undefined")return c.prop(a,b,d);(e=i!==1||!c.isXMLDoc(a))&&(b=b.toLowerCase(),g=c.attrHooks[b]||(Xa.test(b)?Za:na));if(d!==p){if(d===null){c.removeAttr(a,b);return}if(g&&"set"in g&&e&&(f=g.set(a,d,b))!==
|
||||||
|
p)return f;a.setAttribute(b,""+d);return d}if(g&&"get"in g&&e&&(f=g.get(a,b))!==null)return f;f=a.getAttribute(b);return f===null?p:f}},removeAttr:function(a,b){var d,e,f,g,i=0;if(b&&a.nodeType===1){e=b.toLowerCase().split(Ca);for(g=e.length;i<g;i++)(f=e[i])&&(d=c.propFix[f]||f,c.attr(a,f,""),a.removeAttribute(Ya?f:d),Xa.test(f)&&d in a&&(a[d]=false))}},attrHooks:{type:{set:function(a,b){if(Eb.test(a.nodeName)&&a.parentNode)c.error("type property can't be changed");else if(!c.support.radioValue&&
|
||||||
|
b==="radio"&&c.nodeName(a,"input")){var d=a.value;a.setAttribute("type",b);d&&(a.value=d);return b}}},value:{get:function(a,b){if(na&&c.nodeName(a,"button"))return na.get(a,b);return b in a?a.value:null},set:function(a,b,d){if(na&&c.nodeName(a,"button"))return na.set(a,b,d);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",
|
||||||
|
contenteditable:"contentEditable"},prop:function(a,b,d){var e,f,g;g=a.nodeType;if(a&&g!==3&&g!==8&&g!==2){(g=g!==1||!c.isXMLDoc(a))&&(b=c.propFix[b]||b,f=c.propHooks[b]);return d!==p?f&&"set"in f&&(e=f.set(a,d,b))!==p?e:a[b]=d:f&&"get"in f&&(e=f.get(a,b))!==null?e:a[b]}},propHooks:{tabIndex:{get:function(a){var b=a.getAttributeNode("tabindex");return b&&b.specified?parseInt(b.value,10):Fb.test(a.nodeName)||Gb.test(a.nodeName)&&a.href?0:p}}}});c.attrHooks.tabindex=c.propHooks.tabIndex;Za={get:function(a,
|
||||||
|
b){var d,e=c.prop(a,b);return e===true||typeof e!="boolean"&&(d=a.getAttributeNode(b))&&d.nodeValue!==false?b.toLowerCase():p},set:function(a,b,d){var e;b===false?c.removeAttr(a,d):(e=c.propFix[d]||d,e in a&&(a[e]=true),a.setAttribute(d,d.toLowerCase()));return d}};Ya||($a={name:true,id:true},na=c.valHooks.button={get:function(a,b){var d;return(d=a.getAttributeNode(b))&&($a[b]?d.nodeValue!=="":d.specified)?d.nodeValue:p},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=G.createAttribute(d),a.setAttributeNode(e));
|
||||||
|
return e.nodeValue=b+""}},c.attrHooks.tabindex.set=na.set,c.each(["width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{set:function(d,e){if(e===""){d.setAttribute(b,"auto");return e}}})}),c.attrHooks.contenteditable={get:na.get,set:function(a,b,d){b===""&&(b="false");na.set(a,b,d)}});c.support.hrefNormalized||c.each(["href","src","width","height"],function(a,b){c.attrHooks[b]=c.extend(c.attrHooks[b],{get:function(d){d=d.getAttribute(b,2);return d===null?p:d}})});c.support.style||
|
||||||
|
(c.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||p},set:function(a,b){return a.style.cssText=""+b}});c.support.optSelected||(c.propHooks.selected=c.extend(c.propHooks.selected,{get:function(){return null}}));c.support.enctype||(c.propFix.enctype="encoding");c.support.checkOn||c.each(["radio","checkbox"],function(){c.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}});c.each(["radio","checkbox"],function(){c.valHooks[this]=c.extend(c.valHooks[this],
|
||||||
|
{set:function(a,b){if(c.isArray(b))return a.checked=c.inArray(c(a).val(),b)>=0}})});var La=/^(?:textarea|input|select)$/i,ab=/^([^\.]*)?(?:\.(.+))?$/,Hb=/\bhover(\.\S+)?\b/,Ib=/^key/,Jb=/^(?:mouse|contextmenu)|click/,bb=/^(?:focusinfocus|focusoutblur)$/,Kb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Lb=function(a){(a=Kb.exec(a))&&(a[1]=(a[1]||"").toLowerCase(),a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)"));return a},cb=function(a){return c.event.special.hover?a:a.replace(Hb,"mouseenter$1 mouseleave$1")};
|
||||||
|
c.event={add:function(a,b,d,e,f){var g,i,l,n,m,D,t,I,x;if(!(a.nodeType===3||a.nodeType===8||!b||!d||!(g=c._data(a)))){d.handler&&(t=d,d=t.handler);d.guid||(d.guid=c.guid++);(l=g.events)||(g.events=l={});(i=g.handle)||(g.handle=i=function(R){return typeof c!="undefined"&&(!R||c.event.triggered!==R.type)?c.event.dispatch.apply(i.elem,arguments):p},i.elem=a);b=c.trim(cb(b)).split(" ");for(g=0;g<b.length;g++){n=ab.exec(b[g])||[];m=n[1];D=(n[2]||"").split(".").sort();x=c.event.special[m]||{};m=(f?x.delegateType:
|
||||||
|
x.bindType)||m;x=c.event.special[m]||{};n=c.extend({type:m,origType:n[1],data:e,handler:d,guid:d.guid,selector:f,quick:Lb(f),namespace:D.join(".")},t);I=l[m];if(!I){I=l[m]=[];I.delegateCount=0;if(!x.setup||x.setup.call(a,e,D,i)===false)a.addEventListener?a.addEventListener(m,i,false):a.attachEvent&&a.attachEvent("on"+m,i)}x.add&&(x.add.call(a,n),n.handler.guid||(n.handler.guid=d.guid));f?I.splice(I.delegateCount++,0,n):I.push(n);c.event.global[m]=true}a=null}},global:{},remove:function(a,b,d,e,f){var g=
|
||||||
|
c.hasData(a)&&c._data(a),i,l,n,m,D,t,I,x,R,T,U;if(g&&(I=g.events)){b=c.trim(cb(b||"")).split(" ");for(i=0;i<b.length;i++){l=ab.exec(b[i])||[];n=m=l[1];l=l[2];if(n){x=c.event.special[n]||{};n=(e?x.delegateType:x.bindType)||n;T=I[n]||[];D=T.length;l=l?RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(t=0;t<T.length;t++){U=T[t];(f||m===U.origType)&&(!d||d.guid===U.guid)&&(!l||l.test(U.namespace))&&(!e||e===U.selector||e==="**"&&U.selector)&&(T.splice(t--,1),U.selector&&T.delegateCount--,
|
||||||
|
x.remove&&x.remove.call(a,U))}T.length===0&&D!==T.length&&((!x.teardown||x.teardown.call(a,l)===false)&&c.removeEvent(a,n,g.handle),delete I[n])}else for(n in I)c.event.remove(a,n+b[i],d,e,true)}c.isEmptyObject(I)&&(R=g.handle,R&&(R.elem=null),c.removeData(a,["events","handle"],true))}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(a,b,d,e){if(!d||d.nodeType!==3&&d.nodeType!==8){var f=a.type||a,g=[],i,l,n,m,D,t;if(!bb.test(f+c.event.triggered)){f.indexOf("!")>=0&&(f=f.slice(0,
|
||||||
|
-1),i=true);f.indexOf(".")>=0&&(g=f.split("."),f=g.shift(),g.sort());if(!((!d||c.event.customEvent[f])&&!c.event.global[f])){a=typeof a=="object"?a[c.expando]?a:new c.Event(f,a):new c.Event(f);a.type=f;a.isTrigger=true;a.exclusive=i;a.namespace=g.join(".");a.namespace_re=a.namespace?RegExp("(^|\\.)"+g.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;i=f.indexOf(":")<0?"on"+f:"";if(d){a.result=p;a.target||(a.target=d);b=b!=null?c.makeArray(b):[];b.unshift(a);m=c.event.special[f]||{};if(!(m.trigger&&m.trigger.apply(d,
|
||||||
|
b)===false)){t=[[d,m.bindType||f]];if(!e&&!m.noBubble&&!c.isWindow(d)){l=m.delegateType||f;g=bb.test(l+f)?d:d.parentNode;for(n=null;g;g=g.parentNode){t.push([g,l]);n=g}n&&n===d.ownerDocument&&t.push([n.defaultView||n.parentWindow||o,l])}for(l=0;l<t.length&&!a.isPropagationStopped();l++){g=t[l][0];a.type=t[l][1];(D=(c._data(g,"events")||{})[a.type]&&c._data(g,"handle"))&&D.apply(g,b);(D=i&&g[i])&&c.acceptData(g)&&D.apply(g,b)===false&&a.preventDefault()}a.type=f;!e&&!a.isDefaultPrevented()&&(!m._default||
|
||||||
|
m._default.apply(d.ownerDocument,b)===false)&&(f!=="click"||!c.nodeName(d,"a"))&&c.acceptData(d)&&i&&d[f]&&(f!=="focus"&&f!=="blur"||a.target.offsetWidth!==0)&&!c.isWindow(d)&&(n=d[i],n&&(d[i]=null),c.event.triggered=f,d[f](),c.event.triggered=p,n&&(d[i]=n));return a.result}}else{d=c.cache;for(l in d)d[l].events&&d[l].events[f]&&c.event.trigger(a,b,d[l].handle.elem,true)}}}}},dispatch:function(a){a=c.event.fix(a||o.event);var b=(c._data(this,"events")||{})[a.type]||[],d=b.delegateCount,e=[].slice.call(arguments,
|
||||||
|
0),f=!a.exclusive&&!a.namespace,g=[],i,l,n,m,D,t,I;e[0]=a;a.delegateTarget=this;if(d&&!a.target.disabled&&(!a.button||a.type!=="click")){n=c(this);n.context=this.ownerDocument||this;for(l=a.target;l!=this;l=l.parentNode||this){D={};t=[];n[0]=l;for(i=0;i<d;i++){m=b[i];I=m.selector;if(D[I]===p){var x=D,R=I,T;if(m.quick){T=m.quick;var U=l.attributes||{};T=(!T[1]||l.nodeName.toLowerCase()===T[1])&&(!T[2]||(U.id||{}).value===T[2])&&(!T[3]||T[3].test((U["class"]||{}).value))}else T=n.is(I);x[R]=T}D[I]&&
|
||||||
|
t.push(m)}t.length&&g.push({elem:l,matches:t})}}b.length>d&&g.push({elem:this,matches:b.slice(d)});for(i=0;i<g.length&&!a.isPropagationStopped();i++){d=g[i];a.currentTarget=d.elem;for(b=0;b<d.matches.length&&!a.isImmediatePropagationStopped();b++){m=d.matches[b];if(f||!a.namespace&&!m.namespace||a.namespace_re&&a.namespace_re.test(m.namespace)){a.data=m.data;a.handleObj=m;m=((c.event.special[m.origType]||{}).handle||m.handler).apply(d.elem,e);m!==p&&(a.result=m,m===false&&(a.preventDefault(),a.stopPropagation()))}}}return a.result},
|
||||||
|
props:"attrChange attrName relatedNode srcElement 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){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var d,e,f,
|
||||||
|
g=b.button,i=b.fromElement;a.pageX==null&&b.clientX!=null&&(d=a.target.ownerDocument||G,e=d.documentElement,f=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0));!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?b.toElement:i);!a.which&&g!==p&&(a.which=g&1?1:g&2?3:g&4?2:0);return a}},fix:function(a){if(a[c.expando])return a;var b,d,e=a,f=c.event.fixHooks[a.type]||
|
||||||
|
{},g=f.props?this.props.concat(f.props):this.props;a=c.Event(e);for(b=g.length;b;){d=g[--b];a[d]=e[d]}a.target||(a.target=e.srcElement||G);a.target.nodeType===3&&(a.target=a.target.parentNode);a.metaKey===p&&(a.metaKey=a.ctrlKey);return f.filter?f.filter(a,e):a},special:{ready:{setup:c.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,d){c.isWindow(this)&&(this.onbeforeunload=d)},teardown:function(a,b){this.onbeforeunload===
|
||||||
|
b&&(this.onbeforeunload=null)}}},simulate:function(a,b,d,e){a=c.extend(new c.Event,d,{type:a,isSimulated:true,originalEvent:{}});e?c.event.trigger(a,null,b):c.event.dispatch.call(b,a);a.isDefaultPrevented()&&d.preventDefault()}};c.event.handle=c.event.dispatch;c.removeEvent=G.removeEventListener?function(a,b,d){a.removeEventListener&&a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent&&a.detachEvent("on"+b,d)};c.Event=function(a,b){if(!(this instanceof c.Event))return new c.Event(a,b);
|
||||||
|
a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===false||a.getPreventDefault&&a.getPreventDefault()?fa:Z):this.type=a;b&&c.extend(this,b);this.timeStamp=a&&a.timeStamp||c.now();this[c.expando]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=fa;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=false)},stopPropagation:function(){this.isPropagationStopped=fa;var a=this.originalEvent;!a||
|
||||||
|
(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=true)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=fa;this.stopPropagation()},isDefaultPrevented:Z,isPropagationStopped:Z,isImmediatePropagationStopped:Z};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={delegateType:b,bindType:b,handle:function(d){var e=d.relatedTarget,f=d.handleObj,g;if(!e||e!==this&&!c.contains(this,e)){d.type=f.origType;g=f.handler.apply(this,arguments);d.type=
|
||||||
|
b}return g}}});c.support.submitBubbles||(c.event.special.submit={setup:function(){if(c.nodeName(this,"form"))return false;c.event.add(this,"click._submit keypress._submit",function(a){a=a.target;(a=c.nodeName(a,"input")||c.nodeName(a,"button")?a.form:p)&&!a._submit_attached&&(c.event.add(a,"submit._submit",function(b){this.parentNode&&!b.isTrigger&&c.event.simulate("submit",this.parentNode,b,true)}),a._submit_attached=true)})},teardown:function(){if(c.nodeName(this,"form"))return false;c.event.remove(this,
|
||||||
|
"._submit")}});c.support.changeBubbles||(c.event.special.change={setup:function(){if(La.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){c.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=true)});c.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=false,c.event.simulate("change",this,a,true))})}return false}c.event.add(this,"beforeactivate._change",function(a){a=a.target;
|
||||||
|
La.test(a.nodeName)&&!a._change_attached&&(c.event.add(a,"change._change",function(b){this.parentNode&&!b.isSimulated&&!b.isTrigger&&c.event.simulate("change",this.parentNode,b,true)}),a._change_attached=true)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox")return a.handleObj.handler.apply(this,arguments)},teardown:function(){c.event.remove(this,"._change");return La.test(this.nodeName)}});c.support.focusinBubbles||c.each({focus:"focusin",
|
||||||
|
blur:"focusout"},function(a,b){var d=0,e=function(f){c.event.simulate(b,f.target,c.event.fix(f),true)};c.event.special[b]={setup:function(){d++===0&&G.addEventListener(a,e,true)},teardown:function(){--d===0&&G.removeEventListener(a,e,true)}}});c.fn.extend({on:function(a,b,d,e,f){var g,i;if(typeof a=="object"){typeof b!="string"&&(d=b,b=p);for(i in a)this.on(i,b,d,a[i],f);return this}d==null&&e==null?(e=b,d=b=p):e==null&&(typeof b=="string"?(e=d,d=p):(e=d,d=b,b=p));if(e===false)e=Z;else if(!e)return this;
|
||||||
|
f===1&&(g=e,e=function(l){c().off(l);return g.apply(this,arguments)},e.guid=g.guid||(g.guid=c.guid++));return this.each(function(){c.event.add(this,a,e,d,b)})},one:function(a,b,d,e){return this.on.call(this,a,b,d,e,1)},off:function(a,b,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;c(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(e in a)this.off(e,b,a[e]);return this}if(b===false||typeof b=="function"){d=b;b=
|
||||||
|
p}d===false&&(d=Z);return this.each(function(){c.event.remove(this,a,d,b)})},bind:function(a,b,d){return this.on(a,null,b,d)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,d){c(this.context).on(a,this.selector,b,d);return this},die:function(a,b){c(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,d,e){return this.on(b,a,d,e)},undelegate:function(a,b,d){return arguments.length==1?this.off(a,"**"):this.off(b,a,d)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,
|
||||||
|
b,this)})},triggerHandler:function(a,b){if(this[0])return c.event.trigger(a,b,this[0],true)},toggle:function(a){var b=arguments,d=a.guid||c.guid++,e=0,f=function(g){var i=(c._data(this,"lastToggle"+a.guid)||0)%e;c._data(this,"lastToggle"+a.guid,i+1);g.preventDefault();return b[i].apply(this,arguments)||false};for(f.guid=d;e<b.length;)b[e++].guid=d;return this.click(f)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});c.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){c.fn[b]=function(d,e){e==null&&(e=d,d=null);return arguments.length>0?this.on(b,null,d,e):this.trigger(b)};c.attrFn&&(c.attrFn[b]=true);Ib.test(b)&&(c.event.fixHooks[b]=c.event.keyHooks);Jb.test(b)&&(c.event.fixHooks[b]=c.event.mouseHooks)});(function(){function a(h,j,q,r,s,u){s=0;for(var J=r.length;s<J;s++){var z=r[s];if(z){var X=false;for(z=z[h];z;){if(z[e]===q){X=r[z.sizset];break}if(z.nodeType===1){u||(z[e]=q,z.sizset=s);if(typeof j!="string"){if(z===j){X=true;break}}else if(t.filter(j,
|
||||||
|
[z]).length>0){X=z;break}}z=z[h]}r[s]=X}}}function b(h,j,q,r,s,u){s=0;for(var J=r.length;s<J;s++){var z=r[s];if(z){var X=false;for(z=z[h];z;){if(z[e]===q){X=r[z.sizset];break}z.nodeType===1&&!u&&(z[e]=q,z.sizset=s);if(z.nodeName.toLowerCase()===j){X=z;break}z=z[h]}r[s]=X}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString,i=false,
|
||||||
|
l=true,n=/\\/g,m=/\r\n/g,D=/\W/;[0,0].sort(function(){l=false;return 0});var t=function(h,j,q,r){q=q||[];var s=j=j||G;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!h||typeof h!="string")return q;var u,J,z,X,k,v,A=true,E=t.isXML(j),H=[],P=h;do{d.exec("");if(u=d.exec(P)){P=u[3];H.push(u[1]);if(u[2]){X=u[3];break}}}while(u);if(H.length>1&&R.exec(h))if(H.length===2&&x.relative[H[0]])J=ka(H[0]+H[1],j,r);else for(J=x.relative[H[0]]?[j]:t(H.shift(),j);H.length;){h=H.shift();x.relative[h]&&(h+=H.shift());
|
||||||
|
J=ka(h,J,r)}else{!r&&H.length>1&&j.nodeType===9&&!E&&x.match.ID.test(H[0])&&!x.match.ID.test(H[H.length-1])&&(k=t.find(H.shift(),j,E),j=k.expr?t.filter(k.expr,k.set)[0]:k.set[0]);if(j){k=r?{expr:H.pop(),set:ca(r)}:t.find(H.pop(),H.length===1&&(H[0]==="~"||H[0]==="+")&&j.parentNode?j.parentNode:j,E);J=k.expr?t.filter(k.expr,k.set):k.set;for(H.length>0?z=ca(J):A=false;H.length;){u=v=H.pop();x.relative[v]?u=H.pop():v="";u==null&&(u=j);x.relative[v](z,u,E)}}else z=[]}z||(z=J);z||t.error(v||h);if(g.call(z)===
|
||||||
|
"[object Array]")if(A)if(j&&j.nodeType===1)for(h=0;z[h]!=null;h++)z[h]&&(z[h]===true||z[h].nodeType===1&&t.contains(j,z[h]))&&q.push(J[h]);else for(h=0;z[h]!=null;h++)z[h]&&z[h].nodeType===1&&q.push(J[h]);else q.push.apply(q,z);else ca(z,q);X&&(t(X,s,q,r),t.uniqueSort(q));return q};t.uniqueSort=function(h){if(ia){i=l;h.sort(ia);if(i)for(var j=1;j<h.length;j++)h[j]===h[j-1]&&h.splice(j--,1)}return h};t.matches=function(h,j){return t(h,null,null,j)};t.matchesSelector=function(h,j){return t(j,null,null,
|
||||||
|
[h]).length>0};t.find=function(h,j,q){var r,s,u,J,z,X;if(!h)return[];s=0;for(u=x.order.length;s<u;s++){z=x.order[s];if(J=x.leftMatch[z].exec(h)){X=J[1];J.splice(1,1);if(X.substr(X.length-1)!=="\\"){J[1]=(J[1]||"").replace(n,"");r=x.find[z](J,j,q);if(r!=null){h=h.replace(x.match[z],"");break}}}}r||(r=typeof j.getElementsByTagName!="undefined"?j.getElementsByTagName("*"):[]);return{set:r,expr:h}};t.filter=function(h,j,q,r){for(var s,u,J,z,X,k,v,A,E=h,H=[],P=j,Y=j&&j[0]&&t.isXML(j[0]);h&&j.length;){for(J in x.filter)if((s=
|
||||||
|
x.leftMatch[J].exec(h))!=null&&s[2]){k=x.filter[J];X=s[1];u=false;s.splice(1,1);if(X.substr(X.length-1)!=="\\"){P===H&&(H=[]);if(x.preFilter[J])if(s=x.preFilter[J](s,P,q,H,r,Y)){if(s===true)continue}else u=z=true;if(s)for(v=0;(X=P[v])!=null;v++)X&&(z=k(X,s,v,P),A=r^z,q&&z!=null?A?u=true:P[v]=false:A&&(H.push(X),u=true));if(z!==p){q||(P=H);h=h.replace(x.match[J],"");if(!u)return[];break}}}if(h===E)if(u==null)t.error(h);else break;E=h}return P};t.error=function(h){throw Error("Syntax error, unrecognized expression: "+
|
||||||
|
h);};var I=t.getText=function(h){var j,q;j=h.nodeType;var r="";if(j)if(j===1||j===9){if(typeof h.textContent=="string")return h.textContent;if(typeof h.innerText=="string")return h.innerText.replace(m,"");for(h=h.firstChild;h;h=h.nextSibling)r+=I(h)}else{if(j===3||j===4)return h.nodeValue}else for(j=0;q=h[j];j++)q.nodeType!==8&&(r+=I(q));return r},x=t.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,
|
||||||
|
ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(h){return h.getAttribute("href")},
|
||||||
|
type:function(h){return h.getAttribute("type")}},relative:{"+":function(h,j){var q=typeof j=="string",r=q&&!D.test(j);q=q&&!r;r&&(j=j.toLowerCase());r=0;for(var s=h.length,u;r<s;r++)if(u=h[r]){for(;(u=u.previousSibling)&&u.nodeType!==1;);h[r]=q||u&&u.nodeName.toLowerCase()===j?u||false:u===j}q&&t.filter(j,h,true)},">":function(h,j){var q,r=typeof j=="string",s=0,u=h.length;if(r&&!D.test(j))for(j=j.toLowerCase();s<u;s++){if(q=h[s]){q=q.parentNode;h[s]=q.nodeName.toLowerCase()===j?q:false}}else{for(;s<
|
||||||
|
u;s++)(q=h[s])&&(h[s]=r?q.parentNode:q.parentNode===j);r&&t.filter(j,h,true)}},"":function(h,j,q){var r,s=f++,u=a;typeof j=="string"&&!D.test(j)&&(j=j.toLowerCase(),r=j,u=b);u("parentNode",j,s,h,r,q)},"~":function(h,j,q){var r,s=f++,u=a;typeof j=="string"&&!D.test(j)&&(j=j.toLowerCase(),r=j,u=b);u("previousSibling",j,s,h,r,q)}},find:{ID:function(h,j,q){if(typeof j.getElementById!="undefined"&&!q)return(h=j.getElementById(h[1]))&&h.parentNode?[h]:[]},NAME:function(h,j){if(typeof j.getElementsByName!=
|
||||||
|
"undefined"){for(var q=[],r=j.getElementsByName(h[1]),s=0,u=r.length;s<u;s++)r[s].getAttribute("name")===h[1]&&q.push(r[s]);return q.length===0?null:q}},TAG:function(h,j){if(typeof j.getElementsByTagName!="undefined")return j.getElementsByTagName(h[1])}},preFilter:{CLASS:function(h,j,q,r,s,u){h=" "+h[1].replace(n,"")+" ";if(u)return h;u=0;for(var J;(J=j[u])!=null;u++)J&&(s^(J.className&&(" "+J.className+" ").replace(/[\t\n\r]/g," ").indexOf(h)>=0)?q||r.push(J):q&&(j[u]=false));return false},ID:function(h){return h[1].replace(n,
|
||||||
|
"")},TAG:function(h){return h[1].replace(n,"").toLowerCase()},CHILD:function(h){if(h[1]==="nth"){h[2]||t.error(h[0]);h[2]=h[2].replace(/^\+|\s*/g,"");var j=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(h[2]==="even"&&"2n"||h[2]==="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=j[1]+(j[2]||1)-0;h[3]=j[3]-0}else h[2]&&t.error(h[0]);h[0]=f++;return h},ATTR:function(h,j,q,r,s,u){j=h[1]=h[1].replace(n,"");!u&&x.attrMap[j]&&(h[1]=x.attrMap[j]);h[4]=(h[4]||h[5]||"").replace(n,"");h[2]==="~="&&(h[4]=" "+h[4]+
|
||||||
|
" ");return h},PSEUDO:function(h,j,q,r,s){if(h[1]==="not")if((d.exec(h[3])||"").length>1||/^\w/.test(h[3]))h[3]=t(h[3],null,null,j);else{h=t.filter(h[3],j,q,true^s);q||r.push.apply(r,h);return false}else if(x.match.POS.test(h[0])||x.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled===false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===
|
||||||
|
true},parent:function(h){return!!h.firstChild},empty:function(h){return!h.firstChild},has:function(h,j,q){return!!t(q[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){var j=h.getAttribute("type"),q=h.type;return h.nodeName.toLowerCase()==="input"&&"text"===q&&(j===q||j===null)},radio:function(h){return h.nodeName.toLowerCase()==="input"&&"radio"===h.type},checkbox:function(h){return h.nodeName.toLowerCase()==="input"&&"checkbox"===h.type},file:function(h){return h.nodeName.toLowerCase()===
|
||||||
|
"input"&&"file"===h.type},password:function(h){return h.nodeName.toLowerCase()==="input"&&"password"===h.type},submit:function(h){var j=h.nodeName.toLowerCase();return(j==="input"||j==="button")&&"submit"===h.type},image:function(h){return h.nodeName.toLowerCase()==="input"&&"image"===h.type},reset:function(h){var j=h.nodeName.toLowerCase();return(j==="input"||j==="button")&&"reset"===h.type},button:function(h){var j=h.nodeName.toLowerCase();return j==="input"&&"button"===h.type||j==="button"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)},
|
||||||
|
focus:function(h){return h===h.ownerDocument.activeElement}},setFilters:{first:function(h,j){return j===0},last:function(h,j,q,r){return j===r.length-1},even:function(h,j){return j%2===0},odd:function(h,j){return j%2===1},lt:function(h,j,q){return j<q[3]-0},gt:function(h,j,q){return j>q[3]-0},nth:function(h,j,q){return q[3]-0===j},eq:function(h,j,q){return q[3]-0===j}},filter:{PSEUDO:function(h,j,q,r){var s=j[1],u=x.filters[s];if(u)return u(h,q,j,r);if(s==="contains")return(h.textContent||h.innerText||
|
||||||
|
I([h])||"").indexOf(j[3])>=0;if(s==="not"){j=j[3];q=0;for(r=j.length;q<r;q++)if(j[q]===h)return false;return true}t.error(s)},CHILD:function(h,j){var q,r,s,u,J,z;q=j[1];z=h;switch(q){case "only":case "first":for(;z=z.previousSibling;)if(z.nodeType===1)return false;if(q==="first")return true;z=h;case "last":for(;z=z.nextSibling;)if(z.nodeType===1)return false;return true;case "nth":q=j[2];r=j[3];if(q===1&&r===0)return true;s=j[0];if((u=h.parentNode)&&(u[e]!==s||!h.nodeIndex)){J=0;for(z=u.firstChild;z;z=
|
||||||
|
z.nextSibling)z.nodeType===1&&(z.nodeIndex=++J);u[e]=s}z=h.nodeIndex-r;return q===0?z===0:z%q===0&&z/q>=0}},ID:function(h,j){return h.nodeType===1&&h.getAttribute("id")===j},TAG:function(h,j){return j==="*"&&h.nodeType===1||!!h.nodeName&&h.nodeName.toLowerCase()===j},CLASS:function(h,j){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(h,j){var q=j[1];q=t.attr?t.attr(h,q):x.attrHandle[q]?x.attrHandle[q](h):h[q]!=null?h[q]:h.getAttribute(q);var r=q+"",s=j[2],u=j[4];
|
||||||
|
return q==null?s==="!=":!s&&t.attr?q!=null:s==="="?r===u:s==="*="?r.indexOf(u)>=0:s==="~="?(" "+r+" ").indexOf(u)>=0:u?s==="!="?r!==u:s==="^="?r.indexOf(u)===0:s==="$="?r.substr(r.length-u.length)===u:s==="|="?r===u||r.substr(0,u.length+1)===u+"-":false:r&&q!==false},POS:function(h,j,q,r){var s=x.setFilters[j[2]];if(s)return s(h,q,j,r)}}},R=x.match.POS,T=function(h,j){return"\\"+(j-0+1)},U;for(U in x.match){x.match[U]=RegExp(x.match[U].source+/(?![^\[]*\])(?![^\(]*\))/.source);x.leftMatch[U]=RegExp(/(^(?:.|\r|\n)*?)/.source+
|
||||||
|
x.match[U].source.replace(/\\(\d+)/g,T))}var ca=function(h,j){h=Array.prototype.slice.call(h,0);if(j){j.push.apply(j,h);return j}return h};try{Array.prototype.slice.call(G.documentElement.childNodes,0)}catch(pa){ca=function(h,j){var q=0,r=j||[];if(g.call(h)==="[object Array]")Array.prototype.push.apply(r,h);else if(typeof h.length=="number")for(var s=h.length;q<s;q++)r.push(h[q]);else for(;h[q];q++)r.push(h[q]);return r}}var ia,V;G.documentElement.compareDocumentPosition?ia=function(h,j){if(h===j){i=
|
||||||
|
true;return 0}if(!h.compareDocumentPosition||!j.compareDocumentPosition)return h.compareDocumentPosition?-1:1;return h.compareDocumentPosition(j)&4?-1:1}:(ia=function(h,j){if(h===j){i=true;return 0}if(h.sourceIndex&&j.sourceIndex)return h.sourceIndex-j.sourceIndex;var q,r,s=[],u=[];q=h.parentNode;r=j.parentNode;var J=q;if(q===r)return V(h,j);if(!q)return-1;if(!r)return 1;for(;J;){s.unshift(J);J=J.parentNode}for(J=r;J;){u.unshift(J);J=J.parentNode}q=s.length;r=u.length;for(J=0;J<q&&J<r;J++)if(s[J]!==
|
||||||
|
u[J])return V(s[J],u[J]);return J===q?V(h,u[J],-1):V(s[J],j,1)},V=function(h,j,q){if(h===j)return q;for(h=h.nextSibling;h;){if(h===j)return-1;h=h.nextSibling}return 1});(function(){var h=G.createElement("div"),j="script"+(new Date).getTime(),q=G.documentElement;h.innerHTML="<a name='"+j+"'/>";q.insertBefore(h,q.firstChild);G.getElementById(j)&&(x.find.ID=function(r,s,u){if(typeof s.getElementById!="undefined"&&!u)return(s=s.getElementById(r[1]))?s.id===r[1]||typeof s.getAttributeNode!="undefined"&&
|
||||||
|
s.getAttributeNode("id").nodeValue===r[1]?[s]:p:[]},x.filter.ID=function(r,s){var u=typeof r.getAttributeNode!="undefined"&&r.getAttributeNode("id");return r.nodeType===1&&u&&u.nodeValue===s});q.removeChild(h);q=h=null})();(function(){var h=G.createElement("div");h.appendChild(G.createComment(""));h.getElementsByTagName("*").length>0&&(x.find.TAG=function(j,q){var r=q.getElementsByTagName(j[1]);if(j[1]==="*"){for(var s=[],u=0;r[u];u++)r[u].nodeType===1&&s.push(r[u]);r=s}return r});h.innerHTML="<a href='#'></a>";
|
||||||
|
h.firstChild&&typeof h.firstChild.getAttribute!="undefined"&&h.firstChild.getAttribute("href")!=="#"&&(x.attrHandle.href=function(j){return j.getAttribute("href",2)});h=null})();G.querySelectorAll&&function(){var h=t,j=G.createElement("div");j.innerHTML="<p class='TEST'></p>";if(!j.querySelectorAll||j.querySelectorAll(".TEST").length!==0){t=function(r,s,u,J){s=s||G;if(!J&&!t.isXML(s)){var z=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(r);if(z&&(s.nodeType===1||s.nodeType===9)){if(z[1])return ca(s.getElementsByTagName(r),
|
||||||
|
u);if(z[2]&&x.find.CLASS&&s.getElementsByClassName)return ca(s.getElementsByClassName(z[2]),u)}if(s.nodeType===9){if(r==="body"&&s.body)return ca([s.body],u);if(z&&z[3]){var X=s.getElementById(z[3]);if(!X||!X.parentNode)return ca([],u);if(X.id===z[3])return ca([X],u)}try{return ca(s.querySelectorAll(r),u)}catch(k){}}else if(s.nodeType===1&&s.nodeName.toLowerCase()!=="object"){z=s;var v=(X=s.getAttribute("id"))||"__sizzle__",A=s.parentNode,E=/^\s*[+~]/.test(r);X?v=v.replace(/'/g,"\\$&"):s.setAttribute("id",
|
||||||
|
v);E&&A&&(s=s.parentNode);try{if(!E||A)return ca(s.querySelectorAll("[id='"+v+"'] "+r),u)}catch(H){}finally{X||z.removeAttribute("id")}}}return h(r,s,u,J)};for(var q in h)t[q]=h[q];j=null}}();(function(){var h=G.documentElement,j=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.msMatchesSelector;if(j){var q=!j.call(G.createElement("div"),"div"),r=false;try{j.call(G.documentElement,"[test!='']:sizzle")}catch(s){r=true}t.matchesSelector=function(u,J){J=J.replace(/\=\s*([^'"\]]*)\s*\]/g,
|
||||||
|
"='$1']");if(!t.isXML(u))try{if(r||!x.match.PSEUDO.test(J)&&!/!=/.test(J)){var z=j.call(u,J);if(z||!q||u.document&&u.document.nodeType!==11)return z}}catch(X){}return t(J,null,null,[u]).length>0}}})();(function(){var h=G.createElement("div");h.innerHTML="<div class='test e'></div><div class='test'></div>";if(h.getElementsByClassName&&h.getElementsByClassName("e").length!==0){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){x.order.splice(1,0,"CLASS");x.find.CLASS=function(j,
|
||||||
|
q,r){if(typeof q.getElementsByClassName!="undefined"&&!r)return q.getElementsByClassName(j[1])};h=null}}})();G.documentElement.contains?t.contains=function(h,j){return h!==j&&(h.contains?h.contains(j):true)}:G.documentElement.compareDocumentPosition?t.contains=function(h,j){return!!(h.compareDocumentPosition(j)&16)}:t.contains=function(){return false};t.isXML=function(h){return(h=(h?h.ownerDocument||h:0).documentElement)?h.nodeName!=="HTML":false};var ka=function(h,j,q){var r,s=[],u="";for(j=j.nodeType?
|
||||||
|
[j]:j;r=x.match.PSEUDO.exec(h);){u+=r[0];h=h.replace(x.match.PSEUDO,"")}h=x.relative[h]?h+"*":h;r=0;for(var J=j.length;r<J;r++)t(h,j[r],s,q);return t.filter(u,s)};t.attr=c.attr;t.selectors.attrMap={};c.find=t;c.expr=t.selectors;c.expr[":"]=c.expr.filters;c.unique=t.uniqueSort;c.text=t.getText;c.isXMLDoc=t.isXML;c.contains=t.contains})();var Mb=/Until$/,Nb=/^(?:parents|prevUntil|prevAll)/,Ob=/,/,xb=/^.[^:#\[\.,]*$/,Pb=Array.prototype.slice,db=c.expr.match.POS,Qb={children:true,contents:true,next:true,
|
||||||
|
prev:true};c.fn.extend({find:function(a){var b=this,d,e;if(typeof a!="string")return c(a).filter(function(){d=0;for(e=b.length;d<e;d++)if(c.contains(b[d],this))return true});var f=this.pushStack("","find",a),g,i,l;d=0;for(e=this.length;d<e;d++){g=f.length;c.find(a,this[d],f);if(d>0)for(i=g;i<f.length;i++)for(l=0;l<g;l++)if(f[l]===f[i]){f.splice(i--,1);break}}return f},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(ba(this,
|
||||||
|
a,false),"not",a)},filter:function(a){return this.pushStack(ba(this,a,true),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?db.test(a)?c(a,this.context).index(this[0])>=0:c.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var d=[],e,f,g=this[0];if(c.isArray(a)){for(f=1;g&&g.ownerDocument&&g!==b;){for(e=0;e<a.length;e++)c(g).is(a[e])&&d.push({selector:a[e],elem:g,level:f});g=g.parentNode;f++}return d}var i=db.test(a)||typeof a!="string"?c(a,b||this.context):0;e=0;
|
||||||
|
for(f=this.length;e<f;e++)for(g=this[e];g;){if(i?i.index(g)>-1:c.find.matchesSelector(g,a)){d.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}d=d.length>1?c.unique(d):d;return this.pushStack(d,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return c.inArray(this[0],c(a));return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var d=typeof a=="string"?c(a,b):c.makeArray(a&&a.nodeType?[a]:a),
|
||||||
|
e=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!e[0]||!e[0].parentNode||e[0].parentNode.nodeType===11?e:c.unique(e))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},
|
||||||
|
nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,
|
||||||
|
e){var f=c.map(this,b,d);Mb.test(a)||(e=d);e&&typeof e=="string"&&(f=c.filter(e,f));f=this.length>1&&!Qb[a]?c.unique(f):f;(this.length>1||Ob.test(e))&&Nb.test(a)&&(f=f.reverse());return this.pushStack(f,a,Pb.call(arguments).join(","))}});c.extend({filter:function(a,b,d){d&&(a=":not("+a+")");return b.length===1?c.find.matchesSelector(b[0],a)?[b[0]]:[]:c.find.matches(a,b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===p||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},
|
||||||
|
nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Sa="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Rb=/ jQuery\d+="(?:\d+|null)"/g,Ma=/^\s+/,eb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,fb=/<([\w:]+)/,Sb=/<tbody/i,Tb=/<|&#?\w+;/,
|
||||||
|
Ub=/<(?:script|style)/i,Vb=/<(?:script|object|embed|option|style)/i,gb=RegExp("<(?:"+Sa+")","i"),hb=/checked\s*(?:[^=]|=\s*.checked.)/i,Wb=/\/(java|ecma)script/i,wb=/^\s*<!(?:\[CDATA\[|\-\-)/,ja={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],
|
||||||
|
_default:[0,"",""]},ib=O(G);ja.optgroup=ja.option;ja.tbody=ja.tfoot=ja.colgroup=ja.caption=ja.thead;ja.th=ja.td;c.support.htmlSerialize||(ja._default=[1,"div<div>","</div>"]);c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!="object"&&a!==p)return this.empty().append((this[0]&&this[0].ownerDocument||G).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,
|
||||||
|
d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){var b=c.isFunction(a);return this.each(function(d){c(this).wrapAll(b?
|
||||||
|
a.call(this,d):a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
|
||||||
|
this)});if(arguments.length){var a=c.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c.clean(arguments));return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){!b&&e.nodeType===1&&(c.cleanData(e.getElementsByTagName("*")),
|
||||||
|
c.cleanData([e]));e.parentNode&&e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a,b){a=a==null?false:a;b=b==null?a:b;return this.map(function(){return c.clone(this,a,b)})},html:function(a){if(a===p)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Rb,""):null;if(typeof a=="string"&&!Ub.test(a)&&(c.support.leadingWhitespace||
|
||||||
|
!Ma.test(a))&&!ja[(fb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(eb,"<$1></$2>");try{for(var b=0,d=this.length;b<d;b++)this[b].nodeType===1&&(c.cleanData(this[b].getElementsByTagName("*")),this[b].innerHTML=a)}catch(e){this.empty().append(a)}}else c.isFunction(a)?this.each(function(f){var g=c(this);g.html(a.call(this,f,g.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();
|
||||||
|
d.replaceWith(a.call(this,b,e))});typeof a!="string"&&(a=c(a).detach());return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}return this.length?this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,g,i=a[0],l=[];if(!c.support.checkClone&&arguments.length===3&&typeof i=="string"&&hb.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});
|
||||||
|
if(c.isFunction(i))return this.each(function(D){var t=c(this);a[0]=i.call(this,D,b?t.html():p);t.domManip(a,b,d)});if(this[0]){g=i&&i.parentNode;c.support.parentNode&&g&&g.nodeType===11&&g.childNodes.length===this.length?e={fragment:g}:e=c.buildFragment(a,this,l);g=e.fragment;g.childNodes.length===1?f=g=g.firstChild:f=g.firstChild;if(f){b=b&&c.nodeName(f,"tr");f=0;for(var n=this.length,m=n-1;f<n;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):
|
||||||
|
this[f]:this[f],e.cacheable||n>1&&f<m?c.clone(g,true,true):g)}l.length&&c.each(l,C)}return this}});c.buildFragment=function(a,b,d){var e,f,g,i,l=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]);i.createDocumentFragment||(i=G);a.length===1&&typeof l=="string"&&l.length<512&&i===G&&l.charAt(0)==="<"&&!Vb.test(l)&&(c.support.checkClone||!hb.test(l))&&(c.support.html5Clone||!gb.test(l))&&(f=true,g=c.fragments[l],g&&g!==1&&(e=g));e||(e=i.createDocumentFragment(),c.clean(a,i,e,d));f&&(c.fragments[l]=g?e:1);return{fragment:e,
|
||||||
|
cacheable:f}};c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}f=0;for(var g=d.length;f<g;f++){var i=(f>0?this.clone(true):this).get();c(d[f])[b](i);e=e.concat(i)}return this.pushStack(e,a,d.selector)}});c.extend({clone:function(a,b,d){var e,
|
||||||
|
f,g;if(c.support.html5Clone||!gb.test("<"+a.nodeName))e=a.cloneNode(true);else{e=G.createElement("div");ib.appendChild(e);e.innerHTML=a.outerHTML;e=e.firstChild}var i=e;if((!c.support.noCloneEvent||!c.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!c.isXMLDoc(a)){W(a,i);e=Q(a);f=Q(i);for(g=0;e[g];++g)f[g]&&W(e[g],f[g])}if(b){F(a,i);if(d){e=Q(a);f=Q(i);for(g=0;e[g];++g)F(e[g],f[g])}}return i},clean:function(a,b,d,e){b=b||G;typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&
|
||||||
|
b[0].ownerDocument||G);for(var f=[],g,i=0,l;(l=a[i])!=null;i++){typeof l=="number"&&(l+="");if(l){if(typeof l=="string")if(Tb.test(l)){l=l.replace(eb,"<$1></$2>");g=(fb.exec(l)||["",""])[1].toLowerCase();var n=ja[g]||ja._default,m=n[0],D=b.createElement("div");b===G?ib.appendChild(D):O(b).appendChild(D);for(D.innerHTML=n[1]+l+n[2];m--;)D=D.lastChild;if(!c.support.tbody){m=Sb.test(l);n=g==="table"&&!m?D.firstChild&&D.firstChild.childNodes:n[1]==="<table>"&&!m?D.childNodes:[];for(g=n.length-1;g>=0;--g)c.nodeName(n[g],
|
||||||
|
"tbody")&&!n[g].childNodes.length&&n[g].parentNode.removeChild(n[g])}!c.support.leadingWhitespace&&Ma.test(l)&&D.insertBefore(b.createTextNode(Ma.exec(l)[0]),D.firstChild);l=D.childNodes}else l=b.createTextNode(l);var t;if(!c.support.appendChecked)if(l[0]&&typeof(t=l.length)=="number")for(g=0;g<t;g++)w(l[g]);else w(l);l.nodeType?f.push(l):f=c.merge(f,l)}}if(d){a=function(I){return!I.type||Wb.test(I.type)};for(i=0;f[i];i++)if(e&&c.nodeName(f[i],"script")&&(!f[i].type||f[i].type.toLowerCase()==="text/javascript"))e.push(f[i].parentNode?
|
||||||
|
f[i].parentNode.removeChild(f[i]):f[i]);else{if(f[i].nodeType===1){b=c.grep(f[i].getElementsByTagName("script"),a);f.splice.apply(f,[i+1,0].concat(b))}d.appendChild(f[i])}}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,g=c.support.deleteExpando,i=0,l;(l=a[i])!=null;i++)if(!(l.nodeName&&c.noData[l.nodeName.toLowerCase()]))if(d=l[c.expando]){if((b=e[d])&&b.events){for(var n in b.events)f[n]?c.event.remove(l,n):c.removeEvent(l,n,b.handle);b.handle&&(b.handle.elem=null)}g?delete l[c.expando]:
|
||||||
|
l.removeAttribute&&l.removeAttribute(c.expando);delete e[d]}}});var Na=/alpha\([^)]*\)/i,Xb=/opacity=([^)]*)/,Yb=/([A-Z]|^ms)/g,jb=/^-?\d+(?:px)?$/i,Zb=/^-?\d/,$b=/^([\-+])=([\-+.\de]+)/,ac={position:"absolute",visibility:"hidden",display:"block"},ub=["Left","Right"],vb=["Top","Bottom"],wa,kb,lb;c.fn.css=function(a,b){if(arguments.length===2&&b===p)return this;return c.access(this,a,b,true,function(d,e,f){return f!==p?c.style(d,e,f):c.css(d,e)})};c.extend({cssHooks:{opacity:{get:function(a,b){if(b){var d=
|
||||||
|
wa(a,"opacity","opacity");return d===""?"1":d}return a.style.opacity}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":c.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,d,e){if(a&&a.nodeType!==3&&a.nodeType!==8&&a.style){var f,g=c.camelCase(b),i=a.style,l=c.cssHooks[g];b=c.cssProps[g]||g;if(d===p){if(l&&"get"in l&&(f=l.get(a,false,e))!==p)return f;return i[b]}e=typeof d;e==="string"&&(f=$b.exec(d))&&
|
||||||
|
(d=+(f[1]+1)*+f[2]+parseFloat(c.css(a,b)),e="number");if(!(d==null||e==="number"&&isNaN(d))){e==="number"&&!c.cssNumber[g]&&(d+="px");if(!l||!("set"in l)||(d=l.set(a,d))!==p)try{i[b]=d}catch(n){}}}},css:function(a,b,d){var e,f;b=c.camelCase(b);f=c.cssHooks[b];b=c.cssProps[b]||b;b==="cssFloat"&&(b="float");if(f&&"get"in f&&(e=f.get(a,true,d))!==p)return e;if(wa)return wa(a,b)},swap:function(a,b,d){var e={},f;for(f in b){e[f]=a.style[f];a.style[f]=b[f]}d.call(a);for(f in b)a.style[f]=e[f]}});c.curCSS=
|
||||||
|
c.css;c.each(["height","width"],function(a,b){c.cssHooks[b]={get:function(d,e,f){var g;if(e){if(d.offsetWidth!==0)return B(d,b,f);c.swap(d,ac,function(){g=B(d,b,f)});return g}},set:function(d,e){if(!jb.test(e))return e;e=parseFloat(e);if(e>=0)return e+"px"}}});c.support.opacity||(c.cssHooks.opacity={get:function(a,b){return Xb.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var d=a.style,e=a.currentStyle,f=c.isNumeric(b)?
|
||||||
|
"alpha(opacity="+b*100+")":"",g=e&&e.filter||d.filter||"";d.zoom=1;if(b>=1&&c.trim(g.replace(Na,""))===""){d.removeAttribute("filter");if(e&&!e.filter)return}d.filter=Na.test(g)?g.replace(Na,f):g+" "+f}});c(function(){c.support.reliableMarginRight||(c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){b?d=wa(a,"margin-right","marginRight"):d=a.style.marginRight});return d}})});G.defaultView&&G.defaultView.getComputedStyle&&(kb=function(a,b){var d,e,f;b=b.replace(Yb,
|
||||||
|
"-$1").toLowerCase();(e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null))&&(d=f.getPropertyValue(b),d===""&&!c.contains(a.ownerDocument.documentElement,a)&&(d=c.style(a,b)));return d});G.documentElement.currentStyle&&(lb=function(a,b){var d,e,f,g=a.currentStyle&&a.currentStyle[b],i=a.style;g===null&&i&&(f=i[b])&&(g=f);!jb.test(g)&&Zb.test(g)&&(d=i.left,e=a.runtimeStyle&&a.runtimeStyle.left,e&&(a.runtimeStyle.left=a.currentStyle.left),i.left=b==="fontSize"?"1em":g||0,g=i.pixelLeft+"px",
|
||||||
|
i.left=d,e&&(a.runtimeStyle.left=e));return g===""?"auto":g});wa=kb||lb;c.expr&&c.expr.filters&&(c.expr.filters.hidden=function(a){var b=a.offsetHeight;return a.offsetWidth===0&&b===0||!c.support.reliableHiddenOffsets&&(a.style&&a.style.display||c.css(a,"display"))==="none"},c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)});var bc=/%20/g,tb=/\[\]$/,mb=/\r?\n/g,cc=/#.*$/,dc=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,ec=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
|
||||||
|
fc=/^(?:GET|HEAD)$/,gc=/^\/\//,nb=/\?/,hc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,ic=/^(?:select|textarea)/i,Ra=/\s+/,jc=/([?&])_=[^&]*/,ob=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,pb=c.fn.load,Ia={},qb={},sa,ta,rb=["*/"]+["*"];try{sa=Cb.href}catch(rc){sa=G.createElement("a");sa.href="";sa=sa.href}ta=ob.exec(sa.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!="string"&&pb)return pb.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=
|
||||||
|
0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";b&&(c.isFunction(b)?(d=b,b=p):typeof b=="object"&&(b=c.param(b,c.ajaxSettings.traditional),e="POST"));var g=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(i,l,n){n=i.responseText;i.isResolved()&&(i.done(function(m){n=m}),g.html(f?c("<div>").append(n.replace(hc,"")).find(f):n));d&&g.each(d,[n,l,i])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
|
||||||
|
c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ic.test(this.nodeName)||ec.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(e){return{name:b.name,value:e.replace(mb,"\r\n")}}):{name:b.name,value:d.replace(mb,"\r\n")}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.on(b,d)}});c.each(["get","post"],
|
||||||
|
function(a,b){c[b]=function(d,e,f,g){c.isFunction(e)&&(g=g||f,f=e,e=p);return c.ajax({type:b,url:d,data:e,success:f,dataType:g})}});c.extend({getScript:function(a,b){return c.get(a,p,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},ajaxSetup:function(a,b){b?ea(a,c.ajaxSettings):(b=a,a=c.ajaxSettings);ea(a,b);return a},ajaxSettings:{url:sa,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(ta[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
|
||||||
|
processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":rb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":o.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:oa(Ia),ajaxTransport:oa(qb),ajax:function(a,b){function d(j,q,r,s){if(ca!==2){ca=2;T&&clearTimeout(T);R=
|
||||||
|
p;I=s||"";V.readyState=j>0?4:0;var u,J,z;s=q;if(r){var X=e,k=V,v=X.contents,A=X.dataTypes,E=X.responseFields,H,P,Y,ga;for(P in E)P in r&&(k[E[P]]=r[P]);for(;A[0]==="*";){A.shift();H===p&&(H=X.mimeType||k.getResponseHeader("content-type"))}if(H)for(P in v)if(v[P]&&v[P].test(H)){A.unshift(P);break}if(A[0]in r)Y=A[0];else{for(P in r){if(!A[0]||X.converters[P+" "+A[0]]){Y=P;break}ga||(ga=P)}Y=Y||ga}if(Y){Y!==A[0]&&A.unshift(Y);r=r[Y]}else r=void 0}else r=p;r=r;if(j>=200&&j<300||j===304){if(e.ifModified){if(H=
|
||||||
|
V.getResponseHeader("Last-Modified"))c.lastModified[m]=H;if(H=V.getResponseHeader("Etag"))c.etag[m]=H}if(j===304){s="notmodified";u=true}else try{H=e;r=r;H.dataFilter&&(r=H.dataFilter(r,H.dataType));var xa=H.dataTypes;P={};var ma,Da,kc=xa.length,Ea,qa=xa[0],ya,Oa,ra,ua,za;for(ma=1;ma<kc;ma++){if(ma===1)for(Da in H.converters)typeof Da=="string"&&(P[Da.toLowerCase()]=H.converters[Da]);ya=qa;qa=xa[ma];if(qa==="*")qa=ya;else if(ya!=="*"&&ya!==qa){Oa=ya+" "+qa;ra=P[Oa]||P["* "+qa];if(!ra){za=p;for(ua in P){Ea=
|
||||||
|
ua.split(" ");if(Ea[0]===ya||Ea[0]==="*")if(za=P[Ea[1]+" "+qa]){ua=P[ua];ua===true?ra=za:za===true&&(ra=ua);break}}}!ra&&!za&&c.error("No conversion from "+Oa.replace(" "," to "));ra!==true&&(r=ra?ra(r):za(ua(r)))}}J=r;s="success";u=true}catch(lc){s="parsererror";z=lc}}else{z=s;if(!s||j){s="error";j<0&&(j=0)}}V.status=j;V.statusText=""+(q||s);u?i.resolveWith(f,[J,s,V]):i.rejectWith(f,[V,s,z]);V.statusCode(n);n=p;pa&&g.trigger("ajax"+(u?"Success":"Error"),[V,e,u?J:z]);l.fireWith(f,[V,s]);pa&&(g.trigger("ajaxComplete",
|
||||||
|
[V,e]),--c.active||c.event.trigger("ajaxStop"))}}typeof a=="object"&&(b=a,a=p);b=b||{};var e=c.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof c)?c(f):c.event,i=c.Deferred(),l=c.Callbacks("once memory"),n=e.statusCode||{},m,D={},t={},I,x,R,T,U,ca=0,pa,ia,V={readyState:0,setRequestHeader:function(j,q){if(!ca){var r=j.toLowerCase();j=t[r]=t[r]||j;D[j]=q}return this},getAllResponseHeaders:function(){return ca===2?I:null},getResponseHeader:function(j){var q;if(ca===2){if(!x)for(x={};q=
|
||||||
|
dc.exec(I);)x[q[1].toLowerCase()]=q[2];q=x[j.toLowerCase()]}return q===p?null:q},overrideMimeType:function(j){ca||(e.mimeType=j);return this},abort:function(j){j=j||"abort";R&&R.abort(j);d(0,j);return this}};i.promise(V);V.success=V.done;V.error=V.fail;V.complete=l.add;V.statusCode=function(j){if(j){var q;if(ca<2)for(q in j)n[q]=[n[q],j[q]];else{q=j[V.status];V.then(q,q)}}return this};e.url=((a||e.url)+"").replace(cc,"").replace(gc,ta[1]+"//");e.dataTypes=c.trim(e.dataType||"*").toLowerCase().split(Ra);
|
||||||
|
e.crossDomain==null&&(U=ob.exec(e.url.toLowerCase()),e.crossDomain=!(!U||U[1]==ta[1]&&U[2]==ta[2]&&(U[3]||(U[1]==="http:"?80:443))==(ta[3]||(ta[1]==="http:"?80:443))));e.data&&e.processData&&typeof e.data!="string"&&(e.data=c.param(e.data,e.traditional));aa(Ia,e,b,V);if(ca===2)return false;pa=e.global;e.type=e.type.toUpperCase();e.hasContent=!fc.test(e.type);pa&&c.active++===0&&c.event.trigger("ajaxStart");if(!e.hasContent){e.data&&(e.url+=(nb.test(e.url)?"&":"?")+e.data,delete e.data);m=e.url;if(e.cache===
|
||||||
|
false){U=c.now();var ka=e.url.replace(jc,"$1_="+U);e.url=ka+(ka===e.url?(nb.test(e.url)?"&":"?")+"_="+U:"")}}(e.data&&e.hasContent&&e.contentType!==false||b.contentType)&&V.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(m=m||e.url,c.lastModified[m]&&V.setRequestHeader("If-Modified-Since",c.lastModified[m]),c.etag[m]&&V.setRequestHeader("If-None-Match",c.etag[m]));V.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+(e.dataTypes[0]!=="*"?", "+
|
||||||
|
rb+"; q=0.01":""):e.accepts["*"]);for(ia in e.headers)V.setRequestHeader(ia,e.headers[ia]);if(e.beforeSend&&(e.beforeSend.call(f,V,e)===false||ca===2)){V.abort();return false}for(ia in{success:1,error:1,complete:1})V[ia](e[ia]);if(R=aa(qb,e,b,V)){V.readyState=1;pa&&g.trigger("ajaxSend",[V,e]);e.async&&e.timeout>0&&(T=setTimeout(function(){V.abort("timeout")},e.timeout));try{ca=1;R.send(D,d)}catch(h){if(ca<2)d(-1,h);else throw h;}}else d(-1,"No Transport");return V},param:function(a,b){var d=[],e=
|
||||||
|
function(g,i){i=c.isFunction(i)?i():i;d[d.length]=encodeURIComponent(g)+"="+encodeURIComponent(i)};b===p&&(b=c.ajaxSettings.traditional);if(c.isArray(a)||a.jquery&&!c.isPlainObject(a))c.each(a,function(){e(this.name,this.value)});else for(var f in a)ha(f,a[f],b,e);return d.join("&").replace(bc,"+")}});c.extend({active:0,lastModified:{},etag:{}});var mc=c.now(),Fa=/(\=)\?(&|$)|\?\?/i;c.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return c.expando+"_"+mc++}});c.ajaxPrefilter("json jsonp",function(a,
|
||||||
|
b,d){b=a.contentType==="application/x-www-form-urlencoded"&&typeof a.data=="string";if(a.dataTypes[0]==="jsonp"||a.jsonp!==false&&(Fa.test(a.url)||b&&Fa.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=o[f],i=a.url,l=a.data,n="$1"+f+"$2";a.jsonp!==false&&(i=i.replace(Fa,n),a.url===i&&(b&&(l=l.replace(Fa,n)),a.data===l&&(i+=(/\?/.test(i)?"&":"?")+a.jsonp+"="+f)));a.url=i;a.data=l;o[f]=function(m){e=[m]};d.always(function(){o[f]=g;e&&c.isFunction(g)&&
|
||||||
|
o[f](e[0])});a.converters["script json"]=function(){e||c.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});c.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){c.globalEval(a);return a}}});c.ajaxPrefilter("script",function(a){a.cache===p&&(a.cache=false);a.crossDomain&&(a.type="GET",a.global=false)});c.ajaxTransport("script",
|
||||||
|
function(a){if(a.crossDomain){var b,d=G.head||G.getElementsByTagName("head")[0]||G.documentElement;return{send:function(e,f){b=G.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(g,i){if(i||!b.readyState||/loaded|complete/.test(b.readyState)){b.onload=b.onreadystatechange=null;d&&b.parentNode&&d.removeChild(b);b=p;i||f(200,"success")}};d.insertBefore(b,d.firstChild)},abort:function(){b&&b.onload(0,1)}}}});var Pa=
|
||||||
|
o.ActiveXObject?function(){for(var a in Aa)Aa[a](0,1)}:false,nc=0,Aa;c.ajaxSettings.xhr=o.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&K()))a:{try{a=new o.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:K;(function(a){c.extend(c.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})})(c.ajaxSettings.xhr());c.support.ajax&&c.ajaxTransport(function(a){if(!a.crossDomain||c.support.cors){var b;return{send:function(d,e){var f=a.xhr(),g,i;a.username?f.open(a.type,a.url,a.async,
|
||||||
|
a.username,a.password):f.open(a.type,a.url,a.async);if(a.xhrFields)for(i in a.xhrFields)f[i]=a.xhrFields[i];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);!a.crossDomain&&!d["X-Requested-With"]&&(d["X-Requested-With"]="XMLHttpRequest");try{for(i in d)f.setRequestHeader(i,d[i])}catch(l){}f.send(a.hasContent&&a.data||null);b=function(n,m){var D,t,I,x,R;try{if(b&&(m||f.readyState===4)){b=p;g&&(f.onreadystatechange=c.noop,Pa&&delete Aa[g]);if(m)f.readyState!==4&&f.abort();else{D=f.status;
|
||||||
|
I=f.getAllResponseHeaders();x={};(R=f.responseXML)&&R.documentElement&&(x.xml=R);x.text=f.responseText;try{t=f.statusText}catch(T){t=""}!D&&a.isLocal&&!a.crossDomain?D=x.text?200:404:D===1223&&(D=204)}}}catch(U){m||e(-1,U)}x&&e(D,t,x,I)};!a.async||f.readyState===4?b():(g=++nc,Pa&&(Aa||(Aa={},c(o).unload(Pa)),Aa[g]=b),f.onreadystatechange=b)},abort:function(){b&&b(0,1)}}}});var Ha={},la,va,oc=/^(?:toggle|show|hide)$/,pc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Ga,Qa=[["height","marginTop","marginBottom",
|
||||||
|
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Ba;c.fn.extend({show:function(a,b,d){var e;if(a||a===0)return this.animate(S("show",3),a,b,d);b=0;for(d=this.length;b<d;b++){a=this[b];a.style&&(e=a.style.display,!c._data(a,"olddisplay")&&e==="none"&&(e=a.style.display=""),e===""&&c.css(a,"display")==="none"&&c._data(a,"olddisplay",L(a.nodeName)))}for(b=0;b<d;b++){a=this[b];if(a.style){e=a.style.display;if(e===""||e==="none")a.style.display=
|
||||||
|
c._data(a,"olddisplay")||""}}return this},hide:function(a,b,d){if(a||a===0)return this.animate(S("hide",3),a,b,d);var e;b=0;for(d=this.length;b<d;b++){a=this[b];a.style&&(e=c.css(a,"display"),e!=="none"&&!c._data(a,"olddisplay")&&c._data(a,"olddisplay",e))}for(b=0;b<d;b++)this[b].style&&(this[b].style.display="none");return this},_toggle:c.fn.toggle,toggle:function(a,b,d){var e=typeof a=="boolean";c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var f=
|
||||||
|
e?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(S("toggle",3),a,b,d);return this},fadeTo:function(a,b,d,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d,e)},animate:function(a,b,d,e){function f(){g.queue===false&&c._mark(this);var i=c.extend({},g),l=this.nodeType===1,n=l&&c(this).is(":hidden"),m,D,t,I,x,R,T,U;i.animatedProperties={};for(t in a){m=c.camelCase(t);t!==m&&(a[m]=a[t],delete a[t]);D=a[m];c.isArray(D)?(i.animatedProperties[m]=D[1],
|
||||||
|
D=a[m]=D[0]):i.animatedProperties[m]=i.specialEasing&&i.specialEasing[m]||i.easing||"swing";if(D==="hide"&&n||D==="show"&&!n)return i.complete.call(this);l&&(m==="height"||m==="width")&&(i.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],c.css(this,"display")==="inline"&&c.css(this,"float")==="none"&&(!c.support.inlineBlockNeedsLayout||L(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}i.overflow!=null&&(this.style.overflow="hidden");for(t in a){l=
|
||||||
|
new c.fx(this,i,t);D=a[t];oc.test(D)?(U=c._data(this,"toggle"+t)||(D==="toggle"?n?"show":"hide":0),U?(c._data(this,"toggle"+t,U==="show"?"hide":"show"),l[U]()):l[D]()):(I=pc.exec(D),x=l.cur(),I?(R=parseFloat(I[2]),T=I[3]||(c.cssNumber[t]?"":"px"),T!=="px"&&(c.style(this,t,(R||1)+T),x=(R||1)/l.cur()*x,c.style(this,t,x+T)),I[1]&&(R=(I[1]==="-="?-1:1)*R+x),l.custom(x,R,T)):l.custom(x,D,""))}return true}var g=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(g.complete,[false]);a=c.extend({},a);return g.queue===
|
||||||
|
false?this.each(f):this.queue(g.queue,f)},stop:function(a,b,d){typeof a!="string"&&(d=b,b=a,a=p);b&&a!==false&&this.queue(a||"fx",[]);return this.each(function(){function e(n,m,D){m=m[D];c.removeData(n,D,true);m.stop(d)}var f,g=false,i=c.timers,l=c._data(this);d||c._unmark(true,this);if(a==null)for(f in l)l[f]&&l[f].stop&&f.indexOf(".run")===f.length-4&&e(this,l,f);else l[f=a+".run"]&&l[f].stop&&e(this,l,f);for(f=i.length;f--;)i[f].elem===this&&(a==null||i[f].queue===a)&&(d?i[f](true):i[f].saveState(),
|
||||||
|
g=true,i.splice(f,1));(!d||!g)&&c.dequeue(this,a)})}});c.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){c.fn[a]=function(d,e,f){return this.animate(b,d,e,f)}});c.extend({speed:function(a,b,d){var e=a&&typeof a=="object"?c.extend({},a):{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration=="number"?e.duration:
|
||||||
|
e.duration in c.fx.speeds?c.fx.speeds[e.duration]:c.fx.speeds._default;if(e.queue==null||e.queue===true)e.queue="fx";e.old=e.complete;e.complete=function(f){c.isFunction(e.old)&&e.old.call(this);e.queue?c.dequeue(this,e.queue):f!==false&&c._unmark(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;b.orig=b.orig||{}}});c.fx.prototype={update:function(){this.options.step&&
|
||||||
|
this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=c.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,d){function e(i){return f.step(i)}var f=this,g=c.fx;this.startTime=Ba||N();this.end=b;this.now=this.start=a;this.pos=this.state=0;this.unit=d||this.unit||(c.cssNumber[this.prop]?
|
||||||
|
"":"px");e.queue=this.options.queue;e.elem=this.elem;e.saveState=function(){f.options.hide&&c._data(f.elem,"fxshow"+f.prop)===p&&c._data(f.elem,"fxshow"+f.prop,f.start)};e()&&c.timers.push(e)&&!Ga&&(Ga=setInterval(g.tick,g.interval))},show:function(){var a=c._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||c.style(this.elem,this.prop);this.options.show=true;a!==p?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},
|
||||||
|
hide:function(){this.options.orig[this.prop]=c._data(this.elem,"fxshow"+this.prop)||c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b,d,e=Ba||N(),f=true,g=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();i.animatedProperties[this.prop]=true;for(b in i.animatedProperties)i.animatedProperties[b]!==true&&(f=false);if(f){i.overflow!=null&&!c.support.shrinkWrapBlocks&&c.each(["","X","Y"],
|
||||||
|
function(l,n){g.style["overflow"+n]=i.overflow[l]});i.hide&&c(g).hide();if(i.hide||i.show)for(b in i.animatedProperties){c.style(g,b,i.orig[b]);c.removeData(g,"fxshow"+b,true);c.removeData(g,"toggle"+b,true)}(a=i.complete)&&(i.complete=false,a.call(g))}return false}i.duration==Infinity?this.now=e:(d=e-this.startTime,this.state=d/i.duration,this.pos=c.easing[i.animatedProperties[this.prop]](this.state,d,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos);this.update();return true}};
|
||||||
|
c.extend(c.fx,{tick:function(){for(var a,b=c.timers,d=0;d<b.length;d++){a=b[d];!a()&&b[d]===a&&b.splice(d--,1)}b.length||c.fx.stop()},interval:13,stop:function(){clearInterval(Ga);Ga=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}});c.each(["width","height"],function(a,b){c.fx.step[b]=function(d){c.style(d.elem,b,Math.max(0,
|
||||||
|
d.now)+d.unit)}});c.expr&&c.expr.filters&&(c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length});var qc=/^t(?:able|d|h)$/i,sb=/^(?:body|html)$/i;"getBoundingClientRect"in G.documentElement?c.fn.offset=function(a){var b=this[0],d;if(a)return this.each(function(i){c.offset.setOffset(this,a,i)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);try{d=b.getBoundingClientRect()}catch(e){}var f=b.ownerDocument,g=f.documentElement;
|
||||||
|
if(!d||!c.contains(g,b))return d?{top:d.top,left:d.left}:{top:0,left:0};b=f.body;f=M(f);return{top:d.top+(f.pageYOffset||c.support.boxModel&&g.scrollTop||b.scrollTop)-(g.clientTop||b.clientTop||0),left:d.left+(f.pageXOffset||c.support.boxModel&&g.scrollLeft||b.scrollLeft)-(g.clientLeft||b.clientLeft||0)}}:c.fn.offset=function(a){var b=this[0];if(a)return this.each(function(m){c.offset.setOffset(this,a,m)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);
|
||||||
|
var d,e=b.offsetParent,f=b.ownerDocument,g=f.documentElement,i=f.body;d=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var l=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==i&&b!==g;){if(c.support.fixedPosition&&d.position==="fixed")break;d=f?f.getComputedStyle(b,null):b.currentStyle;l-=b.scrollTop;n-=b.scrollLeft;b===e&&(l+=b.offsetTop,n+=b.offsetLeft,c.support.doesNotAddBorder&&(!c.support.doesAddBorderForTableAndCells||!qc.test(b.nodeName))&&(l+=parseFloat(d.borderTopWidth)||
|
||||||
|
0,n+=parseFloat(d.borderLeftWidth)||0),e=b.offsetParent);c.support.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"&&(l+=parseFloat(d.borderTopWidth)||0,n+=parseFloat(d.borderLeftWidth)||0);d=d}if(d.position==="relative"||d.position==="static"){l+=i.offsetTop;n+=i.offsetLeft}c.support.fixedPosition&&d.position==="fixed"&&(l+=Math.max(g.scrollTop,i.scrollTop),n+=Math.max(g.scrollLeft,i.scrollLeft));return{top:l,left:n}};c.offset={bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;
|
||||||
|
c.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(c.css(a,"marginTop"))||0,d+=parseFloat(c.css(a,"marginLeft"))||0);return{top:b,left:d}},setOffset:function(a,b,d){var e=c.css(a,"position");e==="static"&&(a.style.position="relative");var f=c(a),g=f.offset(),i=c.css(a,"top"),l=c.css(a,"left"),n={},m={},D,t;(e==="absolute"||e==="fixed")&&c.inArray("auto",[i,l])>-1?(m=f.position(),D=m.top,t=m.left):(D=parseFloat(i)||0,t=parseFloat(l)||0);c.isFunction(b)&&(b=b.call(a,d,g));b.top!=null&&(n.top=
|
||||||
|
b.top-g.top+D);b.left!=null&&(n.left=b.left-g.left+t);"using"in b?b.using.call(a,n):f.css(n)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),e=sb.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.css(a,"marginTop"))||0;d.left-=parseFloat(c.css(a,"marginLeft"))||0;e.top+=parseFloat(c.css(b[0],"borderTopWidth"))||0;e.left+=parseFloat(c.css(b[0],"borderLeftWidth"))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=
|
||||||
|
this.offsetParent||G.body;a&&!sb.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f,g;if(e===p){f=this[0];if(!f)return null;return(g=M(f))?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:f[d]}return this.each(function(){(g=M(this))?g.scrollTo(a?c(g).scrollLeft():e,a?e:c(g).scrollTop()):this[d]=e})}});c.each(["Height",
|
||||||
|
"Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){var e=this[0];return e?e.style?parseFloat(c.css(e,d,"padding")):this[d]():null};c.fn["outer"+b]=function(e){var f=this[0];return f?f.style?parseFloat(c.css(f,d,e?"margin":"border")):this[d]():null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(l){var n=c(this);n[d](e.call(this,l,n[d]()))});if(c.isWindow(f)){var g=f.document.documentElement["client"+b],i=f.document.body;
|
||||||
|
return f.document.compatMode==="CSS1Compat"&&g||i&&i["client"+b]||g}if(f.nodeType===9)return Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+b],f.body["offset"+b],f.documentElement["offset"+b]);if(e===p){f=c.css(f,d);g=parseFloat(f);return c.isNumeric(g)?g:f}return this.css(d,typeof e=="string"?e:e+"px")}});o.jQuery=o.$=c;typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return c})})(window);
|
||||||
|
(function(o){function p(L){this.input=L;L.attr("type")=="password"&&this.handlePassword();o(L[0].form).submit(function(){if(L.hasClass("placeholder")&&L[0].value==L.attr("placeholder"))L[0].value=""})}p.prototype={show:function(L){if(this.input[0].value===""||L&&this.valueIsPlaceholder()){if(this.isPassword)try{this.input[0].setAttribute("type","text")}catch(S){this.input.before(this.fakePassword.show()).hide()}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder")}},
|
||||||
|
hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")&&(this.input.removeClass("placeholder"),this.input[0].value="",this.isPassword)){try{this.input[0].setAttribute("type","password")}catch(L){}this.input.show();this.input[0].focus()}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder")},handlePassword:function(){var L=this.input;L.attr("realType","password");this.isPassword=true;if(o.browser.msie&&L[0].outerHTML){var S=o(L[0].outerHTML.replace(/type=(['"])?password\1/gi,
|
||||||
|
"type=$1text$1"));this.fakePassword=S.val(L.attr("placeholder")).addClass("placeholder").focus(function(){L.trigger("focus");o(this).hide()});o(L[0].form).submit(function(){S.remove();L.show()})}}};var M=!!("placeholder"in document.createElement("input"));o.fn.placeholder=function(){return M?this:this.each(function(){var L=o(this),S=new p(L);S.show(true);L.focus(function(){S.hide()});L.blur(function(){S.show(false)});o.browser.msie&&(o(window).load(function(){L.val()&&L.removeClass("placeholder");
|
||||||
|
S.show(true)}),L.focus(function(){if(this.value==""){var da=this.createTextRange();da.collapse(true);da.moveStart("character",0);da.select()}}))})}})(jQuery);
|
||||||
|
var MD5=function(o){function p(Q,W){var F,O,ba,fa,Z;ba=Q&2147483648;fa=W&2147483648;F=Q&1073741824;O=W&1073741824;Z=(Q&1073741823)+(W&1073741823);if(F&O)return Z^2147483648^ba^fa;return F|O?Z&1073741824?Z^3221225472^ba^fa:Z^1073741824^ba^fa:Z^ba^fa}function M(Q,W,F,O,ba,fa,Z){Q=p(Q,p(p(W&F|~W&O,ba),Z));return p(Q<<fa|Q>>>32-fa,W)}function L(Q,W,F,O,ba,fa,Z){Q=p(Q,p(p(W&O|F&~O,ba),Z));return p(Q<<fa|Q>>>32-fa,W)}function S(Q,W,F,O,ba,fa,Z){Q=p(Q,p(p(W^F^O,ba),Z));return p(Q<<fa|Q>>>32-fa,W)}function da(Q,
|
||||||
|
W,F,O,ba,fa,Z){Q=p(Q,p(p(F^(W|~O),ba),Z));return p(Q<<fa|Q>>>32-fa,W)}function N(Q){var W="",F="",O;for(O=0;O<=3;O++){F=Q>>>O*8&255;F="0"+F.toString(16);W+=F.substr(F.length-2,2)}return W}var K=[],ha,ea,aa,oa,B,C,w,y;o=function(Q){Q=Q.replace(/\r\n/g,"\n");for(var W="",F=0;F<Q.length;F++){var O=Q.charCodeAt(F);if(O<128)W+=String.fromCharCode(O);else{if(O>127&&O<2048)W+=String.fromCharCode(O>>6|192);else{W+=String.fromCharCode(O>>12|224);W+=String.fromCharCode(O>>6&63|128)}W+=String.fromCharCode(O&
|
||||||
|
63|128)}}return W}(o);K=function(Q){var W,F=Q.length;W=F+8;for(var O=((W-W%64)/64+1)*16,ba=Array(O-1),fa=0,Z=0;Z<F;){W=(Z-Z%4)/4;fa=Z%4*8;ba[W]|=Q.charCodeAt(Z)<<fa;Z++}W=(Z-Z%4)/4;fa=Z%4*8;ba[W]|=128<<fa;ba[O-2]=F<<3;ba[O-1]=F>>>29;return ba}(o);B=1732584193;C=4023233417;w=2562383102;y=271733878;for(o=0;o<K.length;o+=16){ha=B;ea=C;aa=w;oa=y;B=M(B,C,w,y,K[o+0],7,3614090360);y=M(y,B,C,w,K[o+1],12,3905402710);w=M(w,y,B,C,K[o+2],17,606105819);C=M(C,w,y,B,K[o+3],22,3250441966);B=M(B,C,w,y,K[o+4],7,4118548399);
|
||||||
|
y=M(y,B,C,w,K[o+5],12,1200080426);w=M(w,y,B,C,K[o+6],17,2821735955);C=M(C,w,y,B,K[o+7],22,4249261313);B=M(B,C,w,y,K[o+8],7,1770035416);y=M(y,B,C,w,K[o+9],12,2336552879);w=M(w,y,B,C,K[o+10],17,4294925233);C=M(C,w,y,B,K[o+11],22,2304563134);B=M(B,C,w,y,K[o+12],7,1804603682);y=M(y,B,C,w,K[o+13],12,4254626195);w=M(w,y,B,C,K[o+14],17,2792965006);C=M(C,w,y,B,K[o+15],22,1236535329);B=L(B,C,w,y,K[o+1],5,4129170786);y=L(y,B,C,w,K[o+6],9,3225465664);w=L(w,y,B,C,K[o+11],14,643717713);C=L(C,w,y,B,K[o+0],20,3921069994);
|
||||||
|
B=L(B,C,w,y,K[o+5],5,3593408605);y=L(y,B,C,w,K[o+10],9,38016083);w=L(w,y,B,C,K[o+15],14,3634488961);C=L(C,w,y,B,K[o+4],20,3889429448);B=L(B,C,w,y,K[o+9],5,568446438);y=L(y,B,C,w,K[o+14],9,3275163606);w=L(w,y,B,C,K[o+3],14,4107603335);C=L(C,w,y,B,K[o+8],20,1163531501);B=L(B,C,w,y,K[o+13],5,2850285829);y=L(y,B,C,w,K[o+2],9,4243563512);w=L(w,y,B,C,K[o+7],14,1735328473);C=L(C,w,y,B,K[o+12],20,2368359562);B=S(B,C,w,y,K[o+5],4,4294588738);y=S(y,B,C,w,K[o+8],11,2272392833);w=S(w,y,B,C,K[o+11],16,1839030562);
|
||||||
|
C=S(C,w,y,B,K[o+14],23,4259657740);B=S(B,C,w,y,K[o+1],4,2763975236);y=S(y,B,C,w,K[o+4],11,1272893353);w=S(w,y,B,C,K[o+7],16,4139469664);C=S(C,w,y,B,K[o+10],23,3200236656);B=S(B,C,w,y,K[o+13],4,681279174);y=S(y,B,C,w,K[o+0],11,3936430074);w=S(w,y,B,C,K[o+3],16,3572445317);C=S(C,w,y,B,K[o+6],23,76029189);B=S(B,C,w,y,K[o+9],4,3654602809);y=S(y,B,C,w,K[o+12],11,3873151461);w=S(w,y,B,C,K[o+15],16,530742520);C=S(C,w,y,B,K[o+2],23,3299628645);B=da(B,C,w,y,K[o+0],6,4096336452);y=da(y,B,C,w,K[o+7],10,1126891415);
|
||||||
|
w=da(w,y,B,C,K[o+14],15,2878612391);C=da(C,w,y,B,K[o+5],21,4237533241);B=da(B,C,w,y,K[o+12],6,1700485571);y=da(y,B,C,w,K[o+3],10,2399980690);w=da(w,y,B,C,K[o+10],15,4293915773);C=da(C,w,y,B,K[o+1],21,2240044497);B=da(B,C,w,y,K[o+8],6,1873313359);y=da(y,B,C,w,K[o+15],10,4264355552);w=da(w,y,B,C,K[o+6],15,2734768916);C=da(C,w,y,B,K[o+13],21,1309151649);B=da(B,C,w,y,K[o+4],6,4149444226);y=da(y,B,C,w,K[o+11],10,3174756917);w=da(w,y,B,C,K[o+2],15,718787259);C=da(C,w,y,B,K[o+9],21,3951481745);B=p(B,ha);
|
||||||
|
C=p(C,ea);w=p(w,aa);y=p(y,oa)}return(N(B)+N(C)+N(w)+N(y)).toLowerCase()},settings={server:"",credentials:{username:"",password:"",authstring:""},settings:{}},ltypes=[["kb_total","Total bandwidth"],["kbps_max","Current bandwidth"],["users","Concurrent users"],["streams","Cocurrent streams"],["geo","Geolimited"],["host","Hostlimited"],["time","Timelimited"],["duration","Duration"],["str_kbps_min","Minimum bitrate"],["str_kbps_max","Maximum bitrate"]];
|
||||||
|
$(document).ready(function(){$("#nav").children().each(function(){$(this).click(function(){$("#nav").children().each(function(){$(this).attr("class","")});$(this).attr("class","selected");showTab($(this).text())})});showTab("login");$("#nav").css("visibility","hidden")});var sinterval=null,streamsdisplay=[true,true];
|
||||||
|
function showTab(o,p){$("#page").html("");clearInterval(sinterval);switch(o){case "login":var M=$("<input>").attr("type","text").attr("placeholder","HTTP://LOCALHOST:4242"),L=$("<input>").attr("type","text").attr("placeholder","USERNAME"),S=$("<input>").attr("type","password").attr("placeholder","PASSWORD"),da=$("<button>").click(function(){settings.credentials.username=L.val();settings.credentials.password=S.val();settings.server=M.val()||M.attr("placeholder");location.hash=L.val()+"@"+M.val();setHeaderState("logingin");
|
||||||
|
loadSettings(function(F){if(F==""){setHeaderState("connected");$("#nav").css("visibility","visible");showTab("overview");$("#nav").children().each(function(){$(this).text()!="overview"?$(this).attr("class",""):$(this).attr("class","selected")})}else{setHeaderState("disconnected");$("#header-host").text("")}})}).text("login");$("#page").append($("<div>").attr("id","login").append(M).append(L).append(S).append(da));var N=function(F){F.keyCode==13&&da.trigger("click")};M.keypress(N);L.keypress(N);S.keypress(N);
|
||||||
|
N=location.hash.replace("#","").split("@");if(N.length==2){M.val(N[1]);L.val(N[0])}break;case "overview":$("#page").append($("<div>").attr("id","editserver").append($("<label>").attr("for","config-host").text("host").append($("<input>").attr("type","text").attr("placeholder","HOST").attr("id","config-host").attr("value",settings.settings.config.host))).append($("<label>").attr("for","config-name").text("name").append($("<input>").attr("type","text").attr("placeholder","NAME").attr("id","config-name").attr("value",
|
||||||
|
settings.settings.config.name))).append($("<label>").text("version").append($("<span>").text(settings.settings.config.version))).append($("<label>").text("time").append($("<span>").text(formatDate(settings.settings.config.time)))).append($("<label>").text("Streams").append($("<span>").attr("id","cur_streams_online").text("retrieving data..."))).append($("<label>").text("Viewers").append($("<span>").attr("id","cur_num_viewers").text("retrieving data..."))));var K=function(){getStatData(function(F){$("#cur_streams_online").html("").text(F.streams[0]+
|
||||||
|
" of "+F.streams[1]+" online");$("#cur_num_viewers").html("").text(F.viewers)})};sinterval=setInterval(function(){K()},1E4);K();$("#editserver").append($("<button>").attr("class","floatright").click(function(){var F=$("#config-host").val(),O=$("#config-name").val();settings.settings.config.host=F;settings.settings.config.name=O;loadSettings(function(){showTab("overview")})}).text("save"));N=$("<div>").attr("id","forcesave");N.append($("<p>").text("Click the button below to force an immediate settings save. This differs from a regular save to memory and file save on exit by saving directly to file while operating. This may slow server processes for a short period of time.")).append($("<button>").click(function(){confirmDelete("Are you sure you want to force a JSON save?")==
|
||||||
|
true&&forceJSONSave()}).text("force save to JSON file"));$("#page").append(N);break;case "protocols":$table=$("<table>");$table.html("<thead><th>Protocol</th><th>Port</th><th>Interface</th><th></th></thead>");$tbody=$("<tbody>");var ha,ea,aa;N=settings.settings.config.protocols?settings.settings.config.protocols.length:0;$tbody.html("");for(ea=0;ea<N;ea++){aa=settings.settings.config.protocols[ea];ha=$("<tr>").attr("id","protocol-"+ea);ha.append($("<td>").text(aa.connector));ha.append($("<td>").text(aa.port));
|
||||||
|
ha.append($("<td>").text(aa["interface"]));ha.append($("<td>").attr("class","center").append($("<button>").click(function(){if(confirmDelete("Are you sure you want to delete this protocol?")==true){var F=$(this).parent().parent().attr("id").replace("protocol-","");settings.settings.config.protocols.splice(F,1);$(this).parent().parent().remove();loadSettings()}}).text("delete")));$tbody.append(ha)}$nprot=$("<tr>").attr("class","outsidetable");$pname=$("<select>").attr("id","new-protocol-name");$pname.append($("<option>").attr("value",
|
||||||
|
"HTTP").text("HTTP"));$pname.append($("<option>").attr("value","RTMP").text("RTMP"));$nprot.append($("<td>").append($pname));$nprot.append($("<td>").append($("<input>").attr("type","number").attr("id","new-protocol-val")));$nprot.append($("<td>").append($("<input>").attr("type","text").attr("id","new-protocol-interface")));$nprot.append($("<td>").attr("class","center").append($("<button>").click(function(){if($("#new-protocol-val").val()=="")$("#new-protocol-val").focus();else{if(!settings.settings.config.protocols)settings.settings.config.protocols=
|
||||||
|
[];var F={connector:$("#new-protocol-name :selected").val(),port:Math.abs($("#new-protocol-val").val())};F["interface"]=$("#new-protocol-interface").val();settings.settings.config.protocols.push(F);loadSettings(function(){showTab("protocols")})}}).text("add new")));$tbody.append($nprot);$table.append($tbody);$("#page").append($table);break;case "streams":$div=$("<div>").attr("id","streams-filter");var oa=function(){$("#streams-list-tbody").children().each(function(F,O){var ba=$($(O).children()[0]).text().toLowerCase();
|
||||||
|
$(O).show();ba=="recorded"&&streamsdisplay[0]==false&&$(O).hide();ba=="live"&&streamsdisplay[1]==false&&$(O).hide()})},B=function(F,O){if(F.target.id!=""){if($(O).text()=="recorded"){streamsdisplay[0]=!streamsdisplay[0];$("#stream-filter-recorded").attr("checked",streamsdisplay[0])}else{streamsdisplay[1]=!streamsdisplay[1];$("#stream-filter-live").attr("checked",streamsdisplay[1])}oa()}};$div.append($("<label>").attr("for","stream-filter-recorded").text("recorded").append($("<input>").attr("type",
|
||||||
|
"checkbox").attr("id","stream-filter-recorded").attr("checked",streamsdisplay[0])).click(function(F){B(F,this)}));$div.append($("<label>").attr("for","stream-filter-live").text("live").append($("<input>").attr("type","checkbox").attr("id","stream-filter-live").attr("checked",streamsdisplay[1])).click(function(F){B(F,this)}));$("#page").append($div);var C=function(){getStreamsData(function(F){for(w in F)if($("stream-"+w)){var O=$("#stream-"+w),ba=F[w][0];ba==1?$(O.children()[3]).html("<span class='green'>Running</span>"):
|
||||||
|
$(O.children()[3]).html("<span class='red'>"+(ba==0?"Offline":"Unknown, checking...")+"</span>");$(O.children()[4]).text(F[w][1])}})};sinterval=setInterval(function(){C()},1E4);C();$table=$("<table>");$table.html("<thead><th>Type</th><th>Embed</th><th>Name</th><th>Status</th><th>Viewers</th><th>Edit</th></thead>");$tbody=$("<tbody>");var w;$tbody.html("").attr("id","streams-list-tbody");for(w in settings.settings.streams){N=settings.settings.streams[w];aa=$("<tr>").attr("id","stream-"+w);aa.append($("<td>").text(TypeofResource(N.channel.URL)));
|
||||||
|
aa.append($("<td>").append($("<button>").text("embed").click(function(){var F=$(this).parent().parent().attr("id").replace("stream-","");showTab("embed",F)})));aa.append($("<td>").text(N.name));N.online&&N.online==1?aa.append($("<td>").html("<span class='green'>Running</span>")):aa.append($("<td>").html("<span class='red'>"+(N.online==0?"Offline":"Unknown, checking...")+"</span>"));N=0;if(settings.settings.statistics&&settings.settings.statistics[w]){if(settings.settings.statistics[w]&&settings.settings.statistics[w].curr)for(viewer in settings.settings.statistics[w].curr)N++}else N=
|
||||||
|
0;aa.append($("<td>").text(N));aa.append($("<td>").append($("<button>").text("edit").click(function(){var F=$(this).parent().parent().attr("id").replace("stream-","");showTab("editstream",F)})));$tbody.append(aa)}$table.append($tbody);$("#page").append($table);oa();$("#page").append($("<button>").attr("class","floatright").click(function(){showTab("editstream","new")}).text("add new"));break;case "editstream":var y;if(p=="new"){y={name:"",channel:{URL:""},limits:[],preset:{cmd:""}};N="add new stream"}else{y=
|
||||||
|
settings.settings.streams[p];N='edit stream "'+y.name+'"'}$("#page").append($("<p>").text(N));$("#page").append($("<div>").attr("id","editserver").append($("<label>").attr("for","stream-edit-name").text("name").append($("<input>").attr("type","text").attr("placeholder","NAME").attr("id","stream-edit-name").attr("value",y.name))).append($("<label>").attr("for","stream-edit-source").text("source").append($("<input>").attr("type","text").attr("placeholder","SOURCE").attr("id","stream-edit-source").attr("value",
|
||||||
|
y.channel.URL).keyup(function(){var F=$(this).val();if(F.charAt(0)=="/"||F.substr(0,7)=="push://"){$("#stream-edit-preset").val("");$("#stream-edit-preset").hide();$("#stream-edit-preset-label").hide()}else{$("#stream-edit-preset").show();$("#stream-edit-preset-label").show()}}))).append($("<label>").attr("id","stream-edit-preset-label").attr("for","stream-edit-preset").text("preset").append($("<input>").attr("type","text").attr("placeholder","PRESET").attr("id","stream-edit-preset").attr("value",
|
||||||
|
y.preset.cmd))));N=$("#stream-edit-source").val();if(N.charAt(0)=="/"||N.substr(0,7)=="push://"){$("#stream-edit-preset").hide();$("#stream-edit-preset-label").hide()}else{$("#stream-edit-preset").show();$("#stream-edit-preset-label").show()}$("#editserver").append($("<button>").attr("class","floatright").click(function(){if(p=="new")showTab("streams");else if(confirmDelete('Are you sure you want to delete the stream "'+settings.settings.streams[p].name+'"?')==true){delete settings.settings.streams[p];
|
||||||
|
loadSettings(function(){showTab("streams")})}}).text(p=="new"?"cancel":"delete"));$("#editserver").append($("<button>").attr("class","floatright").click(function(){var F=$("#stream-edit-name"),O=$("#stream-edit-source"),ba=$("#stream-edit-preset");if(F.val()=="")F.focus();else if(O.val()=="")O.focus();else{F=F.val().replace(/([^a-zA-Z0-9_])/g,"").toLowerCase();y.name=F;y.channel.URL=O.val();y.preset.cmd=ba.val();if(p=="new")p=F;if(!settings.settings.streams)settings.settings.streams={};delete settings.settings.streams[p];
|
||||||
|
settings.settings.streams[F]=y;loadSettings(function(){showTab("streams")})}}).text("save"));break;case "embed":if(isThereAHTTPConnector()){N="http://"+parseURL(settings.server).host+":8080/embed_"+p+".js";$("#page").append($("<p>").attr("class","nocapitals").text('The embed URL is "'+N+'".'));$("#page").append($("<button>").text("preview").click(function(){showTab("preview",p)}))}else $("#page").append($("<p>").attr("class","nocapitals").text('Could\'t find a HTTP connector. Please add a HTTP connector on the "protocol" page.'));
|
||||||
|
break;case "preview":N="http://"+parseURL(settings.server).host+":8080/embed_"+p+".js";$("#page").append($("<div>").html("<script src='"+N+"'><\/script>"));break;case "limits":$table=$("<table>");$table.html("<thead><th>Type</th><th>Hard/soft</th><th>Value</th><th>applies to</th><th>Action</th></thead>");$tbody=$("<tbody>");var Q,W=settings.settings.config.limits;for(w in settings.settings.streams){N=settings.settings.streams[w].limits;$.each(N,function(F){this.appliesto=w;this.appliesi=F});W=W.concat(N)}N=
|
||||||
|
W.length;$tbody.html("");for(ea=0;ea<N;ea++){ha=$("<tr>").attr("id","limits-"+ea);Q=W[ea];ha.append($("<td>").text(shortToLongLimit(Q.name)));ha.append($("<td>").text(Q.type));ha.append($("<td>").text(Q.val));Q.appliesto?ha.append($("<td>").text(settings.settings.streams[Q.appliesto].name).attr("id","limit-at-"+Q.appliesto+"-"+Q.appliesi)):ha.append($("<td>").text("server"));delete Q.appliesto;delete Q.appliesi;ha.append($("<td>").attr("class","center").append($("<button>").click(function(){if(confirmDelete("Are you sure you want to delete this limit?")==
|
||||||
|
true){var F=$(this).parent().parent().attr("id").replace("limits-",""),O=$($(this).parent().parent().children()[3]).attr("id");if(O==undefined)settings.settings.config.limits.splice(F,1);else{F=O.replace("limit-at-","").split("-");O=F.pop();F=F.join("-");settings.settings.streams[F].limits.splice(O,1)}$(this).parent().parent().remove();loadSettings()}}).text("delete")));$tbody.append(ha)}$nltr=$("<tr>").attr("class","outsidetable");$ltype=$("<select>").attr("id","new-limit-type");for(ea=0;ea<ltypes.length;ea++)$ltype.append($("<option>").attr("value",
|
||||||
|
ltypes[ea][0]).text(ltypes[ea][1]));$nltr.append($("<td>").append($ltype));$nltr.append($("<td>").append($("<select>").attr("id","new-limit-hs").append($("<option>").attr("value","hard").text("Hard limit")).append($("<option>").attr("value","soft").text("Soft limit"))));$nltr.append($("<td>").append($("<input>").attr("type","text").attr("id","new-limit-val")));N=$("<select>").attr("id","new-limit-appliesto").append($("<option>").attr("value","server").text("Server"));for(aa in settings.settings.streams)N.append($("<option>").attr("value",
|
||||||
|
aa).text(settings.settings.streams[aa].name));$nltr.append($("<td>").append(N));$nltr.append($("<td>").attr("class","center").append($("<button>").click(function(){var F={name:$("#new-limit-type :selected").val(),type:$("#new-limit-hs :selected").val(),val:$("#new-limit-val").val()};$("#new-limit-appliesto").val()=="server"?settings.settings.config.limits.push(F):settings.settings.streams[$("#new-limit-appliesto").val()].limits.push(F);loadSettings(function(){showTab("limits")})}).text("add new")));
|
||||||
|
$tbody.append($nltr);$table.append($tbody);$("#page").append($table);break;case "logs":$table=$("<table>");$table.html("<thead><th>Date<span class='theadinfo'>(MM/DD/YYYY)</span></th><th>Type</th><th>Message</th></thead>");$tbody=$("<tbody>");if(!settings.settings.log)return;ea=settings.settings.log;N=ea.length;N>=2&&settings.settings.log[0][0]<settings.settings.log[N-1][0]&&ea.reverse();$tbody.html("");for(ea=0;ea<N;ea++){aa=settings.settings.log[ea];aa=$("<tr>").append($("<td>").text(formatDate(aa[0]))).append($("<td>").text(aa[1])).append($("<td>").text(aa[2]));
|
||||||
|
$tbody.append(aa)}$table.append($tbody);$("#page").append($table);$("#page").append($("<button>").attr("class","floatright").click(function(){settings.settings.clearstatlogs=1;loadSettings(function(){showTab("logs")})}).text("Purge logs"));break;case "disconnect":showTab("login");setHeaderState("disconnected");$("#nav").css("visibility","hidden");settings={server:"",credentials:{username:"",password:"",authstring:""},settings:{}}}$("input[placeholder]").placeholder()}
|
||||||
|
function confirmDelete(o){return confirm(o)}function formatDate(o){o=new Date(o*1E3);return[("00"+o.getMonth()).slice(-2),("00"+o.getDate()).slice(-2),o.getFullYear()].join("/")+" "+[("00"+o.getHours()).slice(-2),("00"+o.getMinutes()).slice(-2),("00"+o.getSeconds()).slice(-2)].join(":")}function TypeofResource(o){o=/([a-zA-Z]+):\/\//.exec(o);return o===null||o[1]&&o[1]==="file"?"Recorded":"Live"}
|
||||||
|
function shortToLongLimit(o){var p;for(p=0;p<ltypes.length;p++)if(o==ltypes[p][0])return ltypes[p][1];return o}function forceJSONSave(){var o={authorize:{username:settings.credentials.username,password:settings.credentials.authstring!=""?MD5(MD5(settings.credentials.password)+settings.credentials.authstring):""},save:1};$.ajax({url:settings.server,data:{command:JSON.stringify(o)},dataType:"jsonp",timeout:1E4,error:function(){},success:function(){}})}
|
||||||
|
function getData(o){var p={authorize:{username:settings.credentials.username,password:settings.credentials.authstring!=""?MD5(MD5(settings.credentials.password)+settings.credentials.authstring):""}};$.ajax({url:settings.server,data:{command:JSON.stringify(p)},dataType:"jsonp",timeout:1E4,error:function(){},success:function(M){M=$.extend(true,{streams:{},statistics:{}},M);console.log("[651] RECV",M);o&&o(M)}})}
|
||||||
|
function getStreamsData(o){getData(function(p){var M={},L=0,S;for(S in p.streams){M[S]=[p.streams[S].online,0];L++}if(L!==0){for(S in p.statistics)if(p.statistics[S].curr)for(var da in p.statistics[S].curr)M[S][1]++;o(M)}})}function parseURL(o){var p={protocol:"",host:"",port:""};o=o.match(/(https?)\:\/\/([^:\/]+)\:(\d+)?/);if(o!=null){p.protocol=o[1];p.host=o[2];p.port=o[3]}return p}
|
||||||
|
function isThereAHTTPConnector(){var o,p=settings.settings.config.protocols?settings.settings.config.protocols.length:0;for(o=0;o<p;o++)if(settings.settings.config.protocols[o].connector=="HTTP")return true;return false}function getStatData(o){getData(function(p){var M,L,S=0,da=0,N=0;for(M in p.statistics)if(p.statistics[M].curr)for(L in p.statistics[M].curr)da++;for(M in p.streams){N++;p.streams[M].online&&p.streams[M].online==1&&S++}o({streams:[S,N],viewers:da})})}
|
||||||
|
function loadSettings(o){$("body").append($("<div>").attr("id","shield").text("Loading, please wait..."));var p="",M=$.extend(settings.settings,{authorize:{username:settings.credentials.username,password:settings.credentials.authstring!=""?MD5(MD5(settings.credentials.password)+settings.credentials.authstring):""}});delete M.log;delete M.statistics;console.log("[763] SEND",M);$.ajax({url:settings.server,data:{command:JSON.stringify(M)},dataType:"jsonp",timeout:5E3,error:function(){showTab("disconnect");
|
||||||
|
$("#shield").remove()},success:function(L){$("#shield").remove();console.log("[785] RECV",L);if(L&&L.authorize&&L.authorize.challenge)if(settings.credentials.authstring!=L.authorize.challenge){settings.credentials.authstring=L.authorize.challenge;loadSettings(o);return}else p="wrong credentials";else settings.settings=$.extend(true,{config:{host:"",limits:[],name:"",protocols:[],status:"",version:""},streams:{},log:{},statistics:{}},L);o&&o(p)}})}
|
||||||
|
function setHeaderState(o){var p,M,L;switch(o){case "logingin":p="connecting...";M="loggingin";L="connecting to "+settings.server;break;case "disconnected":L=M=p="disconnected";break;case "connected":M=p="connected";L="connected to "+settings.server}document.title="Mistserver Manager - "+L;$("#header-connection").attr("class",M);$("#header-connection").text(p);$("#header-host").text(settings.server.replace("HTTP://",""))};
|
||||||
|
</script>
|
34
lsp/footer.html
Normal file
34
lsp/footer.html
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<div id='header'>
|
||||||
|
|
||||||
|
<div id='header-title'>
|
||||||
|
<span>Mistserver Manager</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div id='header-status'>
|
||||||
|
<span id='header-connection' class='disconnected'>Disconnected</span>
|
||||||
|
<span id='header-host'></span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<ul id='nav'>
|
||||||
|
<li class='selected'>overview</li>
|
||||||
|
<li>protocols</li>
|
||||||
|
<li>streams</li>
|
||||||
|
<li>limits</li>
|
||||||
|
<li>logs</li>
|
||||||
|
<li id='logoutbutton'>disconnect</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div id='page'></div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
11
lsp/header.html
Normal file
11
lsp/header.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<!doctype html>
|
||||||
|
|
||||||
|
<html lang='en'>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta charset='utf-8' />
|
||||||
|
|
||||||
|
<title>Mistserver Manager - not connected</title>
|
||||||
|
|
||||||
|
|
BIN
lsp/jscompiler.jar
Normal file
BIN
lsp/jscompiler.jar
Normal file
Binary file not shown.
|
@ -333,7 +333,7 @@ TODO als server het stuurt
|
||||||
var nobj =
|
var nobj =
|
||||||
{
|
{
|
||||||
connector: $('#new-protocol-name :selected').val(),
|
connector: $('#new-protocol-name :selected').val(),
|
||||||
port: Math.abs($('#new-protocol-val').val()),
|
port: Math.abs($('#new-protocol-val').val())
|
||||||
};
|
};
|
||||||
|
|
||||||
nobj['interface'] = $('#new-protocol-interface').val();
|
nobj['interface'] = $('#new-protocol-interface').val();
|
||||||
|
|
1306
lsp/uncompressed.js
Normal file
1306
lsp/uncompressed.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue