diff --git a/app/Resources/static/themes/material/index.js b/app/Resources/static/themes/material/index.js index d8f5628cd..2414c0fcc 100755 --- a/app/Resources/static/themes/material/index.js +++ b/app/Resources/static/themes/material/index.js @@ -17,6 +17,8 @@ import './js/shortcuts/entry'; /* Theme style */ import './css/index.scss'; +const mobileMaxWidth = 993; + const stickyNav = () => { const nav = $('.js-entry-nav-top'); $('[data-toggle="actions"]').click(() => { @@ -81,6 +83,9 @@ $(document).ready(() => { $('#nav-btn-add-tag').on('click', () => { $('.nav-panel-add-tag').toggle(100); $('.nav-panel-menu').addClass('hidden'); + if (window.innerWidth < mobileMaxWidth) { + $('.side-nav').sideNav('hide'); + } $('#tag_label').focus(); return false; }); diff --git a/web/wallassets/material.js b/web/wallassets/material.js index d623cbb31..90bb83a09 100644 --- a/web/wallassets/material.js +++ b/web/wallassets/material.js @@ -1 +1 @@ -!function(e){function __webpack_require__(Q){if(t[Q])return t[Q].exports;var T=t[Q]={i:Q,l:!1,exports:{}};return e[Q].call(T.exports,T,T.exports,__webpack_require__),T.l=!0,T.exports}var t={};__webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.i=function(e){return e},__webpack_require__.d=function(e,t,Q){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:Q})},__webpack_require__.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return __webpack_require__.d(t,"a",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=245)}([function(e,t,Q){var T,n;!function(t,Q){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?Q(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return Q(e)}:Q(t)}("undefined"!=typeof window?window:this,function(Q,r){function isArrayLike(e){var t=!!e&&"length"in e&&e.length,Q=L.type(e);return"function"!==Q&&!L.isWindow(e)&&("array"===Q||0===t||"number"==typeof t&&t>0&&t-1 in e)}function winnow(e,t,Q){if(L.isFunction(t))return L.grep(e,function(e,T){return!!t.call(e,T,e)!==Q});if(t.nodeType)return L.grep(e,function(e){return e===t!==Q});if("string"==typeof t){if(S.test(t))return L.filter(t,e,Q);t=L.filter(t,e)}return L.grep(e,function(e){return c.call(t,e)>-1!==Q})}function sibling(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function createOptions(e){var t={};return L.each(e.match(N)||[],function(e,Q){t[Q]=!0}),t}function completed(){o.removeEventListener("DOMContentLoaded",completed),Q.removeEventListener("load",completed),L.ready()}function Data(){this.expando=L.expando+Data.uid++}function dataAttr(e,t,Q){var T;if(void 0===Q&&1===e.nodeType)if(T="data-"+t.replace(P,"-$&").toLowerCase(),"string"==typeof(Q=e.getAttribute(T))){try{Q="true"===Q||"false"!==Q&&("null"===Q?null:+Q+""===Q?+Q:D.test(Q)?L.parseJSON(Q):Q)}catch(e){}w.set(e,t,Q)}else Q=void 0;return Q}function adjustCSS(e,t,Q,T){var n,r=1,i=20,o=T?function(){return T.cur()}:function(){return L.css(e,t,"")},a=o(),s=Q&&Q[3]||(L.cssNumber[t]?"":"px"),l=(L.cssNumber[t]||"px"!==s&&+a)&&B.exec(L.css(e,t));if(l&&l[3]!==s){s=s||l[3],Q=Q||[],l=+a||1;do{r=r||".5",l/=r,L.style(e,t,l+s)}while(r!==(r=o()/a)&&1!==r&&--i)}return Q&&(l=+l||+a||0,n=Q[1]?l+(Q[1]+1)*Q[2]:+Q[2],T&&(T.unit=s,T.start=l,T.end=n)),n}function getAll(e,t){var Q=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&L.nodeName(e,t)?L.merge([e],Q):Q}function setGlobalEval(e,t){for(var Q=0,T=e.length;Q-1)n&&n.push(r);else if(s=L.contains(r.ownerDocument,r),i=getAll(c.appendChild(r),"script"),s&&setGlobalEval(i),Q)for(l=0;r=i[l++];)Y.test(r.type||"")&&Q.push(r);return c}function returnTrue(){return!0}function returnFalse(){return!1}function safeActiveElement(){try{return o.activeElement}catch(e){}}function on(e,t,Q,T,n,r){var i,o;if("object"==typeof t){"string"!=typeof Q&&(T=T||Q,Q=void 0);for(o in t)on(e,o,Q,T,t[o],r);return e}if(null==T&&null==n?(n=Q,T=Q=void 0):null==n&&("string"==typeof Q?(n=T,T=void 0):(n=T,T=Q,Q=void 0)),!1===n)n=returnFalse;else if(!n)return e;return 1===r&&(i=n,n=function(e){return L().off(e),i.apply(this,arguments)},n.guid=i.guid||(i.guid=L.guid++)),e.each(function(){L.event.add(this,t,n,T,Q)})}function manipulationTarget(e,t){return L.nodeName(e,"table")&&L.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function disableScript(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function restoreScript(e){var t=ee.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function cloneCopyEvent(e,t){var Q,T,n,r,i,o,a,s;if(1===t.nodeType){if(I.hasData(e)&&(r=I.access(e),i=I.set(t,r),s=r.events)){delete i.handle,i.events={};for(n in s)for(Q=0,T=s[n].length;Q1&&"string"==typeof p&&!_.checkClone&&J.test(p))return e.each(function(n){var r=e.eq(n);f&&(t[0]=p.call(this,n,r.html())),domManip(r,t,Q,T)});if(u&&(n=buildFragment(t,e[0].ownerDocument,!1,e,T),r=n.firstChild,1===n.childNodes.length&&(n=r),r||T)){for(i=L.map(getAll(n,"script"),disableScript),o=i.length;c")).appendTo(t.documentElement),t=Qe[0].contentDocument,t.write(),t.close(),Q=actualDisplay(e,t),Qe.detach()),Te[e]=Q),Q}function curCSS(e,t,Q){var T,n,r,i,o=e.style;return Q=Q||ie(e),i=Q?Q.getPropertyValue(t)||Q[t]:void 0,""!==i&&void 0!==i||L.contains(e.ownerDocument,e)||(i=L.style(e,t)),Q&&!_.pixelMarginRight()&&re.test(i)&&ne.test(t)&&(T=o.width,n=o.minWidth,r=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=Q.width,o.width=T,o.minWidth=n,o.maxWidth=r),void 0!==i?i+"":i}function addGetHookIf(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function vendorPropName(e){if(e in de)return e;for(var t=e[0].toUpperCase()+e.slice(1),Q=ue.length;Q--;)if((e=ue[Q]+t)in de)return e}function setPositiveNumber(e,t,Q){var T=B.exec(t);return T?Math.max(0,T[2]-(Q||0))+(T[3]||"px"):t}function augmentWidthOrHeight(e,t,Q,T,n){for(var r=Q===(T?"border":"content")?4:"width"===t?1:0,i=0;r<4;r+=2)"margin"===Q&&(i+=L.css(e,Q+F[r],!0,n)),T?("content"===Q&&(i-=L.css(e,"padding"+F[r],!0,n)),"margin"!==Q&&(i-=L.css(e,"border"+F[r]+"Width",!0,n))):(i+=L.css(e,"padding"+F[r],!0,n),"padding"!==Q&&(i+=L.css(e,"border"+F[r]+"Width",!0,n)));return i}function getWidthOrHeight(e,t,Q){var T=!0,n="width"===t?e.offsetWidth:e.offsetHeight,r=ie(e),i="border-box"===L.css(e,"boxSizing",!1,r);if(n<=0||null==n){if(n=curCSS(e,t,r),(n<0||null==n)&&(n=e.style[t]),re.test(n))return n;T=i&&(_.boxSizingReliable()||n===e.style[t]),n=parseFloat(n)||0}return n+augmentWidthOrHeight(e,t,Q||(i?"border":"content"),T,r)+"px"}function showHide(e,t){for(var Q,T,n,r=[],i=0,o=e.length;i=0&&Q=0},isPlainObject:function(e){var t;if("object"!==L.type(e)||e.nodeType||L.isWindow(e))return!1;if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||p.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?u[d.call(e)]||"object":typeof e},globalEval:function(e){var t,Q=eval;(e=L.trim(e))&&(1===e.indexOf("use strict")?(t=o.createElement("script"),t.text=e,o.head.appendChild(t).parentNode.removeChild(t)):Q(e))},camelCase:function(e){return e.replace(h,"ms-").replace(m,g)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var Q,T=0;if(isArrayLike(e))for(Q=e.length;TT.cacheLength&&delete cache[e.shift()],cache[t+" "]=Q}var e=[];return cache}function markFunction(e){return e[g]=!0,e}function assert(e){var t=d.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function addHandle(e,t){for(var Q=e.split("|"),n=Q.length;n--;)T.attrHandle[Q[n]]=t}function siblingCheck(e,t){var Q=t&&e,T=Q&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||C)-(~e.sourceIndex||C);if(T)return T;if(Q)for(;Q=Q.nextSibling;)if(Q===t)return-1;return e?1:-1}function createPositionalPseudo(e){return markFunction(function(t){return t=+t,markFunction(function(Q,T){for(var n,r=e([],Q.length,t),i=r.length;i--;)Q[n=r[i]]&&(Q[n]=!(T[n]=Q[n]))})})}function testContext(e){return e&&void 0!==e.getElementsByTagName&&e}function setFilters(){}function toSelector(e){for(var t=0,Q=e.length,T="";t1?function(t,Q,T){for(var n=e.length;n--;)if(!e[n](t,Q,T))return!1;return!0}:e[0]}function multipleContexts(e,t,Q){for(var T=0,n=t.length;T-1&&(r[s]=!(i[s]=c))}}else f=condense(f===i?f.splice(p,f.length):f),n?n(null,i,f,a):A.apply(i,f)})}function matcherFromTokens(e){for(var t,Q,n,r=e.length,i=T.relative[e[0].type],o=i||T.relative[" "],a=i?1:0,l=addCombinator(function(e){return e===t},o,!0),c=addCombinator(function(e){return I(t,e)>-1},o,!0),u=[function(e,Q,T){var n=!i&&(T||Q!==s)||((t=Q).nodeType?l(e,Q,T):c(e,Q,T));return t=null,n}];a1&&elementMatcher(u),a>1&&toSelector(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(U,"$1"),Q,a0,n=e.length>0,r=function(r,i,o,a,l){var c,p,L,f=0,h="0",m=r&&[],g=[],H=s,y=r||n&&T.find.TAG("*",l),b=E+=null==H?1:Math.random()||.1,v=y.length;for(l&&(s=i===d||i||l);h!==v&&null!=(c=y[h]);h++){if(n&&c){for(p=0,i||c.ownerDocument===d||(u(c),o=!_);L=e[p++];)if(L(c,i||d,o)){a.push(c);break}l&&(E=b)}Q&&((c=!L&&c)&&f--,r&&m.push(c))}if(f+=h,Q&&h!==f){for(p=0;L=t[p++];)L(m,g,i,o);if(r){if(f>0)for(;h--;)m[h]||g[h]||(g[h]=N.call(a));g=condense(g)}A.apply(a,g),l&&!r&&g.length>0&&f+t.length>1&&Sizzle.uniqueSort(a)}return l&&(E=b,s=H),m};return Q?markFunction(r):r}var t,Q,T,n,r,i,o,a,s,l,c,u,d,p,_,L,f,h,m,g="sizzle"+1*new Date,H=e.document,E=0,y=0,b=createCache(),v=createCache(),S=createCache(),O=function(e,t){return e===t&&(c=!0),0},C=1<<31,M={}.hasOwnProperty,V=[],N=V.pop,R=V.push,A=V.push,x=V.slice,I=function(e,t){for(var Q=0,T=e.length;Q+~]|"+D+")"+D+"*"),Y=new RegExp("="+D+"*([^\\]'\"]*?)"+D+"*\\]","g"),j=new RegExp(B),q=new RegExp("^"+P+"$"),z={ID:new RegExp("^#("+P+")"),CLASS:new RegExp("^\\.("+P+")"),TAG:new RegExp("^("+P+"|[*])"),ATTR:new RegExp("^"+k),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+D+"*(even|odd|(([+-]|)(\\d*)n|)"+D+"*(?:([+-]|)"+D+"*(\\d+)|))"+D+"*\\)|)","i"),bool:new RegExp("^(?:"+w+")$","i"),needsContext:new RegExp("^"+D+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+D+"*((?:-\\d)?\\d*)"+D+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+D+"?|("+D+")|.)","ig"),Qe=function(e,t,Q){var T="0x"+t-65536;return T!==T||Q?t:T<0?String.fromCharCode(T+65536):String.fromCharCode(T>>10|55296,1023&T|56320)},Te=function(){u()};try{A.apply(V=x.call(H.childNodes),H.childNodes),V[H.childNodes.length].nodeType}catch(e){A={apply:V.length?function(e,t){R.apply(e,x.call(t))}:function(e,t){for(var Q=e.length,T=0;e[Q++]=t[T++];);e.length=Q-1}}}Q=Sizzle.support={},r=Sizzle.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},u=Sizzle.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:H;return i!==d&&9===i.nodeType&&i.documentElement?(d=i,p=d.documentElement,_=!r(d),(n=d.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),Q.attributes=assert(function(e){return e.className="i",!e.getAttribute("className")}),Q.getElementsByTagName=assert(function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length}),Q.getElementsByClassName=$.test(d.getElementsByClassName),Q.getById=assert(function(e){return p.appendChild(e).id=g,!d.getElementsByName||!d.getElementsByName(g).length}),Q.getById?(T.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var Q=t.getElementById(e);return Q?[Q]:[]}},T.filter.ID=function(e){var t=e.replace(te,Qe);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(te,Qe);return function(e){var Q=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return Q&&Q.value===t}}),T.find.TAG=Q.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):Q.qsa?t.querySelectorAll(e):void 0}:function(e,t){var Q,T=[],n=0,r=t.getElementsByTagName(e);if("*"===e){for(;Q=r[n++];)1===Q.nodeType&&T.push(Q);return T}return r},T.find.CLASS=Q.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&_)return t.getElementsByClassName(e)},f=[],L=[],(Q.qsa=$.test(d.querySelectorAll))&&(assert(function(e){p.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&L.push("[*^$]="+D+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||L.push("\\["+D+"*(?:value|"+w+")"),e.querySelectorAll("[id~="+g+"-]").length||L.push("~="),e.querySelectorAll(":checked").length||L.push(":checked"),e.querySelectorAll("a#"+g+"+*").length||L.push(".#.+[+~]")}),assert(function(e){var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&L.push("name"+D+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||L.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),L.push(",.*:")})),(Q.matchesSelector=$.test(h=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&assert(function(e){Q.disconnectedMatch=h.call(e,"div"),h.call(e,"[s!='']:x"),f.push("!=",B)}),L=L.length&&new RegExp(L.join("|")),f=f.length&&new RegExp(f.join("|")),t=$.test(p.compareDocumentPosition),m=t||$.test(p.contains)?function(e,t){var Q=9===e.nodeType?e.documentElement:e,T=t&&t.parentNode;return e===T||!(!T||1!==T.nodeType||!(Q.contains?Q.contains(T):e.compareDocumentPosition&&16&e.compareDocumentPosition(T)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return c=!0,0;var T=!e.compareDocumentPosition-!t.compareDocumentPosition;return T||(T=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&T||!Q.sortDetached&&t.compareDocumentPosition(e)===T?e===d||e.ownerDocument===H&&m(H,e)?-1:t===d||t.ownerDocument===H&&m(H,t)?1:l?I(l,e)-I(l,t):0:4&T?-1:1)}:function(e,t){if(e===t)return c=!0,0;var Q,T=0,n=e.parentNode,r=t.parentNode,i=[e],o=[t];if(!n||!r)return e===d?-1:t===d?1:n?-1:r?1:l?I(l,e)-I(l,t):0;if(n===r)return siblingCheck(e,t);for(Q=e;Q=Q.parentNode;)i.unshift(Q);for(Q=t;Q=Q.parentNode;)o.unshift(Q);for(;i[T]===o[T];)T++;return T?siblingCheck(i[T],o[T]):i[T]===H?-1:o[T]===H?1:0},d):d},Sizzle.matches=function(e,t){return Sizzle(e,null,null,t)},Sizzle.matchesSelector=function(e,t){if((e.ownerDocument||e)!==d&&u(e),t=t.replace(Y,"='$1']"),Q.matchesSelector&&_&&!S[t+" "]&&(!f||!f.test(t))&&(!L||!L.test(t)))try{var T=h.call(e,t);if(T||Q.disconnectedMatch||e.document&&11!==e.document.nodeType)return T}catch(e){}return Sizzle(t,d,null,[e]).length>0},Sizzle.contains=function(e,t){return(e.ownerDocument||e)!==d&&u(e),m(e,t)},Sizzle.attr=function(e,t){(e.ownerDocument||e)!==d&&u(e);var n=T.attrHandle[t.toLowerCase()],r=n&&M.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:Q.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},Sizzle.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Sizzle.uniqueSort=function(e){var t,T=[],n=0,r=0;if(c=!Q.detectDuplicates,l=!Q.sortStable&&e.slice(0),e.sort(O),c){for(;t=e[r++];)t===e[r]&&(n=T.push(r));for(;n--;)e.splice(T[n],1)}return l=null,e},n=Sizzle.getText=function(e){var t,Q="",T=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)Q+=n(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[T++];)Q+=n(t);return Q},T=Sizzle.selectors={cacheLength:50,createPseudo:markFunction,match:z,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(te,Qe),e[3]=(e[3]||e[4]||e[5]||"").replace(te,Qe),"~="===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]||Sizzle.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]&&Sizzle.error(e[0]),e},PSEUDO:function(e){var t,Q=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":Q&&j.test(Q)&&(t=i(Q,!0))&&(t=Q.indexOf(")",Q.length-t)-Q.length)&&(e[0]=e[0].slice(0,t),e[2]=Q.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,Qe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=b[e+" "];return t||(t=new RegExp("(^|"+D+")"+e+"("+D+"|$)"))&&b(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,Q){return function(T){var n=Sizzle.attr(T,e);return null==n?"!="===t:!t||(n+="","="===t?n===Q:"!="===t?n!==Q:"^="===t?Q&&0===n.indexOf(Q):"*="===t?Q&&n.indexOf(Q)>-1:"$="===t?Q&&n.slice(-Q.length)===Q:"~="===t?(" "+n.replace(F," ")+" ").indexOf(Q)>-1:"|="===t&&(n===Q||n.slice(0,Q.length+1)===Q+"-"))}},CHILD:function(e,t,Q,T,n){var r="nth"!==e.slice(0,3),i="last"!==e.slice(-4),o="of-type"===t;return 1===T&&0===n?function(e){return!!e.parentNode}:function(t,Q,a){var s,l,c,u,d,p,_=r!==i?"nextSibling":"previousSibling",L=t.parentNode,f=o&&t.nodeName.toLowerCase(),h=!a&&!o,m=!1;if(L){if(r){for(;_;){for(u=t;u=u[_];)if(o?u.nodeName.toLowerCase()===f:1===u.nodeType)return!1;p=_="only"===e&&!p&&"nextSibling"}return!0}if(p=[i?L.firstChild:L.lastChild],i&&h){for(u=L,c=u[g]||(u[g]={}),l=c[u.uniqueID]||(c[u.uniqueID]={}),s=l[e]||[],d=s[0]===E&&s[1],m=d&&s[2],u=d&&L.childNodes[d];u=++d&&u&&u[_]||(m=d=0)||p.pop();)if(1===u.nodeType&&++m&&u===t){l[e]=[E,d,m];break}}else if(h&&(u=t,c=u[g]||(u[g]={}),l=c[u.uniqueID]||(c[u.uniqueID]={}),s=l[e]||[],d=s[0]===E&&s[1],m=d),!1===m)for(;(u=++d&&u&&u[_]||(m=d=0)||p.pop())&&((o?u.nodeName.toLowerCase()!==f:1!==u.nodeType)||!++m||(h&&(c=u[g]||(u[g]={}),l=c[u.uniqueID]||(c[u.uniqueID]={}),l[e]=[E,m]),u!==t)););return(m-=n)===T||m%T==0&&m/T>=0}}},PSEUDO:function(e,t){var Q,n=T.pseudos[e]||T.setFilters[e.toLowerCase()]||Sizzle.error("unsupported pseudo: "+e);return n[g]?n(t):n.length>1?(Q=[e,e,"",t],T.setFilters.hasOwnProperty(e.toLowerCase())?markFunction(function(e,Q){for(var T,r=n(e,t),i=r.length;i--;)T=I(e,r[i]),e[T]=!(Q[T]=r[i])}):function(e){return n(e,0,Q)}):n}},pseudos:{not:markFunction(function(e){var t=[],Q=[],T=o(e.replace(U,"$1"));return T[g]?markFunction(function(e,t,Q,n){for(var r,i=T(e,null,n,[]),o=e.length;o--;)(r=i[o])&&(e[o]=!(t[o]=r))}):function(e,n,r){return t[0]=e,T(t,null,r,Q),t[0]=null,!Q.pop()}}),has:markFunction(function(e){return function(t){return Sizzle(e,t).length>0}}),contains:markFunction(function(e){return e=e.replace(te,Qe),function(t){return(t.textContent||t.innerText||n(t)).indexOf(e)>-1}}),lang:markFunction(function(e){return q.test(e||"")||Sizzle.error("unsupported lang: "+e),e=e.replace(te,Qe).toLowerCase(),function(t){var Q;do{if(Q=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(Q=Q.toLowerCase())===e||0===Q.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var Q=e.location&&e.location.hash;return Q&&Q.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return W.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:createPositionalPseudo(function(){return[0]}),last:createPositionalPseudo(function(e,t){return[t-1]}),eq:createPositionalPseudo(function(e,t,Q){return[Q<0?Q+t:Q]}),even:createPositionalPseudo(function(e,t){for(var Q=0;Q=0;)e.push(T);return e}),gt:createPositionalPseudo(function(e,t,Q){for(var T=Q<0?Q+t:Q;++T2&&"ID"===(l=s[0]).type&&Q.getById&&9===t.nodeType&&_&&T.relative[s[1].type]){if(!(t=(T.find.ID(l.matches[0].replace(te,Qe),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(a=z.needsContext.test(e)?0:s.length;a--&&(l=s[a],!T.relative[c=l.type]);)if((u=T.find[c])&&(r=u(l.matches[0].replace(te,Qe),J.test(s[0].type)&&testContext(t.parentNode)||t))){if(s.splice(a,1),!(e=r.length&&toSelector(s)))return A.apply(n,r),n;break}}return(d||o(e,p))(r,t,!_,n,!t||J.test(e)&&testContext(t.parentNode)||t),n},Q.sortStable=g.split("").sort(O).join("")===g,Q.detectDuplicates=!!c,u(),Q.sortDetached=assert(function(e){return 1&e.compareDocumentPosition(d.createElement("div"))}),assert(function(e){return e.innerHTML="","#"===e.firstChild.getAttribute("href")})||addHandle("type|href|height|width",function(e,t,Q){if(!Q)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),Q.attributes&&assert(function(e){return e.innerHTML="",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||addHandle("value",function(e,t,Q){if(!Q&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),assert(function(e){return null==e.getAttribute("disabled")})||addHandle(w,function(e,t,Q){var T;if(!Q)return!0===e[t]?t.toLowerCase():(T=e.getAttributeNode(t))&&T.specified?T.value:null}),Sizzle}(Q);L.find=H,L.expr=H.selectors,L.expr[":"]=L.expr.pseudos,L.uniqueSort=L.unique=H.uniqueSort,L.text=H.getText,L.isXMLDoc=H.isXML,L.contains=H.contains;var E=function(e,t,Q){for(var T=[],n=void 0!==Q;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&L(e).is(Q))break;T.push(e)}return T},y=function(e,t){for(var Q=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&Q.push(e);return Q},b=L.expr.match.needsContext,v=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,S=/^.[^:#\[\.,]*$/;L.filter=function(e,t,Q){var T=t[0];return Q&&(e=":not("+e+")"),1===t.length&&1===T.nodeType?L.find.matchesSelector(T,e)?[T]:[]:L.find.matches(e,L.grep(t,function(e){return 1===e.nodeType}))},L.fn.extend({find:function(e){var t,Q=this.length,T=[],n=this;if("string"!=typeof e)return this.pushStack(L(e).filter(function(){for(t=0;t1?L.unique(T):T),T.selector=this.selector?this.selector+" "+e:e,T},filter:function(e){return this.pushStack(winnow(this,e||[],!1))},not:function(e){return this.pushStack(winnow(this,e||[],!0))},is:function(e){return!!winnow(this,"string"==typeof e&&b.test(e)?L(e):e||[],!1).length}});var O,C=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(L.fn.init=function(e,t,Q){var T,n;if(!e)return this;if(Q=Q||O,"string"==typeof e){if(!(T="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:C.exec(e))||!T[1]&&t)return!t||t.jquery?(t||Q).find(e):this.constructor(t).find(e);if(T[1]){if(t=t instanceof L?t[0]:t,L.merge(this,L.parseHTML(T[1],t&&t.nodeType?t.ownerDocument||t:o,!0)),v.test(T[1])&&L.isPlainObject(t))for(T in t)L.isFunction(this[T])?this[T](t[T]):this.attr(T,t[T]);return this}return n=o.getElementById(T[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=o,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):L.isFunction(e)?void 0!==Q.ready?Q.ready(e):e(L):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),L.makeArray(e,this))}).prototype=L.fn,O=L(o);var M=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};L.fn.extend({has:function(e){var t=L(e,this),Q=t.length;return this.filter(function(){for(var e=0;e-1:1===Q.nodeType&&L.find.matchesSelector(Q,e))){r.push(Q);break}return this.pushStack(r.length>1?L.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?c.call(L(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(L.uniqueSort(L.merge(this.get(),L(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),L.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,Q){return E(e,"parentNode",Q)},next:function(e){return sibling(e,"nextSibling")},prev:function(e){return sibling(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,Q){return E(e,"nextSibling",Q)},prevUntil:function(e,t,Q){return E(e,"previousSibling",Q)},siblings:function(e){return y((e.parentNode||{}).firstChild,e)},children:function(e){return y(e.firstChild)},contents:function(e){return e.contentDocument||L.merge([],e.childNodes)}},function(e,t){L.fn[e]=function(Q,T){var n=L.map(this,t,Q);return"Until"!==e.slice(-5)&&(T=Q),T&&"string"==typeof T&&(n=L.filter(T,n)),this.length>1&&(V[e]||L.uniqueSort(n),M.test(e)&&n.reverse()),this.pushStack(n)}});var N=/\S+/g;L.Callbacks=function(e){e="string"==typeof e?createOptions(e):L.extend({},e);var t,Q,T,n,r=[],i=[],o=-1,a=function(){for(n=e.once,T=t=!0;i.length;o=-1)for(Q=i.shift();++o-1;)r.splice(Q,1),Q<=o&&o--}),this},has:function(e){return e?L.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return n=i=[],r=Q="",this},disabled:function(){return!r},lock:function(){return n=i=[],Q||(r=Q=""),this},locked:function(){return!!n},fireWith:function(e,Q){return n||(Q=Q||[],Q=[e,Q.slice?Q.slice():Q],i.push(Q),t||a()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!T}};return s},L.extend({Deferred:function(e){var t=[["resolve","done",L.Callbacks("once memory"),"resolved"],["reject","fail",L.Callbacks("once memory"),"rejected"],["notify","progress",L.Callbacks("memory")]],Q="pending",T={state:function(){return Q},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var e=arguments;return L.Deferred(function(Q){L.each(t,function(t,r){var i=L.isFunction(e[t])&&e[t];n[r[1]](function(){var e=i&&i.apply(this,arguments);e&&L.isFunction(e.promise)?e.promise().progress(Q.notify).done(Q.resolve).fail(Q.reject):Q[r[0]+"With"](this===T?Q.promise():this,i?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?L.extend(e,T):T}},n={};return T.pipe=T.then,L.each(t,function(e,r){var i=r[2],o=r[3];T[r[1]]=i.add,o&&i.add(function(){Q=o},t[1^e][2].disable,t[2][2].lock),n[r[0]]=function(){return n[r[0]+"With"](this===n?T:this,arguments),this},n[r[0]+"With"]=i.fireWith}),T.promise(n),e&&e.call(n,n),n},when:function(e){var t,Q,T,n=0,r=a.call(arguments),i=r.length,o=1!==i||e&&L.isFunction(e.promise)?i:0,s=1===o?e:L.Deferred(),l=function(e,Q,T){return function(n){Q[e]=this,T[e]=arguments.length>1?a.call(arguments):n,T===t?s.notifyWith(Q,T):--o||s.resolveWith(Q,T)}};if(i>1)for(t=new Array(i),Q=new Array(i),T=new Array(i);n0||(R.resolveWith(o,[L]),L.fn.triggerHandler&&(L(o).triggerHandler("ready"),L(o).off("ready"))))}}),L.ready.promise=function(e){return R||(R=L.Deferred(),"complete"===o.readyState||"loading"!==o.readyState&&!o.documentElement.doScroll?Q.setTimeout(L.ready):(o.addEventListener("DOMContentLoaded",completed),Q.addEventListener("load",completed))),R.promise(e)},L.ready.promise();var A=function(e,t,Q,T,n,r,i){var o=0,a=e.length,s=null==Q;if("object"===L.type(Q)){n=!0;for(o in Q)A(e,t,o,Q[o],!0,r,i)}else if(void 0!==T&&(n=!0,L.isFunction(T)||(i=!0),s&&(i?(t.call(e,T),t=null):(s=t,t=function(e,t,Q){return s.call(L(e),Q)})),t))for(;o-1&&void 0!==Q&&w.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){w.remove(this,e)})}}),L.extend({queue:function(e,t,Q){var T;if(e)return t=(t||"fx")+"queue",T=I.get(e,t),Q&&(!T||L.isArray(Q)?T=I.access(e,t,L.makeArray(Q)):T.push(Q)),T||[]},dequeue:function(e,t){t=t||"fx";var Q=L.queue(e,t),T=Q.length,n=Q.shift(),r=L._queueHooks(e,t),i=function(){L.dequeue(e,t)};"inprogress"===n&&(n=Q.shift(),T--),n&&("fx"===t&&Q.unshift("inprogress"),delete r.stop,n.call(e,i,r)),!T&&r&&r.empty.fire()},_queueHooks:function(e,t){var Q=t+"queueHooks";return I.get(e,Q)||I.access(e,Q,{empty:L.Callbacks("once memory").add(function(){I.remove(e,[t+"queue",Q])})})}}),L.fn.extend({queue:function(e,t){var Q=2;return"string"!=typeof e&&(t=e,e="fx",Q--),arguments.length",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};j.optgroup=j.option,j.tbody=j.tfoot=j.colgroup=j.caption=j.thead,j.th=j.td;var q=/<|&#?\w+;/;!function(){var e=o.createDocumentFragment(),t=e.appendChild(o.createElement("div")),Q=o.createElement("input");Q.setAttribute("type","radio"),Q.setAttribute("checked","checked"),Q.setAttribute("name","t"),t.appendChild(Q),_.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",_.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var z=/^key/,W=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,K=/^([^.]*)(?:\.(.+)|)/;L.event={global:{},add:function(e,t,Q,T,n){var r,i,o,a,s,l,c,u,d,p,_,f=I.get(e);if(f)for(Q.handler&&(r=Q,Q=r.handler,n=r.selector),Q.guid||(Q.guid=L.guid++),(a=f.events)||(a=f.events={}),(i=f.handle)||(i=f.handle=function(t){return void 0!==L&&L.event.triggered!==t.type?L.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(N)||[""],s=t.length;s--;)o=K.exec(t[s])||[],d=_=o[1],p=(o[2]||"").split(".").sort(),d&&(c=L.event.special[d]||{},d=(n?c.delegateType:c.bindType)||d,c=L.event.special[d]||{},l=L.extend({type:d,origType:_,data:T,handler:Q,guid:Q.guid,selector:n,needsContext:n&&L.expr.match.needsContext.test(n),namespace:p.join(".")},r),(u=a[d])||(u=a[d]=[],u.delegateCount=0,c.setup&&!1!==c.setup.call(e,T,p,i)||e.addEventListener&&e.addEventListener(d,i)),c.add&&(c.add.call(e,l),l.handler.guid||(l.handler.guid=Q.guid)),n?u.splice(u.delegateCount++,0,l):u.push(l),L.event.global[d]=!0)},remove:function(e,t,Q,T,n){var r,i,o,a,s,l,c,u,d,p,_,f=I.hasData(e)&&I.get(e);if(f&&(a=f.events)){for(t=(t||"").match(N)||[""],s=t.length;s--;)if(o=K.exec(t[s])||[],d=_=o[1],p=(o[2]||"").split(".").sort(),d){for(c=L.event.special[d]||{},d=(T?c.delegateType:c.bindType)||d,u=a[d]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=r=u.length;r--;)l=u[r],!n&&_!==l.origType||Q&&Q.guid!==l.guid||o&&!o.test(l.namespace)||T&&T!==l.selector&&("**"!==T||!l.selector)||(u.splice(r,1),l.selector&&u.delegateCount--,c.remove&&c.remove.call(e,l));i&&!u.length&&(c.teardown&&!1!==c.teardown.call(e,p,f.handle)||L.removeEvent(e,d,f.handle),delete a[d])}else for(d in a)L.event.remove(e,d+t[s],Q,T,!0);L.isEmptyObject(a)&&I.remove(e,"handle events")}},dispatch:function(e){e=L.event.fix(e);var t,Q,T,n,r,i=[],o=a.call(arguments),s=(I.get(this,"events")||{})[e.type]||[],l=L.event.special[e.type]||{};if(o[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(i=L.event.handlers.call(this,e,s),t=0;(n=i[t++])&&!e.isPropagationStopped();)for(e.currentTarget=n.elem,Q=0;(r=n.handlers[Q++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(T=((L.event.special[r.origType]||{}).handle||r.handler).apply(n.elem,o))&&!1===(e.result=T)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var Q,T,n,r,i=[],o=t.delegateCount,a=e.target;if(o&&a.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;a!==this;a=a.parentNode||this)if(1===a.nodeType&&(!0!==a.disabled||"click"!==e.type)){for(T=[],Q=0;Q-1:L.find(n,this,null,[a]).length),T[n]&&T.push(r);T.length&&i.push({elem:a,handlers:T})}return o]*)\/>/gi,X=/\s*$/g;L.extend({htmlPrefilter:function(e){return e.replace($,"<$1>")},clone:function(e,t,Q){var T,n,r,i,o=e.cloneNode(!0),a=L.contains(e.ownerDocument,e);if(!(_.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||L.isXMLDoc(e)))for(i=getAll(o),r=getAll(e),T=0,n=r.length;T0&&setGlobalEval(i,!a&&getAll(e,"script")),o},cleanData:function(e){for(var t,Q,T,n=L.event.special,r=0;void 0!==(Q=e[r]);r++)if(x(Q)){if(t=Q[I.expando]){if(t.events)for(T in t.events)n[T]?L.event.remove(Q,T):L.removeEvent(Q,T,t.handle);Q[I.expando]=void 0}Q[w.expando]&&(Q[w.expando]=void 0)}}}),L.fn.extend({domManip:domManip,detach:function(e){return remove(this,e,!0)},remove:function(e){return remove(this,e)},text:function(e){return A(this,function(e){return void 0===e?L.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 domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){manipulationTarget(this,e).appendChild(e)}})},prepend:function(){return domManip(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=manipulationTarget(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return domManip(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return domManip(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&&(L.cleanData(getAll(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return L.clone(this,e,t)})},html:function(e){return A(this,function(e){var t=this[0]||{},Q=0,T=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!X.test(e)&&!j[(Z.exec(e)||["",""])[1].toLowerCase()]){e=L.htmlPrefilter(e);try{for(;Q1)},show:function(){return showHide(this,!0)},hide:function(){return showHide(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){U(this)?L(this).show():L(this).hide()})}}),L.Tween=Tween,Tween.prototype={constructor:Tween,init:function(e,t,Q,T,n,r){this.elem=e,this.prop=Q,this.easing=n||L.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=T,this.unit=r||(L.cssNumber[Q]?"":"px")},cur:function(){var e=Tween.propHooks[this.prop];return e&&e.get?e.get(this):Tween.propHooks._default.get(this)},run:function(e){var t,Q=Tween.propHooks[this.prop];return this.options.duration?this.pos=t=L.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),Q&&Q.set?Q.set(this):Tween.propHooks._default.set(this),this}},Tween.prototype.init.prototype=Tween.prototype,Tween.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=L.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){L.fx.step[e.prop]?L.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[L.cssProps[e.prop]]&&!L.cssHooks[e.prop]?e.elem[e.prop]=e.now:L.style(e.elem,e.prop,e.now+e.unit)}}},Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},L.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},L.fx=Tween.prototype.init,L.fx.step={};var pe,_e,Le=/^(?:toggle|show|hide)$/,fe=/queueHooks$/;L.Animation=L.extend(Animation,{tweeners:{"*":[function(e,t){var Q=this.createTween(e,t);return adjustCSS(Q.elem,e,B.exec(t),Q),Q}]},tweener:function(e,t){L.isFunction(e)?(t=e,e=["*"]):e=e.match(N);for(var Q,T=0,n=e.length;T1)},removeAttr:function(e){return this.each(function(){L.removeAttr(this,e)})}}),L.extend({attr:function(e,t,Q){var T,n,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?L.prop(e,t,Q):(1===r&&L.isXMLDoc(e)||(t=t.toLowerCase(),n=L.attrHooks[t]||(L.expr.match.bool.test(t)?he:void 0)),void 0!==Q?null===Q?void L.removeAttr(e,t):n&&"set"in n&&void 0!==(T=n.set(e,Q,t))?T:(e.setAttribute(t,Q+""),Q):n&&"get"in n&&null!==(T=n.get(e,t))?T:(T=L.find.attr(e,t),null==T?void 0:T))},attrHooks:{type:{set:function(e,t){if(!_.radioValue&&"radio"===t&&L.nodeName(e,"input")){var Q=e.value;return e.setAttribute("type",t),Q&&(e.value=Q),t}}}},removeAttr:function(e,t){var Q,T,n=0,r=t&&t.match(N);if(r&&1===e.nodeType)for(;Q=r[n++];)T=L.propFix[Q]||Q,L.expr.match.bool.test(Q)&&(e[T]=!1),e.removeAttribute(Q)}}),he={set:function(e,t,Q){return!1===t?L.removeAttr(e,Q):e.setAttribute(Q,Q),Q}},L.each(L.expr.match.bool.source.match(/\w+/g),function(e,t){var Q=me[t]||L.find.attr;me[t]=function(e,t,T){var n,r;return T||(r=me[t],me[t]=n,n=null!=Q(e,t,T)?t.toLowerCase():null,me[t]=r),n}});var ge=/^(?:input|select|textarea|button)$/i,He=/^(?:a|area)$/i;L.fn.extend({prop:function(e,t){return A(this,L.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[L.propFix[e]||e]})}}),L.extend({prop:function(e,t,Q){var T,n,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&L.isXMLDoc(e)||(t=L.propFix[t]||t,n=L.propHooks[t]),void 0!==Q?n&&"set"in n&&void 0!==(T=n.set(e,Q,t))?T:e[t]=Q:n&&"get"in n&&null!==(T=n.get(e,t))?T:e[t]},propHooks:{tabIndex:{get:function(e){var t=L.find.attr(e,"tabindex");return t?parseInt(t,10):ge.test(e.nodeName)||He.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),_.optSelected||(L.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)}}),L.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){L.propFix[this.toLowerCase()]=this});var Ee=/[\t\r\n\f]/g;L.fn.extend({addClass:function(e){var t,Q,T,n,r,i,o,a=0;if(L.isFunction(e))return this.each(function(t){L(this).addClass(e.call(this,t,getClass(this)))});if("string"==typeof e&&e)for(t=e.match(N)||[];Q=this[a++];)if(n=getClass(Q),T=1===Q.nodeType&&(" "+n+" ").replace(Ee," ")){for(i=0;r=t[i++];)T.indexOf(" "+r+" ")<0&&(T+=r+" ");o=L.trim(T),n!==o&&Q.setAttribute("class",o)}return this},removeClass:function(e){var t,Q,T,n,r,i,o,a=0;if(L.isFunction(e))return this.each(function(t){L(this).removeClass(e.call(this,t,getClass(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(N)||[];Q=this[a++];)if(n=getClass(Q),T=1===Q.nodeType&&(" "+n+" ").replace(Ee," ")){for(i=0;r=t[i++];)for(;T.indexOf(" "+r+" ")>-1;)T=T.replace(" "+r+" "," ");o=L.trim(T),n!==o&&Q.setAttribute("class",o)}return this},toggleClass:function(e,t){var Q=typeof e;return"boolean"==typeof t&&"string"===Q?t?this.addClass(e):this.removeClass(e):L.isFunction(e)?this.each(function(Q){L(this).toggleClass(e.call(this,Q,getClass(this),t),t)}):this.each(function(){var t,T,n,r;if("string"===Q)for(T=0,n=L(this),r=e.match(N)||[];t=r[T++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==e&&"boolean"!==Q||(t=getClass(this),t&&I.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":I.get(this,"__className__")||""))})},hasClass:function(e){var t,Q,T=0;for(t=" "+e+" ";Q=this[T++];)if(1===Q.nodeType&&(" "+getClass(Q)+" ").replace(Ee," ").indexOf(t)>-1)return!0;return!1}});var ye=/\r/g,be=/[\x20\t\r\n\f]+/g;L.fn.extend({val:function(e){var t,Q,T,n=this[0];{if(arguments.length)return T=L.isFunction(e),this.each(function(Q){var n;1===this.nodeType&&(n=T?e.call(this,Q,L(this).val()):e,null==n?n="":"number"==typeof n?n+="":L.isArray(n)&&(n=L.map(n,function(e){return null==e?"":e+""})),(t=L.valHooks[this.type]||L.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))});if(n)return(t=L.valHooks[n.type]||L.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(Q=t.get(n,"value"))?Q:(Q=n.value,"string"==typeof Q?Q.replace(ye,""):null==Q?"":Q)}}}),L.extend({valHooks:{option:{get:function(e){var t=L.find.attr(e,"value");return null!=t?t:L.trim(L.text(e)).replace(be," ")}},select:{get:function(e){for(var t,Q,T=e.options,n=e.selectedIndex,r="select-one"===e.type||n<0,i=r?null:[],o=r?n+1:T.length,a=n<0?o:r?n:0;a-1)&&(Q=!0);return Q||(e.selectedIndex=-1),r}}}}),L.each(["radio","checkbox"],function(){L.valHooks[this]={set:function(e,t){if(L.isArray(t))return e.checked=L.inArray(L(e).val(),t)>-1}},_.checkOn||(L.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ve=/^(?:focusinfocus|focusoutblur)$/;L.extend(L.event,{trigger:function(e,t,T,n){var r,i,a,s,l,c,u,d=[T||o],_=p.call(e,"type")?e.type:e,f=p.call(e,"namespace")?e.namespace.split("."):[];if(i=a=T=T||o,3!==T.nodeType&&8!==T.nodeType&&!ve.test(_+L.event.triggered)&&(_.indexOf(".")>-1&&(f=_.split("."),_=f.shift(),f.sort()),l=_.indexOf(":")<0&&"on"+_,e=e[L.expando]?e:new L.Event(_,"object"==typeof e&&e),e.isTrigger=n?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=T),t=null==t?[e]:L.makeArray(t,[e]),u=L.event.special[_]||{},n||!u.trigger||!1!==u.trigger.apply(T,t))){if(!n&&!u.noBubble&&!L.isWindow(T)){for(s=u.delegateType||_,ve.test(s+_)||(i=i.parentNode);i;i=i.parentNode)d.push(i),a=i;a===(T.ownerDocument||o)&&d.push(a.defaultView||a.parentWindow||Q)}for(r=0;(i=d[r++])&&!e.isPropagationStopped();)e.type=r>1?s:u.bindType||_,c=(I.get(i,"events")||{})[e.type]&&I.get(i,"handle"),c&&c.apply(i,t),(c=l&&i[l])&&c.apply&&x(i)&&(e.result=c.apply(i,t),!1===e.result&&e.preventDefault());return e.type=_,n||e.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),t)||!x(T)||l&&L.isFunction(T[_])&&!L.isWindow(T)&&(a=T[l],a&&(T[l]=null),L.event.triggered=_,T[_](),L.event.triggered=void 0,a&&(T[l]=a)),e.result}},simulate:function(e,t,Q){var T=L.extend(new L.Event,Q,{type:e,isSimulated:!0});L.event.trigger(T,null,t)}}),L.fn.extend({trigger:function(e,t){return this.each(function(){L.event.trigger(e,t,this)})},triggerHandler:function(e,t){var Q=this[0];if(Q)return L.event.trigger(e,t,Q,!0)}}),L.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){L.fn[t]=function(e,Q){return arguments.length>0?this.on(t,null,e,Q):this.trigger(t)}}),L.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),_.focusin="onfocusin"in Q,_.focusin||L.each({focus:"focusin",blur:"focusout"},function(e,t){var Q=function(e){L.event.simulate(t,e.target,L.event.fix(e))};L.event.special[t]={setup:function(){var T=this.ownerDocument||this,n=I.access(T,t);n||T.addEventListener(e,Q,!0),I.access(T,t,(n||0)+1)},teardown:function(){var T=this.ownerDocument||this,n=I.access(T,t)-1;n?I.access(T,t,n):(T.removeEventListener(e,Q,!0),I.remove(T,t))}}});var Se=Q.location,Oe=L.now(),Ce=/\?/;L.parseJSON=function(e){return JSON.parse(e+"")},L.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new Q.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||L.error("Invalid XML: "+e),t};var Me=/#.*$/,Ve=/([?&])_=[^&]*/,Ne=/^(.*?):[ \t]*([^\r\n]*)$/gm,Re=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ae=/^(?:GET|HEAD)$/,xe=/^\/\//,Ie={},we={},De="*/".concat("*"),Pe=o.createElement("a");Pe.href=Se.href,L.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Se.href,type:"GET",isLocal:Re.test(Se.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":De,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":L.parseJSON,"text xml":L.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?ajaxExtend(ajaxExtend(e,L.ajaxSettings),t):ajaxExtend(L.ajaxSettings,e)},ajaxPrefilter:addToPrefiltersOrTransports(Ie),ajaxTransport:addToPrefiltersOrTransports(we),ajax:function(e,t){function done(e,t,i,o){var s,c,m,g,E,b=t;2!==H&&(H=2,a&&Q.clearTimeout(a),T=void 0,r=o||"",y.readyState=e>0?4:0,s=e>=200&&e<300||304===e,i&&(g=ajaxHandleResponses(u,y,i)),g=ajaxConvert(u,g,y,s),s?(u.ifModified&&(E=y.getResponseHeader("Last-Modified"),E&&(L.lastModified[n]=E),(E=y.getResponseHeader("etag"))&&(L.etag[n]=E)),204===e||"HEAD"===u.type?b="nocontent":304===e?b="notmodified":(b=g.state,c=g.data,m=g.error,s=!m)):(m=b,!e&&b||(b="error",e<0&&(e=0))),y.status=e,y.statusText=(t||b)+"",s?_.resolveWith(d,[c,b,y]):_.rejectWith(d,[y,b,m]),y.statusCode(h),h=void 0,l&&p.trigger(s?"ajaxSuccess":"ajaxError",[y,u,s?c:m]),f.fireWith(d,[y,b]),l&&(p.trigger("ajaxComplete",[y,u]),--L.active||L.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var T,n,r,i,a,s,l,c,u=L.ajaxSetup({},t),d=u.context||u,p=u.context&&(d.nodeType||d.jquery)?L(d):L.event,_=L.Deferred(),f=L.Callbacks("once memory"),h=u.statusCode||{},m={},g={},H=0,E="canceled",y={readyState:0,getResponseHeader:function(e){var t;if(2===H){if(!i)for(i={};t=Ne.exec(r);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===H?r:null},setRequestHeader:function(e,t){var Q=e.toLowerCase();return H||(e=g[Q]=g[Q]||e,m[e]=t),this},overrideMimeType:function(e){return H||(u.mimeType=e),this},statusCode:function(e){var t;if(e)if(H<2)for(t in e)h[t]=[h[t],e[t]];else y.always(e[y.status]);return this},abort:function(e){var t=e||E;return T&&T.abort(t),done(0,t),this}};if(_.promise(y).complete=f.add,y.success=y.done,y.error=y.fail,u.url=((e||u.url||Se.href)+"").replace(Me,"").replace(xe,Se.protocol+"//"),u.type=t.method||t.type||u.method||u.type,u.dataTypes=L.trim(u.dataType||"*").toLowerCase().match(N)||[""],null==u.crossDomain){s=o.createElement("a");try{s.href=u.url,s.href=s.href,u.crossDomain=Pe.protocol+"//"+Pe.host!=s.protocol+"//"+s.host}catch(e){u.crossDomain=!0}}if(u.data&&u.processData&&"string"!=typeof u.data&&(u.data=L.param(u.data,u.traditional)),inspectPrefiltersOrTransports(Ie,u,t,y),2===H)return y;l=L.event&&u.global,l&&0==L.active++&&L.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!Ae.test(u.type),n=u.url,u.hasContent||(u.data&&(n=u.url+=(Ce.test(n)?"&":"?")+u.data,delete u.data),!1===u.cache&&(u.url=Ve.test(n)?n.replace(Ve,"$1_="+Oe++):n+(Ce.test(n)?"&":"?")+"_="+Oe++)),u.ifModified&&(L.lastModified[n]&&y.setRequestHeader("If-Modified-Since",L.lastModified[n]),L.etag[n]&&y.setRequestHeader("If-None-Match",L.etag[n])),(u.data&&u.hasContent&&!1!==u.contentType||t.contentType)&&y.setRequestHeader("Content-Type",u.contentType),y.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+De+"; q=0.01":""):u.accepts["*"]);for(c in u.headers)y.setRequestHeader(c,u.headers[c]);if(u.beforeSend&&(!1===u.beforeSend.call(d,y,u)||2===H))return y.abort();E="abort";for(c in{success:1,error:1,complete:1})y[c](u[c]);if(T=inspectPrefiltersOrTransports(we,u,t,y)){if(y.readyState=1,l&&p.trigger("ajaxSend",[y,u]),2===H)return y;u.async&&u.timeout>0&&(a=Q.setTimeout(function(){y.abort("timeout")},u.timeout));try{H=1,T.send(m,done)}catch(e){if(!(H<2))throw e;done(-1,e)}}else done(-1,"No Transport");return y},getJSON:function(e,t,Q){return L.get(e,t,Q,"json")},getScript:function(e,t){return L.get(e,void 0,t,"script")}}),L.each(["get","post"],function(e,t){L[t]=function(e,Q,T,n){return L.isFunction(Q)&&(n=n||T,T=Q,Q=void 0),L.ajax(L.extend({url:e,type:t,dataType:n,data:Q,success:T},L.isPlainObject(e)&&e))}}),L._evalUrl=function(e){return L.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},L.fn.extend({wrapAll:function(e){var t;return L.isFunction(e)?this.each(function(t){L(this).wrapAll(e.call(this,t))}):(this[0]&&(t=L(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 L.isFunction(e)?this.each(function(t){L(this).wrapInner(e.call(this,t))}):this.each(function(){var t=L(this),Q=t.contents();Q.length?Q.wrapAll(e):t.append(e)})},wrap:function(e){var t=L.isFunction(e);return this.each(function(Q){L(this).wrapAll(t?e.call(this,Q):e)})},unwrap:function(){return this.parent().each(function(){L.nodeName(this,"body")||L(this).replaceWith(this.childNodes)}).end()}}),L.expr.filters.hidden=function(e){return!L.expr.filters.visible(e)},L.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var ke=/%20/g,Be=/\[\]$/,Fe=/\r?\n/g,Ue=/^(?:submit|button|image|reset|file)$/i,Ge=/^(?:input|select|textarea|keygen)/i;L.param=function(e,t){var Q,T=[],n=function(e,t){t=L.isFunction(t)?t():null==t?"":t,T[T.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=L.ajaxSettings&&L.ajaxSettings.traditional),L.isArray(e)||e.jquery&&!L.isPlainObject(e))L.each(e,function(){n(this.name,this.value)});else for(Q in e)buildParams(Q,e[Q],t,n);return T.join("&").replace(ke,"+")},L.fn.extend({serialize:function(){return L.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=L.prop(this,"elements");return e?L.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!L(this).is(":disabled")&&Ge.test(this.nodeName)&&!Ue.test(e)&&(this.checked||!G.test(e))}).map(function(e,t){var Q=L(this).val();return null==Q?null:L.isArray(Q)?L.map(Q,function(e){return{name:t.name,value:e.replace(Fe,"\r\n")}}):{name:t.name,value:Q.replace(Fe,"\r\n")}}).get()}}),L.ajaxSettings.xhr=function(){try{return new Q.XMLHttpRequest}catch(e){}};var Ze={0:200,1223:204},Ye=L.ajaxSettings.xhr();_.cors=!!Ye&&"withCredentials"in Ye,_.ajax=Ye=!!Ye,L.ajaxTransport(function(e){var t,T;if(_.cors||Ye&&!e.crossDomain)return{send:function(n,r){var i,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)o[i]=e.xhrFields[i];e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)o.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(t=T=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?r(0,"error"):r(o.status,o.statusText):r(Ze[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),T=o.onerror=t("error"),void 0!==o.onabort?o.onabort=T:o.onreadystatechange=function(){4===o.readyState&&Q.setTimeout(function(){t&&T()})},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),L.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 L.globalEval(e),e}}}),L.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),L.ajaxTransport("script",function(e){if(e.crossDomain){var t,Q;return{send:function(T,n){t=L("