script.min.js 365 KB

1
  1. if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(f,t){function e(t,e){return e.toUpperCase()}var n=[],u=n.slice,g=n.concat,a=n.push,r=n.indexOf,i={},o=i.toString,m=i.hasOwnProperty,v={},y=f.document,s="2.1.4",E=function(t,e){return new E.fn.init(t,e)},l=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,c=/^-ms-/,d=/-([\da-z])/gi;function h(t){var e="length"in t&&t.length,n=E.type(t);return"function"!==n&&!E.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t))}E.fn=E.prototype={jquery:s,constructor:E,selector:"",length:0,toArray:function(){return u.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:u.call(this)},pushStack:function(t){var e=E.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return E.each(this,t,e)},map:function(n){return this.pushStack(E.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(0<=n&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:a,sort:n.sort,splice:n.splice},E.extend=E.fn.extend=function(){var t,e,n,i,r,o,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||E.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=s[e],s!==(i=t[e])&&(c&&i&&(E.isPlainObject(i)||(r=E.isArray(i)))?(o=r?(r=!1,n&&E.isArray(n)?n:[]):n&&E.isPlainObject(n)?n:{},s[e]=E.extend(c,o,i)):void 0!==i&&(s[e]=i));return s},E.extend({expando:"jQuery"+(s+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===E.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!E.isArray(t)&&0<=t-parseFloat(t)+1},isPlainObject:function(t){return"object"===E.type(t)&&!t.nodeType&&!E.isWindow(t)&&!(t.constructor&&!m.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[o.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=E.trim(t))&&(1===t.indexOf("use strict")?((e=y.createElement("script")).text=t,y.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(c,"ms-").replace(d,e)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var i=0,r=t.length,o=h(t);if(n){if(o)for(;i<r&&!1!==e.apply(t[i],n);i++);else for(i in t)if(!1===e.apply(t[i],n))break}else if(o)for(;i<r&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(l,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(h(Object(t))?E.merge(n,"string"==typeof t?[t]:t):a.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:r.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,s=!n;r<o;r++)!e(t[r],r)!=s&&i.push(t[r]);return i},map:function(t,e,n){var i,r=0,o=t.length,s=[];if(h(t))for(;r<o;r++)null!=(i=e(t[r],r,n))&&s.push(i);else for(r in t)null!=(i=e(t[r],r,n))&&s.push(i);return g.apply([],s)},guid:1,proxy:function(t,e){var n,i,r;return"string"==typeof e&&(n=t[e],e=t,t=n),E.isFunction(t)?(i=u.call(arguments,2),(r=function(){return t.apply(e||this,i.concat(u.call(arguments)))}).guid=t.guid=t.guid||E.guid++,r):void 0},now:Date.now,support:v}),E.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var p=function(n){function d(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function i(){v()}var t,f,w,o,r,g,h,m,x,c,u,v,T,s,y,b,a,p,E,k="sizzle"+1*new Date,S=n.document,D=0,C=0,l=ot(),_=ot(),A=ot(),N=function(t,e){return t===e&&(u=!0),0},M={}.hasOwnProperty,e=[],$=e.pop,O=e.push,R=e.push,F=e.slice,P=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",j=L.replace("w","w#"),z="\\["+H+"*("+L+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+H+"*\\]",Y=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",W=new RegExp(H+"+","g"),U=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),G=new RegExp("^"+H+"*,"+H+"*"),V=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),q=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),B=new RegExp(Y),Z=new RegExp("^"+j+"$"),X={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L.replace("w","w*")+")"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,tt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,et=/[+~]/,nt=/'|\\/g,it=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig");try{R.apply(e=F.call(S.childNodes),S.childNodes),e[S.childNodes.length].nodeType}catch(t){R={apply:e.length?function(t,e){O.apply(t,F.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function rt(t,e,n,i){var r,o,s,a,l,c,u,d,h,p;if((e?e.ownerDocument||e:S)!==T&&v(e),n=n||[],a=(e=e||T).nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return n;if(!i&&y){if(11!==a&&(r=tt.exec(t)))if(s=r[1]){if(9===a){if(!(o=e.getElementById(s))||!o.parentNode)return n;if(o.id===s)return n.push(o),n}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(s))&&E(e,o)&&o.id===s)return n.push(o),n}else{if(r[2])return R.apply(n,e.getElementsByTagName(t)),n;if((s=r[3])&&f.getElementsByClassName)return R.apply(n,e.getElementsByClassName(s)),n}if(f.qsa&&(!b||!b.test(t))){if(d=u=k,h=e,p=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(c=g(t),(u=e.getAttribute("id"))?d=u.replace(nt,"\\$&"):e.setAttribute("id",d),d="[id='"+d+"'] ",l=c.length;l--;)c[l]=d+gt(c[l]);h=et.test(t)&&pt(e.parentNode)||e,p=c.join(",")}if(p)try{return R.apply(n,h.querySelectorAll(p)),n}catch(t){}finally{u||e.removeAttribute("id")}}}return m(t.replace(U,"$1"),e,n,i)}function ot(){var i=[];return function t(e,n){return i.push(e+" ")>w.cacheLength&&delete t[i.shift()],t[e+" "]=n}}function st(t){return t[k]=!0,t}function at(t){var e=T.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),i=t.length;i--;)w.attrHandle[n[i]]=e}function ct(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function dt(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}function ht(s){return st(function(o){return o=+o,st(function(t,e){for(var n,i=s([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function pt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=rt.support={},r=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},v=rt.setDocument=function(t){var e,n,l=t?t.ownerDocument||t:S;return l!==T&&9===l.nodeType&&l.documentElement?(s=(T=l).documentElement,(n=l.defaultView)&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",i,!1):n.attachEvent&&n.attachEvent("onunload",i)),y=!r(l),f.attributes=at(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=at(function(t){return t.appendChild(l.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=K.test(l.getElementsByClassName),f.getById=at(function(t){return s.appendChild(t).id=k,!l.getElementsByName||!l.getElementsByName(k).length}),f.getById?(w.find.ID=function(t,e){if(void 0!==e.getElementById&&y){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(t){var e=t.replace(it,d);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var n=t.replace(it,d);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===n}}),w.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(t,e){return y?e.getElementsByClassName(t):void 0},a=[],b=[],(f.qsa=K.test(l.querySelectorAll))&&(at(function(t){s.appendChild(t).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&b.push("[*^$]="+H+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||b.push("\\["+H+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+k+"-]").length||b.push("~="),t.querySelectorAll(":checked").length||b.push(":checked"),t.querySelectorAll("a#"+k+"+*").length||b.push(".#.+[+~]")}),at(function(t){var e=l.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&b.push("name"+H+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||b.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),b.push(",.*:")})),(f.matchesSelector=K.test(p=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&at(function(t){f.disconnectedMatch=p.call(t,"div"),p.call(t,"[s!='']:x"),a.push("!=",Y)}),b=b.length&&new RegExp(b.join("|")),a=a.length&&new RegExp(a.join("|")),e=K.test(s.compareDocumentPosition),E=e||K.test(s.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},N=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===l||t.ownerDocument===S&&E(S,t)?-1:e===l||e.ownerDocument===S&&E(S,e)?1:c?P(c,t)-P(c,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,s=[t],a=[e];if(!r||!o)return t===l?-1:e===l?1:r?-1:o?1:c?P(c,t)-P(c,e):0;if(r===o)return ct(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ct(s[i],a[i]):s[i]===S?-1:a[i]===S?1:0},l):T},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==T&&v(t),e=e.replace(q,"='$1']"),!(!f.matchesSelector||!y||a&&a.test(e)||b&&b.test(e)))try{var n=p.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<rt(e,T,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!==T&&v(t),E(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==T&&v(t);var n=w.attrHandle[e.toLowerCase()],i=n&&M.call(w.attrHandle,e.toLowerCase())?n(t,e,!y):void 0;return void 0!==i?i:f.attributes||!y?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,n=[],i=0,r=0;if(u=!f.detectDuplicates,c=!f.sortStable&&t.slice(0),t.sort(N),u){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return c=null,t},o=rt.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(w=rt.selectors={cacheLength:50,createPseudo:st,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(it,d),t[3]=(t[3]||t[4]||t[5]||"").replace(it,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&B.test(n)&&(e=g(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(it,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=l[t+" "];return e||(e=new RegExp("(^|"+H+")"+t+"("+H+"|$)"))&&l(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(t){var e=rt.attr(t,n);return null==e?"!="===i:!i||(e+="","="===i?e===r:"!="===i?e!==r:"^="===i?r&&0===e.indexOf(r):"*="===i?r&&-1<e.indexOf(r):"$="===i?r&&e.slice(-r.length)===r:"~="===i?-1<(" "+e.replace(W," ")+" ").indexOf(r):"|="===i&&(e===r||e.slice(0,r.length+1)===r+"-"))}},CHILD:function(p,t,e,f,g){var m="nth"!==p.slice(0,3),v="last"!==p.slice(-4),y="of-type"===t;return 1===f&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,r,o,s,a,l,c=m!=v?"nextSibling":"previousSibling",u=t.parentNode,d=y&&t.nodeName.toLowerCase(),h=!n&&!y;if(u){if(m){for(;c;){for(o=t;o=o[c];)if(y?o.nodeName.toLowerCase()===d:1===o.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[v?u.firstChild:u.lastChild],v&&h){for(a=(i=(r=u[k]||(u[k]={}))[p]||[])[0]===D&&i[1],s=i[0]===D&&i[2],o=a&&u.childNodes[a];o=++a&&o&&o[c]||(s=a=0)||l.pop();)if(1===o.nodeType&&++s&&o===t){r[p]=[D,a,s];break}}else if(h&&(i=(t[k]||(t[k]={}))[p])&&i[0]===D)s=i[1];else for(;(o=++a&&o&&o[c]||(s=a=0)||l.pop())&&((y?o.nodeName.toLowerCase()!==d:1!==o.nodeType)||!++s||(h&&((o[k]||(o[k]={}))[p]=[D,s]),o!==t)););return(s-=g)===f||s%f==0&&0<=s/f}}},PSEUDO:function(t,o){var e,s=w.pseudos[t]||w.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return s[k]?s(o):1<s.length?(e=[t,t,"",o],w.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,e){for(var n,i=s(t,o),r=i.length;r--;)t[n=P(t,i[r])]=!(e[n]=i[r])}):function(t){return s(t,0,e)}):s}},pseudos:{not:st(function(t){var i=[],r=[],a=h(t.replace(U,"$1"));return a[k]?st(function(t,e,n,i){for(var r,o=a(t,null,i,[]),s=t.length;s--;)(r=o[s])&&(t[s]=!(e[s]=r))}):function(t,e,n){return i[0]=t,a(i,null,n,r),i[0]=null,!r.pop()}}),has:st(function(e){return function(t){return 0<rt(e,t).length}}),contains:st(function(e){return e=e.replace(it,d),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:st(function(n){return Z.test(n||"")||rt.error("unsupported lang: "+n),n=n.replace(it,d).toLowerCase(),function(t){var e;do{if(e=y?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===s},focus:function(t){return t===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ht(function(){return[0]}),last:ht(function(t,e){return[e-1]}),eq:ht(function(t,e,n){return[n<0?n+e:n]}),even:ht(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ht(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ht(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:ht(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[t]=ut(t);for(t in{submit:!0,reset:!0})w.pseudos[t]=dt(t);function ft(){}function gt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function mt(s,t,e){var a=t.dir,l=e&&"parentNode"===a,c=C++;return t.first?function(t,e,n){for(;t=t[a];)if(1===t.nodeType||l)return s(t,e,n)}:function(t,e,n){var i,r,o=[D,c];if(n){for(;t=t[a];)if((1===t.nodeType||l)&&s(t,e,n))return!0}else for(;t=t[a];)if(1===t.nodeType||l){if((i=(r=t[k]||(t[k]={}))[a])&&i[0]===D&&i[1]===c)return o[2]=i[2];if((r[a]=o)[2]=s(t,e,n))return!0}}}function vt(r){return 1<r.length?function(t,e,n){for(var i=r.length;i--;)if(!r[i](t,e,n))return!1;return!0}:r[0]}function yt(t,e,n,i,r){for(var o,s=[],a=0,l=t.length,c=null!=e;a<l;a++)!(o=t[a])||n&&!n(o,i,r)||(s.push(o),c&&e.push(a));return s}function bt(p,f,g,m,v,t){return m&&!m[k]&&(m=bt(m)),v&&!v[k]&&(v=bt(v,t)),st(function(t,e,n,i){var r,o,s,a=[],l=[],c=e.length,u=t||function(t,e,n){for(var i=0,r=e.length;i<r;i++)rt(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),d=!p||!t&&f?u:yt(u,a,p,n,i),h=g?v||(t?p:c||m)?[]:e:d;if(g&&g(d,h,n,i),m)for(r=yt(h,l),m(r,[],n,i),o=r.length;o--;)(s=r[o])&&(h[l[o]]=!(d[l[o]]=s));if(t){if(v||p){if(v){for(r=[],o=h.length;o--;)(s=h[o])&&r.push(d[o]=s);v(null,h=[],r,i)}for(o=h.length;o--;)(s=h[o])&&-1<(r=v?P(t,s):a[o])&&(t[r]=!(e[r]=s))}}else h=yt(h===e?h.splice(c,h.length):h),v?v(null,e,h,i):R.apply(e,h)})}function wt(t){for(var r,e,n,i=t.length,o=w.relative[t[0].type],s=o||w.relative[" "],a=o?1:0,l=mt(function(t){return t===r},s,!0),c=mt(function(t){return-1<P(r,t)},s,!0),u=[function(t,e,n){var i=!o&&(n||e!==x)||((r=e).nodeType?l(t,e,n):c(t,e,n));return r=null,i}];a<i;a++)if(e=w.relative[t[a].type])u=[mt(vt(u),e)];else{if((e=w.filter[t[a].type].apply(null,t[a].matches))[k]){for(n=++a;n<i&&!w.relative[t[n].type];n++);return bt(1<a&&vt(u),1<a&&gt(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(U,"$1"),e,a<n&&wt(t.slice(a,n)),n<i&&wt(t=t.slice(n)),n<i&&gt(t))}u.push(e)}return vt(u)}return ft.prototype=w.filters=w.pseudos,w.setFilters=new ft,g=rt.tokenize=function(t,e){var n,i,r,o,s,a,l,c=_[t+" "];if(c)return e?0:c.slice(0);for(s=t,a=[],l=w.preFilter;s;){for(o in n&&!(i=G.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(r=[])),n=!1,(i=V.exec(s))&&(n=i.shift(),r.push({value:n,type:i[0].replace(U," ")}),s=s.slice(n.length)),w.filter)!(i=X[o].exec(s))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?rt.error(t):_(t,a).slice(0)},h=rt.compile=function(t,e){var n,i=[],r=[],o=A[t+" "];if(!o){for(n=(e=e||g(t)).length;n--;)(o=wt(e[n]))[k]?i.push(o):r.push(o);(o=A(t,function(m,v){function t(t,e,n,i,r){var o,s,a,l=0,c="0",u=t&&[],d=[],h=x,p=t||b&&w.find.TAG("*",r),f=D+=null==h?1:Math.random()||.1,g=p.length;for(r&&(x=e!==T&&e);c!==g&&null!=(o=p[c]);c++){if(b&&o){for(s=0;a=m[s++];)if(a(o,e,n)){i.push(o);break}r&&(D=f)}y&&((o=!a&&o)&&l--,t&&u.push(o))}if(l+=c,y&&c!==l){for(s=0;a=v[s++];)a(u,d,e,n);if(t){if(0<l)for(;c--;)u[c]||d[c]||(d[c]=$.call(i));d=yt(d)}R.apply(i,d),r&&!t&&0<d.length&&1<l+v.length&&rt.uniqueSort(i)}return r&&(D=f,x=h),u}var y=0<v.length,b=0<m.length;return y?st(t):t}(r,i))).selector=t}return o},m=rt.select=function(t,e,n,i){var r,o,s,a,l,c="function"==typeof t&&t,u=!i&&g(t=c.selector||t);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(s=o[0]).type&&f.getById&&9===e.nodeType&&y&&w.relative[o[1].type]){if(!(e=(w.find.ID(s.matches[0].replace(it,d),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=X.needsContext.test(t)?0:o.length;r--&&(s=o[r],!w.relative[a=s.type]);)if((l=w.find[a])&&(i=l(s.matches[0].replace(it,d),et.test(o[0].type)&&pt(e.parentNode)||e))){if(o.splice(r,1),!(t=i.length&&gt(o)))return R.apply(n,i),n;break}}return(c||h(t,u))(i,e,!y,n,et.test(t)&&pt(e.parentNode)||e),n},f.sortStable=k.split("").sort(N).join("")===k,f.detectDuplicates=!!u,v(),f.sortDetached=at(function(t){return 1&t.compareDocumentPosition(T.createElement("div"))}),at(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&at(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),at(function(t){return null==t.getAttribute("disabled")})||lt(I,function(t,e,n){var i;return n?void 0:!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),rt}(f);E.find=p,E.expr=p.selectors,E.expr[":"]=E.expr.pseudos,E.unique=p.uniqueSort,E.text=p.getText,E.isXMLDoc=p.isXML,E.contains=p.contains;var b=E.expr.match.needsContext,w=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function T(t,n,i){if(E.isFunction(n))return E.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return E.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(x.test(n))return E.filter(n,t,i);n=E.filter(n,t)}return E.grep(t,function(t){return 0<=r.call(n,t)!==i})}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<n;e++)if(E.contains(r[e],this))return!0}));for(e=0;e<n;e++)E.find(t,r[e],i);return(i=this.pushStack(1<n?E.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(T(this,t||[],!1))},not:function(t){return this.pushStack(T(this,t||[],!0))},is:function(t){return!!T(this,"string"==typeof t&&b.test(t)?E(t):t||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(E.fn.init=function(t,e){var n,i;if(!t)return this;if("string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):E.isFunction(t)?void 0!==k.ready?k.ready(t):t(E):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),E.makeArray(t,this));if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:S.exec(t))||!n[1]&&e)return!e||e.jquery?(e||k).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),w.test(n[1])&&E.isPlainObject(e))for(n in e)E.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(i=y.getElementById(n[2]))&&i.parentNode&&(this.length=1,this[0]=i),this.context=y,this.selector=t,this}).prototype=E.fn,k=E(y);var D=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};function _(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.extend({dir:function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&E(t).is(n))break;i.push(t)}return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],s=b.test(t)||"string"!=typeof t?E(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&E.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?E.unique(o):o)},index:function(t){return t?"string"==typeof t?r.call(E(t),this[0]):r.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.unique(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return E.dir(t,"parentNode")},parentsUntil:function(t,e,n){return E.dir(t,"parentNode",n)},next:function(t){return _(t,"nextSibling")},prev:function(t){return _(t,"previousSibling")},nextAll:function(t){return E.dir(t,"nextSibling")},prevAll:function(t){return E.dir(t,"previousSibling")},nextUntil:function(t,e,n){return E.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return E.dir(t,"previousSibling",n)},siblings:function(t){return E.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return E.sibling(t.firstChild)},contents:function(t){return t.contentDocument||E.merge([],t.childNodes)}},function(i,r){E.fn[i]=function(t,e){var n=E.map(this,r,t);return"Until"!==i.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=E.filter(e,n)),1<this.length&&(C[i]||E.unique(n),D.test(i)&&n.reverse()),this.pushStack(n)}});var A,N=/\S+/g,M={};function $(){y.removeEventListener("DOMContentLoaded",$,!1),f.removeEventListener("load",$,!1),E.ready()}E.Callbacks=function(r){r="string"==typeof r?M[r]||function(t){var n=M[t]={};return E.each(t.match(N)||[],function(t,e){n[e]=!0}),n}(r):E.extend({},r);var e,n,i,o,s,a,l=[],c=!r.once&&[],u=function(t){for(e=r.memory&&t,n=!0,a=o||0,o=0,s=l.length,i=!0;l&&a<s;a++)if(!1===l[a].apply(t[0],t[1])&&r.stopOnFalse){e=!1;break}i=!1,l&&(c?c.length&&u(c.shift()):e?l=[]:d.disable())},d={add:function(){if(l){var t=l.length;!function i(t){E.each(t,function(t,e){var n=E.type(e);"function"===n?r.unique&&d.has(e)||l.push(e):e&&e.length&&"string"!==n&&i(e)})}(arguments),i?s=l.length:e&&(o=t,u(e))}return this},remove:function(){return l&&E.each(arguments,function(t,e){for(var n;-1<(n=E.inArray(e,l,n));)l.splice(n,1),i&&(n<=s&&s--,n<=a&&a--)}),this},has:function(t){return t?-1<E.inArray(t,l):!(!l||!l.length)},empty:function(){return l=[],s=0,this},disable:function(){return l=c=e=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,e||d.disable(),this},locked:function(){return!c},fireWith:function(t,e){return!l||n&&!c||(e=[t,(e=e||[]).slice?e.slice():e],i?c.push(e):u(e)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},E.extend({Deferred:function(t){var o=[["resolve","done",E.Callbacks("once memory"),"resolved"],["reject","fail",E.Callbacks("once memory"),"rejected"],["notify","progress",E.Callbacks("memory")]],r="pending",s={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var r=arguments;return E.Deferred(function(i){E.each(o,function(t,e){var n=E.isFunction(r[t])&&r[t];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&E.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[e[0]+"With"](this===s?i.promise():this,n?[t]:arguments)})}),r=null}).promise()},promise:function(t){return null!=t?E.extend(t,s):s}},a={};return s.pipe=s.then,E.each(o,function(t,e){var n=e[2],i=e[3];s[e[1]]=n.add,i&&n.add(function(){r=i},o[1^t][2].disable,o[2][2].lock),a[e[0]]=function(){return a[e[0]+"With"](this===a?s:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){function e(e,n,i){return function(t){n[e]=this,i[e]=1<arguments.length?u.call(arguments):t,i===r?c.notifyWith(n,i):--l||c.resolveWith(n,i)}}var r,n,i,o=0,s=u.call(arguments),a=s.length,l=1!==a||t&&E.isFunction(t.promise)?a:0,c=1===l?t:E.Deferred();if(1<a)for(r=new Array(a),n=new Array(a),i=new Array(a);o<a;o++)s[o]&&E.isFunction(s[o].promise)?s[o].promise().done(e(o,i,s)).fail(c.reject).progress(e(o,n,r)):--l;return l||c.resolveWith(i,s),c.promise()}}),E.fn.ready=function(t){return E.ready.promise().done(t),this},E.extend({isReady:!1,readyWait:1,holdReady:function(t){t?E.readyWait++:E.ready(!0)},ready:function(t){(!0===t?--E.readyWait:E.isReady)||((E.isReady=!0)!==t&&0<--E.readyWait||(A.resolveWith(y,[E]),E.fn.triggerHandler&&(E(y).triggerHandler("ready"),E(y).off("ready"))))}}),E.ready.promise=function(t){return A||(A=E.Deferred(),"complete"===y.readyState?setTimeout(E.ready):(y.addEventListener("DOMContentLoaded",$,!1),f.addEventListener("load",$,!1))),A.promise(t)},E.ready.promise();var O=E.access=function(t,e,n,i,r,o,s){var a=0,l=t.length,c=null==n;if("object"===E.type(n))for(a in r=!0,n)E.access(t,e,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,E.isFunction(i)||(s=!0),c&&(e=s?(e.call(t,i),null):(c=e,function(t,e,n){return c.call(E(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return r?t:c?e.call(t):l?e(t[0],n):o};function R(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=E.expando+R.uid++}E.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},R.uid=1,R.accepts=E.acceptData,R.prototype={key:function(e){if(!R.accepts(e))return 0;var n={},i=e[this.expando];if(!i){i=R.uid++;try{n[this.expando]={value:i},Object.defineProperties(e,n)}catch(t){n[this.expando]=i,E.extend(e,n)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,n){var i,r=this.key(t),o=this.cache[r];if("string"==typeof e)o[e]=n;else if(E.isEmptyObject(o))E.extend(this.cache[r],e);else for(i in e)o[i]=e[i];return o},get:function(t,e){var n=this.cache[this.key(t)];return void 0===e?n:n[e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(i=this.get(t,e))?i:this.get(t,E.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=this.key(t),s=this.cache[o];if(void 0===e)this.cache[o]={};else{n=(i=E.isArray(e)?e.concat(e.map(E.camelCase)):(r=E.camelCase(e),e in s?[e,r]:(i=r)in s?[i]:i.match(N)||[])).length;for(;n--;)delete s[i[n]]}},hasData:function(t){return!E.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var F=new R,P=new R,I=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,H=/([A-Z])/g;function L(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(H,"-$1").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:I.test(n)?E.parseJSON(n):n)}catch(t){}P.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return P.hasData(t)||F.hasData(t)},data:function(t,e,n){return P.access(t,e,n)},removeData:function(t,e){P.remove(t,e)},_data:function(t,e,n){return F.access(t,e,n)},_removeData:function(t,e){F.remove(t,e)}}),E.fn.extend({data:function(i,t){var e,n,r,o=this[0],s=o&&o.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){P.set(this,i)}):O(this,function(e){var t,n=E.camelCase(i);if(o&&void 0===e){if(void 0!==(t=P.get(o,i)))return t;if(void 0!==(t=P.get(o,n)))return t;if(void 0!==(t=L(o,n,void 0)))return t}else this.each(function(){var t=P.get(this,n);P.set(this,n,e),-1!==i.indexOf("-")&&void 0!==t&&P.set(this,i,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(r=P.get(o),1===o.nodeType&&!F.get(o,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&(0===(n=s[e].name).indexOf("data-")&&(n=E.camelCase(n.slice(5)),L(o,n,r[n])));F.set(o,"hasDataAttrs",!0)}return r},removeData:function(t){return this.each(function(){P.remove(this,t)})}}),E.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=F.get(t,e),n&&(!i||E.isArray(n)?i=F.access(t,e,E.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,r=n.shift(),o=E._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){E.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return F.get(t,n)||F.access(t,n,{empty:E.Callbacks("once memory").add(function(){F.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?E.queue(this[0],e):void 0===n?this:this.each(function(){var t=E.queue(this,e,n);E._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&E.dequeue(this,e)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--r||o.resolveWith(s,[s])}var i,r=1,o=E.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=F.get(s[a],t+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(e)}});function j(t,e){return t=e||t,"none"===E.css(t,"display")||!E.contains(t.ownerDocument,t)}var z,Y,W=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=["Top","Right","Bottom","Left"],G=/^(?:checkbox|radio)$/i;z=y.createDocumentFragment().appendChild(y.createElement("div")),(Y=y.createElement("input")).setAttribute("type","radio"),Y.setAttribute("checked","checked"),Y.setAttribute("name","t"),z.appendChild(Y),v.checkClone=z.cloneNode(!0).cloneNode(!0).lastChild.checked,z.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue;var V="undefined";v.focusinBubbles="onfocusin"in f;var q=/^key/,B=/^(?:mouse|pointer|contextmenu)|click/,Z=/^(?:focusinfocus|focusoutblur)$/,X=/^([^.]*)(?:\.(.+)|)$/;function Q(){return!0}function J(){return!1}function K(){try{return y.activeElement}catch(t){}}E.event={global:{},add:function(e,t,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=F.get(e);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return typeof E!=V&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(N)||[""]).length;c--;)p=g=(a=X.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(d=E.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=E.event.special[p]||{},u=E.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&E.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(p,s,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),E.event.global[p]=!0)},remove:function(t,e,n,i,r){var o,s,a,l,c,u,d,h,p,f,g,m=F.hasData(t)&&F.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(N)||[""]).length;c--;)if(p=g=(a=X.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(d=E.event.special[p]||{},h=l[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;o--;)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,f,m.handle)||E.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)E.event.remove(t,p+e[c],n,i,!0);E.isEmptyObject(l)&&(delete m.handle,F.remove(t,"events"))}},trigger:function(t,e,n,i){var r,o,s,a,l,c,u,d=[n||y],h=m.call(t,"type")?t.type:t,p=m.call(t,"namespace")?t.namespace.split("."):[];if(o=s=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Z.test(h+E.event.triggered)&&(0<=h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),l=h.indexOf(":")<0&&"on"+h,(t=t[E.expando]?t:new E.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=p.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),u=E.event.special[h]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!E.isWindow(n)){for(a=u.delegateType||h,Z.test(a+h)||(o=o.parentNode);o;o=o.parentNode)d.push(o),s=o;s===(n.ownerDocument||y)&&d.push(s.defaultView||s.parentWindow||f)}for(r=0;(o=d[r++])&&!t.isPropagationStopped();)t.type=1<r?a:u.bindType||h,(c=(F.get(o,"events")||{})[t.type]&&F.get(o,"handle"))&&c.apply(o,e),(c=l&&o[l])&&c.apply&&E.acceptData(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!E.acceptData(n)||l&&E.isFunction(n[h])&&!E.isWindow(n)&&((s=n[l])&&(n[l]=null),n[E.event.triggered=h](),E.event.triggered=void 0,s&&(n[l]=s)),t.result}},dispatch:function(t){t=E.event.fix(t);var e,n,i,r,o,s=[],a=u.call(arguments),l=(F.get(this,"events")||{})[t.type]||[],c=E.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(s=E.event.handlers.call(this,t,l),e=0;(r=s[e++])&&!t.isPropagationStopped();)for(t.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(i=((E.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a))&&!1===(t.result=i)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,s=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(!0!==l.disabled||"click"!==t.type){for(i=[],n=0;n<a;n++)void 0===i[r=(o=e[n]).selector+" "]&&(i[r]=o.needsContext?0<=E(r,this).index(l):E.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&s.push({elem:l,handlers:i})}return a<e.length&&s.push({elem:this,handlers:e.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r,o=e.button;return null==t.pageX&&null!=e.clientX&&(i=(n=t.target.ownerDocument||y).documentElement,r=n.body,t.pageX=e.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[E.expando])return t;var e,n,i,r=t.type,o=t,s=this.fixHooks[r];for(s||(this.fixHooks[r]=s=B.test(r)?this.mouseHooks:q.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,t=new E.Event(o),e=i.length;e--;)t[n=i[e]]=o[n];return t.target||(t.target=y),3===t.target.nodeType&&(t.target=t.target.parentNode),s.filter?s.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==K()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===K()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&E.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(t){return E.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var r=E.extend(new E.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?E.event.trigger(r,null,e):E.event.dispatch.call(e,r),r.isDefaultPrevented()&&n.preventDefault()}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)},E.Event=function(t,e){return this instanceof E.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Q:J):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||E.now(),void(this[E.expando]=!0)):new E.Event(t,e)},E.Event.prototype={isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Q,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Q,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Q,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){E.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||E.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=r),e}}}),v.focusinBubbles||E.each({focus:"focusin",blur:"focusout"},function(n,i){function r(t){E.event.simulate(i,t.target,E.event.fix(t),!0)}E.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=F.access(t,i);e||t.addEventListener(n,r,!0),F.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=F.access(t,i)-1;e?F.access(t,i,e):(t.removeEventListener(n,r,!0),F.remove(t,i))}}}),E.fn.extend({on:function(t,e,n,i,r){var o,s;if("object"==typeof t){for(s in"string"!=typeof e&&(n=n||e,e=void 0),t)this.on(s,e,n,t[s],r);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),!1===i)i=J;else if(!i)return this;return 1===r&&(o=i,(i=function(t){return E().off(t),o.apply(this,arguments)}).guid=o.guid||(o.guid=E.guid++)),this.each(function(){E.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=J),this.each(function(){E.event.remove(this,t,n,e)});for(r in t)this.off(r,e,t[r]);return this},trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?E.event.trigger(t,e,n,!0):void 0}});var tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,et=/<([\w:]+)/,nt=/<|&#?\w+;/,it=/<(?:script|style|link)/i,rt=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^$|\/(?:java|ecma)script/i,st=/^true\/(.*)/,at=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,lt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ct(t,e){return E.nodeName(t,"table")&&E.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function ut(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function dt(t){var e=st.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function ht(t,e){for(var n=0,i=t.length;n<i;n++)F.set(t[n],"globalEval",!e||F.get(e[n],"globalEval"))}function pt(t,e){var n,i,r,o,s,a,l,c;if(1===e.nodeType){if(F.hasData(t)&&(o=F.access(t),s=F.set(e,o),c=o.events))for(r in delete s.handle,s.events={},c)for(n=0,i=c[r].length;n<i;n++)E.event.add(e,r,c[r][n]);P.hasData(t)&&(a=P.access(t),l=E.extend({},a),P.set(e,l))}}function ft(t,e){var n=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&E.nodeName(t,e)?E.merge([t],n):n}lt.optgroup=lt.option,lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead,lt.th=lt.td,E.extend({clone:function(t,e,n){var i,r,o,s,a,l,c,u=t.cloneNode(!0),d=E.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(s=ft(u),i=0,r=(o=ft(t)).length;i<r;i++)a=o[i],l=s[i],void 0,"input"===(c=l.nodeName.toLowerCase())&&G.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(e)if(n)for(o=o||ft(t),s=s||ft(u),i=0,r=o.length;i<r;i++)pt(o[i],s[i]);else pt(t,u);return 0<(s=ft(u,"script")).length&&ht(s,!d&&ft(t,"script")),u},buildFragment:function(t,e,n,i){for(var r,o,s,a,l,c,u=e.createDocumentFragment(),d=[],h=0,p=t.length;h<p;h++)if((r=t[h])||0===r)if("object"===E.type(r))E.merge(d,r.nodeType?[r]:r);else if(nt.test(r)){for(o=o||u.appendChild(e.createElement("div")),s=(et.exec(r)||["",""])[1].toLowerCase(),a=lt[s]||lt._default,o.innerHTML=a[1]+r.replace(tt,"<$1></$2>")+a[2],c=a[0];c--;)o=o.lastChild;E.merge(d,o.childNodes),(o=u.firstChild).textContent=""}else d.push(e.createTextNode(r));for(u.textContent="",h=0;r=d[h++];)if((!i||-1===E.inArray(r,i))&&(l=E.contains(r.ownerDocument,r),o=ft(u.appendChild(r),"script"),l&&ht(o),n))for(c=0;r=o[c++];)ot.test(r.type||"")&&n.push(r);return u},cleanData:function(t){for(var e,n,i,r,o=E.event.special,s=0;void 0!==(n=t[s]);s++){if(E.acceptData(n)&&((r=n[F.expando])&&(e=F.cache[r]))){if(e.events)for(i in e.events)o[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);F.cache[r]&&delete F.cache[r]}delete P.cache[n[P.expando]]}}}),E.fn.extend({text:function(t){return O(this,function(t){return void 0===t?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ct(this,t).appendChild(t)})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=ct(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?E.filter(t,this):this,r=0;null!=(n=i[r]);r++)e||1!==n.nodeType||E.cleanData(ft(n)),n.parentNode&&(e&&E.contains(n.ownerDocument,n)&&ht(ft(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return O(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!it.test(t)&&!lt[(et.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(tt,"<$1></$2>");try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,E.cleanData(ft(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(n,i){n=g.apply([],n);var t,e,r,o,s,a,l=0,c=this.length,u=this,d=c-1,h=n[0],p=E.isFunction(h);if(p||1<c&&"string"==typeof h&&!v.checkClone&&rt.test(h))return this.each(function(t){var e=u.eq(t);p&&(n[0]=h.call(this,t,e.html())),e.domManip(n,i)});if(c&&(e=(t=E.buildFragment(n,this[0].ownerDocument,!1,this)).firstChild,1===t.childNodes.length&&(t=e),e)){for(o=(r=E.map(ft(t,"script"),ut)).length;l<c;l++)s=t,l!==d&&(s=E.clone(s,!0,!0),o&&E.merge(r,ft(s,"script"))),i.call(this[l],s,l);if(o)for(a=r[r.length-1].ownerDocument,E.map(r,dt),l=0;l<o;l++)s=r[l],ot.test(s.type||"")&&!F.access(s,"globalEval")&&E.contains(a,s)&&(s.src?E._evalUrl&&E._evalUrl(s.src):E.globalEval(s.textContent.replace(at,"")))}return this}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){E.fn[t]=function(t){for(var e,n=[],i=E(t),r=i.length-1,o=0;o<=r;o++)e=o===r?this:this.clone(!0),E(i[o])[s](e),a.apply(n,e.get());return this.pushStack(n)}});var gt,mt={};function vt(t,e){var n,i=E(e.createElement(t)).appendTo(e.body),r=f.getDefaultComputedStyle&&(n=f.getDefaultComputedStyle(i[0]))?n.display:E.css(i[0],"display");return i.detach(),r}function yt(t){var e=y,n=mt[t];return n||("none"!==(n=vt(t,e))&&n||((e=(gt=(gt||E("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=vt(t,e),gt.detach()),mt[t]=n),n}var bt=/^margin/,wt=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),xt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):f.getComputedStyle(t,null)};function Tt(t,e,n){var i,r,o,s,a=t.style;return(n=n||xt(t))&&(s=n.getPropertyValue(e)||n[e]),n&&(""!==s||E.contains(t.ownerDocument,t)||(s=E.style(t,e)),wt.test(s)&&bt.test(e)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o)),void 0!==s?s+"":s}function Et(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}!function(){var e,n,i=y.documentElement,r=y.createElement("div"),o=y.createElement("div");if(o.style){function t(){o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",o.innerHTML="",i.appendChild(r);var t=f.getComputedStyle(o,null);e="1%"!==t.top,n="4px"===t.width,i.removeChild(r)}o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===o.style.backgroundClip,r.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",r.appendChild(o),f.getComputedStyle&&E.extend(v,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==n&&t(),n},reliableMarginRight:function(){var t,e=o.appendChild(y.createElement("div"));return e.style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",i.appendChild(r),t=!parseFloat(f.getComputedStyle(e,null).marginRight),i.removeChild(r),o.removeChild(e),t}})}}(),E.swap=function(t,e,n,i){var r,o,s={};for(o in e)s[o]=t.style[o],t.style[o]=e[o];for(o in r=n.apply(t,i||[]),e)t.style[o]=s[o];return r};var kt=/^(none|table(?!-c[ea]).+)/,St=new RegExp("^("+W+")(.*)$","i"),Dt=new RegExp("^([+-])=("+W+")","i"),Ct={position:"absolute",visibility:"hidden",display:"block"},_t={letterSpacing:"0",fontWeight:"400"},At=["Webkit","O","Moz","ms"];function Nt(t,e){if(e in t)return e;for(var n=e[0].toUpperCase()+e.slice(1),i=e,r=At.length;r--;)if((e=At[r]+n)in t)return e;return i}function Mt(t,e,n){var i=St.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function $t(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=E.css(t,n+U[o],!0,r)),i?("content"===n&&(s-=E.css(t,"padding"+U[o],!0,r)),"margin"!==n&&(s-=E.css(t,"border"+U[o]+"Width",!0,r))):(s+=E.css(t,"padding"+U[o],!0,r),"padding"!==n&&(s+=E.css(t,"border"+U[o]+"Width",!0,r)));return s}function Ot(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=xt(t),s="border-box"===E.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(((r=Tt(t,e,o))<0||null==r)&&(r=t.style[e]),wt.test(r))return r;i=s&&(v.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+$t(t,e,n||(s?"border":"content"),i,o)+"px"}function Rt(t,e){for(var n,i,r,o=[],s=0,a=t.length;s<a;s++)(i=t[s]).style&&(o[s]=F.get(i,"olddisplay"),n=i.style.display,e?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&j(i)&&(o[s]=F.access(i,"olddisplay",yt(i.nodeName)))):(r=j(i),"none"===n&&r||F.set(i,"olddisplay",r?n:E.css(i,"display"))));for(s=0;s<a;s++)(i=t[s]).style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[s]||"":"none"));return t}function Ft(t,e,n,i,r){return new Ft.prototype.init(t,e,n,i,r)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Tt(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,s,a=E.camelCase(e),l=t.style;return e=E.cssProps[a]||(E.cssProps[a]=Nt(l,a)),s=E.cssHooks[e]||E.cssHooks[a],void 0===n?s&&"get"in s&&void 0!==(r=s.get(t,!1,i))?r:l[e]:("string"===(o=typeof n)&&(r=Dt.exec(n))&&(n=(r[1]+1)*r[2]+parseFloat(E.css(t,e)),o="number"),void(null!=n&&n==n&&("number"!==o||E.cssNumber[a]||(n+="px"),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l[e]=n))))}},css:function(t,e,n,i){var r,o,s,a=E.camelCase(e);return e=E.cssProps[a]||(E.cssProps[a]=Nt(t.style,a)),(s=E.cssHooks[e]||E.cssHooks[a])&&"get"in s&&(r=s.get(t,!0,n)),void 0===r&&(r=Tt(t,e,i)),"normal"===r&&e in _t&&(r=_t[e]),""===n||n?(o=parseFloat(r),!0===n||E.isNumeric(o)?o||0:r):r}}),E.each(["height","width"],function(t,r){E.cssHooks[r]={get:function(t,e,n){return e?kt.test(E.css(t,"display"))&&0===t.offsetWidth?E.swap(t,Ct,function(){return Ot(t,r,n)}):Ot(t,r,n):void 0},set:function(t,e,n){var i=n&&xt(t);return Mt(0,e,n?$t(t,r,n,"border-box"===E.css(t,"boxSizing",!1,i),i):0)}}}),E.cssHooks.marginRight=Et(v.reliableMarginRight,function(t,e){return e?E.swap(t,{display:"inline-block"},Tt,[t,"marginRight"]):void 0}),E.each({margin:"",padding:"",border:"Width"},function(r,o){E.cssHooks[r+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[r+U[e]+o]=i[e]||i[e-2]||i[0];return n}},bt.test(r)||(E.cssHooks[r+o].set=Mt)}),E.fn.extend({css:function(t,e){return O(this,function(t,e,n){var i,r,o={},s=0;if(E.isArray(e)){for(i=xt(t),r=e.length;s<r;s++)o[e[s]]=E.css(t,e[s],!1,i);return o}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,1<arguments.length)},show:function(){return Rt(this,!0)},hide:function(){return Rt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){j(this)?E(this).show():E(this).hide()})}}),((E.Tween=Ft).prototype={constructor:Ft,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var t=Ft.propHooks[this.prop];return t&&t.get?t.get(this):Ft.propHooks._default.get(this)},run:function(t){var e,n=Ft.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ft.propHooks._default.set(this),this}}).init.prototype=Ft.prototype,(Ft.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=E.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[E.cssProps[t.prop]]||E.cssHooks[t.prop])?E.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}}).scrollTop=Ft.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},E.fx=Ft.prototype.init,E.fx.step={};var Pt,It,Ht,Lt,jt,zt=/^(?:toggle|show|hide)$/,Yt=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),Wt=/queueHooks$/,Ut=[function(e,t,n){var i,r,o,s,a,l,c,u=this,d={},h=e.style,p=e.nodeType&&j(e),f=F.get(e,"fxshow");for(i in n.queue||(null==(a=E._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,E.queue(e,"fx").length||a.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],c=E.css(e,"display"),"inline"===("none"===c?F.get(e,"olddisplay")||yt(e.nodeName):c)&&"none"===E.css(e,"float")&&(h.display="inline-block")),n.overflow&&(h.overflow="hidden",u.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),t)if(r=t[i],zt.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!f||void 0===f[i])continue;p=!0}d[i]=f&&f[i]||E.style(e,i)}else c=void 0;if(E.isEmptyObject(d))"inline"===("none"===c?yt(e.nodeName):c)&&(h.display=c);else for(i in f?"hidden"in f&&(p=f.hidden):f=F.access(e,"fxshow",{}),o&&(f.hidden=!p),p?E(e).show():u.done(function(){E(e).hide()}),u.done(function(){var t;for(t in F.remove(e,"fxshow"),d)E.style(e,t,d[t])}),d)s=Bt(p?f[i]:0,i,u),i in f||(f[i]=s.start,p&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],Gt={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),r=Yt.exec(e),o=r&&r[3]||(E.cssNumber[t]?"":"px"),s=(E.cssNumber[t]||"px"!==o&&+i)&&Yt.exec(E.css(n.elem,t)),a=1,l=20;if(s&&s[3]!==o)for(o=o||s[3],r=r||[],s=+i||1;s/=a=a||".5",E.style(n.elem,t,s+o),a!==(a=n.cur()/i)&&1!==a&&--l;);return r&&(s=n.start=+s||+i||0,n.unit=o,n.end=r[1]?s+(r[1]+1)*r[2]:+r[2]),n}]};function Vt(){return setTimeout(function(){Pt=void 0}),Pt=E.now()}function qt(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=U[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function Bt(t,e,n){for(var i,r=(Gt[e]||[]).concat(Gt["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,e,t))return i}function Zt(o,t,e){var n,s,i=0,r=Ut.length,a=E.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var t=Pt||Vt(),e=Math.max(0,c.startTime+c.duration-t),n=1-(e/c.duration||0),i=0,r=c.tweens.length;i<r;i++)c.tweens[i].run(n);return a.notifyWith(o,[c,n,e]),n<1&&r?e:(a.resolveWith(o,[c]),!1)},c=a.promise({elem:o,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{}},e),originalProperties:t,originalOptions:e,startTime:Pt||Vt(),duration:e.duration,tweens:[],createTween:function(t,e){var n=E.Tween(o,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var e=0,n=t?c.tweens.length:0;if(s)return this;for(s=!0;e<n;e++)c.tweens[e].run(1);return t?a.resolveWith(o,[c,t]):a.rejectWith(o,[c,t]),this}}),u=c.props;for(function(t,e){var n,i,r,o,s;for(n in t)if(r=e[i=E.camelCase(n)],o=t[n],E.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(s=E.cssHooks[i])&&"expand"in s)for(n in o=s.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(u,c.opts.specialEasing);i<r;i++)if(n=Ut[i].call(c,o,u,c.opts))return n;return E.map(u,Bt,c),E.isFunction(c.opts.start)&&c.opts.start.call(o,c),E.fx.timer(E.extend(l,{elem:o,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}E.Animation=E.extend(Zt,{tweener:function(t,e){for(var n,i=0,r=(t=E.isFunction(t)?(e=t,["*"]):t.split(" ")).length;i<r;i++)n=t[i],Gt[n]=Gt[n]||[],Gt[n].unshift(e)},prefilter:function(t,e){e?Ut.unshift(t):Ut.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||E.isFunction(t)&&t,duration:t,easing:n&&e||e&&!E.isFunction(e)&&e};return i.duration=E.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in E.fx.speeds?E.fx.speeds[i.duration]:E.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){E.isFunction(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(j).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function r(){var t=Zt(this,E.extend({},e),s);(o||F.get(this,"finish"))&&t.stop(!0)}var o=E.isEmptyObject(e),s=E.speed(t,n,i);return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(r,t,o){function s(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof r&&(o=t,t=r,r=void 0),t&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",n=E.timers,i=F.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&Wt.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=r&&n[e].queue!==r||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||E.dequeue(this,r)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=F.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],r=E.timers,o=n?n.length:0;for(e.finish=!0,E.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===s&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),E.each(["toggle","show","hide"],function(t,i){var r=E.fn[i];E.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(qt(i,!0),t,e,n)}}),E.each({slideDown:qt("show"),slideUp:qt("hide"),slideToggle:qt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){E.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(Pt=E.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),Pt=void 0},E.fx.timer=function(t){E.timers.push(t),t()?E.fx.start():E.timers.pop()},E.fx.interval=13,E.fx.start=function(){It=It||setInterval(E.fx.tick,E.fx.interval)},E.fx.stop=function(){clearInterval(It),It=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(i,t){return i=E.fx&&E.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=setTimeout(t,i);e.stop=function(){clearTimeout(n)}})},Ht=y.createElement("input"),Lt=y.createElement("select"),jt=Lt.appendChild(y.createElement("option")),Ht.type="checkbox",v.checkOn=""!==Ht.value,v.optSelected=jt.selected,Lt.disabled=!0,v.optDisabled=!jt.disabled,(Ht=y.createElement("input")).value="t",Ht.type="radio",v.radioValue="t"===Ht.value;var Xt,Qt=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return O(this,E.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute==V?E.prop(t,e,n):(1===o&&E.isXMLDoc(t)||(e=e.toLowerCase(),i=E.attrHooks[e]||(E.expr.match.bool.test(e)?Xt:void 0)),void 0===n?i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=E.find.attr(t,e))?void 0:r:null!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):void E.removeAttr(t,e))},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(N);if(o&&1===t.nodeType)for(;n=o[r++];)i=E.propFix[n]||n,E.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&E.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),Xt={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var o=Qt[e]||E.find.attr;Qt[e]=function(t,e,n){var i,r;return n||(r=Qt[e],Qt[e]=i,i=null!=o(t,e,n)?e.toLowerCase():null,Qt[e]=r),i}});var Jt=/^(?:input|select|textarea|button)$/i;E.fn.extend({prop:function(t,e){return O(this,E.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({propFix:{for:"htmlFor",class:"className"},prop:function(t,e,n){var i,r,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return(1!==o||!E.isXMLDoc(t))&&(e=E.propFix[e]||e,r=E.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||Jt.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),v.optSelected||(E.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this});var Kt=/[\t\r\n\f]/g;E.fn.extend({addClass:function(e){var t,n,i,r,o,s,a="string"==typeof e&&e,l=0,c=this.length;if(E.isFunction(e))return this.each(function(t){E(this).addClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(N)||[];l<c;l++)if(i=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(Kt," "):" ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");s=E.trim(i),n.className!==s&&(n.className=s)}return this},removeClass:function(e){var t,n,i,r,o,s,a=0===arguments.length||"string"==typeof e&&e,l=0,c=this.length;if(E.isFunction(e))return this.each(function(t){E(this).removeClass(e.call(this,t,this.className))});if(a)for(t=(e||"").match(N)||[];l<c;l++)if(i=1===(n=this[l]).nodeType&&(n.className?(" "+n.className+" ").replace(Kt," "):"")){for(o=0;r=t[o++];)for(;0<=i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");s=e?E.trim(i):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(r,e){var o=typeof r;return"boolean"==typeof e&&"string"==o?e?this.addClass(r):this.removeClass(r):this.each(E.isFunction(r)?function(t){E(this).toggleClass(r.call(this,t,this.className,e),e)}:function(){if("string"==o)for(var t,e=0,n=E(this),i=r.match(N)||[];t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else o!=V&&"boolean"!=o||(this.className&&F.set(this,"__className__",this.className),this.className=this.className||!1===r?"":F.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;n<i;n++)if(1===this[n].nodeType&&0<=(" "+this[n].className+" ").replace(Kt," ").indexOf(e))return!0;return!1}});var te=/\r/g;E.fn.extend({val:function(n){var i,t,r,e=this[0];return arguments.length?(r=E.isFunction(n),this.each(function(t){var e;1===this.nodeType&&(null==(e=r?n.call(this,t,E(this).val()):n)?e="":"number"==typeof e?e+="":E.isArray(e)&&(e=E.map(e,function(t){return null==t?"":t+""})),(i=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,e,"value")||(this.value=e))})):e?(i=E.valHooks[e.type]||E.valHooks[e.nodeName.toLowerCase()])&&"get"in i&&void 0!==(t=i.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(te,""):null==t?"":t:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:E.trim(E.text(t))}},select:{get:function(t){for(var e,n,i=t.options,r=t.selectedIndex,o="select-one"===t.type||r<0,s=o?null:[],a=o?r+1:i.length,l=r<0?a:o?r:0;l<a;l++)if(!(!(n=i[l]).selected&&l!==r||(v.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&E.nodeName(n.parentNode,"optgroup"))){if(e=E(n).val(),o)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=E.makeArray(e),s=r.length;s--;)((i=r[s]).selected=0<=E.inArray(i.value,o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){return E.isArray(e)?t.checked=0<=E.inArray(E(t).val(),e):void 0}},v.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),E.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(t,n){E.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),E.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var ee=E.now(),ne=/\?/;E.parseJSON=function(t){return JSON.parse(t+"")},E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var ie=/#.*$/,re=/([?&])_=[^&]*/,oe=/^(.*?):[ \t]*([^\r\n]*)$/gm,se=/^(?:GET|HEAD)$/,ae=/^\/\//,le=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ce={},ue={},de="*/".concat("*"),he=f.location.href,pe=le.exec(he.toLowerCase())||[];function fe(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,r=t.toLowerCase().match(N)||[];if(E.isFunction(e))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function ge(e,r,o,s){var a={},l=e===ue;function c(t){var i;return a[t]=!0,E.each(e[t]||[],function(t,e){var n=e(r,o,s);return"string"!=typeof n||l||a[n]?l?!(i=n):void 0:(r.dataTypes.unshift(n),c(n),!1)}),i}return c(r.dataTypes[0])||!a["*"]&&c("*")}function me(t,e){var n,i,r=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i=i||{})[n]=e[n]);return i&&E.extend(!0,t,i),t}E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:he,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pe[1]),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:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":E.parseJSON,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?me(me(t,E.ajaxSettings),e):me(E.ajaxSettings,t)},ajaxPrefilter:fe(ce),ajaxTransport:fe(ue),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var u,d,h,n,p,i,f,r,g=E.ajaxSetup({},e),m=g.context||g,v=g.context&&(m.nodeType||m.jquery)?E(m):E.event,y=E.Deferred(),b=E.Callbacks("once memory"),w=g.statusCode||{},o={},s={},x=0,a="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!n)for(n={};e=oe.exec(h);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?h:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=s[n]=s[n]||t,o[t]=e),this},overrideMimeType:function(t){return x||(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(x<2)for(e in t)w[e]=[w[e],t[e]];else T.always(t[T.status]);return this},abort:function(t){var e=t||a;return u&&u.abort(e),l(0,e),this}};if(y.promise(T).complete=b.add,T.success=T.done,T.error=T.fail,g.url=((t||g.url||he)+"").replace(ie,"").replace(ae,pe[1]+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=E.trim(g.dataType||"*").toLowerCase().match(N)||[""],null==g.crossDomain&&(i=le.exec(g.url.toLowerCase()),g.crossDomain=!(!i||i[1]===pe[1]&&i[2]===pe[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(pe[3]||("http:"===pe[1]?"80":"443")))),g.data&&g.processData&&"string"!=typeof g.data&&(g.data=E.param(g.data,g.traditional)),ge(ce,g,e,T),2===x)return T;for(r in(f=E.event&&g.global)&&0==E.active++&&E.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!se.test(g.type),d=g.url,g.hasContent||(g.data&&(d=g.url+=(ne.test(d)?"&":"?")+g.data,delete g.data),!1===g.cache&&(g.url=re.test(d)?d.replace(re,"$1_="+ee++):d+(ne.test(d)?"&":"?")+"_="+ee++)),g.ifModified&&(E.lastModified[d]&&T.setRequestHeader("If-Modified-Since",E.lastModified[d]),E.etag[d]&&T.setRequestHeader("If-None-Match",E.etag[d])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&T.setRequestHeader("Content-Type",g.contentType),T.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+de+"; q=0.01":""):g.accepts["*"]),g.headers)T.setRequestHeader(r,g.headers[r]);if(g.beforeSend&&(!1===g.beforeSend.call(m,T,g)||2===x))return T.abort();for(r in a="abort",{success:1,error:1,complete:1})T[r](g[r]);if(u=ge(ue,g,e,T)){T.readyState=1,f&&v.trigger("ajaxSend",[T,g]),g.async&&0<g.timeout&&(p=setTimeout(function(){T.abort("timeout")},g.timeout));try{x=1,u.send(o,l)}catch(t){if(!(x<2))throw t;l(-1,t)}}else l(-1,"No Transport");function l(t,e,n,i){var r,o,s,a,l,c=e;2!==x&&(x=2,p&&clearTimeout(p),u=void 0,h=i||"",T.readyState=0<t?4:0,r=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var i,r,o,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}s=s||r}o=o||s}return o?(o!==l[0]&&l.unshift(o),n[o]):void 0}(g,T,n)),a=function(t,e,n,i){var r,o,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=c[l+" "+o]||c["* "+o]))for(r in c)if((a=r.split(" "))[1]===o&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[r]:!0!==c[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(g,a,T,r),r?(g.ifModified&&((l=T.getResponseHeader("Last-Modified"))&&(E.lastModified[d]=l),(l=T.getResponseHeader("etag"))&&(E.etag[d]=l)),204===t||"HEAD"===g.type?c="nocontent":304===t?c="notmodified":(c=a.state,o=a.data,r=!(s=a.error))):(s=c,!t&&c||(c="error",t<0&&(t=0))),T.status=t,T.statusText=(e||c)+"",r?y.resolveWith(m,[o,c,T]):y.rejectWith(m,[T,c,s]),T.statusCode(w),w=void 0,f&&v.trigger(r?"ajaxSuccess":"ajaxError",[T,g,r?o:s]),b.fireWith(m,[T,c]),f&&(v.trigger("ajaxComplete",[T,g]),--E.active||E.event.trigger("ajaxStop")))}return T},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,r){E[r]=function(t,e,n,i){return E.isFunction(e)&&(i=i||n,n=e,e=void 0),E.ajax({url:t,type:r,dataType:i,data:e,success:n})}}),E._evalUrl=function(t){return E.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},E.fn.extend({wrapAll:function(e){var t;return E.isFunction(e)?this.each(function(t){E(this).wrapAll(e.call(this,t))}):(this[0]&&(t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return this.each(E.isFunction(n)?function(t){E(this).wrapInner(n.call(this,t))}:function(){var t=E(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=E.isFunction(e);return this.each(function(t){E(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){E.nodeName(this,"body")||E(this).replaceWith(this.childNodes)}).end()}}),E.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},E.expr.filters.visible=function(t){return!E.expr.filters.hidden(t)};var ve=/%20/g,ye=/\[\]$/,be=/\r?\n/g,we=/^(?:submit|button|image|reset|file)$/i,xe=/^(?:input|select|textarea|keygen)/i;function Te(n,t,i,r){var e;if(E.isArray(t))E.each(t,function(t,e){i||ye.test(n)?r(n,e):Te(n+"["+("object"==typeof e?t:"")+"]",e,i,r)});else if(i||"object"!==E.type(t))r(n,t);else for(e in t)Te(n+"["+e+"]",t[e],i,r)}E.param=function(t,e){function n(t,e){e=E.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}var i,r=[];if(void 0===e&&(e=E.ajaxSettings&&E.ajaxSettings.traditional),E.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){n(this.name,this.value)});else for(i in t)Te(i,t[i],e,n);return r.join("&").replace(ve,"+")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&xe.test(this.nodeName)&&!we.test(t)&&(this.checked||!G.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:E.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(be,"\r\n")}}):{name:e.name,value:n.replace(be,"\r\n")}}).get()}}),E.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Ee=0,ke={},Se={0:200,1223:204},De=E.ajaxSettings.xhr();f.attachEvent&&f.attachEvent("onunload",function(){for(var t in ke)ke[t]()}),v.cors=!!De&&"withCredentials"in De,v.ajax=De=!!De,E.ajaxTransport(function(o){var s;return v.cors||De&&!o.crossDomain?{send:function(t,e){var n,i=o.xhr(),r=++Ee;if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);s=function(t){return function(){s&&(delete ke[r],s=i.onload=i.onerror=null,"abort"===t?i.abort():"error"===t?e(i.status,i.statusText):e(Se[i.status]||i.status,i.statusText,"string"==typeof i.responseText?{text:i.responseText}:void 0,i.getAllResponseHeaders()))}},i.onload=s(),i.onerror=s("error"),s=ke[r]=s("abort");try{i.send(o.hasContent&&o.data||null)}catch(t){if(s)throw t}},abort:function(){s&&s()}}:void 0}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(n){var i,r;if(n.crossDomain)return{send:function(t,e){i=E("<script>").prop({async:!0,charset:n.scriptCharset,src:n.url}).on("load error",r=function(t){i.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),y.head.appendChild(i[0])},abort:function(){r&&r()}}});var Ce=[],_e=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ce.pop()||E.expando+"_"+ee++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,n){var i,r,o,s=!1!==t.jsonp&&(_e.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&_e.test(t.data)&&"data");return s||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=E.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(_e,"$1"+i):!1!==t.jsonp&&(t.url+=(ne.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||E.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=f[i],f[i]=function(){o=arguments},n.always(function(){f[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ce.push(i)),o&&E.isFunction(r)&&r(o[0]),o=r=void 0}),"script"):void 0}),E.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||y;var i=w.exec(t),r=!n&&[];return i?[e.createElement(i[1])]:(i=E.buildFragment([t],e,r),r&&r.length&&E(r).remove(),E.merge([],i.childNodes))};var Ae=E.fn.load;E.fn.load=function(t,e,n){if("string"!=typeof t&&Ae)return Ae.apply(this,arguments);var i,r,o,s=this,a=t.indexOf(" ");return 0<=a&&(i=E.trim(t.slice(a)),t=t.slice(0,a)),E.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<s.length&&E.ajax({url:t,type:r,dataType:"html",data:e}).done(function(t){o=arguments,s.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){s.each(n,o||[t.responseText,e,t])}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.expr.filters.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length};var Ne=f.document.documentElement;function Me(t){return E.isWindow(t)?t:9===t.nodeType&&t.defaultView}E.offset={setOffset:function(t,e,n){var i,r,o,s,a,l,c=E.css(t,"position"),u=E(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=E.css(t,"top"),l=E.css(t,"left"),r=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(o)||0,parseFloat(l)||0),E.isFunction(e)&&(e=e.call(t,n,a)),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+r),"using"in e?e.using.call(t,d):u.css(d)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(t=o.documentElement,E.contains(t,i)?(typeof i.getBoundingClientRect!=V&&(r=i.getBoundingClientRect()),n=Me(o),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):void 0},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===E.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),E.nodeName(t[0],"html")||(i=t.offset()),i.top+=E.css(t[0],"borderTopWidth",!0),i.left+=E.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-E.css(n,"marginTop",!0),left:e.left-i.left-E.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Ne;t&&!E.nodeName(t,"html")&&"static"===E.css(t,"position");)t=t.offsetParent;return t||Ne})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var o="pageYOffset"===r;E.fn[e]=function(t){return O(this,function(t,e,n){var i=Me(t);return void 0===n?i?i[r]:t[e]:void(i?i.scrollTo(o?f.pageXOffset:n,o?n:f.pageYOffset):t[e]=n)},e,t,arguments.length,null)}}),E.each(["top","left"],function(t,n){E.cssHooks[n]=Et(v.pixelPosition,function(t,e){return e?(e=Tt(t,n),wt.test(e)?E(t).position()[n]+"px":e):void 0})}),E.each({Height:"height",Width:"width"},function(o,s){E.each({padding:"inner"+o,content:s,"":"outer"+o},function(i,t){E.fn[t]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),r=i||(!0===t||!0===e?"margin":"border");return O(this,function(t,e,n){var i;return E.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+o],i["scroll"+o],t.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?E.css(t,e,r):E.style(t,e,n,r)},s,n?t:void 0,n,null)}})}),E.fn.size=function(){return this.length},E.fn.andSelf=E.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return E});var $e=f.jQuery,Oe=f.$;return E.noConflict=function(t){return f.$===E&&(f.$=Oe),t&&f.jQuery===E&&(f.jQuery=$e),E},typeof t==V&&(f.jQuery=f.$=E),E}),window.Modernizr=function(t,d,o){function e(t){f.cssText=t}function s(t,e){return typeof t===e}function a(t,e){for(var n in t){var i=t[n];if(!~(""+i).indexOf("-")&&f[i]!==o)return"pfx"!=e||i}return!1}function i(t,e,n){var i=t.charAt(0).toUpperCase()+t.slice(1),r=(t+" "+v.join(i+" ")+i).split(" ");return s(e,"string")||s(e,"undefined")?a(r,e):function(t,e,n){for(var i in t){var r=e[t[i]];if(r!==o)return!1===n?t[i]:s(r,"function")?r.bind(n||e):r}return!1}(r=(t+" "+y.join(i+" ")+i).split(" "),e,n)}function r(t,e,n,i){var r,o,s,a,l=d.createElement("div"),c=d.body,u=c||d.createElement("body");if(parseInt(n,10))for(;n--;)(s=d.createElement("div")).id=i?i[n]:p+(n+1),l.appendChild(s);return r=["&#173;",'<style id="s',p,'">',t,"</style>"].join(""),l.id=p,(c?l:u).innerHTML+=r,u.appendChild(l),c||(u.style.background="",u.style.overflow="hidden",a=h.style.overflow,h.style.overflow="hidden",h.appendChild(u)),o=e(l,t),c?l.parentNode.removeChild(l):(u.parentNode.removeChild(u),h.style.overflow=a),!!o}var n,l,c={},h=d.documentElement,p="modernizr",u=d.createElement(p),f=u.style,g=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",v=m.split(" "),y=m.toLowerCase().split(" "),b="http://www.w3.org/2000/svg",w={},x=[],T=x.slice,E={}.hasOwnProperty;for(var k in l=s(E,"undefined")||s(E.call,"undefined")?function(t,e){return e in t&&s(t.constructor.prototype[e],"undefined")}:function(t,e){return E.call(t,e)},Function.prototype.bind||(Function.prototype.bind=function(i){var r=this;if("function"!=typeof r)throw new TypeError;var o=T.call(arguments,1),s=function(){if(this instanceof s){function t(){}t.prototype=r.prototype;var e=new t,n=r.apply(e,o.concat(T.call(arguments)));return Object(n)===n?n:e}return r.apply(i,o.concat(T.call(arguments)))};return s}),w.cssanimations=function(){return i("animationName")},w.csstransforms=function(){return!!i("transform")},w.csstransforms3d=function(){var n=!!i("perspective");return n&&"webkitPerspective"in h.style&&r("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t,e){n=9===t.offsetLeft&&3===t.offsetHeight}),n},w.csstransitions=function(){return i("transition")},w.svg=function(){return!!d.createElementNS&&!!d.createElementNS(b,"svg").createSVGRect},w.inlinesvg=function(){var t=d.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==b},w)l(w,k)&&(n=k.toLowerCase(),c[n]=w[k](),x.push((c[n]?"":"no-")+n));return c.addTest=function(t,e){if("object"==typeof t)for(var n in t)l(t,n)&&c.addTest(n,t[n]);else{if(t=t.toLowerCase(),c[t]!==o)return c;e="function"==typeof e?e():e,h.className+=" "+(e?"":"no-")+t,c[t]=e}return c},e(""),u=null,function(t,s){function a(){var t=f.elements;return"string"==typeof t?t.split(" "):t}function l(t){var e=p[t[d]];return e||(e={},h++,t[d]=h,p[h]=e),e}function i(t,e,n){return e=e||s,c?e.createElement(t):!(i=(n=n||l(e)).cache[t]?n.cache[t].cloneNode():u.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t)).canHaveChildren||o.test(t)||i.tagUrn?i:n.frag.appendChild(i);var i}function e(t){var e=l(t=t||s);return!f.shivCSS||n||e.hasCSS||(e.hasCSS=!!function(t,e){var n=t.createElement("p"),i=t.getElementsByTagName("head")[0]||t.documentElement;return n.innerHTML="x<style>"+e+"</style>",i.insertBefore(n.lastChild,i.firstChild)}(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),c||function(e,n){n.cache||(n.cache={},n.createElem=e.createElement,n.createFrag=e.createDocumentFragment,n.frag=n.createFrag()),e.createElement=function(t){return f.shivMethods?i(t,e,n):n.createElem(t)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+a().join().replace(/[\w\-]+/g,function(t){return n.createElem(t),n.frag.createElement(t),'c("'+t+'")'})+");return n}")(f,n.frag)}(t,e),t}var n,c,r=t.html5||{},o=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,u=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,d="_html5shiv",h=0,p={};!function(){try{var t=s.createElement("a");t.innerHTML="<xyz></xyz>",n="hidden"in t,c=1==t.childNodes.length||function(){s.createElement("a");var t=s.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){c=n=!0}}();var f={elements:r.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==r.shivCSS,supportsUnknownElements:c,shivMethods:!1!==r.shivMethods,type:"default",shivDocument:e,createElement:i,createDocumentFragment:function(t,e){if(t=t||s,c)return t.createDocumentFragment();for(var n=(e=e||l(t)).frag.cloneNode(),i=0,r=a(),o=r.length;i<o;i++)n.createElement(r[i]);return n}};t.html5=f,e(s)}(this,d),c._version="2.8.3",c._prefixes=g,c._domPrefixes=y,c._cssomPrefixes=v,c.testProp=function(t){return a([t])},c.testAllProps=i,c.testStyles=r,c.prefixed=function(t,e,n){return e?i(t,e,n):i(t,"pfx")},h.className=h.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+x.join(" "),c}(0,this.document),function(t,h){function d(t){return"[object Function]"==r.call(t)}function p(t){return"string"==typeof t}function f(){}function g(t){return!t||"loaded"==t||"complete"==t||"uninitialized"==t}function m(){var t=w.shift();x=1,t?t.t?y(function(){("c"==t.t?v.injectCss:v.injectJs)(t.s,0,t.a,t.x,t.e,1)},0):(t(),m()):x=0}function e(t,e,n,i,r){return x=0,e=e||"j",p(t)?function(n,i,t,e,r,o,s){function a(t){if(!c&&g(l.readyState)&&(d.r=c=1,x||m(),l.onload=l.onreadystatechange=null,t))for(var e in"img"!=n&&y(function(){E.removeChild(l)},50),S[i])S[i].hasOwnProperty(e)&&S[i][e].onload()}s=s||v.errorTimeout;var l=h.createElement(n),c=0,u=0,d={t:t,s:i,e:r,a:o,x:s};1===S[i]&&(u=1,S[i]=[]),"object"==n?l.data=i:(l.src=i,l.type=n),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){a.call(this,u)},w.splice(e,0,d),"img"!=n&&(u||2===S[i]?(E.insertBefore(l,T?null:b),y(a,s)):S[i].push(l))}("c"==e?l:s,t,e,this.i++,n,i,r):(w.splice(this.i++,0,t),1==w.length&&m()),this}function a(){var t=v;return t.loader={load:e,i:0},t}var n,v,i=h.documentElement,y=t.setTimeout,b=h.getElementsByTagName("script")[0],r={}.toString,w=[],x=0,o="MozAppearance"in i.style,T=o&&!!h.createRange().compareNode,E=T?i:b.parentNode,s=(i=t.opera&&"[object Opera]"==r.call(t.opera),i=!!h.attachEvent&&!i,o?"object":i?"script":"img"),l=i?"script":s,c=Array.isArray||function(t){return"[object Array]"==r.call(t)},k=[],S={},D={timeout:function(t,e){return e.length&&(t.timeout=e[0]),t}};(v=function(t){function u(t,e,n,i,r){var o=function(t){t=t.split("!");var e,n,i,r=k.length,o=t.pop(),s=t.length;for(o={url:o,origUrl:o,prefixes:t},n=0;n<s;n++)i=t[n].split("="),(e=D[i.shift()])&&(o=e(o,i));for(n=0;n<r;n++)o=k[n](o);return o}(t),s=o.autoCallback;o.url.split(".").pop().split("?").shift(),o.bypass||(e=e&&(d(e)?e:e[t]||e[i]||e[t.split("/").pop().split("?")[0]]),o.instead?o.instead(t,e,n,i,r):(S[o.url]?o.noexec=!0:S[o.url]=1,n.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":void 0,o.noexec,o.attrs,o.timeout),(d(e)||d(s))&&n.load(function(){a(),e&&e(o.origUrl,r,i),s&&s(o.origUrl,r,i),S[o.url]=2})))}function e(t,e){function n(n,t){if(n){if(p(n))t||(a=function(){var t=[].slice.call(arguments);l.apply(this,t),c()}),u(n,a,e,0,o);else if(Object(n)===n)for(r in i=function(){var t,e=0;for(t in n)n.hasOwnProperty(t)&&e++;return e}(),n)n.hasOwnProperty(r)&&(t||--i||(d(a)?a=function(){var t=[].slice.call(arguments);l.apply(this,t),c()}:a[r]=function(e){return function(){var t=[].slice.call(arguments);e&&e.apply(this,t),c()}}(l[r])),u(n[r],a,e,r,o))}else t||c()}var i,r,o=!!t.test,s=t.load||t.both,a=t.callback||f,l=a,c=t.complete||f;n(o?t.yep:t.nope,!!s),s&&n(s)}var n,i,r=this.yepnope.loader;if(p(t))u(t,0,r,0);else if(c(t))for(n=0;n<t.length;n++)p(i=t[n])?u(i,0,r,0):c(i)?v(i):Object(i)===i&&e(i,r);else Object(t)===t&&e(t,r)}).addPrefix=function(t,e){D[t]=e},v.addFilter=function(t){k.push(t)},v.errorTimeout=1e4,null==h.readyState&&h.addEventListener&&(h.readyState="loading",h.addEventListener("DOMContentLoaded",n=function(){h.removeEventListener("DOMContentLoaded",n,0),h.readyState="complete"},0)),t.yepnope=a(),t.yepnope.executeStack=m,t.yepnope.injectJs=function(t,e,n,i,r,o){var s,a,l=h.createElement("script");i=i||v.errorTimeout;for(a in l.src=t,n)l.setAttribute(a,n[a]);e=o?m:e||f,l.onreadystatechange=l.onload=function(){!s&&g(l.readyState)&&(s=1,e(),l.onload=l.onreadystatechange=null)},y(function(){s||e(s=1)},i),r?l.onload():b.parentNode.insertBefore(l,b)},t.yepnope.injectCss=function(t,e,n,i,r,o){var s;i=h.createElement("link"),e=o?m:e||f;for(s in i.href=t,i.rel="stylesheet",i.type="text/css",n)i.setAttribute(s,n[s]);r||(b.parentNode.insertBefore(i,b),y(e,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))},"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");if(function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||2<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(),function(i){"use strict";i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;i(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){return i(t.target).is(this)?t.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(o){"use strict";function s(t){o(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';s.VERSION="3.3.5",s.TRANSITION_DURATION=150,s.prototype.close=function(t){function e(){r.detach().trigger("closed.bs.alert").remove()}var n=o(this),i=n.attr("data-target");i||(i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""));var r=o(i);t&&t.preventDefault(),r.length||(r=n.closest(".alert")),r.trigger(t=o.Event("close.bs.alert")),t.isDefaultPrevented()||(r.removeClass("in"),o.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(s.TRANSITION_DURATION):e())};var t=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var t=o(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new s(this)),"string"==typeof n&&e[n].call(t)})},o.fn.alert.Constructor=s,o.fn.alert.noConflict=function(){return o.fn.alert=t,this},o(document).on("click.bs.alert.data-api",e,s.prototype.close)}(jQuery),function(o){"use strict";function n(i){return this.each(function(){var t=o(this),e=t.data("bs.button"),n="object"==typeof i&&i;e||t.data("bs.button",e=new r(this,n)),"toggle"==i?e.toggle():i&&e.setState(i)})}var r=function(t,e){this.$element=o(t),this.options=o.extend({},r.DEFAULTS,e),this.isLoading=!1};r.VERSION="3.3.5",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(t){var e="disabled",n=this.$element,i=n.is("input")?"val":"html",r=n.data();t+="Text",null==r.resetText&&n.data("resetText",n[i]()),setTimeout(o.proxy(function(){n[i](null==r[t]?this.options[t]:r[t]),"loadingText"==t?(this.isLoading=!0,n.addClass(e).attr(e,e)):this.isLoading&&(this.isLoading=!1,n.removeClass(e).removeAttr(e))},this),0)},r.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var t=o.fn.button;o.fn.button=n,o.fn.button.Constructor=r,o.fn.button.noConflict=function(){return o.fn.button=t,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=o(t.target);e.hasClass("btn")||(e=e.closest(".btn")),n.call(e,"toggle"),o(t.target).is('input[type="radio"]')||o(t.target).is('input[type="checkbox"]')||t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){o(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(d){"use strict";function s(r){return this.each(function(){var t=d(this),e=t.data("bs.carousel"),n=d.extend({},h.DEFAULTS,t.data(),"object"==typeof r&&r),i="string"==typeof r?r:n.slide;e||t.data("bs.carousel",e=new h(this,n)),"number"==typeof r?e.to(r):i?e[i]():n.interval&&e.pause().cycle()})}function h(t,e){this.$element=d(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",d.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",d.proxy(this.pause,this)).on("mouseleave.bs.carousel",d.proxy(this.cycle,this))}h.VERSION="3.3.5",h.TRANSITION_DURATION=600,h.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},h.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},h.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},h.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},h.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},h.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||t<0?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(n<t?"next":"prev",this.$items.eq(t))},h.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},h.prototype.next=function(){return this.sliding?void 0:this.slide("next")},h.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},h.prototype.slide=function(t,e){var n=this.$element.find(".item.active"),i=e||this.getItemForDirection(t,n),r=this.interval,o="next"==t?"left":"right",s=this;if(i.hasClass("active"))return this.sliding=!1;var a=i[0],l=d.Event("slide.bs.carousel",{relatedTarget:a,direction:o});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=d(this.$indicators.children()[this.getItemIndex(i)]);c&&c.addClass("active")}var u=d.Event("slid.bs.carousel",{relatedTarget:a,direction:o});return d.support.transition&&this.$element.hasClass("slide")?(i.addClass(t),i[0].offsetWidth,n.addClass(o),i.addClass(o),n.one("bsTransitionEnd",function(){i.removeClass([t,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(u)},0)}).emulateTransitionEnd(h.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(u)),r&&this.cycle(),this}};var t=d.fn.carousel;d.fn.carousel=s,d.fn.carousel.Constructor=h,d.fn.carousel.noConflict=function(){return d.fn.carousel=t,this};function e(t){var e,n=d(this),i=d(n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var r=d.extend({},i.data(),n.data()),o=n.attr("data-slide-to");o&&(r.interval=!1),s.call(i,r),o&&i.data("bs.carousel").to(o),t.preventDefault()}}d(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),d(window).on("load",function(){d('[data-ride="carousel"]').each(function(){var t=d(this);s.call(t,t.data())})})}(jQuery),function(s){"use strict";function r(t){var e,n=t.attr("data-target")||(e=t.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return s(n)}function a(i){return this.each(function(){var t=s(this),e=t.data("bs.collapse"),n=s.extend({},l.DEFAULTS,t.data(),"object"==typeof i&&i);!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||t.data("bs.collapse",e=new l(this,n)),"string"==typeof i&&e[i]()})}var l=function(t,e){this.$element=s(t),this.options=s.extend({},l.DEFAULTS,e),this.$trigger=s('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};l.VERSION="3.3.5",l.TRANSITION_DURATION=350,l.DEFAULTS={toggle:!0},l.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},l.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&((t=e.data("bs.collapse"))&&t.transitioning))){var n=s.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){e&&e.length&&(a.call(e,"hide"),t||e.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!s.support.transition)return r.call(this);var o=s.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",s.proxy(r,this)).emulateTransitionEnd(l.TRANSITION_DURATION)[i](this.$element[0][o])}}}},l.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=s.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return s.support.transition?void this.$element[e](0).one("bsTransitionEnd",s.proxy(n,this)).emulateTransitionEnd(l.TRANSITION_DURATION):n.call(this)}}},l.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},l.prototype.getParent=function(){return s(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(s.proxy(function(t,e){var n=s(e);this.addAriaAndCollapsedClass(r(n),n)},this)).end()},l.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var t=s.fn.collapse;s.fn.collapse=a,s.fn.collapse.Constructor=l,s.fn.collapse.noConflict=function(){return s.fn.collapse=t,this},s(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=s(this);e.attr("data-target")||t.preventDefault();var n=r(e),i=n.data("bs.collapse")?"toggle":e.data();a.call(n,i)})}(jQuery),function(s){"use strict";function a(t){var e=t.attr("data-target");e||(e=(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""));var n=e&&s(e);return n&&n.length?n:t.parent()}function o(i){i&&3===i.which||(s(".dropdown-backdrop").remove(),s(l).each(function(){var t=s(this),e=a(t),n={relatedTarget:this};e.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&s.contains(e[0],i.target)||(e.trigger(i=s.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(s.Event("hidden.bs.dropdown",n)))))}))}function i(t){s(t).on("click.bs.dropdown",this.toggle)}var l='[data-toggle="dropdown"]';i.VERSION="3.3.5",i.prototype.toggle=function(t){var e=s(this);if(!e.is(".disabled, :disabled")){var n=a(e),i=n.hasClass("open");if(o(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&s(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(s(this)).on("click",o);var r={relatedTarget:this};if(n.trigger(t=s.Event("show.bs.dropdown",r)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(s.Event("shown.bs.dropdown",r))}return!1}},i.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=s(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var n=a(e),i=n.hasClass("open");if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&n.find(l).trigger("focus"),e.trigger("click");var r=n.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var o=r.index(t.target);38==t.which&&0<o&&o--,40==t.which&&o<r.length-1&&o++,~o||(o=0),r.eq(o).trigger("focus")}}}};var t=s.fn.dropdown;s.fn.dropdown=function(n){return this.each(function(){var t=s(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new i(this)),"string"==typeof n&&e[n].call(t)})},s.fn.dropdown.Constructor=i,s.fn.dropdown.noConflict=function(){return s.fn.dropdown=t,this},s(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",l,i.prototype.toggle).on("keydown.bs.dropdown.data-api",l,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(o){"use strict";function s(i,r){return this.each(function(){var t=o(this),e=t.data("bs.modal"),n=o.extend({},a.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.modal",e=new a(this,n)),"string"==typeof i?e[i](r):n.show&&e.show(r)})}function a(t,e){this.options=e,this.$body=o(document.body),this.$element=o(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}a.VERSION="3.3.5",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(n){var i=this,t=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(t){o(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=o.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var e=o.Event("shown.bs.modal",{relatedTarget:n});t?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):i.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=o.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",o.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=o.support.transition&&n;if(this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){e.removeBackdrop(),t&&t()};o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):r()}else t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},a.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=o.fn.modal;o.fn.modal=s,o.fn.modal.Constructor=a,o.fn.modal.noConflict=function(){return o.fn.modal=t,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=o(this),n=e.attr("href"),i=o(e.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),r=i.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},i.data(),e.data());e.is("a")&&t.preventDefault(),i.one("show.bs.modal",function(t){t.isDefaultPrevented()||i.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),s.call(i,r,this)})}(jQuery),function(g){"use strict";function m(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}m.VERSION="3.3.5",m.TRANSITION_DURATION=150,m.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},m.prototype.init=function(t,e,n){if(this.enabled=!0,this.type=t,this.$element=g(e),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&g(g.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),r=i.length;r--;){var o=i[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,g.proxy(this.toggle,this));else if("manual"!=o){var s="hover"==o?"mouseenter":"focusin",a="hover"==o?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,g.proxy(this.enter,this)),this.$element.on(a+"."+this.type,this.options.selector,g.proxy(this.leave,this))}}this.options.selector?this._options=g.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},m.prototype.getDefaults=function(){return m.DEFAULTS},m.prototype.getOptions=function(t){return(t=g.extend({},this.getDefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},m.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&g.each(this._options,function(t,e){i[t]!=e&&(n[t]=e)}),n},m.prototype.enter=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState?void(e.hoverState="in"):(clearTimeout(e.timeout),e.hoverState="in",e.options.delay&&e.options.delay.show?void(e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)):e.show())},m.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},m.prototype.leave=function(t){var e=t instanceof this.constructor?t:g(t.currentTarget).data("bs."+this.type);return e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e)),t instanceof g.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),e.isInStateTrue()?void 0:(clearTimeout(e.timeout),e.hoverState="out",e.options.delay&&e.options.delay.hide?void(e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)):e.hide())},m.prototype.show=function(){var t=g.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var e=g.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!e)return;var n=this,i=this.tip(),r=this.getUID(this.type);this.setContent(),i.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&i.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,a=s.test(o);a&&(o=o.replace(s,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),c=i[0].offsetWidth,u=i[0].offsetHeight;if(a){var d=o,h=this.getPosition(this.$viewport);o="bottom"==o&&l.bottom+u>h.bottom?"top":"top"==o&&l.top-u<h.top?"bottom":"right"==o&&l.right+c>h.width?"left":"left"==o&&l.left-c<h.left?"right":o,i.removeClass(d).addClass(o)}var p=this.getCalculatedOffset(o,l,c,u);this.applyPlacement(p,o);var f=function(){var t=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==t&&n.leave(n)};g.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(m.TRANSITION_DURATION):f()}},m.prototype.applyPlacement=function(t,e){var n=this.tip(),i=n[0].offsetWidth,r=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),s=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(s)&&(s=0),t.top+=o,t.left+=s,g.offset.setOffset(n[0],g.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),n.addClass("in");var a=n[0].offsetWidth,l=n[0].offsetHeight;"top"==e&&l!=r&&(t.top=t.top+r-l);var c=this.getViewportAdjustedDelta(e,t,a,l);c.left?t.left+=c.left:t.top+=c.top;var u=/top|bottom/.test(e),d=u?2*c.left-i+a:2*c.top-r+l,h=u?"offsetWidth":"offsetHeight";n.offset(t),this.replaceArrow(d,n[0][h],u)},m.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},m.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},m.prototype.hide=function(t){function e(){"in"!=n.hoverState&&i.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),t&&t()}var n=this,i=g(this.$tip),r=g.Event("hide.bs."+this.type);return this.$element.trigger(r),r.isDefaultPrevented()?void 0:(i.removeClass("in"),g.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",e).emulateTransitionEnd(m.TRANSITION_DURATION):e(),this.hoverState=null,this)},m.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},m.prototype.hasContent=function(){return this.getTitle()},m.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],n="BODY"==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=g.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var r=n?{top:0,left:0}:t.offset(),o={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=n?{width:g(window).width(),height:g(window).height()}:null;return g.extend({},i,o,s,r)},m.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},m.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-s.scroll,l=e.top+o-s.scroll+i;a<s.top?r.top=s.top-a:l>s.top+s.height&&(r.top=s.top+s.height-l)}else{var c=e.left-o,u=e.left+o+n;c<s.left?r.left=s.left-c:u>s.right&&(r.left=s.left+s.width-u)}return r},m.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},m.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},m.prototype.tip=function(){if(!this.$tip&&(this.$tip=g(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},m.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},m.prototype.enable=function(){this.enabled=!0},m.prototype.disable=function(){this.enabled=!1},m.prototype.toggleEnabled=function(){this.enabled=!this.enabled},m.prototype.toggle=function(t){var e=this;t&&((e=g(t.currentTarget).data("bs."+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),g(t.currentTarget).data("bs."+this.type,e))),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},m.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var t=g.fn.tooltip;g.fn.tooltip=function(i){return this.each(function(){var t=g(this),e=t.data("bs.tooltip"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.tooltip",e=new m(this,n)),"string"==typeof i&&e[i]())})},g.fn.tooltip.Constructor=m,g.fn.tooltip.noConflict=function(){return g.fn.tooltip=t,this}}(jQuery),function(r){"use strict";function o(t,e){this.init("popover",t,e)}if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.5",o.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=r.extend({},r.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=r.fn.popover;r.fn.popover=function(i){return this.each(function(){var t=r(this),e=t.data("bs.popover"),n="object"==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data("bs.popover",e=new o(this,n)),"string"==typeof i&&e[i]())})},r.fn.popover.Constructor=o,r.fn.popover.noConflict=function(){return r.fn.popover=t,this}}(jQuery),function(o){"use strict";function r(t,e){this.$body=o(document.body),this.$scrollElement=o(o(t).is(document.body)?window:t),this.options=o.extend({},r.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),n="object"==typeof i&&i;e||t.data("bs.scrollspy",e=new r(this,n)),"string"==typeof i&&e[i]()})}r.VERSION="3.3.5",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),n=/^#./.test(e)&&o(e);return n&&n.length&&n.is(":visible")&&[[n[i]().top+r,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},r.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,s=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=e)return s!=(t=o[o.length-1])&&this.activate(t);if(s&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)s!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},r.prototype.activate=function(t){this.activeTarget=t,this.clear();var e=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=o(e).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},r.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=o.fn.scrollspy;o.fn.scrollspy=e,o.fn.scrollspy.Constructor=r,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=t,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var t=o(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function e(n){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new s(this)),"string"==typeof n&&e[n]()})}function s(t){this.element=a(t)}s.VERSION="3.3.5",s.TRANSITION_DURATION=150,s.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),n=t.data("target");if(n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var i=e.find(".active:last a"),r=a.Event("hide.bs.tab",{relatedTarget:t[0]}),o=a.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(r),t.trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){var s=a(n);this.activate(t.closest("li"),e),this.activate(s,s.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},s.prototype.activate=function(t,e,n){function i(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}var r=e.find("> .active"),o=n&&a.support.transition&&(r.length&&r.hasClass("fade")||!!e.find("> .fade").length);r.length&&o?r.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i(),r.removeClass("in")};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=s,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};function n(t){t.preventDefault(),e.call(a(this),"show")}a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(l){"use strict";function n(i){return this.each(function(){var t=l(this),e=t.data("bs.affix"),n="object"==typeof i&&i;e||t.data("bs.affix",e=new c(this,n)),"string"==typeof i&&e[i]()})}var c=function(t,e){this.options=l.extend({},c.DEFAULTS,e),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.5",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),s=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+s<=t-i)&&"bottom";var a=null==this.affixed,l=a?r:o.top;return null!=n&&r<=n?"top":null!=i&&t-i<=l+(a?s:e)&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},c.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,n=e.top,i=e.bottom,r=Math.max(l(document).height(),l(document.body).height());"object"!=typeof e&&(i=n=e),"function"==typeof n&&(n=e.top(this.$element)),"function"==typeof i&&(i=e.bottom(this.$element));var o=this.getState(r,t,n,i);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");var s="affix"+(o?"-"+o:""),a=l.Event(s+".bs.affix");if(this.$element.trigger(a),a.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:r-t-i})}};var t=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=c,l.fn.affix.noConflict=function(){return l.fn.affix=t,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var t=l(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(t,e)})})}(jQuery),"undefined"==typeof jQuery)throw new Error("Jasny Bootstrap's JavaScript requires jQuery");!function(i){"use strict";void 0===i.support.transition&&(i.fn.emulateTransitionEnd=function(t){var e=!1,n=this;i(this).one(i.support.transition.end,function(){e=!0});return setTimeout(function(){e||i(n).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}()}))}(window.jQuery),function(a){"use strict";var r=function(t,e){this.$element=a(t),this.options=a.extend({},r.DEFAULTS,e),this.state=null,this.placement=null,this.options.recalc&&(this.calcClone(),a(window).on("resize",a.proxy(this.recalc,this))),this.options.autohide&&a(document).on("click",a.proxy(this.autohide,this)),this.options.toggle&&this.toggle(),this.options.disablescrolling&&(this.options.disableScrolling=this.options.disablescrolling,delete this.options.disablescrolling)};r.DEFAULTS={toggle:!0,placement:"auto",autohide:!0,recalc:!0,disableScrolling:!0,modal:!1},r.prototype.offset=function(){switch(this.placement){case"left":case"right":return this.$element.outerWidth();case"top":case"bottom":return this.$element.outerHeight()}},r.prototype.calcPlacement=function(){function t(t,e){if("auto"===i.css(e))return t;if("auto"===i.css(t))return e;var n=parseInt(i.css(t),10);return parseInt(i.css(e),10)<n?e:t}if("auto"===this.options.placement){this.$element.hasClass("in")||this.$element.css("visiblity","hidden !important").addClass("in");var e=a(window).width()/this.$element.width(),n=a(window).height()/this.$element.height(),i=this.$element;this.placement=n<=e?t("left","right"):t("top","bottom"),"hidden !important"===this.$element.css("visibility")&&this.$element.removeClass("in").css("visiblity","")}else this.placement=this.options.placement},r.prototype.opposite=function(t){switch(t){case"top":return"bottom";case"left":return"right";case"bottom":return"top";case"right":return"left"}},r.prototype.getCanvasElements=function(){var t=this.options.canvas?a(this.options.canvas):this.$element,e=t.find("*").filter(function(){return"fixed"===a(this).css("position")}).not(this.options.exclude);return t.add(e)},r.prototype.slide=function(t,e,n){if(!a.support.transition){var i={};return i[this.placement]="+="+e,t.animate(i,350,n)}var r=this.placement,o=this.opposite(r);t.each(function(){"auto"!==a(this).css(r)&&a(this).css(r,(parseInt(a(this).css(r),10)||0)+e),"auto"!==a(this).css(o)&&a(this).css(o,(parseInt(a(this).css(o),10)||0)-e)}),this.$element.one(a.support.transition.end,n).emulateTransitionEnd(350)},r.prototype.disableScrolling=function(){var t=a("body").width(),e="padding-"+this.opposite(this.placement);if(void 0===a("body").data("offcanvas-style")&&a("body").data("offcanvas-style",a("body").attr("style")||""),a("body").css("overflow","hidden"),a("body").width()>t){var n=parseInt(a("body").css(e),10)+a("body").width()-t;setTimeout(function(){a("body").css(e,n)},1)}a("body").on("touchmove.bs",function(t){t.preventDefault()})},r.prototype.enableScrolling=function(){a("body").off("touchmove.bs")},r.prototype.show=function(){if(!this.state){var t=a.Event("show.bs.offcanvas");if(this.$element.trigger(t),!t.isDefaultPrevented()){this.state="slide-in",this.calcPlacement();var e=this.getCanvasElements(),n=this.placement,i=this.opposite(n),r=this.offset();-1!==e.index(this.$element)&&(a(this.$element).data("offcanvas-style",a(this.$element).attr("style")||""),this.$element.css(n,-1*r),this.$element.css(n)),e.addClass("canvas-sliding").each(function(){void 0===a(this).data("offcanvas-style")&&a(this).data("offcanvas-style",a(this).attr("style")||""),"static"===a(this).css("position")&&a(this).css("position","relative"),"auto"!==a(this).css(n)&&"0px"!==a(this).css(n)||"auto"!==a(this).css(i)&&"0px"!==a(this).css(i)||a(this).css(n,0)}),this.options.disableScrolling&&this.disableScrolling(),this.options.modal&&this.toggleBackdrop();var o=function(){"slide-in"==this.state&&(this.state="slid",e.removeClass("canvas-sliding").addClass("canvas-slid"),this.$element.trigger("shown.bs.offcanvas"))};setTimeout(a.proxy(function(){this.$element.addClass("in"),this.slide(e,r,a.proxy(o,this))},this),1)}}},r.prototype.hide=function(){if("slid"===this.state){var t=a.Event("hide.bs.offcanvas");if(this.$element.trigger(t),!t.isDefaultPrevented()){this.state="slide-out";var e=a(".canvas-slid"),n=(this.placement,-1*this.offset()),i=function(){"slide-out"==this.state&&(this.state=null,this.placement=null,this.$element.removeClass("in"),e.removeClass("canvas-sliding"),e.add(this.$element).add("body").each(function(){a(this).attr("style",a(this).data("offcanvas-style")).removeData("offcanvas-style")}),this.$element.trigger("hidden.bs.offcanvas"))};this.options.disableScrolling&&this.enableScrolling(),this.options.modal&&this.toggleBackdrop(),e.removeClass("canvas-slid").addClass("canvas-sliding"),setTimeout(a.proxy(function(){this.slide(e,n,a.proxy(i,this))},this),1)}}},r.prototype.toggle=function(){"slide-in"!==this.state&&"slide-out"!==this.state&&this["slid"===this.state?"hide":"show"]()},r.prototype.toggleBackdrop=function(t){if(t=t||a.noop,"slide-in"==this.state){var e=a.support.transition;this.$backdrop=a('<div class="modal-backdrop fade" />').insertAfter(this.$element),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e?this.$backdrop.one(a.support.transition.end,t).emulateTransitionEnd(150):t()}else if("slide-out"==this.state&&this.$backdrop){this.$backdrop.removeClass("in"),a("body").off("touchmove.bs");var n=this;a.support.transition?this.$backdrop.one(a.support.transition.end,function(){n.$backdrop.remove(),t(),n.$backdrop=null}).emulateTransitionEnd(150):(this.$backdrop.remove(),this.$backdrop=null,t())}else t&&t()},r.prototype.calcClone=function(){this.$calcClone=this.$element.clone().html("").addClass("offcanvas-clone").removeClass("in").appendTo(a("body"))},r.prototype.recalc=function(){if("none"!==this.$calcClone.css("display")&&("slid"===this.state||"slide-in"===this.state)){this.state=null,this.placement=null;var t=this.getCanvasElements();this.$element.removeClass("in"),t.removeClass("canvas-slid"),t.add(this.$element).add("body").each(function(){a(this).attr("style",a(this).data("offcanvas-style")).removeData("offcanvas-style")})}},r.prototype.autohide=function(t){0===a(t.target).closest(this.$element).length&&this.hide()};var t=a.fn.offcanvas;a.fn.offcanvas=function(i){return this.each(function(){var t=a(this),e=t.data("bs.offcanvas"),n=a.extend({},r.DEFAULTS,t.data(),"object"==typeof i&&i);e||t.data("bs.offcanvas",e=new r(this,n)),"string"==typeof i&&e[i]()})},a.fn.offcanvas.Constructor=r,a.fn.offcanvas.noConflict=function(){return a.fn.offcanvas=t,this},a(document).on("click.bs.offcanvas.data-api","[data-toggle=offcanvas]",function(t){var e,n=a(this),i=n.attr("data-target")||t.preventDefault()||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,""),r=a(i),o=r.data("bs.offcanvas"),s=o?"toggle":n.data();t.stopPropagation(),o?o.toggle():r.offcanvas(s)})}(window.jQuery),function(i){"use strict";var r=function(t,e){this.$element=i(t),this.options=i.extend({},r.DEFAULTS,e),this.$element.on("click.bs.rowlink","td:not(.rowlink-skip)",i.proxy(this.click,this))};r.DEFAULTS={target:"a"},r.prototype.click=function(t){var e=i(t.currentTarget).closest("tr").find(this.options.target)[0];if(i(t.target)[0]!==e)if(t.preventDefault(),e.click)e.click();else if(document.createEvent){var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};var t=i.fn.rowlink;i.fn.rowlink=function(n){return this.each(function(){var t=i(this),e=t.data("bs.rowlink");e||t.data("bs.rowlink",e=new r(this,n))})},i.fn.rowlink.Constructor=r,i.fn.rowlink.noConflict=function(){return i.fn.rowlink=t,this},i(document).on("click.bs.rowlink.data-api",'[data-link="row"]',function(t){if(0===i(t.target).closest(".rowlink-skip").length){var e=i(this);e.data("bs.rowlink")||(e.rowlink(e.data()),i(t.target).trigger("click.bs.rowlink"))}})}(window.jQuery),function(i){"use strict";var o=void 0!==window.orientation,n=-1<navigator.userAgent.toLowerCase().indexOf("android"),e="Microsoft Internet Explorer"==window.navigator.appName,r=function(t,e){n||(this.$element=i(t),this.options=i.extend({},r.DEFAULTS,e),this.mask=String(this.options.mask),this.init(),this.listen(),this.checkVal())};r.DEFAULTS={mask:"",placeholder:"_",definitions:{9:"[0-9]",a:"[A-Za-z]",w:"[A-Za-z0-9]","*":"."}},r.prototype.init=function(){var n=this.options.definitions;this.mask.length;this.tests=[],this.partialPosition=this.mask.length,this.firstNonMaskPos=null,i.each(this.mask.split(""),i.proxy(function(t,e){"?"==e?(0,this.partialPosition=t):n[e]?(this.tests.push(new RegExp(n[e])),null===this.firstNonMaskPos&&(this.firstNonMaskPos=this.tests.length-1)):this.tests.push(null)},this)),this.buffer=i.map(this.mask.split(""),i.proxy(function(t){return"?"!=t?n[t]?this.options.placeholder:t:void 0},this)),this.focusText=this.$element.val(),this.$element.data("rawMaskFn",i.proxy(function(){return i.map(this.buffer,function(t,e){return this.tests[e]&&t!=this.options.placeholder?t:null}).join("")},this))},r.prototype.listen=function(){if(!this.$element.attr("readonly")){var t=(e?"paste":"input")+".bs.inputmask";this.$element.on("unmask.bs.inputmask",i.proxy(this.unmask,this)).on("focus.bs.inputmask",i.proxy(this.focusEvent,this)).on("blur.bs.inputmask",i.proxy(this.blurEvent,this)).on("keydown.bs.inputmask",i.proxy(this.keydownEvent,this)).on("keypress.bs.inputmask",i.proxy(this.keypressEvent,this)).on(t,i.proxy(this.pasteEvent,this))}},r.prototype.caret=function(e,n){if(0!==this.$element.length){if("number"==typeof e)return n="number"==typeof n?n:e,this.$element.each(function(){if(this.setSelectionRange)this.setSelectionRange(e,n);else if(this.createTextRange){var t=this.createTextRange();t.collapse(!0),t.moveEnd("character",n),t.moveStart("character",e),t.select()}});if(this.$element[0].setSelectionRange)e=this.$element[0].selectionStart,n=this.$element[0].selectionEnd;else if(document.selection&&document.selection.createRange){var t=document.selection.createRange();e=0-t.duplicate().moveStart("character",-1e5),n=e+t.text.length}return{begin:e,end:n}}},r.prototype.seekNext=function(t){for(var e=this.mask.length;++t<=e&&!this.tests[t];);return t},r.prototype.seekPrev=function(t){for(;0<=--t&&!this.tests[t];);return t},r.prototype.shiftL=function(t,e){var n=this.mask.length;if(!(t<0)){for(var i=t,r=this.seekNext(e);i<n;i++)if(this.tests[i]){if(!(r<n&&this.tests[i].test(this.buffer[r])))break;this.buffer[i]=this.buffer[r],this.buffer[r]=this.options.placeholder,r=this.seekNext(r)}this.writeBuffer(),this.caret(Math.max(this.firstNonMaskPos,t))}},r.prototype.shiftR=function(t){for(var e=this.mask.length,n=t,i=this.options.placeholder;n<e;n++)if(this.tests[n]){var r=this.seekNext(n),o=this.buffer[n];if(this.buffer[n]=i,!(r<e&&this.tests[r].test(o)))break;i=o}},r.prototype.unmask=function(){this.$element.unbind(".bs.inputmask").removeData("bs.inputmask")},r.prototype.focusEvent=function(){this.focusText=this.$element.val();var t=this.mask.length,e=this.checkVal();this.writeBuffer();function n(){e==t?i.caret(0,e):i.caret(e)}var i=this;n(),setTimeout(n,50)},r.prototype.blurEvent=function(){this.checkVal(),this.$element.val()!==this.focusText&&(this.$element.trigger("change"),this.$element.trigger("input"))},r.prototype.keydownEvent=function(t){var e=t.which;if(8==e||46==e||o&&127==e){var n=this.caret(),i=n.begin,r=n.end;return r-i==0&&(i=46!=e?this.seekPrev(i):r=this.seekNext(i-1),r=46==e?this.seekNext(r):r),this.clearBuffer(i,r),this.shiftL(i,r-1),!1}return 27==e?(this.$element.val(this.focusText),this.caret(0,this.checkVal()),!1):void 0},r.prototype.keypressEvent=function(t){var e=this.mask.length,n=t.which,i=this.caret();if(t.ctrlKey||t.altKey||t.metaKey||n<32)return!0;if(n){i.end-i.begin!=0&&(this.clearBuffer(i.begin,i.end),this.shiftL(i.begin,i.end-1));var r=this.seekNext(i.begin-1);if(r<e){var o=String.fromCharCode(n);if(this.tests[r].test(o)){this.shiftR(r),this.buffer[r]=o,this.writeBuffer();var s=this.seekNext(r);this.caret(s)}}return!1}},r.prototype.pasteEvent=function(){var t=this;setTimeout(function(){t.caret(t.checkVal(!0))},0)},r.prototype.clearBuffer=function(t,e){for(var n=this.mask.length,i=t;i<e&&i<n;i++)this.tests[i]&&(this.buffer[i]=this.options.placeholder)},r.prototype.writeBuffer=function(){return this.$element.val(this.buffer.join("")).val()},r.prototype.checkVal=function(t){for(var e=this.mask.length,n=this.$element.val(),i=-1,r=0,o=0;r<e;r++)if(this.tests[r]){for(this.buffer[r]=this.options.placeholder;o++<n.length;){var s=n.charAt(o-1);if(this.tests[r].test(s)){this.buffer[r]=s,i=r;break}}if(o>n.length)break}else this.buffer[r]==n.charAt(o)&&r!=this.partialPosition&&(o++,i=r);return!t&&i+1<this.partialPosition?(this.$element.val(""),this.clearBuffer(0,e)):(t||i+1>=this.partialPosition)&&(this.writeBuffer(),t||this.$element.val(this.$element.val().substring(0,i+1))),this.partialPosition?r:this.firstNonMaskPos};var t=i.fn.inputmask;i.fn.inputmask=function(n){return this.each(function(){var t=i(this),e=t.data("bs.inputmask");e||t.data("bs.inputmask",e=new r(this,n))})},i.fn.inputmask.Constructor=r,i.fn.inputmask.noConflict=function(){return i.fn.inputmask=t,this},i(document).on("focus.bs.inputmask.data-api","[data-mask]",function(){var t=i(this);t.data("bs.inputmask")||t.inputmask(t.data())})}(window.jQuery),function(s){"use strict";function i(t,e){if(this.$element=s(t),this.$input=this.$element.find(":file"),0!==this.$input.length){this.name=this.$input.attr("name")||e.name,this.$hidden=this.$element.find('input[type=hidden][name="'+this.name+'"]'),0===this.$hidden.length&&(this.$hidden=s('<input type="hidden">').insertBefore(this.$input)),this.$preview=this.$element.find(".fileinput-preview");var n=this.$preview.css("height");"inline"!==this.$preview.css("display")&&"0px"!==n&&"none"!==n&&this.$preview.css("line-height",n),this.original={exists:this.$element.hasClass("fileinput-exists"),preview:this.$preview.html(),hiddenVal:this.$hidden.val()},this.listen()}}var n="Microsoft Internet Explorer"==window.navigator.appName;i.prototype.listen=function(){this.$input.on("change.bs.fileinput",s.proxy(this.change,this)),s(this.$input[0].form).on("reset.bs.fileinput",s.proxy(this.reset,this)),this.$element.find('[data-trigger="fileinput"]').on("click.bs.fileinput",s.proxy(this.trigger,this)),this.$element.find('[data-dismiss="fileinput"]').on("click.bs.fileinput",s.proxy(this.clear,this))},i.prototype.change=function(t){var n=void 0===t.target.files?t.target&&t.target.value?[{name:t.target.value.replace(/^.+\\/,"")}]:[]:t.target.files;if(t.stopPropagation(),0!==n.length){this.$hidden.val(""),this.$hidden.attr("name",""),this.$input.attr("name",this.name);var i=n[0];if(0<this.$preview.length&&(void 0!==i.type?i.type.match(/^image\/(gif|png|jpeg)$/):i.name.match(/\.(gif|png|jpe?g)$/i))&&"undefined"!=typeof FileReader){var e=new FileReader,r=this.$preview,o=this.$element;e.onload=function(t){var e=s("<img>");e[0].src=t.target.result,n[0].result=t.target.result,o.find(".fileinput-filename").text(i.name),"none"!=r.css("max-height")&&e.css("max-height",parseInt(r.css("max-height"),10)-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10)-parseInt(r.css("border-top"),10)-parseInt(r.css("border-bottom"),10)),r.html(e),o.addClass("fileinput-exists").removeClass("fileinput-new"),o.trigger("change.bs.fileinput",n)},e.readAsDataURL(i)}else this.$element.find(".fileinput-filename").text(i.name),this.$preview.text(i.name),this.$element.addClass("fileinput-exists").removeClass("fileinput-new"),this.$element.trigger("change.bs.fileinput")}else this.clear()},i.prototype.clear=function(t){if(t&&t.preventDefault(),this.$hidden.val(""),this.$hidden.attr("name",this.name),this.$input.attr("name",""),n){var e=this.$input.clone(!0);this.$input.after(e),this.$input.remove(),this.$input=e}else this.$input.val("");this.$preview.html(""),this.$element.find(".fileinput-filename").text(""),this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),void 0!==t&&(this.$input.trigger("change"),this.$element.trigger("clear.bs.fileinput"))},i.prototype.reset=function(){this.clear(),this.$hidden.val(this.original.hiddenVal),this.$preview.html(this.original.preview),this.$element.find(".fileinput-filename").text(""),this.original.exists?this.$element.addClass("fileinput-exists").removeClass("fileinput-new"):this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),this.$element.trigger("reset.bs.fileinput")},i.prototype.trigger=function(t){this.$input.trigger("click"),t.preventDefault()};var t=s.fn.fileinput;s.fn.fileinput=function(n){return this.each(function(){var t=s(this),e=t.data("bs.fileinput");e||t.data("bs.fileinput",e=new i(this,n)),"string"==typeof n&&e[n]()})},s.fn.fileinput.Constructor=i,s.fn.fileinput.noConflict=function(){return s.fn.fileinput=t,this},s(document).on("click.fileinput.data-api",'[data-provides="fileinput"]',function(t){var e=s(this);if(!e.data("bs.fileinput")){e.fileinput(e.data());var n=s(t.target).closest('[data-dismiss="fileinput"],[data-trigger="fileinput"]');0<n.length&&(t.preventDefault(),n.trigger("click.bs.fileinput"))}})}(window.jQuery),function(c){function l(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function o(t){!1===K.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function e(t,e){var n=!0;return s(function(){return n&&(o(t),n=!1),e.apply(this,arguments)},e)}function t(e,n){return function(t){return h(e.call(this,t),n)}}function n(e,n){return function(t){return this.localeData().ordinal(e.call(this,t),n)}}function i(){}function r(t,e){!1!==e&&D(t),a(this,t),this._d=new Date(+t._d)}function u(t){var e=b(t),n=e.year||0,i=e.quarter||0,r=e.month||0,o=e.week||0,s=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,u=e.millisecond||0;this._milliseconds=+u+1e3*c+6e4*l+36e5*a,this._days=+s+7*o,this._months=+r+3*i+12*n,this._data={},this._locale=K.localeData(),this._bubble()}function s(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return e.hasOwnProperty("toString")&&(t.toString=e.toString),e.hasOwnProperty("valueOf")&&(t.valueOf=e.valueOf),t}function a(t,e){var n,i,r;if(void 0!==e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),void 0!==e._i&&(t._i=e._i),void 0!==e._f&&(t._f=e._f),void 0!==e._l&&(t._l=e._l),void 0!==e._strict&&(t._strict=e._strict),void 0!==e._tzm&&(t._tzm=e._tzm),void 0!==e._isUTC&&(t._isUTC=e._isUTC),void 0!==e._offset&&(t._offset=e._offset),void 0!==e._pf&&(t._pf=e._pf),void 0!==e._locale&&(t._locale=e._locale),0<ht.length)for(n in ht)void 0!==(r=e[i=ht[n]])&&(t[i]=r);return t}function d(t){return t<0?Math.ceil(t):Math.floor(t)}function h(t,e,n){for(var i=""+Math.abs(t),r=0<=t;i.length<e;)i="0"+i;return(r?n?"+":"":"-")+i}function p(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function f(i,r){return function(t,e){var n;return null===e||isNaN(+e)||(function(t,e){qt[t]||(o(e),qt[t]=!0)}(r,"moment()."+r+"(period, number) is deprecated. Please use moment()."+r+"(number, period)."),n=t,t=e,e=n),t="string"==typeof t?+t:t,g(this,K.duration(t,e),i),this}}function g(t,e,n,i){var r=e._milliseconds,o=e._days,s=e._months;i=null==i||i,r&&t._d.setTime(+t._d+r*n),o&&q(t,"Date",V(t,"Date")+o*n),s&&G(t,V(t,"Month")+s*n),i&&K.updateOffset(t,o||s)}function m(t){return"[object Array]"===Object.prototype.toString.call(t)}function v(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&x(t[i])!==x(e[i]))&&s++;return s+o}function y(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=jt[t]||zt[e]||e}return t}function b(t){var e,n,i={};for(n in t)t.hasOwnProperty(n)&&((e=y(n))&&(i[e]=t[n]));return i}function w(s){var a,l;if(0===s.indexOf("week"))a=7,l="day";else{if(0!==s.indexOf("month"))return;a=12,l="month"}K[s]=function(n,t){var e,i,r=K._locale[s],o=[];if("number"==typeof n&&(t=n,n=c),i=function(t){var e=K().utc().set(l,t);return r.call(K._locale,e,n||"")},null!=t)return i(t);for(e=0;e<a;e++)o.push(i(e));return o}}function x(t){var e=+t,n=0;return 0!=e&&isFinite(e)&&(n=0<=e?Math.floor(e):Math.ceil(e)),n}function T(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function E(t,e,n){return Y(K([t,11,31+e-n]),e,n).week}function k(t){return S(t)?366:365}function S(t){return t%4==0&&t%100!=0||t%400==0}function D(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[ot]<0||11<t._a[ot]?ot:t._a[st]<1||t._a[st]>T(t._a[rt],t._a[ot])?st:t._a[at]<0||23<t._a[at]?at:t._a[lt]<0||59<t._a[lt]?lt:t._a[ct]<0||59<t._a[ct]?ct:t._a[ut]<0||999<t._a[ut]?ut:-1,t._pf._overflowDayOfYear&&(e<rt||st<e)&&(e=st),t._pf.overflow=e)}function C(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function _(t){return t?t.toLowerCase().replace("_","-"):t}function A(t){var e=null;if(!dt[t]&&pt)try{e=K.locale(),require("./locale/"+t),K.locale(e)}catch(t){}return dt[t]}function N(t,e){return e._isUTC?K(t).zone(e._offset||0):K(t).local()}function M(t,e){return t.isValid()?(e=$(e,t.localeData()),Yt[e]||(Yt[e]=function(n){var i,r,t,o=n.match(vt);for(i=0,r=o.length;i<r;i++)o[i]=Vt[o[i]]?Vt[o[i]]:(t=o[i]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var e="";for(i=0;i<r;i++)e+=o[i]instanceof Function?o[i].call(t,n):o[i];return e}}(e)),Yt[e](t)):t.localeData().invalidDate()}function $(t,e){function n(t){return e.longDateFormat(t)||t}var i=5;for(yt.lastIndex=0;0<=i&&yt.test(t);)t=t.replace(yt,n),yt.lastIndex=0,i-=1;return t}function O(t,e){var n=e._strict;switch(t){case"Q":return At;case"DDDD":return Mt;case"YYYY":case"GGGG":case"gggg":return n?$t:xt;case"Y":case"G":case"g":return Rt;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return n?Ot:Tt;case"S":if(n)return At;case"SS":if(n)return Nt;case"SSS":if(n)return Mt;case"DDD":return wt;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return kt;case"a":case"A":return e._locale._meridiemParse;case"X":return Ct;case"Z":case"ZZ":return St;case"T":return Dt;case"SSSS":return Et;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return n?Nt:bt;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return bt;case"Do":return _t;default:return new RegExp(function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(function(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})}(t.replace("\\",""))))}}function R(t){var e=(t=t||"").match(St)||[],n=((e[e.length-1]||[])+"").match(Ht)||["-",0,0],i=60*n[1]+x(n[2]);return"+"===n[0]?-i:i}function F(t,e,n){var i,r=n._a;switch(t){case"Q":null!=e&&(r[ot]=3*(x(e)-1));break;case"M":case"MM":null!=e&&(r[ot]=x(e)-1);break;case"MMM":case"MMMM":null!=(i=n._locale.monthsParse(e))?r[ot]=i:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(r[st]=x(e));break;case"Do":null!=e&&(r[st]=x(parseInt(e,10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=x(e));break;case"YY":r[rt]=K.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":r[rt]=x(e);break;case"a":case"A":n._isPm=n._locale.isPM(e);break;case"H":case"HH":case"h":case"hh":r[at]=x(e);break;case"m":case"mm":r[lt]=x(e);break;case"s":case"ss":r[ct]=x(e);break;case"S":case"SS":case"SSS":case"SSSS":r[ut]=x(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=R(e);break;case"dd":case"ddd":case"dddd":null!=(i=n._locale.weekdaysParse(e))?(n._w=n._w||{},n._w.d=i):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=x(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=K.parseTwoDigitYear(e)}}function P(t){var e,n,i,r,o,s,a;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,s=4,n=l(e.GG,t._a[rt],Y(K(),1,4).year),i=l(e.W,1),r=l(e.E,1)):(o=t._locale._week.dow,s=t._locale._week.doy,n=l(e.gg,t._a[rt],Y(K(),o,s).year),i=l(e.w,1),null!=e.d?(r=e.d)<o&&++i:r=null!=e.e?e.e+o:o),a=function(t,e,n,i,r){var o,s=z(t,0,1).getUTCDay();return{year:0<(o=7*(e-1)+((n=null!=n?n:r)-r)+(r-(s=0===s?7:s)+(i<s?7:0)-(s<r?7:0))+1)?t:t-1,dayOfYear:0<o?o:k(t-1)+o}}(n,i,r,s,o),t._a[rt]=a.year,t._dayOfYear=a.dayOfYear}function I(t){var e,n,i,r,o=[];if(!t._d){for(i=function(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[st]&&null==t._a[ot]&&P(t),t._dayOfYear&&(r=l(t._a[rt],i[rt]),t._dayOfYear>k(r)&&(t._pf._overflowDayOfYear=!0),n=z(r,0,t._dayOfYear),t._a[ot]=n.getUTCMonth(),t._a[st]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=i[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];t._d=(t._useUTC?z:function(t,e,n,i,r,o,s){var a=new Date(t,e,n,i,r,o,s);return t<1970&&a.setFullYear(t),a}).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm)}}function H(t){if(t._f!==K.ISO_8601){t._a=[],t._pf.empty=!0;var e,n,i,r,o,s=""+t._i,a=s.length,l=0;for(i=$(t._f,t._locale).match(vt)||[],e=0;e<i.length;e++)r=i[e],(n=(s.match(O(r,t))||[])[0])&&(0<(o=s.substr(0,s.indexOf(n))).length&&t._pf.unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),l+=n.length),Vt[r]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(r),F(r,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(r);t._pf.charsLeftOver=a-l,0<s.length&&t._pf.unusedInput.push(s),t._isPm&&t._a[at]<12&&(t._a[at]+=12),!1===t._isPm&&12===t._a[at]&&(t._a[at]=0),I(t),D(t)}else L(t)}function L(t){var e,n,i=t._i,r=Ft.exec(i);if(r){for(t._pf.iso=!0,e=0,n=Pt.length;e<n;e++)if(Pt[e][1].exec(i)){t._f=Pt[e][0]+(r[6]||" ");break}for(e=0,n=It.length;e<n;e++)if(It[e][1].exec(i)){t._f+=It[e][0];break}i.match(St)&&(t._f+="Z"),H(t)}else t._isValid=!1}function j(t){var e,n=t._i;n===c?t._d=new Date:function(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}(n)?t._d=new Date(+n):null!==(e=ft.exec(n))?t._d=new Date(+e[1]):"string"==typeof n?function(t){L(t),!1===t._isValid&&(delete t._isValid,K.createFromInputFallback(t))}(t):m(n)?(t._a=n.slice(0),I(t)):"object"==typeof n?function(t){var e;t._d||(e=b(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],I(t))}(t):"number"==typeof n?t._d=new Date(n):K.createFromInputFallback(t)}function z(t){var e=new Date(Date.UTC.apply(null,arguments));return t<1970&&e.setUTCFullYear(t),e}function Y(t,e,n){var i,r=n-e,o=n-t.day();return r<o&&(o-=7),o<r-7&&(o+=7),i=K(t).add(o,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function W(t){var e=t._i,n=t._f;return t._locale=t._locale||K.localeData(t._l),null===e||n===c&&""===e?K.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),K.isMoment(e)?new r(e,!0):(n?m(n)?function(t){var e,n,i,r,o;if(0===t._f.length)return t._pf.invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)o=0,(e=a({},t))._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},e._f=t._f[r],H(e),C(e)&&(o+=e._pf.charsLeftOver,o+=10*e._pf.unusedTokens.length,e._pf.score=o,(null==i||o<i)&&(i=o,n=e));s(t,n||e)}(t):H(t):j(t),new r(t)))}function U(t,e){var n,i;if(1===e.length&&m(e[0])&&(e=e[0]),!e.length)return K();for(n=e[0],i=1;i<e.length;++i)e[i][t](n)&&(n=e[i]);return n}function G(t,e){var n;return"string"==typeof e&&"number"!=typeof(e=t.localeData().monthsParse(e))||(n=Math.min(t.date(),T(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n)),t}function V(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function q(t,e,n){return"Month"===e?G(t,n):t._d["set"+(t._isUTC?"UTC":"")+e](n)}function B(e,n){return function(t){return null!=t?(q(this,e,t),K.updateOffset(this,n),this):V(this,e)}}function Z(t){return 400*t/146097}function X(t){return 146097*t/400}function Q(t){K.duration.fn[t]=function(){return this._data[t]}}function J(t){"undefined"==typeof ender&&(tt=nt.moment,nt.moment=t?e("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",K):K)}for(var K,tt,et,nt="undefined"!=typeof global?global:this,it=Math.round,rt=0,ot=1,st=2,at=3,lt=4,ct=5,ut=6,dt={},ht=[],pt="undefined"!=typeof module&&module.exports,ft=/^\/?Date\((\-?\d+)/i,gt=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,mt=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,vt=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,yt=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,bt=/\d\d?/,wt=/\d{1,3}/,xt=/\d{1,4}/,Tt=/[+\-]?\d{1,6}/,Et=/\d+/,kt=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,St=/Z|[\+\-]\d\d:?\d\d/gi,Dt=/T/i,Ct=/[\+\-]?\d+(\.\d{1,3})?/,_t=/\d{1,2}/,At=/\d/,Nt=/\d\d/,Mt=/\d{3}/,$t=/\d{4}/,Ot=/[+-]?\d{6}/,Rt=/[+-]?\d+/,Ft=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],It=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],Ht=/([\+\-]|\d\d)/gi,Lt=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),jt={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},zt={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},Yt={},Wt={s:45,m:45,h:22,d:26,M:11},Ut="DDD w W M D d".split(" "),Gt="M D H h m s w W".split(" "),Vt={M:function(){return this.month()+1},MMM:function(t){return this.localeData().monthsShort(this,t)},MMMM:function(t){return this.localeData().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.localeData().weekdaysMin(this,t)},ddd:function(t){return this.localeData().weekdaysShort(this,t)},dddd:function(t){return this.localeData().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return h(this.year()%100,2)},YYYY:function(){return h(this.year(),4)},YYYYY:function(){return h(this.year(),5)},YYYYYY:function(){var t=this.year();return(0<=t?"+":"-")+h(Math.abs(t),6)},gg:function(){return h(this.weekYear()%100,2)},gggg:function(){return h(this.weekYear(),4)},ggggg:function(){return h(this.weekYear(),5)},GG:function(){return h(this.isoWeekYear()%100,2)},GGGG:function(){return h(this.isoWeekYear(),4)},GGGGG:function(){return h(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return x(this.milliseconds()/100)},SS:function(){return h(x(this.milliseconds()/10),2)},SSS:function(){return h(this.milliseconds(),3)},SSSS:function(){return h(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return t<0&&(t=-t,e="-"),e+h(x(t/60),2)+":"+h(x(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return t<0&&(t=-t,e="-"),e+h(x(t/60),2)+h(x(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},qt={},Bt=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];Ut.length;)et=Ut.pop(),Vt[et+"o"]=n(Vt[et],et);for(;Gt.length;)et=Gt.pop(),Vt[et+et]=t(Vt[et],2);for(Vt.DDDD=t(Vt.DDD,3),s(i.prototype,{set:function(t){var e,n;for(n in t)"function"==typeof(e=t[n])?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,i;for(this._monthsParse||(this._monthsParse=[]),e=0;e<12;e++)if(this._monthsParse[e]||(n=K.utc([2e3,e]),i="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(i.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,i;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;e<7;e++)if(this._weekdaysParse[e]||(n=K([2e3,1]).day(e),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return 11<t?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(t,e,n,i):r.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[0<t?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return Y(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),(K=function(t,e,n,i){var r;return"boolean"==typeof n&&(i=n,n=c),(r={_isAMomentObject:!0})._i=t,r._f=e,r._l=n,r._strict=i,r._isUTC=!1,r._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},W(r)}).suppressDeprecationWarnings=!1,K.createFromInputFallback=e("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i)}),K.min=function(){return U("isBefore",[].slice.call(arguments,0))},K.max=function(){return U("isAfter",[].slice.call(arguments,0))},K.utc=function(t,e,n,i){var r;return"boolean"==typeof n&&(i=n,n=c),(r={_isAMomentObject:!0,_useUTC:!0,_isUTC:!0})._l=n,r._i=t,r._f=e,r._strict=i,r._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1},W(r).utc()},K.unix=function(t){return K(1e3*t)},K.duration=function(t,e){var n,i,r,o,s=t,a=null;return K.isDuration(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(a=gt.exec(t))?(n="-"===a[1]?-1:1,s={y:0,d:x(a[st])*n,h:x(a[at])*n,m:x(a[lt])*n,s:x(a[ct])*n,ms:x(a[ut])*n}):(a=mt.exec(t))?(n="-"===a[1]?-1:1,s={y:(r=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n})(a[2]),M:r(a[3]),d:r(a[4]),h:r(a[5]),m:r(a[6]),s:r(a[7]),w:r(a[8])}):"object"==typeof s&&("from"in s||"to"in s)&&(o=function(t,e){var n;return e=N(e,t),t.isBefore(e)?n=p(t,e):((n=p(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n}(K(s.from),K(s.to)),(s={}).ms=o.milliseconds,s.M=o.months),i=new u(s),K.isDuration(t)&&t.hasOwnProperty("_locale")&&(i._locale=t._locale),i},K.version="2.8.1",K.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",K.ISO_8601=function(){},K.momentProperties=ht,K.updateOffset=function(){},K.relativeTimeThreshold=function(t,e){return Wt[t]!==c&&(e===c?Wt[t]:(Wt[t]=e,!0))},K.lang=e("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return K.locale(t,e)}),K.locale=function(t,e){var n;return t&&((n=void 0!==e?K.defineLocale(t,e):K.localeData(t))&&(K.duration._locale=K._locale=n)),K._locale._abbr},K.defineLocale=function(t,e){return null!==e?(e.abbr=t,dt[t]||(dt[t]=new i),dt[t].set(e),K.locale(t),dt[t]):(delete dt[t],null)},K.langData=e("moment.langData is deprecated. Use moment.localeData instead.",function(t){return K.localeData(t)}),K.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return K._locale;if(!m(t)){if(e=A(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=_(t[o]).split("-")).length,n=(n=_(t[o+1]))?n.split("-"):null;0<e;){if(i=A(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&v(r,n,!0)>=e-1)break;e--}o++}return null}(t)},K.isMoment=function(t){return t instanceof r||null!=t&&t.hasOwnProperty("_isAMomentObject")},K.isDuration=function(t){return t instanceof u},et=Bt.length-1;0<=et;--et)w(Bt[et]);for(et in K.normalizeUnits=function(t){return y(t)},K.invalid=function(t){var e=K.utc(NaN);return null!=t?s(e._pf,t):e._pf.userInvalidated=!0,e},K.parseZone=function(){return K.apply(null,arguments).parseZone()},K.parseTwoDigitYear=function(t){return x(t)+(68<x(t)?1900:2e3)},s(K.fn=r.prototype,{clone:function(){return K(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=K(this).utc();return 0<t.year()&&t.year()<=9999?M(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):M(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return C(this)},isDSTShifted:function(){return!!this._a&&(this.isValid()&&0<v(this._a,(this._isUTC?K.utc(this._a):K(this._a)).toArray()))},parsingFlags:function(){return s({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.zone(0,t)},local:function(t){return this._isUTC&&(this.zone(0,t),this._isUTC=!1,t&&this.add(this._d.getTimezoneOffset(),"m")),this},format:function(t){var e=M(this,t||K.defaultFormat);return this.localeData().postformat(e)},add:f(1,"add"),subtract:f(-1,"subtract"),diff:function(t,e,n){var i,r,o=N(t,this),s=6e4*(this.zone()-o.zone());return"year"===(e=y(e))||"month"===e?(i=432e5*(this.daysInMonth()+o.daysInMonth()),r=12*(this.year()-o.year())+(this.month()-o.month()),r+=(this-K(this).startOf("month")-(o-K(o).startOf("month")))/i,r-=6e4*(this.zone()-K(this).startOf("month").zone()-(o.zone()-K(o).startOf("month").zone()))/i,"year"===e&&(r/=12)):(i=this-o,r="second"===e?i/1e3:"minute"===e?i/6e4:"hour"===e?i/36e5:"day"===e?(i-s)/864e5:"week"===e?(i-s)/6048e5:i),n?r:d(r)},from:function(t,e){return K.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(K(),t)},calendar:function(t){var e=N(t||K(),this).startOf("day"),n=this.diff(e,"days",!0),i=n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this))},isLeapYear:function(){return S(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){if("string"==typeof t)if(isNaN(t)){if("number"!=typeof(t=e.weekdaysParse(t)))return null}else t=parseInt(t,10);return t}(t,this.localeData()),this.add(t-e,"d")):e},month:B("Month",!0),startOf:function(t){switch(t=y(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=y(t),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(t,e){return e=void 0!==e?e:"millisecond",+this.clone().startOf(e)>+K(t).startOf(e)},isBefore:function(t,e){return e=void 0!==e?e:"millisecond",+this.clone().startOf(e)<+K(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)==+N(t,this).startOf(e)},min:e("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(t){return(t=K.apply(null,arguments))<this?this:t}),max:e("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return this<(t=K.apply(null,arguments))?this:t}),zone:function(t,e){var n,i=this._offset||0;return null==t?this._isUTC?i:this._d.getTimezoneOffset():("string"==typeof t&&(t=R(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&e&&(n=this._d.getTimezoneOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.subtract(n,"m"),i!==t&&(!e||this._changeInProgress?g(this,K.duration(i-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,K.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?K(t).zone():0,(this.zone()-t)%60==0},daysInMonth:function(){return T(this.year(),this.month())},dayOfYear:function(t){var e=it((K(this).startOf("day")-K(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=Y(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=Y(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=Y(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return E(this.year(),1,4)},weeksInYear:function(){var t=this.localeData()._week;return E(this.year(),t.dow,t.doy)},get:function(t){return this[t=y(t)]()},set:function(t,e){return"function"==typeof this[t=y(t)]&&this[t](e),this},locale:function(t){return t===c?this._locale._abbr:(this._locale=K.localeData(t),this)},lang:e("moment().lang() is deprecated. Use moment().localeData() instead.",function(t){return t===c?this.localeData():(this._locale=K.localeData(t),this)}),localeData:function(){return this._locale}}),K.fn.millisecond=K.fn.milliseconds=B("Milliseconds",!1),K.fn.second=K.fn.seconds=B("Seconds",!1),K.fn.minute=K.fn.minutes=B("Minutes",!1),K.fn.hour=K.fn.hours=B("Hours",!0),K.fn.date=B("Date",!0),K.fn.dates=e("dates accessor is deprecated. Use date instead.",B("Date",!0)),K.fn.year=B("FullYear",!0),K.fn.years=e("years accessor is deprecated. Use year instead.",B("FullYear",!0)),K.fn.days=K.fn.day,K.fn.months=K.fn.month,K.fn.weeks=K.fn.week,K.fn.isoWeeks=K.fn.isoWeek,K.fn.quarters=K.fn.quarter,K.fn.toJSON=K.fn.toISOString,s(K.duration.fn=u.prototype,{_bubble:function(){var t,e,n,i=this._milliseconds,r=this._days,o=this._months,s=this._data,a=0;s.milliseconds=i%1e3,t=d(i/1e3),s.seconds=t%60,e=d(t/60),s.minutes=e%60,n=d(e/60),s.hours=n%24,r+=d(n/24),o+=d((r-=d(X(a=d(Z(r)))))/30),r%=30,a+=d(o/12),o%=12,s.days=r,s.months=o,s.years=a},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return d(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12)},humanize:function(t){var e=function(t,e,n){var i=K.duration(t).abs(),r=it(i.as("s")),o=it(i.as("m")),s=it(i.as("h")),a=it(i.as("d")),l=it(i.as("M")),c=it(i.as("y")),u=r<Wt.s&&["s",r]||1===o&&["m"]||o<Wt.m&&["mm",o]||1===s&&["h"]||s<Wt.h&&["hh",s]||1===a&&["d"]||a<Wt.d&&["dd",a]||1===l&&["M"]||l<Wt.M&&["MM",l]||1===c&&["y"]||["yy",c];return u[2]=e,u[3]=0<+t,u[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply({},u)}(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var n=K.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=K.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return this[(t=y(t)).toLowerCase()+"s"]()},as:function(t){var e,n;if(t=y(t),e=this._days+this._milliseconds/864e5,"month"===t||"year"===t)return n=this._months+12*Z(e),"month"===t?n:n/12;switch(e+=X(this._months/12),t){case"week":return e/7;case"day":return e;case"hour":return 24*e;case"minute":return 24*e*60;case"second":return 24*e*60*60;case"millisecond":return 24*e*60*60*1e3;default:throw new Error("Unknown unit "+t)}},lang:K.fn.lang,locale:K.fn.locale,toIsoString:e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),i=Math.abs(this.hours()),r=Math.abs(this.minutes()),o=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(i||r||o?"T":"")+(i?i+"H":"")+(r?r+"M":"")+(o?o+"S":""):"P0D"},localeData:function(){return this._locale}}),Lt)Lt.hasOwnProperty(et)&&Q(et.toLowerCase());K.duration.fn.asMilliseconds=function(){return this.as("ms")},K.duration.fn.asSeconds=function(){return this.as("s")},K.duration.fn.asMinutes=function(){return this.as("m")},K.duration.fn.asHours=function(){return this.as("h")},K.duration.fn.asDays=function(){return this.as("d")},K.duration.fn.asWeeks=function(){return this.as("weeks")},K.duration.fn.asMonths=function(){return this.as("M")},K.duration.fn.asYears=function(){return this.as("y")},K.locale("en",{ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1==e?"st":2==e?"nd":3==e?"rd":"th")}}),pt?module.exports=K:"function"==typeof define&&define.amd?(define("moment",function(t,e,n){return n.config&&n.config()&&!0===n.config().noGlobal&&(nt.moment=tt),K}),J(!0)):J()}.call(this),function(t){"function"==typeof define&&define.amd?define(["jquery","moment"],t):t(jQuery,moment)}(function($,O){function t(t){R(ut,t)}function R(n){function t(t,e){$.isPlainObject(e)&&$.isPlainObject(n[t])&&!f(t)?n[t]=R({},n[t],e):void 0!==e&&(n[t]=e)}for(var e=1;e<arguments.length;e++)$.each(arguments[e],t);return n}function f(t){return/(Time|Duration)$/.test(t)}function l(e,t){function n(){return e.is(":visible")}function r(t){i(0,t)}function i(t,e){N++,E&&e&&E.name!==e&&(w.deactivateButton(E.name),d(),E.start&&E.destroy(),E.el.remove(),E=null),!E&&e&&((E=new ft[e](f)).el=$("<div class='fc-view fc-"+e+"-view' />").appendTo(T),w.activateButton(e)),E&&(t&&(D=E.incrementDate(D,t)),E.start&&!t&&D.isWithin(E.intervalStart,E.intervalEnd)||n()&&(d(),E.start&&E.destroy(),E.render(D),h(),w.updateTitle(E.title),f.getNow().isWithin(E.intervalStart,E.intervalEnd)?w.disableButton("today"):w.enableButton("today"),!g.lazyFetching||C(E.start,E.end)?u():c())),h(),N--}function o(t){return n()?(t&&a(),N++,E.updateSize(!0),N--,!0):void 0}function s(){n()&&a()}function a(){k="number"==typeof g.contentHeight?g.contentHeight:"number"==typeof g.height?g.height-(x?x.outerHeight(!0):0):Math.round(T.width()/Math.max(g.aspectRatio,.5))}function l(t){!N&&t.target===window&&E.start&&o(!0)&&E.trigger("windowResize",A)}function c(){n()&&(d(),E.destroyEvents(),E.renderEvents(M),h())}function u(){_(E.start,E.end)}function d(){T.css({width:"100%",height:T.height(),overflow:"hidden"})}function h(){T.css({width:"",height:"",overflow:""})}var p,f=this,g=R({},ut,t=t||{});(p=g.lang in dt?dt[g.lang]:dt[ut.lang])&&(g=R({},ut,p,t)),g.isRTL&&(g=R({},ut,ht,p||{},t)),f.options=g,f.render=function(t){T?n()&&(s(),i(t)):(g.theme?"ui":"fc",e.addClass("fc"),g.isRTL?e.addClass("fc-rtl"):e.addClass("fc-ltr"),g.theme?e.addClass("ui-widget"):e.addClass("fc-unthemed"),T=$("<div class='fc-view-container'/>").prependTo(e),w=new F(f,g),(x=w.render())&&e.prepend(x),r(g.defaultView),g.handleWindowResize&&(S=Y(l,g.windowResizeDelay),$(window).resize(S)))},f.destroy=function(){E&&E.destroy(),w.destroy(),T.remove(),e.removeClass("fc fc-ltr fc-rtl fc-unthemed ui-widget"),$(window).unbind("resize",S)},f.refetchEvents=function(){d(),E.destroyEvents(),h(),u()},f.reportEvents=function(t){M=t,c()},f.reportEventChange=function(){c()},f.rerenderEvents=c,f.changeView=r,f.select=function(t,e){t=f.moment(t),e=e?f.moment(e):t.hasTime()?t.clone().add(f.defaultTimedEventDuration):t.clone().add(f.defaultAllDayEventDuration),E.select(t,e)},f.unselect=function(){E&&E.unselect()},f.prev=function(){i(-1)},f.next=function(){i(1)},f.prevYear=function(){D.add(-1,"years"),i()},f.nextYear=function(){D.add(1,"years"),i()},f.today=function(){D=f.getNow(),i()},f.gotoDate=function(t){D=f.moment(t),i()},f.incrementDate=function(t){D.add(O.duration(t)),i()},f.zoomTo=function(t,e){var n,i;e&&void 0!==ft[e]||(e=e||"day",e=(i=(i=(n=w.getViewsWithButtons().join(" ")).match(RegExp("\\w+"+z(e))))||n.match(/\w+Day/))?i[0]:"agendaDay"),D=t,r(e)},f.getDate=function(){return D.clone()},f.getCalendar=function(){return f},f.getView=function(){return E},f.option=function(t,e){return void 0===e?g[t]:void("height"!=t&&"contentHeight"!=t&&"aspectRatio"!=t||(g[t]=e,o(!0)))},f.trigger=function(t,e){return g[t]?g[t].apply(e||A,Array.prototype.slice.call(arguments,2)):void 0};var m,v,y=H((m=g.lang,(v=O.localeData||O.langData).call(O,m)||v.call(O,"en")));if(g.monthNames&&(y._months=g.monthNames),g.monthNamesShort&&(y._monthsShort=g.monthNamesShort),g.dayNames&&(y._weekdays=g.dayNames),g.dayNamesShort&&(y._weekdaysShort=g.dayNamesShort),null!=g.firstDay){var b=H(y._week);b.dow=g.firstDay,y._week=b}f.defaultAllDayEventDuration=O.duration(g.defaultAllDayEventDuration),f.defaultTimedEventDuration=O.duration(g.defaultTimedEventDuration),f.moment=function(){var t;return"local"===g.timezone?(t=pt.moment.apply(null,arguments)).hasTime()&&t.local():t="UTC"===g.timezone?pt.moment.utc.apply(null,arguments):pt.moment.parseZone.apply(null,arguments),"_locale"in t?t._locale=y:t._lang=y,t},f.getIsAmbigTimezone=function(){return"local"!==g.timezone&&"UTC"!==g.timezone},f.rezoneDate=function(t){return f.moment(t.toArray())},f.getNow=function(){var t=g.now;return"function"==typeof t&&(t=t()),f.moment(t)},f.calculateWeekNumber=function(t){var e=g.weekNumberCalculation;return"function"==typeof e?e(t):"local"===e?t.week():"ISO"===e.toUpperCase()?t.isoWeek():void 0},f.getEventEnd=function(t){return t.end?t.end.clone():f.getDefaultEventEnd(t.allDay,t.start)},f.getDefaultEventEnd=function(t,e){var n=e.clone();return t?n.stripTime().add(f.defaultAllDayEventDuration):n.add(f.defaultTimedEventDuration),f.getIsAmbigTimezone()&&n.stripZone(),n},f.formatRange=function(t,e,n){return"function"==typeof n&&(n=n.call(f,g,y)),U(t,e,n,null,g.isRTL)},f.formatDate=function(t,e){return"function"==typeof e&&(e=e.call(f,g,y)),W(t,e)},function(m){function o(r,o){!function t(e,n){var i,r,o=pt.sourceFetchers;for(i=0;o.length>i;i++){if(!0===(r=o[i].call(b,e,w.clone(),x.clone(),m.timezone,n)))return;if("object"==typeof r)return void t(r,n)}var s=e.events;if(s)$.isFunction(s)?(v(),s.call(b,w.clone(),x.clone(),m.timezone,function(t){n(t),y()})):$.isArray(s)?n(s):n();else{var a=e.url;if(a){var l,c=e.success,u=e.error,d=e.complete;l=$.isFunction(e.data)?e.data():e.data;var h=$.extend({},l||{}),p=j(e.startParam,m.startParam),f=j(e.endParam,m.endParam),g=j(e.timezoneParam,m.timezoneParam);p&&(h[p]=w.format()),f&&(h[f]=x.format()),m.timezone&&"local"!=m.timezone&&(h[g]=m.timezone),v(),$.ajax($.extend({},gt,e,{data:h,success:function(t){t=t||[];var e=L(c,this,arguments);$.isArray(e)&&(t=e),n(t)},error:function(){L(u,this,arguments),n()},complete:function(){L(d,this,arguments),y()}}))}else n()}}(r,function(t){var e,n,i=$.isArray(r.events);if(o==p){if(t)for(e=0;t.length>e;e++)n=t[e],i||(n=s(n,r)),n&&T.push(n);--f||l(T)}})}function i(t){var e,n,i=pt.sourceNormalizers;if($.isFunction(t)||$.isArray(t)?e={events:t}:"string"==typeof t?e={url:t}:"object"==typeof t&&(e=$.extend({},t)),e){for(e.className?"string"==typeof e.className&&(e.className=e.className.split(/\s+/)):e.className=[],$.isArray(e.events)&&(e.origArray=e.events,e.events=$.map(e.events,function(t){return s(t,e)})),n=0;i.length>n;n++)i[n].call(b,e);return e}}function n(t,e){return t&&e&&r(t)==r(e)}function r(t){return("object"==typeof t?t.origArray||t.url||t.events:null)||t}function u(e){return $.isFunction(e)?$.grep(T,e):null!=e?(e+="",$.grep(T,function(t){return t._id==e})):T}function v(){g++||t("loading",null,!0,a())}function y(){--g||t("loading",null,!1,a())}function s(t,e){var n,i,r,o,s={};return m.eventDataTransform&&(t=m.eventDataTransform(t)),e&&e.eventDataTransform&&(t=e.eventDataTransform(t)),(n=b.moment(t.start||t.date)).isValid()&&(i=null,!t.end||(i=b.moment(t.end)).isValid())?(void 0===(r=t.allDay)&&(r=void 0!==(o=j(e?e.allDayDefault:void 0,m.allDayDefault))?o:!(n.hasTime()||i&&i.hasTime())),r?(n.hasTime()&&n.stripTime(),i&&i.hasTime()&&i.stripTime()):(n.hasTime()||(n=b.rezoneDate(n)),i&&!i.hasTime()&&(i=b.rezoneDate(i))),$.extend(s,t),e&&(s.source=e),s._id=t._id||(void 0===t.id?"_fc"+mt++:t.id+""),s.className=t.className?"string"==typeof t.className?t.className.split(/\s+/):t.className:[],s.allDay=r,s.start=n,s.end=i,m.forceEventDuration&&!s.end&&(s.end=c(s)),P(s),s):void 0}function e(t,e,n){var i,r,o,s=t._allDay,a=t._start,l=t._end,c=!1;return e||n||(e=t.start,n=t.end),(i=t.allDay!=s?t.allDay:!(e||n).hasTime())&&(e=e&&e.clone().stripTime(),n=n&&n.clone().stripTime()),e&&(r=I(e,i?a.clone().stripTime():a)),i!=s?c=!0:n&&(o=I(n||b.getDefaultEventEnd(i,e||a),e||a).subtract(I(l||b.getDefaultEventEnd(s,a),a))),{dateDelta:r,durationDelta:o,undo:function(t,l,c,u,d){var h=b.getIsAmbigTimezone(),p=[];return $.each(t,function(t,e){var n=e._allDay,i=e._start,r=e._end,o=null!=c?c:n,s=i.clone(),a=!l&&r?r.clone():null;o?(s.stripTime(),a&&a.stripTime()):(s.hasTime()||(s=b.rezoneDate(s)),a&&!a.hasTime()&&(a=b.rezoneDate(a))),a||!m.forceEventDuration&&!+d||(a=b.getDefaultEventEnd(o,s)),s.add(u),a&&a.add(u).add(d),h&&(+u||+d)&&(s.stripZone(),a&&a.stripZone()),e.allDay=o,e.start=s,e.end=a,P(e),p.push(function(){e.allDay=n,e.start=i,e.end=r,P(e)})}),function(){for(var t=0;p.length>t;t++)p[t]()}}(u(t._id),c,i,r,o)}}var b=this;b.isFetchNeeded=function(t,e){return!w||t.clone().stripZone()<w.clone().stripZone()||e.clone().stripZone()>x.clone().stripZone()},b.fetchEvents=function(t,e){w=t,x=e,T=[];var n=++p,i=h.length;f=i;for(var r=0;r<i;r++)o(h[r],n)},b.addEventSource=function(t){var e=i(t);e&&(h.push(e),f++,o(e,p))},b.removeEventSource=function(e){h=$.grep(h,function(t){return!n(t,e)}),T=$.grep(T,function(t){return!n(t.source,e)}),l(T)},b.updateEvent=function(t){t.start=b.moment(t.start),t.end&&(t.end=b.moment(t.end)),e(t),function(t){var e,n,i,r;for(e=0;T.length>e;e++)if((n=T[e])._id==t._id&&n!==t)for(i=0;E.length>i;i++)r=E[i],void 0!==t[r]&&(n[r]=t[r])}(t),l(T)},b.renderEvent=function(t,e){var n=s(t);n&&(n.source||(e&&(d.events.push(n),n.source=d),T.push(n)),l(T))},b.removeEvents=function(t){var e,n;for(null==t?t=function(){return!0}:$.isFunction(t)||(e=t+"",t=function(t){return t._id==e}),T=$.grep(T,t,!0),n=0;h.length>n;n++)$.isArray(h[n].events)&&(h[n].events=$.grep(h[n].events,t,!0));l(T)},b.clientEvents=u,b.mutateEvent=e;var w,x,t=b.trigger,a=b.getView,l=b.reportEvents,c=b.getEventEnd,d={events:[]},h=[d],p=0,f=0,g=0,T=[];$.each((m.events?[m.events]:[]).concat(m.eventSources||[]),function(t,e){var n=i(e);n&&h.push(n)});var E=["title","url","allDay","className","editable","color","backgroundColor","borderColor","textColor"]}.call(f,g);var w,x,T,E,k,S,D,C=f.isFetchNeeded,_=f.fetchEvents,A=e[0],N=0,M=[];D=null!=g.defaultDate?f.moment(g.defaultDate):f.getNow(),f.getSuggestedViewHeight=function(){return void 0===k&&s(),k},f.isHeightAuto=function(){return"auto"===g.contentHeight||"auto"===g.height}}function F(d,h){function e(t){var e=$('<div class="fc-'+t+'"/>'),n=h.header[t];return n&&$.each(n.split(" "),function(){var t,c=$(),u=!0;$.each(this.split(","),function(t,e){var n,i,r,o,s,a,l;"title"==e?(c=c.add($("<h2>&nbsp;</h2>")),u=!1):(d[e]?n=function(){d[e]()}:ft[e]&&(n=function(){d.changeView(e)},f.push(e)),n&&(i=g(h.themeButtonIcons,e),r=g(h.buttonIcons,e),o=g(h.defaultButtonText,e),a=(s=g(h.buttonText,e))?m(s):i&&h.theme?"<span class='ui-icon ui-icon-"+i+"'></span>":r&&!h.theme?"<span class='fc-icon fc-icon-"+r+"'></span>":m(o||e),l=$('<button type="button" class="'+["fc-"+e+"-button",p+"-button",p+"-state-default"].join(" ")+'">'+a+"</button>").click(function(){l.hasClass(p+"-state-disabled")||(n(),(l.hasClass(p+"-state-active")||l.hasClass(p+"-state-disabled"))&&l.removeClass(p+"-state-hover"))}).mousedown(function(){l.not("."+p+"-state-active").not("."+p+"-state-disabled").addClass(p+"-state-down")}).mouseup(function(){l.removeClass(p+"-state-down")}).hover(function(){l.not("."+p+"-state-active").not("."+p+"-state-disabled").addClass(p+"-state-hover")},function(){l.removeClass(p+"-state-hover").removeClass(p+"-state-down")}),c=c.add(l)))}),u&&c.first().addClass(p+"-corner-left").end().last().addClass(p+"-corner-right").end(),1<c.length?(t=$("<div/>"),u&&t.addClass("fc-button-group"),t.append(c),e.append(t)):e.append(c)}),e}var t=this;t.render=function(){var t=h.header;return p=h.theme?"ui":"fc",t?n=$("<div class='fc-toolbar'/>").append(e("left")).append(e("right")).append(e("center")).append('<div class="fc-clear"/>'):void 0},t.destroy=function(){n.remove()},t.updateTitle=function(t){n.find("h2").text(t)},t.activateButton=function(t){n.find(".fc-"+t+"-button").addClass(p+"-state-active")},t.deactivateButton=function(t){n.find(".fc-"+t+"-button").removeClass(p+"-state-active")},t.disableButton=function(t){n.find(".fc-"+t+"-button").attr("disabled","disabled").addClass(p+"-state-disabled")},t.enableButton=function(t){n.find(".fc-"+t+"-button").removeAttr("disabled").removeClass(p+"-state-disabled")},t.getViewsWithButtons=function(){return f};var p,n=$(),f=[]}function P(t){t._allDay=t.allDay,t._start=t.start.clone(),t._end=t.end?t.end.clone():null}function r(t,e){e.left&&t.css({"border-left-width":1,"margin-left":e.left-1}),e.right&&t.css({"border-right-width":1,"margin-right":e.right-1})}function o(t){t.css({"margin-left":"","margin-right":"","border-left-width":"","border-right-width":""})}function n(r,t,e){var o=Math.floor(t/r.length),s=Math.floor(t-o*(r.length-1)),a=[],l=[],c=[],u=0;i(r),r.each(function(t,e){var n=t===r.length-1?s:o,i=$(e).outerHeight(!0);i<n?(a.push(e),l.push(i),c.push($(e).height())):u+=i}),e&&(t-=u,o=Math.floor(t/a.length),s=Math.floor(t-o*(a.length-1))),$(a).each(function(t,e){var n=t===a.length-1?s:o,i=l[t],r=n-(i-c[t]);i<n&&$(e).height(r)})}function i(t){t.height("")}function e(t){var i=0;return t.find("> *").each(function(t,e){var n=$(e).outerWidth();i<n&&(i=n)}),i++,t.width(i),i}function s(t,e){return t.height(e).addClass("fc-scroller"),t[0].scrollHeight-1>t[0].clientHeight||(a(t),!1)}function a(t){t.height("").removeClass("fc-scroller")}function d(t){var e=t.css("position"),n=t.parents().filter(function(){var t=$(this);return/(auto|scroll)/.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&n.length?n:$(t[0].ownerDocument||document)}function c(t){var e=t.offset().left,n=e+t.width(),i=t.children(),r=i.offset().left;return{left:r-e,right:n-(r+i.outerWidth())}}function u(t){return 1==t.which&&!t.ctrlKey}function h(t,e,n,i){var r,o,s,a;return n<e&&t<i?(s=n<=t?(r=t.clone(),!0):(r=n.clone(),!1),a=e<=i?(o=e.clone(),!0):(o=i.clone(),!1),{start:r,end:o,isStart:s,isEnd:a}):void 0}function g(t,e){if(void 0!==(t=t||{})[e])return t[e];for(var n,i=e.split(/(?=[A-Z])/),r=i.length-1;0<=r;r--)if(void 0!==(n=t[i[r].toLowerCase()]))return n;return t.default}function I(t,e){return O.duration({days:t.clone().stripTime().diff(e.clone().stripTime(),"days"),ms:t.time()-e.time()})}function p(t,e){return t-e}function H(t){function e(){}return e.prototype=t,new e}function L(t,e,n){if($.isFunction(t)&&(t=[t]),t){var i,r;for(i=0;t.length>i;i++)r=t[i].apply(e,n)||r;return r}}function j(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}function m(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#039;").replace(/"/g,"&quot;").replace(/\n/g,"<br />")}function v(t){return t.replace(/&.*?;/g,"")}function z(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Y(e,n){var i,r,o,s,a=function(){var t=+new Date-s;t<n&&0<t?i=setTimeout(a,n-t):(i=null,e.apply(o,r),i||(o=r=null))};return function(){o=this,r=arguments,s=+new Date,i=i||setTimeout(a,n)}}function y(t,e,n){var i,r,o,s,a=t[0],l=1==t.length&&"string"==typeof a;return O.isMoment(a)?(s=O.apply(null,t),a._ambigTime&&(s._ambigTime=!0),a._ambigZone&&(s._ambigZone=!0)):function(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}(a)||void 0===a?s=O.apply(null,t):(r=i=!1,l?yt.test(a)?(t=[a+="-01"],r=i=!0):(o=bt.exec(a))&&(i=!o[5],r=!0):$.isArray(a)&&(r=!0),s=e?O.utc.apply(O,t):O.apply(null,t),i?(s._ambigTime=!0,s._ambigZone=!0):n&&(r?s._ambigZone=!0:l&&s.zone(a))),new b(s)}function b(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}(this,t)}function w(t,e){var n,i=[],r=!1,o=!1;for(n=0;t.length>n;n++)i.push(pt.moment.parseZone(t[n])),r=r||i[n]._ambigTime,o=o||i[n]._ambigZone;for(n=0;i.length>n;n++)r&&!e?i[n].stripTime():o&&i[n].stripZone();return i}function x(t,e){return O.fn.format.call(t,e)}function W(t,e){return T(t,S(e))}function T(t,e){var n,i="";for(n=0;e.length>n;n++)i+=E(t,e[n]);return i}function E(t,e){var n,i;return"string"==typeof e?e:(n=e.token)?wt[n]?wt[n](t):x(t,n):e.maybe&&(i=T(t,e.maybe)).match(/[1-9]/)?i:""}function U(t,e,n,i,r){return i=i||" - ",function(t,e,n,i,r){var o,s,a,l,c="",u="",d="",h="",p="";for(s=0;n.length>s&&!1!==(o=k(t,e,n[s]));s++)c+=o;for(a=n.length-1;s<a&&!1!==(o=k(t,e,n[a]));a--)u=o+u;for(l=s;l<=a;l++)d+=E(t,n[l]),h+=E(e,n[l]);return(d||h)&&(p=r?h+i+d:d+i+h),c+p+u}(t=pt.moment.parseZone(t),e=pt.moment.parseZone(e),S(n=(t.localeData||t.lang).call(t).longDateFormat(n)||n),i,r)}function k(t,e,n){var i,r;return"string"==typeof n?n:!!((i=n.token)&&((r=xt[i.charAt(0)])&&t.isSame(e,r)))&&x(t,i)}function S(t){return t in Tt?Tt[t]:Tt[t]=function t(e){for(var n,i=[],r=/\[([^\]]*)\]|\(([^\)]*)\)|(LT|(\w)\4*o?)|([^\w\[\(]+)/g;n=r.exec(e);)n[1]?i.push(n[1]):n[2]?i.push({maybe:t(n[2])}):n[3]?i.push({token:n[3]}):n[5]&&i.push(n[5]);return i}(t)}function D(t){this.options=t||{}}function C(t){this.grid=t}function _(t){this.coordMaps=t}function A(t,e){this.coordMap=t,this.options=e||{}}function N(t,e){this.options=e=e||{},this.sourceEl=t,this.parentEl=e.parentEl?$(e.parentEl):t.parent()}function M(t){this.view=t}function G(t){M.call(this,t),this.coordMap=new C(this)}function V(t,e){return t.eventStartMS-e.eventStartMS||e.eventDurationMS-t.eventDurationMS||e.event.allDay-t.event.allDay||(t.event.title||"").localeCompare(e.event.title)}function q(t){G.call(this,t)}function B(t,e){var n,i;for(n=0;e.length>n;n++)if((i=e[n]).leftCol<=t.rightCol&&i.rightCol>=t.leftCol)return!0;return!1}function Z(t,e){return t.leftCol-e.leftCol}function X(t){G.call(this,t)}function Q(t){var e,n,i;if(t.sort(V),function(t){var e,n,i,r,o;for(e=0;t.length>e;e++)for(n=t[e],i=0;n.length>i;i++)for((r=n[i]).forwardSegs=[],o=e+1;t.length>o;o++)tt(r,t[o],r.forwardSegs)}(e=function(t){var e,n,i,r=[];for(e=0;t.length>e;e++){for(n=t[e],i=0;r.length>i&&tt(n,r[i]).length;i++);n.level=i,(r[i]||(r[i]=[])).push(n)}return r}(t)),n=e[0]){for(i=0;n.length>i;i++)J(n[i]);for(i=0;n.length>i;i++)K(n[i],0,0)}}function J(t){var e,n,i=t.forwardSegs,r=0;if(void 0===t.forwardPressure){for(e=0;i.length>e;e++)J(n=i[e]),r=Math.max(r,1+n.forwardPressure);t.forwardPressure=r}}function K(t,e,n){var i,r=t.forwardSegs;if(void 0===t.forwardCoord)for(r.length?(r.sort(et),K(r[0],e+1,n),t.forwardCoord=r[0].backwardCoord):t.forwardCoord=1,t.backwardCoord=t.forwardCoord-(t.forwardCoord-n)/(e+1),i=0;r.length>i;i++)K(r[i],0,t.forwardCoord)}function tt(t,e,n){n=n||[];for(var i=0;e.length>i;i++)r=t,o=e[i],r.bottom>o.top&&r.top<o.bottom&&n.push(e[i]);var r,o;return n}function et(t,e){return e.forwardPressure-t.forwardPressure||(t.backwardCoord||0)-(e.backwardCoord||0)||V(t,e)}function nt(o){function r(t){var e=n[t];return $.isPlainObject(e)&&!f(t)?g(e,S.name):e}function s(t,e){return o.trigger.apply(o,[t,e||S].concat(Array.prototype.slice.call(arguments,2),[S]))}function t(t,e){var n=S.colCnt,i=p?-1:1,r=p?n-1:0;return"object"==typeof t&&(e=t.col,t=t.row),t*n+(e*i+r)}function w(t){var e=S.start.day();return t+=d[e],7*Math.floor(t/i)+h[(t%i+i)%i]-e}function e(t){return S.start.clone().add(t,"days")}function x(t){return t.clone().stripTime().diff(S.start,"days")}function T(t){var e=S.start.day();return t+=e,Math.floor(t/7)*i+d[(t%7+7)%7]-d[e]}function E(t){var e=S.colCnt,n=p?-1:1,i=p?e-1:0;return{row:Math.floor(t/e),col:(t%e+e)%e*n+i}}function k(t,e){var n,i,r=t.clone().stripTime();return e&&(n=e.clone().stripTime(),(i=+e.time())&&l<=i&&n.add(1,"days")),(!e||n<=r)&&(n=r.clone().add(1,"days")),{start:r,end:n}}var S=this;S.calendar=o,S.opt=r,S.trigger=s,S.isEventDraggable=function(t){var e=t.source||{};return j(t.startEditable,e.startEditable,r("eventStartEditable"),t.editable,e.editable,r("editable"))},S.isEventResizable=function(t){var e=t.source||{};return j(t.durationEditable,e.durationEditable,r("eventDurationEditable"),t.editable,e.editable,r("editable"))},S.eventDrop=function(t,e,n,i){var r=o.mutateEvent(e,n,null);s("eventDrop",t,e,r.dateDelta,function(){r.undo(),a()},i,{}),a()},S.eventResize=function(t,e,n,i){var r=o.mutateEvent(e,null,n);s("eventResize",t,e,r.durationDelta,function(){r.undo(),a()},i,{}),a()};var a=o.reportEventChange,n=o.options,l=O.duration(n.nextDayThreshold);S.init(),S.getEventTimeText=function(t,e){var n,i;return"object"==typeof t&&"object"==typeof e?(n=t,i=e,e=arguments[2]):(n=t.start,i=t.end),e=e||r("timeFormat"),i&&r("displayEventEnd")?o.formatRange(n,i,e):o.formatDate(n,e)},S.isHiddenDay=function(t){return O.isMoment(t)&&(t=t.day()),u[t]},S.skipHiddenDays=function(t,e,n){var i=t.clone();for(e=e||1;u[(i.day()+(n?e:0)+7)%7];)i.add(e,"days");return i},S.getCellsPerWeek=function(){return i},S.dateToCell=function(t){return E(T(x(t)))},S.dateToDayOffset=x,S.dayOffsetToCellOffset=T,S.cellOffsetToCell=E,S.cellToDate=function(){return e(w(t.apply(null,arguments)))},S.cellToCellOffset=t,S.cellOffsetToDayOffset=w,S.dayOffsetToDate=e,S.rangeToSegments=function(t,e){for(var n=S.rowCnt,i=S.colCnt,r=[],o=k(t,e),s=x(o.start),a=x(o.end),l=T(s),c=T(a)-1,u=0;u<n;u++){var d=u*i,h=d+i-1,p=Math.max(l,d),f=Math.min(c,h);if(p<=f){var g=E(p),m=E(f),v=[g.col,m.col].sort(),y=w(p)==s,b=w(f)+1==a;r.push({row:u,leftCol:v[0],rightCol:v[1],isStart:y,isEnd:b})}}return r},S.isMultiDayEvent=function(t){var e=k(t.start,t.end);return 1<e.end.diff(e.start,"days")};var i,c=r("hiddenDays")||[],u=[],d=[],h=[],p=r("isRTL");!function(){!1===r("weekends")&&c.push(0,6);for(var t=0,e=0;t<7;t++)d[t]=e,u[t]=-1!=$.inArray(t,c),u[t]||(h[e]=t,e++);if(!(i=e))throw"invalid hiddenDays"}()}function it(t){nt.call(this,t),this.dayGrid=new q(this),this.coordMap=this.dayGrid.coordMap}function rt(t){it.call(this,t)}function ot(t){it.call(this,t)}function st(t){it.call(this,t)}function at(t){nt.call(this,t),this.timeGrid=new X(this),this.opt("allDaySlot")?(this.dayGrid=new q(this),this.coordMap=new _([this.dayGrid.coordMap,this.timeGrid.coordMap])):this.coordMap=this.timeGrid.coordMap}function lt(t){at.call(this,t)}function ct(t){at.call(this,t)}var ut={lang:"en",defaultTimedEventDuration:"02:00:00",defaultAllDayEventDuration:{days:1},forceEventDuration:!1,nextDayThreshold:"09:00:00",defaultView:"month",aspectRatio:1.35,header:{left:"title",center:"",right:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberTitle:"W",weekNumberCalculation:"local",lazyFetching:!0,startParam:"start",endParam:"end",timezoneParam:"timezone",timezone:!1,titleFormat:{month:"MMMM YYYY",week:"ll",day:"LL"},columnFormat:{month:"ddd",week:function(t,e){var n=e.longDateFormat("L");return n=n.replace(/^Y+[^\w\s]*|[^\w\s]*Y+$/g,""),t.isRTL?n+=" ddd":n="ddd "+n,n},day:"dddd"},timeFormat:{default:function(t,e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"t")}},displayEventEnd:{month:!1,basicWeek:!1,default:!0},isRTL:!1,defaultButtonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",today:"today",month:"month",week:"week",day:"day"},buttonIcons:{prev:"left-single-arrow",next:"right-single-arrow",prevYear:"left-double-arrow",nextYear:"right-double-arrow"},theme:!1,themeButtonIcons:{prev:"circle-triangle-w",next:"circle-triangle-e",prevYear:"seek-prev",nextYear:"seek-next"},dragOpacity:.75,dragRevertDuration:500,dragScroll:!0,unselectAuto:!0,dropAccept:"*",eventLimit:!1,eventLimitText:"more",eventLimitClick:"popover",dayPopoverFormat:"LL",handleWindowResize:!0,windowResizeDelay:200},dt={en:{columnFormat:{week:"ddd M/D"},dayPopoverFormat:"dddd, MMMM D"}},ht={header:{left:"next,prev today",center:"",right:"title"},buttonIcons:{prev:"right-single-arrow",next:"left-single-arrow",prevYear:"right-double-arrow",nextYear:"left-double-arrow"},themeButtonIcons:{prev:"circle-triangle-e",next:"circle-triangle-w",nextYear:"seek-prev",prevYear:"seek-next"}},pt=$.fullCalendar={version:"2.1.1"},ft=pt.views={};$.fn.fullCalendar=function(o){var s=Array.prototype.slice.call(arguments,1),a=this;return this.each(function(t,e){var n,i=$(e),r=i.data("fullCalendar");"string"==typeof o?r&&$.isFunction(r[o])&&(n=r[o].apply(r,s),t||(a=n),"destroy"===o&&i.removeData("fullCalendar")):r||(r=new l(i,o),i.data("fullCalendar",r),r.render())}),a},pt.langs=dt,pt.datepickerLang=function(t,e,n){var i=dt[t];R(i=i||(dt[t]={}),{isRTL:n.isRTL,weekNumberTitle:n.weekHeader,titleFormat:{month:n.showMonthAfterYear?"YYYY["+n.yearSuffix+"] MMMM":"MMMM YYYY["+n.yearSuffix+"]"},defaultButtonText:{prev:v(n.prevText),next:v(n.nextText),today:v(n.currentText)}}),$.datepicker&&($.datepicker.regional[e]=$.datepicker.regional[t]=n,$.datepicker.regional.en=$.datepicker.regional[""],$.datepicker.setDefaults(n))},pt.lang=function(t,e){e&&R(dt[t]||(dt[t]={}),e||{}),ut.lang=t},pt.sourceNormalizers=[];var gt={dataType:"json",cache:!(pt.sourceFetchers=[])},mt=1,vt=["sun","mon","tue","wed","thu","fri","sat"];pt.applyAll=L;var yt=/^\s*\d{4}-\d\d$/,bt=/^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/;pt.moment=function(){return y(arguments)},pt.moment.utc=function(){var t=y(arguments,!0);return t.hasTime()&&t.utc(),t},pt.moment.parseZone=function(){return y(arguments,!0,!0)},(b.prototype=H(O.fn)).clone=function(){return y([this])},b.prototype.time=function(t){if(null==t)return O.duration({hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()});delete this._ambigTime,O.isDuration(t)||O.isMoment(t)||(t=O.duration(t));var e=0;return O.isDuration(t)&&(e=24*Math.floor(t.asDays())),this.hours(e+t.hours()).minutes(t.minutes()).seconds(t.seconds()).milliseconds(t.milliseconds())},b.prototype.stripTime=function(){var t=this.toArray();return O.fn.utc.call(this),this.year(t[0]).month(t[1]).date(t[2]).hours(0).minutes(0).seconds(0).milliseconds(0),this._ambigTime=!0,this._ambigZone=!0,this},b.prototype.hasTime=function(){return!this._ambigTime},b.prototype.stripZone=function(){var t=this.toArray(),e=this._ambigTime;return O.fn.utc.call(this),this.year(t[0]).month(t[1]).date(t[2]).hours(t[3]).minutes(t[4]).seconds(t[5]).milliseconds(t[6]),e&&(this._ambigTime=!0),this._ambigZone=!0,this},b.prototype.hasZone=function(){return!this._ambigZone},b.prototype.zone=function(t){return null!=t&&(delete this._ambigTime,delete this._ambigZone),O.fn.zone.apply(this,arguments)},b.prototype.local=function(){var t=this.toArray(),e=this._ambigZone;return delete this._ambigTime,delete this._ambigZone,O.fn.local.apply(this,arguments),e&&this.year(t[0]).month(t[1]).date(t[2]).hours(t[3]).minutes(t[4]).seconds(t[5]).milliseconds(t[6]),this},b.prototype.utc=function(){return delete this._ambigTime,delete this._ambigZone,O.fn.utc.apply(this,arguments)},b.prototype.format=function(){return arguments[0]?W(this,arguments[0]):this._ambigTime?x(this,"YYYY-MM-DD"):this._ambigZone?x(this,"YYYY-MM-DD[T]HH:mm:ss"):x(this)},b.prototype.toISOString=function(){return this._ambigTime?x(this,"YYYY-MM-DD"):this._ambigZone?x(this,"YYYY-MM-DD[T]HH:mm:ss"):O.fn.toISOString.apply(this,arguments)},b.prototype.isWithin=function(t,e){var n=w([this,t,e]);return n[0]>=n[1]&&n[0]<n[2]},b.prototype.isSame=function(t,e){var n;return e?(n=w([this,t],!0),O.fn.isSame.call(n[0],n[1],e)):(t=pt.moment.parseZone(t),O.fn.isSame.call(this,t)&&Boolean(this._ambigTime)===Boolean(t._ambigTime)&&Boolean(this._ambigZone)===Boolean(t._ambigZone))},$.each(["isBefore","isAfter"],function(t,i){b.prototype[i]=function(t,e){var n=w([this,t]);return O.fn[i].call(n[0],n[1],e)}});var wt={t:function(t){return x(t,"a").charAt(0)},T:function(t){return x(t,"A").charAt(0)}};pt.formatRange=U;var xt={Y:"year",M:"month",D:"day",d:"day",A:"second",a:"second",T:"second",t:"second",H:"second",h:"second",m:"second",s:"second"},Tt={};D.prototype={isHidden:!0,options:null,el:null,documentMousedownProxy:null,margin:10,show:function(){this.isHidden&&(this.el||this.render(),this.el.show(),this.position(),this.isHidden=!1,this.trigger("show"))},hide:function(){this.isHidden||(this.el.hide(),this.isHidden=!0,this.trigger("hide"))},render:function(){var t=this,e=this.options;this.el=$('<div class="fc-popover"/>').addClass(e.className||"").css({top:0,left:0}).append(e.content).appendTo(e.parentEl),this.el.on("click",".fc-close",function(){t.hide()}),e.autoHide&&$(document).on("mousedown",this.documentMousedownProxy=$.proxy(this,"documentMousedown"))},documentMousedown:function(t){this.el&&!$(t.target).closest(this.el).length&&this.hide()},destroy:function(){this.hide(),this.el&&(this.el.remove(),this.el=null),$(document).off("mousedown",this.documentMousedownProxy)},position:function(){var t,e,n,i,r,o=this.options,s=this.el.offsetParent().offset(),a=this.el.outerWidth(),l=this.el.outerHeight(),c=$(window),u=d(this.el);i=o.top||0,r=void 0!==o.left?o.left:void 0!==o.right?o.right-a:0,e=u.is(window)||u.is(document)?(u=c,t=0):(t=(n=u.offset()).top,n.left),t+=c.scrollTop(),e+=c.scrollLeft(),!1!==o.viewportConstrain&&(i=Math.min(i,t+u.outerHeight()-l-this.margin),i=Math.max(i,t+this.margin),r=Math.min(r,e+u.outerWidth()-a-this.margin),r=Math.max(r,e+this.margin)),this.el.css({top:i-s.top,left:r-s.left})},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))}},C.prototype={grid:null,rows:null,cols:null,containerEl:null,minX:null,maxX:null,minY:null,maxY:null,build:function(){this.grid.buildCoords(this.rows=[],this.cols=[]),this.computeBounds()},getCell:function(t,e){var n,i=null,r=this.rows,o=this.cols,s=-1,a=-1;if(this.inBounds(t,e)){for(n=0;r.length>n;n++)if(e>=r[n][0]&&r[n][1]>e){s=n;break}for(n=0;o.length>n;n++)if(t>=o[n][0]&&o[n][1]>t){a=n;break}0<=s&&0<=a&&((i={row:s,col:a}).grid=this.grid,i.date=this.grid.getCellDate(i))}return i},computeBounds:function(){var t;this.containerEl&&(t=this.containerEl.offset(),this.minX=t.left,this.maxX=t.left+this.containerEl.outerWidth(),this.minY=t.top,this.maxY=t.top+this.containerEl.outerHeight())},inBounds:function(t,e){return!this.containerEl||t>=this.minX&&this.maxX>t&&e>=this.minY&&this.maxY>e}},N.prototype={options:null,sourceEl:null,el:null,parentEl:null,top0:null,left0:null,mouseY0:null,mouseX0:null,topDelta:null,leftDelta:null,mousemoveProxy:null,isFollowing:!(A.prototype={coordMap:null,options:null,isListening:!(_.prototype={coordMaps:null,build:function(){var t,e=this.coordMaps;for(t=0;e.length>t;t++)e[t].build()},getCell:function(t,e){var n,i=this.coordMaps,r=null;for(n=0;i.length>n&&!r;n++)r=i[n].getCell(t,e);return r}}),isDragging:!1,origCell:null,origDate:null,cell:null,date:null,mouseX0:null,mouseY0:null,mousemoveProxy:null,mouseupProxy:null,scrollEl:null,scrollBounds:null,scrollTopVel:null,scrollLeftVel:null,scrollIntervalId:null,scrollHandlerProxy:null,scrollSensitivity:30,scrollSpeed:200,scrollIntervalMs:50,mousedown:function(t){u(t)&&(t.preventDefault(),this.startListening(t),this.options.distance||this.startDrag(t))},startListening:function(t){var e,n;this.isListening||(t&&this.options.scroll&&((e=d($(t.target))).is(window)||e.is(document)||(this.scrollEl=e,this.scrollHandlerProxy=Y($.proxy(this,"scrollHandler"),100),this.scrollEl.on("scroll",this.scrollHandlerProxy))),this.computeCoords(),t&&(n=this.getCell(t),this.origCell=n,this.origDate=n?n.date:null,this.mouseX0=t.pageX,this.mouseY0=t.pageY),$(document).on("mousemove",this.mousemoveProxy=$.proxy(this,"mousemove")).on("mouseup",this.mouseupProxy=$.proxy(this,"mouseup")).on("selectstart",this.preventDefault),this.isListening=!0,this.trigger("listenStart",t))},computeCoords:function(){this.coordMap.build(),this.computeScrollBounds()},mousemove:function(t){var e;this.isDragging||(e=this.options.distance||1)*e<=Math.pow(t.pageX-this.mouseX0,2)+Math.pow(t.pageY-this.mouseY0,2)&&this.startDrag(t),this.isDragging&&this.drag(t)},startDrag:function(t){var e;this.isListening||this.startListening(),this.isDragging||(this.isDragging=!0,this.trigger("dragStart",t),(e=this.getCell(t))&&this.cellOver(e,!0))},drag:function(t){var e;this.isDragging&&(function(t,e){return!t&&!e||!(!t||!e)&&(t.grid===e.grid&&t.row===e.row&&t.col===e.col)}(e=this.getCell(t),this.cell)||(this.cell&&this.cellOut(),e&&this.cellOver(e)),this.dragScroll(t))},cellOver:function(t){this.cell=t,this.date=t.date,this.trigger("cellOver",t,t.date)},cellOut:function(){this.cell&&(this.trigger("cellOut",this.cell),this.cell=null,this.date=null)},mouseup:function(t){this.stopDrag(t),this.stopListening(t)},stopDrag:function(t){this.isDragging&&(this.stopScrolling(),this.trigger("dragStop",t),this.isDragging=!1)},stopListening:function(t){this.isListening&&(this.scrollEl&&(this.scrollEl.off("scroll",this.scrollHandlerProxy),this.scrollHandlerProxy=null),$(document).off("mousemove",this.mousemoveProxy).off("mouseup",this.mouseupProxy).off("selectstart",this.preventDefault),this.mousemoveProxy=null,this.mouseupProxy=null,this.isListening=!1,this.trigger("listenStop",t),this.origCell=this.cell=null,this.origDate=this.date=null)},getCell:function(t){return this.coordMap.getCell(t.pageX,t.pageY)},trigger:function(t){this.options[t]&&this.options[t].apply(this,Array.prototype.slice.call(arguments,1))},preventDefault:function(t){t.preventDefault()},computeScrollBounds:function(){var t,e=this.scrollEl;e&&(t=e.offset(),this.scrollBounds={top:t.top,left:t.left,bottom:t.top+e.outerHeight(),right:t.left+e.outerWidth()})},dragScroll:function(t){var e,n,i,r,o=this.scrollSensitivity,s=this.scrollBounds,a=0,l=0;s&&(e=(o-(t.pageY-s.top))/o,n=(o-(s.bottom-t.pageY))/o,i=(o-(t.pageX-s.left))/o,r=(o-(s.right-t.pageX))/o,0<=e&&e<=1?a=-1*e*this.scrollSpeed:0<=n&&n<=1&&(a=n*this.scrollSpeed),0<=i&&i<=1?l=-1*i*this.scrollSpeed:0<=r&&r<=1&&(l=r*this.scrollSpeed)),this.setScrollVel(a,l)},setScrollVel:function(t,e){this.scrollTopVel=t,this.scrollLeftVel=e,this.constrainScrollVel(),!this.scrollTopVel&&!this.scrollLeftVel||this.scrollIntervalId||(this.scrollIntervalId=setInterval($.proxy(this,"scrollIntervalFunc"),this.scrollIntervalMs))},constrainScrollVel:function(){var t=this.scrollEl;this.scrollTopVel<0?t.scrollTop()<=0&&(this.scrollTopVel=0):0<this.scrollTopVel&&t.scrollTop()+t[0].clientHeight>=t[0].scrollHeight&&(this.scrollTopVel=0),this.scrollLeftVel<0?t.scrollLeft()<=0&&(this.scrollLeftVel=0):0<this.scrollLeftVel&&t.scrollLeft()+t[0].clientWidth>=t[0].scrollWidth&&(this.scrollLeftVel=0)},scrollIntervalFunc:function(){var t=this.scrollEl,e=this.scrollIntervalMs/1e3;this.scrollTopVel&&t.scrollTop(t.scrollTop()+this.scrollTopVel*e),this.scrollLeftVel&&t.scrollLeft(t.scrollLeft()+this.scrollLeftVel*e),this.constrainScrollVel(),this.scrollTopVel||this.scrollLeftVel||this.stopScrolling()},stopScrolling:function(){this.scrollIntervalId&&(clearInterval(this.scrollIntervalId),this.scrollIntervalId=null,this.computeCoords())},scrollHandler:function(){this.scrollIntervalId||this.computeCoords()}}),isHidden:!1,isAnimating:!1,start:function(t){this.isFollowing||(this.isFollowing=!0,this.mouseY0=t.pageY,this.mouseX0=t.pageX,this.topDelta=0,this.leftDelta=0,this.isHidden||this.updatePosition(),$(document).on("mousemove",this.mousemoveProxy=$.proxy(this,"mousemove")))},stop:function(t,e){function n(){this.isAnimating=!1,i.destroyEl(),this.top0=this.left0=null,e&&e()}var i=this,r=this.options.revertDuration;this.isFollowing&&!this.isAnimating&&(this.isFollowing=!1,$(document).off("mousemove",this.mousemoveProxy),t&&r&&!this.isHidden?(this.isAnimating=!0,this.el.animate({top:this.top0,left:this.left0},{duration:r,complete:n})):n())},getEl:function(){var t=this.el;return t||(this.sourceEl.width(),t=this.el=this.sourceEl.clone().css({position:"absolute",visibility:"",display:this.isHidden?"none":"",margin:0,right:"auto",bottom:"auto",width:this.sourceEl.width(),height:this.sourceEl.height(),opacity:this.options.opacity||"",zIndex:this.options.zIndex}).appendTo(this.parentEl)),t},destroyEl:function(){this.el&&(this.el.remove(),this.el=null)},updatePosition:function(){var t,e;this.getEl(),null===this.top0&&(this.sourceEl.width(),t=this.sourceEl.offset(),e=this.el.offsetParent().offset(),this.top0=t.top-e.top,this.left0=t.left-e.left),this.el.css({top:this.top0+this.topDelta,left:this.left0+this.leftDelta})},mousemove:function(t){this.topDelta=t.pageY-this.mouseY0,this.leftDelta=t.pageX-this.mouseX0,this.isHidden||this.updatePosition()},hide:function(){this.isHidden||(this.isHidden=!0,this.el&&this.el.hide())},show:function(){this.isHidden&&(this.isHidden=!1,this.updatePosition(),this.getEl().show())}},G.prototype=H(M.prototype={view:null,cellHtml:"<td/>",rowHtml:function(t,e){var n,i=this.view,r=this.getHtmlRenderer("cell",t),o="";for(e=e||0,n=0;i.colCnt>n;n++)o+=r(e,n,i.cellToDate(e,n));return"<tr>"+(o=this.bookendCells(o,t,e))+"</tr>"},bookendCells:function(t,e,n){var i=this.view,r=this.getHtmlRenderer("intro",e)(n||0),o=this.getHtmlRenderer("outro",e)(n||0),s=i.opt("isRTL"),a=s?o:r,l=s?r:o;return"string"==typeof t?a+t+l:t.prepend(a).append(l)},getHtmlRenderer:function(t,e){var n,i,r,o,s=this.view;return n=t+"Html",e&&(i=e+z(t)+"Html"),i&&(o=s[i])?r=s:i&&(o=this[i])?r=this:(o=s[n])?r=s:(o=this[n])&&(r=this),"function"==typeof o?function(){return o.apply(r,arguments)||""}:function(){return o||""}}}),$.extend(G.prototype,{el:null,coordMap:null,cellDuration:null,render:function(){this.bindHandlers()},destroy:function(){},buildCoords:function(){},getCellDate:function(){},getCellDayEl:function(){},rangeToSegs:function(){},bindHandlers:function(){var e=this;this.el.on("mousedown",function(t){$(t.target).is(".fc-event-container *, .fc-more")||$(t.target).closest(".fc-popover").length||e.dayMousedown(t)}),this.bindSegHandlers()},dayMousedown:function(t){var n,i,r,o=this,e=this.view,s=e.opt("selectable"),a=null,l=new A(this.coordMap,{scroll:e.opt("dragScroll"),dragStart:function(){e.unselect()},cellOver:function(t,e){l.origDate&&(r=o.getCellDayEl(t),a=[e,l.origDate].sort(p),n=a[0],i=a[1].clone().add(o.cellDuration),s&&o.renderSelection(n,i))},cellOut:function(){a=null,o.destroySelection()},listenStop:function(t){a&&(a[0].isSame(a[1])&&e.trigger("dayClick",r[0],n,t),s&&e.reportSelection(n,i,t))}});l.mousedown(t)},renderDrag:function(){},destroyDrag:function(){},renderResize:function(){},destroyResize:function(){},renderRangeHelper:function(t,e,n){var i,r=this.view;!e&&r.opt("forceEventDuration")&&(e=r.calendar.getDefaultEventEnd(!t.hasTime(),t)),(i=n?H(n.event):{}).start=t,i.end=e,i.allDay=!(t.hasTime()||e&&e.hasTime()),i.className=(i.className||[]).concat("fc-helper"),n||(i.editable=!1),this.renderHelper(i,n)},renderHelper:function(){},destroyHelper:function(){},renderSelection:function(t,e){this.renderHighlight(t,e)},destroySelection:function(){this.destroyHighlight()},renderHighlight:function(){},destroyHighlight:function(){},headHtml:function(){return'<div class="fc-row '+this.view.widgetHeaderClass+'"><table><thead>'+this.rowHtml("head")+"</thead></table></div>"},headCellHtml:function(t,e,n){var i=this.view,r=i.calendar,o=i.opt("columnFormat");return'<th class="fc-day-header '+i.widgetHeaderClass+" fc-"+vt[n.day()]+'">'+m(r.formatDate(n,o))+"</th>"},bgCellHtml:function(t,e,n){var i=this.view,r=this.getDayClasses(n);return r.unshift("fc-day",i.widgetContentClass),'<td class="'+r.join(" ")+'" data-date="'+n.format()+'"></td>'},getDayClasses:function(t){var e=this.view,n=e.calendar.getNow().stripTime(),i=["fc-"+vt[t.day()]];return"month"===e.name&&t.month()!=e.intervalStart.month()&&i.push("fc-other-month"),t.isSame(n,"day")?i.push("fc-today",e.highlightStateClass):t<n?i.push("fc-past"):i.push("fc-future"),i}}),$.extend(G.prototype,{mousedOverSeg:null,isDraggingSeg:!1,isResizingSeg:!1,renderEvents:function(){},getSegs:function(){},destroyEvents:function(){this.triggerSegMouseout()},renderSegs:function(r,t){var e,o=this.view,n="",s=[];for(e=0;r.length>e;e++)n+=this.renderSegHtml(r[e],t);return $(n).each(function(t,e){var n=r[t],i=o.resolveEventEl(n.event,$(e));i&&(i.data("fc-seg",n),n.el=i,s.push(n))}),s},renderSegHtml:function(){},eventsToSegs:function(t,e,n){var i=this;return $.map(t,function(t){return i.eventToSegs(t,e,n)})},eventToSegs:function(t,e,n){var i,r,o,s=t.start.clone().stripZone(),a=this.view.calendar.getEventEnd(t).stripZone();for(i=e&&n?(o=h(s,a,e,n))?[o]:[]:this.rangeToSegs(s,a),r=0;i.length>r;r++)(o=i[r]).event=t,o.eventStartMS=+s,o.eventDurationMS=a-s;return i},bindSegHandlers:function(){var i=this,n=this.view;$.each({mouseenter:function(t,e){i.triggerSegMouseover(t,e)},mouseleave:function(t,e){i.triggerSegMouseout(t,e)},click:function(t,e){return n.trigger("eventClick",this,t.event,e)},mousedown:function(t,e){$(e.target).is(".fc-resizer")&&n.isEventResizable(t.event)?i.segResizeMousedown(t,e):n.isEventDraggable(t.event)&&i.segDragMousedown(t,e)}},function(t,n){i.el.on(t,".fc-event-container > *",function(t){var e=$(this).data("fc-seg");return!e||i.isDraggingSeg||i.isResizingSeg?void 0:n.call(this,e,t)})})},triggerSegMouseover:function(t,e){this.mousedOverSeg||(this.mousedOverSeg=t,this.view.trigger("eventMouseover",t.el[0],t.event,e))},triggerSegMouseout:function(t,e){e=e||{},this.mousedOverSeg&&(t=t||this.mousedOverSeg,this.mousedOverSeg=null,this.view.trigger("eventMouseout",t.el[0],t.event,e))},segDragMousedown:function(r,t){var o,s,a=this,l=this.view,n=r.el,i=r.event,c=new N(r.el,{parentEl:l.el,opacity:l.opt("dragOpacity"),revertDuration:l.opt("dragRevertDuration"),zIndex:2}),u=new A(l.coordMap,{distance:5,scroll:l.opt("dragScroll"),listenStart:function(t){c.hide(),c.start(t)},dragStart:function(t){a.triggerSegMouseout(r,t),a.isDraggingSeg=!0,l.hideEvent(i),l.trigger("eventDragStart",n[0],i,t,{})},cellOver:function(t,e){var n=r.cellDate||u.origDate,i=a.computeDraggedEventDates(r,n,e);o=i.start,s=i.end,l.renderDrag(o,s,r)?c.hide():c.show()},cellOut:function(){o=null,l.destroyDrag(),c.show()},dragStop:function(t){var e=o&&!o.isSame(i.start);c.stop(!e,function(){a.isDraggingSeg=!1,l.destroyDrag(),l.showEvent(i),l.trigger("eventDragStop",n[0],i,t,{}),e&&l.eventDrop(n[0],i,o,t)})},listenStop:function(){c.stop()}});u.mousedown(t)},computeDraggedEventDates:function(t,e,n){var i,r,o,s=this.view,a=t.event,l=a.start,c=s.calendar.getEventEnd(a);return o=n.hasTime()===e.hasTime()?(i=I(n,e),r=l.clone().add(i),null===a.end?null:c.clone().add(i)):(r=n,null),{start:r,end:o}},segResizeMousedown:function(n,t){function i(){r.destroyResize(),o.showEvent(s)}var r=this,o=this.view,e=n.el,s=n.event,a=s.start,l=o.calendar.getEventEnd(s),c=null;new A(this.coordMap,{distance:5,scroll:o.opt("dragScroll"),dragStart:function(t){r.triggerSegMouseout(n,t),r.isResizingSeg=!0,o.trigger("eventResizeStart",e[0],s,t,{})},cellOver:function(t,e){e.isBefore(a)&&(e=a),(c=e.clone().add(r.cellDuration)).isSame(l)?(c=null,i()):(r.renderResize(a,c,n),o.hideEvent(s))},cellOut:function(){c=null,i()},dragStop:function(t){r.isResizingSeg=!1,i(),o.trigger("eventResizeStop",e[0],s,t,{}),c&&o.eventResize(e[0],s,c,t)}}).mousedown(t)},getSegClasses:function(t,e,n){var i=t.event,r=["fc-event",t.isStart?"fc-start":"fc-not-start",t.isEnd?"fc-end":"fc-not-end"].concat(i.className,i.source?i.source.className:[]);return e&&r.push("fc-draggable"),n&&r.push("fc-resizable"),r},getEventSkinCss:function(t){var e=this.view,n=t.source||{},i=t.color,r=n.color,o=e.opt("eventColor"),s=t.backgroundColor||i||n.backgroundColor||r||e.opt("eventBackgroundColor")||o,a=t.borderColor||i||n.borderColor||r||e.opt("eventBorderColor")||o,l=t.textColor||n.textColor||e.opt("eventTextColor"),c=[];return s&&c.push("background-color:"+s),a&&c.push("border-color:"+a),l&&c.push("color:"+l),c.join(";")}}),q.prototype=H(G.prototype),$.extend(q.prototype,{numbersVisible:!1,cellDuration:O.duration({days:1}),bottomCoordPadding:0,rowEls:null,dayEls:null,helperEls:null,highlightEls:null,render:function(t){var e,i=this.view,n="";for(e=0;i.rowCnt>e;e++)n+=this.dayRowHtml(e,t);this.el.html(n),this.rowEls=this.el.find(".fc-row"),this.dayEls=this.el.find(".fc-day"),this.dayEls.each(function(t,e){var n=i.cellToDate(Math.floor(t/i.colCnt),t%i.colCnt);i.trigger("dayRender",null,n,$(e))}),G.prototype.render.call(this)},destroy:function(){this.destroySegPopover()},dayRowHtml:function(t,e){var n=["fc-row","fc-week",this.view.widgetContentClass];return e&&n.push("fc-rigid"),'<div class="'+n.join(" ")+'"><div class="fc-bg"><table>'+this.rowHtml("day",t)+'</table></div><div class="fc-content-skeleton"><table>'+(this.numbersVisible?"<thead>"+this.rowHtml("number",t)+"</thead>":"")+"</table></div></div>"},dayCellHtml:function(t,e,n){return this.bgCellHtml(t,e,n)},buildCoords:function(n,i){var r,o,s,t=this.view.colCnt;this.dayEls.slice(0,t).each(function(t,e){r=$(e),o=r.offset().left,t&&(s[1]=o),s=[o],i[t]=s}),s[1]=o+r.outerWidth(),this.rowEls.each(function(t,e){r=$(e),o=r.offset().top,t&&(s[1]=o),s=[o],n[t]=s}),s[1]=o+r.outerHeight()+this.bottomCoordPadding},getCellDate:function(t){return this.view.cellToDate(t)},getCellDayEl:function(t){return this.dayEls.eq(t.row*this.view.colCnt+t.col)},rangeToSegs:function(t,e){return this.view.rangeToSegments(t,e)},renderDrag:function(t,e,n){var i;return this.renderHighlight(t,e||this.view.calendar.getDefaultEventEnd(!0,t)),n&&!n.el.closest(this.el).length?(this.renderRangeHelper(t,e,n),void 0!==(i=this.view.opt("dragOpacity"))&&this.helperEls.css("opacity",i),!0):void 0},destroyDrag:function(){this.destroyHighlight(),this.destroyHelper()},renderResize:function(t,e,n){this.renderHighlight(t,e),this.renderRangeHelper(t,e,n)},destroyResize:function(){this.destroyHighlight(),this.destroyHelper()},renderHelper:function(t,o){var s=[],a=this.renderEventRows([t]);this.rowEls.each(function(t,e){var n,i=$(e),r=$('<div class="fc-helper-skeleton"><table/></div>');n=o&&o.row===t?o.el.position().top:i.find(".fc-content-skeleton tbody").position().top,r.css("top",n).find("table").append(a[t].tbodyEl),i.append(r),s.push(r[0])}),this.helperEls=$(s)},destroyHelper:function(){this.helperEls&&(this.helperEls.remove(),this.helperEls=null)},renderHighlight:function(t,e){var n,i,r,o=this.rangeToSegs(t,e),s=[];for(n=0;o.length>n;n++)i=o[n],(r=$(this.highlightSkeletonHtml(i.leftCol,i.rightCol+1))).appendTo(this.rowEls[i.row]),s.push(r[0]);this.highlightEls=$(s)},destroyHighlight:function(){this.highlightEls&&(this.highlightEls.remove(),this.highlightEls=null)},highlightSkeletonHtml:function(t,e){var n=this.view.colCnt,i="";return 0<t&&(i+='<td colspan="'+t+'"/>'),t<e&&(i+='<td colspan="'+(e-t)+'" class="fc-highlight" />'),e<n&&(i+='<td colspan="'+(n-e)+'"/>'),'<div class="fc-highlight-skeleton"><table><tr>'+(i=this.bookendCells(i,"highlight"))+"</tr></table></div>"}}),$.extend(q.prototype,{segs:null,rowStructs:null,renderEvents:function(t){var n=this.rowStructs=this.renderEventRows(t),i=[];this.rowEls.each(function(t,e){$(e).find(".fc-content-skeleton > table").append(n[t].tbodyEl),i.push.apply(i,n[t].segs)}),this.segs=i},getSegs:function(){return(this.segs||[]).concat(this.popoverSegs||[])},destroyEvents:function(){var t,e;for(G.prototype.destroyEvents.call(this),t=this.rowStructs||[];e=t.pop();)e.tbodyEl.remove();this.segs=null,this.destroySegPopover()},renderEventRows:function(t){var e,n,i=this.eventsToSegs(t),r=[];for(i=this.renderSegs(i),e=this.groupSegRows(i),n=0;e.length>n;n++)r.push(this.renderEventRow(n,e[n]));return r},renderSegHtml:function(t,e){var n,i=this.view,r=i.opt("isRTL"),o=t.event,s=i.isEventDraggable(o),a=!e&&o.allDay&&t.isEnd&&i.isEventResizable(o),l=this.getSegClasses(t,s,a),c=this.getEventSkinCss(o),u="";return l.unshift("fc-day-grid-event"),!o.allDay&&t.isStart&&(u='<span class="fc-time">'+m(i.getEventTimeText(o))+"</span>"),n='<span class="fc-title">'+(m(o.title||"")||"&nbsp;")+"</span>",'<a class="'+l.join(" ")+'"'+(o.url?' href="'+m(o.url)+'"':"")+(c?' style="'+c+'"':"")+'><div class="fc-content">'+(r?n+" "+u:u+" "+n)+"</div>"+(a?'<div class="fc-resizer"/>':"")+"</a>"},renderEventRow:function(t,e){function n(t){for(;o<t;)(c=(m[i-1]||[])[o])?c.attr("rowspan",parseInt(c.attr("rowspan")||1,10)+1):(c=$("<td/>"),s.append(c)),g[i][o]=c,m[i][o]=c,o++}var i,r,o,s,a,l,c,u=this.view.colCnt,d=this.buildSegLevels(e),h=Math.max(1,d.length),p=$("<tbody/>"),f=[],g=[],m=[];for(i=0;i<h;i++){if(r=d[i],o=0,s=$("<tr/>"),f.push([]),g.push([]),m.push([]),r)for(a=0;r.length>a;a++){for(n((l=r[a]).leftCol),c=$('<td class="fc-event-container"/>').append(l.el),l.leftCol!=l.rightCol?c.attr("colspan",l.rightCol-l.leftCol+1):m[i][o]=c;l.rightCol>=o;)g[i][o]=c,f[i][o]=l,o++;s.append(c)}n(u),this.bookendCells(s,"eventSkeleton"),p.append(s)}return{row:t,tbodyEl:p,cellMatrix:g,segMatrix:f,segLevels:d,segs:e}},buildSegLevels:function(t){var e,n,i,r=[];for(t.sort(V),e=0;t.length>e;e++){for(n=t[e],i=0;r.length>i&&B(n,r[i]);i++);(r[n.level=i]||(r[i]=[])).push(n)}for(i=0;r.length>i;i++)r[i].sort(Z);return r},groupSegRows:function(t){var e,n=this.view,i=[];for(e=0;n.rowCnt>e;e++)i.push([]);for(e=0;t.length>e;e++)i[t[e].row].push(t[e]);return i}}),$.extend(q.prototype,{segPopover:null,popoverSegs:null,destroySegPopover:function(){this.segPopover&&this.segPopover.hide()},limitRows:function(t){var e,n,i=this.rowStructs||[];for(e=0;i.length>e;e++)this.unlimitRow(e),!1!==(n=!!t&&("number"==typeof t?t:this.computeRowLevelLimit(e)))&&this.limitRow(e,n)},computeRowLevelLimit:function(t){var e,n,i=this.rowEls.eq(t).height(),r=this.rowStructs[t].tbodyEl.children();for(e=0;r.length>e;e++)if((n=r.eq(e).removeClass("fc-limited")).position().top+n.outerHeight()>i)return e;return!1},limitRow:function(e,n){function t(t){for(;E<t;)i={row:e,col:E},(c=b.getCellSegs(i,n)).length&&(h=o[n-1][E],y=b.renderMoreLink(i,c),v=$("<div/>").append(y),h.append(v),T.push(v[0])),E++}var i,r,o,s,a,l,c,u,d,h,p,f,g,m,v,y,b=this,w=this.view,x=this.rowStructs[e],T=[],E=0;if(n&&x.segLevels.length>n){for(r=x.segLevels[n-1],o=x.cellMatrix,s=x.tbodyEl.children().slice(n).addClass("fc-limited").get(),a=0;r.length>a;a++){for(t((l=r[a]).leftCol),d=[],u=0;l.rightCol>=E;)i={row:e,col:E},c=this.getCellSegs(i,n),d.push(c),u+=c.length,E++;if(u){for(p=(h=o[n-1][l.leftCol]).attr("rowspan")||1,f=[],g=0;d.length>g;g++)m=$('<td class="fc-more-cell"/>').attr("rowspan",p),c=d[g],i={row:e,col:l.leftCol+g},y=this.renderMoreLink(i,[l].concat(c)),v=$("<div/>").append(y),m.append(v),f.push(m[0]),T.push(m[0]);h.addClass("fc-limited").after($(f)),s.push(h[0])}}t(w.colCnt),x.moreEls=$(T),x.limitedEls=$(s)}},unlimitRow:function(t){var e=this.rowStructs[t];e.moreEls&&(e.moreEls.remove(),e.moreEls=null),e.limitedEls&&(e.limitedEls.removeClass("fc-limited"),e.limitedEls=null)},renderMoreLink:function(l,c){var u=this,d=this.view;return $('<a class="fc-more"/>').text(this.getMoreLinkText(c.length)).on("click",function(t){var e=d.opt("eventLimitClick"),n=d.cellToDate(l),i=$(this),r=u.getCellDayEl(l),o=u.getCellSegs(l),s=u.resliceDaySegs(o,n),a=u.resliceDaySegs(c,n);"function"==typeof e&&(e=d.trigger("eventLimitClick",null,{date:n,dayEl:r,moreEl:i,segs:s,hiddenSegs:a},t)),"popover"===e?u.showSegPopover(n,l,i,s):"string"==typeof e&&d.calendar.zoomTo(n,e)})},showSegPopover:function(t,e,n,i){var r,o,s=this,a=this.view,l=n.parent();r=1==a.rowCnt?this.view.el:this.rowEls.eq(e.row),o={className:"fc-more-popover",content:this.renderSegPopoverContent(t,i),parentEl:this.el,top:r.offset().top,autoHide:!0,viewportConstrain:a.opt("popoverViewportConstrain"),hide:function(){s.segPopover.destroy(),s.segPopover=null,s.popoverSegs=null}},a.opt("isRTL")?o.right=l.offset().left+l.outerWidth()+1:o.left=l.offset().left-1,this.segPopover=new D(o),this.segPopover.show()},renderSegPopoverContent:function(t,e){var n,i=this.view,r=i.opt("theme"),o=t.format(i.opt("dayPopoverFormat")),s=$('<div class="fc-header '+i.widgetHeaderClass+'"><span class="fc-close '+(r?"ui-icon ui-icon-closethick":"fc-icon fc-icon-x")+'"></span><span class="fc-title">'+m(o)+'</span><div class="fc-clear"/></div><div class="fc-body '+i.widgetContentClass+'"><div class="fc-event-container"></div></div>'),a=s.find(".fc-event-container");for(e=this.renderSegs(e,!0),this.popoverSegs=e,n=0;e.length>n;n++)e[n].cellDate=t,a.append(e[n].el);return s},resliceDaySegs:function(t,e){var n=$.map(t,function(t){return t.event}),i=e.clone().stripTime(),r=i.clone().add(1,"days");return this.eventsToSegs(n,i,r)},getMoreLinkText:function(t){var e=this.view.opt("eventLimitText");return"function"==typeof e?e(t):"+"+t+" "+e},getCellSegs:function(t,e){for(var n,i=this.rowStructs[t.row].segMatrix,r=e||0,o=[];i.length>r;)(n=i[r][t.col])&&o.push(n),r++;return o}}),X.prototype=H(G.prototype),$.extend(X.prototype,{slotDuration:null,snapDuration:null,minTime:null,maxTime:null,dayEls:null,slatEls:null,slatTops:null,highlightEl:null,helperEl:null,render:function(){this.processOptions(),this.el.html(this.renderHtml()),this.dayEls=this.el.find(".fc-day"),this.slatEls=this.el.find(".fc-slats tr"),this.computeSlatTops(),G.prototype.render.call(this)},renderHtml:function(){return'<div class="fc-bg"><table>'+this.rowHtml("slotBg")+'</table></div><div class="fc-slats"><table>'+this.slatRowHtml()+"</table></div>"},slotBgCellHtml:function(t,e,n){return this.bgCellHtml(t,e,n)},slatRowHtml:function(){for(var t,e,n,i=this.view,r=i.calendar,o=i.opt("isRTL"),s="",a=0==this.slotDuration.asMinutes()%15,l=O.duration(+this.minTime);this.maxTime>l;)e=(t=i.start.clone().time(l)).minutes(),n='<td class="fc-axis fc-time '+i.widgetContentClass+'" '+i.axisStyleAttr()+">"+(a&&e?"":"<span>"+m(r.formatDate(t,i.opt("axisFormat")))+"</span>")+"</td>",s+="<tr "+(e?'class="fc-minor"':"")+">"+(o?"":n)+'<td class="'+i.widgetContentClass+'"/>'+(o?n:"")+"</tr>",l.add(this.slotDuration);return s},processOptions:function(){var t=this.view,e=t.opt("slotDuration"),n=t.opt("snapDuration");e=O.duration(e),n=n?O.duration(n):e,this.slotDuration=e,this.snapDuration=n,this.cellDuration=n,this.minTime=O.duration(t.opt("minTime")),this.maxTime=O.duration(t.opt("maxTime"))},rangeToSegs:function(t,e){var n,i,r,o=this.view,s=[];for(t=t.clone().stripZone(),e=e.clone().stripZone(),i=0;o.colCnt>i;i++)(n=h(t,e,(r=o.cellToDate(0,i)).clone().time(this.minTime),r.clone().time(this.maxTime)))&&(n.col=i,s.push(n));return s},resize:function(){this.computeSlatTops(),this.updateSegVerticals()},buildCoords:function(t,n){var i,r,e=this.view.colCnt,o=this.el.offset().top,s=O.duration(+this.minTime),a=null;for(this.dayEls.slice(0,e).each(function(t,e){i=$(e),r=i.offset().left,a&&(a[1]=r),a=[r],n[t]=a}),a[1]=r+i.outerWidth(),a=null;this.maxTime>s;)r=o+this.computeTimeTop(s),a&&(a[1]=r),a=[r],t.push(a),s.add(this.snapDuration);a[1]=o+this.computeTimeTop(s)},getCellDate:function(t){var e=this.view;return e.calendar.rezoneDate(e.cellToDate(0,t.col).time(this.minTime+this.snapDuration*t.row))},getCellDayEl:function(t){return this.dayEls.eq(t.col)},computeDateTop:function(t,e){return this.computeTimeTop(O.duration(t.clone().stripZone()-e.clone().stripTime()))},computeTimeTop:function(t){var e,n,i,r=(t-this.minTime)/this.slotDuration;return r=Math.max(0,r),n=(r=Math.min(this.slatEls.length,r))-(e=Math.floor(r)),i=this.slatTops[e],n?i+(this.slatTops[e+1]-i)*n:i},computeSlatTops:function(){var n,i=[];this.slatEls.each(function(t,e){n=$(e).position().top,i.push(n)}),i.push(n+this.slatEls.last().outerHeight()),this.slatTops=i},renderDrag:function(t,e,n){var i;return n?(this.renderRangeHelper(t,e,n),void 0!==(i=this.view.opt("dragOpacity"))&&this.helperEl.css("opacity",i),!0):void this.renderHighlight(t,e||this.view.calendar.getDefaultEventEnd(!1,t))},destroyDrag:function(){this.destroyHelper(),this.destroyHighlight()},renderResize:function(t,e,n){this.renderRangeHelper(t,e,n)},destroyResize:function(){this.destroyHelper()},renderHelper:function(t,e){var n,i,r,o=this.renderEventTable([t]),s=o.tableEl,a=o.segs;for(n=0;a.length>n;n++)i=a[n],e&&e.col===i.col&&(r=e.el,i.el.css({left:r.css("left"),right:r.css("right"),"margin-left":r.css("margin-left"),"margin-right":r.css("margin-right")}));this.helperEl=$('<div class="fc-helper-skeleton"/>').append(s).appendTo(this.el)},destroyHelper:function(){this.helperEl&&(this.helperEl.remove(),this.helperEl=null)},renderSelection:function(t,e){this.view.opt("selectHelper")?this.renderRangeHelper(t,e):this.renderHighlight(t,e)},destroySelection:function(){this.destroyHelper(),this.destroyHighlight()},renderHighlight:function(t,e){this.highlightEl=$(this.highlightSkeletonHtml(t,e)).appendTo(this.el)},destroyHighlight:function(){this.highlightEl&&(this.highlightEl.remove(),this.highlightEl=null)},highlightSkeletonHtml:function(t,e){var n,i,r,o=this.view,s=this.rangeToSegs(t,e),a="",l=0;for(n=0;s.length>n;n++)(i=s[n]).col>l&&(a+='<td colspan="'+(i.col-l)+'"/>',l=i.col),r=o.cellToDate(0,l),a+='<td><div class="fc-highlight-container"><div class="fc-highlight" style="top:'+this.computeDateTop(i.start,r)+"px;bottom:-"+this.computeDateTop(i.end,r)+'px"/></div></td>',l++;return o.colCnt>l&&(a+='<td colspan="'+(o.colCnt-l)+'"/>'),'<div class="fc-highlight-skeleton"><table><tr>'+(a=this.bookendCells(a,"highlight"))+"</tr></table></div>"}}),$.extend(X.prototype,{segs:null,eventSkeletonEl:null,renderEvents:function(t){var e=this.renderEventTable(t);this.eventSkeletonEl=$('<div class="fc-content-skeleton"/>').append(e.tableEl),this.el.append(this.eventSkeletonEl),this.segs=e.segs},getSegs:function(){return this.segs||[]},destroyEvents:function(){G.prototype.destroyEvents.call(this),this.eventSkeletonEl&&(this.eventSkeletonEl.remove(),this.eventSkeletonEl=null),this.segs=null},renderEventTable:function(t){var e,n,i,r,o,s,a=$("<table><tr/></table>"),l=a.find("tr"),c=this.eventsToSegs(t);for(c=this.renderSegs(c),e=this.groupSegCols(c),this.computeSegVerticals(c),r=0;e.length>r;r++){for(Q(o=e[r]),s=$('<div class="fc-event-container"/>'),n=0;o.length>n;n++)(i=o[n]).el.css(this.generateSegPositionCss(i)),i.bottom-i.top<30&&i.el.addClass("fc-short"),s.append(i.el);l.append($("<td/>").append(s))}return this.bookendCells(l,"eventSkeleton"),{tableEl:a,segs:c}},updateSegVerticals:function(){var t,e=this.segs;if(e)for(this.computeSegVerticals(e),t=0;e.length>t;t++)e[t].el.css(this.generateSegVerticalCss(e[t]))},computeSegVerticals:function(t){var e,n;for(e=0;t.length>e;e++)(n=t[e]).top=this.computeDateTop(n.start,n.start),n.bottom=this.computeDateTop(n.end,n.start)},renderSegHtml:function(t,e){var n,i,r,o=this.view,s=t.event,a=o.isEventDraggable(s),l=!e&&t.isEnd&&o.isEventResizable(s),c=this.getSegClasses(t,a,l),u=this.getEventSkinCss(s);return c.unshift("fc-time-grid-event"),o.isMultiDayEvent(s)?(t.isStart||t.isEnd)&&(n=o.getEventTimeText(t.start,t.end),i=o.getEventTimeText(t.start,t.end,"LT"),r=o.getEventTimeText(t.start,null)):(n=o.getEventTimeText(s),i=o.getEventTimeText(s,"LT"),r=o.getEventTimeText(s.start,null)),'<a class="'+c.join(" ")+'"'+(s.url?' href="'+m(s.url)+'"':"")+(u?' style="'+u+'"':"")+'><div class="fc-content">'+(n?'<div class="fc-time" data-start="'+m(r)+'" data-full="'+m(i)+'"><span>'+m(n)+"</span></div>":"")+(s.title?'<div class="fc-title">'+m(s.title)+"</div>":"")+'</div><div class="fc-bg"/>'+(l?'<div class="fc-resizer"/>':"")+"</a>"},generateSegPositionCss:function(t){var e,n,i=this.view,r=i.opt("isRTL"),o=i.opt("slotEventOverlap"),s=t.backwardCoord,a=t.forwardCoord,l=this.generateSegVerticalCss(t);return o&&(a=Math.min(1,s+2*(a-s))),n=r?(e=1-a,s):(e=s,1-a),l.zIndex=t.level+1,l.left=100*e+"%",l.right=100*n+"%",o&&t.forwardPressure&&(l[r?"marginLeft":"marginRight"]=20),l},generateSegVerticalCss:function(t){return{top:t.top,bottom:-t.bottom}},groupSegCols:function(t){var e,n=this.view,i=[];for(e=0;n.colCnt>e;e++)i.push([]);for(e=0;t.length>e;e++)i[t[e].col].push(t[e]);return i}}),it.prototype=H(nt.prototype={calendar:null,coordMap:null,el:null,start:null,end:null,intervalStart:null,intervalEnd:null,rowCnt:null,colCnt:null,isSelected:!1,scrollerEl:null,scrollTop:null,widgetHeaderClass:null,widgetContentClass:null,highlightStateClass:null,documentMousedownProxy:null,documentDragStartProxy:null,init:function(){var t=this.opt("theme")?"ui":"fc";this.widgetHeaderClass=t+"-widget-header",this.widgetContentClass=t+"-widget-content",this.highlightStateClass=t+"-state-highlight",this.documentMousedownProxy=$.proxy(this,"documentMousedown"),this.documentDragStartProxy=$.proxy(this,"documentDragStart")},render:function(){this.updateSize(),this.trigger("viewRender",this,this,this.el),$(document).on("mousedown",this.documentMousedownProxy).on("dragstart",this.documentDragStartProxy)},destroy:function(){this.unselect(),this.trigger("viewDestroy",this,this,this.el),this.destroyEvents(),this.el.empty(),$(document).off("mousedown",this.documentMousedownProxy).off("dragstart",this.documentDragStartProxy)},incrementDate:function(){},updateSize:function(t){t&&this.recordScroll(),this.updateHeight(),this.updateWidth()},updateWidth:function(){},updateHeight:function(){var t=this.calendar;this.setHeight(t.getSuggestedViewHeight(),t.isHeightAuto())},setHeight:function(){},computeScrollerHeight:function(t){var e,n=this.el.add(this.scrollerEl);return n.css({position:"relative",left:-1}),e=this.el.outerHeight()-this.scrollerEl.height(),n.css({position:"",left:""}),t-e},recordScroll:function(){this.scrollerEl&&(this.scrollTop=this.scrollerEl.scrollTop())},restoreScroll:function(){null!==this.scrollTop&&this.scrollerEl.scrollTop(this.scrollTop)},renderEvents:function(){this.segEach(function(t){this.trigger("eventAfterRender",t.event,t.event,t.el)}),this.trigger("eventAfterAllRender")},destroyEvents:function(){this.segEach(function(t){this.trigger("eventDestroy",t.event,t.event,t.el)})},resolveEventEl:function(t,e){var n=this.trigger("eventRender",t,t,e);return!1===n?e=null:n&&!0!==n&&(e=$(n)),e},showEvent:function(t){this.segEach(function(t){t.el.css("visibility","")},t)},hideEvent:function(t){this.segEach(function(t){t.el.css("visibility","hidden")},t)},segEach:function(t,e){var n,i=this.getSegs();for(n=0;i.length>n;n++)e&&i[n].event._id!==e._id||t.call(this,i[n])},getSegs:function(){},renderDrag:function(){},destroyDrag:function(){},documentDragStart:function(t){var e,n=this,i=null;this.opt("droppable")&&(e=new A(this.coordMap,{cellOver:function(t,e){i=e,n.renderDrag(e)},cellOut:function(){i=null,n.destroyDrag()}}),$(document).one("dragstop",function(t,e){n.destroyDrag(),i&&n.trigger("drop",t.target,i,t,e)}),e.startDrag(t))},select:function(t,e,n){this.unselect(n),this.renderSelection(t,e),this.reportSelection(t,e,n)},renderSelection:function(){},reportSelection:function(t,e,n){this.isSelected=!0,this.trigger("select",null,t,e,n)},unselect:function(t){this.isSelected&&(this.isSelected=!1,this.destroySelection(),this.trigger("unselect",null,t))},destroySelection:function(){},documentMousedown:function(t){var e;this.isSelected&&this.opt("unselectAuto")&&u(t)&&((e=this.opt("unselectCancel"))&&$(t.target).closest(e).length||this.unselect(t))}}),$.extend(it.prototype,{dayGrid:null,dayNumbersVisible:!1,weekNumbersVisible:!1,weekNumberWidth:null,headRowEl:null,render:function(t,e,n){this.rowCnt=t,this.colCnt=e,this.dayNumbersVisible=n,this.weekNumbersVisible=this.opt("weekNumbers"),this.dayGrid.numbersVisible=this.dayNumbersVisible||this.weekNumbersVisible,this.el.addClass("fc-basic-view").html(this.renderHtml()),this.headRowEl=this.el.find("thead .fc-row"),this.scrollerEl=this.el.find(".fc-day-grid-container"),this.dayGrid.coordMap.containerEl=this.scrollerEl,this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(this.hasRigidRows()),nt.prototype.render.call(this)},destroy:function(){this.dayGrid.destroy(),nt.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.dayGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'"><div class="fc-day-grid-container"><div class="fc-day-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){return this.weekNumbersVisible?'<th class="fc-week-number '+this.widgetHeaderClass+'" '+this.weekNumberStyleAttr()+"><span>"+m(this.opt("weekNumberTitle"))+"</span></th>":void 0},numberIntroHtml:function(t){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"><span>"+this.calendar.calculateWeekNumber(this.cellToDate(t,0))+"</span></td>":void 0},dayIntroHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number '+this.widgetContentClass+'" '+this.weekNumberStyleAttr()+"></td>":void 0},introHtml:function(){return this.weekNumbersVisible?'<td class="fc-week-number" '+this.weekNumberStyleAttr()+"></td>":void 0},numberCellHtml:function(t,e,n){var i;return this.dayNumbersVisible?((i=this.dayGrid.getDayClasses(n)).unshift("fc-day-number"),'<td class="'+i.join(" ")+'" data-date="'+n.format()+'">'+n.date()+"</td>"):"<td/>"},weekNumberStyleAttr:function(){return null!==this.weekNumberWidth?'style="width:'+this.weekNumberWidth+'px"':""},hasRigidRows:function(){var t=this.opt("eventLimit");return t&&"number"!=typeof t},updateWidth:function(){this.weekNumbersVisible&&(this.weekNumberWidth=e(this.el.find(".fc-week-number")))},setHeight:function(t,e){var n,i=this.opt("eventLimit");a(this.scrollerEl),o(this.headRowEl),this.dayGrid.destroySegPopover(),i&&"number"==typeof i&&this.dayGrid.limitRows(i),n=this.computeScrollerHeight(t),this.setGridHeight(n,e),i&&"number"!=typeof i&&this.dayGrid.limitRows(i),!e&&s(this.scrollerEl,n)&&(r(this.headRowEl,c(this.scrollerEl)),n=this.computeScrollerHeight(t),this.scrollerEl.height(n),this.restoreScroll())},setGridHeight:function(t,e){e?i(this.dayGrid.rowEls):n(this.dayGrid.rowEls,t,!0)},renderEvents:function(t){this.dayGrid.renderEvents(t),this.updateHeight(),nt.prototype.renderEvents.call(this,t)},getSegs:function(){return this.dayGrid.getSegs()},destroyEvents:function(){nt.prototype.destroyEvents.call(this),this.recordScroll(),this.dayGrid.destroyEvents()},renderDrag:function(t,e,n){return this.dayGrid.renderDrag(t,e,n)},destroyDrag:function(){this.dayGrid.destroyDrag()},renderSelection:function(t,e){this.dayGrid.renderSelection(t,e)},destroySelection:function(){this.dayGrid.destroySelection()}}),t({fixedWeekCount:!0}),(ft.month=rt).prototype=H(it.prototype),$.extend(rt.prototype,{name:"month",incrementDate:function(t,e){return t.clone().stripTime().add(e,"months").startOf("month")},render:function(t){var e;this.intervalStart=t.clone().stripTime().startOf("month"),this.intervalEnd=this.intervalStart.clone().add(1,"months"),this.start=this.intervalStart.clone(),this.start=this.skipHiddenDays(this.start),this.start.startOf("week"),this.start=this.skipHiddenDays(this.start),this.end=this.intervalEnd.clone(),this.end=this.skipHiddenDays(this.end,-1,!0),this.end.add((7-this.end.weekday())%7,"days"),this.end=this.skipHiddenDays(this.end,-1,!0),e=Math.ceil(this.end.diff(this.start,"weeks",!0)),this.isFixedWeeks()&&(this.end.add(6-e,"weeks"),e=6),this.title=this.calendar.formatDate(this.intervalStart,this.opt("titleFormat")),it.prototype.render.call(this,e,this.getCellsPerWeek(),!0)},setGridHeight:function(t,e){(e=e||"variable"===this.opt("weekMode"))&&(t*=this.rowCnt/6),n(this.dayGrid.rowEls,t,!e)},isFixedWeeks:function(){var t=this.opt("weekMode");return t?"fixed"===t:this.opt("fixedWeekCount")}}),(ft.basicWeek=ot).prototype=H(it.prototype),$.extend(ot.prototype,{name:"basicWeek",incrementDate:function(t,e){return t.clone().stripTime().add(e,"weeks").startOf("week")},render:function(t){this.intervalStart=t.clone().stripTime().startOf("week"),this.intervalEnd=this.intervalStart.clone().add(1,"weeks"),this.start=this.skipHiddenDays(this.intervalStart),this.end=this.skipHiddenDays(this.intervalEnd,-1,!0),this.title=this.calendar.formatRange(this.start,this.end.clone().subtract(1),this.opt("titleFormat")," — "),it.prototype.render.call(this,1,this.getCellsPerWeek(),!1)}}),(ft.basicDay=st).prototype=H(it.prototype),$.extend(st.prototype,{name:"basicDay",incrementDate:function(t,e){var n=t.clone().stripTime().add(e,"days");return this.skipHiddenDays(n,e<0?-1:1)},render:function(t){this.start=this.intervalStart=t.clone().stripTime(),this.end=this.intervalEnd=this.start.clone().add(1,"days"),this.title=this.calendar.formatDate(this.start,this.opt("titleFormat")),it.prototype.render.call(this,1,1,!1)}}),t({allDaySlot:!0,allDayText:"all-day",scrollTime:"06:00:00",slotDuration:"00:30:00",axisFormat:function(t,e){return e.longDateFormat("LT").replace(":mm","(:mm)").replace(/(\Wmm)$/,"($1)").replace(/\s*a$/i,"a")},timeFormat:{agenda:function(t,e){return e.longDateFormat("LT").replace(/\s*a$/i,"")}},minTime:"00:00:00",maxTime:"24:00:00",slotEventOverlap:!0});at.prototype=H(nt.prototype),$.extend(at.prototype,{timeGrid:null,dayGrid:null,axisWidth:null,noScrollRowEls:null,bottomRuleEl:null,bottomRuleHeight:null,render:function(t){this.rowCnt=1,this.colCnt=t,this.el.addClass("fc-agenda-view").html(this.renderHtml()),this.scrollerEl=this.el.find(".fc-time-grid-container"),this.timeGrid.coordMap.containerEl=this.scrollerEl,this.timeGrid.el=this.el.find(".fc-time-grid"),this.timeGrid.render(),this.bottomRuleEl=$('<hr class="'+this.widgetHeaderClass+'"/>').appendTo(this.timeGrid.el),this.dayGrid&&(this.dayGrid.el=this.el.find(".fc-day-grid"),this.dayGrid.render(),this.dayGrid.bottomCoordPadding=this.dayGrid.el.next("hr").outerHeight()),this.noScrollRowEls=this.el.find(".fc-row:not(.fc-scroller *)"),nt.prototype.render.call(this),this.resetScroll()},destroy:function(){this.timeGrid.destroy(),this.dayGrid&&this.dayGrid.destroy(),nt.prototype.destroy.call(this)},renderHtml:function(){return'<table><thead><tr><td class="'+this.widgetHeaderClass+'">'+this.timeGrid.headHtml()+'</td></tr></thead><tbody><tr><td class="'+this.widgetContentClass+'">'+(this.dayGrid?'<div class="fc-day-grid"/><hr class="'+this.widgetHeaderClass+'"/>':"")+'<div class="fc-time-grid-container"><div class="fc-time-grid"/></div></td></tr></tbody></table>'},headIntroHtml:function(){var t,e,n,i;return this.opt("weekNumbers")?(t=this.cellToDate(0,0),e=this.calendar.calculateWeekNumber(t),n=this.opt("weekNumberTitle"),i=this.opt("isRTL")?e+n:n+e,'<th class="fc-axis fc-week-number '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"><span>"+m(i)+"</span></th>"):'<th class="fc-axis '+this.widgetHeaderClass+'" '+this.axisStyleAttr()+"></th>"},dayIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"><span>"+(this.opt("allDayHtml")||m(this.opt("allDayText")))+"</span></td>"},slotBgIntroHtml:function(){return'<td class="fc-axis '+this.widgetContentClass+'" '+this.axisStyleAttr()+"></td>"},introHtml:function(){return'<td class="fc-axis" '+this.axisStyleAttr()+"></td>"},axisStyleAttr:function(){return null!==this.axisWidth?'style="width:'+this.axisWidth+'px"':""},updateSize:function(t){t&&this.timeGrid.resize(),nt.prototype.updateSize.call(this,t)},updateWidth:function(){this.axisWidth=e(this.el.find(".fc-axis"))},setHeight:function(t,e){var n,i;null===this.bottomRuleHeight&&(this.bottomRuleHeight=this.bottomRuleEl.outerHeight()),this.bottomRuleEl.hide(),this.scrollerEl.css("overflow",""),a(this.scrollerEl),o(this.noScrollRowEls),this.dayGrid&&(this.dayGrid.destroySegPopover(),(n=this.opt("eventLimit"))&&"number"!=typeof n&&(n=5),n&&this.dayGrid.limitRows(n)),e||(i=this.computeScrollerHeight(t),s(this.scrollerEl,i)?(r(this.noScrollRowEls,c(this.scrollerEl)),i=this.computeScrollerHeight(t),this.scrollerEl.height(i),this.restoreScroll()):(this.scrollerEl.height(i).css("overflow","hidden"),this.bottomRuleEl.show()))},resetScroll:function(){function t(){e.scrollerEl.scrollTop(i)}var e=this,n=O.duration(this.opt("scrollTime")),i=this.timeGrid.computeTimeTop(n);(i=Math.ceil(i))&&i++,t(),setTimeout(t,0)},renderEvents:function(t){var e,n=[],i=[];for(e=0;t.length>e;e++)t[e].allDay?n.push(t[e]):i.push(t[e]);this.timeGrid.renderEvents(i),this.dayGrid&&this.dayGrid.renderEvents(n),this.updateHeight(),nt.prototype.renderEvents.call(this,t)},getSegs:function(){return this.timeGrid.getSegs().concat(this.dayGrid?this.dayGrid.getSegs():[])},destroyEvents:function(){nt.prototype.destroyEvents.call(this),this.recordScroll(),this.timeGrid.destroyEvents(),this.dayGrid&&this.dayGrid.destroyEvents()},renderDrag:function(t,e,n){return t.hasTime()?this.timeGrid.renderDrag(t,e,n):this.dayGrid?this.dayGrid.renderDrag(t,e,n):void 0},destroyDrag:function(){this.timeGrid.destroyDrag(),this.dayGrid&&this.dayGrid.destroyDrag()},renderSelection:function(t,e){t.hasTime()||e.hasTime()?this.timeGrid.renderSelection(t,e):this.dayGrid&&this.dayGrid.renderSelection(t,e)},destroySelection:function(){this.timeGrid.destroySelection(),this.dayGrid&&this.dayGrid.destroySelection()}}),(ft.agendaWeek=lt).prototype=H(at.prototype),$.extend(lt.prototype,{name:"agendaWeek",incrementDate:function(t,e){return t.clone().stripTime().add(e,"weeks").startOf("week")},render:function(t){this.intervalStart=t.clone().stripTime().startOf("week"),this.intervalEnd=this.intervalStart.clone().add(1,"weeks"),this.start=this.skipHiddenDays(this.intervalStart),this.end=this.skipHiddenDays(this.intervalEnd,-1,!0),this.title=this.calendar.formatRange(this.start,this.end.clone().subtract(1),this.opt("titleFormat")," — "),at.prototype.render.call(this,this.getCellsPerWeek())}}),(ft.agendaDay=ct).prototype=H(at.prototype),$.extend(ct.prototype,{name:"agendaDay",incrementDate:function(t,e){var n=t.clone().stripTime().add(e,"days");return this.skipHiddenDays(n,e<0?-1:1)},render:function(t){this.start=this.intervalStart=t.clone().stripTime(),this.end=this.intervalEnd=this.start.clone().add(1,"days"),this.title=this.calendar.formatDate(this.start,this.opt("titleFormat")),at.prototype.render.call(this,1)}})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(s){var t=s.fullCalendar,a=t.applyAll;t.sourceNormalizers.push(function(t){("gcal"==t.dataType||void 0===t.dataType&&(t.url||"").match(/^(http|https):\/\/www.google.com\/calendar\/feeds\//))&&(t.dataType="gcal",void 0===t.editable&&(t.editable=!1))}),t.sourceFetchers.push(function(t,e,n,i){if("gcal"==t.dataType)return function(t,e,n,r){var o=t.success,i=s.extend({},t.data||{},{singleevents:!0,"max-results":9999});return s.extend({},t,{url:t.url.replace(/\/basic$/,"/full")+"?alt=json-in-script&callback=?",dataType:"jsonp",data:i,timezoneParam:"ctz",startParam:"start-min",endParam:"start-max",success:function(t){var i=[];t.feed.entry&&s.each(t.feed.entry,function(t,e){var n;s.each(e.link,function(t,e){"text/html"==e.type&&(n=e.href,r&&"local"!=r&&(n+=(-1==n.indexOf("?")?"?":"&")+"ctz="+encodeURIComponent(r)))}),i.push({id:e.gCal$uid.value,title:e.title.$t,start:e.gd$when[0].startTime,end:e.gd$when[0].endTime,url:n,location:e.gd$where[0].valueString,description:e.content.$t})});var e=[i].concat(Array.prototype.slice.call(arguments,1)),n=a(o,this,e);return s.isArray(n)?n:i}})}(t,0,0,i)}),t.gcalFeed=function(t,e){return s.extend({},e,{url:t,dataType:"gcal"})}}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(c){c.extend(c.fn,{validate:function(t){if(this.length){var i=c.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new c.validator(t,this[0]),c.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(t){i.settings.submitHandler&&(i.submitButton=t.target),c(t.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==c(t.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(n){function t(){var t,e;return!i.settings.submitHandler||(i.submitButton&&(t=c("<input type='hidden'/>").attr("name",i.submitButton.name).val(c(i.submitButton).val()).appendTo(i.currentForm)),e=i.settings.submitHandler.call(i,i.currentForm,n),i.submitButton&&t.remove(),void 0!==e&&e)}return i.settings.debug&&n.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,t()):i.form()?i.pendingRequest?!(i.formSubmitted=!0):t():(i.focusInvalid(),!1)})),i)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,e;return c(this[0]).is("form")?t=this.validate().form():(t=!0,e=c(this[0].form).validate(),this.each(function(){t=e.element(this)&&t})),t},removeAttrs:function(t){var n={},i=this;return c.each(t.split(/\s/),function(t,e){n[e]=i.attr(e),i.removeAttr(e)}),n},rules:function(t,e){var n,i,r,o,s,a,l=this[0];if(t)switch(n=c.data(l.form,"validator").settings,i=n.rules,r=c.validator.staticRules(l),t){case"add":c.extend(r,c.validator.normalizeRule(e)),delete r.messages,i[l.name]=r,e.messages&&(n.messages[l.name]=c.extend(n.messages[l.name],e.messages));break;case"remove":return e?(a={},c.each(e.split(/\s/),function(t,e){a[e]=r[e],delete r[e],"required"===e&&c(l).removeAttr("aria-required")}),a):(delete i[l.name],r)}return(o=c.validator.normalizeRules(c.extend({},c.validator.classRules(l),c.validator.attributeRules(l),c.validator.dataRules(l),c.validator.staticRules(l)),l)).required&&(s=o.required,delete o.required,o=c.extend({required:s},o),c(l).attr("aria-required","true")),o.remote&&(s=o.remote,delete o.remote,o=c.extend(o,{remote:s})),o}}),c.extend(c.expr[":"],{blank:function(t){return!c.trim(""+c(t).val())},filled:function(t){return!!c.trim(""+c(t).val())},unchecked:function(t){return!c(t).prop("checked")}}),c.validator=function(t,e){this.settings=c.extend(!0,{},c.validator.defaults,t),this.currentForm=e,this.init()},c.validator.format=function(n,t){return 1===arguments.length?function(){var t=c.makeArray(arguments);return t.unshift(n),c.validator.format.apply(this,t)}:(2<arguments.length&&t.constructor!==Array&&(t=c.makeArray(arguments).slice(1)),t.constructor!==Array&&(t=[t]),c.each(t,function(t,e){n=n.replace(new RegExp("\\{"+t+"\\}","g"),function(){return e})}),n)},c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t,e){9===e.which&&""===this.elementValue(t)||!(t.name in this.submitted||t===this.lastElement)||this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(t,e,n){"radio"===t.type?this.findByName(t.name).addClass(e).removeClass(n):c(t).addClass(e).removeClass(n)},unhighlight:function(t,e,n){"radio"===t.type?this.findByName(t.name).removeClass(e).addClass(n):c(t).removeClass(e).addClass(n)}},setDefaults:function(t){c.extend(c.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:c.validator.format("Please enter no more than {0} characters."),minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."),range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){var e=c.data(this[0].form,"validator"),n="on"+t.type.replace(/^validate/,""),i=e.settings;i[n]&&!this.is(i.ignore)&&i[n].call(e,this[0],t)}this.labelContainer=c(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm),this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,i=this.groups={};c.each(this.settings.groups,function(n,t){"string"==typeof t&&(t=t.split(/\s/)),c.each(t,function(t,e){i[e]=n})}),n=this.settings.rules,c.each(n,function(t,e){n[t]=c.validator.normalizeRule(e)}),c(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",t).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",t),this.settings.invalidHandler&&c(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),c(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),c.extend(this.submitted,this.errorMap),this.invalid=c.extend({},this.errorMap),this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(t){var e=this.clean(t),n=this.validationTargetFor(e),i=!0;return void 0===(this.lastElement=n)?delete this.invalid[e.name]:(this.prepareElement(n),this.currentElements=c(n),(i=!1!==this.check(n))?delete this.invalid[n.name]:this.invalid[n.name]=!0),c(t).attr("aria-invalid",!i),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){for(var t in c.extend(this.errorMap,e),this.errorList=[],e)this.errorList.push({message:e[t],element:this.findByName(t)[0]});this.successList=c.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,n=0;for(e in t)n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===c.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var t=this,e={};return c(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in e||!t.objectLength(c(this).rules()))&&(e[this.name]=!0)})},clean:function(t){return c(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return c(this.settings.errorElement+"."+t,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=c([]),this.toHide=c([]),this.currentElements=c([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(t){var e,n=c(t),i=t.type;return"radio"===i||"checkbox"===i?c("input[name='"+t.name+"']:checked").val():"number"===i&&void 0!==t.validity?!t.validity.badInput&&n.val():"string"==typeof(e=n.val())?e.replace(/\r/g,""):e},check:function(e){e=this.validationTargetFor(this.clean(e));var t,n,i,r=c(e).rules(),o=c.map(r,function(t,e){return e}).length,s=!1,a=this.elementValue(e);for(n in r){i={method:n,parameters:r[n]};try{if("dependency-mismatch"===(t=c.validator.methods[n].call(this,a,e,i.parameters))&&1===o){s=!0;continue}if(s=!1,"pending"===t)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!t)return this.formatAndAdd(e,i),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+i.method+"' method.",t),t}}if(!s)return this.objectLength(r)&&this.successList.push(e),!0},customDataMessage:function(t,e){return c(t).data("msg"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase())||c(t).data("msg")},customMessage:function(t,e){var n=this.settings.messages[t];return n&&(n.constructor===String?n:n[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(t,e){return this.findDefined(this.customMessage(t.name,e),this.customDataMessage(t,e),!this.settings.ignoreTitle&&t.title||void 0,c.validator.messages[e],"<strong>Warning: No message defined for "+t.name+"</strong>")},formatAndAdd:function(t,e){var n=this.defaultMessage(t,e.method),i=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,e.parameters,t):i.test(n)&&(n=c.validator.format(n.replace(i,"{$1}"),e.parameters)),this.errorList.push({message:n,element:t,method:e.method}),this.errorMap[t.name]=n,this.submitted[t.name]=n},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,n;for(t=0;this.errorList[t];t++)n=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return c(this.errorList).map(function(){return this.element})},showLabel:function(t,e){var n,i,r,o=this.errorsFor(t),s=this.idOrName(t),a=c(t).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(e)):(n=o=c("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(e||""),this.settings.wrapper&&(n=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement(n,c(t)):n.insertAfter(t),o.is("label")?o.attr("for",s):0===o.parents("label[for='"+s+"']").length&&(r=o.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),a?a.match(new RegExp("\\b"+r+"\\b"))||(a+=" "+r):a=r,c(t).attr("aria-describedby",a),(i=this.groups[t.name])&&c.each(this.groups,function(t,e){e===i&&c("[name='"+t+"']",this.currentForm).attr("aria-describedby",o.attr("id"))}))),!e&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,t)),this.toShow=this.toShow.add(o)},errorsFor:function(t){var e=this.idOrName(t),n=c(t).attr("aria-describedby"),i="label[for='"+e+"'], label[for='"+e+"'] *";return n&&(i=i+", #"+n.replace(/\s+/g,", #")),this.errors().filter(i)},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),c(t).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(t){return c(this.currentForm).find("[name='"+t+"']")},getLength:function(t,e){switch(e.nodeName.toLowerCase()){case"select":return c("option:selected",e).length;case"input":if(this.checkable(e))return this.findByName(e.name).filter(":checked").length}return t.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(t,e){return!!c(t,e.form).length},function:function(t,e){return t(e)}},optional:function(t){var e=this.elementValue(t);return!c.validator.methods.required.call(this,e,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(t,e){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(c(this.currentForm).submit(),this.formSubmitted=!1):!e&&0===this.pendingRequest&&this.formSubmitted&&(c(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t){return c.data(t,"previousValue")||c.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,e){t.constructor===String?this.classRuleSettings[t]=e:c.extend(this.classRuleSettings,t)},classRules:function(t){var e={},n=c(t).attr("class");return n&&c.each(n.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(e,c.validator.classRuleSettings[this])}),e},attributeRules:function(t){var e,n,i={},r=c(t),o=t.getAttribute("type");for(e in c.validator.methods)n="required"===e?(""===(n=t.getAttribute(e))&&(n=!0),!!n):r.attr(e),/min|max/.test(e)&&(null===o||/number|range|text/.test(o))&&(n=Number(n)),n||0===n?i[e]=n:o===e&&"range"!==o&&(i[e]=!0);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(t){var e,n,i={},r=c(t);for(e in c.validator.methods)void 0!==(n=r.data("rule"+e.charAt(0).toUpperCase()+e.substring(1).toLowerCase()))&&(i[e]=n);return i},staticRules:function(t){var e={},n=c.data(t.form,"validator");return n.settings.rules&&(e=c.validator.normalizeRule(n.settings.rules[t.name])||{}),e},normalizeRules:function(i,r){return c.each(i,function(t,e){if(!1!==e){if(e.param||e.depends){var n=!0;switch(typeof e.depends){case"string":n=!!c(e.depends,r.form).length;break;case"function":n=e.depends.call(r,r)}n?i[t]=void 0===e.param||e.param:delete i[t]}}else delete i[t]}),c.each(i,function(t,e){i[t]=c.isFunction(e)?e(r):e}),c.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),c.each(["rangelength","range"],function(){var t;i[this]&&(c.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(t=i[this].replace(/[\[\]]/g,"").split(/[\s,]+/),i[this]=[Number(t[0]),Number(t[1])]))}),c.validator.autoCreateRanges&&(null!=i.min&&null!=i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),null!=i.minlength&&null!=i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength)),i},normalizeRule:function(t){if("string"==typeof t){var e={};c.each(t.split(/\s/),function(){e[this]=!0}),t=e}return t},addMethod:function(t,e,n){c.validator.methods[t]=e,c.validator.messages[t]=void 0!==n?n:c.validator.messages[t],e.length<3&&c.validator.addClassRules(t,c.validator.normalizeRule(t))},methods:{required:function(t,e,n){if(!this.depend(n,e))return"dependency-mismatch";if("select"!==e.nodeName.toLowerCase())return this.checkable(e)?0<this.getLength(t,e):0<c.trim(t).length;var i=c(e).val();return i&&0<i.length},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var n,i,r=0,o=0,s=!1;if((t=t.replace(/\D/g,"")).length<13||19<t.length)return!1;for(n=t.length-1;0<=n;n--)i=t.charAt(n),o=parseInt(i,10),s&&9<(o*=2)&&(o-=9),r+=o,s=!s;return r%10==0},minlength:function(t,e,n){var i=c.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||n<=i},maxlength:function(t,e,n){var i=c.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||i<=n},rangelength:function(t,e,n){var i=c.isArray(t)?t.length:this.getLength(t,e);return this.optional(e)||i>=n[0]&&i<=n[1]},min:function(t,e,n){return this.optional(e)||n<=t},max:function(t,e,n){return this.optional(e)||t<=n},range:function(t,e,n){return this.optional(e)||t>=n[0]&&t<=n[1]},equalTo:function(t,e,n){var i=c(n);return this.settings.onfocusout&&i.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){c(e).valid()}),t===i.val()},remote:function(o,s,t){if(this.optional(s))return"dependency-mismatch";var a,e,l=this.previousValue(s);return this.settings.messages[s.name]||(this.settings.messages[s.name]={}),l.originalMessage=this.settings.messages[s.name].remote,this.settings.messages[s.name].remote=l.message,t="string"==typeof t&&{url:t}||t,l.old===o?l.valid:(l.old=o,(a=this).startRequest(s),(e={})[s.name]=o,c.ajax(c.extend(!0,{url:t,mode:"abort",port:"validate"+s.name,dataType:"json",data:e,context:a.currentForm,success:function(t){var e,n,i,r=!0===t||"true"===t;a.settings.messages[s.name].remote=l.originalMessage,r?(i=a.formSubmitted,a.prepareElement(s),a.formSubmitted=i,a.successList.push(s),delete a.invalid[s.name],a.showErrors()):(e={},n=t||a.defaultMessage(s,"remote"),e[s.name]=l.message=c.isFunction(n)?n(o):n,a.invalid[s.name]=!0,a.showErrors(e)),l.valid=r,a.stopRequest(s,r)}},t)),"pending")}}}),c.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var i,r={};c.ajaxPrefilter?c.ajaxPrefilter(function(t,e,n){var i=t.port;"abort"===t.mode&&(r[i]&&r[i].abort(),r[i]=n)}):(i=c.ajax,c.ajax=function(t){var e=("mode"in t?t:c.ajaxSettings).mode,n=("port"in t?t:c.ajaxSettings).port;return"abort"===e?(r[n]&&r[n].abort(),r[n]=i.apply(this,arguments),r[n]):i.apply(this,arguments)}),c.extend(c.fn,{validateDelegate:function(n,t,i){return this.bind(t,function(t){var e=c(t.target);return e.is(n)?i.apply(e,arguments):void 0})}})}),function(a,i,r,l){var c=a(i);a.fn.lazyload=function(t){function e(){var e=0;o.each(function(){var t=a(this);if(!s.skip_invisible||t.is(":visible"))if(a.abovethetop(this,s)||a.leftofbegin(this,s));else if(a.belowthefold(this,s)||a.rightoffold(this,s)){if(++e>s.failure_limit)return!1}else t.trigger("appear"),e=0})}var n,o=this,s={threshold:0,failure_limit:0,event:"scroll",effect:"show",container:i,data_attribute:"original",skip_invisible:!1,appear:null,load:null,placeholder:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB/AAffA0nNPuCLAAAAAElFTkSuQmCC"};return t&&(l!==t.failurelimit&&(t.failure_limit=t.failurelimit,delete t.failurelimit),l!==t.effectspeed&&(t.effect_speed=t.effectspeed,delete t.effectspeed),a.extend(s,t)),n=s.container===l||s.container===i?c:a(s.container),0===s.event.indexOf("scroll")&&n.bind(s.event,function(){return e()}),this.each(function(){var i=this,r=a(i);i.loaded=!1,r.attr("src")!==l&&!1!==r.attr("src")||!r.is("img")||r.attr("src",s.placeholder),r.one("appear",function(){if(!this.loaded){if(s.appear){var t=o.length;s.appear.call(i,t,s)}a("<img />").bind("load",function(){var t=r.attr("data-"+s.data_attribute);r.hide(),r.is("img")?r.attr("src",t):r.css("background-image","url('"+t+"')"),r[s.effect](s.effect_speed),i.loaded=!0;var e=a.grep(o,function(t){return!t.loaded});if(o=a(e),s.load){var n=o.length;s.load.call(i,n,s)}}).attr("src",r.attr("data-"+s.data_attribute))}}),0!==s.event.indexOf("scroll")&&r.bind(s.event,function(){i.loaded||r.trigger("appear")})}),c.bind("resize",function(){e()}),/(?:iphone|ipod|ipad).*os 5/gi.test(navigator.appVersion)&&c.bind("pageshow",function(t){t.originalEvent&&t.originalEvent.persisted&&o.each(function(){a(this).trigger("appear")})}),a(r).ready(function(){e()}),this},a.belowthefold=function(t,e){return(e.container===l||e.container===i?(i.innerHeight?i.innerHeight:c.height())+c.scrollTop():a(e.container).offset().top+a(e.container).height())<=a(t).offset().top-e.threshold},a.rightoffold=function(t,e){return(e.container===l||e.container===i?c.width()+c.scrollLeft():a(e.container).offset().left+a(e.container).width())<=a(t).offset().left-e.threshold},a.abovethetop=function(t,e){return(e.container===l||e.container===i?c.scrollTop():a(e.container).offset().top)>=a(t).offset().top+e.threshold+a(t).height()},a.leftofbegin=function(t,e){return(e.container===l||e.container===i?c.scrollLeft():a(e.container).offset().left)>=a(t).offset().left+e.threshold+a(t).width()},a.inviewport=function(t,e){return!(a.rightoffold(t,e)||a.leftofbegin(t,e)||a.belowthefold(t,e)||a.abovethetop(t,e))},a.extend(a.expr[":"],{"below-the-fold":function(t){return a.belowthefold(t,{threshold:0})},"above-the-top":function(t){return!a.belowthefold(t,{threshold:0})},"right-of-screen":function(t){return a.rightoffold(t,{threshold:0})},"left-of-screen":function(t){return!a.rightoffold(t,{threshold:0})},"in-viewport":function(t){return a.inviewport(t,{threshold:0})},"above-the-fold":function(t){return!a.belowthefold(t,{threshold:0})},"right-of-fold":function(t){return a.rightoffold(t,{threshold:0})},"left-of-fold":function(t){return!a.rightoffold(t,{threshold:0})}})}(jQuery,window,document),function(s){"use strict";function t(){return!!function(t,e){var n=document.createElement("div").style;for(var i in t)if(void 0!==n[t[i]])return"pfx"!=e||t[i];return!1}(["transformProperty","WebkitTransform","MozTransform","msTransform"])}if(!("ontouchstart"in window||navigator.msMaxTouchPoints))return;s.fn.emulateTransitionEnd=function(t){var e=!1,n=this;s(this).one(s.support.transition.end,function(){e=!0});return setTimeout(function(){e||s(n).trigger(s.support.transition.end)},t),this},s(function(){s.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]}}(),s.support.csstransforms=t(),s.support.csstransforms3d="WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix});function o(t,e){return this.$element=s(t),this.$itemsWrapper=this.$element.find(".carousel-inner"),this.$items=this.$element.find(".item"),this.$indicators=this.$element.find(".carousel-indicators"),this.pane_width=this.pane_count=this.current_pane=0,this.onGesture=!1,this.options=e,this._setPaneDimensions(),this.$items.length<=1?this.disable():(this._regTouchGestures(),void s(window).on("orientationchange resize",s.proxy(this._setPaneDimensions,this)))}var a="touch-carousel";o.DEFAULTS={interval:!1,toughness:.25},o.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(s.proxy(this.next,this),this.options.interval)),this},o.prototype.to=function(t){return t>this.$items.length-1||t<0?void 0:this._showPane(t)},o.prototype.pause=function(t){return t||(this.paused=!0),clearInterval(this.interval),this.interval=null,this},o.prototype._regTouchGestures=function(){this.$itemsWrapper.add(this.$indicators).hammer({drag_lock_to_axis:!0,preventDefault:!0}).on("release dragleft dragright swipeleft swiperight",s.proxy(this._handleGestures,this))},o.prototype._setPaneDimensions=function(){this.pane_width=this.$element.width(),this.pane_count=this.$items.length,this.$itemsWrapper.width(this.pane_width*this.pane_count),this.$items.width(this.pane_width)},o.prototype._showPane=function(t){this.$items.eq(this.current_pane).toggleClass("active"),t>=this.pane_count&&this.pause(),t=Math.max(0,Math.min(t,this.pane_count-1)),this.$items.eq(t).toggleClass("active"),this.current_pane=t;var e=-100/this.pane_count*this.current_pane;return this._setContainerOffset(e,!0,t),this},o.prototype._setContainerOffset=function(t,e,n){var i=this;if(this.$itemsWrapper.removeClass("animate"),e&&this.$itemsWrapper.addClass("animate"),s.support.csstransforms3d)this.onGesture=!0,this.$itemsWrapper.css("transform","translate3d("+t+"%,0,0) scale3d(1,1,1)");else if(s.support.csstransforms)this.onGesture=!0,this.$itemsWrapper.css("transform","translate("+t+"%,0)");else{var r=this.pane_width*this.pane_count/100*t;this.$itemsWrapper.css("left",r+"px")}s.support.transition?this.$itemsWrapper.one(s.support.transition.end,function(){i.$itemsWrapper.removeClass("animate"),i.onGesture=!1,i._updateIndicators(n)}):(this.$itemsWrapper.removeClass("animate"),this.onGesture=!1,this._updateIndicators(n))},o.prototype.next=function(){return this._showPane(this.current_pane+1)},o.prototype.prev=function(){return this._showPane(this.current_pane-1)},o.prototype._handleGestures=function(t){if(!this.sliding)switch(this.pause(),t.type){case"dragright":case"dragleft":var e=-100/this.pane_count*this.current_pane,n=100/this.pane_width*t.gesture.deltaX/this.pane_count;(0===this.current_pane&&t.gesture.direction==Hammer.DIRECTION_RIGHT||this.current_pane==this.pane_count-1&&t.gesture.direction==Hammer.DIRECTION_LEFT)&&(n*=this.options.toughness),this._setContainerOffset(n+e);break;case"swipeleft":this.next(),t.gesture.stopDetect();break;case"swiperight":this.prev(),t.gesture.stopDetect();break;case"release":Math.abs(t.gesture.deltaX)>this.pane_width/2?"right"==t.gesture.direction?this.prev():this.next():this._showPane(this.current_pane,!0)}},o.prototype.disable=function(){return this.$indicators.hide(),this.$element.removeData(a),!1},o.prototype._updateIndicators=function(t){return this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$indicators.children().eq(t).addClass("active")),this.$element.trigger("slid.bs.carousel"),this};var e=s.fn.carousel;s.fn.carousel=function(r){return this.each(function(){var t=s(this),e=t.data(a),n=s.extend({},o.DEFAULTS,t.data(),"object"==typeof r&&r),i="string"==typeof r?r:n.slide;e||t.data(a,e=new o(this,n)).addClass(a),"number"==typeof r?e.to(r):i?e[i]():n.interval&&e.pause().cycle()})},s.fn.carousel.Constructor=o,s.fn.carousel.noConflict=function(){return s.fn.carousel=e,this},s(document).off("click.bs.carousel").on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var e,n=s(this),i=s(n.attr("data-target")||(e=n.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")),r=s.extend({},i.data(),n.data()),o=n.attr("data-slide-to");o&&(r.interval=!1),i.carousel(r),(o=n.attr("data-slide-to"))&&i.data(a).to(o),t.preventDefault()})}(window.jQuery),function(t){"use strict";var l=function(t,e){return new l.Instance(t,e||{})};l.defaults={stop_browser_behavior:{userSelect:"none",touchAction:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},l.HAS_POINTEREVENTS=t.navigator.pointerEnabled||t.navigator.msPointerEnabled,l.HAS_TOUCHEVENTS="ontouchstart"in t,l.MOBILE_REGEX=/mobile|tablet|ip(ad|hone|od)|android|silk/i,l.NO_MOUSEEVENTS=l.HAS_TOUCHEVENTS&&t.navigator.userAgent.match(l.MOBILE_REGEX),l.EVENT_TYPES={},l.DIRECTION_DOWN="down",l.DIRECTION_LEFT="left",l.DIRECTION_UP="up",l.DIRECTION_RIGHT="right",l.POINTER_MOUSE="mouse",l.POINTER_TOUCH="touch",l.POINTER_PEN="pen",l.EVENT_START="start",l.EVENT_MOVE="move",l.EVENT_END="end",l.DOCUMENT=t.document,l.plugins={},l.READY=!1,l.Instance=function(t,e){var n=this;return function(){if(!l.READY){for(var t in l.event.determineEventTypes(),l.gestures)l.gestures.hasOwnProperty(t)&&l.detection.register(l.gestures[t]);l.event.onTouch(l.DOCUMENT,l.EVENT_MOVE,l.detection.detect),l.event.onTouch(l.DOCUMENT,l.EVENT_END,l.detection.detect),l.READY=!0}}(),this.element=t,this.enabled=!0,this.options=l.utils.extend(l.utils.extend({},l.defaults),e||{}),this.options.stop_browser_behavior&&l.utils.stopDefaultBrowserBehavior(this.element,this.options.stop_browser_behavior),l.event.onTouch(t,l.EVENT_START,function(t){n.enabled&&l.detection.startDetect(n,t)}),this},l.Instance.prototype={on:function(t,e){for(var n=t.split(" "),i=0;i<n.length;i++)this.element.addEventListener(n[i],e,!1);return this},off:function(t,e){for(var n=t.split(" "),i=0;i<n.length;i++)this.element.removeEventListener(n[i],e,!1);return this},trigger:function(t,e){e=e||{};var n=l.DOCUMENT.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e;var i=this.element;return l.utils.hasParent(e.target,i)&&(i=e.target),i.dispatchEvent(n),this},enable:function(t){return this.enabled=t,this}};var a=null,c=!1,u=!1;l.event={bindDom:function(t,e,n){for(var i=e.split(" "),r=0;r<i.length;r++)t.addEventListener(i[r],n,!1)},onTouch:function(i,r,o){var s=this;this.bindDom(i,l.EVENT_TYPES[r],function(t){var e=t.type.toLowerCase();if(!e.match(/mouse/)||!u){e.match(/touch/)||e.match(/pointerdown/)||e.match(/mouse/)&&1===t.which?c=!0:e.match(/mouse/)&&1!==t.which&&(c=!1),e.match(/touch|pointer/)&&(u=!0);var n=0;c&&(l.HAS_POINTEREVENTS&&r!=l.EVENT_END?n=l.PointerEvent.updatePointer(r,t):e.match(/touch/)?n=t.touches.length:u||(n=e.match(/up/)?0:1),0<n&&r==l.EVENT_END?r=l.EVENT_MOVE:n||(r=l.EVENT_END),!n&&null!==a||(a=t),o.call(l.detection,s.collectEventData(i,r,s.getTouchList(a,r),t)),l.HAS_POINTEREVENTS&&r==l.EVENT_END&&(n=l.PointerEvent.updatePointer(r,t))),n||(a=null,u=c=!1,l.PointerEvent.reset())}})},determineEventTypes:function(){var t;t=l.HAS_POINTEREVENTS?l.PointerEvent.getEvents():l.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],l.EVENT_TYPES[l.EVENT_START]=t[0],l.EVENT_TYPES[l.EVENT_MOVE]=t[1],l.EVENT_TYPES[l.EVENT_END]=t[2]},getTouchList:function(t){return l.HAS_POINTEREVENTS?l.PointerEvent.getTouchList():t.touches?t.touches:(t.indentifier=1,[t])},collectEventData:function(t,e,n,i){var r=l.POINTER_TOUCH;return(i.type.match(/mouse/)||l.PointerEvent.matchType(l.POINTER_MOUSE,i))&&(r=l.POINTER_MOUSE),{center:l.utils.getCenter(n),timeStamp:(new Date).getTime(),target:i.target,touches:n,eventType:e,pointerType:r,srcEvent:i,preventDefault:function(){this.srcEvent.preventManipulation&&this.srcEvent.preventManipulation(),this.srcEvent.preventDefault&&this.srcEvent.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return l.detection.stopDetect()}}}},l.PointerEvent={pointers:{},getTouchList:function(){var e=this,n=[];return Object.keys(e.pointers).sort().forEach(function(t){n.push(e.pointers[t])}),n},updatePointer:function(t,e){return t==l.EVENT_END?this.pointers={}:(e.identifier=e.pointerId,this.pointers[e.pointerId]=e),Object.keys(this.pointers).length},matchType:function(t,e){if(!e.pointerType)return!1;var n={};return n[l.POINTER_MOUSE]=e.pointerType==e.MSPOINTER_TYPE_MOUSE||e.pointerType==l.POINTER_MOUSE,n[l.POINTER_TOUCH]=e.pointerType==e.MSPOINTER_TYPE_TOUCH||e.pointerType==l.POINTER_TOUCH,n[l.POINTER_PEN]=e.pointerType==e.MSPOINTER_TYPE_PEN||e.pointerType==l.POINTER_PEN,n[t]},getEvents:function(){return["pointerdown MSPointerDown","pointermove MSPointerMove","pointerup pointercancel MSPointerUp MSPointerCancel"]},reset:function(){this.pointers={}}},l.utils={extend:function(t,e,n){for(var i in e)void 0!==t[i]&&n||(t[i]=e[i]);return t},hasParent:function(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1},getCenter:function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++)e.push(t[i].pageX),n.push(t[i].pageY);return{pageX:(Math.min.apply(Math,e)+Math.max.apply(Math,e))/2,pageY:(Math.min.apply(Math,n)+Math.max.apply(Math,n))/2}},getVelocity:function(t,e,n){return{x:Math.abs(e/t)||0,y:Math.abs(n/t)||0}},getAngle:function(t,e){var n=e.pageY-t.pageY,i=e.pageX-t.pageX;return 180*Math.atan2(n,i)/Math.PI},getDirection:function(t,e){var n=Math.abs(t.pageX-e.pageX);return Math.abs(t.pageY-e.pageY)<=n?0<t.pageX-e.pageX?l.DIRECTION_LEFT:l.DIRECTION_RIGHT:0<t.pageY-e.pageY?l.DIRECTION_UP:l.DIRECTION_DOWN},getDistance:function(t,e){var n=e.pageX-t.pageX,i=e.pageY-t.pageY;return Math.sqrt(n*n+i*i)},getScale:function(t,e){return 2<=t.length&&2<=e.length?this.getDistance(e[0],e[1])/this.getDistance(t[0],t[1]):1},getRotation:function(t,e){return 2<=t.length&&2<=e.length?this.getAngle(e[1],e[0])-this.getAngle(t[1],t[0]):0},isVertical:function(t){return t==l.DIRECTION_UP||t==l.DIRECTION_DOWN},stopDefaultBrowserBehavior:function(t,e){var n,i=["webkit","khtml","moz","Moz","ms","o",""];if(e&&t.style){for(var r=0;r<i.length;r++)for(var o in e)e.hasOwnProperty(o)&&(n=o,i[r]&&(n=i[r]+n.substring(0,1).toUpperCase()+n.substring(1)),t.style[n]=e[o]);"none"==e.userSelect&&(t.onselectstart=function(){return!1}),"none"==e.userDrag&&(t.ondragstart=function(){return!1})}}},l.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(t,e){this.current||(this.stopped=!1,this.current={inst:t,startEvent:l.utils.extend({},e),lastEvent:!1,name:""},this.detect(e))},detect:function(t){if(this.current&&!this.stopped){t=this.extendEventData(t);for(var e=this.current.inst.options,n=0,i=this.gestures.length;n<i;n++){var r=this.gestures[n];if(!this.stopped&&!1!==e[r.name]&&!1===r.handler.call(r,t,this.current.inst)){this.stopDetect();break}}return this.current&&(this.current.lastEvent=t),t.eventType==l.EVENT_END&&!t.touches.length-1&&this.stopDetect(),t}},stopDetect:function(){this.previous=l.utils.extend({},this.current),this.current=null,this.stopped=!0},extendEventData:function(t){var e=this.current.startEvent;if(e&&(t.touches.length!=e.touches.length||t.touches===e.touches)){e.touches=[];for(var n=0,i=t.touches.length;n<i;n++)e.touches.push(l.utils.extend({},t.touches[n]))}var r=t.timeStamp-e.timeStamp,o=t.center.pageX-e.center.pageX,s=t.center.pageY-e.center.pageY,a=l.utils.getVelocity(r,o,s);return l.utils.extend(t,{deltaTime:r,deltaX:o,deltaY:s,velocityX:a.x,velocityY:a.y,distance:l.utils.getDistance(e.center,t.center),angle:l.utils.getAngle(e.center,t.center),interimAngle:this.current.lastEvent&&l.utils.getAngle(this.current.lastEvent.center,t.center),direction:l.utils.getDirection(e.center,t.center),interimDirection:this.current.lastEvent&&l.utils.getDirection(this.current.lastEvent.center,t.center),scale:l.utils.getScale(e.touches,t.touches),rotation:l.utils.getRotation(e.touches,t.touches),startEvent:e}),t},register:function(t){var e=t.defaults||{};return void 0===e[t.name]&&(e[t.name]=!0),l.utils.extend(l.defaults,e,!0),t.index=t.index||1e3,this.gestures.push(t),this.gestures.sort(function(t,e){return t.index<e.index?-1:t.index>e.index?1:0}),this.gestures}},l.gestures=l.gestures||{},l.gestures.Hold={name:"hold",index:10,defaults:{hold_timeout:500,hold_threshold:1},timer:null,handler:function(t,e){switch(t.eventType){case l.EVENT_START:clearTimeout(this.timer),l.detection.current.name=this.name,this.timer=setTimeout(function(){"hold"==l.detection.current.name&&e.trigger("hold",t)},e.options.hold_timeout);break;case l.EVENT_MOVE:t.distance>e.options.hold_threshold&&clearTimeout(this.timer);break;case l.EVENT_END:clearTimeout(this.timer)}}},l.gestures.Tap={name:"tap",index:100,defaults:{tap_max_touchtime:250,tap_max_distance:10,tap_always:!0,doubletap_distance:20,doubletap_interval:300},handler:function(t,e){if(t.eventType==l.EVENT_END&&"touchcancel"!=t.srcEvent.type){var n=l.detection.previous,i=!1;if(t.deltaTime>e.options.tap_max_touchtime||t.distance>e.options.tap_max_distance)return;n&&"tap"==n.name&&t.timeStamp-n.lastEvent.timeStamp<e.options.doubletap_interval&&t.distance<e.options.doubletap_distance&&(e.trigger("doubletap",t),i=!0),i&&!e.options.tap_always||(l.detection.current.name="tap",e.trigger(l.detection.current.name,t))}}},l.gestures.Swipe={name:"swipe",index:40,defaults:{swipe_max_touches:1,swipe_velocity:.7},handler:function(t,e){if(t.eventType==l.EVENT_END){if(0<e.options.swipe_max_touches&&t.touches.length>e.options.swipe_max_touches)return;(t.velocityX>e.options.swipe_velocity||t.velocityY>e.options.swipe_velocity)&&(e.trigger(this.name,t),e.trigger(this.name+t.direction,t))}}},l.gestures.Drag={name:"drag",index:50,defaults:{drag_min_distance:10,correct_for_drag_min_distance:!0,drag_max_touches:1,drag_block_horizontal:!1,drag_block_vertical:!1,drag_lock_to_axis:!1,drag_lock_min_distance:25},triggered:!1,handler:function(t,e){if(l.detection.current.name!=this.name&&this.triggered)return e.trigger(this.name+"end",t),void(this.triggered=!1);if(!(0<e.options.drag_max_touches&&t.touches.length>e.options.drag_max_touches))switch(t.eventType){case l.EVENT_START:this.triggered=!1;break;case l.EVENT_MOVE:if(t.distance<e.options.drag_min_distance&&l.detection.current.name!=this.name)return;if(l.detection.current.name!=this.name&&(l.detection.current.name=this.name,e.options.correct_for_drag_min_distance)){var n=Math.abs(e.options.drag_min_distance/t.distance);l.detection.current.startEvent.center.pageX+=t.deltaX*n,l.detection.current.startEvent.center.pageY+=t.deltaY*n,t=l.detection.extendEventData(t)}(l.detection.current.lastEvent.drag_locked_to_axis||e.options.drag_lock_to_axis&&e.options.drag_lock_min_distance<=t.distance)&&(t.drag_locked_to_axis=!0);var i=l.detection.current.lastEvent.direction;t.drag_locked_to_axis&&i!==t.direction&&(t.direction=l.utils.isVertical(i)?t.deltaY<0?l.DIRECTION_UP:l.DIRECTION_DOWN:t.deltaX<0?l.DIRECTION_LEFT:l.DIRECTION_RIGHT),this.triggered||(e.trigger(this.name+"start",t),this.triggered=!0),e.trigger(this.name,t),e.trigger(this.name+t.direction,t),(e.options.drag_block_vertical&&l.utils.isVertical(t.direction)||e.options.drag_block_horizontal&&!l.utils.isVertical(t.direction))&&t.preventDefault();break;case l.EVENT_END:this.triggered&&e.trigger(this.name+"end",t),this.triggered=!1}}},l.gestures.Transform={name:"transform",index:45,defaults:{transform_min_scale:.01,transform_min_rotation:1,transform_always_block:!1},triggered:!1,handler:function(t,e){if(l.detection.current.name!=this.name&&this.triggered)return e.trigger(this.name+"end",t),void(this.triggered=!1);if(!(t.touches.length<2))switch(e.options.transform_always_block&&t.preventDefault(),t.eventType){case l.EVENT_START:this.triggered=!1;break;case l.EVENT_MOVE:var n=Math.abs(1-t.scale),i=Math.abs(t.rotation);if(n<e.options.transform_min_scale&&i<e.options.transform_min_rotation)return;l.detection.current.name=this.name,this.triggered||(e.trigger(this.name+"start",t),this.triggered=!0),e.trigger(this.name,t),i>e.options.transform_min_rotation&&e.trigger("rotate",t),n>e.options.transform_min_scale&&(e.trigger("pinch",t),e.trigger("pinch"+(t.scale<1?"in":"out"),t));break;case l.EVENT_END:this.triggered&&e.trigger(this.name+"end",t),this.triggered=!1}}},l.gestures.Touch={name:"touch",index:-1/0,defaults:{prevent_default:!1,prevent_mouseevents:!1},handler:function(t,e){return e.options.prevent_mouseevents&&t.pointerType==l.POINTER_MOUSE?void t.stopDetect():(e.options.prevent_default&&t.preventDefault(),void(t.eventType==l.EVENT_START&&e.trigger(this.name,t)))}},l.gestures.Release={name:"release",index:1/0,handler:function(t,e){t.eventType==l.EVENT_END&&e.trigger(this.name,t)}},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return l}):"object"==typeof module&&"object"==typeof module.exports?module.exports=l:t.Hammer=l}(this),function(){"use strict";function t(i,r){return void 0===r||(i.event.bindDom=function(t,e,n){r(t).on(e,function(t){var e=t.originalEvent||t;void 0===e.pageX&&(e.pageX=t.pageX,e.pageY=t.pageY),e.target||(e.target=t.target),void 0===e.which&&(e.which=e.button),e.preventDefault||(e.preventDefault=t.preventDefault),e.stopPropagation||(e.stopPropagation=t.stopPropagation),n.call(this,e)})},i.Instance.prototype.on=function(t,e){return r(this.element).on(t,e)},i.Instance.prototype.off=function(t,e){return r(this.element).off(t,e)},i.Instance.prototype.trigger=function(t,e){var n=r(this.element);return n.has(e.target).length&&(n=r(e.target)),n.trigger({type:t,gesture:e})},r.fn.hammer=function(n){return this.each(function(){var t=r(this),e=t.data("hammer");e?e&&n&&i.utils.extend(e.options,n):t.data("hammer",new i(this,n||{}))})}),i}"function"==typeof define&&"object"==typeof define.amd&&define.amd?define("hammer-jquery",["hammer","jquery"],t):t(window.Hammer,window.jQuery||window.Zepto)}(),function(u,d){"use strict";function e(t){var e=u.extend({},D,t);a=u("body"),b=function(){var t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},e=document.createElement("div");for(var n in t)if(t.hasOwnProperty(n)&&n in e.style)return t[n]+".wallpaper";return!1}(),!1!==b||(b="transitionend.wallpaper");for(var n=u(this),i=0,r=n.length;i<r;i++)o.apply(n.eq(i),[u.extend({},e)]);return a.hasClass("wallpaper-inititalized")||(a.addClass("wallpaper-inititalized"),l.on("resize.wallpaper",e,s)),n}function o(t){var e=u(this);if(!e.hasClass("wallpaper")){u.extend(t,e.data("wallpaper-options")),e.addClass("wallpaper").append('<div class="wallpaper-container"></div>'),t.guid="wallpaper-"+x++,t.youTubeGuid=0,t.$target=e,t.$container=t.$target.find(".wallpaper-container"),t.$target.data("wallpaper",t).on("resize.wallpaper",t,g);var n=t.source;t.source=null,i(n,t,!0),t.onReady.call()}}function i(t,e,n){if(t!==e.source){if(e.source=t,e.isYouTube=!1,"object"==typeof t&&"string"==typeof t.video){var i=t.video.match(/(?:youtube\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i);i&&1<=i.length&&(e.isYouTube=!0,e.videoId=i[1])}if(e.isYouTube)e.playing=!1,e.playerReady=!1,e.posterLoaded=!1,p(t,e,n);else if("object"!=typeof t||t.hasOwnProperty("fallback")){if(e.responsiveSource)for(var r in e.responsiveSource)e.responsiveSource.hasOwnProperty(r)&&e.responsiveSource[r].mq.removeListener(m);if(e.responsive=!1,e.responsiveSource=null,"object"==typeof t){var o,s=[];for(var a in t)if(t.hasOwnProperty(a)){var l="fallback"===a?"(min-width: 0px)":a;if(l){var c=d.matchMedia(l.replace(1/0,"100000px"));c.addListener(m),s.push({mq:c,source:t[a]}),c.matches&&(o=t[a])}}e.responsive=!0,e.responsiveSource=s,t=o}h(t,e,!1,n)}else!function(t,e,n){if(e.source.poster&&(h(e.source.poster,e,!0,!0),n=!1),!S){var i='<div class="wallpaper-media wallpaper-video'+(!0!==n?" animated":"")+'">';i+="<video",e.loop&&(i+=" loop"),e.mute&&(i+=" muted"),i+=">",e.source.webm&&(i+='<source src="'+e.source.webm+'" type="video/webm" />'),e.source.mp4&&(i+='<source src="'+e.source.mp4+'" type="video/mp4" />'),e.source.ogg&&(i+='<source src="'+e.source.ogg+'" type="video/ogg" />'),i+="</video>";var r=u(i+="</div>");r.find("video").one("loadedmetadata.wallpaper",function(){r.on(b,function(t){y(t),u(t.target).is(r)&&(r.off(b),f(e))}),setTimeout(function(){r.css({opacity:1})},0),g({data:e}),e.$target.trigger("wallpaper.loaded"),e.onLoad.call(e.$target),e.hoverPlay?e.$target.on("mouseover.boxer",C.play).on("mouseout.boxer",C.pause):e.autoPlay&&this.play()}),e.$container.append(r)}}(0,e,n)}else e.$target.trigger("wallpaper.loaded"),e.onLoad.call(e.$target)}function h(t,e,n,i){var r=u('<div class="wallpaper-media wallpaper-image'+(!0!==i?" animated":"")+'"><img /></div>'),o=r.find("img"),s=t;o.one("load.wallpaper",function(){w&&r.addClass("native").css({backgroundImage:"url('"+s+"')"}),r.on(b,function(t){y(t),u(t.target).is(r)&&(r.off(b),n||f(e))}),setTimeout(function(){r.css({opacity:1}),e.responsive&&i&&f(e)},0),g({data:e}),n&&!i||(e.$target.trigger("wallpaper.loaded"),e.onLoad.call(e.$target)),c=u(".wallpaper-responsive")}).attr("src",s),e.responsive&&r.addClass("wallpaper-responsive"),e.$container.append(r),!o[0].complete&&4!==o[0].readyState||o.trigger("load.wallpaper")}function p(t,e,n){if(!e.videoId){var i=t.match(/^.*(?:youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#\&\?]*).*/);e.videoId=i[1]}if(e.posterLoaded||(e.source.poster||(e.source.poster="http://img.youtube.com/vi/"+e.videoId+"/0.jpg"),e.posterLoaded=!0,h(e.source.poster,e,!0,n),n=!1),!S)if(u("script[src*='youtube.com/iframe_api']").length||u("head").append('<script src="//www.youtube.com/iframe_api"><\/script>'),T){var r=e.guid+"_"+e.youTubeGuid++,o="";o+='<div class="wallpaper-media wallpaper-embed'+(!0!==n?" animated":"")+'">',o+='<div id="'+r+'"></div>';var s=u(o+="</div>");e.$container.append(s),e.player&&(e.oldPlayer=e.player,e.player=null),e.player=new d.YT.Player(r,{videoId:e.videoId,playerVars:{controls:0,rel:0,showinfo:0,wmode:"transparent",enablejsapi:1,version:3,playerapiid:r,loop:e.loop?1:0,autoplay:1,origin:d.location.protocol+"//"+d.location.host},events:{onReady:function(){e.playerReady=!0,e.mute&&e.player.mute(),e.hoverPlay?e.$target.on("mouseover.boxer",C.play).on("mouseout.boxer",C.pause):e.autoPlay&&e.player.playVideo()},onStateChange:function(t){e.playing||t.data!==d.YT.PlayerState.PLAYING?e.loop&&e.playing&&t.data===d.YT.PlayerState.ENDED&&e.player.playVideo():(e.playing=!0,!e.hoverPlay&&e.autoPlay||e.player.pauseVideo(),e.$target.trigger("wallpaper.loaded"),e.onLoad.call(e.$target),s.on(b,function(t){y(t),u(t.target).is(s)&&(s.off(b),f(e))}),s.css({opacity:1})),e.$target.find(".wallpaper-embed").addClass("ready")},onPlaybackQualityChange:function(){},onPlaybackRateChange:function(){},onError:function(){},onApiChange:function(){}}}),g({data:e})}else E.push({source:t,data:e})}function f(t){var e=t.$container.find(".wallpaper-media");1<=e.length&&(e.not(":last").remove(),t.oldPlayer=null),c=u(".wallpaper-responsive")}function g(t){y(t);for(var e=t.data,n=e.$container.find(".wallpaper-media"),i=0,r=n.length;i<r;i++){var o=n.eq(i),s=e.isYouTube?"iframe":o.find("video").length?"video":"img",a=o.find(s);if(a.length&&("img"!=s||!e.nativeSupport)){var l=e.$target.outerWidth(),c=e.$target.outerHeight(),u=v(e,a);e.width=u.naturalWidth,e.height=u.naturalHeight,e.left=0,e.top=0;var d=e.isYouTube?e.embedRatio:e.width/e.height;e.height=c,e.width=e.height*d,e.width<l&&(e.width=l,e.height=e.width/d),e.left=-(e.width-l)/2,e.top=-(e.height-c)/2,o.css({height:e.height,width:e.width,left:e.left,top:e.top})}}}function s(){u(".wallpaper").each(function(){g({data:u(this).data("wallpaper")})})}function m(){n=function(t,e,n){return r(t),setTimeout(n,e)}(n,5,t)}function t(){r(n),c.each(function(){for(var t=u(this),e=(t.find("img"),t.parents(".wallpaper").data("wallpaper")),n=e.responsiveSource,i=0,r=0,o=n.length;r<o;r++)if(n.hasOwnProperty(r)){var s=n[r].mq;s&&s.matches&&(i=r)}h(n[i].source,e,!1,!0),t.trigger("change.wallpaper")})}function r(t){null!==t&&(clearInterval(t),t=null)}function v(t,e){if(t.isYouTube)return{naturalHeight:500,naturalWidth:500/t.embedRatio};if(e.is("img")){var n=e[0];if(void 0!==n.naturalHeight)return{naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth};var i=new Image;return i.src=n.src,{naturalHeight:i.height,naturalWidth:i.width}}return{naturalHeight:e[0].videoHeight,naturalWidth:e[0].videoWidth}}function y(t){t.preventDefault&&(t.stopPropagation(),t.preventDefault())}var a,b,n,l=u(d),c=null,w="backgroundSize"in document.documentElement.style,x=0,T=!1,E=[],k=d.navigator.userAgent||d.navigator.vendor||d.opera,S=/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(k),D=(0<=k.toLowerCase().indexOf("safari")&&k.toLowerCase().indexOf("chrome"),{autoPlay:!0,embedRatio:1.777777,hoverPlay:!1,loop:!0,mute:!0,onLoad:u.noop,onReady:u.noop,source:null}),C={defaults:function(t){return D=u.extend(D,t||{}),"object"!=typeof this||u(this)},destroy:function(){var t=u(this).each(function(){var t=u(this).data("wallpaper");t&&(t.$container.remove(),t.$target.removeClass("wallpaper").off(".boxer").data("wallpaper",null))});return void 0!==a&&void 0!==l&&u(".wallpaper").length<1&&(a.removeClass("wallpaper-inititalized"),l.off(".wallpaper")),t},load:function(e){return u(this).each(function(){var t=u(this).data("wallpaper");t&&i(e,t)})},pause:function(){return u(this).each(function(){var t=u(this).data("wallpaper");if(t)if(t.isYouTube&&t.playerReady)t.player.pauseVideo();else{var e=t.$container.find("video");e.length&&e[0].pause()}})},play:function(){return u(this).each(function(){var t=u(this).data("wallpaper");if(t)if(t.isYouTube&&t.playerReady)t.player.playVideo();else{var e=t.$container.find("video");e.length&&e[0].play()}})},stop:function(){C.pause.apply(this)},unload:function(){return u(this).each(function(){var t=u(this).data("wallpaper");t&&function(e){var n=e.$container.find(".wallpaper-media");1<=n.length&&n.on(b,function(t){y(t),u(t.target).is(n)&&(u(this).remove(),delete e.source)}).css({opacity:0})}(t)})}};d.onYouTubeIframeAPIReady=function(){for(var t in T=!0,E)E.hasOwnProperty(t)&&p(E[t].source,E[t].data);E=[]},u.fn.wallpaper=function(t){return C[t]?C[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?this:e.apply(this,arguments)},u.wallpaper=function(t){"defaults"===t&&C.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery,window),window.Rainbow=function(){function s(t){var e,n=t.getAttribute&&t.getAttribute("data-language")||0;if(!n)for(t=t.attributes,e=0;e<t.length;++e)if("data-language"===t[e].nodeName)return t[e].nodeValue;return n}function h(t,e){return'<span class="'+t.replace(/\./g," ")+(n?" "+n:"")+'">'+e+"</span>"}function a(e,l,n,i){if(null==e)i();else{var c=e.exec(n);if(c){++b,l.name||"string"!=typeof l.matches[0]||(l.name=l.matches[0],delete l.matches[0]);function r(){function t(){a(e,l,n,i)}0<b%100?t():setTimeout(t,0)}var u=c[0],o=c.index,s=c[0].length+o;if(function(t,e){for(var n in v[y]){n=parseInt(n,10);var i=v[y][n];if(t==n&&e==i||!(t<=n&&i<=e)||(delete v[y][n],delete m[y][n]),i=v[y][n],n<=t&&t<i||n<e&&e<i)return!0}return!1}(o,s))r();else{var t=p(l.matches),d=function(o,s,a){if(o>=s.length)a(u);else{var e=c[s[o]];if(e){function n(t,e,n){var i,r;for(i=0,r=1;r<s[o];++r)c[r]&&(i+=c[r].length);e=n?h(n,e):e,u=u.substr(0,i)+u.substr(i).replace(t,e),d(++o,s,a)}var i=l.matches[s[o]],t=i.language,r=i.name&&i.matches?i.matches:i;t?g(e,t,function(t){n(e,t)}):"string"==typeof i?n(e,e,i):f(e,r.length?r:[r],function(t){n(e,t,i.matches?i.name:0)})}else d(++o,s,a)}};d(0,t,function(t){l.name&&(t=h(l.name,t)),m[y]||(m[y]={},v[y]={}),m[y][o]={replace:c[0],with:t},v[y][o]=s,r()})}}else i()}}function p(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n.sort(function(t,e){return e-t})}function f(i,t,r){++y,function t(e,n){n<e.length?a(e[n].pattern,e[n],i,function(){t(e,++n)}):function(t,e){var n=p(m[y]);!function t(e,n,i,r){if(i<n.length){++w;var o=n[i],s=m[y][o];e=e.substr(0,o)+e.substr(o).replace(s.replace,s.with),o=function(){t(e,n,++i,r)},0<w%250?o():setTimeout(o,0)}else r(e)}(t,n,0,e)}(i,function(t){delete m[y],delete v[y],--y,r(t)})}(t,0)}function g(t,e,n){var i=o[e]||[],r=o[d]||[];e=u[e]?i:i.concat(r),f(t.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/&(?![\w\#]+;)/g,"&amp;"),e,n)}function l(e,n,i){if(n<e.length){var r=e[n],o=function(t){var e=s(t)||s(t.parentNode);if(!e){var n=/\blang(?:uage)?-(\w+)/;(t=t.className.match(n)||t.parentNode.className.match(n))&&(e=t[1])}return e}(r);return-1<(" "+r.className+" ").indexOf(" rainbow ")||!o?l(e,++n,i):(o=o.toLowerCase(),r.className+=r.className?" rainbow":"rainbow",g(r.innerHTML,o,function(t){r.innerHTML=t,m={},v={},c&&c(r,o),setTimeout(function(){l(e,++n,i)},0)}))}i&&i()}function i(t,e){var n,i=(t=t&&"function"==typeof t.getElementsByTagName?t:document).getElementsByTagName("pre"),r=t.getElementsByTagName("code"),o=[],s=[];for(n=0;n<i.length;++n)i[n].getElementsByTagName("code").length?i[n].innerHTML=i[n].innerHTML.replace(/^\s+/,"").replace(/\s+$/,""):o.push(i[n]);for(n=0;n<r.length;++n)s.push(r[n]);l(s.concat(o),0,e)}var n,c,m={},v={},o={},u={},y=0,d=0,b=0,w=0;return{extend:function(t,e,n){1==arguments.length&&(e=t,t=d),u[t]=n,o[t]=e.concat(o[t]||[])},b:function(t){c=t},a:function(t){n=t},color:function(t,e,n){return"string"==typeof t?g(t,e,n):"function"==typeof t?i(0,t):void i(t,e)}}}(),function(){var n=[];document.onreadystatechange&&n.push(document.onreadystatechange),document.onreadystatechange=function(t){for(var e=0;e<n.length;e++)n[e].call&&n[e].call(this,t);"complete"===document.readyState&&Rainbow.color()}}(),Rainbow.onHighlight=Rainbow.b,Rainbow.addClass=Rainbow.a,Rainbow.extend("c",[{name:"meta.preprocessor",matches:{1:[{matches:{1:"keyword.define",2:"entity.name"},pattern:/(\w+)\s(\w+)\b/g},{name:"keyword.define",pattern:/endif/g},{name:"constant.numeric",pattern:/\d+/g},{matches:{1:"keyword.include",2:"string"},pattern:/(include)\s(.*?)$/g}]},pattern:/\#([\S\s]*?)$/gm},{name:"keyword",pattern:/\b(do|goto|typedef)\b/g},{name:"entity.label",pattern:/\w+:/g},{matches:{1:"storage.type",3:"storage.type",4:"entity.name.function"},pattern:/\b((un)?signed|const)? ?(void|char|short|int|long|float|double)\*? +((\w+)(?= ?\())?/g},{matches:{2:"entity.name.function"},pattern:/(\w|\*) +((\w+)(?= ?\())/g},{name:"storage.modifier",pattern:/\b(static|extern|auto|register|volatile|inline)\b/g},{name:"support.type",pattern:/\b(struct|union|enum)\b/g}]),Rainbow.extend("scheme",[{name:"plain",pattern:/&gt;|&lt;/g},{name:"comment",pattern:/;.*$/gm},{name:"constant.language",pattern:/#t|#f|'\(\)/g},{name:"constant.symbol",pattern:/'[^()\s#]+/g},{name:"constant.number",pattern:/\b\d+(?:\.\d*)?\b/g},{name:"string",pattern:/".+?"/g},{matches:{1:"storage.function",2:"variable"},pattern:/\(\s*(define)\s+\(?(\S+)/g},{matches:{1:"keyword"},pattern:/\(\s*(begin|define\-syntax|if|lambda|quasiquote|quote|set!|syntax\-rules|and|and\-let\*|case|cond|delay|do|else|or|let|let\*|let\-syntax|letrec|letrec\-syntax)(?=[\]()\s#])/g},{matches:{1:"entity.function"},pattern:/\(\s*(eqv\?|eq\?|equal\?|number\?|complex\?|real\?|rational\?|integer\?|exact\?|inexact\?|=|<|>|<=|>=|zero\?|positive\?|negative\?|odd\?|even\?|max|min|\+|\-|\*|\/|abs|quotient|remainder|modulo|gcd|lcm|numerator|denominator|floor|ceiling|truncate|round|rationalize|exp|log|sin|cos|tan|asin|acos|atan|sqrt|expt|make\-rectangular|make\-polar|real\-part|imag\-part|magnitude|angle|exact\->inexact|inexact\->exact|number\->string|string\->number|not|boolean\?|pair\?|cons|car|cdr|set\-car!|set\-cdr!|caar|cadr|cdar|cddr|caaar|caadr|cadar|caddr|cdaar|cdadr|cddar|cdddr|caaaar|caaadr|caadar|caaddr|cadaar|cadadr|caddar|cadddr|cdaaar|cdaadr|cdadar|cdaddr|cddaar|cddadr|cdddar|cddddr|null\?|list\?|list|length|append|reverse|list\-tail|list\-ref|memq|memv|member|assq|assv|assoc|symbol\?|symbol\->string|string\->symbol|char\?|char=\?|char<\?|char>\?|char<=\?|char>=\?|char\-ci=\?|char\-ci<\?|char\-ci>\?|char\-ci<=\?|char\-ci>=\?|char\-alphabetic\?|char\-numeric\?|char\-whitespace\?|char\-upper\-case\?|char\-lower\-case\?|char\->integer|integer\->char|char\-upcase|char\-downcase|string\?|make\-string|string|string\-length|string\-ref|string\-set!|string=\?|string\-ci=\?|string<\?|string>\?|string<=\?|string>=\?|string\-ci<\?|string\-ci>\?|string\-ci<=\?|string\-ci>=\?|substring|string\-append|string\->list|list\->string|string\-copy|string\-fill!|vector\?|make\-vector|vector|vector\-length|vector\-ref|vector\-set!|vector\->list|list\->vector|vector\-fill!|procedure\?|apply|map|for\-each|force|call\-with\-current\-continuation|call\/cc|values|call\-with\-values|dynamic\-wind|eval|scheme\-report\-environment|null\-environment|interaction\-environment|call\-with\-input\-file|call\-with\-output\-file|input\-port\?|output\-port\?|current\-input\-port|current\-output\-port|with\-input\-from\-file|with\-output\-to\-file|open\-input\-file|open\-output\-file|close\-input\-port|close\-output\-port|read|read\-char|peek\-char|eof\-object\?|char\-ready\?|write|display|newline|write\-char|load|transcript\-on|transcript\-off)(?=[\]()\s#])/g}],!0),Rainbow.extend("java",[{name:"constant",pattern:/\b(false|null|true|[A-Z_]+)\b/g},{matches:{1:"keyword",2:"support.namespace"},pattern:/(import|package)\s(.+)/g},{name:"keyword",pattern:/\b(abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/g},{name:"string",pattern:/(".*?")/g},{name:"char",pattern:/(')(.|\\.|\\u[\dA-Fa-f]{4})\1/g},{name:"integer",pattern:/\b(0x[\da-f]+|\d+)L?\b/g},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/).*?$/gm},{name:"support.annotation",pattern:/@\w+/g},{matches:{1:"entity.function"},pattern:/([^@\.\s]+)\(/g},{name:"entity.class",pattern:/\b([A-Z]\w*)\b/g},{name:"operator",pattern:/(\+{1,2}|-{1,2}|~|!|\*|\/|%|(?:&lt;){1,2}|(?:&gt;){1,3}|instanceof|(?:&amp;){1,2}|\^|\|{1,2}|\?|:|(?:=|!|\+|-|\*|\/|%|\^|\||(?:&lt;){1,2}|(?:&gt;){1,3})?=)/g}],!0),Rainbow.extend("d",[{name:"constant",pattern:/\b(false|null|true)\b/gm},{name:"keyword",pattern:/\b(abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|else|enum|export|extern|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|in|inout|int|interface|invariant|ireal|is|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|__FILE__|__LINE__|__gshared|__traits|__vector|__parameters)\b/gm},{matches:{1:"keyword",2:{name:"support.class",pattern:/\w+/gm}},pattern:/(typeof)\s([^\$].*?)(\)|;)/gm},{matches:{1:"keyword.namespace",2:{name:"support.namespace",pattern:/\w+/gm}},pattern:/\b(namespace)\s(.*?);/gm},{matches:{1:"storage.modifier",2:"storage.class",3:"entity.name.class",4:"storage.modifier.extends",5:"entity.other.inherited-class"},pattern:/\b(abstract|sealed)?\s?(class)\s(\w+)(\sextends\s)?([\w\\]*)?\s?\{?(\n|\})/gm},{name:"keyword.static",pattern:/\b(static)\b/gm},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/gm}},pattern:/\b(new)\s([^\$].*?)(?=\)|\(|;|&)/gm},{name:"string",pattern:/("|')(.*?)\1/gm},{name:"integer",pattern:/\b(0x[\da-f]+|\d+)\b/gm},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|\/\+[\s\S]*?\+\/|(\/\/)[\s\S]*?$/gm},{name:"operator",pattern:/(\/|\/=|&amp;=|&amp;&amp;|&amp;|\|=|\|\|\||\-=|\-\-|\-|\+=|\+\+|\+|&lt;=|&lt;&lt;|&lt;|&lt;&lt;=|&lt;&gt;=|&lt;&gt;|&gt;|&gt;&gt;&gt;=|&gt;&gt;=|&gt;=|&gt;&gt;|&gt;&gt;&gt;|!=|!&lt;&gt;=|!&lt;&gt;|!&lt;=|!&lt;|!&gt;=|!&gt;|!|[|]|\$|==|=|\*=|\*|%=|%|\^\^=|\^=|\^\^|\^|~=|~|@|=&gt;|\:)/gm}],!0),Rainbow.extend("lua",[{matches:{1:{name:"keyword.operator",pattern:/\=/g},2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\('|"){1}/g}}},pattern:/(\(|\s|\[|\=)(('|")([^\\\1]|\\.)*?(\3))/gm},{name:"comment",pattern:/\-{2}\[{2}\-{2}[\s\S]*?\-{2}\]{2}\-{2}|(\-{2})[\s\S]*?$/gm},{name:"constant.numeric",pattern:/\b(\d+(\.\d+)?(e(\+|\-)?\d+)?(f|d)?|0x[\da-f]+)\b/gi},{matches:{1:"keyword"},pattern:/\b((a|e)nd|in|repeat|break|local|return|do|for|then|else(if)?|function|not|if|or|until|while)(?=\(|\b)/gi},{name:"constant.language",pattern:/true|false|nil/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\||\*|\=|#|\.{2}/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(function)\s+(\w+[\:|\.]?\w+?)(?=\()/g},{matches:{1:"support.function"},pattern:/\b(print|require|module|\w+\.\w+)(?=\()/g}],!0),Rainbow.extend([{matches:{1:[{name:"keyword.operator",pattern:/\=|\+/g},{name:"keyword.dot",pattern:/\./g}],2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\('|"){1}/g}}},pattern:/(\(|\s|\[|\=|:|\+|\.)(('|")([^\\\1]|\\.)*?(\3))/gm},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/|\#)[\s\S]*?$/gm},{name:"constant.numeric",pattern:/\b(\d+(\.\d+)?(e(\+|\-)?\d+)?(f|d)?|0x[\da-f]+)\b/gi},{matches:{1:"keyword"},pattern:/\b(and|array|as|b(ool(ean)?|reak)|c(ase|atch|har|lass|on(st|tinue))|d(ef|elete|o(uble)?)|e(cho|lse(if)?|xit|xtends|xcept)|f(inally|loat|or(each)?|unction)|global|if|import|int(eger)?|long|new|object|or|pr(int|ivate|otected)|public|return|self|st(ring|ruct|atic)|switch|th(en|is|row)|try|(un)?signed|var|void|while)(?=\(|\b)/gi},{name:"constant.language",pattern:/true|false|null/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\||\*|\=/g},{matches:{1:"function.call"},pattern:/(\w+?)(?=\()/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(function)\s(.*?)(?=\()/g}]),Rainbow.extend("javascript",[{name:"selector",pattern:/(\s|^)\$(?=\.|\()/g},{name:"support",pattern:/\b(window|document)\b/g},{matches:{1:"support.property"},pattern:/\.(length|node(Name|Value))\b/g},{matches:{1:"support.function"},pattern:/(setTimeout|setInterval)(?=\()/g},{matches:{1:"support.method"},pattern:/\.(getAttribute|push|getElementById|getElementsByClassName|log|setTimeout|setInterval)(?=\()/g},{name:"string.regexp",matches:{1:"string.regexp.open",2:{name:"constant.regexp.escape",pattern:/\\(.){1}/g},3:"string.regexp.close",4:"string.regexp.modifier"},pattern:/(\/)(?!\*)(.+)(\/)([igm]{0,3})/g},{matches:{1:"storage",3:"entity.function"},pattern:/(var)?(\s|^)(\S*)(?=\s?=\s?function\()/g},{matches:{1:"keyword",2:"entity.function"},pattern:/(new)\s+(.*)(?=\()/g},{name:"entity.function",pattern:/(\w+)(?=:\s{0,}function)/g}]),Rainbow.extend("r",[{matches:{1:{name:"keyword.operator",pattern:/\=|<\-|&lt;-/g},2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\('|"){1}/g}}},pattern:/(\(|\s|\[|\=|:)(('|")([^\\\1]|\\.)*?(\3))/gm},{matches:{1:"constant.language"},pattern:/\b(NULL|NA|TRUE|FALSE|T|F|NaN|Inf|NA_integer_|NA_real_|NA_complex_|NA_character_)\b/g},{matches:{1:"constant.symbol"},pattern:/[^0-9a-zA-Z\._](LETTERS|letters|month\.(abb|name)|pi)/g},{name:"keyword.operator",pattern:/&lt;-|<-|-|==|&lt;=|<=|&gt;>|>=|<|>|&amp;&amp;|&&|&amp;|&|!=|\|\|?|\*|\+|\^|\/|%%|%\/%|\=|%in%|%\*%|%o%|%x%|\$|:|~|\[{1,2}|\]{1,2}/g},{matches:{1:"storage",3:"entity.function"},pattern:/(\s|^)(.*)(?=\s?=\s?function\s\()/g},{matches:{1:"storage.function"},pattern:/[^a-zA-Z0-9._](function)(?=\s*\()/g},{matches:{1:"namespace",2:"keyword.operator",3:"function.call"},pattern:/([a-zA-Z][a-zA-Z0-9._]+)([:]{2,3})([.a-zA-Z][a-zA-Z0-9._]*(?=\s*\())\b/g},{name:"support.function",pattern:/(^|[^0-9a-zA-Z\._])(array|character|complex|data\.frame|double|integer|list|logical|matrix|numeric|vector)(?=\s*\()/g}]),Rainbow.extend("html",[{name:"source.php.embedded",matches:{2:{language:"php"}},pattern:/&lt;\?=?(?!xml)(php)?([\s\S]*?)(\?&gt;)/gm},{name:"source.css.embedded",matches:{1:{matches:{1:"support.tag.style",2:[{name:"entity.tag.style",pattern:/^style/g},{name:"string",pattern:/('|")(.*?)(\1)/g},{name:"entity.tag.style.attribute",pattern:/(\w+)/g}],3:"support.tag.style"},pattern:/(&lt;\/?)(style.*?)(&gt;)/g},2:{language:"css"},3:"support.tag.style",4:"entity.tag.style",5:"support.tag.style"},pattern:/(&lt;style.*?&gt;)([\s\S]*?)(&lt;\/)(style)(&gt;)/gm},{name:"source.js.embedded",matches:{1:{matches:{1:"support.tag.script",2:[{name:"entity.tag.script",pattern:/^script/g},{name:"string",pattern:/('|")(.*?)(\1)/g},{name:"entity.tag.script.attribute",pattern:/(\w+)/g}],3:"support.tag.script"},pattern:/(&lt;\/?)(script.*?)(&gt;)/g},2:{language:"javascript"},3:"support.tag.script",4:"entity.tag.script",5:"support.tag.script"},pattern:/(&lt;script(?! src).*?&gt;)([\s\S]*?)(&lt;\/)(script)(&gt;)/gm},{name:"comment.html",pattern:/&lt;\!--[\S\s]*?--&gt;/g},{matches:{1:"support.tag.open",2:"support.tag.close"},pattern:/(&lt;)|(\/?\??&gt;)/g},{name:"support.tag",matches:{1:"support.tag",2:"support.tag.special",3:"support.tag-name"},pattern:/(&lt;\??)(\/|\!?)(\w+)/g},{matches:{1:"support.attribute"},pattern:/([a-z-]+)(?=\=)/gi},{matches:{1:"support.operator",2:"string.quote",3:"string.value",4:"string.quote"},pattern:/(=)('|")(.*?)(\2)/g},{matches:{1:"support.operator",2:"support.value"},pattern:/(=)([a-zA-Z\-0-9]*)\b/g},{matches:{1:"support.attribute"},pattern:/\s(\w+)(?=\s|&gt;)(?![\s\S]*&lt;)/g}],!0),Rainbow.extend("python",[{name:"variable.self",pattern:/self/g},{name:"constant.language",pattern:/None|True|False|NotImplemented|\.\.\./g},{name:"support.object",pattern:/object/g},{name:"support.function.python",pattern:/\b(bs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|bin|file|iter|property|tuple|bool|filter|len|range|type|bytearray|float|list|raw_input|unichr|callable|format|locals|reduce|unicode|chr|frozenset|long|reload|vars|classmethod|getattr|map|repr|xrange|cmp|globals|max|reversed|zip|compile|hasattr|memoryview|round|__import__|complex|hash|min|set|apply|delattr|help|next|setattr|buffer|dict|hex|object|slice|coerce|dir|id|oct|sorted|intern)(?=\()/g},{matches:{1:"keyword"},pattern:/\b(pass|lambda|with|is|not|in|from|elif|raise|del)(?=\(|\b)/g},{matches:{1:"storage.class",2:"entity.name.class",3:"entity.other.inherited-class"},pattern:/(class)\s+(\w+)\((\w+?)\)/g},{matches:{1:"storage.function",2:"support.magic"},pattern:/(def)\s+(__\w+)(?=\()/g},{name:"support.magic",pattern:/__(name)__/g},{matches:{1:"keyword.control",2:"support.exception.type"},pattern:/(except) (\w+):/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(def)\s+(\w+)(?=\()/g},{name:"entity.name.function.decorator",pattern:/@([\w\.]+)/g},{name:"comment.docstring",pattern:/('{3}|"{3})[\s\S]*?\1/gm}]),Rainbow.extend("coffeescript",[{name:"comment.block",pattern:/(\#{3})[\s\S]*\1/gm},{name:"string.block",pattern:/('{3}|"{3})[\s\S]*\1/gm},{name:"string.regex",matches:{2:{name:"comment",pattern:/\#(.*?)\n/g}},pattern:/(\/{3})([\s\S]*)\1/gm},{matches:{1:"keyword"},pattern:/\b(in|when|is|isnt|of|not|unless|until|super)(?=\b)/gi},{name:"keyword.operator",pattern:/\?/g},{name:"constant.language",pattern:/\b(undefined|yes|on|no|off)\b/g},{name:"keyword.variable.coffee",pattern:/@(\w+)/gi},{name:"reset",pattern:/object|class|print/gi},{matches:{1:"entity.name.function",2:"keyword.operator",3:{name:"function.argument.coffee",pattern:/([\@\w]+)/g},4:"keyword.function"},pattern:/(\w+)\s{0,}(=|:)\s{0,}\((.*?)((-|=)&gt;)/gi},{matches:{1:{name:"function.argument.coffee",pattern:/([\@\w]+)/g},2:"keyword.function"},pattern:/\s\((.*?)\)\s{0,}((-|=)&gt;)/gi},{matches:{1:"entity.name.function",2:"keyword.operator",3:"keyword.function"},pattern:/(\w+)\s{0,}(=|:)\s{0,}((-|=)&gt;)/gi},{matches:{1:"storage.class",2:"entity.name.class",3:"storage.modifier.extends",4:"entity.other.inherited-class"},pattern:/\b(class)\s(\w+)(\sextends\s)?([\w\\]*)?\b/g},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/g}},pattern:/\b(new)\s(.*?)(?=\s)/g}]),Rainbow.extend("haskell",[{name:"comment",pattern:/\{\-\-[\s\S(\w+)]+[\-\-][\}$]/gm},{name:"comment",pattern:/\-\-(.*)/g},{matches:{1:"keyword",2:"support.namespace"},pattern:/\b(module)\s(\w+)\s[\(]?(\w+)?[\)?]\swhere/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\/\=|\||\@|\:|\.|\+{2}|\:|\*|\=|#|\.{2}|(\\)[a-zA-Z_]/g},{name:"keyword",pattern:/\b(case|class|foreign|hiding|qualified|data|family|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|in|otherwise|module|newtype|of|then|type|where)\b/g},{name:"keyword",pattern:/[\`][a-zA-Z_']*?[\`]/g},{matches:{1:"keyword",2:"keyword.operator"},pattern:/\b(infix|infixr|infixl)+\s\d+\s(\w+)*/g},{name:"entity.class",pattern:/\b([A-Z][A-Za-z0-9_']*)/g},{name:"meta.preprocessor",matches:{1:[{matches:{1:"keyword.define",2:"entity.name"},pattern:/(\w+)\s(\w+)\b/g},{name:"keyword.define",pattern:/endif/g},{name:"constant.numeric",pattern:/\d+/g},{matches:{1:"keyword.include",2:"string"},pattern:/(include)\s(.*?)$/g}]},pattern:/^\#([\S\s]*?)$/gm}]),Rainbow.extend("smalltalk",[{name:"keyword.pseudovariable",pattern:/self|thisContext/g},{name:"keyword.constant",pattern:/false|nil|true/g},{name:"string",pattern:/'([^']|'')*'/g},{name:"string.symbol",pattern:/#\w+|#'([^']|'')*'/g},{name:"string.character",pattern:/\$\w+/g},{name:"comment",pattern:/"([^"]|"")*"/g},{name:"constant.numeric",pattern:/-?\d+(\.\d+)?((r-?|s)[A-Za-z0-9]+|e-?[0-9]+)?/g},{name:"entity.name.class",pattern:/\b[A-Z]\w*/g},{name:"entity.name.function",pattern:/\b[a-z]\w*:?/g},{name:"entity.name.binary",pattern:/(&lt;|&gt;|&amp;|[=~\|\\\/!@*\-_+])+/g},{name:"operator.delimiter",pattern:/;[\(\)\[\]\{\}]|#\[|#\(^\./g}],!0),Rainbow.extend("csharp",[{name:"constant",pattern:/\b(false|null|true)\b/g},{name:"keyword",pattern:/\b(abstract|add|alias|ascending|as|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|descending|double|do|dynamic|else|enum|event|explicit|extern|false|finally|fixed|float|foreach|for|from|get|global|goto|group|if|implicit|int|interface|internal|into|in|is|join|let|lock|long|namespace|new|object|operator|orderby|out|override|params|partial|private|protected|public|readonly|ref|remove|return|sbyte|sealed|select|set|short|sizeof|stackalloc|static|string|struct|switch|this|throw|try|typeof|uint|unchecked|ulong|unsafe|ushort|using|value|var|virtual|void|volatile|where|while|yield)\b/g},{matches:{1:"keyword",2:{name:"support.class",pattern:/\w+/g}},pattern:/(typeof)\s([^\$].*?)(\)|;)/g},{matches:{1:"keyword.namespace",2:{name:"support.namespace",pattern:/\w+/g}},pattern:/\b(namespace)\s(.*?);/g},{matches:{1:"storage.modifier",2:"storage.class",3:"entity.name.class",4:"storage.modifier.extends",5:"entity.other.inherited-class"},pattern:/\b(abstract|sealed)?\s?(class)\s(\w+)(\sextends\s)?([\w\\]*)?\s?\{?(\n|\})/g},{name:"keyword.static",pattern:/\b(static)\b/g},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/g}},pattern:/\b(new)\s([^\$].*?)(?=\)|\(|;|&)/g},{name:"string",pattern:/(")(.*?)\1/g},{name:"integer",pattern:/\b(0x[\da-f]+|\d+)\b/g},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/)[\s\S]*?$/gm},{name:"operator",pattern:/(\+\+|\+=|\+|--|-=|-|&lt;&lt;=|&lt;&lt;|&lt;=|=&gt;|&gt;&gt;=|&gt;&gt;|&gt;=|!=|!|~|\^|\|\||&amp;&amp;|&amp;=|&amp;|\?\?|::|:|\*=|\*|\/=|%=|\|=|==|=)/g},{name:"preprocessor",pattern:/(\#if|\#else|\#elif|\#endif|\#define|\#undef|\#warning|\#error|\#line|\#region|\#endregion|\#pragma)[\s\S]*?$/gm}],!0),Rainbow.extend("go",[{matches:{1:{name:"keyword.operator",pattern:/\=/g},2:{name:"string",matches:{name:"constant.character.escape",pattern:/\\(`|"){1}/g}}},pattern:/(\(|\s|\[|\=|:)((`|")([^\\\1]|\\.)*?(\3))/gm},{name:"comment",pattern:/\/\*[\s\S]*?\*\/|(\/\/)[\s\S]*?$/gm},{name:"constant.numeric",pattern:/\b(\d+(\.\d+)?(e(\+|\-)?\d+)?(f|d)?|0x[\da-f]+)\b/gi},{matches:{1:"keyword"},pattern:/\b(break|c(ase|onst|ontinue)|d(efault|efer)|else|fallthrough|for|go(to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)(?=\(|\b)/gi},{name:"constant.language",pattern:/true|false|null|string|byte|rune|u?int(8|16|32|64)?|float(32|64)|complex(64|128)/g},{name:"keyword.operator",pattern:/\+|\!|\-|&(gt|lt|amp);|\||\*|\:?=/g},{matches:{1:"function.call"},pattern:/(\w+?)(?=\()/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(func)\s(.*?)(?=\()/g}]),Rainbow.extend("shell",[{name:"shell",matches:{1:{language:"shell"}},pattern:/\$\(([\s\S]*?)\)/gm},{matches:{2:"string"},pattern:/(\(|\s|\[|\=)(('|")[\s\S]*?(\3))/gm},{name:"keyword.operator",pattern:/&lt;|&gt;|&amp;/g},{name:"comment",pattern:/\#[\s\S]*?$/gm},{name:"storage.function",pattern:/(.+?)(?=\(\)\s{0,}\{)/g},{name:"support.command",pattern:/\b(echo|rm|ls|(mk|rm)dir|cd|find|cp|exit|pwd|exec|trap|source|shift|unset)/g},{matches:{1:"keyword"},pattern:/\b(break|case|continue|do|done|elif|else|esac|eval|export|fi|for|function|if|in|local|return|set|then|unset|until|while)(?=\(|\b)/g}],!0),Rainbow.extend("php",[{name:"support",pattern:/\becho\b/g},{matches:{1:"variable.dollar-sign",2:"variable"},pattern:/(\$)(\w+)\b/g},{name:"constant.language",pattern:/true|false|null/gi},{name:"constant",pattern:/\b[A-Z0-9_]{2,}\b/g},{name:"keyword.dot",pattern:/\./g},{name:"keyword",pattern:/\b(die|end(for(each)?|switch|if)|case|require(_once)?|include(_once)?)(?=\(|\b)/g},{matches:{1:"keyword",2:{name:"support.class",pattern:/\w+/g}},pattern:/(instanceof)\s([^\$].*?)(\)|;)/g},{matches:{1:"support.function"},pattern:/\b(array(_key_exists|_merge|_keys|_shift)?|isset|count|empty|unset|printf|is_(array|string|numeric|object)|sprintf|each|date|time|substr|pos|str(len|pos|tolower|_replace|totime)?|ord|trim|in_array|implode|end|preg_match|explode|fmod|define|link|list|get_class|serialize|file|sort|mail|dir|idate|log|intval|header|chr|function_exists|dirname|preg_replace|file_exists)(?=\()/g},{name:"variable.language.php-tag",pattern:/(&lt;\?(php)?|\?&gt;)/g},{matches:{1:"keyword.namespace",2:{name:"support.namespace",pattern:/\w+/g}},pattern:/\b(namespace|use)\s(.*?);/g},{matches:{1:"storage.modifier",2:"storage.class",3:"entity.name.class",4:"storage.modifier.extends",5:"entity.other.inherited-class",6:"storage.modifier.extends",7:"entity.other.inherited-class"},pattern:/\b(abstract|final)?\s?(class|interface|trait)\s(\w+)(\sextends\s)?([\w\\]*)?(\simplements\s)?([\w\\]*)?\s?\{?(\n|\})/g},{name:"keyword.static",pattern:/self::|static::/g},{matches:{1:"storage.function",2:"support.magic"},pattern:/(function)\s(__.*?)(?=\()/g},{matches:{1:"keyword.new",2:{name:"support.class",pattern:/\w+/g}},pattern:/\b(new)\s([^\$].*?)(?=\)|\(|;)/g},{matches:{1:{name:"support.class",pattern:/\w+/g},2:"keyword.static"},pattern:/([\w\\]*?)(::)(?=\b|\$)/g},{matches:{2:{name:"support.class",pattern:/\w+/g}},pattern:/(\(|,\s?)([\w\\]*?)(?=\s\$)/g}]),Rainbow.extend("ruby",[{matches:{1:"variable.language",2:{language:null}},pattern:/^(__END__)\n((?:.*\n)*)/gm},{name:"string",matches:{1:"string.open",2:[{name:"string.interpolation",matches:{1:"string.open",2:{language:"ruby"},3:"string.close"},pattern:/(\#\{)(.*?)(\})/g}],3:"string.close"},pattern:/("|`)(.*?[^\\\1])?(\1)/g},{name:"string",pattern:/('|"|`)([^\\\1\n]|\\.)*?\1/g},{name:"string",pattern:/%[qQ](?=(\(|\[|\{|&lt;|.)(.*?)(?:'|\)|\]|\}|&gt;|\1))(?:\(\2\)|\[\2\]|\{\2\}|\&lt;\2&gt;|\1\2\1)/g},{matches:{1:"string",2:"string",3:"string"},pattern:/(&lt;&lt;)(\w+).*?$([\s\S]*?^\2)/gm},{matches:{1:"string",2:"string",3:"string"},pattern:/(&lt;&lt;\-)(\w+).*?$([\s\S]*?\2)/gm},{name:"string.regexp",matches:{1:"string.regexp",2:{name:"string.regexp",pattern:/\\(.){1}/g},3:"string.regexp",4:"string.regexp"},pattern:/(\/)(.*?)(\/)([a-z]*)/g},{name:"string.regexp",matches:{1:"string.regexp",2:{name:"string.regexp",pattern:/\\(.){1}/g},3:"string.regexp",4:"string.regexp"},pattern:/%r(?=(\(|\[|\{|&lt;|.)(.*?)('|\)|\]|\}|&gt;|\1))(?:\(\2\)|\[\2\]|\{\2\}|\&lt;\2&gt;|\1\2\1)([a-z]*)/g},{name:"comment",pattern:/#.*$/gm},{name:"comment",pattern:/^\=begin[\s\S]*?\=end$/gm},{matches:{1:"constant"},pattern:/(\w+:)[^:]/g},{matches:{1:"constant.symbol"},pattern:/[^:](:(?:\w+|(?=['"](.*?)['"])(?:"\2"|'\2')))/g},{name:"constant.numeric",pattern:/\b(0x[\da-f]+|\d+)\b/g},{name:"support.class",pattern:/\b[A-Z]\w*(?=((\.|::)[A-Za-z]|\[))/g},{name:"constant",pattern:/\b[A-Z]\w*\b/g},{matches:{1:"storage.class",2:"entity.name.class",3:"entity.other.inherited-class"},pattern:/\s*(class)\s+((?:(?:::)?[A-Z]\w*)+)(?:\s+&lt;\s+((?:(?:::)?[A-Z]\w*)+))?/g},{matches:{1:"storage.module",2:"entity.name.class"},pattern:/\s*(module)\s+((?:(?:::)?[A-Z]\w*)+)/g},{name:"variable.global",pattern:/\$([a-zA-Z_]\w*)\b/g},{name:"variable.class",pattern:/@@([a-zA-Z_]\w*)\b/g},{name:"variable.instance",pattern:/@([a-zA-Z_]\w*)\b/g},{matches:{1:"keyword.control"},pattern:/[^\.]\b(BEGIN|begin|case|class|do|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![?!])/g},{matches:{1:"keyword.control.pseudo-method"},pattern:/[^\.]\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![?!])|\bdefined\?|\bblock_given\?/g},{matches:{1:"constant.language"},pattern:/\b(nil|true|false)\b(?![?!])/g},{matches:{1:"variable.language"},pattern:/\b(__(FILE|LINE)__|self)\b(?![?!])/g},{matches:{1:"keyword.special-method"},pattern:/\b(require|gem|initialize|new|loop|include|extend|raise|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|module_function|public|protected)\b(?![?!])/g},{name:"keyword.operator",pattern:/\s\?\s|=|&lt;&lt;|&lt;&lt;=|%=|&=|\*=|\*\*=|\+=|\-=|\^=|\|{1,2}=|&lt;&lt;|&lt;=&gt;|&lt;(?!&lt;|=)|&gt;(?!&lt;|=|&gt;)|&lt;=|&gt;=|===|==|=~|!=|!~|%|&amp;|\*\*|\*|\+|\-|\/|\||~|&gt;&gt;/g},{matches:{1:"keyword.operator.logical"},pattern:/[^\.]\b(and|not|or)\b/g},{matches:{1:"storage.function",2:"entity.name.function"},pattern:/(def)\s(.*?)(?=(\s|\())/g}],!0),Rainbow.extend("css",[{name:"comment",pattern:/\/\*[\s\S]*?\*\//gm},{name:"constant.hex-color",pattern:/#([a-f0-9]{3}|[a-f0-9]{6})(?=;|\s|,|\))/gi},{matches:{1:"constant.numeric",2:"keyword.unit"},pattern:/(\d+)(px|em|cm|s|%)?/g},{name:"string",pattern:/('|")(.*?)\1/g},{name:"support.css-property",matches:{1:"support.vendor-prefix"},pattern:/(-o-|-moz-|-webkit-|-ms-)?[\w-]+(?=\s?:)(?!.*\{)/g},{matches:{1:[{name:"entity.name.sass",pattern:/&amp;/g},{name:"direct-descendant",pattern:/&gt;/g},{name:"entity.name.class",pattern:/\.[\w\-_]+/g},{name:"entity.name.id",pattern:/\#[\w\-_]+/g},{name:"entity.name.pseudo",pattern:/:[\w\-_]+/g},{name:"entity.name.tag",pattern:/\w+/g}]},pattern:/([\w\ ,\n:\.\#\&\;\-_]+)(?=.*\{)/g},{matches:{2:"support.vendor-prefix",3:"support.css-value"},pattern:/(:|,)\s*(-o-|-moz-|-webkit-|-ms-)?([a-zA-Z-]*)(?=\b)(?!.*\{)/g}],!0),function(a){var r,o=[],s=!1,l=!1,c={interval:250,force_process:!1},u=a(window);function d(){l=!1;for(var t=0,e=o.length;t<e;t++){var n=a(o[t]).filter(function(){return a(this).is(":appeared")});if(n.trigger("appear",[n]),r){var i=r.not(n);i.trigger("disappear",[i])}r=n}}a.expr[":"].appeared=function(t){var e=a(t);if(!e.is(":visible"))return!1;var n=u.scrollLeft(),i=u.scrollTop(),r=e.offset(),o=r.left,s=r.top;return s+e.height()>=i&&s-(e.data("appear-top-offset")||0)<=i+u.height()&&o+e.width()>=n&&o-(e.data("appear-left-offset")||0)<=n+u.width()},a.fn.extend({appear:function(t){var e=a.extend({},c,t||{}),n=this.selector||this;if(!s){function i(){l||(l=!0,setTimeout(d,e.interval))}a(window).scroll(i).resize(i),s=!0}return e.force_process&&setTimeout(d,e.interval),o.push(n),a(n)}}),a.extend({force_appear:function(){return!!s&&(d(),!0)}})}(jQuery),function(t){"use strict";var e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"}[Modernizr.prefixed("transition")];function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function i(t){this.options=n({},this.options),n(this.options,t),this._init()}i.prototype.options={elementId:"svg"},i.prototype._init=function(){this.svg=document.getElementById(this.options.elementId),this.paths=this.svg.querySelectorAll("path"),this._initAnimation()},i.prototype._initAnimation=function(){for(var t=0;t<this.paths.length;t++){var e=this.paths[t],n=e.getTotalLength();e.style.fillOpacity=0,e.style.strokeOpacity=1,e.style.transition=e.style.WebkitTransition="none",e.style.strokeDasharray=n+" "+n,e.style.strokeDashoffset=n,e.getBoundingClientRect(),e.style.transition=e.style.WebkitTransition="stroke-dashoffset 2s ease-in-out",e.style.strokeDashoffset=0,this._fillPath(e)}},i.prototype._fillPath=function(t){t.addEventListener(e,function(){t.style.transition=t.style.WebkitTransition="none",t.style.transition=t.style.WebkitTransition="fill-opacity 1s ease-in-out, stroke-opacity 1s ease-in-out",t.style.fillOpacity=1,t.style.strokeOpacity=0})},i.prototype.replay=function(){this._initAnimation()},t.DrawFillSVG=i}(window),function(r){"use strict";function o(t,e){this.el=r(t),this.options=r.extend({},r.fn.typed.defaults,e),this.baseText=this.el.text()||this.el.attr("placeholder")||"",this.typeSpeed=this.options.typeSpeed,this.startDelay=this.options.startDelay,this.backSpeed=this.options.backSpeed,this.backDelay=this.options.backDelay,this.strings=this.options.strings,this.strPos=0,this.arrayPos=0,this.stopNum=0,this.loop=this.options.loop,this.loopCount=this.options.loopCount,this.curLoop=0,this.stop=!1,this.showCursor=!this.isInput&&this.options.showCursor,this.cursorChar=this.options.cursorChar,this.isInput=this.el.is("input"),this.attr=this.options.attr||(this.isInput?"placeholder":null),this.build()}o.prototype={constructor:o,init:function(){var t=this;t.timeout=setTimeout(function(){t.typewrite(t.strings[t.arrayPos],t.strPos)},t.startDelay)},build:function(){!0===this.showCursor&&(this.cursor=r('<span class="typed-cursor">'+this.cursorChar+"</span>"),this.el.after(this.cursor)),this.init()},typewrite:function(i,r){if(!0!==this.stop){var t=Math.round(70*Math.random())+this.typeSpeed,o=this;o.timeout=setTimeout(function(){var t=0,e=i.substr(r);if("^"===e.charAt(0)){var n=1;/^\^\d+/.test(e)&&(n+=(e=/\d+/.exec(e)[0]).length,t=parseInt(e)),i=i.substring(0,r)+i.substring(r+n)}o.timeout=setTimeout(function(){if(r===i.length){if(o.options.onStringTyped(o.arrayPos),o.arrayPos===o.strings.length-1&&(o.options.callback(),o.curLoop++,!1===o.loop||o.curLoop===o.loopCount))return;o.timeout=setTimeout(function(){o.backspace(i,r)},o.backDelay)}else{0===r&&o.options.preStringTyped(o.arrayPos);var t=o.baseText+i.substr(0,r+1);o.attr?o.el.attr(o.attr,t):o.el.text(t),r++,o.typewrite(i,r)}},t)},t)}},backspace:function(e,n){if(!0!==this.stop){var t=Math.round(70*Math.random())+this.backSpeed,i=this;i.timeout=setTimeout(function(){1==i.arrayPos?(i.stopNum=17,i.backDelay=500):2==i.arrayPos?i.stopNum=54:i.stopNum=0;var t=i.baseText+e.substr(0,n);i.attr?i.el.attr(i.attr,t):i.el.text(t),n>i.stopNum?(n--,i.backspace(e,n)):n<=i.stopNum&&(i.arrayPos++,i.arrayPos===i.strings.length?(i.arrayPos=0,i.init()):i.typewrite(i.strings[i.arrayPos],n))},t)}},reset:function(){clearInterval(this.timeout);var t=this.el.attr("id");this.el.after('<span id="'+t+'"/>'),this.el.remove(),this.cursor.remove(),this.options.resetCallback()}},r.fn.typed=function(i){return this.each(function(){var t=r(this),e=t.data("typed"),n="object"==typeof i&&i;e||t.data("typed",e=new o(this,n)),"string"==typeof i&&e[i]()})},r.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],typeSpeed:0,startDelay:0,backSpeed:0,backDelay:500,loop:!1,loopCount:!1,showCursor:!0,cursorChar:"|",attr:null,callback:function(){},preStringTyped:function(){},onStringTyped:function(){},resetCallback:function(){}}}(window.jQuery),function(t,e,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):e["jquery-scrollto"]=n()}(0,this,function(){var v,y;return v=window.jQuery||require("jquery"),v.propHooks.scrollTop=v.propHooks.scrollLeft={get:function(t,e){var n=null;return"HTML"!==t.tagName&&"BODY"!==t.tagName||("scrollLeft"===e?n=window.scrollX:"scrollTop"===e&&(n=window.scrollY)),null==n&&(n=t[e]),n}},v.Tween.propHooks.scrollTop=v.Tween.propHooks.scrollLeft={get:function(t){return v.propHooks.scrollTop.get(t.elem,t.prop)},set:function(t){"HTML"===t.elem.tagName||"BODY"===t.elem.tagName?(t.options.bodyScrollLeft=t.options.bodyScrollLeft||window.scrollX,t.options.bodyScrollTop=t.options.bodyScrollTop||window.scrollY,"scrollLeft"===t.prop?t.options.bodyScrollLeft=Math.round(t.now):"scrollTop"===t.prop&&(t.options.bodyScrollTop=Math.round(t.now)),window.scrollTo(t.options.bodyScrollLeft,t.options.bodyScrollTop)):t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},y={config:{duration:400,easing:"swing",callback:void 0,durationMode:"each",offsetTop:0,offsetLeft:0},configure:function(t){return v.extend(y.config,t||{}),this},scroll:function(e,n){var t,i,r,o,s,a,l,c,u,d,h,p,f,g,m;return i=(t=e.pop()).$container,r=t.$target,i.prop("tagName"),o=v("<span/>").css({position:"absolute",top:"0px",left:"0px"}),s=i.css("position"),i.css({position:"relative"}),o.appendTo(i),d=o.offset().top,h=r.offset().top-d-parseInt(n.offsetTop,10),p=o.offset().left,f=r.offset().left-p-parseInt(n.offsetLeft,10),a=i.prop("scrollTop"),l=i.prop("scrollLeft"),o.remove(),i.css({position:s}),g={},m=function(t){return 0===e.length?"function"==typeof n.callback&&n.callback():y.scroll(e,n),!0},n.onlyIfOutside&&(c=a+i.height(),u=l+i.width(),a<h&&h<c&&(h=a),l<f&&f<u&&(f=l)),h!==a&&(g.scrollTop=h),f!==l&&(g.scrollLeft=f),i.prop("scrollHeight")===i.width()&&delete g.scrollTop,i.prop("scrollWidth")===i.width()&&delete g.scrollLeft,null!=g.scrollTop||null!=g.scrollLeft?i.animate(g,{duration:n.duration,easing:n.easing,complete:m}):m(),!0},fn:function(t){var e,n,i,r;e=[];var o=v(this);if(0===o.length)return this;for(n=v.extend({},y.config,t),r=(i=o.parent()).get(0);1===i.length&&r!==document.body&&r!==document;){var s,a;s="visible"!==i.css("overflow-y")&&r.scrollHeight!==r.clientHeight,a="visible"!==i.css("overflow-x")&&r.scrollWidth!==r.clientWidth,(s||a)&&(e.push({$container:i,$target:o}),o=i),r=(i=i.parent()).get(0)}return e.push({$container:v("html"),$target:o}),"all"===n.durationMode&&(n.duration/=e.length),y.scroll(e,n),this}},v.ScrollTo=v.ScrollTo||y,v.fn.ScrollTo=v.fn.ScrollTo||y.fn,y}),function(){function e(t,e){return function(){return t.apply(e,arguments)}}var i,t,n,l,r,s=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1};function o(){}function a(){this.keys=[],this.values=[]}function c(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}function u(t){null==t&&(t={}),this.scrollCallback=e(this.scrollCallback,this),this.scrollHandler=e(this.scrollHandler,this),this.start=e(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),this.animationNameCache=new n}o.prototype.extend=function(t,e){var n,i;for(n in e)i=e[n],null==t[n]&&(t[n]=i);return t},o.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},o.prototype.addEvent=function(t,e,n){return null!=t.addEventListener?t.addEventListener(e,n,!1):null!=t.attachEvent?t.attachEvent("on"+e,n):t[e]=n},o.prototype.removeEvent=function(t,e,n){return null!=t.removeEventListener?t.removeEventListener(e,n,!1):null!=t.detachEvent?t.detachEvent("on"+e,n):delete t[e]},o.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t=o,n=this.WeakMap||this.MozWeakMap||(a.prototype.get=function(t){var e,n,i,r;for(e=n=0,i=(r=this.keys).length;n<i;e=++n)if(r[e]===t)return this.values[e]},a.prototype.set=function(t,e){var n,i,r,o;for(n=i=0,r=(o=this.keys).length;i<r;n=++i)if(o[n]===t)return void(this.values[n]=e);return this.keys.push(t),this.values.push(e)},n=a),i=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(c.notSupported=!0,c.prototype.observe=function(){},i=c),l=this.getComputedStyle||function(n,t){return this.getPropertyValue=function(t){var e;return"float"===t&&(t="styleFloat"),r.test(t)&&t.replace(r,function(t,e){return e.toUpperCase()}),(null!=(e=n.currentStyle)?e[t]:void 0)||null},this},r=/(\-([a-z]){1})/g,this.WOW=(u.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0},u.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},u.prototype.start=function(){var r,t,e,n,s;if(this.stopped=!1,this.boxes=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.element.querySelectorAll("."+this.config.boxClass)).length;t<e;t++)r=n[t],i.push(r);return i}.call(this),this.all=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.boxes).length;t<e;t++)r=n[t],i.push(r);return i}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else{for(t=0,e=(n=this.boxes).length;t<e;t++)r=n[t],this.applyStyle(r,!0);this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)}if(this.config.live)return new i((s=this,function(t){var r,o,e,n,i;for(i=[],e=0,n=t.length;e<n;e++)o=t[e],i.push(function(){var t,e,n,i;for(i=[],t=0,e=(n=o.addedNodes||[]).length;t<e;t++)r=n[t],i.push(this.doSync(r));return i}.call(s));return i})).observe(document.body,{childList:!0,subtree:!0})},u.prototype.stop=function(){if(this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval)return clearInterval(this.interval)},u.prototype.sync=function(t){if(i.notSupported)return this.doSync(this.element)},u.prototype.doSync=function(t){var e,n,i,r,o;if(null==t&&(t=this.element),1===t.nodeType){for(o=[],n=0,i=(r=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;n<i;n++)e=r[n],s.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),o.push(this.scrolled=!0)):o.push(void 0);return o}},u.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass},u.prototype.applyStyle=function(t,e){var n,i,r,o;return i=t.getAttribute("data-wow-duration"),n=t.getAttribute("data-wow-delay"),r=t.getAttribute("data-wow-iteration"),this.animate((o=this,function(){return o.customStyle(t,e,i,n,r)}))},u.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},u.prototype.resetStyle=function(){var t,e,n,i,r;for(r=[],e=0,n=(i=this.boxes).length;e<n;e++)t=i[e],r.push(t.style.visibility="visible");return r},u.prototype.customStyle=function(t,e,n,i,r){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",n&&this.vendorSet(t.style,{animationDuration:n}),i&&this.vendorSet(t.style,{animationDelay:i}),r&&this.vendorSet(t.style,{animationIterationCount:r}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},u.prototype.vendors=["moz","webkit"],u.prototype.vendorSet=function(r,t){var o,s,a,e;for(o in e=[],t)s=t[o],r[""+o]=s,e.push(function(){var t,e,n,i;for(i=[],t=0,e=(n=this.vendors).length;t<e;t++)a=n[t],i.push(r[""+a+o.charAt(0).toUpperCase()+o.substr(1)]=s);return i}.call(this));return e},u.prototype.vendorCSS=function(t,e){var n,i,r,o,s,a;for(n=(i=l(t)).getPropertyCSSValue(e),o=0,s=(a=this.vendors).length;o<s;o++)r=a[o],n=n||i.getPropertyCSSValue("-"+r+"-"+e);return n},u.prototype.animationName=function(e){var n;try{n=this.vendorCSS(e,"animation-name").cssText}catch(t){n=l(e).getPropertyValue("animation-name")}return"none"===n?"":n},u.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},u.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},u.prototype.scrollHandler=function(){return this.scrolled=!0},u.prototype.scrollCallback=function(){var r;if(this.scrolled&&(this.scrolled=!1,this.boxes=function(){var t,e,n,i;for(i=[],t=0,e=(n=this.boxes).length;t<e;t++)(r=n[t])&&(this.isVisible(r)?this.show(r):i.push(r));return i}.call(this),!this.boxes.length&&!this.config.live))return this.stop()},u.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},u.prototype.isVisible=function(t){var e,n,i,r,o;return n=t.getAttribute("data-wow-offset")||this.config.offset,r=(o=window.pageYOffset)+Math.min(this.element.clientHeight,this.util().innerHeight())-n,e=(i=this.offsetTop(t))+t.clientHeight,i<=r&&o<=e},u.prototype.util=function(){return null!=this._util?this._util:this._util=new t},u.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},u)}.call(this),function(d,h,p){"use strict";function e(t,o){function i(e,n){n=n||!1;var i=!1,r=!1,t={loaded:function(){var t=i?"ss.onProgressEnd":"ss.onStartEnd";r&&i?r&&c(e):s.one(t,function(){c(e)}),n||h.history.pushState({id:s.prop("id")},a[e].title,e)},fetching:function(){i||(i=!0,s.one("ss.onStartEnd",function(){o.onProgress.render(e,s,null),setTimeout(function(){s.trigger("ss.onProgressEnd"),r=!0},o.onStart.duration)})),setTimeout(function(){a.hasOwnProperty(e)&&t[a[e].status]()},10)},error:function(){h.location=e}};a.hasOwnProperty(e)||u(e),o.onStart.render(e,s,null),setTimeout(function(){s.trigger("ss.onStartEnd")},o.onStart.duration),t[a[e].status]()}function e(t){var e=d(t.currentTarget),n=e.prop("href");m.shouldLoad(e,o.blacklist)&&(t.stopPropagation(),u(n))}function n(t){var e=d(t.currentTarget),n=e.prop("href");t.metaKey||t.ctrlKey||!m.shouldLoad(e,o.blacklist)||(t.stopPropagation(),t.preventDefault(),i(n))}var r,s=d(t),a={},l=h.location.href,c=function(t){var e="#"+s.prop("id"),n=a[t]?m.getContentById(e,a[t].html):null;n?(p.title=a[t].title,s.data("smoothState").href=t,o.onEnd.render(t,s,n),s.one("ss.onEndEnd",function(){o.callback(t,s,n)}),setTimeout(function(){s.trigger("ss.onEndEnd")},o.onEnd.duration)):!n&&o.development&&f?f.warn("No element with an id of "+e+" in response from "+t+" in "+a):h.location=t},u=function(e){if(!a.hasOwnProperty(e)){(a=m.clearIfOverCapacity(a,o.pageCacheSize))[e]={status:"fetching"};var t=o.alterRequestUrl(e)||e,n=d.ajax(t);n.success(function(t){m.storePageIn(a,e,t),s.data("smoothState").cache=a}),n.error(function(){a[e].status="error"})}};return o=d.extend(g,o),null===h.history.state&&h.history.replaceState({id:s.prop("id")},p.title,l),m.storePageIn(a,l,p.documentElement.outerHTML),m.triggerAllAnimationEndEvent(s,"ss.onStartEnd ss.onProgressEnd ss.onEndEnd"),(r=s).on("click",o.anchors,n),o.prefetch&&r.on("mouseover touchstart",o.anchors,e),{href:l,cache:a,load:i,fetch:u,toggleAnimationClass:function(t){var e=s.addClass(t).prop("class");s.removeClass(e),setTimeout(function(){s.addClass(e)},0),s.one("ss.onStartEnd ss.onProgressEnd ss.onEndEnd",function(){s.removeClass(t)})}}}var i=d("html, body"),f=h.console||!1,g={anchors:"a",prefetch:!1,blacklist:".no-smoothstate, [target]",development:!1,pageCacheSize:0,alterRequestUrl:function(t){return t},onStart:{duration:0,render:function(t,e){i.scrollTop(0)}},onProgress:{duration:0,render:function(t,e){i.css("cursor","wait"),i.find("a").css("cursor","wait")}},onEnd:{duration:0,render:function(t,e,n){i.css("cursor","auto"),i.find("a").css("cursor","auto"),e.html(n)}},callback:function(t,e,n){}},m={isExternal:function(t){var e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof e[1]&&0<e[1].length&&e[1].toLowerCase()!==h.location.protocol||"string"==typeof e[2]&&0<e[2].length&&e[2].replace(new RegExp(":("+{"http:":80,"https:":443}[h.location.protocol]+")?$"),"")!==h.location.host},isHash:function(t){var e=0<t.indexOf(h.location.pathname),n=0<t.indexOf("#");return e&&n},shouldLoad:function(t,e){var n=t.prop("href");return!m.isExternal(n)&&!m.isHash(n)&&!t.is(e)},htmlDoc:function(t){var n,o=d(),s="ss"+Math.round(1e5*Math.random()),e=t.replace(/<(\/?)(html|head|body|title|base|meta)(\s+[^>]*)?>/gi,function(t,e,n,i){var r={};return e||(o=o.add("<"+n+"/>"),i&&d.each(d("<div"+i+"/>")[0].attributes,function(t,e){r[e.name]=e.value}),o.eq(-1).attr(r)),"<"+e+"div"+(e?"":" id='"+s+(o.length-1)+"'")+">"});return o.length?((n=n||d("<div/>")).html(e),d.each(o,function(t){var e=n.find("#"+s+t).before(o[t]);o.eq(t).html(e.contents()),e.remove()}),n.children().unwrap()):d(t)},clearIfOverCapacity:function(t,e){return Object.keys||(Object.keys=function(t){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n}),Object.keys(t).length>e&&(t={}),t},getContentById:function(t,e){var n=(e=e instanceof jQuery?e:m.htmlDoc(e)).find(t),i=n.length?d.trim(n.html()):e.filter(t).html();return i.length?d(i):null},storePageIn:function(t,e,n){return n=n instanceof jQuery?n:m.htmlDoc(n),t[e]={status:"loaded",title:n.find("title").text(),html:n},t},triggerAllAnimationEndEvent:function(e,t){t=" "+t||"";var n=0;e.on("animationstart webkitAnimationStart oanimationstart MSAnimationStart",function(t){d(t.delegateTarget).is(e)&&(t.stopPropagation(),n++)}),e.on("animationend webkitAnimationEnd oanimationend MSAnimationEnd",function(t){d(t.delegateTarget).is(e)&&(t.stopPropagation(),0===--n&&e.trigger("allanimationend"))}),e.on("allanimationend"+t,function(){n=0,m.redraw(e)})},redraw:function(t){t.height(0),setTimeout(function(){t.height("auto")},0)}};h.onpopstate=function(t){if(null!==t.state){var e=h.location.href,n=d("#"+t.state.id).data("smoothState");n.href===e||m.isHash(e)||n.load(e,!0)}},d.smoothStateUtility=m,d.fn.smoothState=function(t){return this.each(function(){this.id&&!d.data(this,"smoothState")?d.data(this,"smoothState",new e(this,t)):!this.id&&f&&f.warn("Every smoothState container needs an id but the following one does not have one:",this)})}}(jQuery,window,document),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}(function(p){var i=/\+/g;function f(t){return m.raw?t:encodeURIComponent(t)}function g(t,e){var n=m.raw?t:function(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return t=decodeURIComponent(t.replace(i," ")),m.json?JSON.parse(t):t}catch(t){}}(t);return p.isFunction(e)?e(n):n}var m=p.cookie=function(t,e,n){if(1<arguments.length&&!p.isFunction(e)){if("number"==typeof(n=p.extend({},m.defaults,n)).expires){var i=n.expires,r=n.expires=new Date;r.setTime(+r+864e5*i)}return document.cookie=[f(t),"=",function(t){return f(m.json?JSON.stringify(t):String(t))}(e),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var o,s=t?void 0:{},a=document.cookie?document.cookie.split("; "):[],l=0,c=a.length;l<c;l++){var u=a[l].split("="),d=(o=u.shift(),m.raw?o:decodeURIComponent(o)),h=u.join("=");if(t&&t===d){s=g(h,e);break}t||void 0===(h=g(h))||(s[d]=h)}return s};m.defaults={},p.removeCookie=function(t,e){return void 0!==p.cookie(t)&&(p.cookie(t,"",p.extend({},e,{expires:-1})),!p.cookie(t))}}),function(){var e,n,w=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},x=[].slice;e=window,n=function(l,o){var e,s,a,c,n,u,d,r,h,i,p,f,g,m,v,y;function t(t){var e=this;this.$element=t,this.element=t[0],this.didResize=!1,this.didScroll=!1,this.id="context"+n++,this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()},this.waypoints={horizontal:{},vertical:{}},this.element[u]=this.id,d[this.id]=this,t.bind(f,function(){var t;if(!e.didScroll&&!r)return e.didScroll=!0,t=function(){return e.doScroll(),e.didScroll=!1},o.setTimeout(t,l[y].settings.scrollThrottle)}),t.bind(p,function(){var t;if(!e.didResize)return e.didResize=!0,t=function(){return l[y]("refresh"),e.didResize=!1},o.setTimeout(t,l[y].settings.resizeThrottle)})}function b(t,e,n){var i,r;"bottom-in-view"===n.offset&&(n.offset=function(){var t;return t=l[y]("viewportHeight"),l.isWindow(e.element)||(t=e.$element.height()),t-l(this).outerHeight()}),this.$element=t,this.element=t[0],this.axis=n.horizontal?"horizontal":"vertical",this.callback=n.handler,this.context=e,this.enabled=n.enabled,this.id="waypoints"+g++,this.offset=null,this.options=n,e.waypoints[this.axis][this.id]=this,(i=null!=(r=(c[this.axis][this.id]=this).element[m])?r:[]).push(this.id),this.element[m]=i}return e=l(o),r=0<=w.call(o,"ontouchstart"),c={horizontal:{},vertical:{}},d={},u="waypoints-context-id",p="resize.waypoints",f="scroll.waypoints",g=n=1,m="waypoints-waypoint-ids",v="waypoint",y="waypoints",t.prototype.doScroll=function(){var t,i=this;return t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}},!r||t.vertical.oldScroll&&t.vertical.newScroll||l[y]("refresh"),l.each(t,function(t,r){var n,e,o;return o=[],e=r.newScroll>r.oldScroll,n=e?r.forward:r.backward,l.each(i.waypoints[t],function(t,e){var n,i;return r.oldScroll<(n=e.offset)&&n<=r.newScroll?o.push(e):r.newScroll<(i=e.offset)&&i<=r.oldScroll?o.push(e):void 0}),o.sort(function(t,e){return t.offset-e.offset}),e||o.reverse(),l.each(o,function(t,e){if(e.options.continuous||t===o.length-1)return e.trigger([n])})}),this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.refresh=function(){var t,e,n,i=this;return n=l.isWindow(this.element),e=this.$element.offset(),this.doScroll(),t={horizontal:{contextOffset:n?0:e.left,contextScroll:n?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:n?0:e.top,contextScroll:n?0:this.oldScroll.y,contextDimension:n?l[y]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}},l.each(t,function(t,a){return l.each(i.waypoints[t],function(t,e){var n,i,r,o,s;if(n=e.options.offset,r=e.offset,i=l.isWindow(e.element)?0:e.$element.offset()[a.offsetProp],l.isFunction(n)?n=n.apply(e.element):"string"==typeof n&&(n=parseFloat(n),-1<e.options.offset.indexOf("%")&&(n=Math.ceil(a.contextDimension*n/100))),e.offset=i-a.contextOffset+a.contextScroll-n,(!e.options.onlyOnScroll||null==r)&&e.enabled)return null!==r&&r<(o=a.oldScroll)&&o<=e.offset?e.trigger([a.backward]):null!==r&&r>(s=a.oldScroll)&&s>=e.offset?e.trigger([a.forward]):null===r&&a.oldScroll>=e.offset?e.trigger([a.forward]):void 0})})},t.prototype.checkEmpty=function(){if(l.isEmptyObject(this.waypoints.horizontal)&&l.isEmptyObject(this.waypoints.vertical))return this.$element.unbind([p,f].join(" ")),delete d[this.id]},s=t,b.prototype.trigger=function(t){if(this.enabled)return null!=this.callback&&this.callback.apply(this.element,t),this.options.triggerOnce?this.destroy():void 0},b.prototype.disable=function(){return this.enabled=!1},b.prototype.enable=function(){return this.context.refresh(),this.enabled=!0},b.prototype.destroy=function(){return delete c[this.axis][this.id],delete this.context.waypoints[this.axis][this.id],this.context.checkEmpty()},b.getWaypointsByElement=function(t){var e,n;return(n=t[m])?(e=l.extend({},c.horizontal,c.vertical),l.map(n,function(t){return e[t]})):[]},a=b,i={init:function(t,r){return null==(r=l.extend({},l.fn[v].defaults,r)).handler&&(r.handler=t),this.each(function(){var t,e,n,i;return t=l(this),n=null!=(i=r.context)?i:l.fn[v].defaults.context,l.isWindow(n)||(n=t.closest(n)),n=l(n),e=(e=d[n[0][u]])||new s(n),new a(t,e,r)}),l[y]("refresh"),this},disable:function(){return i._invoke.call(this,"disable")},enable:function(){return i._invoke.call(this,"enable")},destroy:function(){return i._invoke.call(this,"destroy")},prev:function(t,e){return i._traverse.call(this,t,e,function(t,e,n){if(0<e)return t.push(n[e-1])})},next:function(t,e){return i._traverse.call(this,t,e,function(t,e,n){if(e<n.length-1)return t.push(n[e+1])})},_traverse:function(e,t,n){var i,r;return null==e&&(e="vertical"),null==t&&(t=o),r=h.aggregate(t),i=[],this.each(function(){var t;return t=l.inArray(this,r[e]),n(i,t,r[e])}),this.pushStack(i)},_invoke:function(n){return this.each(function(){var t;return t=a.getWaypointsByElement(this),l.each(t,function(t,e){return e[n](),!0})}),this}},l.fn[v]=function(){var t,e;return e=arguments[0],t=2<=arguments.length?x.call(arguments,1):[],i[e]?i[e].apply(this,t):l.isFunction(e)?i.init.apply(this,arguments):l.isPlainObject(e)?i.init.apply(this,[null,e]):e?l.error("The "+e+" method does not exist in jQuery Waypoints."):l.error("jQuery Waypoints needs a callback function or handler option.")},l.fn[v].defaults={context:o,continuous:!0,enabled:!0,horizontal:!1,offset:0,triggerOnce:!1},h={refresh:function(){return l.each(d,function(t,e){return e.refresh()})},viewportHeight:function(){var t;return null!=(t=o.innerHeight)?t:e.height()},aggregate:function(t){var e,i,n;return e=c,t&&(e=null!=(n=d[l(t)[0][u]])?n.waypoints:void 0),e?(i={horizontal:[],vertical:[]},l.each(i,function(t,n){return l.each(e[t],function(t,e){return n.push(e)}),n.sort(function(t,e){return t.offset-e.offset}),i[t]=l.map(n,function(t){return t.element}),i[t]=l.unique(i[t])}),i):[]},above:function(t){return null==t&&(t=o),h._filter(t,"vertical",function(t,e){return e.offset<=t.oldScroll.y})},below:function(t){return null==t&&(t=o),h._filter(t,"vertical",function(t,e){return e.offset>t.oldScroll.y})},left:function(t){return null==t&&(t=o),h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){return null==t&&(t=o),h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return i[t]=e},_invoke:function(n){var t;return t=l.extend({},c.vertical,c.horizontal),l.each(t,function(t,e){return e[n](),!0})},_filter:function(t,e,n){var i,r;return(i=d[l(t)[0][u]])?(r=[],l.each(i.waypoints[e],function(t,e){if(n(i,e))return r.push(e)}),r.sort(function(t,e){return t.offset-e.offset}),l.map(r,function(t){return t.element})):[]}},l[y]=function(){var t,e;return e=arguments[0],t=2<=arguments.length?x.call(arguments,1):[],h[e]?h[e].apply(null,t):h.aggregate.call(null,e)},l[y].settings={resizeThrottle:100,scrollThrottle:30},e.on("load.waypoints",function(){return l[y]("refresh")})},"function"==typeof define&&define.amd?define("waypoints",["jquery"],function(t){return n(t,e)}):n(e.jQuery,e)}.call(this),function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.ghembedder=t()}}(function(){return function o(s,a,l){function c(n,t){if(!a[n]){if(!s[n]){var e="function"==typeof require&&require;if(!t&&e)return e(n,!0);if(u)return u(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=a[n]={exports:{}};s[n][0].call(r.exports,function(t){var e=s[n][1][t];return c(e||t)},r,r.exports,o,s,a,l)}return a[n].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,c){var u=e.exports={_apiBase:"https://api.github.com",_library:{},_rLeadSlash:/^\/+|\/+$/g,_rWhiteSpace:/\s/g};u._decodeContent=function(t){return window.atob(t.replace(u._rWhiteSpace,""))},u._keygen=function(){return"ghembedder_key_"+~~(1e5*Math.random())},u._jsonpCallback=function(l){return window[l]=function(t){var e,n,i,r=u._library[l],o=!1,s=-1<r.lineBegin&&-1<r.lineEnd,a=new Array(r.tabSize+1).join(" ");t.data&&t.data.content&&(r.data=t.data,n=(e=(e=u._decodeContent(t.data.content)).replace(/[&<>"'`]/g,(i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},function(t){return i[t]}))).split("\n"),s&&(n=n.splice(r.lineBegin-1,r.lineEnd-r.lineBegin+1)),r.linenos&&(o=s?r.lineBegin:r.linenos),e=(n=n.map(function(t,e){return'<a class="nocode" id="'+r.fileName+"-L"+(e+r.lineBegin)+'">'+(t?"":" ")+"</a>"+t.replace(/\t/gi,a)})).join("\n"),c.prettyPrintOne&&(e=c.prettyPrintOne(e,r.lang,o)),r.el.className+=" ghe",r.el.innerHTML='<pre><code data-language="javascript">'+e+"</code></pre>"+(r.annotate?u._annotation(l):""),delete window[l],r.onload&&r.onload(null,r))}},u._annotation=function(t){var e=u._library[t],n=-1<e.lineBegin&&-1<e.lineEnd;return'<div class="ghe-annotation">'+e.fileName+(n?", lines "+e.lineBegin+"-"+e.lineEnd:"")+(e.data?'. <a href="'+e.data._links.html+'" target="_blank">Source</a>':"")+"</div>"},u._jsonp=function(t,e){var n=document.createElement("script");n.type="text/javascript",n.src=t+(-1<t.indexOf("?")?"&":"?")+"callback="+e,document.getElementsByTagName("head")[0].appendChild(n)},u._parseNode=function(t){var e,n,i=t.getAttribute("data-ghlines"),r=t.getAttribute("data-ghpath");return i&&-1<i.indexOf("-")?(i=i.split("-"),e=parseInt(i[0],10),n=parseInt(i[1],10)):e=n=i?parseInt(i,10):-1,{path:r,userrepo:t.getAttribute("data-ghuserrepo"),ref:t.getAttribute("data-ghref")||"master",lineBegin:e,lineEnd:n,el:t,fileName:r.split("/").pop(),lang:t.getAttribute("data-ghlang"),linenos:t.getAttribute("data-ghlinenos"),annotate:t.getAttribute("data-ghannotate"),tabSize:parseInt(t.getAttribute("data-ghtabsize"),10)||4}},u.load=function(t,e){var n=u._keygen();t.nodeName&&(t=u._parseNode(t)),e&&(t.onload=e),u._jsonpCallback(n),u._library[n]=t,u._jsonp(u._apiBase+"/repos/"+t.userrepo.replace(u._rLeadSlash,"")+"/contents/"+t.path.replace(u._rLeadSlash,"")+"?ref="+t.ref,n)},u.autoload=function(){var t;t=window.jQuery?window.jQuery("[data-ghpath]"):document.querySelectorAll("[data-ghpath]");for(var e=0;e<t.length;e++)u.load(t[e])}},{}]},{},[1])(1)}),ghembedder.autoload(),jQuery(document).ready(function(a){var l=0;a(".github-widget").each(function(){0==l&&a("head").append('<style type="text/css">.github-box *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;}.github-box{font-family:helvetica,arial,sans-serif;font-size:13px;line-height:18px;background:#fafafa;border:1px solid #ddd;color:#666;border-radius:3px}.github-box a{color:#4183c4;border:0;text-decoration:none}.github-box .github-box-title{position:relative;border-bottom:1px solid #ddd;border-radius:3px 3px 0 0;background:#fcfcfc;background:-moz-linear-gradient(#fcfcfc,#ebebeb);background:-webkit-linear-gradient(#fcfcfc,#ebebeb);}.github-box .github-box-title h3{word-wrap:break-word;font-family:helvetica,arial,sans-serif;font-weight:normal;font-size:16px;color:gray;margin:0;padding:10px 10px 10px 30px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAXCAMAAAAx3e/WAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEQjIyNkJERkM0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEQjIyNkJFMEM0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkRCMjI2QkREQzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkRCMjI2QkRFQzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+dka2KgAAAEVQTFRFxMTEyMjI0tLSvb29vr6+zc3Ny8vLxcXFz8/P6enp3t7ex8fH0dHR1NTUw8PDwMDAzs7OvLy8wcHBu7u7v7+/zMzM////budQFwAAABd0Uk5T/////////////////////////////wDmQOZeAAAAcklEQVR42tSQSQ7DMAwD6chOukWs5eX/Ty2coo0T9wOdEzEgdRBuzNmnDofgja52JDyz5TCqUp0O6kfrb4bzSXkRiTviEZZ6JKLMJ5VQ2v8iGbtbfEwXmjFMG0VwdQo10hQNxYqtLMv9O6xvpZ/QeAkwAKjwHiJLaJc3AAAAAElFTkSuQmCC) 7px center no-repeat; width: auto;}.github-box .github-box-title h3 .repo{font-weight:bold}.github-box .github-box-title .github-stats{float:right;position:absolute;top:8px;right:10px;font-size:11px;font-weight:bold;line-height:21px;height:auto;min-height:21px}.github-box .github-box-title .github-stats a{display:inline-block;height:21px;color:#666;border:1px solid #ddd;border-radius:3px;padding:0 5px 0 18px;background: white url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAqCAMAAACEJ4viAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYxIDY0LjE0MDk0OSwgMjAxMC8xMi8wNy0xMDo1NzowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNS4xIE1hY2ludG9zaCIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpEQjIyNkJEQkM0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpEQjIyNkJEQ0M0NjYxMUUxOEFDQzk3ODcxRDkzRjhCRSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkRCMjI2QkQ5QzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkRCMjI2QkRBQzQ2NjExRTE4QUNDOTc4NzFEOTNGOEJFIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+h1kA9gAAAK5QTFRF+fn5sbGx8fHx09PTmpqa2dnZ/f3919fX9PT00NDQ1dXVpKSk+vr6+/v7vb298vLyycnJ8/PztLS0zc3N6enp/v7+q6ur2NjY9/f3srKy/Pz8p6en7u7uoaGhnJyc4eHhtbW1pqam6Ojo9fX17e3toqKirKys1NTUzs7Ox8fHwcHBwMDA5eXlnZ2dpaWl0dHR9vb25ubm4uLi3d3dqqqqwsLCv7+/oKCgmZmZ////8yEsbwAAAMBJREFUeNrE0tcOgjAUBuDSliUoMhTEvfdef9//xUQjgaLX0Ium/ZLT/+SkRPxZpGykvuf5VMJogy5jY9yjDHcWFhqlcRuHc4o6B1QK0BDg+hcZgNDh3NWTwzItH/bRrhvT+g3zSxZkNGCZpoWGIbU0a3Y6zV5VA6keyeDxiw62P0gUqEW0FbDim4nVikFJbU2zZXybUEaxhCqOQqyh5/G0wpWICUwthyqwD4InOMuXJ7/gs7WkoPdVg1vykF8CDACEFanKO3aSYwAAAABJRU5ErkJggg==) no-repeat}.github-box .github-box-title .github-stats .watchers{border-right:1px solid #ddd}.github-box .github-box-title .github-stats .forks{background-position:-4px -21px;padding-left:15px}.github-box .github-box-content{padding:10px;font-weight:300}.github-box .github-box-content p{margin:0}.github-box .github-box-content .link{font-weight:bold}.github-box .github-box-download{position:relative;border-top:1px solid #ddd;background:white;border-radius:0 0 3px 3px;padding:10px;height:auto;min-height:24px;}.github-box .github-box-download .updated{word-wrap:break-word;margin:0;font-size:11px;color:#666;line-height:24px;font-weight:300;width:auto}.github-box .github-box-download .updated strong{font-weight:bold;color:#000}.github-box .github-box-download .download{float:right;position:absolute;top:10px;right:10px;height:24px;line-height:24px;font-size:12px;color:#666;font-weight:bold;text-shadow:0 1px 0 rgba(255,255,255,0.9);padding:0 10px;border:1px solid #ddd;border-bottom-color:#bbb;border-radius:3px;background:#f5f5f5;background:-moz-linear-gradient(#f5f5f5,#e5e5e5);background:-webkit-linear-gradient(#f5f5f5,#e5e5e5);}.github-box .github-box-download .download:hover{color:#527894;border-color:#cfe3ed;border-bottom-color:#9fc7db;background:#f1f7fa;background:-moz-linear-gradient(#f1f7fa,#dbeaf1);background:-webkit-linear-gradient(#f1f7fa,#dbeaf1);}@media (max-width: 767px) {.github-box .github-box-title{height:auto;min-height:60px}.github-box .github-box-title h3 .repo{display:block}.github-box .github-box-title .github-stats a{display:block;clear:right;float:right;}.github-box .github-box-download{height:auto;min-height:46px;}.github-box .github-box-download .download{top:32px;}}</style>'),l++;var r,t=a(this),e=t.data("repo"),n=e.split("/")[0],i=e.split("/")[1],o="http://github.com/"+n,s="http://github.com/"+n+"/"+i;(r=a('<div class="github-box repo"><div class="github-box-title"><h3><a class="owner" href="'+o+'" title="'+o+'">'+n+'</a>/<a class="repo" href="'+s+'" title="'+s+'">'+i+'</a></h3><div class="github-stats"><a class="watchers" href="'+s+'/watchers" title="See watchers">?</a><a class="forks" href="'+s+'/network/members" title="See forkers">?</a></div></div><div class="github-box-content"><p class="description"><span></span> &mdash; <a href="'+s+'#readme">Read More</a></p><p class="link"></p></div><div class="github-box-download"><div class="updated"></div><a class="download" href="'+s+'/zipball/master" title="Get an archive of this repository">Download as zip</a></div></div>')).appendTo(t),a.ajax({url:"https://api.github.com/repos/"+e,dataType:"jsonp",success:function(t){var e,n=t.data,i="unknown";n.pushed_at&&(i=(e=new Date(n.pushed_at)).getMonth()+1+"-"+e.getDate()+"-"+e.getFullYear()),r.find(".watchers").text(n.watchers),r.find(".forks").text(n.forks),r.find(".description span").text(n.description),r.find(".updated").html("Latest commit to the <strong>"+n.default_branch+"</strong> branch on "+i),null!=n.homepage&&r.find(".link").append(a("<a />").attr("href",n.homepage).text(n.homepage))}})})}),function(t){var e;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var n=window.Cookies,i=window.Cookies=t();i.noConflict=function(){return window.Cookies=n,i}}}(function(){function a(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function c(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function t(l){function s(){}function n(t,e,n){if("undefined"!=typeof document){"number"==typeof(n=a({path:"/"},s.defaults,n)).expires&&(n.expires=new Date(1*new Date+864e5*n.expires)),n.expires=n.expires?n.expires.toUTCString():"";try{var i=JSON.stringify(e);/^[\{\[]/.test(i)&&(e=i)}catch(t){}e=l.write?l.write(e,t):encodeURIComponent(String(e)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var r="";for(var o in n)n[o]&&(r+="; "+o,!0!==n[o]&&(r+="="+n[o].split(";")[0]));return document.cookie=t+"="+e+r}}function e(t,e){if("undefined"!=typeof document){for(var n={},i=document.cookie?document.cookie.split("; "):[],r=0;r<i.length;r++){var o=i[r].split("="),s=o.slice(1).join("=");e||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var a=c(o[0]);if(s=(l.read||l)(s,a)||c(s),e)try{s=JSON.parse(s)}catch(t){}if(n[a]=s,t===a)break}catch(t){}}return t?n[t]:n}}return s.set=n,s.get=function(t){return e(t,!1)},s.getJSON=function(t){return e(t,!0)},s.remove=function(t,e){n(t,"",a(e,{expires:-1}))},s.defaults={},s.withConverter=t,s}(function(){})});