diff --git a/.htaccess b/.htaccess index e63c16861..9e2958df6 100644 --- a/.htaccess +++ b/.htaccess @@ -10,6 +10,13 @@ Options -Indexes # php_value upload_max_filesize 20M # php_value max_file_uploads 100 # +# +# php_value max_execution_time 200 +# php_value post_max_size 200M +# php_value upload_max_size 200M +# php_value upload_max_filesize 20M +# php_value max_file_uploads 100 +# # --- # Uncomment these lines when you want to allow access to the Lychee API from different origins diff --git a/LICENSE b/LICENSE index 6629516b5..ba5d1d5cd 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 Tobias Reich (http://electerious.com/) +Copyright (c) 2017 Tobias Reich Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/dist/main.js b/dist/main.js index f9dfc5940..7d0a5dbd1 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,7 +1,7 @@ -function _taggedTemplateLiteral(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function gup(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t="[\\?&]"+e+"=([^&#]*)",n=new RegExp(t),o=n.exec(window.location.href);return null===o?"":o[1]}!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||te;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function o(e){var t=!!e&&"length"in e&&e.length,n=fe.type(e);return"function"!==n&&!fe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t,n){return fe.isFunction(t)?fe.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?fe.grep(e,function(e){return e===t!==n}):"string"!=typeof t?fe.grep(e,function(e){return re.call(t,e)>-1!==n}):Te.test(t)?fe.filter(t,e,n):(t=fe.filter(t,e),fe.grep(e,function(e){return re.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function r(e){var t={};return fe.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function l(e){return e}function s(e){throw e}function c(e,t,n){var o;try{e&&fe.isFunction(o=e.promise)?o.call(e).done(t).fail(n):e&&fe.isFunction(o=e.then)?o.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}function u(){te.removeEventListener("DOMContentLoaded",u),e.removeEventListener("load",u),fe.ready()}function d(){this.expando=fe.expando+d.uid++}function p(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ne.test(e)?JSON.parse(e):e)}function h(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(qe,"-$&").toLowerCase(),n=e.getAttribute(o),"string"==typeof n){try{n=p(n)}catch(e){}Oe.set(e,t,n)}else n=void 0;return n}function f(e,t,n,o){var i,a=1,r=20,l=o?function(){return o.cur()}:function(){return fe.css(e,t,"")},s=l(),c=n&&n[3]||(fe.cssNumber[t]?"":"px"),u=(fe.cssNumber[t]||"px"!==c&&+s)&&Re.exec(fe.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+s||1;do a=a||".5",u/=a,fe.style(e,t,u+c);while(a!==(a=l()/s)&&1!==a&&--r)}return n&&(u=+u||+s||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],o&&(o.unit=c,o.start=u,o.end=i)),i}function b(e){var t,n=e.ownerDocument,o=e.nodeName,i=We[o];return i?i:(t=n.body.appendChild(n.createElement(o)),i=fe.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),We[o]=i,i)}function m(e,t){for(var n,o,i=[],a=0,r=e.length;a-1)i&&i.push(a);else if(c=fe.contains(a.ownerDocument,a),r=g(d.appendChild(a),"script"),c&&v(r),n)for(u=0;a=r[u++];)Ye.test(a.type||"")&&n.push(a);return d}function w(){return!0}function x(){return!1}function j(){try{return te.activeElement}catch(e){}}function _(e,t,n,o,i,a){var r,l;if("object"==typeof t){"string"!=typeof n&&(o=o||n,n=void 0);for(l in t)_(e,l,n,o,t[l],a);return e}if(null==o&&null==i?(i=n,o=n=void 0):null==i&&("string"==typeof n?(i=o,o=void 0):(i=o,o=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===a&&(r=i,i=function(e){return fe().off(e),r.apply(this,arguments)},i.guid=r.guid||(r.guid=fe.guid++)),e.each(function(){fe.event.add(this,t,i,o,n)})}function T(e,t){return fe.nodeName(e,"table")&&fe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function M(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function k(e){var t=ot.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function C(e,t){var n,o,i,a,r,l,s,c;if(1===t.nodeType){if(Ie.hasData(e)&&(a=Ie.access(e),r=Ie.set(t,a),c=a.events)){delete r.handle,r.events={};for(i in c)for(n=0,o=c[i].length;n1&&"string"==typeof f&&!pe.checkClone&&nt.test(f))return e.each(function(n){var a=e.eq(n);b&&(t[0]=f.call(this,n,a.html())),D(a,t,o,i)});if(p&&(a=y(t,e[0].ownerDocument,!1,e,i),r=a.firstChild,1===a.childNodes.length&&(a=r),r||i)){for(l=fe.map(g(a,"script"),M),s=l.length;d=0&&n_.cacheLength&&delete e[t.shift()],e[n+" "]=o}var t=[];return e}function o(e){return e[R]=!0,e}function i(e){var t=L.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),o=n.length;o--;)_.attrHandle[n[o]]=t}function r(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function l(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function s(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Te(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function u(e){return o(function(t){return t=+t,o(function(n,o){for(var i,a=e([],n.length,t),r=a.length;r--;)n[i=a[r]]&&(n[i]=!(o[i]=n[i]))})})}function d(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function p(){}function h(e){for(var t=0,n=e.length,o="";t1?function(t,n,o){for(var i=e.length;i--;)if(!e[i](t,n,o))return!1;return!0}:e[0]}function m(e,n,o){for(var i=0,a=n.length;i-1&&(o[c]=!(r[c]=d))}}else y=g(y===r?y.splice(f,y.length):y),a?a(null,r,y,s):Z.apply(r,y)})}function y(e){for(var t,n,o,i=e.length,a=_.relative[e[0].type],r=a||_.relative[" "],l=a?1:0,s=f(function(e){return e===t},r,!0),c=f(function(e){return ee(t,e)>-1},r,!0),u=[function(e,n,o){var i=!a&&(o||n!==D)||((t=n).nodeType?s(e,n,o):c(e,n,o));return t=null,i}];l1&&b(u),l>1&&h(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(le,"$1"),n,l0,a=e.length>0,r=function(o,r,l,s,c){var u,d,p,h=0,f="0",b=o&&[],m=[],v=D,y=o||a&&_.find.TAG("*",c),w=U+=null==v?1:Math.random()||.1,x=y.length;for(c&&(D=r===L||r||c);f!==x&&null!=(u=y[f]);f++){if(a&&u){for(d=0,r||u.ownerDocument===L||(S(u),l=!I);p=e[d++];)if(p(u,r||L,l)){s.push(u);break}c&&(U=w)}i&&((u=!p&&u)&&h--,o&&b.push(u))}if(h+=f,i&&f!==h){for(d=0;p=n[d++];)p(b,m,r,l);if(o){if(h>0)for(;f--;)b[f]||m[f]||(m[f]=G.call(s));m=g(m)}Z.apply(s,m),c&&!o&&m.length>0&&h+n.length>1&&t.uniqueSort(s)}return c&&(U=w,D=v),b};return i?o(r):r}var x,j,_,T,M,k,C,$,D,A,E,S,L,P,I,O,N,q,F,R="sizzle"+1*new Date,H=e.document,U=0,B=0,W=n(),X=n(),z=n(),Y=function(e,t){return e===t&&(E=!0),0},K={}.hasOwnProperty,V=[],G=V.pop,Q=V.push,Z=V.push,J=V.slice,ee=function(e,t){for(var n=0,o=e.length;n+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(ae),pe=new RegExp("^"+oe+"$"),he={ID:new RegExp("^#("+oe+")"),CLASS:new RegExp("^\\.("+oe+")"),TAG:new RegExp("^("+oe+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,be=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var o="0x"+t-65536;return o!==o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,je=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},_e=function(){S()},Te=f(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{Z.apply(V=J.call(H.childNodes),H.childNodes),V[H.childNodes.length].nodeType}catch(e){Z={apply:V.length?function(e,t){Q.apply(e,J.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}j=t.support={},M=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},S=t.setDocument=function(e){var t,n,o=e?e.ownerDocument||e:H;return o!==L&&9===o.nodeType&&o.documentElement?(L=o,P=L.documentElement,I=!M(L),H!==L&&(n=L.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",_e,!1):n.attachEvent&&n.attachEvent("onunload",_e)),j.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),j.getElementsByTagName=i(function(e){return e.appendChild(L.createComment("")),!e.getElementsByTagName("*").length}),j.getElementsByClassName=me.test(L.getElementsByClassName),j.getById=i(function(e){return P.appendChild(e).id=R,!L.getElementsByName||!L.getElementsByName(R).length}),j.getById?(_.filter.ID=function(e){var t=e.replace(ye,we);return function(e){return e.getAttribute("id")===t}},_.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&I){var n=t.getElementById(e);return n?[n]:[]}}):(_.filter.ID=function(e){var t=e.replace(ye,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},_.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&I){var n,o,i,a=t.getElementById(e);if(a){if(n=a.getAttributeNode("id"),n&&n.value===e)return[a];for(i=t.getElementsByName(e),o=0;a=i[o++];)if(n=a.getAttributeNode("id"),n&&n.value===e)return[a]}return[]}}),_.find.TAG=j.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):j.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&o.push(n);return o}return a},_.find.CLASS=j.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&I)return t.getElementsByClassName(e)},N=[],O=[],(j.qsa=me.test(L.querySelectorAll))&&(i(function(e){P.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+R+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+R+"+*").length||O.push(".#.+[+~]")}),i(function(e){e.innerHTML="";var t=L.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&O.push(":enabled",":disabled"),P.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")})),(j.matchesSelector=me.test(q=P.matches||P.webkitMatchesSelector||P.mozMatchesSelector||P.oMatchesSelector||P.msMatchesSelector))&&i(function(e){j.disconnectedMatch=q.call(e,"*"),q.call(e,"[s!='']:x"),N.push("!=",ae)}),O=O.length&&new RegExp(O.join("|")),N=N.length&&new RegExp(N.join("|")),t=me.test(P.compareDocumentPosition),F=t||me.test(P.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return E=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!j.sortDetached&&t.compareDocumentPosition(e)===n?e===L||e.ownerDocument===H&&F(H,e)?-1:t===L||t.ownerDocument===H&&F(H,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return E=!0,0;var n,o=0,i=e.parentNode,a=t.parentNode,l=[e],s=[t];if(!i||!a)return e===L?-1:t===L?1:i?-1:a?1:A?ee(A,e)-ee(A,t):0;if(i===a)return r(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;l[o]===s[o];)o++;return o?r(l[o],s[o]):l[o]===H?-1:s[o]===H?1:0},L):L},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==L&&S(e),n=n.replace(ue,"='$1']"),j.matchesSelector&&I&&!z[n+" "]&&(!N||!N.test(n))&&(!O||!O.test(n)))try{var o=q.call(e,n);if(o||j.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){}return t(n,L,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==L&&S(e),F(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==L&&S(e);var n=_.attrHandle[t.toLowerCase()],o=n&&K.call(_.attrHandle,t.toLowerCase())?n(e,t,!I):void 0;return void 0!==o?o:j.attributes||!I?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},t.escape=function(e){return(e+"").replace(xe,je)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],o=0,i=0;if(E=!j.detectDuplicates,A=!j.sortStable&&e.slice(0),e.sort(Y),E){for(;t=e[i++];)t===e[i]&&(o=n.push(i));for(;o--;)e.splice(n[o],1)}return A=null,e},T=t.getText=function(e){var t,n="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=T(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)n+=T(t);return n},_=t.selectors={cacheLength:50,createPseudo:o,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,we),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=W[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&W(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,o){return function(i){var a=t.attr(i,e);return null==a?"!="===n:!n||(a+="","="===n?a===o:"!="===n?a!==o:"^="===n?o&&0===a.indexOf(o):"*="===n?o&&a.indexOf(o)>-1:"$="===n?o&&a.slice(-o.length)===o:"~="===n?(" "+a.replace(re," ")+" ").indexOf(o)>-1:"|="===n&&(a===o||a.slice(0,o.length+1)===o+"-"))}},CHILD:function(e,t,n,o,i){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),l="of-type"===t;return 1===o&&0===i?function(e){return!!e.parentNode}:function(t,n,s){var c,u,d,p,h,f,b=a!==r?"nextSibling":"previousSibling",m=t.parentNode,g=l&&t.nodeName.toLowerCase(),v=!s&&!l,y=!1;if(m){if(a){for(;b;){for(p=t;p=p[b];)if(l?p.nodeName.toLowerCase()===g:1===p.nodeType)return!1;f=b="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&v){for(p=m,d=p[R]||(p[R]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),c=u[e]||[],h=c[0]===U&&c[1],y=h&&c[2],p=h&&m.childNodes[h];p=++h&&p&&p[b]||(y=h=0)||f.pop();)if(1===p.nodeType&&++y&&p===t){u[e]=[U,h,y];break}}else if(v&&(p=t,d=p[R]||(p[R]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),c=u[e]||[],h=c[0]===U&&c[1],y=h),y===!1)for(;(p=++h&&p&&p[b]||(y=h=0)||f.pop())&&((l?p.nodeName.toLowerCase()!==g:1!==p.nodeType)||!++y||(v&&(d=p[R]||(p[R]={}),u=d[p.uniqueID]||(d[p.uniqueID]={}),u[e]=[U,y]),p!==t)););return y-=i,y===o||y%o===0&&y/o>=0}}},PSEUDO:function(e,n){var i,a=_.pseudos[e]||_.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[R]?a(n):a.length>1?(i=[e,e,"",n],_.setFilters.hasOwnProperty(e.toLowerCase())?o(function(e,t){for(var o,i=a(e,n),r=i.length;r--;)o=ee(e,i[r]),e[o]=!(t[o]=i[r])}):function(e){return a(e,0,i)}):a}},pseudos:{not:o(function(e){var t=[],n=[],i=C(e.replace(le,"$1"));return i[R]?o(function(e,t,n,o){for(var a,r=i(e,null,o,[]),l=e.length;l--;)(a=r[l])&&(e[l]=!(t[l]=a))}):function(e,o,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}}),has:o(function(e){return function(n){return t(e,n).length>0}}),contains:o(function(e){return e=e.replace(ye,we),function(t){return(t.textContent||t.innerText||T(t)).indexOf(e)>-1}}),lang:o(function(e){ -return pe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,we).toLowerCase(),function(t){var n;do if(n=I?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===P},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!_.pseudos.empty(e)},header:function(e){return be.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[n<0?n+t:n]}),even:u(function(e,t){for(var n=0;n=0;)e.push(o);return e}),gt:u(function(e,t,n){for(var o=n<0?n+t:n;++o2&&"ID"===(r=a[0]).type&&9===t.nodeType&&I&&_.relative[a[1].type]){if(t=(_.find.ID(r.matches[0].replace(ye,we),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=he.needsContext.test(e)?0:a.length;i--&&(r=a[i],!_.relative[l=r.type]);)if((s=_.find[l])&&(o=s(r.matches[0].replace(ye,we),ve.test(a[0].type)&&d(t.parentNode)||t))){if(a.splice(i,1),e=o.length&&h(a),!e)return Z.apply(n,o),n;break}}return(c||C(e,u))(o,t,!I,n,!t||ve.test(e)&&d(t.parentNode)||t),n},j.sortStable=R.split("").sort(Y).join("")===R,j.detectDuplicates=!!E,S(),j.sortDetached=i(function(e){return 1&e.compareDocumentPosition(L.createElement("fieldset"))}),i(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),j.attributes&&i(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||a(te,function(e,t,n){var o;if(!n)return e[t]===!0?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),t}(e);fe.find=ye,fe.expr=ye.selectors,fe.expr[":"]=fe.expr.pseudos,fe.uniqueSort=fe.unique=ye.uniqueSort,fe.text=ye.getText,fe.isXMLDoc=ye.isXML,fe.contains=ye.contains,fe.escapeSelector=ye.escape;var we=function(e,t,n){for(var o=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&fe(e).is(n))break;o.push(e)}return o},xe=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},je=fe.expr.match.needsContext,_e=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Te=/^.[^:#\[\.,]*$/;fe.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?fe.find.matchesSelector(o,e)?[o]:[]:fe.find.matches(e,fe.grep(t,function(e){return 1===e.nodeType}))},fe.fn.extend({find:function(e){var t,n,o=this.length,i=this;if("string"!=typeof e)return this.pushStack(fe(e).filter(function(){for(t=0;t1?fe.uniqueSort(n):n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&je.test(e)?fe(e):e||[],!1).length}});var Me,ke=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ce=fe.fn.init=function(e,t,n){var o,i;if(!e)return this;if(n=n||Me,"string"==typeof e){if(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ke.exec(e),!o||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof fe?t[0]:t,fe.merge(this,fe.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:te,!0)),_e.test(o[1])&&fe.isPlainObject(t))for(o in t)fe.isFunction(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return i=te.getElementById(o[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):fe.isFunction(e)?void 0!==n.ready?n.ready(e):e(fe):fe.makeArray(e,this)};Ce.prototype=fe.fn,Me=fe(te);var $e=/^(?:parents|prev(?:Until|All))/,De={children:!0,contents:!0,next:!0,prev:!0};fe.fn.extend({has:function(e){var t=fe(e,this),n=t.length;return this.filter(function(){for(var e=0;e-1:1===n.nodeType&&fe.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?fe.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?re.call(fe(e),this[0]):re.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(fe.uniqueSort(fe.merge(this.get(),fe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),fe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return we(e,"parentNode")},parentsUntil:function(e,t,n){return we(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return we(e,"nextSibling")},prevAll:function(e){return we(e,"previousSibling")},nextUntil:function(e,t,n){return we(e,"nextSibling",n)},prevUntil:function(e,t,n){return we(e,"previousSibling",n)},siblings:function(e){return xe((e.parentNode||{}).firstChild,e)},children:function(e){return xe(e.firstChild)},contents:function(e){return e.contentDocument||fe.merge([],e.childNodes)}},function(e,t){fe.fn[e]=function(n,o){var i=fe.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(i=fe.filter(o,i)),this.length>1&&(De[e]||fe.uniqueSort(i),$e.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/[^\x20\t\r\n\f]+/g;fe.Callbacks=function(e){e="string"==typeof e?r(e):fe.extend({},e);var t,n,o,i,a=[],l=[],s=-1,c=function(){for(i=e.once,o=t=!0;l.length;s=-1)for(n=l.shift();++s-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?fe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=l=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=l=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],l.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},fe.extend({Deferred:function(t){var n=[["notify","progress",fe.Callbacks("memory"),fe.Callbacks("memory"),2],["resolve","done",fe.Callbacks("once memory"),fe.Callbacks("once memory"),0,"resolved"],["reject","fail",fe.Callbacks("once memory"),fe.Callbacks("once memory"),1,"rejected"]],o="pending",i={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return fe.Deferred(function(t){fe.each(n,function(n,o){var i=fe.isFunction(e[o[4]])&&e[o[4]];a[o[1]](function(){var e=i&&i.apply(this,arguments);e&&fe.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[o[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,o,i){function a(t,n,o,i){return function(){var c=this,u=arguments,d=function(){var e,d;if(!(t=r&&(o!==s&&(c=void 0,u=[e]),n.rejectWith(c,u))}};t?p():(fe.Deferred.getStackHook&&(p.stackTrace=fe.Deferred.getStackHook()),e.setTimeout(p))}}var r=0;return fe.Deferred(function(e){n[0][3].add(a(0,e,fe.isFunction(i)?i:l,e.notifyWith)),n[1][3].add(a(0,e,fe.isFunction(t)?t:l)),n[2][3].add(a(0,e,fe.isFunction(o)?o:s))}).promise()},promise:function(e){return null!=e?fe.extend(e,i):i}},a={};return fe.each(n,function(e,t){var r=t[2],l=t[5];i[t[1]]=r.add,l&&r.add(function(){o=l},n[3-e][2].disable,n[0][2].lock),r.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=r.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,o=Array(n),i=oe.call(arguments),a=fe.Deferred(),r=function(e){return function(n){o[e]=this,i[e]=arguments.length>1?oe.call(arguments):n,--t||a.resolveWith(o,i)}};if(t<=1&&(c(e,a.done(r(n)).resolve,a.reject),"pending"===a.state()||fe.isFunction(i[n]&&i[n].then)))return a.then();for(;n--;)c(i[n],r(n),a.reject);return a.promise()}});var Ee=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;fe.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Ee.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},fe.readyException=function(t){e.setTimeout(function(){throw t})};var Se=fe.Deferred();fe.fn.ready=function(e){return Se.then(e).catch(function(e){fe.readyException(e)}),this},fe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?fe.readyWait++:fe.ready(!0)},ready:function(e){(e===!0?--fe.readyWait:fe.isReady)||(fe.isReady=!0,e!==!0&&--fe.readyWait>0||Se.resolveWith(te,[fe]))}}),fe.ready.then=Se.then,"complete"===te.readyState||"loading"!==te.readyState&&!te.documentElement.doScroll?e.setTimeout(fe.ready):(te.addEventListener("DOMContentLoaded",u),e.addEventListener("load",u));var Le=function(e,t,n,o,i,a,r){var l=0,s=e.length,c=null==n;if("object"===fe.type(n)){i=!0;for(l in n)Le(e,t,l,n[l],!0,a,r)}else if(void 0!==o&&(i=!0,fe.isFunction(o)||(r=!0),c&&(r?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(fe(e),n)})),t))for(;l1,null,!0)},removeData:function(e){return this.each(function(){Oe.remove(this,e)})}}),fe.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=Ie.get(e,t),n&&(!o||fe.isArray(n)?o=Ie.access(e,t,fe.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=fe.queue(e,t),o=n.length,i=n.shift(),a=fe._queueHooks(e,t),r=function(){fe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),o--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,r,a)),!o&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Ie.get(e,n)||Ie.access(e,n,{empty:fe.Callbacks("once memory").add(function(){Ie.remove(e,[t+"queue",n])})})}}),fe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length\x20\t\r\n\f]+)/i,Ye=/^$|\/(?:java|ecma)script/i,Ke={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};Ke.optgroup=Ke.option,Ke.tbody=Ke.tfoot=Ke.colgroup=Ke.caption=Ke.thead,Ke.th=Ke.td;var Ve=/<|&#?\w+;/;!function(){var e=te.createDocumentFragment(),t=e.appendChild(te.createElement("div")),n=te.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),pe.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",pe.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ge=te.documentElement,Qe=/^key/,Ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Je=/^([^.]*)(?:\.(.+)|)/;fe.event={global:{},add:function(e,t,n,o,i){var a,r,l,s,c,u,d,p,h,f,b,m=Ie.get(e);if(m)for(n.handler&&(a=n,n=a.handler,i=a.selector),i&&fe.find.matchesSelector(Ge,i),n.guid||(n.guid=fe.guid++),(s=m.events)||(s=m.events={}),(r=m.handle)||(r=m.handle=function(t){return"undefined"!=typeof fe&&fe.event.triggered!==t.type?fe.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)l=Je.exec(t[c])||[],h=b=l[1],f=(l[2]||"").split(".").sort(),h&&(d=fe.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=fe.event.special[h]||{},u=fe.extend({type:h,origType:b,data:o,handler:n,guid:n.guid,selector:i,needsContext:i&&fe.expr.match.needsContext.test(i),namespace:f.join(".")},a),(p=s[h])||(p=s[h]=[],p.delegateCount=0,d.setup&&d.setup.call(e,o,f,r)!==!1||e.addEventListener&&e.addEventListener(h,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),fe.event.global[h]=!0)},remove:function(e,t,n,o,i){var a,r,l,s,c,u,d,p,h,f,b,m=Ie.hasData(e)&&Ie.get(e);if(m&&(s=m.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(l=Je.exec(t[c])||[],h=b=l[1],f=(l[2]||"").split(".").sort(),h){for(d=fe.event.special[h]||{},h=(o?d.delegateType:d.bindType)||h,p=s[h]||[],l=l[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=p.length;a--;)u=p[a],!i&&b!==u.origType||n&&n.guid!==u.guid||l&&!l.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(p.splice(a,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));r&&!p.length&&(d.teardown&&d.teardown.call(e,f,m.handle)!==!1||fe.removeEvent(e,h,m.handle),delete s[h])}else for(h in s)fe.event.remove(e,h+t[c],n,o,!0);fe.isEmptyObject(s)&&Ie.remove(e,"handle events")}},dispatch:function(e){var t,n,o,i,a,r,l=fe.event.fix(e),s=new Array(arguments.length),c=(Ie.get(this,"events")||{})[l.type]||[],u=fe.event.special[l.type]||{};for(s[0]=l,t=1;t=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||c.disabled!==!0)){for(a=[],r={},n=0;n-1:fe.find(i,this,null,[c]).length),r[i]&&a.push(o);a.length&&l.push({elem:c,handlers:a})}return c=this,s\x20\t\r\n\f]*)[^>]*)\/>/gi,tt=/\s*$/g;fe.extend({htmlPrefilter:function(e){return e.replace(et,"<$1>")},clone:function(e,t,n){var o,i,a,r,l=e.cloneNode(!0),s=fe.contains(e.ownerDocument,e);if(!(pe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||fe.isXMLDoc(e)))for(r=g(l),a=g(e),o=0,i=a.length;o0&&v(r,!s&&g(e,"script")),l},cleanData:function(e){for(var t,n,o,i=fe.event.special,a=0;void 0!==(n=e[a]);a++)if(Pe(n)){if(t=n[Ie.expando]){if(t.events)for(o in t.events)i[o]?fe.event.remove(n,o):fe.removeEvent(n,o,t.handle);n[Ie.expando]=void 0}n[Oe.expando]&&(n[Oe.expando]=void 0)}}}),fe.fn.extend({detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Le(this,function(e){return void 0===e?fe.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.appendChild(e)}})},prepend:function(){return D(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return D(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(fe.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return fe.clone(this,e,t)})},html:function(e){return Le(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!tt.test(e)&&!Ke[(ze.exec(e)||["",""])[1].toLowerCase()]){e=fe.htmlPrefilter(e);try{for(;n1)}}),fe.Tween=N,N.prototype={constructor:N,init:function(e,t,n,o,i,a){this.elem=e,this.prop=n,this.easing=i||fe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=a||(fe.cssNumber[n]?"":"px")},cur:function(){var e=N.propHooks[this.prop];return e&&e.get?e.get(this):N.propHooks._default.get(this)},run:function(e){var t,n=N.propHooks[this.prop];return this.options.duration?this.pos=t=fe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):N.propHooks._default.set(this),this}},N.prototype.init.prototype=N.prototype,N.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=fe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){fe.fx.step[e.prop]?fe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[fe.cssProps[e.prop]]&&!fe.cssHooks[e.prop]?e.elem[e.prop]=e.now:fe.style(e.elem,e.prop,e.now+e.unit)}}},N.propHooks.scrollTop=N.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},fe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},fe.fx=N.prototype.init,fe.fx.step={};var ht,ft,bt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;fe.Animation=fe.extend(W,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return f(n.elem,e,Re.exec(t),n),n}]},tweener:function(e,t){fe.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,o=0,i=e.length;o1)},removeAttr:function(e){return this.each(function(){fe.removeAttr(this,e)})}}),fe.extend({attr:function(e,t,n){var o,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof e.getAttribute?fe.prop(e,t,n):(1===a&&fe.isXMLDoc(e)||(i=fe.attrHooks[t.toLowerCase()]||(fe.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void fe.removeAttr(e,t):i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(o=i.get(e,t))?o:(o=fe.find.attr(e,t),null==o?void 0:o))},attrHooks:{type:{set:function(e,t){if(!pe.radioValue&&"radio"===t&&fe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[o++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return t===!1?fe.removeAttr(e,n):e.setAttribute(n,n),n}},fe.each(fe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=vt[t]||fe.find.attr;vt[t]=function(e,t,o){var i,a,r=t.toLowerCase();return o||(a=vt[r],vt[r]=i,i=null!=n(e,t,o)?r:null,vt[r]=a),i}});var yt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;fe.fn.extend({prop:function(e,t){return Le(this,fe.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[fe.propFix[e]||e]})}}),fe.extend({prop:function(e,t,n){var o,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&fe.isXMLDoc(e)||(t=fe.propFix[t]||t,i=fe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(o=i.set(e,n,t))?o:e[t]=n:i&&"get"in i&&null!==(o=i.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=fe.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),pe.optSelected||(fe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),fe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){fe.propFix[this.toLowerCase()]=this}),fe.fn.extend({addClass:function(e){var t,n,o,i,a,r,l,s=0;if(fe.isFunction(e))return this.each(function(t){fe(this).addClass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[s++];)if(i=z(n),o=1===n.nodeType&&" "+X(i)+" "){for(r=0;a=t[r++];)o.indexOf(" "+a+" ")<0&&(o+=a+" ");l=X(o),i!==l&&n.setAttribute("class",l)}return this},removeClass:function(e){var t,n,o,i,a,r,l,s=0;if(fe.isFunction(e))return this.each(function(t){fe(this).removeClass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[s++];)if(i=z(n),o=1===n.nodeType&&" "+X(i)+" "){for(r=0;a=t[r++];)for(;o.indexOf(" "+a+" ")>-1;)o=o.replace(" "+a+" "," ");l=X(o),i!==l&&n.setAttribute("class",l)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):fe.isFunction(e)?this.each(function(n){fe(this).toggleClass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,o,i,a;if("string"===n)for(o=0,i=fe(this),a=e.match(Ae)||[];t=a[o++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&Ie.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Ie.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+X(z(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;fe.fn.extend({val:function(e){var t,n,o,i=this[0];return arguments.length?(o=fe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=o?e.call(this,n,fe(this).val()):e,null==i?i="":"number"==typeof i?i+="":fe.isArray(i)&&(i=fe.map(i,function(e){return null==e?"":e+""})),t=fe.valHooks[this.type]||fe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=fe.valHooks[i.type]||fe.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(xt,""):null==n?"":n)):void 0}}),fe.extend({valHooks:{option:{get:function(e){var t=fe.find.attr(e,"value");return null!=t?t:X(fe.text(e))}},select:{get:function(e){var t,n,o,i=e.options,a=e.selectedIndex,r="select-one"===e.type,l=r?null:[],s=r?a+1:i.length;for(o=a<0?s:r?a:0;o-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),fe.each(["radio","checkbox"],function(){fe.valHooks[this]={set:function(e,t){if(fe.isArray(t))return e.checked=fe.inArray(fe(e).val(),t)>-1}},pe.checkOn||(fe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var jt=/^(?:focusinfocus|focusoutblur)$/;fe.extend(fe.event,{trigger:function(t,n,o,i){var a,r,l,s,c,u,d,p=[o||te],h=ce.call(t,"type")?t.type:t,f=ce.call(t,"namespace")?t.namespace.split("."):[];if(r=l=o=o||te,3!==o.nodeType&&8!==o.nodeType&&!jt.test(h+fe.event.triggered)&&(h.indexOf(".")>-1&&(f=h.split("."),h=f.shift(),f.sort()),c=h.indexOf(":")<0&&"on"+h,t=t[fe.expando]?t:new fe.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),n=null==n?[t]:fe.makeArray(n,[t]),d=fe.event.special[h]||{},i||!d.trigger||d.trigger.apply(o,n)!==!1)){if(!i&&!d.noBubble&&!fe.isWindow(o)){for(s=d.delegateType||h,jt.test(s+h)||(r=r.parentNode);r;r=r.parentNode)p.push(r),l=r;l===(o.ownerDocument||te)&&p.push(l.defaultView||l.parentWindow||e)}for(a=0;(r=p[a++])&&!t.isPropagationStopped();)t.type=a>1?s:d.bindType||h,u=(Ie.get(r,"events")||{})[t.type]&&Ie.get(r,"handle"),u&&u.apply(r,n),u=c&&r[c],u&&u.apply&&Pe(r)&&(t.result=u.apply(r,n),t.result===!1&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),n)!==!1||!Pe(o)||c&&fe.isFunction(o[h])&&!fe.isWindow(o)&&(l=o[c],l&&(o[c]=null),fe.event.triggered=h,o[h](),fe.event.triggered=void 0,l&&(o[c]=l)),t.result}},simulate:function(e,t,n){var o=fe.extend(new fe.Event,n,{type:e,isSimulated:!0});fe.event.trigger(o,null,t)}}),fe.fn.extend({trigger:function(e,t){return this.each(function(){fe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return fe.event.trigger(e,t,n,!0)}}),fe.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){fe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),fe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),pe.focusin="onfocusin"in e,pe.focusin||fe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){fe.event.simulate(t,e.target,fe.event.fix(e))};fe.event.special[t]={setup:function(){var o=this.ownerDocument||this,i=Ie.access(o,t);i||o.addEventListener(e,n,!0),Ie.access(o,t,(i||0)+1)},teardown:function(){var o=this.ownerDocument||this,i=Ie.access(o,t)-1;i?Ie.access(o,t,i):(o.removeEventListener(e,n,!0),Ie.remove(o,t))}}});var _t=e.location,Tt=fe.now(),Mt=/\?/;fe.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||fe.error("Invalid XML: "+t),n};var kt=/\[\]$/,Ct=/\r?\n/g,$t=/^(?:submit|button|image|reset|file)$/i,Dt=/^(?:input|select|textarea|keygen)/i;fe.param=function(e,t){var n,o=[],i=function(e,t){var n=fe.isFunction(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(fe.isArray(e)||e.jquery&&!fe.isPlainObject(e))fe.each(e,function(){i(this.name,this.value)});else for(n in e)Y(n,e[n],t,i);return o.join("&")},fe.fn.extend({serialize:function(){return fe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=fe.prop(this,"elements");return e?fe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!fe(this).is(":disabled")&&Dt.test(this.nodeName)&&!$t.test(e)&&(this.checked||!Xe.test(e))}).map(function(e,t){var n=fe(this).val();return null==n?null:fe.isArray(n)?fe.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}});var At=/%20/g,Et=/#.*$/,St=/([?&])_=[^&]*/,Lt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Pt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,It=/^(?:GET|HEAD)$/,Ot=/^\/\//,Nt={},qt={},Ft="*/".concat("*"),Rt=te.createElement("a");Rt.href=_t.href,fe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:Pt.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":fe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?G(G(e,fe.ajaxSettings),t):G(fe.ajaxSettings,e)},ajaxPrefilter:K(Nt),ajaxTransport:K(qt),ajax:function(t,n){function o(t,n,o,l){var c,p,h,w,x,j=n;u||(u=!0,s&&e.clearTimeout(s),i=void 0,r=l||"",_.readyState=t>0?4:0,c=t>=200&&t<300||304===t,o&&(w=Q(f,_,o)),w=Z(f,w,_,c),c?(f.ifModified&&(x=_.getResponseHeader("Last-Modified"),x&&(fe.lastModified[a]=x),x=_.getResponseHeader("etag"),x&&(fe.etag[a]=x)),204===t||"HEAD"===f.type?j="nocontent":304===t?j="notmodified":(j=w.state,p=w.data,h=w.error,c=!h)):(h=j,!t&&j||(j="error",t<0&&(t=0))),_.status=t,_.statusText=(n||j)+"",c?g.resolveWith(b,[p,j,_]):g.rejectWith(b,[_,j,h]),_.statusCode(y),y=void 0,d&&m.trigger(c?"ajaxSuccess":"ajaxError",[_,f,c?p:h]),v.fireWith(b,[_,j]),d&&(m.trigger("ajaxComplete",[_,f]),--fe.active||fe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,a,r,l,s,c,u,d,p,h,f=fe.ajaxSetup({},n),b=f.context||f,m=f.context&&(b.nodeType||b.jquery)?fe(b):fe.event,g=fe.Deferred(),v=fe.Callbacks("once memory"),y=f.statusCode||{},w={},x={},j="canceled",_={readyState:0,getResponseHeader:function(e){var t;if(u){if(!l)for(l={};t=Lt.exec(r);)l[t[1].toLowerCase()]=t[2];t=l[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)_.always(e[_.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||j;return i&&i.abort(t),o(0,t),this}};if(g.promise(_),f.url=((t||f.url||_t.href)+"").replace(Ot,_t.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Ae)||[""],null==f.crossDomain){c=te.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Rt.protocol+"//"+Rt.host!=c.protocol+"//"+c.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=fe.param(f.data,f.traditional)),V(Nt,f,n,_),u)return _;d=fe.event&&f.global,d&&0===fe.active++&&fe.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!It.test(f.type),a=f.url.replace(Et,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(At,"+")):(h=f.url.slice(a.length),f.data&&(a+=(Mt.test(a)?"&":"?")+f.data,delete f.data),f.cache===!1&&(a=a.replace(St,"$1"),h=(Mt.test(a)?"&":"?")+"_="+Tt++ +h),f.url=a+h),f.ifModified&&(fe.lastModified[a]&&_.setRequestHeader("If-Modified-Since",fe.lastModified[a]),fe.etag[a]&&_.setRequestHeader("If-None-Match",fe.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&_.setRequestHeader("Content-Type",f.contentType),_.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ft+"; q=0.01":""):f.accepts["*"]);for(p in f.headers)_.setRequestHeader(p,f.headers[p]);if(f.beforeSend&&(f.beforeSend.call(b,_,f)===!1||u))return _.abort();if(j="abort",v.add(f.complete),_.done(f.success),_.fail(f.error),i=V(qt,f,n,_)){if(_.readyState=1,d&&m.trigger("ajaxSend",[_,f]),u)return _;f.async&&f.timeout>0&&(s=e.setTimeout(function(){_.abort("timeout")},f.timeout));try{u=!1,i.send(w,o)}catch(e){if(u)throw e;o(-1,e)}}else o(-1,"No Transport");return _},getJSON:function(e,t,n){return fe.get(e,t,n,"json")},getScript:function(e,t){return fe.get(e,void 0,t,"script")}}),fe.each(["get","post"],function(e,t){fe[t]=function(e,n,o,i){return fe.isFunction(n)&&(i=i||o,o=n,n=void 0),fe.ajax(fe.extend({url:e,type:t,dataType:i,data:n,success:o},fe.isPlainObject(e)&&e))}}),fe._evalUrl=function(e){return fe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},fe.fn.extend({wrapAll:function(e){var t;return this[0]&&(fe.isFunction(e)&&(e=e.call(this[0])),t=fe(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return fe.isFunction(e)?this.each(function(t){fe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=fe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=fe.isFunction(e);return this.each(function(n){fe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){fe(this).replaceWith(this.childNodes)}),this}}),fe.expr.pseudos.hidden=function(e){return!fe.expr.pseudos.visible(e)},fe.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},fe.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Ht={0:200,1223:204},Ut=fe.ajaxSettings.xhr();pe.cors=!!Ut&&"withCredentials"in Ut,pe.ajax=Ut=!!Ut,fe.ajaxTransport(function(t){var n,o;if(pe.cors||Ut&&!t.crossDomain)return{send:function(i,a){var r,l=t.xhr();if(l.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)l[r]=t.xhrFields[r];t.mimeType&&l.overrideMimeType&&l.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(r in i)l.setRequestHeader(r,i[r]);n=function(e){return function(){n&&(n=o=l.onload=l.onerror=l.onabort=l.onreadystatechange=null,"abort"===e?l.abort():"error"===e?"number"!=typeof l.status?a(0,"error"):a(l.status,l.statusText):a(Ht[l.status]||l.status,l.statusText,"text"!==(l.responseType||"text")||"string"!=typeof l.responseText?{binary:l.response}:{text:l.responseText},l.getAllResponseHeaders()))}},l.onload=n(),o=l.onerror=n("error"),void 0!==l.onabort?l.onabort=o:l.onreadystatechange=function(){4===l.readyState&&e.setTimeout(function(){n&&o()})},n=n("abort");try{l.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),fe.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),fe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return fe.globalEval(e),e}}}),fe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),fe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(o,i){t=fe("