From 6c936aca732b73caa0a44d69c7aaa06ff7a86bdf Mon Sep 17 00:00:00 2001 From: Armadillo Build Script Date: Sun, 7 Oct 2012 10:47:06 -0400 Subject: [PATCH] Stamp version.js @ 656.0 --- frontend/armadillo.js | 406 +++++++++++++++++++++--------------------- frontend/version.js | 6 +- 2 files changed, 205 insertions(+), 207 deletions(-) diff --git a/frontend/armadillo.js b/frontend/armadillo.js index 078ca59..f6a8c83 100644 --- a/frontend/armadillo.js +++ b/frontend/armadillo.js @@ -1,205 +1,203 @@ -(function(r,p){function K(a){var b=Ga[a]={},d,e;a=a.split(/\s+/);d=0;for(e=a.length;d=0===d})}function Ha(a){var b=Ia.split("|");a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function Ja(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;e0){if(d!=="border")for(;g").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){if(!V){V=C.createElement("iframe");V.frameBorder=V.width=V.height=0}b.appendChild(V);if(!ia||!V.createElement){ia= -(V.contentWindow||V.contentDocument).document;ia.write((C.compatMode==="CSS1Compat"?"":"")+"");ia.close()}d=ia.createElement(a);ia.body.appendChild(d);e=c.css(d,"display");b.removeChild(V)}ya[a]=e}return ya[a]}function za(a){return c.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var C=r.document,Bb=r.navigator,Cb=r.location,c=function(){function a(){if(!b.isReady){try{C.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=r.jQuery,e=r.$,f,g=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,i=/\S/,l=/^\s+/,m=/\s+$/,q=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,x=/^[\],:{}\s]*$/,u=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,B=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,y=/(?:^|:|,)(?:\s*\[)+/g,G=/(webkit)[ \/]([\w.]+)/,J=/(opera)(?:.*version)?[ \/]([\w.]+)/,O=/(msie) ([\w.]+)/,L=/(mozilla)(?:.*? rv:([\w.]+))?/,Y=/-([a-z]|[0-9])/ig,R=/^-ms-/,H=function(k,v){return(v+"").toUpperCase()}, -T=Bb.userAgent,h,j,n=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=Array.prototype.push,t=Array.prototype.slice,D=String.prototype.trim,z=Array.prototype.indexOf,I={};b.fn=b.prototype={constructor:b,init:function(k,v,A){var w;if(!k)return this;if(k.nodeType){this.context=this[0]=k;this.length=1;return this}if(k==="body"&&!v&&C.body){this.context=C;this[0]=C.body;this.selector=k;this.length=1;return this}if(typeof k==="string")if((w=k.charAt(0)==="<"&&k.charAt(k.length-1)===">"&&k.length>= -3?[null,k,null]:g.exec(k))&&(w[1]||!v))if(w[1]){A=(v=v instanceof b?v[0]:v)?v.ownerDocument||v:C;if(k=q.exec(k))if(b.isPlainObject(v)){k=[C.createElement(k[1])];b.fn.attr.call(k,v,true)}else k=[A.createElement(k[1])];else{k=b.buildFragment([w[1]],[A]);k=(k.cacheable?b.clone(k.fragment):k.fragment).childNodes}return b.merge(this,k)}else{if((v=C.getElementById(w[2]))&&v.parentNode){if(v.id!==w[2])return A.find(k);this.length=1;this[0]=v}this.context=C;this.selector=k;return this}else return!v||v.jquery? -(v||A).find(k):this.constructor(v).find(k);else if(b.isFunction(k))return A.ready(k);if(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 t.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 w=this.constructor();b.isArray(k)?s.apply(w,k):b.merge(w,k);w.prevObject=this;w.context=this.context; -if(v==="find")w.selector=this.selector+(this.selector?" ":"")+A;else if(v)w.selector=this.selector+"."+v+"("+A+")";return w},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(t.apply(this,arguments),"slice",t.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,w,F,E=arguments[0]||{},M=1,P=arguments.length,ba=false;if(typeof E==="boolean"){ba=E;E=arguments[1]||{};M=2}if(typeof E!=="object"&&!b.isFunction(E))E={};if(P===M){E=this;--M}for(;M0)){h.fireWith(C,[b]);b.fn.trigger&&b(C).trigger("ready").off("ready")}}}, -bindReady:function(){if(!h){h=b.Callbacks("once memory");if(C.readyState==="complete")return setTimeout(b.ready,1);if(C.addEventListener){C.addEventListener("DOMContentLoaded",j,false);r.addEventListener("load",b.ready,false)}else if(C.attachEvent){C.attachEvent("onreadystatechange",j);r.attachEvent("onload",b.ready);var k=false;try{k=r.frameElement==null}catch(v){}C.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):I[n.call(k)]||"object"},isPlainObject:function(k){if(!k||b.type(k)!=="object"||k.nodeType||b.isWindow(k))return false;try{if(k.constructor&&!o.call(k,"constructor")&&!o.call(k.constructor.prototype,"isPrototypeOf"))return false}catch(v){return false}var A;for(A in k);return A===p||o.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(r.JSON&&r.JSON.parse)return r.JSON.parse(k);if(x.test(k.replace(u,"@").replace(B,"]").replace(y,"")))return(new Function("return "+k))();b.error("Invalid JSON: "+k)},parseXML:function(k){var v,A;try{if(r.DOMParser){A=new DOMParser;v=A.parseFromString(k,"text/xml")}else{v=new ActiveXObject("Microsoft.XMLDOM");v.async="false";v.loadXML(k)}}catch(w){v=p}if(!v||!v.documentElement|| -v.getElementsByTagName("parsererror").length)b.error("Invalid XML: "+k);return v},noop:function(){},globalEval:function(k){if(k&&i.test(k))(r.execScript||function(v){r.eval.call(r,v)})(k)},camelCase:function(k){return k.replace(R,"ms-").replace(Y,H)},nodeName:function(k,v){return k.nodeName&&k.nodeName.toUpperCase()===v.toUpperCase()},each:function(k,v,A){var w,F=0,E=k.length,M=E===p||b.isFunction(k);if(A)if(M)for(w in k){if(v.apply(k[w],A)===false)break}else for(;F0&&k[0]&&k[P-1]||P===0||b.isArray(k)))for(;M1?Aa.call(arguments,0):u;--l||m.resolveWith(m,e)}}function d(x){return function(u){i[x]=arguments.length>1?Aa.call(arguments,0):u;m.notifyWith(q, -i)}}var e=Aa.call(arguments,0),f=0,g=e.length,i=Array(g),l=g,m=g<=1&&a&&c.isFunction(a.promise)?a:c.Deferred(),q=m.promise();if(g>1){for(;f
a"; -b=m.getElementsByTagName("*");d=m.getElementsByTagName("a")[0];if(!b||!b.length||!d)return{};e=C.createElement("select");f=e.appendChild(C.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:!!C.createElement("form").enctype,html5Clone:C.createElement("nav").cloneNode(true).outerHTML!=="<: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(q){a.deleteExpando= -false}if(!m.addEventListener&&m.attachEvent&&m.fireEvent){m.attachEvent("onclick",function(){a.noCloneEvent=false});m.cloneNode(true).fireEvent("onclick")}b=C.createElement("input");b.value="t";b.setAttribute("type","radio");a.radioValue=b.value==="t";b.setAttribute("checked","checked");m.appendChild(b);d=C.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=""; -if(r.getComputedStyle){b=C.createElement("div");b.style.width="0";b.style.marginRight="0";m.style.width="2px";m.appendChild(b);a.reliableMarginRight=(parseInt((r.getComputedStyle(b,null)||{marginRight:0}).marginRight,10)||0)===0}if(m.attachEvent)for(i in{submit:1,change:1,focusin:1}){b="on"+i;l=b in m;if(!l){m.setAttribute(b,"return;");l=typeof m[b]==="function"}a[i+"Bubbles"]=l}d.removeChild(m);d=e=f=b=m=b=null;c(function(){var x,u,B,y,G=C.getElementsByTagName("body")[0];if(G){x=C.createElement("div"); -x.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";G.insertBefore(x,G.firstChild);m=C.createElement("div");x.appendChild(m);m.innerHTML="
t
";g=m.getElementsByTagName("td");l=g[0].offsetHeight===0;g[0].style.display="";g[1].style.display="none";a.reliableHiddenOffsets=l&&g[0].offsetHeight===0;m.innerHTML="";m.style.width=m.style.paddingLeft="1px";c.boxModel=a.boxModel=m.offsetWidth=== -2;if(typeof m.style.zoom!=="undefined"){m.style.display="inline";m.style.zoom=1;a.inlineBlockNeedsLayout=m.offsetWidth===2;m.style.display="";m.innerHTML="
";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="
"; -u=m.firstChild;B=u.firstChild;y={doesNotAddBorder:B.offsetTop!==5,doesAddBorderForTableAndCells:u.nextSibling.firstChild.firstChild.offsetTop===5};B.style.position="fixed";B.style.top="20px";y.fixedPosition=B.offsetTop===20||B.offsetTop===15;B.style.position=B.style.top="";u.style.overflow="hidden";u.style.position="relative";y.subtractsBorderForOverflowNotVisible=B.offsetTop===-5;y.doesNotIncludeMarginInBodyOffset=G.offsetTop!==1;G.removeChild(x);m=null;c.extend(a,y)}});return a}();var tb=/^(?:\{.*\}|\[.*\])$/, -sb=/([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&&!Q(a)},data:function(a,b,d,e){if(c.acceptData(a)){var f;f=c.expando;var g=typeof b==="string",i=a.nodeType,l=i?c.cache:a,m=i?a[f]:a[f]&&f,q=b==="events";if(!((!m||!l[m]||!q&&!e&&!l[m].data)&&g&&d===p)){if(!m)if(i)a[f]=m=++c.uuid;else m= -f;if(!l[m]){l[m]={};if(!i)l[m].toJSON=c.noop}if(typeof b==="object"||typeof b==="function")if(e)l[m]=c.extend(l[m],b);else l[m].data=c.extend(l[m].data,b);f=a=l[m];if(!e){if(!a.data)a.data={};a=a.data}if(d!==p)a[c.camelCase(b)]=d;if(q&&!a[b])return f.events;if(g){d=a[b];if(d==null)d=a[c.camelCase(b)]}else d=a;return d}}},removeData:function(a,b,d){if(c.acceptData(a)){var e,f,g,i=c.expando,l=a.nodeType,m=l?c.cache:a,q=l?a[i]:i;if(m[q]){if(b)if(e=d?m[q]:m[q].data){if(!c.isArray(b))if(b in e)b=[b];else{b= -c.camelCase(b);b=b in e?[b]:b.split(" ")}f=0;for(g=b.length;f-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);if(this.nodeType===1){g=e?a.call(this, -g,i.val()):a;if(g==null)g="";else if(typeof g==="number")g+="";else if(c.isArray(g))g=c.map(g,function(l){return l==null?"":l+""});b=c.valHooks[this.nodeName.toLowerCase()]||c.valHooks[this.type];if(!b||!("set"in b)||b.set(this,g,"value")===p)this.value=g}})}else 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=0});if(!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);if(e=i!==1||!c.isXMLDoc(a)){b=b.toLowerCase();g=c.attrHooks[b]||(Wa.test(b)?Ya:W)}if(d!==p)if(d===null)c.removeAttr(a,b);else if(g&&"set"in g&&e&&(f=g.set(a,d,b))!== -p)return f;else{a.setAttribute(b,""+d);return d}else if(g&&"get"in g&&e&&(f=g.get(a,b))!==null)return f;else{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(ra);for(g=e.length;i=0}})});var Ba=/^(?:textarea|input|select)$/i,$a=/^([^\.]*)?(?:\.(.+))?$/,Hb=/\bhover(\.\S+)?\b/,Ib=/^key/,Jb=/^(?:mouse|contextmenu)|click/,ab=/^(?:focusinfocus|focusoutblur)$/,Kb=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Lb=function(a){if(a=Kb.exec(a)){a[1]=(a[1]||"").toLowerCase();a[3]=a[3]&&RegExp("(?:^|\\s)"+a[3]+"(?:\\s|$)")}return a},bb=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,m,q,x,u,B,y;if(!(a.nodeType===3||a.nodeType===8||!b||!d||!(g=c._data(a)))){if(d.handler){u=d;d=u.handler}if(!d.guid)d.guid=c.guid++;l=g.events;if(!l)g.events=l={};i=g.handle;if(!i){g.handle=i=function(G){return typeof c!=="undefined"&&(!G||c.event.triggered!==G.type)?c.event.dispatch.apply(i.elem,arguments):p};i.elem=a}b=c.trim(bb(b)).split(" ");for(g=0;g=0){f=f.slice(0,-1);i=true}if(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;if(!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)){x=[[d,m.bindType||f]];if(!e&&!m.noBubble&&!c.isWindow(d)){q=m.delegateType||f;g=ab.test(q+f)?d:d.parentNode;for(l=null;g;g=g.parentNode){x.push([g,q]);l=g}if(l&&l===d.ownerDocument)x.push([l.defaultView||l.parentWindow||r,q])}for(l=0;ld&&g.push({elem:this,matches:b.slice(d)});for(i=0;i0?this.on(b,null,d,e):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true;if(Ib.test(b))c.event.fixHooks[b]=c.event.keyHooks;if(Jb.test(b))c.event.fixHooks[b]=c.event.mouseHooks});(function(){function a(h,j,n,o,s,t){s=0;for(var D=o.length;s0){I=z;break}}z=z[h]}o[s]=I}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e="sizcache"+(Math.random()+"").replace(".",""),f=0,g=Object.prototype.toString, -i=false,l=true,m=/\\/g,q=/\r\n/g,x=/\W/;[0,0].sort(function(){l=false;return 0});var u=function(h,j,n,o){n=n||[];var s=j=j||C;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!h||typeof h!=="string")return n;var t,D,z,I,k,v=true,A=u.isXML(j),w=[],F=h;do{d.exec("");if(t=d.exec(F)){F=t[3];w.push(t[1]);if(t[2]){I=t[3];break}}}while(t);if(w.length>1&&G.exec(h))if(w.length===2&&y.relative[w[0]])D=T(w[0]+w[1],j,o);else for(D=y.relative[w[0]]?[j]:u(w.shift(),j);w.length;){h=w.shift();if(y.relative[h])h+=w.shift(); -D=T(h,D,o)}else{if(!o&&w.length>1&&j.nodeType===9&&!A&&y.match.ID.test(w[0])&&!y.match.ID.test(w[w.length-1])){t=u.find(w.shift(),j,A);j=t.expr?u.filter(t.expr,t.set)[0]:t.set[0]}if(j){t=o?{expr:w.pop(),set:L(o)}:u.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&j.parentNode?j.parentNode:j,A);D=t.expr?u.filter(t.expr,t.set):t.set;if(w.length>0)z=L(D);else v=false;for(;w.length;){t=k=w.pop();if(y.relative[k])t=w.pop();else k="";if(t==null)t=j;y.relative[k](z,t,A)}}else z=[]}z||(z=D);z||u.error(k|| -h);if(g.call(z)==="[object Array]")if(v)if(j&&j.nodeType===1)for(h=0;z[h]!=null;h++){if(z[h]&&(z[h]===true||z[h].nodeType===1&&u.contains(j,z[h])))n.push(D[h])}else for(h=0;z[h]!=null;h++)z[h]&&z[h].nodeType===1&&n.push(D[h]);else n.push.apply(n,z);else L(z,n);if(I){u(I,s,n,o);u.uniqueSort(n)}return n};u.uniqueSort=function(h){if(R){i=l;h.sort(R);if(i)for(var j=1;j0};u.find=function(h,j,n){var o,s,t,D,z,I;if(!h)return[];s=0;for(t=y.order.length;s":function(h,j){var n,o=typeof j==="string",s=0,t=h.length;if(o&& -!x.test(j))for(j=j.toLowerCase();s=0))n||o.push(D);else if(n)j[t]=false;return false},ID:function(h){return h[1].replace(m,"")},TAG:function(h){return h[1].replace(m,"").toLowerCase()},CHILD:function(h){if(h[1]==="nth"){h[2]||u.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]&&u.error(h[0]);h[0]=f++;return h}, -ATTR:function(h,j,n,o,s,t){j=h[1]=h[1].replace(m,"");if(!t&&y.attrMap[j])h[1]=y.attrMap[j];h[4]=(h[4]||h[5]||"").replace(m,"");if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,j,n,o,s){if(h[1]==="not")if((d.exec(h[3])||"").length>1||/^\w/.test(h[3]))h[3]=u(h[3],null,null,j);else{h=u.filter(h[3],j,n,true^s);n||o.push.apply(o,h);return false}else if(y.match.POS.test(h[0])||y.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,n){return!!u(n[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){var j=h.getAttribute("type"),n=h.type;return h.nodeName.toLowerCase()==="input"&&"text"===n&&(j===n||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,n,o){return j===o.length-1},even:function(h,j){return j%2===0},odd:function(h,j){return j%2===1},lt:function(h,j,n){return jn[3]-0},nth:function(h,j,n){return n[3]-0===j},eq:function(h,j,n){return n[3]-0===j}},filter:{PSEUDO:function(h,j,n,o){var s=j[1],t=y.filters[s];if(t)return t(h,n,j,o);else if(s==="contains")return(h.textContent||h.innerText||B([h])||"").indexOf(j[3])>=0;else if(s==="not"){j=j[3];n=0;for(o=j.length;n=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 n=j[1];n=u.attr?u.attr(h,n):y.attrHandle[n]?y.attrHandle[n](h):h[n]!=null?h[n]:h.getAttribute(n);var o=n+"",s=j[2],t=j[4];return n==null?s==="!=":!s&&u.attr?n!=null:s==="="?o===t:s==="*="?o.indexOf(t)>=0:s==="~="?(" "+o+" ").indexOf(t)>=0:!t?o&&n!==false:s==="!="?o!==t:s==="^="?o.indexOf(t)===0:s==="$="?o.substr(o.length-t.length)===t:s==="|="?o===t||o.substr(0,t.length+1)===t+"-":false}, -POS:function(h,j,n,o){var s=y.setFilters[j[2]];if(s)return s(h,n,j,o)}}},G=y.match.POS,J=function(h,j){return"\\"+(j-0+1)};for(var O in y.match){y.match[O]=RegExp(y.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source);y.leftMatch[O]=RegExp(/(^(?:.|\r|\n)*?)/.source+y.match[O].source.replace(/\\(\d+)/g,J))}var L=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(C.documentElement.childNodes,0)}catch(Y){L=function(h,j){var n=0,o=j|| -[];if(g.call(h)==="[object Array]")Array.prototype.push.apply(o,h);else if(typeof h.length==="number")for(var s=h.length;n";n.insertBefore(h,n.firstChild);if(C.getElementById(j)){y.find.ID=function(o,s,t){if(typeof s.getElementById!=="undefined"&&!t)return(s=s.getElementById(o[1]))?s.id===o[1]||typeof s.getAttributeNode!=="undefined"&&s.getAttributeNode("id").nodeValue===o[1]?[s]:p:[]};y.filter.ID=function(o,s){var t=typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id");return o.nodeType===1&&t&&t.nodeValue===s}}n.removeChild(h);n=h=null})();(function(){var h= -C.createElement("div");h.appendChild(C.createComment(""));if(h.getElementsByTagName("*").length>0)y.find.TAG=function(j,n){var o=n.getElementsByTagName(j[1]);if(j[1]==="*"){for(var s=[],t=0;o[t];t++)o[t].nodeType===1&&s.push(o[t]);o=s}return o};h.innerHTML="";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")y.attrHandle.href=function(j){return j.getAttribute("href",2)};h=null})();C.querySelectorAll&&function(){var h=u,j=C.createElement("div"); -j.innerHTML="

";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){u=function(o,s,t,D){s=s||C;if(!D&&!u.isXML(s)){var z=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(o);if(z&&(s.nodeType===1||s.nodeType===9))if(z[1])return L(s.getElementsByTagName(o),t);else if(z[2]&&y.find.CLASS&&s.getElementsByClassName)return L(s.getElementsByClassName(z[2]),t);if(s.nodeType===9){if(o==="body"&&s.body)return L([s.body],t);else if(z&&z[3]){var I=s.getElementById(z[3]);if(I&&I.parentNode){if(I.id=== -z[3])return L([I],t)}else return L([],t)}try{return L(s.querySelectorAll(o),t)}catch(k){}}else if(s.nodeType===1&&s.nodeName.toLowerCase()!=="object"){z=s;var v=(I=s.getAttribute("id"))||"__sizzle__",A=s.parentNode,w=/^\s*[+~]/.test(o);if(I)v=v.replace(/'/g,"\\$&");else s.setAttribute("id",v);if(w&&A)s=s.parentNode;try{if(!w||A)return L(s.querySelectorAll("[id='"+v+"'] "+o),t)}catch(F){}finally{I||z.removeAttribute("id")}}}return h(o,s,t,D)};for(var n in h)u[n]=h[n];j=null}}();(function(){var h=C.documentElement, -j=h.matchesSelector||h.mozMatchesSelector||h.webkitMatchesSelector||h.msMatchesSelector;if(j){var n=!j.call(C.createElement("div"),"div"),o=false;try{j.call(C.documentElement,"[test!='']:sizzle")}catch(s){o=true}u.matchesSelector=function(t,D){D=D.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!u.isXML(t))try{if(o||!y.match.PSEUDO.test(D)&&!/!=/.test(D)){var z=j.call(t,D);if(z||!n||t.document&&t.document.nodeType!==11)return z}}catch(I){}return u(D,null,null,[t]).length>0}}})();(function(){var h=C.createElement("div"); -h.innerHTML="
";if(!(!h.getElementsByClassName||h.getElementsByClassName("e").length===0)){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){y.order.splice(1,0,"CLASS");y.find.CLASS=function(j,n,o){if(typeof n.getElementsByClassName!=="undefined"&&!o)return n.getElementsByClassName(j[1])};h=null}}})();u.contains=C.documentElement.contains?function(h,j){return h!==j&&(h.contains?h.contains(j):true)}:C.documentElement.compareDocumentPosition? -function(h,j){return!!(h.compareDocumentPosition(j)&16)}:function(){return false};u.isXML=function(h){return(h=(h?h.ownerDocument||h:0).documentElement)?h.nodeName!=="HTML":false};var T=function(h,j,n){var o,s=[],t="";for(j=j.nodeType?[j]:j;o=y.match.PSEUDO.exec(h);){t+=o[0];h=h.replace(y.match.PSEUDO,"")}h=y.relative[h]?h+"*":h;o=0;for(var D=j.length;o0)for(i=g;i=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-1:c.find.matchesSelector(g,a)){d.push(g);break}else{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);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1&&!Qb[a]?c.unique(f):f;if((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){if(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 Ia="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,Ca=/^\s+/,db=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,eb=/<([\w:]+)/,Sb=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"", -"
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},hb=Ha(C);S.optgroup=S.option;S.tbody=S.tfoot=S.colgroup=S.caption=S.thead;S.th=S.td;if(!c.support.htmlSerialize)S._default=[1,"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||C).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)});else 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)});else 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){if(!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;else if(typeof a==="string"&&!Ub.test(a)&&(c.support.leadingWhitespace||!Ca.test(a))&&!S[(eb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(db,"<$1>");try{for(var b=0,d=this.length;b1&&f0?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||!fb.test("<"+a.nodeName))e=a.cloneNode(true);else{e=C.createElement("div");hb.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)){Ka(a,i);e=oa(a);f=oa(i);for(g=0;e[g];++g)f[g]&&Ka(e[g],f[g])}if(b){Ja(a,i);if(d){e=oa(a);f=oa(i);for(g=0;e[g];++g)Ja(e[g],f[g])}}return i},clean:function(a,b,d,e){b=b||C;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||C;for(var f=[],g,i=0,l;(l=a[i])!=null;i++){if(typeof l==="number")l+="";if(l){if(typeof l==="string")if(Tb.test(l)){l=l.replace(db,"<$1>");g=(eb.exec(l)||["",""])[1].toLowerCase(); -var m=S[g]||S._default,q=m[0],x=b.createElement("div");b===C?hb.appendChild(x):Ha(b).appendChild(x);for(x.innerHTML=m[1]+l+m[2];q--;)x=x.lastChild;if(!c.support.tbody){q=Sb.test(l);m=g==="table"&&!q?x.firstChild&&x.firstChild.childNodes:m[1]===""&&!q?x.childNodes:[];for(g=m.length-1;g>=0;--g)c.nodeName(m[g],"tbody")&&!m[g].childNodes.length&&m[g].parentNode.removeChild(m[g])}!c.support.leadingWhitespace&&Ca.test(l)&&x.insertBefore(b.createTextNode(Ca.exec(l)[0]),x.firstChild);l=x.childNodes}else l= -b.createTextNode(l);var u;if(!c.support.appendChecked)if(l[0]&&typeof(u=l.length)==="number")for(g=0;g=0)return e+"px"}else return e}}});if(!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(Da,""))===""){d.removeAttribute("filter"); -if(e&&!e.filter)return}d.filter=Da.test(g)?g.replace(Da,f):g+" "+f}};c(function(){if(!c.support.reliableMarginRight)c.cssHooks.marginRight={get:function(a,b){var d;c.swap(a,{display:"inline-block"},function(){d=b?ga(a,"margin-right","marginRight"):a.style.marginRight});return d}}});if(C.defaultView&&C.defaultView.getComputedStyle)jb=function(a,b){var d,e,f;b=b.replace(Yb,"-$1").toLowerCase();if((e=a.ownerDocument.defaultView)&&(f=e.getComputedStyle(a,null))){d=f.getPropertyValue(b);if(d===""&&!c.contains(a.ownerDocument.documentElement, -a))d=c.style(a,b)}return d};if(C.documentElement.currentStyle)kb=function(a,b){var d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;if(f===null&&g&&(d=g[b]))f=d;if(!ib.test(f)&&Zb.test(f)){d=g.left;if(e=a.runtimeStyle&&a.runtimeStyle.left)a.runtimeStyle.left=a.currentStyle.left;g.left=b==="fontSize"?"1em":f||0;f=g.pixelLeft+"px";g.left=d;if(e)a.runtimeStyle.left=e}return f===""?"auto":f};ga=jb||kb;if(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,zb=/\[\]$/,lb=/\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=/^\/\//,mb=/\?/,hc=/)<[^<]*)*<\/script>/gi,ic=/^(?:select|textarea)/i,Pa=/\s+/, -jc=/([?&])_=[^&]*/,nb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ob=c.fn.load,wa={},pb={},ca,da,qb=["*/"]+["*"];try{ca=Cb.href}catch(rc){ca=C.createElement("a");ca.href="";ca=ca.href}da=nb.exec(ca.toLowerCase())||[];c.fn.extend({load:function(a,b,d){if(typeof a!=="string"&&ob)return ob.apply(this,arguments);else 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";if(b)if(c.isFunction(b)){d=b;b=p}else if(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,m){m=i.responseText;if(i.isResolved()){i.done(function(q){m=q});g.html(f?c("
").append(m.replace(hc,"")).find(f):m)}d&&g.each(d,[m,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(lb,"\r\n")}}):{name:b.name,value:d.replace(lb,"\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){if(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){if(b)Qa(a,c.ajaxSettings);else{b=a;a=c.ajaxSettings}Qa(a,b);return a},ajaxSettings:{url:ca,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(da[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","*":qb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":r.String,"text html":true,"text json":c.parseJSON,"text xml":c.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:Oa(wa),ajaxTransport:Oa(pb),ajax:function(a,b){function d(j,n,o,s){if(L!==2){L=2;J&&clearTimeout(J);G=p;B=s||"";H.readyState=j>0?4:0;var t,D,z;s=n;if(o){var I=e,k=H,v=I.contents,A=I.dataTypes,w=I.responseFields, -F,E,M,P;for(E in w)if(E in o)k[w[E]]=o[E];for(;A[0]==="*";){A.shift();if(F===p)F=I.mimeType||k.getResponseHeader("content-type")}if(F)for(E in v)if(v[E]&&v[E].test(F)){A.unshift(E);break}if(A[0]in o)M=A[0];else{for(E in o){if(!A[0]||I.converters[E+" "+A[0]]){M=E;break}P||(P=E)}M=M||P}if(M){M!==A[0]&&A.unshift(M);o=o[M]}else o=void 0}else o=p;o=o;if(j>=200&&j<300||j===304){if(e.ifModified){if(F=H.getResponseHeader("Last-Modified"))c.lastModified[q]=F;if(F=H.getResponseHeader("Etag"))c.etag[q]=F}if(j=== -304){s="notmodified";t=true}else try{F=e;o=o;if(F.dataFilter)o=F.dataFilter(o,F.dataType);var ba=F.dataTypes;E={};var na,sa,kc=ba.length,ta,Z=ba[0],ja,Ea,aa,ea,ka;for(na=1;na0)J=setTimeout(function(){H.abort("timeout")},e.timeout);try{L=1;G.send(x,d)}catch(h){if(L<2)d(-1,h);else throw h;}}else d(-1,"No Transport");return H},param:function(a,b){var d=[],e=function(g,i){i=c.isFunction(i)?i():i;d[d.length]=encodeURIComponent(g)+"="+encodeURIComponent(i)};if(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)xa(f,a[f],b,e);return d.join("&").replace(bc,"+")}});c.extend({active:0,lastModified:{},etag:{}});var mc=c.now(),ua=/(\=)\?(&|$)|\?\?/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&& -(ua.test(a.url)||b&&ua.test(a.data))){var e,f=a.jsonpCallback=c.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=r[f],i=a.url,l=a.data,m="$1"+f+"$2";if(a.jsonp!==false){i=i.replace(ua,m);if(a.url===i){if(b)l=l.replace(ua,m);if(a.data===l)i+=(/\?/.test(i)?"&":"?")+a.jsonp+"="+f}}a.url=i;a.data=l;r[f]=function(q){e=[q]};d.always(function(){r[f]=g;e&&c.isFunction(g)&&r[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){if(a.cache===p)a.cache=false;if(a.crossDomain){a.type="GET";a.global=false}});c.ajaxTransport("script",function(a){if(a.crossDomain){var b,d=C.head||C.getElementsByTagName("head")[0]||C.documentElement;return{send:function(e, -f){b=C.createElement("script");b.async="async";if(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 Fa=r.ActiveXObject?function(){for(var a in la)la[a](0,1)}:false,nc=0,la;c.ajaxSettings.xhr=r.ActiveXObject?function(){var a; -if(!(a=!this.isLocal&&Ra()))a:{try{a=new r.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:Ra;(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);if(!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(m,q){var x,u,B,y,G;try{if(b&&(q||f.readyState===4)){b=p;if(g){f.onreadystatechange=c.noop;Fa&&delete la[g]}if(q)f.readyState!==4&&f.abort();else{x=f.status;B=f.getAllResponseHeaders();y={};if((G=f.responseXML)&&G.documentElement)y.xml=G;y.text=f.responseText;try{u=f.statusText}catch(J){u= -""}if(!x&&a.isLocal&&!a.crossDomain)x=y.text?200:404;else if(x===1223)x=204}}}catch(O){q||e(-1,O)}y&&e(x,u,y,B)};if(!a.async||f.readyState===4)b();else{g=++nc;if(Fa){if(!la){la={};c(r).unload(Fa)}la[g]=b}f.onreadystatechange=b}},abort:function(){b&&b(0,1)}}}});var ya={},V,ia,oc=/^(?:toggle|show|hide)$/,pc=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,va,Ta=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],qa;c.fn.extend({show:function(a, -b,d){if(a||a===0)return this.animate(ha("show",3),a,b,d);else{d=0;for(var e=this.length;d=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=true;for(b in g.animatedProperties)if(g.animatedProperties[b]!==true)e=false;if(e){g.overflow!=null&&!c.support.shrinkWrapBlocks&&c.each(["","X","Y"],function(i,l){f.style["overflow"+l]=g.overflow[i]});g.hide&&c(f).hide(); -if(g.hide||g.show)for(b in g.animatedProperties){c.style(f,b,g.orig[b]);c.removeData(f,"fxshow"+b,true);c.removeData(f,"toggle"+b,true)}if(a=g.complete){g.complete=false;a.call(f)}}return false}else{if(g.duration==Infinity)this.now=d;else{a=d-this.startTime;this.state=a/g.duration;this.pos=c.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.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-1){q=f.position();e=q.top;l=q.left}else{e=parseFloat(i)||0;l=parseFloat(l)||0}if(c.isFunction(b))b=b.call(a,d,g);if(b.top!=null)m.top=b.top-g.top+e;if(b.left!=null)m.left=b.left-g.left+l;"using"in b?b.using.call(a,m):f.css(m)}};c.fn.extend({position:function(){if(!this[0])return null; -var a=this[0],b=this.offsetParent(),d=this.offset(),e=rb.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||C.body;a&&!rb.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=za(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(){if(g=za(this))g.scrollTo(!a?e:c(g).scrollLeft(),a?e:c(g).scrollTop());else 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 m=c(this);m[d](e.call(this,l,m[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}else 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]);else if(e===p){f=c.css(f,d);g=parseFloat(f);return c.isNumeric(g)?g:f}else return this.css(d,typeof e==="string"?e:e+"px")}});r.jQuery=r.$=c;typeof define==="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return c})})(window);$.extend({namespace:function(r){var p=window;this.each(r.split("."),function(K,N){p[N]=p[N]||{};p=p[N]})},createDom:function(r){return this(document.createElement(r))}}); -if(!Function.prototype.bind)Function.prototype.bind=function(r){if(typeof this!=="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var p=Array.prototype.slice.call(arguments,1),K=this,N=function(){},Q=function(){return K.apply(this instanceof N?this:r||window,p.concat(Array.prototype.slice.call(arguments)))};N.prototype=this.prototype;Q.prototype=new N;return Q};$.namespace("armadillo.Version");armadillo.Version.MAJOR=0;armadillo.Version.MINOR=8;armadillo.Version.BUILD=643;armadillo.Version.STAMP=1349547115;$.namespace("armadillo.TVRenamer");armadillo.TVRenamer=function(r){this.file_=r};armadillo.TVRenamer.prototype.run=function(){var r=this.file_;app.sendRequest("tv_rename",{path:this.file_.getFullPath()},function(p){if(p.error)app.showError(p.message);else{app.clearError();r.move(p.path)}})};$.namespace("armadillo.PathControl");armadillo.PathControl=function(r,p){this.name_=this.path_=null;this.setPath(r);this.editableLastComponent_=p;this.nameControl_=null};armadillo.PathControl.prototype.setPath=function(r){this.path_=app.stripLastPathComponent(r);this.name_=r.substr(this.path_.length)};armadillo.PathControl.prototype.getPath=function(){return app.joinPath(this.path_,this.name_)};armadillo.PathControl.prototype.getNameControl=function(){return this.nameControl_}; +(function(j,k){function s(a,b,c){if(c===k&&1===a.nodeType)if(c="data-"+b.replace(Vb,"-$1").toLowerCase(),c=a.getAttribute(c),"string"===typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:d.isNumeric(c)?parseFloat(c):Wb.test(c)?d.parseJSON(c):c}catch(e){}d.data(a,b,c)}else c=k;return c}function u(a){for(var b in a)if(!("data"===b&&d.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function x(a,b,c){var e=b+"defer",f=b+"queue",g=b+"mark",h=d._data(a,e);h&&(("queue"===c||!d._data(a,f))&& +("mark"===c||!d._data(a,g)))&&setTimeout(function(){!d._data(a,f)&&!d._data(a,g)&&(d.removeData(a,e,!0),h.fire())},0)}function I(){return!1}function E(){return!0}function L(a,b,c){b=b||0;if(d.isFunction(b))return d.grep(a,function(a,e){return!!b.call(a,e,a)===c});if(b.nodeType)return d.grep(a,function(a){return a===b===c});if("string"===typeof b){var e=d.grep(a,function(a){return 1===a.nodeType});if(Xb.test(b))return d.filter(b,e,!c);b=d.filter(b,e)}return d.grep(a,function(a){return 0<=d.inArray(a, +b)===c})}function G(a){var b=Va.split("|"),a=a.createDocumentFragment();if(a.createElement)for(;b.length;)a.createElement(b.pop());return a}function Wa(a,b){if(1===b.nodeType&&d.hasData(a)){var c,e,f;e=d._data(a);var g=d._data(b,e),h=e.events;if(h)for(c in delete g.handle,g.events={},h){e=0;for(f=h[c].length;ee||null==e)e=a.style[b]||0;e=parseFloat(e)||0;if(c)for(;g").appendTo(b),e=c.css("display");c.remove();if("none"===e||""===e){C||(C=m.createElement("iframe"),C.frameBorder=C.width=C.height=0);b.appendChild(C);if(!U||!C.createElement)U=(C.contentWindow||C.contentDocument).document,U.write(("CSS1Compat"===m.compatMode?"":"")+""),U.close();c=U.createElement(a);U.body.appendChild(c); +e=d.css(c,"display");b.removeChild(C)}Ca[a]=e}return Ca[a]}function Da(a){return d.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}var m=j.document,dc=j.location,d,hb=function(){if(!l.isReady){try{m.documentElement.doScroll("left")}catch(a){setTimeout(hb,1);return}l.ready()}},l=function(a,b){return new l.fn.init(a,b,ib)},ec=j.jQuery,fc=j.$,ib,gc=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,jb=/\S/,kb=/^\s+/,lb=/\s+$/,hc=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ic=/^[\],:{}\s]*$/,jc=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, +kc=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,lc=/(?:^|:|,)(?:\s*\[)+/g,mc=/(webkit)[ \/]([\w.]+)/,nc=/(opera)(?:.*version)?[ \/]([\w.]+)/,oc=/(msie) ([\w.]+)/,pc=/(mozilla)(?:.*? rv:([\w.]+))?/,qc=/-([a-z]|[0-9])/ig,rc=/^-ms-/,sc=function(a,b){return(b+"").toUpperCase()},tc=j.navigator.userAgent,ka,la,V,uc=Object.prototype.toString,Ea=Object.prototype.hasOwnProperty,Fa=Array.prototype.push,da=Array.prototype.slice,mb=String.prototype.trim,nb=Array.prototype.indexOf,ob={}; +l.fn=l.prototype={constructor:l,init:function(a,b,c){var e;if(!a)return this;if(a.nodeType)return this.context=this[0]=a,this.length=1,this;if("body"===a&&!b&&m.body)return this.context=m,this[0]=m.body,this.selector=a,this.length=1,this;if("string"===typeof a){if((e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&3<=a.length?[null,a,null]:gc.exec(a))&&(e[1]||!b)){if(e[1])return c=(b=b instanceof l?b[0]:b)?b.ownerDocument||b:m,(a=hc.exec(a))?l.isPlainObject(b)?(a=[m.createElement(a[1])],l.fn.attr.call(a, +b,!0)):a=[c.createElement(a[1])]:(a=l.buildFragment([e[1]],[c]),a=(a.cacheable?l.clone(a.fragment):a.fragment).childNodes),l.merge(this,a);if((b=m.getElementById(e[2]))&&b.parentNode){if(b.id!==e[2])return c.find(a);this.length=1;this[0]=b}this.context=m;this.selector=a;return this}return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a)}if(l.isFunction(a))return c.ready(a);a.selector!==k&&(this.selector=a.selector,this.context=a.context);return l.makeArray(a,this)},selector:"",jquery:"1.7.1", +length:0,size:function(){return this.length},toArray:function(){return da.call(this,0)},get:function(a){return null==a?this.toArray():0>a?this[this.length+a]:this[a]},pushStack:function(a,b,c){var e=this.constructor();l.isArray(a)?Fa.apply(e,a):l.merge(e,a);e.prevObject=this;e.context=this.context;"find"===b?e.selector=this.selector+(this.selector?" ":"")+c:b&&(e.selector=this.selector+"."+b+"("+c+")");return e},each:function(a,b){return l.each(this,a,b)},ready:function(a){l.bindReady();la.add(a); +return this},eq:function(a){a=+a;return-1===a?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(da.apply(this,arguments),"slice",da.call(arguments).join(","))},map:function(a){return this.pushStack(l.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:Fa,sort:[].sort,splice:[].splice};l.fn.init.prototype=l.fn;l.extend=l.fn.extend=function(){var a, +b,c,e,d,g=arguments[0]||{},h=1,i=arguments.length,p=!1;"boolean"===typeof g&&(p=g,g=arguments[1]||{},h=2);"object"!==typeof g&&!l.isFunction(g)&&(g={});i===h&&(g=this,--h);for(;hc?Math.max(0,e+c):c:0;ca.indexOf("compatible")&&pc.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},sub:function(){function a(b, +e){return new a.fn.init(b,e)}l.extend(!0,a,this);a.superclass=this;a.fn=a.prototype=this();a.fn.constructor=a;a.sub=this.sub;a.fn.init=function(c,e){e&&(e instanceof l&&!(e instanceof a))&&(e=a(e));return l.fn.init.call(this,c,e,b)};a.fn.init.prototype=a.fn;var b=a(m);return a},browser:{}});l.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){ob["[object "+b+"]"]=b.toLowerCase()});ka=l.uaMatch(tc);ka.browser&&(l.browser[ka.browser]=!0,l.browser.version=ka.version); +l.browser.webkit&&(l.browser.safari=!0);jb.test("\u00a0")&&(kb=/^[\s\xA0]+/,lb=/[\s\xA0]+$/);ib=l(m);m.addEventListener?V=function(){m.removeEventListener("DOMContentLoaded",V,!1);l.ready()}:m.attachEvent&&(V=function(){"complete"===m.readyState&&(m.detachEvent("onreadystatechange",V),l.ready())});d=l;var pb={};d.Callbacks=function(a){var b;if(a){if(!(b=pb[a])){b=a;var c=pb[b]={},e,f;b=b.split(/\s+/);e=0;for(f=b.length;e=g&&a&&d.isFunction(a.promise)?a:d.Deferred(),j=p.promise();if(1
a";Ja=q.getElementsByTagName("*");W=q.getElementsByTagName("a")[0];if(!Ja||!Ja.length||!W)Ia={};else{ma=m.createElement("select");na=ma.appendChild(m.createElement("option")); +A=q.getElementsByTagName("input")[0];w={leadingWhitespace:3===q.firstChild.nodeType,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(W.getAttribute("style")),hrefNormalized:"/a"===W.getAttribute("href"),opacity:/^0.55/.test(W.style.opacity),cssFloat:!!W.style.cssFloat,checkOn:"on"===A.value,optSelected:na.selected,getSetAttribute:"t"!==q.className,enctype:!!m.createElement("form").enctype,html5Clone:"<:nav>"!==m.createElement("nav").cloneNode(!0).outerHTML, +submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0};A.checked=!0;w.noCloneChecked=A.cloneNode(!0).checked;ma.disabled=!0;w.optDisabled=!na.disabled;try{delete q.test}catch(md){w.deleteExpando=!1}!q.addEventListener&&(q.attachEvent&&q.fireEvent)&&(q.attachEvent("onclick",function(){w.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick"));A=m.createElement("input");A.value="t";A.setAttribute("type", +"radio");w.radioValue="t"===A.value;A.setAttribute("checked","checked");q.appendChild(A);J=m.createDocumentFragment();J.appendChild(q.lastChild);w.checkClone=J.cloneNode(!0).cloneNode(!0).lastChild.checked;w.appendChecked=A.checked;J.removeChild(A);J.appendChild(q);q.innerHTML="";j.getComputedStyle&&(X=m.createElement("div"),X.style.width="0",X.style.marginRight="0",q.style.width="2px",q.appendChild(X),w.reliableMarginRight=0===(parseInt((j.getComputedStyle(X,null)||{marginRight:0}).marginRight,10)|| +0));if(q.attachEvent)for(Ka in{submit:1,change:1,focusin:1})oa="on"+Ka,Y=oa in q,Y||(q.setAttribute(oa,"return;"),Y="function"===typeof q[oa]),w[Ka+"Bubbles"]=Y;J.removeChild(q);J=ma=na=X=q=A=null;d(function(){var a,b,c,e,f=m.getElementsByTagName("body")[0];f&&(a=m.createElement("div"),a.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",f.insertBefore(a,f.firstChild),q=m.createElement("div"),a.appendChild(q),q.innerHTML="
t
", +ea=q.getElementsByTagName("td"),Y=0===ea[0].offsetHeight,ea[0].style.display="",ea[1].style.display="none",w.reliableHiddenOffsets=Y&&0===ea[0].offsetHeight,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",d.boxModel=w.boxModel=2===q.offsetWidth,"undefined"!==typeof q.style.zoom&&(q.style.display="inline",q.style.zoom=1,w.inlineBlockNeedsLayout=2===q.offsetWidth,q.style.display="",q.innerHTML="
",w.shrinkWrapBlocks=2!==q.offsetWidth),q.style.cssText="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;visibility:hidden;border:0;", +q.innerHTML="
",b=q.firstChild,c=b.firstChild,e=b.nextSibling.firstChild.firstChild,e={doesNotAddBorder:5!==c.offsetTop,doesAddBorderForTableAndCells:5===e.offsetTop},c.style.position="fixed",c.style.top="20px", +e.fixedPosition=20===c.offsetTop||15===c.offsetTop,c.style.position=c.style.top="",b.style.overflow="hidden",b.style.position="relative",e.subtractsBorderForOverflowNotVisible=-5===c.offsetTop,e.doesNotIncludeMarginInBodyOffset=1!==f.offsetTop,f.removeChild(a),q=null,d.extend(w,e))});Ia=w}vc.support=Ia;var Wb=/^(?:\{.*\}|\[.*\])$/,Vb=/([A-Z])/g;d.extend({cache:{},uuid:0,expando:"jQuery"+(d.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000", +applet:!0},hasData:function(a){a=a.nodeType?d.cache[a[d.expando]]:a[d.expando];return!!a&&!u(a)},data:function(a,b,c,e){if(d.acceptData(a)){var f;f=d.expando;var g="string"===typeof b,h=a.nodeType,i=h?d.cache:a,p=h?a[f]:a[f]&&f,j="events"===b;if(p&&i[p]&&(j||e||i[p].data)||!(g&&c===k)){p||(h?a[f]=p=++d.uuid:p=f);i[p]||(i[p]={},h||(i[p].toJSON=d.noop));if("object"===typeof b||"function"===typeof b)e?i[p]=d.extend(i[p],b):i[p].data=d.extend(i[p].data,b);f=a=i[p];e||(a.data||(a.data={}),a=a.data);c!== +k&&(a[d.camelCase(b)]=c);if(j&&!a[b])return f.events;g?(c=a[b],null==c&&(c=a[d.camelCase(b)])):c=a;return c}}},removeData:function(a,b,c){if(d.acceptData(a)){var e,f,g,h=d.expando,i=a.nodeType,p=i?d.cache:a,j=i?a[h]:h;if(p[j]){if(b&&(e=c?p[j]:p[j].data)){d.isArray(b)||(b in e?b=[b]:(b=d.camelCase(b),b=b in e?[b]:b.split(" ")));f=0;for(g=b.length;fe)return null;a=h?e:0;for(c=h?e+1:g.length;af.indexOf(":")?"on"+f:"",c){if(a.result=k,a.target||(a.target=c),b=null!=b?d.makeArray(b):[],b.unshift(a),p=d.event.special[f]||{},!(p.trigger&&!1===p.trigger.apply(c,b))){l=[[c,p.bindType||f]];if(!e&&!p.noBubble&&!d.isWindow(c)){m=p.delegateType||f;g=wb.test(m+f)?c:c.parentNode;for(i=null;g;g=g.parentNode)l.push([g,m]),i=g;i&&i===c.ownerDocument&&l.push([i.defaultView|| +i.parentWindow||j,m])}for(i=0;ic&&g.push({elem:this,matches:b.slice(c)});for(h=0;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,Z="sizcache"+(Math.random()+"").replace(".",""),Na=0,Ab=Object.prototype.toString,qa=!1,Bb=!0,aa=/\\/g,Fc=/\r\n/g,ra=/\W/;[0,0].sort(function(){Bb=!1;return 0});var n=function(a,b,c,e){var c=c||[],d=b=b||m;if(1!==b.nodeType&& +9!==b.nodeType)return[];if(!a||"string"!==typeof a)return c;var g,h,i,j,k,l=!0,q=n.isXML(b),t=[],s=a;do if(Ma.exec(""),g=Ma.exec(s))if(s=g[3],t.push(g[1]),g[2]){j=g[3];break}while(g);if(1":function(a,b){var c,d="string"===typeof b,f=0,g=a.length;if(d&&!ra.test(b))for(b=b.toLowerCase();fc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var f=b[1],g=r.filters[f];if(g)return g(a,c,b,d);if("contains"===f)return 0<=(a.textContent||a.innerText|| +Oa([a])||"").indexOf(b[3]);if("not"===f){b=b[3];c=0;for(d=b.length;c";ua.insertBefore(ta,ua.firstChild);m.getElementById(Db)&&(r.find.ID=function(a,b,c){if("undefined"!==typeof b.getElementById&&!c)return(b=b.getElementById(a[1]))?b.id===a[1]||"undefined"!==typeof b.getAttributeNode&&b.getAttributeNode("id").nodeValue===a[1]?[b]:k:[]},r.filter.ID= +function(a,b){var c="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id");return 1===a.nodeType&&c&&c.nodeValue===b});ua.removeChild(ta);var ua=ta=null,N=m.createElement("div");N.appendChild(m.createComment(""));0

";if(!(va.querySelectorAll&&0===va.querySelectorAll(".TEST").length)){var n=function(a,b,c,d){b=b||m;if(!d&&!n.isXML(b)){var f=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(a);if(f&&(1===b.nodeType||9===b.nodeType)){if(f[1])return y(b.getElementsByTagName(a),c);if(f[2]&&r.find.CLASS&&b.getElementsByClassName)return y(b.getElementsByClassName(f[2]), +c)}if(9===b.nodeType){if("body"===a&&b.body)return y([b.body],c);if(f&&f[3]){var g=b.getElementById(f[3]);if(g&&g.parentNode){if(g.id===f[3])return y([g],c)}else return y([],c)}try{return y(b.querySelectorAll(a),c)}catch(h){}}else if(1===b.nodeType&&"object"!==b.nodeName.toLowerCase()){var f=b,i=(g=b.getAttribute("id"))||"__sizzle__",j=b.parentNode,k=/^\s*[+~]/.test(a);g?i=i.replace(/'/g,"\\$&"):b.setAttribute("id",i);k&&j&&(b=b.parentNode);try{if(!k||j)return y(b.querySelectorAll("[id='"+i+"'] "+ +a),c)}catch(l){}finally{g||f.removeAttribute("id")}}}return Pa(a,b,c,d)},Qa;for(Qa in Pa)n[Qa]=Pa[Qa];va=null}}var wa=m.documentElement,xa=wa.matchesSelector||wa.mozMatchesSelector||wa.webkitMatchesSelector||wa.msMatchesSelector;if(xa){var Ic=!xa.call(m.createElement("div"),"div"),Eb=!1;try{xa.call(m.documentElement,"[test!='']:sizzle")}catch(od){Eb=!0}n.matchesSelector=function(a,b){b=b.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!n.isXML(a))try{if(Eb||!r.match.PSEUDO.test(b)&&!/!=/.test(b)){var c= +xa.call(a,b);if(c||!Ic||a.document&&11!==a.document.nodeType)return c}}catch(d){}return 0
";ba.getElementsByClassName&&0!==ba.getElementsByClassName("e").length&&(ba.lastChild.className="e",1!==ba.getElementsByClassName("e").length&&(r.order.splice(1,0,"CLASS"),r.find.CLASS=function(a,b,c){if("undefined"!==typeof b.getElementsByClassName&&!c)return b.getElementsByClassName(a[1])}, +ba=null));n.contains=m.documentElement.contains?function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:m.documentElement.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(){return!1};n.isXML=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?"HTML"!==a.nodeName:!1};var Cb=function(a,b,c){for(var d,f=[],g="",b=b.nodeType?[b]:b;d=r.match.PSEUDO.exec(a);)g+=d[0],a=a.replace(r.match.PSEUDO,"");a=r.relative[a]?a+"*":a;d=0;for(var h=b.length;d]*)\/>/ig,Hb=/<([\w:]+)/,Pc=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Kb=G(m);z.optgroup=z.option;z.tbody=z.tfoot=z.colgroup=z.caption=z.thead;z.th=z.td;d.support.htmlSerialize||(z._default=[1,"div
","
"]); +d.fn.extend({text:function(a){return d.isFunction(a)?this.each(function(b){var c=d(this);c.text(a.call(this,b,c.text()))}):"object"!==typeof a&&a!==k?this.empty().append((this[0]&&this[0].ownerDocument||m).createTextNode(a)):d.text(this)},wrapAll:function(a){if(d.isFunction(a))return this.each(function(b){d(this).wrapAll(a.call(this,b))});if(this[0]){var b=d(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var a=this;a.firstChild&&1===a.firstChild.nodeType;)a= +a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return d.isFunction(a)?this.each(function(b){d(this).wrapInner(a.call(this,b))}):this.each(function(){var b=d(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=d.isFunction(a);return this.each(function(c){d(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments, +!0,function(a){1===this.nodeType&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){1===this.nodeType&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=d.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, +!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,d.clean(arguments));return a}},remove:function(a,b){for(var c=0,e;null!=(e=this[c]);c++)if(!a||d.filter(a,[e]).length)!b&&1===e.nodeType&&(d.cleanData(e.getElementsByTagName("*")),d.cleanData([e])),e.parentNode&&e.parentNode.removeChild(e);return this},empty:function(){for(var a=0,b;null!=(b=this[a]);a++)for(1===b.nodeType&&d.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a,b){a=null==a?!1:a;b=null==b?a:b;return this.map(function(){return d.clone(this,a,b)})},html:function(a){if(a===k)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Oc,""):null;if("string"===typeof a&&!Rc.test(a)&&(d.support.leadingWhitespace||!Ra.test(a))&&!z[(Hb.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Gb,"<$1>");try{for(var b=0,c=this.length;bi.length&&h===m&&"<"===i.charAt(0)&&!Sc.test(i)&&(d.support.checkClone||!Jb.test(i))&&(d.support.html5Clone||!Ib.test(i)))f=!0,(g=d.fragments[i])&&1!==g&&(e=g);e||(e=h.createDocumentFragment(),d.clean(a,h,e,c));f&&(d.fragments[i]=g?e:1);return{fragment:e,cacheable:f}};d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){d.fn[a]=function(c){var e=[],c=d(c),f=1===this.length&& +this[0].parentNode;if(f&&11===f.nodeType&&1===f.childNodes.length&&1===c.length)return c[b](this[0]),this;for(var f=0,g=c.length;f");g=(Hb.exec(i)||["",""])[1].toLowerCase();var j=z[g]||z._default, +k=j[0],l=b.createElement("div");b===m?Kb.appendChild(l):G(b).appendChild(l);for(l.innerHTML=j[1]+i+j[2];k--;)l=l.lastChild;if(!d.support.tbody){k=Pc.test(i);j="table"===g&&!k?l.firstChild&&l.firstChild.childNodes:""===j[1]&&!k?l.childNodes:[];for(g=j.length-1;0<=g;--g)d.nodeName(j[g],"tbody")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!d.support.leadingWhitespace&&Ra.test(i)&&l.insertBefore(b.createTextNode(Ra.exec(i)[0]),l.firstChild);i=l.childNodes}else i=b.createTextNode(i); +var n;if(!d.support.appendChecked)if(i[0]&&"number"===typeof(n=i.length))for(g=0;g)<[^<]*)*<\/script>/gi,fd=/^(?:select|textarea)/i,bb=/\s+/,gd=/([?&])_=[^&]*/,Qb=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Rb=d.fn.load, +Aa={},Sb={},K,F,Tb=["*/"]+["*"];try{K=dc.href}catch(pd){K=m.createElement("a"),K.href="",K=K.href}F=Qb.exec(K.toLowerCase())||[];d.fn.extend({load:function(a,b,c){if("string"!==typeof a&&Rb)return Rb.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(0<=e)var f=a.slice(e,a.length),a=a.slice(0,e);e="GET";b&&(d.isFunction(b)?(c=b,b=k):"object"===typeof b&&(b=d.param(b,d.ajaxSettings.traditional),e="POST"));var g=this;d.ajax({url:a,type:e,dataType:"html",data:b,complete:function(a, +b,e){e=a.responseText;a.isResolved()&&(a.done(function(a){e=a}),g.html(f?d("
").append(e.replace(ed,"")).find(f):e));c&&g.each(c,[e,b,a])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||fd.test(this.nodeName)||bd.test(this.type))}).map(function(a,b){var c=d(this).val();return null==c?null:d.isArray(c)? +d.map(c,function(a){return{name:b.name,value:a.replace(Ob,"\r\n")}}):{name:b.name,value:c.replace(Ob,"\r\n")}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){d.fn[b]=function(a){return this.on(b,a)}});d.each(["get","post"],function(a,b){d[b]=function(a,e,f,g){d.isFunction(e)&&(g=g||f,f=e,e=k);return d.ajax({type:b,url:a,data:e,success:f,dataType:g})}});d.extend({getScript:function(a,b){return d.get(a,k,b,"script")},getJSON:function(a,b,c){return d.get(a, +b,c,"json")},ajaxSetup:function(a,b){b?cb(a,d.ajaxSettings):(b=a,a=d.ajaxSettings);cb(a,b);return a},ajaxSettings:{url:K,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(F[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tb},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"}, +converters:{"* text":j.String,"text html":!0,"text json":d.parseJSON,"text xml":d.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:ab(Aa),ajaxTransport:ab(Sb),ajax:function(a,b){function c(a,b,c,l){if(2!==x){x=2;u&&clearTimeout(u);s=k;q=l||"";v.readyState=0a||304===a){if(e.ifModified){if(D=v.getResponseHeader("Last-Modified"))d.lastModified[m]=D;if(D=v.getResponseHeader("Etag"))d.etag[m]=D}if(304===a)l="notmodified",n=!0;else try{D=e;D.dataFilter&&(c=D.dataFilter(c,D.dataType));var H=D.dataTypes;B={};var E,J,N=H.length,K,Q=H[0],F,L,R,S,G;for(E=1;Ea&&(a=0);v.status=a;v.statusText=""+(b||l);n?h.resolveWith(f, +[r,l,v]):h.rejectWith(f,[v,l,M]);v.statusCode(j);j=k;A&&g.trigger("ajax"+(n?"Success":"Error"),[v,e,n?r:M]);i.fireWith(f,[v,l]);A&&(g.trigger("ajaxComplete",[v,e]),--d.active||d.event.trigger("ajaxStop"))}}"object"===typeof a&&(b=a,a=k);var b=b||{},e=d.ajaxSetup({},b),f=e.context||e,g=f!==e&&(f.nodeType||f instanceof d)?d(f):d.event,h=d.Deferred(),i=d.Callbacks("once memory"),j=e.statusCode||{},m,l={},n={},q,r,s,u,w,x=0,A,z,v={readyState:0,setRequestHeader:function(a,b){if(!x){var c=a.toLowerCase(), +a=n[c]=n[c]||a;l[a]=b}return this},getAllResponseHeaders:function(){return 2===x?q:null},getResponseHeader:function(a){var b;if(2===x){if(!r)for(r={};b=ad.exec(q);)r[b[1].toLowerCase()]=b[2];b=r[a.toLowerCase()]}return b===k?null:b},overrideMimeType:function(a){x||(e.mimeType=a);return this},abort:function(a){a=a||"abort";s&&s.abort(a);c(0,a);return this}};h.promise(v);v.success=v.done;v.error=v.fail;v.complete=i.add;v.statusCode=function(a){if(a){var b;if(2>x)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status], +v.then(b,b)}return this};e.url=((a||e.url)+"").replace($c,"").replace(dd,F[1]+"//");e.dataTypes=d.trim(e.dataType||"*").toLowerCase().split(bb);null==e.crossDomain&&(w=Qb.exec(e.url.toLowerCase()),e.crossDomain=!(!w||!(w[1]!=F[1]||w[2]!=F[2]||(w[3]||("http:"===w[1]?80:443))!=(F[3]||("http:"===F[1]?80:443)))));e.data&&(e.processData&&"string"!==typeof e.data)&&(e.data=d.param(e.data,e.traditional));ia(Aa,e,b,v);if(2===x)return!1;A=e.global;e.type=e.type.toUpperCase();e.hasContent=!cd.test(e.type); +A&&0===d.active++&&d.event.trigger("ajaxStart");if(!e.hasContent&&(e.data&&(e.url+=(Pb.test(e.url)?"&":"?")+e.data,delete e.data),m=e.url,!1===e.cache)){w=d.now();var y=e.url.replace(gd,"$1_="+w);e.url=y+(y===e.url?(Pb.test(e.url)?"&":"?")+"_="+w:"")}(e.data&&e.hasContent&&!1!==e.contentType||b.contentType)&&v.setRequestHeader("Content-Type",e.contentType);e.ifModified&&(m=m||e.url,d.lastModified[m]&&v.setRequestHeader("If-Modified-Since",d.lastModified[m]),d.etag[m]&&v.setRequestHeader("If-None-Match", +d.etag[m]));v.setRequestHeader("Accept",e.dataTypes[0]&&e.accepts[e.dataTypes[0]]?e.accepts[e.dataTypes[0]]+("*"!==e.dataTypes[0]?", "+Tb+"; q=0.01":""):e.accepts["*"]);for(z in e.headers)v.setRequestHeader(z,e.headers[z]);if(e.beforeSend&&(!1===e.beforeSend.call(f,v,e)||2===x))return v.abort(),!1;for(z in{success:1,error:1,complete:1})v[z](e[z]);if(s=ia(Sb,e,b,v)){v.readyState=1;A&&g.trigger("ajaxSend",[v,e]);e.async&&0x)c(-1,C);else throw C;}}else c(-1,"No Transport");return v},param:function(a,b){var c=[],e=function(a,b){b=d.isFunction(b)?b():b;c[c.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};b===k&&(b=d.ajaxSettings.traditional);if(d.isArray(a)||a.jquery&&!d.isPlainObject(a))d.each(a,function(){e(this.name,this.value)});else for(var f in a)Ba(f,a[f],b,e);return c.join("&").replace(Zc,"+")}});d.extend({active:0,lastModified:{},etag:{}});var hd=d.now(),ya=/(\=)\?(&|$)|\?\?/i; +d.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return d.expando+"_"+hd++}});d.ajaxPrefilter("json jsonp",function(a,b,c){b="application/x-www-form-urlencoded"===a.contentType&&"string"===typeof a.data;if("jsonp"===a.dataTypes[0]||!1!==a.jsonp&&(ya.test(a.url)||b&&ya.test(a.data))){var e,f=a.jsonpCallback=d.isFunction(a.jsonpCallback)?a.jsonpCallback():a.jsonpCallback,g=j[f],h=a.url,i=a.data,k="$1"+f+"$2";!1!==a.jsonp&&(h=h.replace(ya,k),a.url===h&&(b&&(i=i.replace(ya,k)),a.data===i&&(h+=(/\?/.test(h)? +"&":"?")+a.jsonp+"="+f)));a.url=h;a.data=i;j[f]=function(a){e=[a]};c.always(function(){j[f]=g;if(e&&d.isFunction(g))j[f](e[0])});a.converters["script json"]=function(){e||d.error(f+" was not called");return e[0]};a.dataTypes[0]="json";return"script"}});d.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){d.globalEval(a);return a}}});d.ajaxPrefilter("script", +function(a){a.cache===k&&(a.cache=!1);a.crossDomain&&(a.type="GET",a.global=!1)});d.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=m.head||m.getElementsByTagName("head")[0]||m.documentElement;return{send:function(d,f){b=m.createElement("script");b.async="async";a.scriptCharset&&(b.charset=a.scriptCharset);b.src=a.url;b.onload=b.onreadystatechange=function(a,d){if(d||!b.readyState||/loaded|complete/.test(b.readyState))b.onload=b.onreadystatechange=null,c&&b.parentNode&&c.removeChild(b), +b=k,d||f(200,"success")};c.insertBefore(b,c.firstChild)},abort:function(){if(b)b.onload(0,1)}}}});var Ta=j.ActiveXObject?function(){for(var a in ca)ca[a](0,1)}:!1,id=0,ca;d.ajaxSettings.xhr=j.ActiveXObject?function(){var a;if(!(a=!this.isLocal&&db()))a:{try{a=new j.ActiveXObject("Microsoft.XMLHTTP");break a}catch(b){}a=void 0}return a}:db;var Ua=d.ajaxSettings.xhr();d.extend(d.support,{ajax:!!Ua,cors:!!Ua&&"withCredentials"in Ua});d.support.ajax&&d.ajaxTransport(function(a){if(!a.crossDomain||d.support.cors){var b; +return{send:function(c,e){var f=a.xhr(),g,h;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(h in a.xhrFields)f[h]=a.xhrFields[h];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType);!a.crossDomain&&!c["X-Requested-With"]&&(c["X-Requested-With"]="XMLHttpRequest");try{for(h in c)f.setRequestHeader(h,c[h])}catch(i){}f.send(a.hasContent&&a.data||null);b=function(c,h){var i,j,l,m,n;try{if(b&&(h||4===f.readyState))if(b=k,g&&(f.onreadystatechange= +d.noop,Ta&&delete ca[g]),h)4!==f.readyState&&f.abort();else{i=f.status;l=f.getAllResponseHeaders();m={};if((n=f.responseXML)&&n.documentElement)m.xml=n;m.text=f.responseText;try{j=f.statusText}catch(q){j=""}!i&&a.isLocal&&!a.crossDomain?i=m.text?200:404:1223===i&&(i=204)}}catch(r){h||e(-1,r)}m&&e(i,j,m,l)};!a.async||4===f.readyState?b():(g=++id,Ta&&(ca||(ca={},d(j).unload(Ta)),ca[g]=b),f.onreadystatechange=b)},abort:function(){b&&b(0,1)}}}});var Ca={},C,U,jd=/^(?:toggle|show|hide)$/,kd=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i, +za,fb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ja;d.fn.extend({show:function(a,b,c){if(a||0===a)return this.animate(T("show",3),a,b,c);for(var c=0,e=this.length;c=g.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();g.animatedProperties[this.prop]=!0;for(b in g.animatedProperties)!0!==g.animatedProperties[b]&&(e=!1);if(e){null!=g.overflow&& +!d.support.shrinkWrapBlocks&&d.each(["","X","Y"],function(a,b){f.style["overflow"+b]=g.overflow[a]});g.hide&&d(f).hide();if(g.hide||g.show)for(b in g.animatedProperties)d.style(f,b,g.orig[b]),d.removeData(f,"fxshow"+b,!0),d.removeData(f,"toggle"+b,!0);if(a=g.complete)g.complete=!1,a.call(f)}return!1}Infinity==g.duration?this.now=c:(a=c-this.startTime,this.state=a/g.duration,this.pos=d.easing[g.animatedProperties[this.prop]](this.state,a,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos); +this.update();return!0}};d.extend(d.fx,{tick:function(){for(var a,b=d.timers,c=0;cAre you sure you want to delete:
"+this.file_.getName()+"
"));this.createOkCancel_(function(){this.file_.remove()}.bind(this),null)}; -armadillo.Actor.prototype.performTVRename_=function(){(new armadillo.TVRenamer(this.file_)).run()};armadillo.Actor.prototype.performDownload_=function(){window.location="download?path="+this.file_.getFullPath()};armadillo.Actor.prototype.createOkCancel_=function(r,p){var K=$.createDom("button").text("OK");r&&K.click(r);var N=$.createDom("button").text("Cancel");p||(p=this.defaultCancelCallback_.bind(this));N.click(p);this.controlContainer_.append(K);this.controlContainer_.append(N)}; -armadillo.Actor.prototype.defaultCancelCallback_=function(){this.controlContainer_.empty()};$.namespace("armadillo.File");armadillo.File=function(r,p){this.name_=r;this.path_=p;this.highlight_="";this.isDirectory_=app.isDirectory(r);this.actor_=new armadillo.Actor(this)};armadillo.File.Highlight={NONE:"",SELECTED:"file-selected",ACTIVE:"file-active"};armadillo.File.prototype.getName=function(){return this.name_};armadillo.File.prototype.getParentPath=function(){return this.path_};armadillo.File.prototype.getFullPath=function(){return this.path_+this.name_}; -armadillo.File.prototype.isDirectory=function(){return this.isDirectory_};armadillo.File.prototype.getExtension=function(){if(this.isDirectory())return"";var r=this.getName().lastIndexOf(".");if(r==-1)return"";return this.getName().substring(r)};armadillo.File.prototype.setHighlight=function(){}; -armadillo.File.prototype.createDom=function(){if(!this.element_){this.element_=$.createDom("li");var r=this.isSpecial_()?this.clickHandler_:this.actorHandler_}this.element_.empty();this.title_=$.createDom("div");if(this.isDirectory()){this.link_=$.createDom("a");this.link_.text(this.name_);this.link_.click(this.clickHandler_.bind(this));this.title_.append(this.link_)}else this.title_.text(this.name_);this.element_.append(this.title_);this.title_.click(r.bind(this));return this.element_}; -armadillo.File.prototype.remove=function(){var r=this;app.sendRequest("remove",{path:this.path_+this.name_},function(p){if(p.error)app.showError(p.message);else{app.clearError();app.list(r.path_)}})};armadillo.File.prototype.move=function(r){app.sendRequest("move",{source:this.getFullPath(),target:r},function(p){if(p.error)app.showError(p.message);else{app.clearError();app.list(app.stripLastPathComponent(r))}})}; -armadillo.File.prototype.clickHandler_=function(r){this.isDirectory_&&app.navigate(this.name_);r.stopPropagation()};armadillo.File.prototype.actorHandler_=function(r){r.stopPropagation();if(!this.actor_.getElement()){r=this.actor_.createDom();r.hide();this.element_.append(r)}this.actor_.getElement().slideToggle("fast")};armadillo.File.prototype.isSpecial_=function(){return this.name_=="../"};$.namespace("armadillo.App");$(document).ready(function(){app=new armadillo.App});armadillo.App=function(){var r="/";if(window.location.hash)r=window.location.hash.substr(1);this.list(r);$(window).bind("hashchange",this.hashChanged_.bind(this));this.clearError(false);$("#mkdir").click(this.mkdirHandler_.bind(this));r="Armadillo "+armadillo.Version.MAJOR+"."+armadillo.Version.MINOR+" ("+armadillo.Version.BUILD+")";$("#footer").text(r)}; -armadillo.App.prototype.sendRequest=function(r,p,K){p.action=r;return $.ajax({url:"service",type:"POST",data:p,success:K})};armadillo.App.prototype.list=function(r){this.sendRequest("list",{path:r},function(p){if(p.error)app.showError(p.message);else{app.clearError(true);$("#pwd").text(r);app.currentPath_=r;window.location.hash=r;document.title=r+" - Armadillo";var K=$("#ls");K.empty();r!="/"&&r!=""&&p.unshift("../");$.each(p,function(N,Q){var ma=new armadillo.File(Q,r);K.append(ma.createDom())})}})}; -armadillo.App.prototype.navigate=function(r){r=="../"?this.list(this.stripLastPathComponent(this.currentPath_)):this.list(this.currentPath_+r)};armadillo.App.prototype.hashChanged_=function(){window.location.hash.length&&this.list(window.location.hash.substr(1))};armadillo.App.prototype.isDirectory=function(r){return r[r.length-1]=="/"};armadillo.App.prototype.getCurrentPath=function(){return this.currentPath_}; -armadillo.App.prototype.stripLastPathComponent=function(r){for(var p=r.length-1;p>=0;--p)if(r[p]=="/")if(p!=r.length-1)return r.substring(0,p+1);return"/"};armadillo.App.prototype.joinPath=function(){var r="",p=arguments.length-1;$.each(arguments,function(K,N){if(!(N=="/"&&K!=0)){r+=N;if(N[N.length-1]!="/"&&K!=p)r+="/"}});return r};armadillo.App.prototype.clearError=function(r){var p=$("#error");!p.text()||!r?p.hide():p.fadeOut(500,function(){p.text("")})};armadillo.App.prototype.showError=function(r){$("#error").text(r).fadeIn(1E3)}; -armadillo.App.prototype.mkdirHandler_=function(){var r=prompt("Name the new subdirectory","");r!=null&&r!=""&&this.sendRequest("mkdir",{path:this.joinPath(this.getCurrentPath(),r)},function(p){if(p.error)app.showError(p.message);else{app.clearError();app.list(app.getCurrentPath())}})}; +armadillo.PathControl.prototype.createDom_=function(j){var k=this.path_.split("/");k[0]="/";""==k[k.length-1]&&k.splice(-1);var s="";$.each(k,function(k,x){j.append(this.createComponentNode_(s,x));s=app.joinPath(s,x)}.bind(this));this.editableLastComponent_?(this.nameControl_=$.createDom("input"),this.nameControl_.attr({type:"text",name:"pathName",value:this.name_}),this.nameControl_.bind("change keydown",this.nameChanged_.bind(this))):this.nameControl_=$.createDom("span").text(this.name_);j.append(this.nameControl_)}; +armadillo.PathControl.prototype.enterDocument=function(){armadillo.PathControl.superClass_.enterDocument.call(this);this.nameControl_.getElement().focus()};armadillo.PathControl.prototype.createComponentNode_=function(j,k){var s=$.createDom("select");this.fetchMenuContents_(j,k,s);var u=$.createDom("option");u.text("Loading...").attr("selected","selected");s.append(u);s.change(this.componentChanged_.bind(this));return s}; +armadillo.PathControl.prototype.fetchMenuContents_=function(j,k,s){var u=this.path_;app.sendRequest("list",{path:app.joinPath(j,k)},function(x){x.error?app.showError(x.message):(x.unshift("/"),s.empty(),$.each(x,function(x,E){if(app.isDirectory(E)){var L=$.createDom("option"),G=app.joinPath(j,k,E);L.val(G).text(E);s.append(L);u.substr(0,G.length)==G&&L.attr("selected","selected")}}))})}; +armadillo.PathControl.prototype.componentChanged_=function(j){this.path_=$(j.target).val();this.element_.empty();this.createDom_(this.element_)};armadillo.PathControl.prototype.nameChanged_=function(j){console.log(j);this.name_=j.target.value;j.stopPropagation();return!0};$.namespace("armadillo.Actor");armadillo.Actor=function(j){this.file_=j;this.controlContainer_=this.element_=null};armadillo.Actor.prototype.getElement=function(){return this.element_};armadillo.Actor.options_={OPEN:"open",MOVE:"move",DELETE:"delete",TV_RENAME:"tv-rename",DOWNLOAD:"download"};armadillo.Actor.optionStrings_={open:"Open",move:"Move","delete":"Delete","tv-rename":"Rename TV Episode",download:"Download"}; +armadillo.Actor.prototype.createDom=function(){this.element_=$.createDom("div").addClass("actor").empty();for(var j in armadillo.Actor.options_){var k=this.createTile_(j);k&&this.element_.append(k)}this.controlContainer_=$.createDom("div");this.element_.append(this.controlContainer_);return this.element_}; +armadillo.Actor.prototype.createTile_=function(j){var j=armadillo.Actor.options_[j],k=$.createDom("span").addClass("title");k.text(armadillo.Actor.optionStrings_[j]);var s=$.createDom("div").addClass("tile");s.append(k);if(j==armadillo.Actor.options_.OPEN&&!this.file_.isDirectory())return null;s.click(this.tileClickHandler_.bind(this,j));return s}; +armadillo.Actor.prototype.tileClickHandler_=function(j){this.controlContainer_.empty();this.controlContainer_.show();j==armadillo.Actor.options_.OPEN?app.navigate(this.file_.getName()):j==armadillo.Actor.options_.MOVE?this.performMove_():j==armadillo.Actor.options_.DELETE?this.performDelete_():j==armadillo.Actor.options_.TV_RENAME?this.performTVRename_():j==armadillo.Actor.options_.DOWNLOAD&&this.performDownload_()}; +armadillo.Actor.prototype.performMove_=function(){var j=new armadillo.PathControl(this.file_.getFullPath(),!0);this.controlContainer_.append(j.createDom());this.createOkCancel_(function(){var k=j.getPath();this.file_.move(k)}.bind(this),null)};armadillo.Actor.prototype.performDelete_=function(){var j=$("
Are you sure you want to delete:
"+this.file_.getName()+"
");this.controlContainer_.append(j);this.createOkCancel_(function(){this.file_.remove()}.bind(this),null)}; +armadillo.Actor.prototype.performTVRename_=function(){(new armadillo.TVRenamer(this.file_)).run()};armadillo.Actor.prototype.performDownload_=function(){window.location="download?path="+this.file_.getFullPath()};armadillo.Actor.prototype.createOkCancel_=function(j,k){var s=$.createDom("button").text("OK");j&&s.click(j);var u=$.createDom("button").text("Cancel");k||(k=this.defaultCancelCallback_.bind(this));u.click(k);this.controlContainer_.append(s);this.controlContainer_.append(u)}; +armadillo.Actor.prototype.defaultCancelCallback_=function(){this.controlContainer_.empty()};$.namespace("armadillo.File");armadillo.File=function(j,k){this.name_=j;this.path_=k;this.highlight_="";this.isDirectory_=app.isDirectory(j);this.actor_=new armadillo.Actor(this)};armadillo.File.Highlight={NONE:"",SELECTED:"file-selected",ACTIVE:"file-active"};armadillo.File.prototype.getName=function(){return this.name_};armadillo.File.prototype.getParentPath=function(){return this.path_};armadillo.File.prototype.getFullPath=function(){return this.path_+this.name_}; +armadillo.File.prototype.isDirectory=function(){return this.isDirectory_};armadillo.File.prototype.getExtension=function(){if(this.isDirectory())return"";var j=this.getName().lastIndexOf(".");return-1==j?"":this.getName().substring(j)};armadillo.File.prototype.setHighlight=function(){}; +armadillo.File.prototype.createDom=function(){if(!this.element_){this.element_=$.createDom("li");var j=this.isSpecial_()?this.clickHandler_:this.actorHandler_}this.element_.empty();this.title_=$.createDom("div");this.isDirectory()?(this.link_=$.createDom("a"),this.link_.text(this.name_),this.link_.click(this.clickHandler_.bind(this)),this.title_.append(this.link_)):this.title_.text(this.name_);this.element_.append(this.title_);this.title_.click(j.bind(this));return this.element_}; +armadillo.File.prototype.remove=function(){var j=this;app.sendRequest("remove",{path:this.path_+this.name_},function(k){k.error?app.showError(k.message):(app.clearError(),app.list(j.path_))})};armadillo.File.prototype.move=function(j){app.sendRequest("move",{source:this.getFullPath(),target:j},function(k){k.error?app.showError(k.message):(app.clearError(),app.list(app.stripLastPathComponent(j)))})};armadillo.File.prototype.clickHandler_=function(j){this.isDirectory_&&app.navigate(this.name_);j.stopPropagation()}; +armadillo.File.prototype.actorHandler_=function(j){j.stopPropagation();this.actor_.getElement()||(j=this.actor_.createDom(),j.hide(),this.element_.append(j));this.actor_.getElement().slideToggle("fast")};armadillo.File.prototype.isSpecial_=function(){return"../"==this.name_};$.namespace("armadillo.App");$(document).ready(function(){app=new armadillo.App});armadillo.App=function(){var j="/";window.location.hash&&(j=window.location.hash.substr(1));this.list(j);$(window).bind("hashchange",this.hashChanged_.bind(this));this.clearError(!1);$("#mkdir").click(this.mkdirHandler_.bind(this));j="Armadillo "+armadillo.Version.MAJOR+"."+armadillo.Version.MINOR+" ("+armadillo.Version.BUILD+")";$("#footer").text(j)}; +armadillo.App.prototype.sendRequest=function(j,k,s){k.action=j;return $.ajax({url:"service",type:"POST",data:k,success:s})};armadillo.App.prototype.list=function(j){this.sendRequest("list",{path:j},function(k){if(k.error)app.showError(k.message);else{app.clearError(!0);$("#pwd").text(j);app.currentPath_=j;window.location.hash=j;document.title=j+" - Armadillo";var s=$("#ls");s.empty();"/"!=j&&""!=j&&k.unshift("../");$.each(k,function(k,x){var I=new armadillo.File(x,j);s.append(I.createDom())})}})}; +armadillo.App.prototype.navigate=function(j){"../"==j?this.list(this.stripLastPathComponent(this.currentPath_)):this.list(this.currentPath_+j)};armadillo.App.prototype.hashChanged_=function(){window.location.hash.length&&this.list(window.location.hash.substr(1))};armadillo.App.prototype.isDirectory=function(j){return"/"==j[j.length-1]};armadillo.App.prototype.getCurrentPath=function(){return this.currentPath_}; +armadillo.App.prototype.stripLastPathComponent=function(j){for(var k=j.length-1;0<=k;--k)if("/"==j[k]&&k!=j.length-1)return j.substring(0,k+1);return"/"};armadillo.App.prototype.joinPath=function(){var j="",k=arguments.length-1;$.each(arguments,function(s,u){"/"==u&&0!=s||(j+=u,"/"!=u[u.length-1]&&s!=k&&(j+="/"))});return j};armadillo.App.prototype.clearError=function(j){var k=$("#error");!k.text()||!j?k.hide():k.fadeOut(500,function(){k.text("")})};armadillo.App.prototype.showError=function(j){$("#error").text(j).fadeIn(1E3)}; +armadillo.App.prototype.mkdirHandler_=function(){var j=prompt("Name the new subdirectory","");null!=j&&""!=j&&(j=this.joinPath(this.getCurrentPath(),j),this.sendRequest("mkdir",{path:j},function(j){j.error?app.showError(j.message):(app.clearError(),app.list(app.getCurrentPath()))}))}; diff --git a/frontend/version.js b/frontend/version.js index 2330e49..0c4db10 100644 --- a/frontend/version.js +++ b/frontend/version.js @@ -3,6 +3,6 @@ $.namespace('armadillo.Version'); armadillo.Version.MAJOR = 0; -armadillo.Version.MINOR = 8; -armadillo.Version.BUILD = 643.0; -armadillo.Version.STAMP = 1349547115; +armadillo.Version.MINOR = 9; +armadillo.Version.BUILD = 656.0; +armadillo.Version.STAMP = 1349621213; -- 2.22.5